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

:root {
    --primary: #c5a85c;
    --primary-hover: #b39449;
    --primary-glow: rgba(197, 168, 92, 0.35);
    --gold-light: #f3e5ab;
    --gold-dark: #8c6e2d;
    --dark-bg: #090d16;
    --dark-card: #121824;
    --dark-surface: #1a2232;
    --light-bg: #f4f6f9;
    --light-card: #ffffff;
    --text-dark: #1e293b;
    --text-light: #f8fafc;
    --text-muted: #64748b;
    --gold-gradient: linear-gradient(135deg, #f5d77f 0%, #c5a85c 50%, #9e7f33 100%);
    --dark-gradient: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    --glass-bg: rgba(255, 255, 255, 0.82);
    --glass-dark: rgba(15, 23, 42, 0.85);
    --glass-border: rgba(255, 255, 255, 0.18);
    --shadow-sm: 0 4px 20px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 12px 35px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 25px 60px rgba(0, 0, 0, 0.14);
    --shadow-glow: 0 0 25px rgba(197, 168, 92, 0.25);
    --transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--light-bg);
    color: var(--text-dark);
    font-size: 14.5px;
    line-height: 1.6;
    overflow-x: hidden;
}

body.lang-ar {
    font-family: 'Cairo', sans-serif;
    direction: rtl;
    text-align: right;
}

body.lang-en {
    font-family: 'Outfit', sans-serif;
    direction: ltr;
    text-align: left;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

/* ============================================
   HEADER & NAVIGATION (GLASSMORPHISM)
   ============================================ */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.04);
    border-bottom: 1px solid rgba(226, 232, 240, 0.7);
    transition: var(--transition);
}

header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    padding: 2px 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    height: 48px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo:hover img {
    transform: scale(1.05);
}

.logo span {
    font-size: 1.15rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.3px;
}

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

.nav-link {
    font-weight: 700;
    font-size: 0.88rem;
    color: #334155;
    position: relative;
    padding: 8px 4px;
    transition: var(--transition);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: -2px;
    background: var(--gold-gradient);
    border-radius: 10px;
    transition: var(--transition);
}

.lang-ar .nav-link::after { right: 0; }
.lang-en .nav-link::after { left: 0; }

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

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 22px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.88rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    outline: none;
}

.btn-primary {
    background: var(--gold-gradient);
    color: #0f172a;
    box-shadow: 0 8px 25px rgba(197, 168, 92, 0.35);
    font-weight: 800;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(197, 168, 92, 0.5);
    color: #000;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: #0f172a;
}

.lang-switch {
    font-weight: 800;
    color: var(--primary);
    border: 1.5px solid rgba(197, 168, 92, 0.5);
    border-radius: 50px;
    padding: 6px 16px;
    font-size: 0.85rem;
    transition: var(--transition);
    background: rgba(197, 168, 92, 0.06);
}

.lang-switch:hover {
    background: var(--primary);
    color: #0f172a;
    box-shadow: 0 4px 15px rgba(197, 168, 92, 0.3);
}

/* ============================================
   HERO SECTION (LUXURY AMBIENT OVERLAY)
   ============================================ */
.hero {
    min-height: 90vh;
    padding-top: 100px;
    padding-bottom: 80px;
    background: linear-gradient(180deg, rgba(9, 13, 22, 0.75) 0%, rgba(15, 23, 42, 0.85) 100%), 
                url('https://images.unsplash.com/photo-1540518614846-7eded433c457?q=80&w=1600') no-repeat center center/cover;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

/* Hero background glowing subtle blur circle */
.hero::before {
    content: '';
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(197, 168, 92, 0.25) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
}

.hero-content {
    max-width: 850px;
    padding: 30px 20px;
    z-index: 10;
    position: relative;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(197, 168, 92, 0.15);
    border: 1px solid rgba(197, 168, 92, 0.4);
    padding: 8px 20px;
    border-radius: 50px;
    color: var(--gold-light);
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 16px;
    line-height: 1.3;
    letter-spacing: -0.5px;
    color: #ffffff;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.hero-title span {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1rem;
    margin-bottom: 28px;
    font-weight: 400;
    color: #cbd5e1;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

/* ============================================
   SEARCH / CHECK AVAILABILITY BAR (FLOATING GLASS)
   ============================================ */
.check-availability-wrapper {
    position: relative;
    margin-top: -65px;
    z-index: 100;
    padding: 0 20px;
    max-width: 1100px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.check-availability {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 32px 35px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(255, 255, 255, 0.8);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 24px;
    align-items: flex-end;
    border: 1px solid rgba(197, 168, 92, 0.25);
    transition: var(--transition);
}

.check-availability:hover {
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.16), 0 0 30px rgba(197, 168, 92, 0.2);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.88rem;
    font-weight: 800;
    color: #1e293b;
    display: flex;
    align-items: center;
}

.form-control {
    width: 100%;
    padding: 13px 16px;
    border: 1.5px solid #cbd5e1;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    outline: none;
    transition: var(--transition);
    background-color: #f8fafc;
    color: #0f172a;
}

.form-control:focus {
    border-color: var(--primary);
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(197, 168, 92, 0.2);
}

/* ============================================
   SECTIONS & CARDS (MODERN LUXURY)
   ============================================ */
.section {
    padding: 100px 20px;
}

.section-title-wrapper {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 900;
    color: #0f172a;
    position: relative;
    display: inline-block;
    padding-bottom: 14px;
    letter-spacing: -0.5px;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 70px;
    height: 4px;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gold-gradient);
    border-radius: 10px;
}

/* Features Grid */
.features-grid {
    max-width: 1240px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.feature-card {
    background: #ffffff;
    padding: 42px 32px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(226, 232, 240, 0.8);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gold-gradient);
    opacity: 0;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.12), 0 0 20px rgba(197, 168, 92, 0.15);
    border-color: rgba(197, 168, 92, 0.3);
}

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

.feature-icon {
    font-size: 2.8rem;
    margin-bottom: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background: rgba(197, 168, 92, 0.08);
    border: 1px solid rgba(197, 168, 92, 0.2);
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
    background: rgba(197, 168, 92, 0.15);
}

.feature-card h3 {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 12px;
    color: #0f172a;
}

.feature-card p {
    color: #64748b;
    font-size: 0.88rem;
    line-height: 1.6;
}

/* ============================================
   APARTMENTS SECTION
   ============================================ */
.apartments-section {
    background: linear-gradient(180deg, #f1f5f9 0%, #e2e8f0 100%);
}

.apartments-grid {
    max-width: 1240px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 32px;
}

.apartment-card {
    background: #ffffff;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(226, 232, 240, 0.9);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.apartment-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.14), 0 0 25px rgba(197, 168, 92, 0.2);
    border-color: rgba(197, 168, 92, 0.4);
}

.apartment-image {
    position: relative;
    height: 260px;
    overflow: hidden;
}

.apartment-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.apartment-card:hover .apartment-image img {
    transform: scale(1.09);
}

.apartment-price {
    position: absolute;
    bottom: 16px;
    background: rgba(15, 23, 42, 0.88);
    color: var(--primary);
    padding: 9px 18px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 800;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(197, 168, 92, 0.4);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.lang-ar .apartment-price { right: 16px; }
.lang-en .apartment-price { left: 16px; }

.apartment-content {
    padding: 32px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.apartment-title {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 12px;
    color: #0f172a;
}

.apartment-desc {
    color: #64748b;
    font-size: 0.88rem;
    margin-bottom: 20px;
    flex-grow: 1;
    line-height: 1.65;
}

.apartment-details {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 28px;
    padding-top: 18px;
    border-top: 1px solid #f1f5f9;
}

.detail-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    font-weight: 700;
    color: #334155;
    background: #f8fafc;
    padding: 6px 14px;
    border-radius: 50px;
    border: 1px solid #e2e8f0;
}

.detail-item i {
    color: var(--primary);
}

/* ============================================
   GALLERY SECTION (GRID)
   ============================================ */
.gallery-section {
    max-width: 1240px;
    margin: 0 auto;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    height: 270px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* ============================================
   MODAL POPUP (LUXURY GLASS)
   ============================================ */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    background: rgba(9, 13, 22, 0.75);
    backdrop-filter: blur(12px);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
    padding: 20px;
}

.modal.active {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    background: #ffffff;
    width: 100%;
    max-width: 620px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.3);
    transform: scale(0.92);
    transition: var(--transition);
    border: 1px solid rgba(197, 168, 92, 0.3);
}

.modal.active .modal-content {
    transform: scale(1);
}

.modal-header {
    background: var(--dark-gradient);
    color: white;
    padding: 24px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(197, 168, 92, 0.3);
}

.modal-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--primary);
}

.modal-close {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.4rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

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

.modal-body {
    padding: 32px;
    max-height: 82vh;
    overflow-y: auto;
}

/* ============================================
   FOOTER SECTION (OBSIDIAN DARK)
   ============================================ */
footer {
    background-color: #090d16;
    color: #f8fafc;
    padding: 85px 20px 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-container {
    max-width: 1240px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 45px;
    margin-bottom: 60px;
}

.footer-col h3 {
    color: var(--primary);
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 24px;
    letter-spacing: -0.3px;
}

.footer-col p {
    color: #94a3b8;
    line-height: 1.8;
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-col ul li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: #cbd5e1;
    font-size: 0.95rem;
}

.footer-col ul li i {
    color: var(--primary);
    font-size: 1.1rem;
    margin-top: 3px;
}

.footer-bottom {
    max-width: 1240px;
    margin: 0 auto;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
    color: #64748b;
    font-size: 0.9rem;
}

.footer-bottom span {
    color: var(--primary);
    font-weight: 700;
}

/* ============================================
   CONTACT SECTION STYLES
   ============================================ */
.contact-section-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: stretch;
}

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

.map-card-wrapper {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 12px 35px rgba(0,0,0,0.08);
    border: 1px solid #cbd5e1;
    height: 260px;
    width: 100%;
}

.contact-dark-card {
    background: var(--dark-gradient);
    border-radius: 20px;
    padding: 30px;
    color: #fff;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid rgba(197,168,92,0.3);
}

.directions-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--gold-gradient);
    color: #0f172a;
    padding: 13px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 800;
    margin-top: 20px;
    transition: all 0.3s;
}

.directions-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(197,168,92,0.4);
    color: #000;
}

.contact-form-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 35px;
    box-shadow: 0 12px 35px rgba(0,0,0,0.06);
    border: 1px solid #cbd5e1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.form-row-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

/* Mobile Menu Button & Mobile Navbar Toggle */
.mobile-menu-btn {
    display: none !important;
    background: transparent;
    border: 2px solid rgba(197, 168, 92, 0.4);
    border-radius: 10px;
    color: #0f172a;
    font-size: 1.4rem;
    padding: 8px 14px;
    cursor: pointer;
    transition: var(--transition);
}

.mobile-menu-btn:hover {
    background: rgba(197, 168, 92, 0.15);
    color: var(--primary);
}

.mobile-only-actions {
    display: none !important;
}

/* ============================================
   MOBILE RESPONSIVE
   ============================================ */
@media (max-width: 992px) {
    .contact-section-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex !important;
        align-items: center;
        justify-content: center;
    }

    .nav-actions {
        display: none !important;
    }

    .nav-menu {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
        padding: 25px 20px;
        gap: 14px;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
        border-bottom: 3px solid var(--primary);
        transform: translateY(-150%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 999;
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-menu .nav-link {
        font-size: 1.1rem;
        padding: 12px 0;
        border-bottom: 1px solid #f1f5f9;
        display: block;
        text-align: center;
        width: 100%;
    }

    .mobile-only-actions {
        display: flex !important;
        flex-direction: column;
        gap: 12px;
        margin-top: 10px;
        align-items: center;
        width: 100%;
    }

    .mobile-only-actions .lang-switch {
        padding: 8px 20px;
        border-radius: 50px;
        background: #f1f5f9;
        font-weight: 700;
        color: #334155;
    }

    .hero-title {
        font-size: 2.1rem;
        line-height: 1.3;
    }
    .hero-subtitle {
        font-size: 1rem;
    }
    .check-availability {
        grid-template-columns: 1fr;
        padding: 20px;
    }
    .check-availability-wrapper {
        margin-top: -40px;
    }
    .apartments-grid, .features-grid, .gallery-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .contact-form-card {
        padding: 24px 18px;
        border-radius: 16px;
    }
    .contact-dark-card {
        padding: 24px 18px;
        border-radius: 16px;
    }
    .map-card-wrapper {
        height: 220px;
        border-radius: 16px;
    }
    .form-row-2col {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-bottom: 0;
    }
}

