/* ============================================
   AVARRA BY PALACE - LUXURY LANDING PAGE
   Premium Real Estate Styling
   ============================================ */

/* CSS Variables */
:root {
    /* Colors - Luxury Palette */
    --color-bg: #0a0a0a;
    --color-bg-secondary: #111111;
    --color-bg-tertiary: #1a1a1a;
    --color-text: #ffffff;
    --color-text-muted: #8a8a8a;
    --color-text-subtle: #5a5a5a;
    --color-gold: #c9a962;
    --color-gold-light: #e4d4a5;
    --color-gold-dark: #8b7355;
    --color-champagne: #f5e6c4;
    --color-cream: #faf8f5;
    
    /* Typography */
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Montserrat', -apple-system, sans-serif;
    
    /* Spacing */
    --section-padding: clamp(5rem, 12vw, 10rem);
    --container-max: 87.5rem;
    --container-padding: clamp(1.25rem, 5vw, 3.75rem);
    
    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-luxury: 1s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ============================================
   BASE STYLES
   ============================================ */

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--color-gold) var(--color-bg);
}

body {
    font-family: var(--font-body);
    font-weight: 300;
    line-height: 1.7;
    color: var(--color-text);
    background: var(--color-bg);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.no-scroll {
    overflow: hidden;
}

::selection {
    background: var(--color-gold);
    color: var(--color-bg);
}

::-webkit-scrollbar {
    width: 0.5rem;
}

::-webkit-scrollbar-track {
    background: var(--color-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--color-gold-dark);
    border-radius: 0.25rem;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-gold);
}

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

p {
    font-weight: 400;
    color: #b8b8b8;
}

a {
    color: inherit;
    text-decoration: none;
}

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

/* Container */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.section {
    padding: var(--section-padding) 0;
    position: relative;
}

/* ============================================
   CURSOR GLOW EFFECT
   ============================================ */

.cursor-glow {
    position: fixed;
    width: 25rem;
    height: 25rem;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(201, 169, 98, 0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease;
    opacity: 0;
}

.cursor-glow.active {
    opacity: 1;
}

@media (max-width: 768px) {
    .cursor-glow {
        display: none;
    }
}

/* ============================================
   PRELOADER
   ============================================ */

.preloader {
    position: fixed;
    inset: 0;
    background: var(--color-bg);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader-content {
    text-align: center;
}

.preloader-logo {
    margin-bottom: 2.5rem;
}

.preloader-logo .logo-text {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 300;
    letter-spacing: 0.4em;
    color: var(--color-text);
    display: block;
}

.preloader-logo .logo-sub {
    font-family: var(--font-display);
    font-size: clamp(1rem, 2vw, 1.5rem);
    font-style: italic;
    letter-spacing: 0.2em;
    display: block;
    margin-top: 0.5rem;
}

.preloader-logo .palace-logo-img {
    width: auto;
    height: 4rem;
    display: block;
    margin: 0.5rem auto 0;
    opacity: 0.9;
}

.preloader-bar {
    width: 12.5rem;
    height: 1px;
    background: var(--color-text-subtle);
    margin: 0 auto;
    overflow: hidden;
}

.preloader-progress {
    height: 100%;
    width: 0;
    background: var(--color-gold);
    animation: preloaderProgress 2s ease-in-out forwards;
}

@keyframes preloaderProgress {
    0% { width: 0; }
    100% { width: 100%; }
}

.preloader-eivan-logo {
    margin-top: 2.5rem;
    opacity: 0;
    animation: fadeIn 0.8s ease 0.5s forwards;
    display: flex;
    justify-content: center;
    align-items: center;
}

.preloader-eivan-logo .eivan-logo-img {
    height: 6rem;
    width: auto;
    opacity: 0.8;
    display: block;
    margin: 0 auto;
}

/* ============================================
   NAVIGATION
   ============================================ */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: all var(--transition-base);
    background: linear-gradient(180deg, rgba(10, 10, 10, 0.7) 0%, rgba(10, 10, 10, 0.3) 60%, transparent 100%);
    backdrop-filter: blur(8px);
}

.nav.scrolled {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    padding: 1rem 0;
    border-bottom: 1px solid rgba(201, 169, 98, 0.1);
}

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

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

.nav-logo-img {
    height: 3.125rem;
    width: auto;
    transition: opacity var(--transition-base);
}

.nav-logo:hover .nav-logo-img {
    opacity: 0.8;
}

.logo-avarra {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: 0.3em;
    color: var(--color-text);
}

.logo-palace {
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-style: italic;
    color: var(--color-gold);
    letter-spacing: 0.15em;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    list-style: none;
}

.nav-link {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-text);
    transition: color var(--transition-fast);
    position: relative;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-gold);
    transition: width var(--transition-base);
}

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

.nav-link:hover::after {
    width: 100%;
}

.nav-link.nav-cta {
    padding: 0.75rem 1.5rem;
    border: 1px solid var(--color-gold);
    color: var(--color-gold);
    transition: all var(--transition-base);
    text-shadow: none;
    background: rgba(201, 169, 98, 0.1);
}

.nav-link.nav-cta::after {
    display: none;
}

.nav-link.nav-cta:hover {
    background: var(--color-gold);
    color: var(--color-bg);
}

.nav-social {
    display: none;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 0.375rem;
    padding: 0.5rem;
}

.nav-toggle span {
    display: block;
    width: 1.5rem;
    height: 1px;
    background: var(--color-text);
    transition: all var(--transition-base);
}

@media (max-width: 992px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        max-width: 25rem;
        height: 100vh;
        background: var(--color-bg);
        flex-direction: column;
        justify-content: flex-start;
        gap: 2rem;
        padding: 5rem 2rem 3rem;
        transition: right var(--transition-luxury);
        z-index: 999;
        overflow-y: auto;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-social-item {
        padding-top: 15rem;
        margin-top: 1rem;
        list-style: none;
        border-top: 1px solid var(--color-bg-tertiary);
    }

    .nav-social {
        display: flex;
        justify-content: center;
        gap: 1.5rem;
        width: 100%;
    }

    .nav-social-link {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 2.5rem;
        height: 2.5rem;
        border: 1px solid var(--color-gold);
        border-radius: 50%;
        color: var(--color-gold);
        transition: all var(--transition-base);
        text-decoration: none;
        background: rgba(201, 169, 98, 0.1);
    }

    .nav-social-link:hover {
        border-color: var(--color-gold-light);
        color: var(--color-gold-light);
        transform: translateY(-0.25rem);
        box-shadow: 0 0 1rem rgba(201, 169, 98, 0.6), 0 0 2rem rgba(201, 169, 98, 0.4);
        background: rgba(201, 169, 98, 0.2);
    }

    .nav-social-link .material-symbols-outlined {
        font-size: 1.25rem;
        font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
        color: var(--color-gold);
        transition: all var(--transition-base);
    }

    .nav-social-link:hover .material-symbols-outlined {
        font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
        color: var(--color-gold-light);
    }

    .nav-social-link .social-icon {
        width: 1.25rem;
        height: 1.25rem;
        color: var(--color-gold);
        transition: all var(--transition-base);
    }

    .nav-social-link:hover .social-icon {
        color: var(--color-gold-light);
        filter: drop-shadow(0 0 0.5rem rgba(201, 169, 98, 0.8));
    }

    .nav-toggle {
        display: flex;
        z-index: 1002;
        position: relative;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: translateY(0.4375rem) rotate(45deg);
    }

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

    .nav-toggle.active span:nth-child(3) {
        transform: translateY(-0.4375rem) rotate(-45deg);
    }

    .nav-link {
        font-size: 1rem;
    }
    
    .nav-logo-img {
        height: 2.5rem;
    }
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

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

.hero-video,
.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-video {
    transform: scale(1.05);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(10, 10, 10, 0.4) 0%,
        rgba(10, 10, 10, 0.6) 50%,
        rgba(10, 10, 10, 0.9) 100%
    );
}

/* Hero Play Button (iOS Fallback) */
.hero-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
    background: rgba(201, 169, 98, 0.9);
    border: 2px solid var(--color-gold-light);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-base);
    box-shadow: 0 0 30px rgba(201, 169, 98, 0.4);
}

.hero-play-btn svg {
    width: 2rem;
    height: 2rem;
    color: var(--color-bg);
    margin-left: 0.25rem;
}

.hero-play-btn:hover {
    background: var(--color-gold-light);
    transform: translate(-50%, -50%) scale(1.1);
}

.hero-play-btn.visible {
    opacity: 1;
    visibility: visible;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 0 1.25rem;
    max-width: 75rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.75rem;
    border: 1px solid var(--color-gold);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.3em;
    color: var(--color-gold);
    margin-bottom: 2.5rem;
    margin-top: 5rem;
    opacity: 0;
    transform: translateY(-1.25rem);
    background: rgba(10, 10, 10, 0.6);
    backdrop-filter: blur(0.625rem);
}

.hero-badge.animated {
    animation: fadeDown 1s var(--transition-luxury) forwards;
}

.emaar-badge-logo {
    height: 1.25rem;
    width: auto;
    filter: invert(1);
}

.hero-title {
    font-family: var(--font-display);
    font-weight: 200;
    margin-bottom: 1.25rem;
    margin-top: -3.125rem;
}

.hero-title .title-main {
    display: block;
    font-size: clamp(2.5rem, 8vw, 6rem);
    letter-spacing: 0.3em;
    line-height: 1.1;
    opacity: 0;
    transform: translateY(2.5rem);
}

.hero-title .title-main.animated {
    animation: fadeUp 1s var(--transition-luxury) forwards;
}

.hero-title .title-accent {
    font-size: clamp(1.5rem, 4vw, 3rem);
    font-style: italic;
    color: var(--color-gold);
    letter-spacing: 0.15em;
    margin: 0 0.3em;
}

.hero-divider {
    width: 6.25rem;
    height: 1px;
    background: var(--color-gold);
    margin: 13rem auto;
    transform: scaleX(0);
    transform-origin: center;
}

.hero-divider.animated {
    animation: scaleX 1s var(--transition-luxury) 0.3s forwards;
}

.hero-info-bottom {
    position: absolute;
    left: var(--container-padding);
    z-index: 2;
    text-align: left;
    max-width: 25rem;
    padding: 2rem;
    background: rgba(10, 10, 10, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(201, 169, 98, 0.2);
    border-radius: 0.5rem;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 300;
    letter-spacing: 0.1em;
    color: #b8b8b8;
    line-height: 1.6;
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateY(1.25rem);
}

.hero-subtitle.animated {
    animation: fadeUp 1s var(--transition-luxury) 0.4s forwards;
}

.hero-location {
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 0.2em;
    color: var(--color-gold);
    margin-bottom: 0;
    opacity: 0;
    transform: translateY(1.25rem);
}

.hero-location.animated {
    animation: fadeUp 1s var(--transition-luxury) 0.5s forwards;
}

.location-icon {
    margin-right: 0.5rem;
    font-size: 0.7rem;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(1.25rem);
}

.hero-cta.animated {
    animation: fadeUp 1s var(--transition-luxury) 0.6s forwards;
}

.hero-scroll {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    right: auto;
    transform: translateX(-50%) translateY(2.5rem);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    opacity: 0;
    text-align: center;
    white-space: nowrap;
    margin: 0;
    padding: 0;
}

.hero-scroll.animated {
    animation: fadeUpCentered 1s var(--transition-luxury) 0.8s forwards;
}

.hero-scroll span {
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

.scroll-line {
    width: 1px;
    height: 3.75rem;
    background: linear-gradient(180deg, var(--color-gold), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(1); }
    50% { opacity: 1; transform: scaleY(1.1); }
}

.hero-stats {
    position: absolute;
    right: var(--container-padding);
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.stat-item {
    text-align: right;
    opacity: 0;
    transform: translateX(1.25rem);
    padding: 1.5rem;
    background: rgba(10, 10, 10, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(201, 169, 98, 0.2);
    border-radius: 0.5rem;
    min-width: 8rem;
}

.stat-item.animated {
    animation: fadeLeft 1s var(--transition-luxury) forwards;
}

.stat-value {
    display: block;
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 300;
    color: var(--color-gold);
    line-height: 1;
}

.stat-label {
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

@media (max-width: 992px) {
    .hero-stats {
        display: none;
    }

    .hero-info-bottom {
        bottom: 6.25rem;
        left: 1.25rem;
        right: 1.25rem;
        text-align: center;
        max-width: 100%;
        padding: 1.5rem;
        background: rgba(10, 10, 10, 0.4);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border: 1px solid rgba(201, 169, 98, 0.2);
        border-radius: 0.5rem;
    }
    
    .hero-subtitle,
    .hero-location {
        text-align: center;
    }
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.btn-arrow {
    width: 1.25rem;
    height: 1.25rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform var(--transition-base);
}

.btn:hover .btn-arrow {
    transform: translateX(0.25rem);
}

.btn-primary {
    background: var(--color-gold);
    color: var(--color-bg);
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.btn-primary:hover::before {
    transform: translateX(100%);
}

.btn-primary:hover {
    background: var(--color-gold-light);
    transform: translateY(-0.125rem);
    box-shadow: 0 0.625rem 2.5rem rgba(201, 169, 98, 0.3);
}

.btn-outline {
    border: 1px solid var(--color-text-muted);
    color: var(--color-text);
}

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

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

/* ============================================
   SECTION ELEMENTS
   ============================================ */

.section-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.3em;
    color: var(--color-gold);
    margin-bottom: 1.5rem;
    position: relative;
    padding-left: 2.5rem;
}

.section-tag::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 1.5rem;
    height: 1px;
    background: var(--color-gold);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 300;
    line-height: 1.2;
    letter-spacing: 0.05em;
    margin-bottom: 2rem;
}

.section-title.centered {
    text-align: center;
}

.section-title .highlight {
    color: var(--color-gold);
    font-style: italic;
}

.section-subtitle {
    font-size: 1rem;
    font-weight: 400;
    color: #b8b8b8;
    max-width: 37.5rem;
    margin: 0 auto 3.75rem;
    text-align: center;
}

/* ============================================
   ABOUT SECTION
   ============================================ */

.about {
    background: var(--color-bg);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

@media (max-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 3.75rem;
    }
}

.about-content {
    padding-right: 2.5rem;
}

@media (max-width: 992px) {
    .about-content {
        padding-right: 0;
        order: 2;
    }
}

.about-text {
    margin-bottom: 2.5rem;
}

.about-text p {
    font-weight: 400;
    color: #b8b8b8;
    margin-bottom: 1.5rem;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-bg-tertiary);
    transition: all var(--transition-base);
}

.feature-item:hover {
    border-color: var(--color-gold);
    transform: translateX(0.25rem);
}

.feature-icon {
    color: var(--color-gold);
    font-size: 0.8rem;
}

.feature-text {
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.05em;
}

.about-image {
    position: relative;
}

@media (max-width: 992px) {
    .about-image {
        order: 1;
    }
}

.image-frame {
    position: relative;
    overflow: hidden;
}

.image-frame img {
    width: 100%;
    height: 37.5rem;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.image-frame:hover img {
    transform: scale(1.05);
}

.image-accent {
    position: absolute;
    top: -1.25rem;
    right: -1.25rem;
    width: 100%;
    height: 100%;
    border: 1px solid var(--color-gold);
    z-index: -1;
}

@media (max-width: 768px) {
    .image-frame img {
        height: 25rem;
    }
    
    .image-accent {
        display: none;
    }
}

/* ============================================
   GALLERY SECTION
   ============================================ */

.gallery {
    background: var(--color-bg-secondary);
    padding-bottom: 0;
}

.gallery-header {
    text-align: center;
    padding: 0 var(--container-padding);
    margin-bottom: 3.75rem;
}

.gallery-carousel-wrapper {
    overflow: hidden;
    width: 100%;
    position: relative;
    padding: 1rem 0;
}

.gallery-carousel-track {
    display: flex;
    gap: 0.75rem;
    width: fit-content;
    animation: scrollGallery 60s linear infinite;
    will-change: transform;
}

.gallery-carousel-track:hover {
    animation-play-state: paused;
}

@keyframes scrollGallery {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.gallery-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    flex-shrink: 0;
    width: 25rem;
    height: 21.875rem;
}

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

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

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(10, 10, 10, 0.8) 100%);
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity var(--transition-base);
}

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

.gallery-label {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-style: italic;
    color: var(--color-champagne);
    transform: translateY(0.625rem);
    transition: transform var(--transition-base);
}

.gallery-item:hover .gallery-label {
    transform: translateY(0);
}

@media (max-width: 992px) {
    .gallery-item {
        width: 20rem;
        height: 18.75rem;
    }
}

@media (max-width: 576px) {
    .gallery-item {
        width: 18rem;
        height: 16rem;
    }
    
    .gallery-carousel-track {
        gap: 0.5rem;
    }
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 10, 0.95);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
}

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

.lightbox-image {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    transform: scale(0.9);
    transition: transform var(--transition-luxury);
}

.lightbox.active .lightbox-image {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 2rem;
    color: var(--color-text);
    cursor: pointer;
    transition: color var(--transition-fast);
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close:hover {
    color: var(--color-gold);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    color: var(--color-text);
    padding: 1.25rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.lightbox-nav:hover {
    color: var(--color-gold);
}

.lightbox-prev {
    left: 1.5rem;
}

.lightbox-next {
    right: 1.5rem;
}

/* ============================================
   AMENITIES SECTION
   ============================================ */

.amenities {
    background: var(--color-bg);
}

.amenities .container {
    max-width: 120rem;
}

.amenities-header {
    text-align: center;
    margin-bottom: 5rem;
}

.amenities-grid {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 1.5rem 1rem;
}

@media (max-width: 1400px) {
    .amenities-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 2rem 1.5rem;
    }
}

@media (max-width: 992px) {
    .amenities-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 576px) {
    .amenities-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.5rem;
    }
    
    .amenity-card:nth-child(9) {
        grid-column: 2;
    }
    
    .amenity-card:nth-child(10) {
        grid-column: 3;
    }
}

.amenity-card {
    padding: 1.5rem 1rem;
    background: transparent;
    border: none;
    text-align: center;
    transition: all var(--transition-base);
    position: relative;
}

.amenity-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(201, 169, 98, 0.03) 0%, transparent 100%);
    opacity: 0;
    transition: opacity var(--transition-base);
    border-radius: 0.5rem;
}

.amenity-card:hover::before {
    opacity: 1;
}

.amenity-card:hover {
    transform: translateY(-0.75rem);
}

.amenity-card:hover .amenity-title {
    color: var(--color-gold-light);
}

.amenity-icon {
    width: 2.5rem;
    height: 2.5rem;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.amenity-icon::after {
    content: '';
    position: absolute;
    inset: -0.5rem;
    background: radial-gradient(circle, rgba(201, 169, 98, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    opacity: 0;
    transition: opacity var(--transition-base);
}

.amenity-card:hover .amenity-icon::after {
    opacity: 1;
}

.amenity-icon .material-symbols-outlined {
    font-size: 2rem;
    color: var(--color-gold);
    font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 48;
    transition: all var(--transition-base);
    line-height: 1;
    position: relative;
    z-index: 1;
}

.amenity-card:hover .amenity-icon .material-symbols-outlined {
    transform: scale(1.15);
    color: var(--color-gold-light);
    filter: drop-shadow(0 0 1rem rgba(201, 169, 98, 0.6));
    font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 48;
}

.amenity-title {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
    color: var(--color-text);
    transition: color var(--transition-base);
    letter-spacing: 0.02em;
}

.amenity-desc {
    font-size: 0.75rem;
    font-weight: 400;
    color: #b8b8b8;
    line-height: 1.5;
    max-width: 16rem;
    margin: 0 auto;
    transition: color var(--transition-base);
}

.amenity-card:hover .amenity-desc {
    color: var(--color-text);
}

/* ============================================
   GOLDEN VISA SECTION
   ============================================ */

.golden-visa {
    background: var(--color-bg);
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(201, 169, 98, 0.1);
    border-bottom: 1px solid rgba(201, 169, 98, 0.1);
}

.golden-visa::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(201, 169, 98, 0.03) 0%, transparent 70%);
    pointer-events: none;
}

.golden-visa-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 50rem;
    margin: 0 auto;
    padding: 2rem 0;
}

.golden-visa-icon {
    width: 5rem;
    height: 5rem;
    margin: 0 auto 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.golden-visa-icon::before {
    content: '';
    position: absolute;
    inset: -0.5rem;
    background: radial-gradient(circle, rgba(201, 169, 98, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: goldenPulse 3s ease-in-out infinite;
}

@keyframes goldenPulse {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.1);
    }
}

.golden-visa-icon .material-symbols-outlined {
    font-size: 4rem;
    color: var(--color-gold);
    font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 48;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 0 1rem rgba(201, 169, 98, 0.6));
}

.golden-visa-text {
    font-size: 1.1rem;
    font-weight: 400;
    color: #b8b8b8;
    line-height: 1.8;
    margin-bottom: 3rem;
    max-width: 45rem;
    margin-left: auto;
    margin-right: auto;
}

.golden-visa-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
    max-width: 40rem;
    margin-left: auto;
    margin-right: auto;
}

.golden-visa-feature {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: rgba(201, 169, 98, 0.03);
    border: 1px solid rgba(201, 169, 98, 0.15);
    transition: all var(--transition-base);
    text-align: left;
}

.golden-visa-feature:hover {
    border-color: rgba(201, 169, 98, 0.4);
    background: rgba(201, 169, 98, 0.06);
    transform: translateX(0.5rem);
    box-shadow: 0 0.5rem 1.5rem rgba(201, 169, 98, 0.1);
}

.feature-check {
    font-size: 1.25rem;
    color: var(--color-gold);
    font-weight: 600;
    min-width: 1.5rem;
}

.feature-text {
    font-size: 0.95rem;
    color: var(--color-text);
    font-weight: 300;
}

.golden-visa-cta {
    display: flex;
    justify-content: center;
}

@media (max-width: 768px) {
    .golden-visa-features {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .golden-visa-feature {
        padding: 0.875rem 1.25rem;
    }
    
    .golden-visa-icon {
        width: 4rem;
        height: 4rem;
        margin-bottom: 1.5rem;
    }
    
    .golden-visa-icon .material-symbols-outlined {
        font-size: 3rem;
    }
    
    .golden-visa-text {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .feature-text {
        font-size: 0.85rem;
    }
}

/* ============================================
   LOCATION SECTION
   ============================================ */

.location {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

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

.location-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.3);
}

.location-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(10, 10, 10, 0.95) 0%, rgba(10, 10, 10, 0.6) 100%);
}

.location .container {
    position: relative;
    z-index: 1;
}

.location-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.location-content {
    max-width: 100%;
}

.location-map {
    position: relative;
    height: 100%;
    min-height: 37.5rem;
}

.map-container {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 37.5rem;
    border: 1px solid rgba(201, 169, 98, 0.2);
    overflow: hidden;
    background: var(--color-bg-secondary);
}

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


@media (max-width: 992px) {
    .location-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .location-map {
        min-height: 25rem;
    }
    
    .map-container {
        min-height: 25rem;
    }
}

.location-text {
    font-size: 1.1rem;
    font-weight: 400;
    color: #b8b8b8;
    margin-bottom: 3rem;
    line-height: 1.8;
}

.location-distances {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.distance-item {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(201, 169, 98, 0.2);
    transition: all var(--transition-base);
}

.distance-item:hover {
    border-color: var(--color-gold);
    background: rgba(201, 169, 98, 0.05);
}

.distance-value {
    display: block;
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 400;
    color: var(--color-gold);
    margin-bottom: 0.5rem;
}

.distance-label {
    font-size: 0.85rem;
    color: #b8b8b8;
}

@media (max-width: 576px) {
    .location-distances {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    
    .distance-item {
        padding: 0.75rem 0.5rem;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }
    
    .distance-value {
        font-size: 1.25rem;
        margin-bottom: 0;
        display: inline;
    }
    
    .distance-label {
        font-size: 0.65rem;
        line-height: 1.3;
        display: inline;
    }
}

/* ============================================
   PAYMENT PLAN SECTION
   ============================================ */

.payment-plan {
    background: var(--color-bg);
}

.payment-plan-header {
    text-align: center;
    margin-bottom: 4rem;
}

.unit-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.unit-tab {
    padding: 1rem 2rem;
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    background: transparent;
    border: 1px solid var(--color-bg-tertiary);
    cursor: pointer;
    transition: all var(--transition-base);
    position: relative;
}

.unit-tab:hover {
    color: var(--color-text);
    border-color: var(--color-gold);
}

.unit-tab.active {
    color: var(--color-gold);
    border-color: var(--color-gold);
    background: rgba(201, 169, 98, 0.05);
}

.unit-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--color-gold);
}

.unit-content-wrapper {
    position: relative;
    min-height: 31.25rem;
    margin-bottom: 5rem;
}

.unit-content {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.unit-content.active {
    display: block;
}

.unit-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.unit-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.unit-note {
    grid-column: 1;
    align-self: start;
    margin-top: 0;
    padding-top: 2rem;
}

.unit-specs {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.spec-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--color-bg-tertiary);
}

.spec-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.spec-item:last-child {
    border-bottom: none;
}

.spec-label {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

.spec-value {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--color-text);
}

.spec-value.price {
    font-size: 2rem;
    color: var(--color-gold);
}

.unit-note {
    font-size: 0.75rem;
    color: #b8b8b8;
    font-style: italic;
    line-height: 1.6;
}

.unit-floorplan {
    position: relative;
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-bg-tertiary);
    padding: 2rem;
    transition: all var(--transition-base);
}

.unit-floorplan:hover {
    border-color: var(--color-gold);
    transform: translateY(-0.25rem);
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.3);
}

.floorplan-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform var(--transition-base);
    cursor: pointer;
}

.unit-floorplan:hover .floorplan-image {
    transform: scale(1.02);
}

.payment-plan-details {
    margin-top: 5rem;
    padding-top: 5rem;
    border-top: 1px solid var(--color-bg-tertiary);
}

.payment-plan-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: start;
}

.payment-plan-title {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 400;
    margin: 1.5rem 0;
    color: var(--color-text);
}

.payment-plan-text {
    font-size: 1rem;
    font-weight: 400;
    color: #b8b8b8;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.payment-plan-cta {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.payment-stages {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.payment-stage {
    display: flex;
    gap: 2rem;
    padding: 2rem;
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-bg-tertiary);
    transition: all var(--transition-base);
}

.payment-stage:hover {
    border-color: var(--color-gold);
    transform: translateX(0.5rem);
}

.stage-percentage {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 300;
    color: var(--color-gold);
    line-height: 1;
    min-width: 5rem;
}

.stage-content {
    flex: 1;
}

.stage-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 400;
    margin-bottom: 0.75rem;
    color: var(--color-text);
}

.stage-desc {
    font-size: 0.9rem;
    font-weight: 400;
    color: #b8b8b8;
    line-height: 1.6;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(1rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 992px) {
    .unit-details-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .payment-plan-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .payment-plan-cta {
        flex-direction: row;
        gap: 1rem;
    }
    
    .payment-plan-cta .btn {
        flex: 1;
    }
}

@media (max-width: 576px) {
    .unit-tabs {
        gap: 0.5rem;
    }
    
    .unit-tab {
        padding: 0.75rem 1.25rem;
        font-size: 0.75rem;
    }
    
    .stage-percentage {
        font-size: 2rem;
        min-width: 4rem;
    }
}

/* ============================================
   CONTACT SECTION
   ============================================ */

.contact {
    background: var(--color-bg-secondary);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: start;
}

@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3.75rem;
    }
}

.contact-text {
    font-size: 1.1rem;
    font-weight: 400;
    color: #b8b8b8;
    margin-bottom: 2rem;
}

.contact-details {
    display: flex;
    gap: 3rem;
}

.contact-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.contact-label {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-gold);
}

.contact-value {
    font-size: 1rem;
    font-weight: 400;
    color: var(--color-text);
}

.contact-logo {
    height: auto;
    width: auto;
}

.contact-logo.eivan-contact {
    height: 3.75rem;
}

.contact-logo.emaar-contact {
    height: 1.75rem;
    filter: invert(1);
}

/* Form Styles */
.contact-form-wrapper {
    background: var(--color-bg);
    padding: 3rem;
    border: 1px solid var(--color-bg-tertiary);
    position: relative;
    z-index: 1;
}

@media (max-width: 576px) {
    .contact-form-wrapper {
        padding: 2rem 1.5rem;
    }
}

.form-group {
    position: relative;
    margin-bottom: 2rem;
    z-index: 1;
}

.form-group-phone {
    z-index: 10002;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem 0;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 300;
    color: var(--color-text);
    background: transparent !important;
    border: none;
    border-bottom: 1px solid var(--color-bg-tertiary);
    outline: none;
    transition: border-color var(--transition-base);
}

/* Prevent browser autofill from making fields white */
.form-group input:-webkit-autofill,
.form-group input:-webkit-autofill:hover,
.form-group input:-webkit-autofill:focus,
.form-group input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px transparent inset !important;
    -webkit-text-fill-color: var(--color-text) !important;
    background: transparent !important;
    background-color: transparent !important;
    transition: background-color 5000s ease-in-out 0s;
}

.form-group input:autofill {
    background: transparent !important;
    background-color: transparent !important;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--color-gold);
}

.form-group label {
    position: absolute;
    left: 0;
    top: 1rem;
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--color-text-muted);
    pointer-events: none;
    transition: all var(--transition-base);
}

.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group select:focus + label,
.form-group select:valid + label,
.form-group textarea:focus + label,
.form-group textarea:not(:placeholder-shown) + label {
    top: -0.5rem;
    font-size: 0.7rem;
    color: var(--color-gold);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.form-group select {
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.form-group select option {
    background: var(--color-bg);
    color: var(--color-text);
}

.form-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-gold);
    transition: width var(--transition-base);
}

.form-group input:focus ~ .form-line,
.form-group select:focus ~ .form-line,
.form-group textarea:focus ~ .form-line {
    width: 100%;
}

.form-group textarea {
    resize: vertical;
    min-height: 6.25rem;
}

.contact-form .btn {
    margin-top: 1rem;
}

/* Phone Input with Country Code */
.form-group-phone {
    position: relative;
}

.form-group-phone label {
    left: 7rem;
}

.form-group-phone:focus-within label,
.form-group-phone.has-value label {
    left: 0;
    top: -0.5rem;
    font-size: 0.7rem;
    color: var(--color-gold);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.phone-input-wrapper {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

/* Country Search Dropdown */
.country-search-wrapper {
    position: relative;
    z-index: 100;
}

.country-search-select {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    cursor: pointer;
    padding: 1rem 0;
    min-width: 6rem;
    width: 6rem;
}

.country-search-select .dropdown-arrow {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    transition: all var(--transition-base);
    margin-left: auto;
}

.country-search-wrapper.active .country-search-select .dropdown-arrow {
    transform: rotate(180deg);
    color: var(--color-gold);
}

.country-search-select:hover .dropdown-arrow {
    color: var(--color-gold);
}

.country-search-input {
    width: 5rem;
    background: transparent;
    border: none;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--color-text);
    cursor: pointer;
    outline: none;
}

.country-search-input::placeholder {
    color: var(--color-text);
}

.country-search-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: -1rem;
    width: 20rem;
    max-height: 0;
    overflow: hidden;
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-bg-tertiary);
    border-radius: 0.5rem;
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 9999;
}

.country-search-dropdown.active {
    max-height: 20rem;
    opacity: 1;
    visibility: visible;
}

.country-search-box {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    border-bottom: 1px solid var(--color-bg-tertiary);
    position: sticky;
    top: 0;
    background: var(--color-bg-secondary);
    z-index: 1;
}

.country-search-box .material-symbols-outlined {
    font-size: 1.25rem;
    color: var(--color-gold);
}

.country-search-box input {
    flex: 1;
    background: transparent;
    border: none;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--color-text);
    outline: none;
}

.country-search-box input::placeholder {
    color: var(--color-text-muted);
}

.country-options {
    max-height: 15rem;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--color-gold) var(--color-bg-tertiary);
}

.country-options::-webkit-scrollbar {
    width: 6px;
}

.country-options::-webkit-scrollbar-track {
    background: var(--color-bg-tertiary);
}

.country-options::-webkit-scrollbar-thumb {
    background: var(--color-gold);
    border-radius: 3px;
}

.country-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    cursor: pointer;
    transition: background 0.2s ease;
}

.country-option:hover {
    background: rgba(201, 169, 98, 0.1);
}

.country-option.selected {
    background: rgba(201, 169, 98, 0.15);
}

.country-option-flag {
    font-size: 1.25rem;
    line-height: 1;
}

.country-option-name {
    flex: 1;
    font-size: 0.9rem;
    color: var(--color-text);
}

.country-option-code {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-gold);
}

/* Unit Type Dropdown */
.form-group-unit {
    position: relative;
}

.form-group-unit:focus-within label,
.form-group-unit.has-value label {
    top: -0.5rem;
    font-size: 0.7rem;
    color: var(--color-gold);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.unit-search-wrapper {
    position: relative;
    z-index: 90;
}

.unit-search-select {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 1rem 0;
}

.unit-search-input {
    flex: 1;
    background: transparent;
    border: none;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--color-text);
    cursor: pointer;
    outline: none;
}

.dropdown-arrow {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    transition: all var(--transition-base);
}

.unit-search-wrapper.active .dropdown-arrow {
    transform: rotate(180deg);
    color: var(--color-gold);
}

.unit-search-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    max-height: 0;
    overflow: hidden;
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-bg-tertiary);
    border-radius: 0.5rem;
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.7);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 9999;
}

.form-group-unit {
    z-index: 80;
}

.unit-search-dropdown.active {
    max-height: 20rem;
    opacity: 1;
    visibility: visible;
}

.unit-options {
    padding: 0.5rem 0;
}

.unit-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    cursor: pointer;
    transition: background 0.2s ease;
}

.unit-option:hover {
    background: rgba(201, 169, 98, 0.1);
}

.unit-option.selected {
    background: rgba(201, 169, 98, 0.15);
}

.unit-option-icon {
    font-size: 1.35rem;
    line-height: 1;
    color: var(--color-gold);
    opacity: 0.8;
    transition: all var(--transition-base);
}

.unit-option:hover .unit-option-icon {
    opacity: 1;
    transform: scale(1.1);
}

.unit-option-name {
    flex: 1;
    font-size: 0.95rem;
    color: var(--color-text);
}

.unit-option:hover .unit-option-name {
    color: var(--color-gold);
}

.form-group-unit .form-line {
    display: none;
}

.phone-number-input {
    flex: 1;
    padding: 1rem 0;
    border: none;
    background: transparent;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 300;
    color: var(--color-text);
}

.phone-number-input:focus {
    outline: none;
}

.form-group-phone .form-line {
    width: 0;
}

.form-group-phone:focus-within .form-line {
    width: 100%;
}

@media (max-width: 576px) {
    .form-group-phone label {
        left: 6.5rem;
    }
    
    .country-search-dropdown {
        width: 18rem;
        left: -0.5rem;
    }
    
    .country-search-input {
        width: 4.5rem;
        font-size: 0.9rem;
    }
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background: var(--color-bg);
    padding: 5rem 0 2.5rem;
    border-top: 1px solid var(--color-bg-tertiary);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 3.75rem;
    flex-wrap: wrap;
    gap: 3rem;
}

.footer-logo {
    margin-bottom: 1rem;
}

.footer-logo-img {
    height: 5rem;
    width: auto;
}

.footer-logo .logo-avarra {
    font-size: 1.75rem;
}

.footer-tagline {
    font-size: 0.9rem;
    font-weight: 400;
    color: #b8b8b8;
    line-height: 1.6;
}

.footer-links {
    display: flex;
    gap: 5rem;
}

@media (max-width: 768px) {
    .footer-links {
        gap: 2.5rem;
    }
}

.footer-col h4 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
    color: var(--color-text);
}

.footer-col a {
    display: block;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-bottom: 0.75rem;
    transition: color var(--transition-fast);
}

.footer-col a:hover {
    color: var(--color-gold);
}

.footer-social {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-social h4 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    color: var(--color-text);
}

.social-links {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border: 1px solid var(--color-gold);
    border-radius: 50%;
    color: var(--color-gold);
    transition: all var(--transition-base);
    text-decoration: none;
    background: rgba(201, 169, 98, 0.1);
}

.social-link:hover {
    border-color: var(--color-gold-light);
    color: var(--color-gold-light);
    transform: translateY(-0.25rem);
    box-shadow: 0 0 1rem rgba(201, 169, 98, 0.6), 0 0 2rem rgba(201, 169, 98, 0.4);
    background: rgba(201, 169, 98, 0.2);
}

.social-link .material-symbols-outlined {
    font-size: 1.25rem;
    font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
    color: var(--color-gold);
    transition: all var(--transition-base);
}

.social-link:hover .material-symbols-outlined {
    font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    color: var(--color-gold-light);
}

.social-link .social-icon {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--color-gold);
    transition: all var(--transition-base);
}

.social-link:hover .social-icon {
    color: var(--color-gold-light);
    filter: drop-shadow(0 0 0.5rem rgba(201, 169, 98, 0.8));
}

.footer-bottom {
    padding-top: 2.5rem;
    border-top: 1px solid var(--color-bg-tertiary);
    text-align: center;
}

.footer-developers {
    margin-bottom: 1.5rem;
}

.developer-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.developer-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.developer-label {
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

.developer-logo {
    height: auto;
    width: auto;
}

.developer-logo.emaar-logo {
    height: 2rem;
    filter: invert(1);
}

.developer-logo.eivan-logo {
    height: 3.125rem;
}

.footer-developers .divider {
    color: var(--color-bg-tertiary);
    font-size: 1.5rem;
}

.footer-disclaimer {
    font-size: 0.75rem;
    color: var(--color-text-subtle);
    margin-bottom: 1rem;
}

.footer-copyright {
    font-size: 0.75rem;
    color: var(--color-text-subtle);
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeUp {
    0% { opacity: 0; transform: translateY(2.5rem); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes fadeUpCentered {
    0% { 
        opacity: 0; 
        transform: translateX(-50%) translateY(2.5rem);
    }
    100% { 
        opacity: 1; 
        transform: translateX(-50%) translateY(0);
    }
}

@keyframes fadeDown {
    0% { opacity: 0; transform: translateY(-1.25rem); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes fadeLeft {
    0% { opacity: 0; transform: translateX(2.5rem); }
    100% { opacity: 1; transform: translateX(0); }
}

@keyframes fadeRight {
    0% { opacity: 0; transform: translateX(-2.5rem); }
    100% { opacity: 1; transform: translateX(0); }
}

@keyframes scaleX {
    0% { transform: scaleX(0); }
    100% { transform: scaleX(1); }
}

/* Animation Triggers */
[data-animate] {
    opacity: 0;
}

[data-animate].animated {
    animation-duration: 1s;
    animation-timing-function: var(--transition-luxury);
    animation-fill-mode: forwards;
}

[data-animate="fade-up"].animated {
    animation-name: fadeUp;
}

[data-animate="fade-down"].animated {
    animation-name: fadeDown;
}

[data-animate="fade-left"].animated {
    animation-name: fadeLeft;
}

[data-animate="fade-right"].animated {
    animation-name: fadeRight;
}

[data-animate="scale-x"].animated {
    animation-name: scaleX;
}

.hero-scroll[data-animate="fade-up"].animated {
    animation-name: fadeUpCentered;
}

/* ============================================
   UTILITIES
   ============================================ */

.text-center { text-align: center; }
.text-gold { color: var(--color-gold); }

@media (max-width: 576px) {
    .hide-mobile { display: none !important; }
}

/* ============================================
   MOBILE ENHANCEMENTS
   ============================================ */

@media (max-width: 768px) {
    /* Enhanced Mobile Typography */
    html {
        font-size: 15px;
    }
    
    /* Hero Section Mobile */
    .hero {
        min-height: 100vh;
        padding-top: 5rem;
    }
    
    .hero-content {
        padding: 0 1.5rem;
    }
    
    .hero-title {
        margin-top: -5rem;
        margin-bottom: 20rem;
    }
    
    .hero-title .title-main {
        font-size: clamp(2rem, 12vw, 3.5rem);
        letter-spacing: 0.2em;
    }
    
    .hero-divider {
        margin: 2rem auto;
    }
    
    .hero-cta {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }
    
    .hero-cta .btn {
        width: 100%;
        justify-content: center;
    }
    
    .hero-info-bottom {
        bottom: 8rem;
        left: 1.5rem;
        right: 1.5rem;
        padding: 1.5rem;
        background: rgba(10, 10, 10, 0.7);
        backdrop-filter: blur(10px);
        border: 1px solid rgba(201, 169, 98, 0.2);
        border-radius: 0.5rem;
    }
    
    .hero-scroll {
        bottom: 1.5rem;
        display: none;
    }
    
    /* Navigation Mobile */
    .nav {
        padding: 1rem 0;
    }
    
    .nav.scrolled {
        padding: 0.75rem 0;
    }
    
    .nav-container {
        padding: 0 1.25rem;
    }
    
    .nav-menu {
        backdrop-filter: blur(20px);
        background: rgba(10, 10, 10, 0.98);
        border-left: 1px solid rgba(201, 169, 98, 0.2);
    }
    
    .nav-link {
        font-size: 1.1rem;
        padding: 0.75rem 0;
    }
    
    .nav-link.nav-cta {
        margin-top: 1rem;
        text-align: center;
    }
    
    /* Section Mobile */
    .section {
        padding: 4rem 0;
    }
    
    .section-title {
        font-size: clamp(1.75rem, 8vw, 2.5rem);
        margin-bottom: 1.5rem;
        line-height: 1.3;
    }
    
    .section-tag {
        font-size: 0.65rem;
        margin-bottom: 1rem;
        padding-left: 2rem;
    }
    
    .section-tag::before {
        width: 1.25rem;
    }
    
    .section-subtitle {
        font-size: 0.9rem;
        margin-bottom: 2.5rem;
    }
    
    /* About Section Mobile */
    .about-grid {
        gap: 3rem;
    }
    
    .about-features {
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }
    
    .feature-item {
        padding: 0.75rem 0.5rem;
        gap: 0.5rem;
    }
    
    .feature-icon {
        font-size: 0.6rem;
    }
    
    .feature-text {
        font-size: 0.7rem;
    }
    
    /* Gallery Mobile */
    .gallery-header {
        margin-bottom: 2.5rem;
    }
    
    .gallery-overlay {
        padding: 1.5rem;
    }
    
    .gallery-label {
        font-size: 1rem;
    }
    
    /* Amenities Mobile */
    .amenities-header {
        margin-bottom: 2rem;
    }
    
    .amenities-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.5rem;
    }
    
    .amenity-card {
        padding: 0.75rem 0.5rem;
    }
    
    .amenity-card::before {
        border-radius: 0.25rem;
    }
    
    .amenity-icon {
        width: 1.75rem;
        height: 1.75rem;
        margin-bottom: 0.5rem;
    }
    
    .amenity-icon .material-symbols-outlined {
        font-size: 1.25rem;
    }
    
    .amenity-title {
        font-size: 0.7rem;
        margin-bottom: 0.25rem;
        line-height: 1.2;
    }
    
    .amenity-desc {
        font-size: 0.6rem;
        max-width: 100%;
        line-height: 1.3;
    }
    
    .amenity-card:nth-child(9) {
        grid-column: 2;
    }
    
    .amenity-card:nth-child(10) {
        grid-column: 3;
    }
    
    /* Location Mobile */
    .location {
        min-height: 60vh;
    }
    
    .location-grid {
        gap: 2.5rem;
    }
    
    .location-distances {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    
    .distance-item {
        padding: 0.75rem 0.5rem;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }
    
    .distance-value {
        font-size: 1.25rem;
        margin-bottom: 0;
        display: inline;
    }
    
    .distance-label {
        font-size: 0.65rem;
        line-height: 1.3;
        display: inline;
    }
    
    /* Payment Plan Mobile */
    .payment-plan-header {
        margin-bottom: 2.5rem;
    }
    
    .unit-tabs {
        gap: 0.375rem;
        margin-bottom: 2rem;
        flex-wrap: nowrap;
        justify-content: space-between;
        padding: 0 0.5rem;
    }
    
    .unit-tab {
        padding: 0.75rem 0.75rem;
        font-size: 0.65rem;
        white-space: nowrap;
        flex: 1;
        min-width: 0;
        text-align: center;
        letter-spacing: 0.05em;
    }
    
    .unit-content-wrapper {
        min-height: auto;
        margin-bottom: 3rem;
    }
    
    .unit-details-grid {
        gap: 2rem;
    }
    
    .unit-note {
        grid-column: auto;
        margin-top: 0;
        margin-top: 1.5rem;
    }
    
    .unit-specs {
        gap: 1.25rem;
    }
    
    .spec-row {
        gap: 1rem;
        padding-bottom: 1.25rem;
    }
    
    .spec-item {
        padding-bottom: 0;
    }
    
    .spec-value {
        font-size: 1.25rem;
    }
    
    .spec-value.price {
        font-size: 1.5rem;
    }
    
    .unit-floorplan {
        padding: 1.5rem;
    }
    
    .payment-plan-details {
        margin-top: 3rem;
        padding-top: 3rem;
    }
    
    .payment-plan-grid {
        gap: 2.5rem;
    }
    
    .payment-plan-title {
        font-size: 1.5rem;
        margin: 1rem 0;
    }
    
    .payment-plan-text {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }
    
    .payment-plan-cta {
        flex-direction: row;
        gap: 0.75rem;
    }
    
    .payment-plan-cta .btn {
        flex: 1;
    }
    
    .payment-stages {
        gap: 1.25rem;
    }
    
    .payment-stage {
        padding: 1.5rem;
        gap: 1.5rem;
    }
    
    .stage-percentage {
        font-size: 2.5rem;
        min-width: 4rem;
    }
    
    .stage-title {
        font-size: 1.1rem;
    }
    
    .stage-desc {
        font-size: 0.85rem;
    }
    
    /* Contact Mobile */
    .contact-grid {
        gap: 2.5rem;
    }
    
    .contact-form-wrapper {
        padding: 2rem 1.5rem;
    }
    
    .form-group {
        margin-bottom: 1.75rem;
    }
    
    /* Footer Mobile */
    .footer {
        padding: 2rem 0;
    }
    
    .footer-content {
        display: none;
    }
    
    .footer-bottom {
        display: block;
        padding-top: 0;
        border-top: none;
    }
    
    .footer-disclaimer {
        font-size: 0.7rem;
        color: var(--color-text-subtle);
        margin-bottom: 1rem;
        text-align: center;
    }
    
    .footer-links {
        flex-direction: row;
        gap: 2rem;
        width: 100%;
        justify-content: space-between;
    }
    
    .footer-col {
        flex: 1;
        min-width: 0;
    }
    
    .footer-col h4 {
        margin-bottom: 1.5rem;
        font-size: 0.9rem;
    }
    
    .footer-col a {
        margin-bottom: 0.875rem;
        font-size: 0.8rem;
    }

    .footer-social {
        width: 100%;
        align-items: center;
        text-align: center;
    }

    .footer-social h4 {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }

    .social-links {
        justify-content: center;
    }
    
    .developer-logos {
        flex-direction: row;
        gap: 1.5rem;
        flex-wrap: nowrap;
        justify-content: center;
    }
    
    .developer-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
    
    .developer-label {
        font-size: 0.7rem;
    }
    
    .developer-logo {
        height: auto;
    }
    
    .developer-logo.emaar-logo {
        height: 2rem;
    }
    
    .developer-logo.eivan-logo {
        height: 2.5rem;
    }
    
    .footer-developers .divider {
        display: inline-block;
        margin: 0 0.5rem;
        color: var(--color-text-subtle);
    }
}

@media (max-width: 480px) {
    /* Extra Small Mobile */
    html {
        font-size: 14px;
    }
    
    .hero-title {
        margin-top: -5rem;
        margin-bottom: 20rem;
    }
    
    .hero-title .title-main {
        font-size: clamp(1.75rem, 10vw, 2.5rem);
        letter-spacing: 0.15em;
    }
    
    .hero-info-bottom {
        bottom: 5rem;
        padding: 1.25rem;
    }
    
    .hero-subtitle {
        font-size: 0.85rem;
        line-height: 1.5;
    }
    
    .hero-location {
        font-size: 0.8rem;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    .container {
        padding: 0 1.25rem;
    }
    
    .btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.7rem;
        min-height: 3rem;
    }
    
    .unit-tab {
        padding: 0.625rem 0.5rem;
        font-size: 0.6rem;
        min-height: 2.5rem;
        letter-spacing: 0.05em;
    }
    
    .spec-value.price {
        font-size: 1.25rem;
    }
    
    .stage-percentage {
        font-size: 2rem;
        min-width: 3.5rem;
    }
}

/* Mobile Touch Enhancements */
@media (max-width: 768px) {
    /* Better touch targets */
    .btn,
    .nav-link,
    .unit-tab,
    .gallery-item {
        -webkit-tap-highlight-color: rgba(201, 169, 98, 0.2);
    }
    
    /* Smooth scrolling on mobile */
    html {
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Enhanced mobile menu backdrop */
    .menu-backdrop {
        position: fixed;
        inset: 0;
        background: rgba(10, 10, 10, 0.85);
        backdrop-filter: blur(10px);
        z-index: 998;
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    
    .menu-backdrop.active {
        opacity: 1;
    }
    
    /* Better form inputs on mobile */
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    /* Enhanced gallery touch */
    .gallery-item {
        touch-action: manipulation;
    }
    
    /* Better button spacing */
    .hero-cta .btn {
        min-height: 3.5rem;
    }
    
    /* Improved payment plan tabs scroll */
    
    /* Enhanced lightbox on mobile */
    .lightbox-close,
    .lightbox-nav {
        min-width: 3rem;
        min-height: 3rem;
    }
    
    /* Better stat display if shown */
    .stat-item {
        text-align: center;
    }
}

/* ============================================
   WHATSAPP FLOATING BUTTON
   ============================================ */

.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 3.5rem;
    height: 3.5rem;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0.25rem 1rem rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: all var(--transition-base);
    animation: pulse 2s ease-in-out infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 0.5rem 1.5rem rgba(37, 211, 102, 0.6);
    background: #20BA5A;
}

.whatsapp-icon {
    width: 1.75rem;
    height: 1.75rem;
    color: #ffffff;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0.25rem 1rem rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 0.25rem 1rem rgba(37, 211, 102, 0.4), 0 0 0 0.625rem rgba(37, 211, 102, 0.1);
    }
}

@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 3.25rem;
        height: 3.25rem;
    }
    
    .whatsapp-icon {
        width: 1.5rem;
        height: 1.5rem;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
    .nav, .preloader, .cursor-glow, .lightbox, .whatsapp-float {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
}

