﻿/* =========================================
   01-VARIABLES
   ========================================= */

:root {
    /* Quiet Luxury Palette */
    --gold: #D4AF37;
    --navy: #000000;
    --gold-muted: #C9A23F;
    --gold-main: #C9A23F;
    --navy-deep: #1A1A1A;
    /* Deep Charcoal instead of Navy */
    /* primary text/accent */
    --bg-accent: #1A1A1A;
    /* primary dark background */
    --bg-primary: #FFFFFF;
    --bg-secondary: #FAFAFA;
    --white: #FFFFFF;

    --text-main: #111827;
    --text-secondary: #6B7280;
    --border-light: rgba(0, 0, 0, 0.06);

    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.03);
    --font-heading: 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
    --header-bg: rgba(255, 255, 255, 0.95);

    /* --- LAYOUT OFFSETS (New) --- */
    --navbar-height-desktop: 120px;
    --navbar-height-mobile: 60px;
    --quick-nav-height: 55px;
    --total-header-mobile: 115px;
    /* Combined mobile height */
    --navbar-height-desktop: 140px;
    /* Combined desktop height */
}

@keyframes searchPulse {
    0% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.8;
        transform: scale(0.99);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.search-refresh-pulse {
    animation: searchPulse 0.6s ease-out;
}

html[data-theme="dark"] {
    --bg-primary: #262626;
    /* Light Charcoal / Dark Grey */
    --bg-secondary: #333333;
    /* Neutral Grey */
    --bg-accent: #171717;
    /* Even darker grey for accent backgrounds */
    --text-main: #f5f5f5;
    --text-secondary: #a1a1aa;

    /* SEMANTIC FIX: Updated for text visibility */
    --navy-deep: #ffffff;
    --gold-main: #D4AF37;

    --white: #404040;
    /* Grey surfaces */
    --header-bg: rgba(38, 38, 38, 0.98);
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.2);
    --border-light: rgba(255, 255, 255, 0.1);
}

/* =========================================
   Z-INDEX SYSTEM
   ========================================= */
:root {
    --z-negative: -1;
    --z-normal: 1;
    --z-dropdown: 100;
    --z-sticky: 500;
    --z-fixed: 1000;
    --z-modal-backdrop: 2000;
    --z-modal: 2001;
    --z-tooltip: 3000;
}

/* =========================================
   02-RESET & BASE
   ========================================= */
html {
    scroll-behavior: smooth;
    /* Prevent anchor overlap */
    scroll-padding-top: var(--navbar-height-desktop);
}

@media (max-width: 991px) {
    html {
        scroll-padding-top: var(--total-header-mobile);
    }
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-main);
    line-height: 1.8;
    overflow-x: hidden;
    font-weight: 400;
}

.is-scrolling {
    pointer-events: none !important;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--text-main);
    font-weight: 500;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease, background-color 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* =========================================
   BUTTONS
   ========================================= */

.btn {
    display: inline-block;
    padding: 14px 32px;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 4px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, color 0.3s ease;
    cursor: pointer;
    border: none;
    text-align: center;
}

/* FIX: Removed duplicate !important rules and consolidated hover states */
.btn-gold {
    background: var(--gold-muted);
    color: #1A1A1A;
    /* Consistent dark contrast on gold */
    position: relative;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.3);
}

.btn-gold.is-animated:hover {
    transform: translateY(-2px);
}

.btn-gold:active {
    transform: translateY(0);
}

.btn-outline {
    border: 1px solid var(--text-secondary);
    color: var(--text-main);
    background: transparent;
}

.btn-outline:hover {
    border-color: var(--navy-deep);
    color: var(--navy-deep);
}

.small-btn {
    padding: 10px 20px;
    font-size: 0.9rem;
}

/* --- Login Button (Base) --- */
.btn-login {
    background: transparent;
    border: 1px solid var(--border-light);
    color: var(--text-main);
    padding: 10px 24px;
    font-size: 0.85rem;
    font-weight: 600;
}

.btn-login:hover {
    background: var(--bg-secondary);
    border-color: var(--gold-muted);
    color: var(--gold-muted);
}

.btn-login.logged-in {
    border: 1px solid var(--border-light);
    color: var(--navy-deep);
    background: transparent;
}

.btn-login.logged-in:hover {
    background: var(--bg-secondary);
    border-color: var(--navy-deep);
}

/* --- Google Professional Button --- */
.btn-google-login {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 16px;
    border-radius: 16px;
    border: 1px solid var(--border-light);
    background: #fff;
    color: var(--navy-deep);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

[data-theme="dark"] .btn-google-login {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.btn-google-login:hover {
    background: #f8fafc;
    border-color: var(--gold-muted);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] .btn-google-login:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--gold-muted);
}

.btn-google-login img {
    height: 22px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.05));
    transition: transform 0.3s ease;
}

.btn-google-login:hover img {
    transform: scale(1.1) rotate(5deg);
}

/* --- Ultra-Premium Login Submit --- */
.btn-login-submit {
    position: relative;
    overflow: hidden;
    width: 100%;
    padding: 18px;
    border: none;
    border-radius: 16px;
    background: linear-gradient(135deg, #A8893F 0%, #D4AF37 50%, #F1D279 100%);
    background-size: 200% auto;
    color: var(--navy-deep);
    font-size: 1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(168, 137, 63, 0.2);
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.5s ease;
    z-index: 1;
}

.btn-login-submit:hover {
    background-position: right center;
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(168, 137, 63, 0.4);
    letter-spacing: 2px;
}

.btn-login-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.6) 50%,
            rgba(255, 255, 255, 0) 100%);
    transform: skewX(-25deg);
    transition: none;
    z-index: 2;
}

.btn-login-submit:hover::before {
    left: 150%;
    transition: all 0.8s ease;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--gold-muted);
    border-radius: 10px;
    border: 2px solid var(--bg-secondary);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--navy-deep);
}

/* =========================================
   03-LAYOUT
   ========================================= */
.section {
    padding: 80px 0;
    position: relative;
}

.container {
    max-width: 1250px;
    margin: 0 auto;
    padding: 0 40px;
}

.grid-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.grid-3col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

@media (max-width: 991px) {

    .grid-2col,
    .grid-3col {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 60px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-subtitle {
    color: var(--gold-muted);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.65rem;
    letter-spacing: 2px;
    margin-bottom: 8px;
    display: block;
}

.section-title {
    font-size: 2.6rem;
    font-weight: 500;
    color: var(--navy-deep);
    line-height: 1.2;
}

[data-theme='dark'] .section-title {
    color: var(--text-main);
}

/* Projects Section specific overrides for long titles */
#projects .section-header {
    max-width: 1000px;
}

#projects .section-title {
    white-space: nowrap;
    font-size: 1rem;
    font-weight: 600;
}

@media (max-width: 1200px) {
    #projects .section-title {
        font-size: 0.9rem;
    }
}

@media (max-width: 900px) {
    #projects .section-title {
        white-space: normal;
        font-size: 0.85rem;
    }
}

#projects .section-subtitle {
    font-family: 'Cinzel', serif;
    /* Font Ù…Ø¹Ù…Ø§Ø±ÙŠ ÙØ®Ù… Ø¬Ø¯Ø§Ù‹ ÙˆÙ…Ù„Ø§Ø¦Ù… Ù„Ù„Ø¹Ù‚Ø§Ø±Ø§Øª */
    font-size: 2.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 25px;
    background: linear-gradient(135deg, #c9a23f 0%, #f1d18a 50%, #c9a23f 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 15px;
}

/* Performance Optimization */
#projects,
#featured-portfolio,
.booking-journey-section {
    content-visibility: auto;
    contain-intrinsic-size: 800px;
}

#projects .section-subtitle::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(to right, transparent, #c9a23f, transparent);
}

/* =========================================
   04-TIMELINE / PROCESS
   ========================================= */
.timeline-container {
    margin-top: 60px;
    overflow-x: auto;
    padding-bottom: 20px;
}

.timeline {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 40px;
    min-width: 1100px;
}

.timeline-item {
    text-align: center;
    flex: 1;
    padding: 12px 10px;
    position: relative;
    transition: transform 0.3s ease;
}

.timeline-item:hover {
    transform: translateY(-5px);
}

.timeline-number {
    width: 32px;
    height: 32px;
    border: 2px solid var(--gold-muted);
    border-radius: 50%;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    position: relative;
    z-index: 2;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.timeline-item:hover .timeline-number {
    background: var(--gold-muted);
    box-shadow: 0 0 15px rgba(201, 162, 63, 0.4);
}

.timeline-item h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--navy-deep);
    margin-bottom: 8px;
}

[data-theme="dark"] .timeline-item h4 {
    color: var(--white);
}

.timeline-item p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* Add a connector line between circles on desktop */
@media (min-width: 992px) {
    .timeline-item:not(:last-child)::after {
        content: '';
        position: absolute;
        top: 16px;
        /* Center of the 32px circle */
        left: calc(50% + 16px);
        width: calc(100% - 32px);
        height: 1px;
        background: var(--border-light);
        opacity: 0.5;
        z-index: 1;
    }
}

:root {
    --top-bar-height: 40px;
    --navbar-height: 80px;
    /* Redundant: Handled by tokens.css but kept for local overrides if needed */
}

/* UTILITY CLASSES (Visibility) */
.mobile-only {
    display: none;
}

.desktop-only {
    display: flex;
}

@media (max-width: 991px) {
    .mobile-only {
        display: flex;
    }

    .desktop-only {
        display: none;
    }
}

/* MAIN HEADER WRAPPER */
.main-header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    overflow: visible;
    /* Removed !important */
}

/* TOP BAR (Inside Header) */
.top-bar {
    background: #FFFFFF;
    height: var(--top-bar-height);
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
    font-size: 0.85rem;
    position: relative;
    z-index: 10;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.top-bar-left,
.top-bar-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.top-bar-contact {
    color: var(--navy-deep);
    text-decoration: none;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.top-bar-link {
    color: var(--text-secondary, #64748b);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    margin-top: 2px;
    /* Move down slightly */
    transition: color 0.3s;
}

.top-bar-link:hover {
    color: var(--gold-main);
}

/* NAVBAR (The Nav Row) */
.navbar {
    height: var(--navbar-height);
    display: flex;
    align-items: center;
    gap: 30px;
    position: relative;
    overflow: visible !important;
}

/* --- THE LOGO (FOCAL POINT) --- */
.logo {
    position: absolute;
    left: 40px;
    top: -40px;
    transform: none;
    width: auto;
    min-width: 150px;
    height: 140px;
    background: transparent;
    z-index: 50000;
    /* Higher than header and sidebar toggles, but below sidebar overlay */
    overflow: visible !important;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
    margin-top: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    padding: 0;
}

.logo img {
    height: clamp(35px, 8vw, 80px);
    /* Responsive Clamp */
    width: auto;
    object-fit: contain;
    display: block;
}

/* ADJUSTMENTS FOR ELEMENTS NEXT TO LOGO */
@media (min-width: 992px) {
    .top-bar-left {
        padding-left: 250px;
        /* Increased to account for potential wider logo */
    }

    nav .nav-links {
        margin-left: 250px;
    }
}

/* SCROLLED STATE - DESKTOP ONLY */
@media (min-width: 992px) {
    .main-header.scrolled {
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    }

    .main-header.scrolled .logo {
        height: 90px;
        top: -30px;
        /* Reduced the drop from -45px to keep it aligned */
        margin-top: 0;
        min-width: 140px;
    }

    .main-header.scrolled .logo img {
        height: 80px !important;
    }

    .main-header.scrolled .navbar {
        height: 70px;
    }
}


/* NAVIGATION LINKS */
.nav-links {
    display: flex;
    list-style: none;
    gap: 15px;
    /* Reduced gap from 30px */
    margin: 0;
    padding: 0;
    align-items: center;
    white-space: nowrap;
    /* Force single line */
    flex-wrap: nowrap;
    /* Prevent wrapping */
}

.nav-links a {
    text-decoration: none;
    color: var(--navy-deep);
    font-weight: 700;
    font-size: 0.95rem;
    padding: 10px 18px;
    transition: 0.3s;
}

.nav-item-btn {
    padding: 10px 18px !important;
    /* Reduced from 24px */
    border-radius: 8px;
    font-weight: 700;
}

.nav-item-btn.active {
    background: #000000 !important;
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.2);
}

.nav-links a:not(.active):hover {
    color: var(--gold-muted);
}

.nav-links a:hover {
    color: var(--gold-muted);
}

/* ACTION BUTTONS */
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}

.action-icon {
    background: #f1f5f9;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    color: var(--navy-deep);
}

/* Top Bar Specific Icon Style */
.topbar-icon {
    width: 30px;
    height: 30px;
    background: transparent;
    font-size: 0.9rem;
}

.topbar-icon:hover {
    background: rgba(0, 0, 0, 0.05);
}

.lang-text-btn {
    background: transparent;
    border: none;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--navy-deep);
    cursor: pointer;
}

.login-link-btn {
    background: transparent;
    border: none;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--navy-deep);
    cursor: pointer;
}

.btn-admin {
    background: #e11d48;
    color: #fff !important;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: 0.3s;
}

.logout-pill-btn {
    background: #fff;
    color: var(--navy-deep) !important;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid #e2e8f0;
    cursor: pointer;
    transition: 0.3s;
}

.btn-cta {
    background: var(--gold-main);
    color: #fff !important;
    text-decoration: none;
    font-weight: 700;
    padding: 8px 18px;
    font-size: 0.85rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(201, 162, 63, 0.3);
    transition: 0.3s;
}

/* SIDEBAR TOGGLE (Hamburger) */
.sidebar-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--navy-deep);
    /* Ensure visible against white */
    font-size: 1.3rem;
    cursor: pointer;
    padding: 5px;
    transition: 0.2s;
    margin-right: 1px;
    display: none;
    /* Hidden by default on desktop, shown in mobile MQ */
}

@media (max-width: 991px) {
    .sidebar-toggle {
        display: flex;
    }
}

.sidebar-toggle:hover {
    transform: scale(1.1);
    color: var(--gold-muted);
}

.quick-nav {
    display: none !important;
}

@media (max-width: 991px) {
    .quick-nav {
        display: flex !important;
        position: fixed !important;
        top: var(--navbar-height-mobile) !important;
        height: var(--quick-nav-height);
        left: 0;
        right: 0;
        background: #fff;
        z-index: 1020;
        padding: 10px 5px 10px 95px !important;
        /* Optimized to clear logo after 1cm left shift */
        justify-content: flex-start !important;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        /* Firefox */
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    }

    .quick-nav::-webkit-scrollbar {
        display: none;
    }
}

.quick-nav a,
.quick-nav-drop-btn {
    display: inline-block;
    padding: 6px 12px;
    /* Reduced from 8px 16px */
    margin: 0 3px;
    /* Reduced from 0 5px */
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    color: var(--navy-deep);
    text-decoration: none;
    font-size: 0.75rem;
    /* Slightly reduced from 0.8rem */
    font-weight: 700;
    transition: 0.3s;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    /* Reduced from 8px */
}

.quick-nav-dropdown {
    position: relative;
    display: inline-block;
}

.quick-nav-dropdown-content {
    display: none;
    position: fixed;
    /* Fixed avoids clipping by .quick-nav horizontal scroll */
    top: 110px;
    /* Positioned below the quick nav bar */
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    width: max-content;
    min-width: 200px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    /* Higher z-index to stay on top */
    padding: 10px 0;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.05);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.quick-nav-dropdown-content.active {
    display: flex;
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.quick-nav-dropdown-content a {
    width: 100%;
    margin: 0;
    text-align: left;
    border: none;
    background: transparent;
    padding: 12px 18px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--navy-deep);
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

[dir="rtl"] .quick-nav-dropdown-content a {
    text-align: right;
    border-left: none;
    border-right: 3px solid transparent;
}

.quick-nav-dropdown-content a:hover {
    background: rgba(201, 162, 63, 0.08);
    color: var(--gold-dark);
    border-left-color: var(--gold-main);
}

[dir="rtl"] .quick-nav-dropdown-content a:hover {
    border-right-color: var(--gold-main);
}

.quick-nav-drop-btn i {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

[data-theme="dark"] .quick-nav-dropdown-content {
    background: #1e293b;
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .quick-nav-dropdown-content a {
    color: #f8fafc;
}

.quick-nav a.active,
.quick-nav-dropdown-content a.active {
    background: var(--gold-main) !important;
    color: #000 !important;
    border-color: var(--gold-main);
    font-weight: 800;
}

/* --- RESPONSIVE --- */
@media (max-width: 991px) {
    .main-header {
        position: fixed !important;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        min-height: var(--navbar-height-mobile);
        height: auto;
        z-index: 10000 !important;
        /* Raised significantly to be above quick-nav */
    }

    .top-bar {
        display: none !important;
        /* Hide top bar on mobile as per common design */
    }

    .nav-left-group {
        overflow: visible !important;
        z-index: 10003 !important;
    }

    .navbar {
        min-height: var(--navbar-height-mobile);
        height: auto;
        padding: 0 10px 0 95px !important;
        /* Optimized space for navigation */
        justify-content: flex-start !important;
        align-items: center;
        gap: 6px !important;
        overflow: visible !important;
    }

    .logo {
        position: fixed !important;
        left: -22px !important;
        /* Shifted 1cm to the left of original edge */
        top: 0 !important;
        width: 120px !important;
        height: 100px !important;
        z-index: 50001 !important;
        /* Fixed position above all header elements */
        background: transparent !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        border: none !important;
        box-shadow: none !important;
        padding: 0 !important;
        margin: 0 !important;
        overflow: visible !important;
    }

    .logo img {
        height: 85px !important;
        /* Optimized size for mobile visibility */
        width: auto !important;
        max-width: 100% !important;
        object-fit: contain !important;
        filter: drop-shadow(0 6px 15px rgba(0, 0, 0, 0.3));
    }

    .logo a {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        height: 100% !important;
        width: 100% !important;
        pointer-events: auto;
    }

    /* Shrink Actions to Balance UX */
    .header-actions {
        gap: 6px !important;
    }

    .header-actions .logout-pill-btn,
    .header-actions .btn-admin,
    .lang-toggle-mobile {
        padding: 4px 10px !important;
        font-size: 0.7rem !important;
        height: 30px !important;
        min-height: 0 !important;
        border-radius: 6px !important;
    }

    .sidebar-toggle {
        font-size: 1.1rem !important;
        width: 34px !important;
        height: 34px !important;
        display: flex !important;
        align-items: center;
        justify-content: center;
    }


    /* Redundant visibility rules removed - handled by base styles */
}

/* THEME OVERRIDES */
[data-theme="dark"] .main-header,
[data-theme="dark"] .top-bar,
[data-theme="dark"] .quick-nav {
    background: #000000;
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .nav-links a,
[data-theme="dark"] .top-bar-contact,
[data-theme="dark"] .login-link-btn,
[data-theme="dark"] .sidebar-toggle,
[data-theme="dark"] .lang-text-btn {
    color: #F8FAFC;
}

[data-theme="dark"] .logo {
    background: #000000;
}


/* --- LOGO ADJUSTMENTS (DESKTOP) --- */
/* --- DESKTOP HEADER LAYOUT (Min-Width: 1024px) --- */
@media (min-width: 1024px) {

    /* 1. Reset Container to Standard Centered */
    .main-header .container {
        max-width: 1250px;
        margin: 0 auto;
        padding: 0 40px;
        position: relative;
    }

    .navbar {
        height: 100px;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 20px;
    }

    /* 2. Overlapping Logo on the Left */
    .nav-left-group {
        width: 180px;
        /* Preserve space for logo */
        flex-shrink: 0;
    }

    .logo {
        position: absolute;
        left: 40px;
        top: -45px;
        /* Overlap Top Bar */
        height: 145px;
        width: 180px;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 1005;
        background: transparent;
        transition: all 0.3s ease;
    }

    .logo img {
        height: 110px;
        width: auto;
        filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.1));
    }

    /* 3. Shift Top Bar Content */
    .top-bar-left {
        padding-left: 200px;
        /* Make room for overlapping logo */
    }

    /* 4. Navigation Links */
    nav.desktop-only {
        margin-left: -225px;
        /* Shifted 2cm further left from -150px */
        display: flex !important;
    }

    .nav-links {
        display: flex;
        align-items: center;
        gap: 15px;
    }

    .nav-links a {
        padding: 8px 16px;
        font-weight: 700;
        font-size: 0.95rem;
        border-radius: 50px;
    }

    /* Main Nav Active State (Gold Pill) */
    .nav-links a.nav-item-btn.active {
        background: var(--gold-main) !important;
        color: #000 !important;
        padding: 8px 25px !important;
        box-shadow: 0 4px 15px rgba(201, 162, 63, 0.3);
    }

    /* 5. Header Actions */
    .header-actions {
        margin-left: auto;
        gap: 12px;
    }

    /* Buttons */
    .btn-admin {
        background: #dc2626;
        color: #fff;
        padding: 8px 16px;
        border-radius: 6px;
        font-size: 0.9rem;
    }

    .logout-pill-btn {
        background: #f1f5f9;
        border: 1px solid #e2e8f0;
        padding: 8px 16px !important;
        font-size: 0.9rem;
    }

    .btn-cta {
        background: #C9A23F !important;
        color: #fff !important;
        padding: 10px 20px;
        border-radius: 6px;
        font-weight: 700;
        box-shadow: 0 4px 15px rgba(201, 162, 63, 0.4);
    }

    /* Hide redundant utils in header if showing in top bar */
    .header-actions #theme-btn,
    .header-actions #lang-btn,
    .header-actions .divider-vertical {
        display: none !important;
    }
}

.top-bar-right {
    display: flex !important;
}

/* Default state for desktop-only sections */
@media (min-width: 992px) {
    .desktop-only-flex {
        display: flex;
    }
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.main-sidebar.active .sidebar-links li {
    animation-fill-mode: forwards;
}

/* --- GLOBAL SIDEBAR STYLES (Premium Refined) --- */
.main-sidebar {
    position: fixed;
    top: 0;
    z-index: 1000001;
    /* Fix: Ensure sidebar is above the overlay (1000000) and the floating logo */
    left: -320px;
    /* Default: slides from left */
    width: 300px;
    height: 100vh;
    background: #ffffff;
    transform: translateX(0);
    /* Base state: ready to move */
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: none;
    border-right: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* RTL Support for Sidebar */
[dir="rtl"] .main-sidebar {
    left: auto;
    right: -320px;
    /* Slides from right in Arabic */
    border-right: none;
    border-left: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: none;
}

.main-sidebar.active {
    left: 0 !important;
}

[dir="rtl"] .main-sidebar.active {
    left: auto !important;
    right: 0 !important;
}

/* Utility to prevent transition flicker during layout shifts (like RTL switch) */
.no-transition,
.no-transition * {
    transition: none !important;
    animation: none !important;
}

[data-theme="dark"] .main-sidebar {
    background: #000000;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 10px 0 50px rgba(0, 0, 0, 0.3);
}

/* Sidebar Overlay */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Header */
.sidebar-header {
    padding: 30px 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.sidebar-logo-container {
    flex: 1;
    display: flex;
    justify-content: center;
    padding-right: 20px;
}

.sidebar-logo-container img {
    height: 110px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 10px rgba(201, 162, 63, 0.15));
}

.sidebar-close-btn {
    background: #f1f5f9;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: var(--navy-deep);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
    font-size: 1.1rem;
    position: absolute;
    right: 20px;
    top: 25px;
}

[data-theme="dark"] .sidebar-close-btn {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.sidebar-close-btn:hover {
    background: #e2e8f0;
    transform: rotate(90deg);
}

/* Navigation */
.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 10px 15px;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.1) transparent;
}

.sidebar-nav::-webkit-scrollbar {
    width: 4px;
}

.sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

.sidebar-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 20px;
    color: var(--navy-deep);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: 12px;
    transition: 0.2s all ease;
    cursor: pointer;
    border: 1px solid transparent;
}

[data-theme="dark"] .sidebar-link {
    color: #cbd5e1;
}

.sidebar-link i {
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
    color: #64748b;
    transition: 0.2s;
}

[data-theme="dark"] .sidebar-link i {
    color: #94a3b8;
}

.sidebar-link:hover {
    background: #f8fafc;
    color: var(--gold-dark);
}

.sidebar-link:hover i {
    color: var(--gold-muted);
}

.sidebar-link.active {
    background: rgba(201, 162, 63, 0.08);
    color: var(--gold-dark);
    font-weight: 700;
}

.sidebar-link.active i {
    color: var(--gold-muted);
}

/* Agent Highlight */
.sidebar-link.agent-highlight {
    color: var(--gold-muted);
    font-weight: 700;
}

.sidebar-link.agent-highlight i {
    color: var(--gold-muted);
}

/* Admin Link (Non-functional style) */
.sidebar-link.admin-link {
    margin-top: 10px;
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid rgba(220, 38, 38, 0.1);
}

[data-theme="dark"] .sidebar-link.admin-link {
    background: rgba(220, 38, 38, 0.05);
    color: #f87171;
    border-color: rgba(248, 113, 113, 0.1);
}

.sidebar-link.admin-link i {
    color: #dc2626;
}

[data-theme="dark"] .sidebar-link.admin-link i {
    color: #f87171;
}

/* Dropdowns */
.sidebar-dropdown-wrapper {
    display: flex;
    flex-direction: column;
}

.sidebar-link.has-dropdown .ms-auto {
    margin-left: auto;
    font-size: 0.8rem;
    transition: 0.3s transform ease;
}

.sidebar-dropdown-wrapper.open .has-dropdown .ms-auto {
    transform: rotate(180deg);
}

.sidebar-dropdown-list {
    list-style: none;
    padding: 0 0 0 45px;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease;
}

.sidebar-dropdown-wrapper.open .sidebar-dropdown-list {
    max-height: 500px;
    padding-bottom: 15px;
    padding-top: 5px;
}

.sidebar-dropdown-list li a {
    display: block;
    padding: 10px 15px;
    color: #64748b;
    text-decoration: none;
    font-size: 0.85rem;
    transition: 0.2s;
    border-radius: 8px;
}

[data-theme="dark"] .sidebar-dropdown-list li a {
    color: #94a3b8;
}

.sidebar-dropdown-list li a:hover {
    background: rgba(0, 0, 0, 0.03);
    color: var(--gold-muted);
    padding-left: 20px;
}

[data-theme="dark"] .sidebar-dropdown-list li a:hover {
    background: rgba(255, 255, 255, 0.03);
}

/* Footer Section */
.sidebar-footer-new {
    padding: 25px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    background: #fff;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

[data-theme="dark"] .sidebar-footer-new {
    background: #000000;
    border-top-color: rgba(255, 255, 255, 0.05);
}

.sidebar-auth-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px;
    background: var(--navy-deep);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
}

[data-theme="dark"] .sidebar-auth-btn {
    background: #1e293b;
}

.sidebar-auth-btn:hover {
    background: #000;
    transform: translateY(-2px);
}

.sidebar-bottom-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sidebar-social-icons {
    display: flex;
    gap: 15px;
}

.sidebar-social-icons a {
    color: #64748b;
    font-size: 1.1rem;
    transition: 0.2s;
}

.sidebar-social-icons a:hover {
    color: var(--gold-muted);
    transform: translateY(-2px);
}

.sidebar-actions-pair {
    display: flex;
    gap: 10px;
    align-items: center;
}

.action-circle-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: var(--navy-deep);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.2s;
}

[data-theme="dark"] .action-circle-btn {
    background: #1e293b;
    border-color: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.action-pill-btn {
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: var(--navy-deep);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: 0.2s;
}

[data-theme="dark"] .action-pill-btn {
    background: #1e293b;
    border-color: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.action-circle-btn:hover,
.action-pill-btn:hover {
    border-color: var(--gold-muted);
    color: var(--gold-muted);
}

/* --- RTL HEADER FIXES --- */
@media (min-width: 992px) {
    [dir="rtl"] .top-bar-left {
        padding-left: 0;
        padding-right: 250px;
    }

    [dir="rtl"] nav .nav-links {
        margin-left: 0;
        margin-right: 250px;
    }
}

@media (min-width: 1024px) {

    /* Flip Logo Position */
    [dir="rtl"] .logo {
        left: auto;
        right: 40px;
    }

    /* Flip Top Bar Padding (Space for Logo) */
    [dir="rtl"] .top-bar-left {
        padding-left: 0;
        padding-right: 200px;
    }

    /* Flip Navigation "Pull" Effect */
    [dir="rtl"] nav.desktop-only {
        margin-left: 0;
        margin-right: -225px;
    }

    /* Flip Header Actions Push (Push to Left/End) */
    [dir="rtl"] .header-actions {
        margin-left: 0;
        margin-right: auto;
    }
}

/* =========================================
   PROJECTS MEGA MENU ("Queen" Style)
   ========================================= */

/* The Dropdown Wrapper (LI) */
.nav-item-dropdown {
    position: relative;
    padding-bottom: 10px;
    /* Reduced gap to bring menu closer to button */
    margin-bottom: -10px;
}

/* The Menu Itself */
/* The Menu Itself */
.queen-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: max-content;
    /* Fit to content width */
    min-width: 220px;
    /* Minimum professional width */
    background: #FFFFFF;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border-radius: 0 0 12px 12px;
    /* Bottom corners only */
    padding: 10px 0;
    z-index: 2000;
    flex-direction: column;
    animation: slideDownFade 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    transform-origin: top center;
    border-top: 3px solid #C9A23F;
    /* Gold Top Line */
}

/* Show on Hover */
.nav-item-dropdown:hover .queen-dropdown-menu {
    display: flex;
}

@keyframes slideDownFade {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Menu Items */
.queen-menu-item {
    display: block;
    padding: 14px 25px;
    color: #000000;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.2s;
    border-left: 4px solid transparent;
}

.nav-links .queen-dropdown-menu .queen-menu-item:hover,
.nav-links .queen-dropdown-menu .queen-menu-item.active {
    background: #D4AF37 !important;
    /* Soft premium gold */
    color: #000000 !important;
    border-left: none !important;
    /* Removed harsh border */
    font-weight: 800 !important;
    border-radius: 8px;
    /* Rounded for elegance */
    margin: 5px 12px;
    /* Better spacing within menu */
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
    /* Stylish soft shadow */
}

/* Ensure mobile dropdown links also turn gold when active */
.quick-nav-dropdown-content a:hover,
.quick-nav-dropdown-content a.active {
    background: #D4AF37 !important;
    color: #000 !important;
    border-left: 4px solid #000 !important;
}

/* Highlight (Removed Red) */
.queen-menu-item.highlight-red {
    background: transparent;
    color: inherit;
}

/* Projects Link Arrow */
.nav-link-projects {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.nav-link-projects::after {
    content: '\f078';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 0.7rem;
    opacity: 0.5;
    transition: transform 0.2s;
}

.nav-item-dropdown:hover .nav-link-projects::after {
    transform: rotate(180deg);
}

/* Dark Mode Overrides */
[data-theme="dark"] .queen-dropdown-menu {
    background: #262626 !important;
    /* Absolute dark grey from tokens */
    border-top: 3px solid #D4AF37 !important;
}

[data-theme="dark"] .queen-menu-item {
    color: #f5f5f5 !important;
}

[data-theme="dark"] .queen-menu-item:hover,
[data-theme="dark"] .queen-menu-item.active {
    background: rgba(212, 175, 55, 0.15) !important;
    color: #D4AF37 !important;
    border-left-color: #D4AF37 !important;
}

.hero-section {
    position: relative;
    padding: 0;
    padding-top: 40px;
    background: var(--white);
    height: 85vh;
    min-height: 600px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    overflow: hidden;
}

/* Building Status Grid Desktop */
.buildings-status-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    /* Force all beside each other on desktop */
    gap: 15px;
    margin-top: 40px;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.5s ease-in-out, transform 10s linear;
    display: block;
    transform: scale(1.05);
    /* Start slightly zoomed out of the zoom-in target */
}

.hero-slide.active {
    opacity: 1;
    transform: scale(1.15);
    /* Slow zoom-in effect */
}

/* Clear Images: No dark overlay on the image itself */
.hero-slide::after {
    display: none;
}

/* Clear Overlay */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.4) 100%);
    pointer-events: none;
    z-index: 1;
}

.hero-bg-container {
    pointer-events: auto !important;
    /* Allow clicking buttons and swiping */
}

.hero-slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
    pointer-events: auto;
}

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.hero-dot.active {
    background: var(--gold-main);
    transform: scale(1.3);
    border-color: var(--gold-main);
}

.hero-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.hero-nav-btn:hover {
    background: var(--gold-main);
    border-color: var(--gold-main);
}

.hero-nav-btn.prev {
    left: 30px;
}

.hero-nav-btn.next {
    right: 30px;
}

@media (max-width: 768px) {
    .hero-nav-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .hero-nav-btn.prev {
        left: 10px;
    }

    .hero-nav-btn.next {
        right: 10px;
    }
}


.hero-content-vertical {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    max-width: 1200px;
    width: 100%;
    padding: 20px;
    margin-top: 60px;
    /* Let hero-section padding handle the top space */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    /* Tighter gap like the image */
    overflow: visible;
}

.hero-title-center {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 800;
    margin: 0;
    letter-spacing: -0.03em;
    line-height: 1.05;
    color: #FFFFFF;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s cubic-bezier(0.2, 0.6, 0.2, 1);
}

.hero-subtitle-center {
    font-family: 'Inter', sans-serif;
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    opacity: 0.9;
    margin: 0;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    max-width: 850px;
    letter-spacing: 0.01em;
    line-height: 1.6;
    animation: fadeInUp 1.2s cubic-bezier(0.2, 0.6, 0.2, 1);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


@media (max-width: 1024px) {
    .hero-title-center {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .hero-title-center {
        font-size: 2.5rem;
    }
}

/* =========================================
   06-FILTERS (Refactored to BEM-like)
   ========================================= */

/* Main Container (Hero Filter) */
.filter {
    background: rgba(10, 32, 59, 0.45);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow:
        0 0 40px rgba(0, 0, 0, 0.3),
        inset 0 1px 1px rgba(255, 255, 255, 0.1);
    border-radius: 28px;
    padding: 35px;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    z-index: 100;
    animation: fadeInUp 1.4s cubic-bezier(0.2, 0.6, 0.2, 1);
}

/* Modifier: Hero Placement */
.filter--hero {
    margin-top: 10px;
}

/* Filter Body/Layout */
.filter__body {
    display: flex;
    flex-direction: column;
    gap: 15px;
    overflow: visible !important;
}

.filter__row {
    display: flex;
    gap: 15px;
    width: 100%;
    margin-bottom: 5px;
    /* Tighter gap */
    align-items: center;
}

.filter__row:last-child {
    margin-bottom: 0;
}

/* Row 1 Columns */
.filter__col-search {
    flex: 1;
}

.filter__col-toggle-small {
    flex: 0 0 260px;
}

.filter__col-action {
    flex: 0 0 150px;
}

/* Row 2 Columns (5 Items Inline) */
.filter__row.secondary-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr auto;
    gap: 10px;
}

.filter__col-select {
    min-width: 0;
    position: relative;
    /* Ensure dropdowns are positioned relative to this column */
}

/* Status Column (inline) */
.filter__col-status {
    display: flex;
    align-items: center;
    margin-top: 0 !important;
    /* Reset margin */
}

/* Specific Select Tweaks for compactness */
.filter__select-wrap {
    padding: 0 12px;
    /* Tighter padding */
    height: 50px;
}

.filter__select-label {
    font-size: 0.85rem;
    /* Slightly smaller text */
}

.filter__select-icon {
    margin-right: 8px;
    font-size: 0.8rem;
    /* Reduced from 0.9rem on desktop */
}

.filter__select-chev {
    margin-left: 5px;
}


/* Elements */
.filter__btn-search {
    width: 100%;
    height: 60px;
    background: #C9A23F;
    color: #fff !important;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 800;
    cursor: pointer;
    transition: 0.3s;
    text-transform: capitalize;
}

.filter__btn-search:hover {
    background: #e5b94d;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(201, 162, 63, 0.3);
}

.filter__btn-reset {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: #fff;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    /* Reduced from 1.1rem on desktop */
}

.filter__btn-reset:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(-45deg);
    color: var(--gold-main);
}

[data-theme="dark"] .filter__btn-reset {
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(255, 255, 255, 0.1);
}

.filter__toggle-group {
    display: flex;
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    border-radius: 35px;
    padding: 0;
    height: 60px;
    overflow: hidden;
    box-sizing: border-box;
    align-items: stretch;
    gap: 0;
}

.filter__toggle-btn {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 1.1rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    white-space: nowrap;
    margin: 0;
    text-transform: uppercase;
}

.filter__toggle-btn.active {
    background: #C9A23F;
    color: #000 !important;
}

.filter__toggle-btn:hover:not(.active) {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

/* Modifier: Small Toggle */
.toggle--small {
    height: 45px !important;
}

.toggle--small .filter__toggle-btn {
    font-size: 0.85rem;
}

/* Keyword Search Input Group */
.filter__input-wrap {
    height: 60px;
    background: #fff;
    border-radius: 30px;
    display: flex;
    align-items: center;
    padding: 0 20px;
    transition: 0.3s;
    overflow: hidden;
    box-sizing: border-box;
    width: 100%;
}

.filter__input-wrap:focus-within {
    box-shadow: 0 0 0 2px rgba(201, 162, 63, 0.3);
}

.filter__input-icon {
    color: var(--gold-muted);
    margin-right: 12px;
    font-size: 0.85rem;
    /* Reduced from 1rem */
}

.filter__input-wrap input {
    border: none;
    outline: none;
    width: 100%;
    height: 100%;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--navy-deep);
    background: transparent;
    box-sizing: border-box;
    padding-right: 15px;
}

.filter__input-wrap input::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

/* Select Inputs */
.filter__select-wrap {
    height: 50px;
    /* Reduced from 60px */
    width: 100%;
    border: none;
    border-radius: 12px;
    position: relative;
    display: flex;
    align-items: center;
    padding: 0 15px;
    background: #fff;
    cursor: pointer;
    transition: transform 0.2s;
}

/* Restore Inner Select Elements */
.filter__select-icon {
    color: var(--gold-muted);
    margin-right: 12px;
}

.filter__select-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.filter__select-label {
    font-weight: 800;
    color: var(--navy-deep);
    font-size: 0.9rem;
    white-space: nowrap;
}

.filter__select-chev {
    margin-left: auto;
    color: #C9A23F;
    font-size: 0.8rem;
}

/* Status Toggle (Floating Text Look) */
.filter__status-group {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    /* Right align */
    gap: 10px;
    height: 50px;
    /* Match inputs */
    margin-top: 0;
    /* Reset */
}

.filter__status-btn {
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 700;
    font-size: 0.95rem;
    /* Slightly larger text */
    cursor: pointer;
    padding: 6px 18px;
    border-radius: 20px;
    /* Pill shape */
    transition: 0.3s;
}

.filter__status-btn.active {
    background: var(--gold-main) !important;
    color: #fff !important;
    /* Navy text on Gold usually better, but user image shows White on Gold or simple Gold Pill? Image shows Gold Pill with dark text maybe or white. Let's stick to standard active. */
    color: #000000 !important;
    box-shadow: 0 4px 15px rgba(201, 162, 63, 0.4);
}

.filter__status-btn:hover:not(.active) {
    color: #C9A23F;
}

[data-theme="dark"] .filter__status-btn {
    color: #cbd5e1;
}

[data-theme="dark"] .filter__status-btn.active {
    color: #000000 !important;
}

/* Dropdowns (Multi-select) - COMPACT */
.multi-select-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 5px);
    /* Positioned exactly below the parent column with a small gap */
    left: 0;
    width: 200px;
    /* Specific smaller width as requested */
    min-width: 0;
    /* Override default */
    background: var(--white) !important;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    margin-top: 5px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    animation: fadeInDown 0.2s ease;
    padding: 10px;
    /* Reduced padding */
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.multi-select-options {
    max-height: 180px;
    /* Smaller scroll area */
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 4px;
    /* Tighter gap */
    padding-right: 2px;
}

/* Reduced Item Size */
.check-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.2s;
}

.check-item span {
    font-size: 0.85rem;
    /* Smaller text */
}

/* Updated Reset Button (Small square next to search) */
.filter__btn-reset {
    width: 55px;
    height: 55px;
    /* Match search height */
    background: rgba(255, 255, 255, 0.15);
    /* Slightly clearer */
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.1rem;
    color: #fff !important;
    transition: 0.3s;
}



.check-item:hover {
    background: rgba(201, 162, 63, 0.1) !important;
}

.check-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--gold-muted);
}

.check-item span {
    font-weight: 700 !important;
    color: var(--navy-deep) !important;
    font-size: 0.95rem;
}

.check-item.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: transparent !important;
}

.check-item.disabled input {
    cursor: not-allowed;
}

[data-theme="dark"] .check-item span {
    color: #000000 !important;
}

/* Mobile Filter Strip */
.filter--mobile {
    display: none;
    margin-top: 20px;
}

.filter--mobile__bar {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    color: var(--text-secondary);
    gap: 15px;
    cursor: pointer;
    border: 1px solid var(--border-light);
}


/* Native Selects (Project Units) */
.filter__group {
    display: flex;
    flex-direction: column;
}

.filter__label {
    display: block;
    font-size: 0.75rem;
    opacity: 0.8;
    margin-bottom: 5px;
    color: inherit;
}

.filter__select-native {
    width: 100%;
    height: 45px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 0 15px;
    font-size: 0.9rem;
    cursor: pointer;
    outline: none;
}

.filter__select-native option {
    background: var(--navy-deep);
    color: #fff;
}

.filter__select-native:focus {
    border-color: var(--gold-muted);
}


@media (max-width: 1024px) {
    .filter--hero {
        padding: 30px;
    }

    .filter--mobile {
        display: block;
    }
}

@media (max-width: 850px) {
    .filter {
        padding: 12px;
        border-radius: 12px;
        width: 96%;
        margin: 5px auto;
        background: rgba(10, 32, 59, 0.75);
    }

    .filter__row {
        flex-direction: column;
        gap: 8px;
        margin-bottom: 0;
        display: flex;
    }

    .filter__row:first-child {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .filter__col-search {
        grid-column: span 2;
    }

    .filter__col-toggle-small {
        grid-column: span 1;
    }

    .filter__col-action {
        grid-column: span 1;
        display: flex;
        gap: 5px;
    }

    .filter__row.secondary-row {
        /* display handled by JS */
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 6px;
    }

    .filter__col-select {
        grid-column: span 1 !important;
        width: 100%;
    }

    .filter__col-status {
        grid-column: span 3 !important;
        justify-content: center;
        margin-top: 10px !important;
    }

    .filter__status-group {
        width: 100%;
        justify-content: center;
        gap: 5px;
    }

    .filter__status-btn {
        padding: 5px 12px;
        font-size: 0.75rem;
        border-radius: 15px;
    }

    .filter__input-wrap,
    .filter__select-wrap,
    .filter__toggle-group,
    .filter__btn-search,
    .filter__btn-reset {
        height: 38px !important;
    }

    .filter__select-wrap {
        padding: 0 6px !important;
        border-radius: 10px !important;
    }

    .filter__input-wrap input {
        font-size: 0.8rem;
    }

    .filter__select-label {
        font-size: 0.65rem !important;
        font-weight: 800;
        letter-spacing: -0.2px;
    }

    /* Restore larger icons for mobile */
    .filter__select-icon {
        font-size: 0.75rem !important;
        margin-right: 4px !important;
    }

    .filter__input-icon {
        font-size: 0.9rem;
    }

    .filter__btn-reset {
        font-size: 1rem;
    }

    .filter__btn-search {
        font-size: 0.85rem;
    }

    .multi-select-dropdown {
        width: 160px !important;
        max-width: 85vw;
        max-height: 220px;
        left: 50% !important;
        transform: translateX(-50%) !important;
        top: calc(100% + 4px) !important;
        position: absolute;
        border-radius: 10px;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
        padding: 4px !important;
        background: #ffffff !important;
        border: 1px solid rgba(0, 0, 0, 0.1) !important;
    }

    .multi-select-options {
        max-height: 160px;
        gap: 2px !important;
    }

    .check-item {
        padding: 4px 6px !important;
        gap: 5px !important;
        border-radius: 4px;
    }

    .check-item span {
        font-size: 0.7rem !important;
        font-weight: 700 !important;
        color: #1a202c !important;
    }

    .custom-gold-checkbox {
        width: 11px !important;
        height: 11px !important;
        border-width: 1px !important;
        margin-top: 1px;
        flex-shrink: 0;
    }

    .multi-select-footer {
        padding: 4px 0 0 0 !important;
        margin-top: 4px;
    }

    .multi-select-footer .small-btn {
        width: 100%;
        padding: 3px 0 !important;
        font-size: 0.65rem !important;
        border-radius: 6px !important;
    }
}

@media (max-width: 850px) {
    .filter-field-label {
        display: none !important;
    }

    .filter--mobile {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .filter__row:first-child {
        grid-template-columns: 1fr;
    }

    .filter__col-search,
    .filter__col-toggle-small,
    .filter__col-action {
        grid-column: span 1;
    }
}


/* Dark Mode Overrides for Filters */
[data-theme="dark"] .filter {
    background: rgba(15, 23, 42, 0.4);
    border-color: rgba(201, 162, 63, 0.2);
}

[data-theme="dark"] .filter__input-wrap,
[data-theme="dark"] .filter__select-wrap {
    background: rgba(30, 41, 59, 0.9);
}

[data-theme="dark"] .filter__input-wrap input {
    background: transparent;
    color: #f1f5f9;
}

[data-theme="dark"] .filter__select-label {
    color: #f1f5f9;
}

[data-theme="dark"] .multi-select-dropdown {
    background: #000000 !important;
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .check-item span {
    color: #f1f5f9 !important;
}

[data-theme="dark"] .check-item:hover {
    background: rgba(255, 255, 255, 0.05) !important;
}

[data-theme="dark"] .filter--mobile__bar {
    background: #000000;
    border-color: rgba(255, 255, 255, 0.1);
    color: #94a3b8;
}

/* Project Selection Buttons */
.project-select-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 12px 25px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    flex: 1;
    max-width: 200px;
    text-align: center;
}

.project-select-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.project-select-btn.active {
    background: var(--gold-main);
    color: #000 !important;
    box-shadow: 0 5px 15px rgba(201, 162, 63, 0.4);
    border-color: var(--gold-main);
}

/* Hide Project Dropdown when Button Logic is Active */
.filter__col-select.hidden-by-project-btn {
    display: none !important;
}

@media (max-width: 600px) {
    .filter__project-buttons {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
    }

    .project-select-btn {
        flex: 1 1 30%;
        min-width: 100px;
        font-size: 0.8rem;
        padding: 10px;
        white-space: normal;
        line-height: 1.2;
    }
}

/* =========================================
   07-CARDS & GRID
   ========================================= */

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 40px;
}

@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        /* 2 units per row on Mobile */
        gap: 12px;
        padding: 0 5px;
    }
}

/* --- Project Slides Wrapper (Moved from JS) --- */
.project-slides-wrapper {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.project-slide-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 1s ease-in-out;
}

@media (max-width: 768px) {
    .project-slides-wrapper {
        height: 140px;
    }
}

/* --- Premium Project Card --- */
.project-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(201, 162, 63, 0.1);
    position: relative;
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 50px rgba(201, 162, 63, 0.15);
    border-color: var(--gold-main);
}

.project-img-container {
    height: 180px;
    /* Reduced from 240px */
    position: relative;
    overflow: hidden;
    background: #1A1A1A;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
    opacity: 0.8;
    /* Slightly darkened */
}

.project-card:hover .project-img-container img {
    transform: scale(1.1);
    opacity: 0.6;
}

.project-coming-soon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    pointer-events: none;
}

.project-coming-soon span {
    color: var(--gold-main);
    font-size: 1.8rem;
    font-weight: 700;
    font-family: 'Cinzel', serif;
    text-align: center;
    padding: 0 20px;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.tag-project-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    padding: 5px 15px;
    background: #000000;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-radius: 4px;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

[dir="rtl"] .tag-project-badge {
    left: auto;
    right: 20px;
}

.project-content {
    padding: 20px;
    /* Reduced from 30px */
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.project-card-title {
    font-size: 1.4rem;
    /* Reduced from 1.8rem */
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--gold-main);
    font-family: 'Outfit', sans-serif;
}

.project-card-units {
    color: #64748b;
    font-weight: 600;
    font-size: 0.9rem;
    /* Reduced from 1rem */
    margin-bottom: 10px;
}

.project-card-delivery {
    color: #94a3b8;
    font-size: 0.8rem;
    /* Reduced from 0.9rem */
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.project-view-cta {
    width: 100%;
    padding: 10px;
    /* Reduced from 14px */
    background: var(--gold-main);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.9rem;
    /* Reduced from 1rem */
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px;
        /* Reduced for more compact layout */
        padding: 0 5px;
    }

    .project-img-container,
    .project-slides-wrapper {
        height: 100px !important;
        /* Reduced to save space */
    }

    .project-content {
        padding: 10px;
    }

    .project-card-title {
        font-size: 0.85rem;
        margin-bottom: 3px;
        line-height: 1.1;
    }

    .project-card-units {
        font-size: 0.7rem;
        margin-bottom: 4px;
    }

    .project-card-delivery {
        font-size: 0.6rem;
        margin-bottom: 8px;
        gap: 3px;
    }

    .project-view-cta {
        padding: 5px 8px;
        font-size: 0.65rem;
        border-radius: 4px;
        height: 28px;
    }

    .tag-project-badge {
        font-size: 0.55rem;
        padding: 2px 6px;
        top: 8px;
        left: 8px;
    }
}

.project-view-cta:hover {
    background: transparent;
    color: var(--gold-main);
    border: 1px solid var(--gold-main);
}

.project-view-cta i {
    display: none;
    /* Original did not have icons */
}


[data-theme='dark'] .project-card {
    background: #ffffff;
    /* We keep it white even in dark mode for premium look like image */
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

[data-theme='dark'] .project-card .project-card-title {
    color: var(--gold-main);
}


/* --- Trust Strip Items (Billboards) --- */
.trust-strip {
    background: var(--bg-primary);
    padding: 60px 0;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--border-light);
}

[data-theme='dark'] .trust-strip {
    background: var(--bg-accent);
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 992px) {
    .trust-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .trust-grid {
        grid-template-columns: 1fr;
    }
}

.trust-card {
    background: #1A1A1A;
    border-radius: 20px;
    padding: 30px 20px;
    text-align: center;
    border: 1px solid rgba(201, 162, 63, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.trust-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(10, 30, 54, 0.2);
    border-color: var(--gold-muted);
}

.trust-icon-box {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--gold-muted);
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.trust-card:hover .trust-icon-box {
    background: var(--gold-main);
    color: #fff;
    transform: rotateY(180deg);
}

.trust-val {
    font-size: 2.8rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0;
    line-height: 1;
    font-family: 'Outfit', sans-serif;
    letter-spacing: -1px;
}

[data-theme='dark'] .trust-val {
    color: #fff;
}

.trust-val span {
    color: var(--gold-main);
    font-size: 2rem;
    margin-left: 2px;
}

.trust-label {
    margin-top: 10px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

[data-theme='dark'] .trust-label {
    color: rgba(255, 255, 255, 0.6);
}

/* Watermark background */
.trust-watermark {
    position: absolute;
    right: -10px;
    bottom: -10px;
    font-size: 4.5rem;
    opacity: 0.03;
    color: #fff;
    z-index: -1;
    transition: all 0.4s ease;
}

[data-theme='dark'] .trust-watermark {
    color: #fff;
    opacity: 0.05;
}

.trust-card:hover .trust-watermark {
    transform: scale(1.2) rotate(-10deg);
    opacity: 0.05;
}

/* Background Icon */
.trust-icon-bg {
    position: absolute;
    right: -10px;
    bottom: -20px;
    font-size: 6rem;
    opacity: 0.1;
    transform: rotate(-15deg);
    pointer-events: none;
    z-index: 1;
    transition: transform 0.4s ease;
}

.trust-card:hover .trust-icon-bg {
    transform: rotate(0deg) scale(1.1);
    opacity: 0.15;
}

/* --- Skeleton Loader for Stats --- */
.stat-skeleton {
    width: 80px;
    height: 48px;
    background: linear-gradient(90deg,
            rgba(212, 175, 55, 0.1) 25%,
            rgba(212, 175, 55, 0.2) 50%,
            rgba(212, 175, 55, 0.1) 75%);
    background-size: 200% 100%;
    animation: skeleton-pulse 1.5s infinite linear;
    border-radius: 8px;
    display: inline-block;
    margin-bottom: 5px;
}

@keyframes skeleton-pulse {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

.trust-val.is-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 50px;
}

/* Smooth transition for stats */
.trust-val {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.trust-val.value-ready {
    animation: stat-appear 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes stat-appear {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================
   08-MODALS (Standard & Admin)
   ========================================= */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(2, 6, 23, 0.85);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: var(--z-modal-backdrop);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-card {
    background: var(--white);
    width: 100%;
    max-width: 500px;
    padding: 60px 50px;
    border-radius: 32px;
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.4);
    position: relative;
    transform: translateY(40px);
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid rgba(255, 255, 255, 0.4);
    overflow: hidden;
}

@media (max-width: 768px) {
    .modal-card {
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
        padding: 30px 20px;
    }
}

[data-theme="dark"] .modal-card {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.modal-overlay.active .modal-card {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: 0.3s;
}

.modal-close:hover {
    color: var(--navy-deep);
}

/* Modal Form Elements */
.form-group-modal {
    margin-bottom: 20px;
    position: relative;
}

.form-group-modal i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gold-muted);
}

.form-input-modal {
    width: 100%;
    padding: 14px 15px 14px 45px;
    border-radius: 12px;
    border: 1px solid var(--border-light);
    background: #f8fafc;
    transition: 0.3s;
}

[data-theme="dark"] .form-input-modal {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.form-input-modal:focus {
    border-color: var(--gold-muted);
    outline: none;
    background: #fff;
}

[dir="rtl"] .form-input-modal {
    padding: 14px 45px 14px 15px;
}

[dir="rtl"] .form-group-modal i {
    left: auto;
    right: 15px;
}

/* Divider */
.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 25px 0;
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border-light);
}

.divider span {
    padding: 0 10px;
}

/* =========================================
   ADMIN DASHBOARD PREMIUM UI
   ========================================= */

.admin-dashboard-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(2, 6, 23, 0.9);
    backdrop-filter: blur(15px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 30px;
    animation: fadeIn 0.3s ease;
}

.admin-dashboard-overlay.active {
    display: flex;
}

/* Admin Panel Main Container */
/* Admin Panel Main Container - FULL PAGE VIEW */
.admin-panel {
    background: var(--white);
    width: 100%;
    height: 100%;
    max-width: none;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: none;
    border: none;
    position: relative;
    transition: all 0.3s ease;
}

.admin-dashboard-overlay {
    padding: 0;
    background: var(--white);
}

[data-theme="dark"] .admin-dashboard-overlay {
    background: #000000;
}

[data-theme="dark"] .admin-panel {
    background: #000000;
    border-color: rgba(255, 255, 255, 0.05);
}

/* Header */
.admin-header {
    padding: 24px 40px;
    background: var(--white);
    border-bottom: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

[data-theme="dark"] .admin-header {
    background: #1e293b;
    border-color: rgba(255, 255, 255, 0.1);
}

.admin-header h2 {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--navy-deep);
    display: flex;
    align-items: center;
    gap: 15px;
}

[data-theme="dark"] .admin-header h2 {
    color: #fff;
}

.admin-header .close-btn {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: none;
    background: #f1f5f9;
    color: var(--text-secondary);
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.admin-header .close-btn:hover {
    background: #fee2e2;
    color: #ef4444;
    transform: rotate(90deg);
}

/* Layout Content */
.admin-content {
    display: flex;
    flex: 1;
    overflow: hidden;
}

/* Sidebar */
.admin-sidebar {
    width: 280px;
    background: #fcfcfc;
    border-right: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    padding: 20px 0;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

@media (max-width: 1100px) {
    .admin-sidebar {
        width: 100%;
        height: auto;
        max-height: 300px;
        border-right: none;
        border-bottom: 1px solid var(--border-light);
    }

    .admin-content {
        flex-direction: column;
    }
}

[data-theme="dark"] .admin-sidebar {
    background: #1e293b;
    border-color: rgba(255, 255, 255, 0.05);
}

.sidebar-header {
    padding: 0 30px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--gold-main);
}

.sidebar-header h3 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 800;
}

.admin-project-list {
    flex: 1;
    overflow-y: auto;
    padding: 0 15px;
}

.sidebar-area-category {
    transition: all 0.3s ease;
    cursor: default;
}

.sidebar-area-category:hover {
    background: rgba(201, 162, 63, 0.05) !important;
}

.sidebar-area-category:hover h3 {
    color: var(--gold-main) !important;
    opacity: 1 !important;
}


.admin-proj-item {
    padding: 12px 18px;
    border-radius: 12px;
    margin-bottom: 4px;
    font-weight: 700;
    color: #4b5563;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.9rem;
}

.admin-proj-item:hover {
    background: rgba(201, 162, 63, 0.05);
    color: var(--gold-main);
}

.admin-proj-item.active {
    background: #fff;
    color: var(--navy-deep);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(201, 162, 63, 0.1);
    position: relative;
}

.admin-proj-item.active::after {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 70%;
    background: var(--gold-main);
    border-radius: 0 4px 4px 0;
}

.admin-proj-item.active i {
    color: #000000 !important;
    opacity: 1;
}

.sidebar-footer {
    padding: 20px 25px 0;
    border-top: 1px solid var(--border-light);
}

/* Main Area */
.admin-main {
    flex: 1;
    padding: 40px;
    overflow-y: auto;
    background: #fff;
}

[data-theme="dark"] .admin-main {
    background: #000000;
}

.admin-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 20px;
}

[data-theme="dark"] .admin-toolbar {
    border-color: rgba(255, 255, 255, 0.05);
}

.toolbar-left h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--navy-deep);
    margin: 0;
}

.toolbar-stats {
    display: flex;
    gap: 12px;
    margin-top: 15px;
    flex-wrap: wrap;
}

/* Forms */
.add-unit-form {
    background: #f8fafc;
    border-radius: 24px;
    padding: 30px;
    margin-bottom: 30px;
    border: 1px solid var(--border-light);
    animation: slideDown 0.4s ease;
}

[data-theme="dark"] .add-unit-form {
    background: #1e293b;
    border-color: rgba(255, 255, 255, 0.05);
}

.form-header {
    margin-bottom: 25px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 25px;
}

@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
}

.form-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-item label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-item input,
.form-item select {
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid var(--border-light);
    background: #fff;
    font-family: inherit;
    font-weight: 600;
    transition: 0.3s;
}

[data-theme="dark"] .form-item input,
[data-theme="dark"] .form-item select {
    background: rgba(15, 23, 42, 0.5);
    border-color: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.form-item input:focus {
    border-color: var(--gold-main);
    outline: none;
    box-shadow: 0 0 0 4px rgba(201, 162, 63, 0.1);
}

.form-actions {
    display: flex;
    gap: 15px;
}

/* Table Wrapper */
.admin-table-wrapper {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    overflow-x: auto;
    /* Enable horizontal scroll */
    border: 1px solid var(--border-light);
    -webkit-overflow-scrolling: touch;
    /* Smooth scroll on iOS */
}

[data-theme="dark"] .admin-table-wrapper {
    background: #1e293b;
    border-color: rgba(255, 255, 255, 0.05);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th {
    background: #f8fafc;
    padding: 18px 25px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
    text-align: left;
    border-bottom: 1px solid var(--border-light);
}

[data-theme="dark"] .admin-table th {
    background: #1e293b;
    border-color: rgba(255, 255, 255, 0.05);
}

.admin-table td {
    padding: 20px 25px;
    border-bottom: 1px solid #f8fafc;
    font-weight: 600;
    color: var(--text-main);
}

[data-theme="dark"] .admin-table td {
    border-color: rgba(255, 255, 255, 0.05);
    color: #cbd5e1;
}

.admin-table tr:hover td {
    background: rgba(201, 162, 63, 0.02);
}

.select-hint {
    text-align: center;
    padding: 80px !important;
    color: #94a3b8;
    font-size: 1.1rem;
}

.select-hint i {
    display: block;
    font-size: 3rem;
    margin-bottom: 20px;
    opacity: 0.2;
}

/* UI Components */
.status-badge {
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.badge-purpose {
    background: #f0f9ff;
    color: #0ea5e9;
    border: 1px solid #e0f2fe;
}

.status-badge.available {
    background: #f0fdf4;
    color: #22c55e;
    border: 1px solid #dcfce7;
}

.status-badge.sold {
    background: #fef2f2;
    color: #ef4444;
    border: 1px solid #fee2e2;
}

.status-badge.neutral {
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid #e2e8f0;
}

.action-btns {
    display: flex;
    gap: 8px;
}

.btn-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid var(--border-light);
    background: #fff;
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.btn-icon.sell {
    color: #16a34a;
}

.btn-icon.sell:hover {
    background: #16a34a;
    color: #fff;
    border-color: #16a34a;
}

.btn-icon.delete {
    color: #ef4444;
}

.btn-icon.delete:hover {
    background: #ef4444;
    color: #fff;
    border-color: #ef4444;
}

/* Settings View */
.settings-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 20px;
}

.settings-card {
    background: #f8fafc;
    border-radius: 20px;
    padding: 30px;
    border: 1px solid var(--border-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

[data-theme="dark"] .settings-card {
    background: #1e293b;
    border-color: rgba(255, 255, 255, 0.05);
}

.action-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
}

#settings-add-building-trigger:hover {
    border-color: #3b82f6 !important;
}

/* Admin Specific Buttons */
.admin-toolbar .btn-gold {
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 0.95rem;
    box-shadow: 0 4px 15px rgba(201, 162, 63, 0.2);
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-footer .btn {
    padding: 14px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.sidebar-footer .btn-gold {
    background: var(--gold-main);
    color: var(--navy-deep);
    border: none;
    box-shadow: 0 4px 15px rgba(201, 162, 63, 0.2);
}

.sidebar-footer .btn-outline {
    background: #fff;
    border: 1px solid var(--border-light);
    color: var(--navy-deep);
}

[data-theme="dark"] .sidebar-footer .btn-outline {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.admin-main {
    padding: 40px 60px;
}

@media (max-width: 768px) {
    .admin-main {
        padding: 20px;
    }
}

[data-theme="dark"] .settings-card h3 {
    color: #fff;
}

.settings-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* RTL Support */
[dir="rtl"] .admin-sidebar {
    border-right: none;
    border-left: 1px solid var(--border-light);
}

[dir="rtl"] .admin-proj-item i {
    margin-left: 12px;
    margin-right: 0;
}

[dir="rtl"] .admin-table th,
[dir="rtl"] .admin-table td {
    text-align: right;
}

[dir="rtl"] .close-btn {
    left: 40px;
    right: auto;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* =========================================
   IMAGE UPLOAD SECTION STYLES
   ========================================= */

.image-upload-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Drop Zone Styles */
.image-drop-zone {
    border: 2px dashed var(--border-light);
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
    background: #f8fafc;
    transition: all 0.3s ease;
    cursor: pointer;
}

[data-theme="dark"] .image-drop-zone {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.1);
}

.image-drop-zone:hover {
    border-color: var(--gold-muted);
    background: rgba(201, 162, 63, 0.05);
    transform: translateY(-2px);
}

.image-drop-zone.dragover {
    background: rgba(201, 162, 63, 0.1);
    border-color: var(--gold-main);
    transform: scale(1.02);
}

/* =========================================
   ADMIN RESPONSIVE FIXES
   ========================================= */

/* Filters Bar - Search & Dropdowns */
.admin-filters-bar {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 10px;
    margin-bottom: 20px;
    background: var(--bg-secondary);
    padding: 15px;
    border-radius: 12px;
    border: 1px solid var(--border-light);
}

@media (max-width: 1200px) {
    .admin-filters-bar {
        grid-template-columns: 1fr 1fr;
        /* 2 columns on tablet */
    }

    .admin-filters-bar>div:first-child {
        grid-column: 1 / -1;
        /* Search bar full width */
    }
}

@media (max-width: 768px) {
    .admin-filters-bar {
        grid-template-columns: 1fr;
        /* Stack vertically on mobile */
        gap: 12px;
    }

    .admin-filters-bar select,
    .admin-filters-bar input {
        width: 100%;
        height: 45px;
        /* Larger touch targets */
    }
}

/* Settings Grid Responsive */
.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    /* Smaller min-width for mobile */
    gap: 20px;
    margin-bottom: 40px;
}

@media (max-width: 768px) {
    .settings-grid {
        grid-template-columns: 1fr;
        /* Full width cards on mobile */
        gap: 15px;
        margin-bottom: 30px;
    }
}

/* Mobile Admin Header & Layout */
@media (max-width: 768px) {
    .admin-header {
        padding: 15px 20px;
    }

    .admin-header h2 {
        font-size: 1.1rem;
    }

    .admin-main {
        padding: 20px 15px;
    }

    .admin-toolbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        margin-bottom: 25px;
    }

    .toolbar-left h2 {
        font-size: 1.5rem;
    }

    .toolbar-stats {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .status-badge {
        justify-content: center;
        text-align: center;
    }

    /* Admin Sidebar Mobile Tweaks */
    .admin-sidebar {
        max-height: 250px;
        /* Limit height of project list on mobile */
    }

    .sidebar-header {
        padding: 15px;
    }

    .admin-project-list {
        padding: 0 10px;
    }
}



/* Images Grid Preview */
.images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 15px;
    padding: 20px;
    background: var(--white);
    border-radius: 12px;
    border: 1px solid var(--border-light);
}

[data-theme="dark"] .images-grid {
    background: rgba(15, 23, 42, 0.5);
    border-color: rgba(255, 255, 255, 0.1);
}

.image-grid-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    background: #f1f5f9;
    border: 2px solid var(--border-light);
    transition: all 0.3s ease;
    cursor: pointer;
}

[data-theme="dark"] .image-grid-item {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.image-grid-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: var(--gold-muted);
}

.image-grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-grid-item .remove-image-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.95);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    box-shadow: 0 4px 10px rgba(239, 68, 68, 0.3);
}

.image-grid-item:hover .remove-image-btn {
    opacity: 1;
}

.image-grid-item .remove-image-btn:hover {
    background: #dc2626;
    transform: scale(1.1);
}

/* Image Upload Progress (Optional) */
.image-upload-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: rgba(201, 162, 63, 0.2);
    overflow: hidden;
}

.image-upload-progress-bar {
    height: 100%;
    background: var(--gold-main);
    width: 0%;
    transition: width 0.3s ease;
}

@media (max-width: 768px) {
    .image-grid-item .remove-image-btn {
        opacity: 1;
        /* Always visible on mobile */
    }
}

/* Unit Filters (Responsive Grid) */
.admin-unit-table-filters {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr auto;
    gap: 10px;
    margin-bottom: 15px;
    background: var(--bg-secondary);
    padding: 12px;
    border-radius: 12px;
    border: 1px solid var(--border-light);
    align-items: center;
}

.unit-filter-search {
    position: relative;
    width: 100%;
}

.unit-filter-search i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.4;
    font-size: 0.8rem;
}

.unit-filter-search input {
    width: 100%;
    padding: 8px 10px 8px 35px;
    border-radius: 8px;
    border: 1px solid var(--border-light);
    font-size: 0.85rem;
}

.admin-unit-table-filters select,
.unit-filter-area-group input,
.unit-filter-area-group span {
    padding: 8px;
    border-radius: 8px;
    border: 1px solid var(--border-light);
    font-size: 0.85rem;
}

.unit-filter-area-group {
    display: flex;
    align-items: center;
    gap: 5px;
}

.unit-filter-area-group input {
    width: 100%;
    min-width: 60px;
}

.filter-btn {
    padding: 8px 15px;
    border-radius: 8px;
    font-size: 0.85rem;
    height: 100%;
}

@media (max-width: 1100px) {
    .admin-unit-table-filters {
        grid-template-columns: 1fr 1fr;
    }

    .unit-filter-search {
        grid-column: 1 / -1;
    }
}

@media (max-width: 600px) {
    .admin-unit-table-filters {
        grid-template-columns: 1fr;
    }
}

/* Export Report Dropdown */
.dropdown-menu-custom a:hover {
    background: #f8fafc;
    color: var(--gold-main);
}

[data-theme="dark"] .dropdown-menu-custom {
    background: #1e293b !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

[data-theme="dark"] .dropdown-menu-custom a {
    color: #e2e8f0 !important;
}

[data-theme="dark"] .dropdown-menu-custom a:hover {
    background: rgba(255, 255, 255, 0.05) !important;
    color: var(--gold-main) !important;
}

/* Print Optimization for Admin Report */
@media print {
    body * {
        visibility: hidden;
    }

    #print-report-container,
    #print-report-container * {
        visibility: visible;
    }

    #print-report-container {
        position: absolute;
        left: 0;
        top: 0;
    }
}

/* =========================================
   AUTH MODAL & LUXURY CARDS SYSTEM
   ========================================= */

/* --- Extended Modal Styles --- */
.auth-modal-card {
    background: #ffffff;
    /* White Background */
    /* Remove backdrop filter as it's solid white now, or keep slightly transparent if desired */
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 900px;
    /* Wider for the grid */
    border-radius: 32px;
    padding: 0;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    max-height: 90vh;
}

.auth-modal-card::before {
    display: none;
    /* Remove golden border glow for cleaner light theme, or adjust */
}

/* Header */
.auth-header {
    text-align: center;
    padding: 40px 40px 20px;
    position: relative;
    z-index: 10;
}

.auth-header img {
    height: 110px;
    /* Increased from 60px */
    margin-bottom: 25px;
}

.auth-modal-card .modal-close {
    z-index: 50;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.05);
    /* Light grey for light mode */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
    color: #333;
}

.auth-modal-card .modal-close:hover {
    background: rgba(0, 0, 0, 0.1);
    transform: rotate(90deg);
    color: #000;
}

.auth-header h2 {
    color: var(--navy-deep);
    /* Dark text */
    font-size: 2rem;
    margin-bottom: 10px;
    font-weight: 300;
}

.auth-header h2 span {
    font-weight: 700;
    color: var(--gold);
}

.auth-header p {
    color: #666;
    /* Grey text */
    font-size: 1rem;
}

/* --- Vertical Stack Layout --- */
.auth-stack-container {
    padding: 0 50px 40px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.auth-stack-btn {
    width: 100%;
    background: #fff;
    border: 1px solid #e0e0e0;
    /* Light border */
    border-radius: 50px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    color: #333;
    /* Dark Text */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

.auth-stack-btn i {
    font-size: 1.2rem;
    position: absolute;
    left: 25px;
    color: #555;
}

.auth-stack-btn span {
    font-size: 1rem;
    font-weight: 500;
    color: #333;
}

.auth-stack-btn:hover {
    background: #f9f9f9;
    border-color: var(--gold);
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.05);
}

.auth-stack-btn.google i {
    color: #EA4335;
}

/* Colored Google Icon */
.auth-stack-btn.phone i {
    color: #333;
}

/* Divider */
.auth-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 10px 0;
    position: relative;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    height: 1px;
    background: #e0e0e0;
    flex: 1;
}

.auth-divider span {
    padding: 0 15px;
    color: #999;
    font-size: 0.9rem;
    text-transform: uppercase;
}

/* Email Flow Inline */
.auth-email-flow {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#quick-email-input {
    width: 100%;
    padding: 16px 25px;
    border-radius: 50px;
    /* Pill shape */
    background: #fff;
    border: 1px solid #ccc;
    color: #333;
    font-size: 1rem;
    text-align: left;
}

#quick-email-input:focus {
    border-color: var(--gold);
    outline: none;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

[dir="rtl"] .auth-stack-btn i {
    left: auto;
    right: 25px;
}

/* Typography */
.auth-card-title {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
}

.auth-card-desc {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    line-height: 1.4;
}

/* --- Views (Forms) --- */
.auth-view-container {
    display: none;
    /* Hidden by default */
    padding: 0 40px 40px;
    animation: fadeIn 0.4s ease forwards;
}

.auth-view-container.active {
    display: block;
}

/* Back Button within Modal */
.auth-back-btn {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    transition: 0.3s;
}

.auth-back-btn:hover {
    color: var(--gold);
    transform: translateX(-5px);
}

/* Country Code & Inputs */
.country-code {
    width: 80px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 12px;
    color: #333;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Verification Code Input */
.otp-inputs {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 20px 0;
}

.otp-digit {
    width: 50px;
    height: 60px;
    border-radius: 12px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    color: #333;
    font-size: 1.5rem;
    text-align: center;
    font-weight: 700;
}

.otp-digit:focus {
    border-color: var(--gold);
    outline: none;
    background: #fff;
}

/* Responsive */
@media (max-width: 600px) {
    .auth-stack-container {
        padding: 20px;
    }

    .auth-modal-card {
        border-radius: 20px;
        /* Rounded corners everywhere */
        width: 90%;
        max-width: 400px;
        margin: auto;
        /* Center vertically and horizontally */
        height: auto;
        min-height: auto;
        transform: scale(0.95);
        opacity: 0;
        transition: all 0.3s ease-out;
    }

    .modal-overlay.active .auth-modal-card {
        transform: scale(1);
        opacity: 1;
    }

    .auth-header {
        padding: 30px 20px 10px;
    }
}

/* =========================================
   09-ANIMATIONS
   ========================================= */

/* Reveal Components */
.reveal {
    opacity: 0;
    will-change: transform, opacity;
    transition: opacity 1s cubic-bezier(0.2, 0.8, 0.2, 1), transform 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal-visible {
    opacity: 1;
    transform: translate(0, 0) scale(1);
}

/* FIX: Specific keyframes for different sizes */
@keyframes fadeUp-sm {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeUp-md {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Base keyframes replacing generic fadeInUp */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes logoEntrance {
    from {
        opacity: 0;
        transform: translate(-50%, -110%);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

/* Utility Animations */
.animate-fade-up {
    animation: fadeUp-sm 0.8s forwards;
    /* Use optimized */
}

.animate-fade {
    animation: fadeIn 1.2s forwards;
}

/* Directions */
.reveal-up {
    transform: translateY(60px);
}

.reveal-down {
    transform: translateY(-60px);
}

.reveal-left {
    transform: translateX(60px);
}

.reveal-right {
    transform: translateX(-60px);
}

.reveal-scale {
    transform: scale(0.9);
}

/* Premium Hover Interactions */
.hover-lift {
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s ease;
}

.hover-lift:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-xl);
}

.btn-premium {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.btn-premium::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-premium:hover::after {
    width: 300%;
    height: 300%;
}

/* Pulse for status */
@keyframes pulse-gold {
    0% {
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(212, 175, 55, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0);
    }
}

.pulse-available {
    animation: pulse-gold 2s infinite;
}

/* Loader Animation */
.page-loader {
    position: fixed;
    inset: 0;
    background: var(--navy-deep);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s ease, visibility 0.8s;
}

.loader-logo {
    width: 120px;
    animation: loaderPulse 1.5s ease-in-out infinite;
}

@keyframes loaderPulse {

    0%,
    100% {
        opacity: 0.5;
        transform: scale(0.95);
    }

    50% {
        opacity: 1;
        transform: scale(1.05);
    }
}

.loader-finished {
    opacity: 0;
    visibility: hidden;
}

/* Staggered Delay Helpers */
.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

.delay-400 {
    animation-delay: 0.4s;
}

.delay-500 {
    animation-delay: 0.5s;
}

/* Stagger Logic for Containers */
.stagger-container>* {
    opacity: 0;
    transform: translateY(20px);
    transition: 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal-visible .stagger-container>* {
    opacity: 1;
    transform: translateY(0);
}

.reveal-visible .stagger-container>*:nth-child(1) {
    transition-delay: 0.1s;
}

.reveal-visible .stagger-container>*:nth-child(2) {
    transition-delay: 0.2s;
}

.reveal-visible .stagger-container>*:nth-child(3) {
    transition-delay: 0.3s;
}

.reveal-visible .stagger-container>*:nth-child(4) {
    transition-delay: 0.4s;
}

/* Modal Staggered */
.modal-overlay.active .login-header,
.modal-overlay.active .form-group-modal,
.modal-overlay.active .btn-login-submit,
.modal-overlay.active .divider,
.modal-overlay.active .btn-google-login,
.modal-overlay.active .login-footer {
    animation: fadeUp-sm 0.5s ease forwards;
    opacity: 0;
}

/* Staggered delays for modal */
.modal-overlay.active .login-header {
    animation-delay: 0.1s;
}

.modal-overlay.active .form-group-modal:nth-child(1) {
    animation-delay: 0.15s;
}

.modal-overlay.active .form-group-modal:nth-child(2) {
    animation-delay: 0.2s;
}

.modal-overlay.active .btn-login-submit {
    animation-delay: 0.25s;
}

.modal-overlay.active .divider {
    animation-delay: 0.3s;
}

.modal-overlay.active .btn-google-login {
    animation-delay: 0.35s;
}

.modal-overlay.active .login-footer {
    animation-delay: 0.4s;
}

/* =========================================
   10-RESPONSIVE DESIGN (Comprehensive Fix)
   ========================================= */

/* ===== MOBILE-FIRST GLOBAL STYLES (ADDED) ===== */
html {
    font-size: 16px;
    /* Base mobile size */
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

@media (min-width: 1024px) {
    html {
        font-size: 18px;
        /* Larger on desktop */
    }
}

/* Touch-friendly targets */
button,
a,
input,
select,
textarea {
    min-height: 44px;
    min-width: 44px;
}

/* Prevent text overflow */
h1,
h2,
h3,
h4,
h5,
h6,
p {
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
}

/* Responsive Container Padding */
.container {
    padding-left: 16px;
    padding-right: 16px;
    width: 100%;
    margin-right: auto;
    margin-left: auto;
}

@media (min-width: 768px) {
    .container {
        padding-left: 24px;
        padding-right: 24px;
    }
}

@media (min-width: 1024px) {
    .container {
        padding-left: 32px;
        padding-right: 32px;
        max-width: 1280px;
    }
}

@media (max-width: 1200px) {
    .section-title {
        font-size: 2.22rem;
    }

    .hero-title-center {
        font-size: 3.2rem;
    }
}


@media (max-width: 991px) {
    body {
        padding-top: var(--total-header-mobile) !important;
    }

    .section {
        padding: 80px 0;
    }

    .grid-2col,
    .grid-3col {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    /* Hero Section Responsive Spacing */
    .hero-section {
        margin-top: 0 !important;
        padding-top: 0 !important;
        height: 75vh !important;
        /* Match mobile hero height from hero.css */
        min-height: auto !important;
    }

    /* Fix overlapping logo padding on tablet */
    .top-bar {
        display: none !important;
    }

    .top-bar-left {
        padding-inline-start: 0;
    }

    /* Conflicting logo rules removed to allow unified PC-style mobile logo */
}

@media (max-width: 768px) {
    :root {
        --navbar-height: 70px;
    }

    .container {
        padding: 0 20px;
    }

    .section {
        padding: 60px 0;
    }

    /* Section Headers Scaling */
    .section-header {
        margin-bottom: 40px;
    }

    .section-title {
        font-size: 1.8rem;
    }

    #projects .section-subtitle {
        font-size: 2.4rem !important;
        /* Enhanced for better mobile visibility */
        letter-spacing: 1.3px;
        margin-bottom: 22px;
        line-height: 1.15;
    }

    .hero-title-center {
        font-size: 2rem;
        letter-spacing: -0.5px;
    }

    .hero-subtitle-center {
        font-size: 0.95rem;
        margin-bottom: 20px;
    }

    /* Trust Strip Mobile Fix */
    .trust-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .trust-item {
        padding: 20px 10px;
    }

    .trust-item h3 {
        font-size: 1.4rem;
    }

    /* Grid & Card Mobile Fixes */
    .projects-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px;
        padding: 0 5px;
    }

    /* Force visibility of reveals on mobile to prevent "empty sections" issues */
    .reveal,
    .section,
    .trust-strip {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
        visibility: visible !important;
    }

    /* Hide desktop nav */
    .nav-links {
        display: none !important;
    }

    .header-utils {
        padding-inline-end: 5px;
        gap: 8px;
    }

    /* Adjust Admin Table for mobile */
    .admin-table-container {
        overflow-x: auto;
    }

    .admin-table th,
    .admin-table td {
        padding: 12px 10px;
        font-size: 0.85rem;
    }

    /* Ensure sidebar is full width on mobile */
    .main-sidebar {
        width: 280px !important;
        left: -280px !important;
        right: auto !important;
    }

    [dir="rtl"] .main-sidebar {
        left: auto !important;
        right: -280px !important;
    }

    .main-sidebar.active {
        left: 0 !important;
        right: auto !important;
    }

    [dir="rtl"] .main-sidebar.active {
        left: auto !important;
        right: 0 !important;
    }

    /* Top bar adjustments for mobile - Handled in header.css now */
    /* .top-bar { display: none; } */

    /* Ensure all sections are visible on mobile */
    .section {
        min-height: auto;
    }

    /* Fix header on mobile */
    .main-header {
        position: fixed !important;
        top: 0;
        z-index: 10002 !important;
        /* Above scroll-progress (10001) and quick-nav (1020) */
        overflow: visible !important;
    }

    /* Fixed Sections Spacing */
    .section {
        padding: 50px 0;
    }

    /* Removed redundant hero padding - handled by global flow and sticky nav */
}


@media (max-width: 480px) {
    .hero-title-center {
        font-size: 1.6rem;
    }

    .trust-grid {
        grid-template-columns: 1fr;
    }

    .filter__status-group {
        flex-direction: row;
        height: auto;
        flex-wrap: nowrap;
        justify-content: center;
        width: 100%;
    }

    .filter__status-btn {
        flex: 1;
        height: 40px;
        padding: 5px 2px;
        font-size: 0.7rem;
    }

    .btn-gold,
    .btn-outline {
        width: 100%;
        justify-content: center;
    }

    /* Smaller sidebar on very small screens */
    .main-sidebar {
        width: 260px !important;
        left: -260px !important;
        right: auto !important;
    }

    .main-sidebar.active {
        left: 0 !important;
        right: auto !important;
    }

    /* Adjust sidebar content for small screens */
    .sidebar-item {
        padding: 10px 15px !important;
        font-size: 0.95rem !important;
    }

    .sidebar-submenu li a {
        padding: 10px 20px !important;
        font-size: 0.9rem !important;
    }
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 110px;
    right: 30px;
    width: 44px;
    height: 44px;
    background: var(--gold-muted);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    border: none;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--navy-deep);
    transform: translateY(-5px);
}

@media (max-width: 768px) {
    .img-frame {
        height: 300px;
        margin-top: 20px;
    }

    .timeline-container {
        overflow-x: visible;
        margin-top: 30px;
        padding-bottom: 0;
    }

    .timeline {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
        min-width: 100% !important;
        align-items: stretch;
    }

    .timeline-item {
        width: 100% !important;
        padding: 20px !important;
        text-align: center;
        /* Better for vertical mobile flow */
        background: #fff;
        border: 1px solid #eee;
        border-radius: 12px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
    }

    .timeline-item::before {
        display: none;
    }
}

/* Featured Portfolio Section Styles - Professional & Premium Upgrade */
.featured-portfolio {
    padding: 120px 0;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    overflow: hidden;
    position: relative;
}

/* Subtle background elements for premium feel */
.featured-portfolio::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(var(--gold-muted) 0.5px, transparent 0.5px);
    background-size: 30px 30px;
    opacity: 0.05;
    pointer-events: none;
}

[data-theme="dark"] .featured-portfolio {
    background: linear-gradient(180deg, #000000 0%, #020617 100%);
}

[data-theme="dark"] .featured-portfolio::before {
    opacity: 0.03;
}

.portfolio-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 1;
}

.portfolio-nav-btns {
    display: flex;
    gap: 12px;
}

.portfolio-nav-btn {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    /* Smoother corner */
    border: 1px solid rgba(201, 162, 63, 0.2);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    color: var(--navy-deep);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

[data-theme="dark"] .portfolio-nav-btn {
    background: rgba(30, 41, 59, 0.8);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.05);
}

.portfolio-nav-btn:hover {
    background: var(--gold-dark);
    color: #fff;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 20px rgba(201, 162, 63, 0.2);
    border-color: var(--gold-main);
}

.portfolio-slider-container {
    position: relative;
    padding: 10px 0;
}

.portfolio-track {
    display: flex;
    gap: 40px;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    margin-bottom: 20px;
}

/* Professional Grid on Desktop */
@media (min-width: 1200px) {
    .portfolio-track {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
        transform: none !important;
        /* Disable slider if 3 or fewer items */
    }

    .portfolio-nav-btns {
        display: none;
        /* Hide nav if grid used */
    }
}

/* Project Card Premium Design */
.portfolio-card {
    flex: 0 0 calc(33.333% - 27px);
    min-width: 360px;
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.03);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.04);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    position: relative;
    cursor: pointer;
}

[data-theme="dark"] .portfolio-card {
    background: #1e293b;
    border-color: rgba(255, 255, 255, 0.03);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.portfolio-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
    border-color: rgba(201, 162, 63, 0.3);
}

[data-theme="dark"] .portfolio-card:hover {
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.portfolio-card-img {
    height: 300px;
    /* Taller images for PC */
    position: relative;
    overflow: hidden;
}

.portfolio-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.1, 0, 0, 1), opacity 0.6s ease;
}

.portfolio-card:hover .portfolio-card-img img {
    transform: scale(1.15);
}

/* Overlay gradient for depth */
.portfolio-card-img::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.portfolio-card:hover .portfolio-card-img::after {
    opacity: 1;
}

.portfolio-card-badge {
    position: absolute;
    top: 25px;
    right: 25px;
    background: var(--gold-main);
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--navy-deep);
    box-shadow: 0 4px 15px rgba(201, 162, 63, 0.3);
    z-index: 2;
    text-transform: uppercase;
    letter-spacing: 1px;
}

[dir="rtl"] .portfolio-card-badge {
    right: auto;
    left: 25px;
}

.portfolio-card-content {
    padding: 35px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.portfolio-card-title {
    font-family: 'Cinzel', serif;
    /* Elegant title */
    font-size: 1.6rem;
    color: var(--navy-deep);
    margin-bottom: 12px;
    font-weight: 700;
    transition: color 0.3s ease;
}

[data-theme="dark"] .portfolio-card-title {
    color: #fff;
}

.portfolio-card:hover .portfolio-card-title {
    color: var(--gold-main);
}

.portfolio-card-meta {
    margin-bottom: 25px;
}

.portfolio-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: var(--bg-secondary);
    border-radius: 20px;
    color: #475569;
    font-size: 0.85rem;
    font-weight: 600;
}

[data-theme="dark"] .portfolio-meta-item {
    background: rgba(255, 255, 255, 0.05);
    color: #94a3b8;
}

.portfolio-meta-item i {
    color: var(--gold-main);
}

.portfolio-card-footer {
    margin-top: auto;
    padding-top: 25px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

[data-theme="dark"] .portfolio-card-footer {
    border-top-color: rgba(255, 255, 255, 0.05);
}

.portfolio-price-info {
    display: flex;
    flex-direction: column;
}

.portfolio-price-label {
    font-size: 0.75rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 4px;
    font-weight: 600;
}

.portfolio-price-value {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--navy-deep);
}

[data-theme="dark"] .portfolio-price-value {
    color: var(--gold-muted);
}

.portfolio-view-btn {
    width: 60px;
    height: 48px;
    background: var(--navy-deep);
    color: #fff;
    border: none;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.4s ease;
}

.portfolio-card:hover .portfolio-view-btn {
    background: var(--gold-main);
    width: 80px;
    /* Expands on hover */
}

.portfolio-view-btn i {
    font-size: 1.1rem;
    transition: transform 0.4s ease;
}

.portfolio-card:hover .portfolio-view-btn i {
    transform: translateX(5px);
}

/* Responsiveness */
@media (max-width: 1400px) {
    .portfolio-card {
        min-width: 320px;
    }
}

@media (max-width: 1199px) {
    .portfolio-track {
        display: flex;
        transform: none;
    }

    .portfolio-nav-btns {
        display: flex;
    }

    .portfolio-card {
        flex: 0 0 380px;
    }
}

@media (max-width: 991px) {
    .portfolio-card {
        flex: 0 0 340px;
    }

    .portfolio-card-img {
        height: 220px;
    }
}

@media (max-width: 768px) {
    .featured-portfolio {
        padding: 80px 0;
    }

    .portfolio-header {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        gap: 30px;
    }

    .portfolio-card {
        flex: 0 0 300px;
        min-width: 300px;
    }

    .portfolio-card-content {
        padding: 25px;
    }
}

/* Modern Statistics Section - Light Theme */
.stats-section {
    background-color: #ffffff;
    /* White background as requested */
    padding: 80px 0;
    font-family: 'Inter', sans-serif;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Card Styling */
.stat-card {
    background: #ffffff;
    border: 1px solid #E5E7EB;
    /* Subtle border */
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border-color: #F59E0B;
    /* Gold Highlight on hover */
}

/* Icon Container */
.stat-icon-wrapper {
    width: 56px;
    height: 56px;
    background-color: #FEF3C7;
    /* Light Gold/Amber */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
    color: #F59E0B;
    /* Gold Icon */
    transition: transform 0.3s ease;
}

.stat-card:hover .stat-icon-wrapper {
    transform: scale(1.1);
}

.stat-icon-wrapper svg {
    width: 28px;
    height: 28px;
    stroke-width: 2px;
}

/* Typography */
.stat-number {
    font-size: 44px;
    font-weight: 800;
    color: #111827;
    /* Dark Gray */
    line-height: 1.2;
    margin-bottom: 8px;
    display: block;
    min-height: 54px;
    /* Prevent layout shift */
}

.stat-label {
    font-size: 11px;
    font-weight: 600;
    color: #6B7280;
    /* Light Gray */
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Loading State (Skeleton) */
.stat-skeleton {
    display: inline-block;
    width: 60px;
    height: 40px;
    background: #f3f4f6;
    border-radius: 4px;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 800px;
    }
}

@media (max-width: 640px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 0 12px;
    }

    .stat-card {
        padding: 20px 12px;
    }

    .stat-number {
        font-size: 28px;
        min-height: auto;
    }

    .stat-label {
        font-size: 9px;
    }

    .stats-section {
        padding: 40px 0;
    }
}

/* Promotions / Professional White Horizontal Section */
.billboard-section {
    padding: 15px 0;
    background: #ffffff;
    overflow: hidden;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 10px;
    padding: 0 20px;
}

.section-title {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 5px;
    font-family: 'Cairo', sans-serif;
    background: linear-gradient(135deg, #d4af37 0%, #f4d878 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-subtitle {
    font-size: 12px;
    font-weight: 400;
    color: #6c757d;
    max-width: 600px;
    margin: 0 auto;
    font-family: 'Cairo', sans-serif;
}

/* Scroll Container */
.scroll-nav-container {
    position: relative;
    max-width: 100%;
    /* Spans full width of the page */
    margin: 0 auto;
}

/* Offers Grid/Scroll Container */
.offers-scroll {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 12px;
    padding: 10px 5% 15px;
    /* Responsive side padding */
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #d4af37 #e9ecef;
}

.offers-scroll::-webkit-scrollbar {
    height: 6px;
}

.offers-scroll::-webkit-scrollbar-track {
    background: #e9ecef;
    border-radius: 10px;
}

.offers-scroll::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, #d4af37, #f4d878);
    border-radius: 10px;
}

/* Card Styling */
.offer-card {
    position: relative;
    flex: 0 0 auto;
    width: 480px;
    /* Adjusted width */
    height: 200px;
    /* Reduced/Fixed height */
    background: #000;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    scroll-snap-align: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    /* Container for absolute children */
}

.offer-card:hover {
    transform: translateY(-8px);
    /* Subtle lift */
    box-shadow: 0 20px 40px rgba(212, 175, 55, 0.12), 0 8px 16px rgba(0, 0, 0, 0.06);
    border-color: rgba(212, 175, 55, 0.3);
}

/* Card Image Wrapper */
.card-image-wrapper {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
    z-index: 1;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.offer-card:hover .card-image {
    transform: scale(1.08);
}

.card-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.3) 100%);
    z-index: 2;
}

/* Badge */
.card-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 5px 12px;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

[dir="rtl"] .card-badge {
    right: auto;
    left: 20px;
}

.badge-best-price {
    background: linear-gradient(135deg, #d4af37 0%, #f4d878 100%);
    color: #1a1a1a;
}

.badge-flexible {
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    color: #ffffff;
}

.badge-limited {
    background: linear-gradient(135deg, #ff6b35 0%, #e74c3c 100%);
    color: #ffffff;
    animation: pulse-badge 2s ease-in-out infinite;
}

@keyframes pulse-badge {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
    }
}

/* Card Content */
/* Card Content - Compact Redesign */
/* Card Content */
.card-content {
    position: relative;
    width: 100%;
    height: 100%;
    padding: 20px 25px;
    z-index: 5;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #ffffff;
}

.card-title {
    font-size: 22px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 5px;
    font-family: 'Cairo', sans-serif;
    color: #ffffff;
}

.card-title.highlight {
    background: linear-gradient(135deg, #d4af37 0%, #f4d878 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.card-subtitle {
    font-size: 14px;
    font-weight: 700;
    color: var(--gold-muted);
    margin-bottom: 8px;
    font-family: 'Tajawal', sans-serif;
}

.card-description {
    font-size: 13px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.4;
    margin-bottom: 15px;
    font-family: 'Cairo', sans-serif;
}

/* CTA */
.card-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    padding: 8px 20px;
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
    background: var(--gold-muted);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    margin-top: 5px;
}

.card-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(255, 149, 0, 0.35);
}

.card-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(255, 149, 0, 0.35);
    background: linear-gradient(135deg, #ff8000 0%, #ff6b00 100%);
    color: #fff;
}

/* Navigation Buttons */
.scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: #ffffff;
    border: 2px solid #d4af37;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    color: #d4af37;
    font-size: 20px;
}

.scroll-btn:hover {
    background: linear-gradient(135deg, #d4af37 0%, #f4d878 100%);
    border-color: transparent;
    transform: translateY(-50%) scale(1.1);
    color: #ffffff;
}

.scroll-left {
    left: 10px;
}

.scroll-right {
    right: 10px;
}

/* Responsive */
@media (max-width: 1024px) {
    .offer-card {
        width: 380px;
    }

    .card-title {
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    .offer-card {
        width: 300px;
        height: 160px;
    }

    .card-content {
        padding: 15px;
    }

    .card-title {
        font-size: 18px;
    }

    .card-subtitle {
        font-size: 12px;
        margin-bottom: 5px;
    }

    .card-description {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        /* Added for compatibility */
        -webkit-box-orient: vertical;
        overflow: hidden;
        margin-bottom: 10px;
        font-size: 11px;
    }

    .card-cta {
        padding: 6px 15px;
        font-size: 11px;
    }
}

/* Timer */
.countdown-timer-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: #fff5e6;
    border: 1px solid #ffd699;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: #d4770e;
    margin-bottom: 12px;
}

/* =========================================
   PROJECT AREA TABS (Premium Filter)
   ========================================= */

.project-area-tabs {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-bottom: 50px;
    flex-wrap: wrap;
    position: relative;
    z-index: 10;
}

.area-tab-btn {
    background: transparent;
    border: 1px solid rgba(201, 162, 63, 0.3);
    padding: 6px 15px;
    font-family: 'Cinzel', serif;
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--navy-deep);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 8px;
    /* Slight rounding but keeping it professional */
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(10px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.area-tab-btn:nth-child(1) {
    animation-delay: 0.1s;
}

.area-tab-btn:nth-child(2) {
    animation-delay: 0.2s;
}

.area-tab-btn:nth-child(3) {
    animation-delay: 0.3s;
}


/* Glassmorphism Effect */
.area-tab-btn {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(5px);
}


.area-tab-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: var(--gold-main);
    transition: width 0.4s ease;
    z-index: -1;
}

.area-tab-btn:hover {
    border-color: var(--gold-main);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(201, 162, 63, 0.15);
}

.area-tab-btn:hover::before {
    width: 100%;
}

.area-tab-btn:hover {
    color: #fff;
}

/* Active State */
.area-tab-btn.active {
    background: var(--gold-main);
    color: #fff;
    border-color: var(--gold-main);
    box-shadow: 0 10px 25px rgba(201, 162, 63, 0.4);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    /* Ensure text pop */
}


.area-tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gold-main);
}


/* Separator Dots Styling (if needed conceptually, but buttons are separate) */
/* We are using buttons as requested ("3 buttons like a filter") */

/* Dark Mode Support */
[data-theme='dark'] .area-tab-btn {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(30, 41, 59, 0.5);
}

[data-theme='dark'] .area-tab-btn:hover,
[data-theme='dark'] .area-tab-btn.active {
    background: var(--gold-main);
    border-color: var(--gold-main);
    color: #fff;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .project-area-tabs {
        gap: 10px;
        flex-direction: row;
        /* Force row */
        flex-wrap: nowrap;
        /* Prevent wrapping */
        width: 100%;
        overflow-x: auto;
        /* Scroll if too small, though shrinking is better */
        justify-content: space-between;
        /* Spacing */
        padding: 5px;
    }

    .area-tab-btn {
        width: auto;
        flex: 1;
        /* Distribute space */
        text-align: center;
        padding: 4px 3px;
        /* Much smaller padding */
        font-size: 0.55rem;
        /* Smaller font */
        white-space: nowrap;
        /* No wrapping text inside button */
        min-width: min-content;
    }

    /* Hide dots on mobile to save space */
    .project-area-tabs .desktop-only {
        display: none !important;
    }
}

:root {
    --primary-gold: #c5a059;
    --primary-gold-dark: #a68541;
    --bg-beige: #fdfaf5;
    --text-dark: #1a1a1a;
    --text-muted: #666;
    --white: #ffffff;
    --accent-dark: #0f172a;
    --glass-bg: rgba(255, 255, 255, 0.8);
    --gold-gradient: linear-gradient(135deg, #c5a059 0%, #a68541 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html,
body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
    background-color: var(--bg-beige);
    color: var(--text-dark);
    line-height: 1.6;
}

/* Scroll Smoothing */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    /* Offset for sticky nav */
}

/* Premium Typography */
h1,
h2,
h3 {
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* Section Spacing */
section {
    padding: 100px 5%;
    position: relative;
    overflow-x: hidden;
}

/* ===== MOBILE-FIRST GLOBAL FIXES ===== */
html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

@media (min-width: 1024px) {
    html {
        font-size: 18px;
    }
}

/* Touch targets */
button,
a,
input,
select {
    min-height: 44px;
    min-width: 44px;
}

/* Responsive Container */
@media (max-width: 768px) {
    section {
        padding: 30px 10px;
        /* Even smaller padding */
    }

    .container {
        padding: 0 10px;
    }

    h1 {
        overflow-wrap: break-word;
        /* Prevent overflow */
    }
}

/* 1. Hero Section */
.hero {
    height: 85vh;
    /* Reverted to 85vh for natural premium look */
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-align: center;
    overflow: hidden;
}

.hero-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.2) 100%);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: 20px;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s ease-out;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
    animation: fadeInUp 1.2s ease-out;
}

.hero-info-bar {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 40px;
    animation: fadeInUp 1.4s ease-out;
}

.info-item {
    display: flex;
    flex-direction: column;
}

.info-item .label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.7;
}

.info-item .value {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-gold);
}

.cta-button {
    padding: 15px 40px;
    background: var(--gold-gradient);
    color: var(--white);
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 10px 20px rgba(197, 160, 89, 0.3);
}

.cta-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(197, 160, 89, 0.4);
}

/* 2. Quick Overview Bar */
.quick-overview-bar {
    background: var(--white);
    padding: 40px 5%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.05);
    margin-top: -50px;
    z-index: 10;
    position: relative;
    border-radius: 15px;
    width: 90%;
    margin-left: auto;
    margin-right: auto;
}

.overview-card {
    text-align: center;
    padding: 20px;
    border-right: 1px solid #eee;
}

.overview-card:last-child {
    border-right: none;
}

.overview-card i {
    font-size: 2rem;
    color: var(--primary-gold);
    margin-bottom: 10px;
    display: block;
}

.overview-card h4 {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.overview-card p {
    font-size: 1.1rem;
    font-weight: 700;
}

/* 3. About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-content h2 {
    font-size: 2.5rem;
    margin-bottom: 25px;
    color: var(--accent-dark);
}

.about-content p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: var(--text-muted);
}

.about-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 30px 30px 0 var(--primary-gold);
}

.about-image img {
    width: 100%;
    display: block;
    transition: transform 0.5s ease;
}

.about-image:hover img {
    transform: scale(1.05);
}

/* 4. Unit Types */
.unit-types-section {
    background-color: #fff;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.section-header .line {
    width: 60px;
    height: 4px;
    background: var(--gold-gradient);
    margin: 0 auto;
}

.units-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}

.unit-card {
    background: var(--bg-beige);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.unit-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-gold);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.unit-img {
    height: 250px;
    background-size: cover;
    background-position: center;
}

.unit-info {
    padding: 25px;
}

.unit-info h3 {
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.unit-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.detail {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.detail i {
    color: var(--primary-gold);
}

.unit-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-gold);
    margin-bottom: 20px;
}

/* 5. Amenities */
.amenities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

.amenity-item {
    text-align: center;
    padding: 30px;
    background: var(--white);
    border-radius: 15px;
    transition: all 0.3s ease;
}

.amenity-item:hover {
    background: var(--primary-gold);
    color: var(--white);
    transform: translateY(-5px);
}

.amenity-item i {
    font-size: 2.5rem;
    color: var(--primary-gold);
    margin-bottom: 15px;
}

.amenity-item:hover i {
    color: var(--white);
}

/* 6. Location */
.location-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 50px;
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
}

.map-wrapper iframe {
    width: 100%;
    height: 500px;
    border: none;
}

.accessibility-info {
    padding: 40px;
}

.landmark-item {
    display: flex;
    justify-content: space-between;
    padding-bottom: 15px;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.landmark-name {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.landmark-name i {
    color: var(--primary-gold);
}

/* 7. Gallery */
.gallery-section .swiper {
    width: 100%;
    padding-top: 50px;
    padding-bottom: 50px;
}

.swiper-slide {
    background-position: center;
    background-size: cover;
    width: 600px;
    height: 400px;
    border-radius: 15px;
}

/* 8. Contact Form */
.contact-section {
    background: #ffffff;
    color: #1a1a1a;
    border-top: 1px solid #eee;
}

.contact-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 160px;
}

.contact-info h2 {
    color: var(--primary-gold);
}

.contact-form {
    background: #f8fafc;
    padding: 40px;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    color: #0f172a;
    outline: none;
    transition: all 0.3s;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: #475569;
}

.form-group input:focus {
    border-color: var(--primary-gold);
    background: rgba(255, 255, 255, 0.15);
}

/* Sticky Nav (Simplified for demo) */
.project-nav {
    position: sticky;
    top: 0;
    width: 100%;
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    box-sizing: border-box;
}

.project-nav .cta-button {
    padding: 8px 25px;
    font-size: 0.85rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(197, 160, 89, 0.2);
}

.project-nav .cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(197, 160, 89, 0.3);
}

.project-nav.scrolled {
    background: var(--white);
    padding: 15px 5%;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.project-nav .logo {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--white);
}

.project-nav.scrolled .logo {
    color: var(--accent-dark);
}

/* Responsive */
@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .about-grid,
    .location-container,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .about-image {
        order: -1;
        margin-bottom: 40px;
    }
}

/* 9. Construction Progress */
.construction-progress {
    background: var(--white);
}

.progress-bar-container {
    width: 100%;
    height: 12px;
    background: #f0f0f0;
    border-radius: 20px;
    margin: 30px 0;
    overflow: hidden;
    position: relative;
}

.progress-bar {
    height: 100%;
    background: var(--gold-gradient);
    border-radius: 20px;
    transition: width 1.5s cubic-bezier(0.1, 0.8, 0.2, 1);
}

.progress-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.timeline {
    position: relative;
    padding: 40px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    background: #eee;
    transform: translateX(-50%);
}

.timeline-item {
    width: 100%;
    margin-bottom: 40px;
    position: relative;
}

.timeline-dot {
    width: 20px;
    height: 20px;
    background: var(--primary-gold);
    border-radius: 50%;
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    z-index: 2;
    border: 4px solid var(--white);
}

.timeline-content {
    width: 45%;
    padding: 20px;
    background: var(--bg-beige);
    border-radius: 12px;
    position: relative;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: auto;
}

/* 10. ROI Calculator */
.roi-calculator {
    background: var(--accent-dark);
    color: var(--white);
    border-radius: 20px;
    padding: 50px;
}

.calc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.calc-inputs {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.calc-result {
    background: rgba(255, 255, 255, 0.05);
    padding: 40px;
    border-radius: 15px;
    text-align: center;
}

.calc-result h4 {
    font-size: 1.5rem;
    color: var(--primary-gold);
    margin-bottom: 20px;
}

.calc-val {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 10px;
}

/* 11. Testimonials */
.testimonial-card {
    background: var(--white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.testimonial-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 20px;
    background: #eee;
    overflow: hidden;
}

.stars {
    color: #ffc107;
    margin-bottom: 15px;
}

/* 12. Compare Tool */
.compare-container {
    overflow-x: auto;
}

.compare-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: 15px;
}

.compare-table th,
.compare-table td {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid #eee;
}

/* 13. Download Center */
.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.download-link {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: var(--white);
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-dark);
    transition: all 0.3s;
    border: 1px solid #eee;
}

.download-link:hover {
    transform: scale(1.05);
    border-color: var(--primary-gold);
}

.download-link i {
    font-size: 1.5rem;
    color: var(--primary-gold);
}

/* 14. Floating Widgets */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    background: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s;
}

.floating-whatsapp:hover {
    transform: scale(1.1);
}

/* 15. Booking Journey */
.booking-journey {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 50px;
}

.step-card {
    text-align: center;
    flex: 1;
}

.step-num {
    width: 50px;
    height: 50px;
    background: var(--gold-gradient);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-weight: 800;
}

/* Developer Profile */
.dev-profile {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
    align-items: center;
}

.dev-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
}

.stat-item h3 {
    font-size: 2rem;
    color: var(--primary-gold);
}

/* Section Tags */
.section-tag {
    color: var(--primary-gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 10px;
}

/* Animations Trigger */
[data-aos="fade-up"] {
    opacity: 0;
    transform: translateY(30px);
}

[data-aos].aos-animate {
    opacity: 1;
    transform: translateY(0);
}

/* Video Frame */
.video-frame {
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    aspect-ratio: 16/9;
}

/* RTL Specific */
[dir="rtl"] .timeline::before {
    left: auto;
    right: 50%;
    transform: translateX(50%);
}

[dir="rtl"] .timeline-dot {
    left: auto;
    right: 50%;
    transform: translateX(50%);
}

[dir="rtl"] .timeline-item:nth-child(even) .timeline-content {
    margin-left: 0;
    margin-right: auto;
}

/* Responsive adjustments */
@media (max-width: 768px) {

    .calc-grid,
    .dev-profile,
    .about-grid {
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    .timeline::before {
        left: 20px;
        right: auto;
        transform: none;
    }

    .timeline-dot {
        left: 20px;
        right: auto;
        transform: none;
    }

    .timeline-content {
        width: calc(100% - 60px);
        margin-left: 60px !important;
        margin-right: 0 !important;
    }
}

/* FAQ Accordion Styles */
.faq-item {
    background: var(--white);
    border-radius: 12px;
    margin-bottom: 20px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    transition: all 0.3s ease;
}

.faq-header {
    padding: 22px 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--accent-dark);
    transition: background 0.3s;
}

.faq-header:hover {
    background: rgba(197, 160, 89, 0.05);
}

.faq-content {
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.8;
}

.faq-item.active {
    border-color: var(--primary-gold);
    box-shadow: 0 10px 30px rgba(197, 160, 89, 0.1);
}

.faq-item.active .faq-header {
    color: var(--primary-gold);
}

.faq-item.active .faq-content {
    padding: 0 25px 25px;
    max-height: 500px;
}

.faq-header i {
    transition: transform 0.4s ease;
    font-size: 0.8rem;
    opacity: 0.5;
}

.faq-item.active .faq-header i {
    transform: rotate(180deg);
    color: var(--primary-gold);
    opacity: 1;
}

[dir="rtl"] .faq-header i {
    margin-left: 0;
    margin-right: 15px;
}

/* =========================================
   FINAL MOBILE OVERRIDES (Max-Width: 768px)
   ========================================= */
@media (max-width: 768px) {

    /* Hero Adjustments */
    .hero {
        height: auto !important;
        min-height: 25vh;
        /* Reduced further from 35vh */
        padding: 0 !important;
        /* Removed padding to fix black bars */
        background: transparent !important;
        align-items: center;
    }

    .hero-content {
        padding: 0 15px;
    }

    .hero-content h1 {
        font-size: 1.4rem !important;
        /* Smaller for ultra-compact */
        line-height: 1.1;
    }

    .hero-info-bar {
        flex-direction: column;
        gap: 15px;
        /* Reduced gap */
        background: rgba(0, 0, 0, 0.25);
        /* Lightened from 0.4 */
        padding: 15px;
        /* Reduced padding */
        border-radius: 12px;
        backdrop-filter: blur(8px);
        /* Increased blur */
    }

    /* Video Frame Fix */
    .video-frame {
        height: auto !important;
        aspect-ratio: 16/9;
        margin-top: 30px;
    }

    /* Quick Overview */
    .quick-overview-bar {
        margin-top: 30px;
        grid-template-columns: 1fr 1fr;
        padding: 20px;
    }

    /* Grids to Stack */
    .location-container,
    .about-image {
        display: flex !important;
        flex-direction: column !important;
        gap: 30px;
    }

    .contact-grid {
        display: grid !important;
        grid-template-columns: 0.9fr 1.1fr !important;
        gap: 20px !important;
        align-items: start;
    }

    .contact-form {
        padding: 20px !important;
    }

    .contact-info p {
        font-size: 0.85rem !important;
        margin-bottom: 15px !important;
    }

    .about-image {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 10px !important;
    }

    .about-image div {
        width: 100% !important;
        height: 150px !important;
        min-height: 150px !important;
        margin-top: 0 !important;
    }

    /* Map Fix */
    .map-wrapper iframe {
        height: 300px;
    }

    /* Navigation */
    .project-nav {
        padding: 10px 15px;
        width: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        /* Force background on mobile */
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }

    /* Major Grids - Universal 2 Column Fix */
    .buildings-status-grid,
    .achievements-grid {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        /* 3 in a row on mobile */
        gap: 8px !important;
        padding: 0 5px;
    }

    .values-grid {
        display: grid !important;
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 5px !important;
        padding: 0 5px;
    }

    .masterplan-features,
    .units-container,
    .offers-grid,
    .amenities-grid,
    .strategy-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
        padding: 0 5px;
    }

    .booking-journey {
        display: grid !important;
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 5px !important;
        padding: 0 5px;
        flex-direction: row !important;
        /* Force row if any flex remains */
    }

    .timeline {
        display: grid !important;
        grid-template-columns: repeat(6, 1fr) !important;
        /* 6 columns for home timeline */
        gap: 3px !important;
        padding: 0 3px;
        flex-direction: row !important;
    }

    .download-grid {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 8px !important;
        padding: 0 5px;
    }

    /* Compact Cards for mobile */
    .building-status-card,
    .feature-card,
    .unit-card,
    .overview-card,
    .amenity-item,
    .download-link,
    .testimonial-card,
    .value-card,
    .step-card,
    .strategy-card,
    .timeline-item {
        padding: 10px 8px !important;
        border-radius: 12px !important;
        text-align: center;
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px !important;
    }

    .download-link i {
        font-size: 1.2rem !important;
        margin-bottom: 2px !important;
        margin-right: 0 !important;
    }

    .download-link h4 {
        font-size: 0.65rem !important;
        line-height: 1.2 !important;
        word-break: break-word;
    }

    .download-link p {
        display: none !important;
    }

    .step-arrow {
        display: none !important;
    }

    /* Unit Grid specific overrides */
    .units-container {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .overview-card,
    .amenity-item,
    .feature-card,
    .value-card,
    .building-status-card {
        padding: 8px 5px !important;
    }

    .overview-card i,
    .amenity-item i,
    .value-icon i,
    .feature-icon-wrapper i {
        font-size: 0.9rem !important;
        margin-bottom: 5px !important;
    }

    .overview-card h4,
    .amenity-item h3,
    .feature-card h3,
    .value-card h4,
    .building-status-card h3 {
        font-size: 0.65rem !important;
        letter-spacing: 0 !important;
        margin-bottom: 5px !important;
    }

    .overview-card p,
    .amenity-item p,
    .feature-card p,
    .building-status-card p {
        font-size: 0.65rem !important;
        line-height: 1.2 !important;
    }

    .section-header {
        margin-bottom: 20px !important;
    }

    .section-header h2 {
        font-size: 1.3rem !important;
    }

    .comparison-section .section-header h2,
    .booking-journey-section .section-header h2,
    #faq .section-header h2 {
        font-size: 1.1rem !important;
    }

    .faq-header {
        padding: 12px 15px !important;
        font-size: 0.85rem !important;
    }

    .faq-content {
        padding: 0 15px !important;
        font-size: 0.75rem !important;
        line-height: 1.5 !important;
    }

    .faq-item.active .faq-content {
        padding: 0 15px 15px !important;
    }

    .faq-item {
        margin-bottom: 10px !important;
    }

    .step-num,
    .timeline-number {
        width: 22px !important;
        height: 22px !important;
        font-size: 0.65rem !important;
        margin-bottom: 5px !important;
        border-width: 1.5px !important;
    }

    .step-card h4,
    .timeline-item h4 {
        font-size: 0.45rem !important;
        /* Micro fonts for multi-column */
        margin-bottom: 2px !important;
        line-height: 1.1 !important;
        font-weight: 700 !important;
        word-break: break-word !important;
    }

    .step-card p,
    .timeline-item p {
        display: none !important;
        /* Hide descriptions to fit 4 in a row */
    }

    .compare-table th,
    .compare-table td {
        padding: 8px 4px !important;
        font-size: 0.7rem !important;
    }

    .compare-table th {
        white-space: nowrap;
    }

    .unit-card {
        border-radius: 12px;
    }

    .unit-img {
        height: 150px;
    }

    .unit-info {
        padding: 12px;
    }

    .unit-info h3 {
        font-size: 1rem;
        margin-bottom: 8px;
    }

    .unit-details {
        gap: 8px;
        margin-bottom: 12px;
    }

    .detail {
        font-size: 0.7rem;
    }

    .unit-price {
        font-size: 0.9rem;
        margin-bottom: 12px;
    }

    /* Global Icon Resize for Mobile */
    i[class^="fas fa-"],
    i[class^="fab fa-"],
    i[class^="far fa-"] {
        font-size: 1.2rem !important;
        /* Smaller icons to save space */
    }

    .overview-card i,
    .amenity-item i,
    .feature-icon-wrapper i {
        font-size: 1.5rem !important;
    }

    .section-header {
        margin-bottom: 30px !important;
    }

    .section {
        padding: 50px 0 !important;
    }

    .section-header h2 {
        font-size: 1.5rem !important;
    }

    #process.section {
        padding: 40px 0 !important;
    }

    #process .timeline-number {
        width: 28px !important;
        height: 28px !important;
        font-size: 0.8rem !important;
        margin-bottom: 8px !important;
    }

    #process h4 {
        font-size: 0.9rem !important;
    }

    #process p {
        font-size: 0.75rem !important;
    }

    /* Fixed overlapping Floating Widgets */
    .back-to-top {
        bottom: 100px !important;
        right: 20px !important;
    }

    .floating-whatsapp {
        bottom: 25px !important;
        right: 20px !important;
        width: 55px !important;
        height: 55px !important;
        font-size: 1.5rem !important;
    }
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   ðŸš€ CUSTOM OPTIMIZATIONS (Space Saving & Mobile Fixes)
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

/* 1. Master Plan Features - Force 2x2 Grid (Desktop) */
@media (min-width: 769px) {
    .masterplan-features {
        grid-template-columns: repeat(2, 1fr) !important;
        max-width: 900px !important;
        margin: 40px auto 0 !important;
        gap: 20px !important;
    }

    .feature-card {
        padding: 20px !important;
    }
}

/* 2. Timer Section Mobile Fix */
@media (max-width: 768px) {
    .timer-container {
        flex-direction: column !important;
        padding: 20px 15px !important;
        border-radius: 20px !important;
        gap: 15px !important;
        width: 95% !important;
        margin: 0 auto !important;
    }

    #countdown {
        flex-direction: column !important;
        gap: 10px !important;
    }

    #countdown>div {
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 10px !important;
    }

    [data-i18n="pd_promo_timer_suffix"] {
        margin-right: 0 !important;
        margin-top: 5px !important;
        display: block !important;
        width: 100% !important;
        text-align: center !important;
        font-size: 0.8rem !important;
    }
}

/* About Redesign Section Styles */
.about-redesign {
    background: linear-gradient(to bottom, #ffffff, #fcfcfc);
    position: relative;
    overflow: hidden;
    padding: 100px 0;
}

.about-redesign::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(197, 168, 124, 0.3), transparent);
}

.about-header {
    text-align: center;
    margin-bottom: 60px;
}

.about-tag {
    color: var(--primary-gold);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 15px;
}

.about-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--navy-deep);
    max-width: 1000px;
    margin: 0 auto;
    line-height: 1.4;
}

.about-mission {
    max-width: 850px;
    margin: 0 auto 80px;
    text-align: center;
    font-size: 1.2rem;
    line-height: 2;
    color: #4b5563;
    position: relative;
    padding: 0 40px;
}

.about-mission i.quote-icon {
    font-size: 2rem;
    color: rgba(197, 168, 124, 0.2);
    margin-bottom: 20px;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
    /* Reduced from 100px */
}

.value-card {
    background: #ffffff;
    padding: 40px 30px;
    border-radius: 24px;
    text-align: center;
    border: 1px solid #f1f1f1;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.02);
}

.value-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-gold);
    box-shadow: 0 20px 60px rgba(197, 168, 124, 0.1);
}

.value-icon {
    width: 60px;
    /* Reduced from 70px */
    height: 60px;
    /* Reduced from 70px */
    background: #fffbeb;
    color: var(--primary-gold);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    /* Reduced from 1.8rem */
    margin: 0 auto 25px;
    transition: all 0.5s ease;
}

.value-card:hover .value-icon {
    background: var(--primary-gold);
    color: #fff;
    transform: rotateY(360deg);
}

.value-card h3 {
    font-weight: 800;
    color: var(--navy-deep);
    margin: 0;
    font-size: 1.2rem;
    letter-spacing: -0.5px;
}

.achievements-section {
    background: #ffffff;
    padding: 60px 40px;
    border-radius: 32px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.03);
    margin-bottom: 80px;
    border: 1px solid #f5f5f5;
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
}

.achieve-card {
    text-align: center;
    position: relative;
    padding: 10px;
}

.achieve-card:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, transparent, #eee, transparent);
}

[dir="rtl"] .achieve-card:not(:last-child)::after {
    right: auto;
    left: -20px;
}

.achieve-num {
    display: block;
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-gold);
    margin-bottom: 8px;
    font-family: 'Outfit', sans-serif;
    line-height: 1;
}

.achieve-label {
    font-size: 1rem;
    color: #6b7280;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.about-cta-container {
    text-align: center;
}

.about-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    background: var(--primary-gold);
    color: #fff;
    padding: 22px 50px;
    border-radius: 60px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.2rem;
    box-shadow: 0 10px 35px rgba(197, 168, 124, 0.4);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.about-cta-btn:hover {
    transform: translateY(-5px) scale(1.02);
    background: var(--navy-deep);
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.3);
    color: #fff;
}

@media (max-width: 1024px) {
    .achieve-card::after {
        display: none !important;
    }

    .achievements-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .about-title {
        font-size: 1.8rem;
    }

    .about-redesign {
        padding: 60px 0;
    }

    .achievements-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .achieve-num {
        font-size: 1.8rem;
    }

    .achieve-label {
        font-size: 0.8rem;
    }

    .about-mission {
        font-size: 1.1rem;
        padding: 0 15px;
    }

    .about-cta-btn {
        font-size: 1rem;
        padding: 18px 30px;
        width: 100%;
        justify-content: center;
    }

    /* Compact icons for 2-column mobile layout */
    .value-icon {
        width: 50px !important;
        height: 50px !important;
        font-size: 1.3rem !important;
        margin-bottom: 10px !important;
    }
}

/* =========================================
   NEW PROFESSIONAL FOOTER REDESIGN
   ========================================= */
:root {
    --footer-bg: #ffffff;
    --footer-navy: #1a2332;
    --footer-charcoal: #0f1419;
    --footer-gold: #d4af37;
    --footer-orange: #f7931e;
    --footer-text: #4b5563;
    --footer-muted: #9ca3af;
    --footer-heading: #111827;
}

.main-footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    padding: 80px 0 30px;
    position: relative;
    font-family: "Cairo", "Poppins", sans-serif;
    overflow: hidden;
    border-top: 1px solid #e5e7eb;
}

.main-footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--footer-gold) 0%, var(--footer-orange) 50%, var(--footer-gold) 100%);
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    color: var(--footer-heading);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 12px;
}

.footer-section h3::after {
    content: "";
    position: absolute;
    bottom: 0;
    width: 50px;
    height: 2px;
    background: var(--footer-orange);
}

[dir="rtl"] .footer-section h3::after {
    right: 0;
}

[dir="ltr"] .footer-section h3::after {
    left: 0;
}

.footer-about p {
    color: var(--footer-text);
    font-size: 0.95rem;
    line-height: 1.8;
}

.footer-about .highlight {
    color: var(--footer-gold);
    font-weight: 600;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 15px;
}

.footer-links a {
    color: var(--footer-text);
    text-decoration: none;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.footer-links a i {
    color: #C9A23F;
    /* Gold color */
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.footer-links a:hover {
    color: var(--footer-gold);
}

[dir="rtl"] .footer-links a:hover {
    transform: translateX(-8px);
}

[dir="ltr"] .footer-links a:hover {
    transform: translateX(8px);
}

.footer-contact .contact-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    align-items: flex-start;
}

.footer-contact .contact-item i {
    color: #C9A23F;
    /* Gold color */
    font-size: 1.1rem;
    margin-top: 5px;
}

.footer-contact .contact-text {
    color: var(--footer-text);
    font-size: 0.95rem;
    line-height: 1.5;
}

.footer-contact .contact-text a:hover {
    color: var(--footer-gold);
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 25px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(201, 162, 63, 0.1);
    /* Gold background */
    color: #C9A23F;
    /* Gold color */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: #C9A23F;
    /* Solid gold on hover */
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(201, 162, 63, 0.3);
}

.footer-designer {
    background: rgba(201, 162, 63, 0.05);
    border: 1px solid rgba(201, 162, 63, 0.2);
    border-radius: 12px;
    padding: 20px;
}

.footer-designer h3::after {
    display: none;
}

/* Website Designer Bottom Attribution */
.footer-designer-attribution {
    margin-top: 20px;
    margin-bottom: 40px;
    padding: 25px;
    background: rgba(201, 162, 63, 0.05);
    margin-top: 50px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(201, 162, 63, 0.2);
    border-radius: 20px;
    transition: all 0.4s ease;
}

.designer-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 15px;
}

.designer-info h3 {
    font-size: 1rem;
    color: #C9A23F;
    /* Gold color */
    margin-bottom: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.designer-meta {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 10px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--footer-text);
    font-size: 0.85rem;
}

.meta-item i {
    color: #C9A23F;
    /* Gold color */
    font-size: 1.1rem;
}

.designer-actions-bottom {
    display: flex;
    flex-direction: row !important;
    /* Force side-by-side */
    gap: 10px;
    justify-content: center;
    width: auto;
}

.designer-pill {
    padding: 8px 15px;
    background: #1a2332;
    color: white;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    white-space: nowrap;
}

.designer-pill:hover {
    background: #C9A23F;
    /* Gold color */
    color: var(--footer-navy);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(201, 162, 63, 0.3);
}

@media (max-width: 768px) {
    .footer-designer-attribution {
        padding: 20px 10px;
        margin-top: 30px;
    }

    .designer-meta {
        flex-direction: row;
        /* Keep meta side by side if possible */
        gap: 10px;
        font-size: 0.75rem;
    }

    .meta-item {
        font-size: 0.75rem;
    }

    .designer-actions-bottom {
        flex-direction: row !important;
        width: 100%;
        justify-content: center;
    }
}

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid #e5e7eb;
    text-align: center;
}

.trust-tagline {
    color: var(--footer-heading);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.copyright {
    color: var(--footer-muted);
    font-size: 0.9rem;
    margin-bottom: 30px;
}

.footer-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    background: #f3f4f6;
    padding: 25px 40px;
    border-radius: 15px;
    margin-top: 40px;
    width: 100%;
    border: 1px solid #e5e7eb;
}

.stat-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--footer-heading);
    font-size: 1rem;
    font-weight: 600;
    flex: 1;
}

.stat-item i {
    color: #C9A23F;
    /* Gold color */
    font-size: 1.2rem;
}

@media (max-width: 1200px) {
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-about {
        grid-column: 1 / -1;
    }
}

@media (max-width: 992px) {
    .footer-grid {
        gap: 30px;
    }

    .footer-stats {
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .main-footer {
        padding: 60px 0 30px;
    }

    .footer-grid {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        justify-content: flex-start !important;
        gap: 8px !important;
        text-align: start;
        overflow-x: hidden;
    }

    .footer-section {
        flex: 1 !important;
        min-width: 140px;
    }

    .footer-section.footer-contact {
        flex: 1 !important;
    }

    .footer-contact .contact-item:first-child .contact-text {
        font-size: 0.72rem !important;
        line-height: 1.4 !important;
        white-space: nowrap !important;
    }

    .contact-item:first-child {
        grid-column: 1 / -1;
        margin-bottom: 10px;
    }

    .footer-section h3 {
        text-align: start;
    }

    .footer-section h3::after {
        left: 0 !important;
        right: auto !important;
        transform: none;
    }

    [dir="rtl"] .footer-section h3::after {
        right: 0 !important;
        left: auto !important;
    }

    .footer-about p,
    .footer-contact .contact-item {
        justify-content: flex-start;
    }

    .footer-links a {
        justify-content: flex-start;
    }

    .footer-social {
        justify-content: center;
        margin-top: 20px;
        width: 100%;
        grid-column: 1 / -1;
    }

    .footer-stats {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 15px;
        padding: 15px;
        justify-content: center;
    }

    .stat-item {
        width: auto;
        flex: none;
        font-size: 0.7rem;
    }

    .footer-section h3 {
        font-size: 1rem !important;
        margin-bottom: 15px !important;
    }

    .footer-links a,
    .contact-item {
        font-size: 0.9rem !important;
        gap: 8px !important;
        line-height: 1.6 !important;
        letter-spacing: normal !important;
    }

    .contact-item i {
        font-size: 0.55rem !important;
        min-width: 10px !important;
    }

    .contact-item i {
        font-size: 0.8rem;
        min-width: 15px;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        gap: 5px !important;
    }

    .footer-container {
        padding: 0 4px;
    }

    .footer-section h3 {
        font-size: 1.2rem !important;
        margin-bottom: 15px !important;
    }

    .footer-links a,
    .contact-item {
        font-size: 1.05rem !important;
        gap: 10px !important;
        line-height: 2.0 !important;
    }

    .contact-item i {
        font-size: 1.2rem !important;
        min-width: 24px !important;
    }

    /* Extreme Enlarge address to 3rem as per user request */
    .footer-contact .contact-item:first-child .contact-text {
        font-size: 3rem !important;
        line-height: 1.1 !important;
        letter-spacing: normal !important;
        white-space: nowrap !important;
        font-weight: 700 !important;
    }

    .contact-item i {
        font-size: 1.8rem !important;
        min-width: 30px !important;
    }

    .contact-item i {
        font-size: 0.3rem !important;
        min-width: 6px !important;
    }

    .footer-social a {
        width: 14px !important;
        height: 14px !important;
        font-size: 0.45rem !important;
    }

    .footer-grid {
        gap: 4px !important;
    }

    .stat-item {
        font-size: 0.6rem;
        gap: 3px;
    }

    /* 🚀 Utility Classes for Spacing & Network */
    .section-compact-mobile {
        margin-top: 0px !important;
        /* Zero margin between sections */
        margin-bottom: 0px !important;
        padding-top: 10px !important;
        padding-bottom: 10px !important;
    }

    [data-i18n="network_desc"] {
        font-size: 0.35rem !important;
        /* Absolute minimum size */
        line-height: 1.1 !important;
        margin-bottom: 5px !important;
        opacity: 0.8;
        max-width: 95% !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .network-container-inner {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 3px !important;
        margin-top: 5px !important;
    }

    .network-pill {
        font-size: 0.6rem !important;
        padding: 0px 2px !important;
        background: transparent !important;
        box-shadow: none !important;
        border: none !important;
        display: inline !important;
    }

    [data-i18n="about_p1"] {
        font-size: 0.45rem !important;
        font-weight: 400 !important;
        line-height: 1.1 !important;
        margin-top: 5px !important;
        text-align: center !important;
        display: block !important;
    }

    .about-final-statement {
        font-size: 0.45rem !important;
        /* Micro text */
        font-weight: 400 !important;
        line-height: 1.2 !important;
        margin-top: 5px !important;
    }

    .about-cta-container {
        margin-top: 8px !important;
        /* Extremely tight spaces */
        padding: 0 5px !important;
    }

    .about-cta-btn {
        font-size: 0.5rem !important;
        /* Maximum shrink */
        padding: 4px 10px !important;
        white-space: nowrap !important;
        width: 100% !important;
        justify-content: center;
        border-radius: 6px !important;
        display: flex !important;
        align-items: center;
        height: auto !important;
        gap: 3px !important;
    }

    .about-cta-btn span {
        font-size: 0.5rem !important;
    }
}

@media (prefers-contrast: high) {
    .main-footer {
        background: #000;
    }

    .footer-section h3 {
        color: #ffd700;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
        animation: none !important;
    }
}