/* ================================================================
   HyperDiv - Promotion Immobilière | Design System
   ================================================================ */

/* ---------- CSS Custom Properties ---------- */
:root {
    /* Brand Colors - from the logo */
    --navy: #1E2D3D;
    --navy-deep: #141F2B;
    --navy-light: #2B3E52;
    --gold: #C9A96E;
    --gold-light: #D4BC8B;
    --gold-dark: #A8873E;
    --orange: #D4834A;
    --orange-light: #E09B6A;

    /* Neutrals */
    --white: #FFFFFF;
    --off-white: #F7F5F0;
    --gray-100: #F0EDE6;
    --gray-200: #E0DBD1;
    --gray-300: #B8B0A2;
    --gray-400: #8A8279;
    --gray-500: #5C574F;
    --gray-600: #3D3A35;
    --dark: #0F1419;

    /* Functional */
    --success: #4CAF50;
    --error: #E53935;

    /* Typography */
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, sans-serif;
    --font-arabic: 'Noto Sans Arabic', 'Inter', sans-serif;

    /* Spacing */
    --section-pad: 120px;
    --container-max: 1200px;

    /* Transitions */
    --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.18);
    --shadow-gold: 0 4px 24px rgba(201, 169, 110, 0.25);
}

/* ---------- Arabic mode ---------- */
html[dir="rtl"] {
    --font-body: 'Noto Sans Arabic', sans-serif;
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    color: var(--gray-600);
    background: var(--white);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s var(--ease-out);
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- Scroll Reveal Animations ---------- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 {
    transition-delay: 0.1s;
}

.reveal-delay-2 {
    transition-delay: 0.2s;
}

.reveal-delay-3 {
    transition-delay: 0.3s;
}

.reveal-delay-4 {
    transition-delay: 0.4s;
}

/* ================================================================
   LANGUAGE TOGGLE
   ================================================================ */
.lang-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--navy);
    color: var(--gold);
    font-size: 0.7rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    transition: all 0.3s var(--ease-out);
    border: 2px solid var(--gold);
}

html[dir="rtl"] .lang-toggle {
    right: auto;
    left: 30px;
}

.lang-toggle:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-gold);
}

.lang-label {
    pointer-events: none;
}

/* ================================================================
   NAVIGATION
   ================================================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 900;
    padding: 20px 0;
    transition: all 0.4s var(--ease-out);
}

.navbar.scrolled {
    padding: 12px 0;
    background: rgba(14, 20, 27, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    z-index: 10;
}

.logo-img {
    height: 55px;
    width: auto;
    border-radius: 50%;
    transition: height 0.3s var(--ease-out);
}

.navbar.scrolled .logo-img {
    height: 42px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 8px;
    position: relative;
    transition: all 0.3s var(--ease-out);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 20px;
    height: 2px;
    background: var(--gold);
    border-radius: 1px;
    transition: transform 0.3s var(--ease-out);
}

.nav-link:hover,
.nav-link.active {
    color: var(--gold);
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: translateX(-50%) scaleX(1);
}

/* Hamburger */
.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    width: 28px;
    padding: 4px 0;
    z-index: 10;
}

.nav-hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: all 0.3s var(--ease-out);
    transform-origin: center;
}

.nav-hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.nav-hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.nav-hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ================================================================
   HERO SECTION
   ================================================================ */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.05);
    animation: heroZoom 20s ease-in-out infinite alternate;
}

@keyframes heroZoom {
    from {
        transform: scale(1.05);
    }

    to {
        transform: scale(1.15);
    }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
            rgba(14, 20, 27, 0.6) 0%,
            rgba(14, 20, 27, 0.4) 40%,
            rgba(14, 20, 27, 0.7) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: 0 24px;
    animation: heroFadeIn 1.2s var(--ease-out) both;
}

@keyframes heroFadeIn {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-badge {
    display: inline-block;
    padding: 8px 24px;
    border: 1px solid rgba(201, 169, 110, 0.5);
    border-radius: 50px;
    color: var(--gold-light);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 32px;
    backdrop-filter: blur(8px);
    background: rgba(201, 169, 110, 0.08);
    animation: heroFadeIn 1.2s var(--ease-out) 0.2s both;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 7vw, 5.5rem);
    font-weight: 700;
    color: var(--white);
    line-height: 1.1;
    margin-bottom: 28px;
}

html[dir="rtl"] .hero-title {
    font-family: var(--font-arabic);
}

.hero-title-line {
    display: block;
}

.hero-title-accent {
    color: var(--gold);
    animation: heroFadeIn 1.2s var(--ease-out) 0.4s both;
}

.hero-subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: clamp(1rem, 2vw, 1.2rem);
    max-width: 600px;
    margin: 0 auto 44px;
    line-height: 1.8;
    animation: heroFadeIn 1.2s var(--ease-out) 0.5s both;
}

.hero-ctas {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    animation: heroFadeIn 1.2s var(--ease-out) 0.6s both;
}

/* Scroll indicator */
.hero-scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--gold), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {

    0%,
    100% {
        opacity: 1;
        transform: scaleY(1);
    }

    50% {
        opacity: 0.3;
        transform: scaleY(0.6);
    }
}

/* ================================================================
   BUTTONS
   ================================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 36px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.4s var(--ease-out);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.btn:hover::before {
    opacity: 1;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--navy-deep);
    box-shadow: 0 4px 20px rgba(201, 169, 110, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(201, 169, 110, 0.45);
}

.btn-outline {
    border: 2px solid rgba(255, 255, 255, 0.4);
    color: var(--white);
    backdrop-filter: blur(4px);
}

.btn-outline:hover {
    border-color: var(--gold);
    color: var(--gold);
    transform: translateY(-2px);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

.btn-icon {
    width: 18px;
    height: 18px;
    transition: transform 0.3s var(--ease-out);
}

.btn:hover .btn-icon {
    transform: translateX(4px);
}

html[dir="rtl"] .btn:hover .btn-icon {
    transform: translateX(-4px);
}

/* ================================================================
   SECTION COMMONS
   ================================================================ */
.section {
    padding: var(--section-pad) 0;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-tag {
    display: inline-block;
    color: var(--gold);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 16px;
    position: relative;
}

.section-tag::before,
.section-tag::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30px;
    height: 1px;
    background: var(--gold);
    opacity: 0.4;
}

.section-tag::before {
    right: calc(100% + 16px);
}

.section-tag::after {
    left: calc(100% + 16px);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--navy);
    line-height: 1.2;
    margin-bottom: 16px;
}

html[dir="rtl"] .section-title {
    font-family: var(--font-arabic);
}

.section-desc {
    font-size: 1.1rem;
    color: var(--gray-400);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
}

/* ================================================================
   ABOUT SECTION
   ================================================================ */
.about {
    background: var(--off-white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 64px;
    align-items: start;
}

.about-text {
    font-size: 1.05rem;
    color: var(--gray-500);
}

.about-lead {
    font-size: 1.15rem;
    color: var(--navy);
    font-weight: 500;
    margin-bottom: 20px;
    line-height: 1.9;
}

.about-text p:last-child {
    line-height: 1.9;
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px 28px;
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    transition: all 0.4s var(--ease-out);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--gold);
}

.stat-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--gold), var(--orange));
    color: var(--white);
}

.stat-icon svg {
    width: 24px;
    height: 24px;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.2;
}

html[dir="rtl"] .stat-number {
    font-family: var(--font-arabic);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--gray-400);
    font-weight: 500;
}

/* ================================================================
   PROJECT SECTION
   ================================================================ */
.project {
    background: var(--navy-deep);
    color: var(--white);
}

.project .section-tag {
    color: var(--gold);
}

.project .section-title {
    color: var(--white);
}

.project .section-desc {
    color: rgba(255, 255, 255, 0.6);
}

/* Video Showcase */
.video-showcase {
    margin-bottom: 64px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    position: relative;
}

.video-wrapper {
    position: relative;
    aspect-ratio: 16/9;
    background: var(--navy);
}

.video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    background: rgba(14, 20, 27, 0.45);
    cursor: pointer;
    transition: background 0.4s var(--ease-out);
}

.video-play-overlay:hover {
    background: rgba(14, 20, 27, 0.3);
}

.video-play-overlay.hidden {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s var(--ease-out);
}

.play-btn-ring {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 2px solid rgba(201, 169, 110, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    transition: all 0.4s var(--ease-out);
    background: rgba(201, 169, 110, 0.1);
    backdrop-filter: blur(8px);
}

.video-play-overlay:hover .play-btn-ring {
    transform: scale(1.1);
    border-color: var(--gold);
    box-shadow: var(--shadow-gold);
}

.play-icon {
    width: 32px;
    height: 32px;
    margin-left: 4px;
}

html[dir="rtl"] .play-icon {
    margin-left: 0;
    margin-right: 4px;
}

.play-label {
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Project Features */
.project-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.feature-card {
    padding: 36px 28px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.4s var(--ease-out);
    text-align: center;
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(201, 169, 110, 0.3);
    transform: translateY(-6px);
}

.feature-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(201, 169, 110, 0.15), rgba(212, 131, 74, 0.1));
    color: var(--gold);
}

.feature-icon svg {
    width: 28px;
    height: 28px;
}

.feature-card h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--white);
}

html[dir="rtl"] .feature-card h3 {
    font-family: var(--font-arabic);
}

.feature-card p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.7;
}

/* ================================================================
   GALLERY SECTION
   ================================================================ */
.gallery {
    background: var(--white);
}

.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-400);
    border: 1px solid var(--gray-200);
    background: var(--white);
    transition: all 0.3s var(--ease-out);
}

.filter-btn:hover {
    color: var(--gold);
    border-color: var(--gold);
}

.filter-btn.active {
    background: var(--navy);
    color: var(--gold);
    border-color: var(--navy);
    box-shadow: var(--shadow-sm);
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    grid-auto-flow: dense;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4/3;
    transition: opacity 0.4s, transform 0.4s;
}

.gallery-item.hidden {
    display: none;
}

.gallery-item-wide {
    grid-column: span 2;
}

.gallery-item-tall {
    grid-row: span 2;
    aspect-ratio: auto;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease-out);
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-item-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
            transparent 40%,
            rgba(14, 20, 27, 0.6) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s var(--ease-out);
}

.gallery-item:hover .gallery-item-overlay {
    opacity: 1;
}

.gallery-zoom-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transform: scale(0.8);
    transition: transform 0.4s var(--ease-spring);
}

.gallery-zoom-icon svg {
    width: 22px;
    height: 22px;
}

.gallery-item:hover .gallery-zoom-icon {
    transform: scale(1);
}

/* ================================================================
   LOCALISATION SECTION
   ================================================================ */
.location {
    background: var(--navy-deep);
    color: var(--white);
}

.location .section-tag {
    color: var(--gold);
}

.location .section-title {
    color: var(--white);
}

.location .section-desc {
    color: rgba(255, 255, 255, 0.6);
}

.location-map {
    width: 100%;
    height: 420px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.location-map iframe {
    width: 100%;
    height: 100%;
    display: block;
}

.location-btn {
    display: inline-flex;
    margin: 32px auto 0;
    border-color: rgba(255, 255, 255, 0.3);
    color: var(--white);
}

.location .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.location-btn:hover {
    border-color: var(--gold);
    color: var(--gold);
}

@media (max-width: 768px) {
    .location-map {
        height: 300px;
        border-radius: 14px;
    }
}

/* ================================================================
   CONTACT SECTION
   ================================================================ */
.contact {
    background: var(--off-white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 48px;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    transition: all 0.3s var(--ease-out);
}

.contact-card:hover {
    border-color: var(--gold);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.contact-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--navy), var(--navy-light));
    color: var(--gold);
}

.contact-icon svg {
    width: 22px;
    height: 22px;
}

.contact-card h4 {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gray-400);
    margin-bottom: 4px;
}

.contact-card a,
.contact-card span {
    display: block;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--navy);
    margin-bottom: 2px;
}

.contact-card a:hover {
    color: var(--gold);
}

/* Contact Form */
.contact-form {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-200);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1.5px solid var(--gray-200);
    border-radius: 12px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--navy);
    background: var(--off-white);
    transition: all 0.3s var(--ease-out);
    outline: none;
}

html[dir="rtl"] .form-group input,
html[dir="rtl"] .form-group textarea {
    font-family: var(--font-arabic);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--gold);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(201, 169, 110, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--gray-300);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group input.error,
.form-group textarea.error {
    border-color: var(--error);
    box-shadow: 0 0 0 4px rgba(229, 57, 53, 0.08);
}

/* ================================================================
   FOOTER
   ================================================================ */
.footer {
    background: var(--navy-deep);
    color: rgba(255, 255, 255, 0.7);
    padding: 80px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-logo {
    height: 60px;
    width: auto;
    border-radius: 50%;
    margin-bottom: 16px;
}

.footer-brand p {
    font-size: 1rem;
    color: var(--gold-light);
    font-style: italic;
}

.footer-links h4,
.footer-contact h4 {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--white);
    margin-bottom: 20px;
}

.footer-links a,
.footer-contact a,
.footer-contact span {
    display: block;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 12px;
    transition: color 0.3s;
}

.footer-links a:hover,
.footer-contact a:hover {
    color: var(--gold);
}

.footer-bottom {
    padding: 28px 0;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.3);
}

/* ================================================================
   LIGHTBOX
   ================================================================ */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s var(--ease-out);
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    animation: lightboxFadeIn 0.4s var(--ease-out);
}

@keyframes lightboxFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.lightbox-close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s var(--ease-out);
    z-index: 10;
}

html[dir="rtl"] .lightbox-close {
    right: auto;
    left: 24px;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.lightbox-close svg {
    width: 24px;
    height: 24px;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s var(--ease-out);
    z-index: 10;
}

.lightbox-nav:hover {
    background: rgba(201, 169, 110, 0.2);
    color: var(--gold);
}

.lightbox-nav svg {
    width: 24px;
    height: 24px;
}

.lightbox-prev {
    left: 24px;
}

.lightbox-next {
    right: 24px;
}

html[dir="rtl"] .lightbox-prev {
    left: auto;
    right: 24px;
}

html[dir="rtl"] .lightbox-next {
    right: auto;
    left: 24px;
}

.lightbox-counter {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    letter-spacing: 2px;
}

/* ================================================================
   FORM SUCCESS MODAL
   ================================================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s var(--ease-out);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--white);
    border-radius: 24px;
    padding: 48px;
    text-align: center;
    max-width: 420px;
    width: 90%;
    box-shadow: var(--shadow-lg);
    transform: translateY(20px);
    transition: transform 0.4s var(--ease-spring);
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    color: var(--success);
}

.modal-icon svg {
    width: 100%;
    height: 100%;
}

.modal-content h3 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: var(--navy);
    margin-bottom: 12px;
}

html[dir="rtl"] .modal-content h3 {
    font-family: var(--font-arabic);
}

.modal-content p {
    color: var(--gray-400);
    margin-bottom: 28px;
    line-height: 1.7;
}

.modal-content .btn {
    min-width: 160px;
    justify-content: center;
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 1024px) {
    :root {
        --section-pad: 80px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-stats {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .stat-card {
        flex: 1;
        min-width: 200px;
    }

    .project-features {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .contact-info {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .contact-card {
        flex: 1;
        min-width: 200px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .footer-brand {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    :root {
        --section-pad: 60px;
    }

    /* Mobile Nav */
    .nav-hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(14, 20, 27, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 8px;
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s var(--ease-out);
    }

    html[dir="rtl"] .nav-menu {
        right: 0;
        left: 0;
    }

    .nav-menu.active {
        opacity: 1;
        visibility: visible;
    }

    .nav-link {
        font-size: 1.3rem;
        padding: 12px 24px;
    }

    /* Hero */
    .hero {
        min-height: 600px;
    }

    .hero-badge {
        font-size: 0.7rem;
        padding: 6px 18px;
    }

    .hero-ctas {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        padding: 14px 28px;
        font-size: 0.9rem;
    }

    /* About */
    .about-stats {
        flex-direction: column;
    }

    .stat-card {
        min-width: 0;
    }

    /* Project */
    .project-features {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .feature-card {
        padding: 24px 20px;
    }

    html[dir="rtl"] .feature-card {
        text-align: center;
    }

    .feature-icon {
        margin: 0 auto 16px;
    }

    /* Gallery */
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .gallery-item-wide,
    .gallery-item-tall {
        grid-column: auto;
        grid-row: auto;
        aspect-ratio: 4/3;
    }

    /* Contact */
    .contact-form {
        padding: 28px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-info {
        flex-direction: column;
    }

    .contact-card {
        min-width: 0;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .footer-brand {
        grid-column: auto;
    }

    /* Lightbox */
    .lightbox-nav {
        width: 40px;
        height: 40px;
    }

    .lightbox-prev {
        left: 8px;
    }

    .lightbox-next {
        right: 8px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.4rem;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr 1fr;
    }

    .gallery-filters {
        gap: 8px;
    }

    .filter-btn {
        padding: 8px 16px;
        font-size: 0.78rem;
    }
}