@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700;800&display=swap');

:root {
    /* الألوان الفخمة المطلوبة: فحمي، ذهبي مطفي، خلفيات فاتحة */
    --charcoal: #2b2b2b;
    --matte-gold: #c5a059;
    --gold-hover: #a38242;
    --bg-light: #fdfdfd;
    --text-dark: #222222;
    --text-muted: #444444;
    --white: #ffffff;
    --border-color: #e5e5e5;
    --transition: all 0.3s ease-in-out;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Cairo', sans-serif;
}

html {
    /* خاصية التمرير الناعم ضرورية لمواقع الـ One Page */
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 2.3;
    direction: rtl;
    font-size: 1.15rem;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Navigation Menu */
header {
    background-color: var(--charcoal);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 4px solid var(--matte-gold);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    color: var(--white);
    font-size: 1.8rem;
    font-weight: 800;
    text-decoration: none;
    letter-spacing: -0.5px;
}

.logo span {
    color: var(--matte-gold);
}

/* تنسيق المينيو (القائمة العلوية) */
.nav-menu {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-menu a {
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
    padding: 5px 10px;
    border-radius: 5px;
}

.nav-menu a:hover {
    color: var(--charcoal);
    background-color: var(--matte-gold);
}

/* إزاحة الأقسام عشان الهيدر مايغطيش عليها وقت السكرول */
section {
    scroll-margin-top: 100px;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(43, 43, 43, 0.88), rgba(43, 43, 43, 0.92)), url('https://images.unsplash.com/photo-1600596542815-ffad4c1539a9?auto=format&fit=crop&q=80') center/cover fixed;
    padding: 130px 20px;
    text-align: center;
    color: var(--white);
    border-bottom: 6px solid var(--matte-gold);
}

.hero h1 {
    font-size: 3.8rem;
    color: var(--matte-gold);
    margin-bottom: 25px;
    font-weight: 800;
    line-height: 1.3;
}

.hero p {
    font-size: 1.35rem;
    max-width: 950px;
    margin: 0 auto;
    color: #ececec;
}

/* Main Content & Articles */
.main-content {
    padding: 70px 0;
}

.article-card {
    background-color: var(--white);
    border-radius: 20px;
    padding: 60px;
    margin-bottom: 60px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.04);
    border: 1px solid var(--border-color);
}

.article-card h2 {
    color: var(--charcoal);
    font-size: 2.6rem;
    margin-bottom: 35px;
    padding-right: 25px;
    border-right: 8px solid var(--matte-gold);
    line-height: 1.4;
}

.article-card h3 {
    color: var(--matte-gold);
    font-size: 1.9rem;
    margin: 50px 0 25px;
    font-weight: 700;
}

.article-card p {
    color: var(--text-muted);
    margin-bottom: 35px;
    text-align: justify;
    font-size: 1.25rem;
}

/* Links Styling for Link Wheel */
.seo-link {
    color: var(--charcoal);
    font-weight: 800;
    text-decoration: none;
    border-bottom: 2px solid var(--matte-gold);
    transition: var(--transition);
    padding-bottom: 2px;
}

.seo-link:hover {
    color: var(--matte-gold);
    border-bottom-color: var(--charcoal);
}

.authority-link {
    color: #0066cc;
    text-decoration: none;
    border-bottom: 1px dashed #0066cc;
    font-weight: 600;
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 50px;
    margin-top: 60px;
}

.project-item {
    background-color: var(--bg-light);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.project-item:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
    border-color: var(--matte-gold);
}

.project-image {
    height: 280px;
    background-color: var(--charcoal);
    border-bottom: 5px solid var(--matte-gold);
    background-size: cover;
    background-position: center;
}

/* ربط صور المشاريع */
.p-sawary { background-image: linear-gradient(rgba(43,43,43,0.5), rgba(43,43,43,0.7)), url('https://images.unsplash.com/photo-1613490908592-5060805177a6?auto=format&fit=crop&q=80'); }
.p-grand { background-image: linear-gradient(rgba(43,43,43,0.5), rgba(43,43,43,0.7)), url('https://images.unsplash.com/photo-1545324418-cc1a3fa10c00?auto=format&fit=crop&q=80'); }
.p-skyline { background-image: linear-gradient(rgba(43,43,43,0.5), rgba(43,43,43,0.7)), url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?auto=format&fit=crop&q=80'); }
.p-muruj { background-image: linear-gradient(rgba(43,43,43,0.5), rgba(43,43,43,0.7)), url('https://images.unsplash.com/photo-1512917774080-9991f1c4c750?auto=format&fit=crop&q=80'); }

.project-details {
    padding: 40px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-details h4 {
    color: var(--charcoal);
    font-size: 1.8rem;
    margin-bottom: 20px;
    font-weight: 800;
}

.project-details p {
    font-size: 1.15rem;
    margin-bottom: 30px;
    color: var(--text-muted);
    flex-grow: 1;
}

.project-btn {
    display: block;
    text-align: center;
    padding: 15px 30px;
    background-color: var(--charcoal);
    color: var(--matte-gold);
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: var(--transition);
    border: 2px solid var(--charcoal);
    margin-top: auto;
}

.project-btn:hover {
    background-color: var(--matte-gold);
    color: var(--charcoal);
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    width: 70px;
    height: 70px;
    bottom: 40px;
    left: 40px; 
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 2px 2px 25px rgba(37, 211, 102, 0.45);
    z-index: 1000;
    transition: var(--transition);
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    background-color: #1ebe57;
    transform: scale(1.1);
}

.whatsapp-float svg {
    width: 42px;
    height: 42px;
    fill: currentColor;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.8); }
    70% { box-shadow: 0 0 0 25px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Footer */
footer {
    background-color: var(--charcoal);
    color: var(--white);
    text-align: center;
    padding: 50px 20px;
    border-top: 6px solid var(--matte-gold);
}

footer p {
    color: #cccccc;
    font-size: 1.1rem;
}

/* Responsive */
@media (max-width: 992px) {
    .projects-grid { grid-template-columns: 1fr; }
    .hero h1 { font-size: 3rem; }
    .article-card { padding: 40px; }
    .nav-menu { gap: 15px; }
}

@media (max-width: 768px) {
    .header-content { flex-direction: column; gap: 15px; }
    .nav-menu { flex-wrap: wrap; justify-content: center; }
    .hero h1 { font-size: 2.4rem; }
    .hero p { font-size: 1.15rem; }
    .article-card h2 { font-size: 2.2rem; }
    .article-card { padding: 30px; }
    .whatsapp-float { bottom: 25px; left: 25px; width: 60px; height: 60px; }
}