/* ==========================================================================
   5 Hills Real Estate - Luxury UI/UX Design System & Stylesheet
   Created by: Senior UI/UX Web Designer
   Theme: Deep Velvet Navy-Black with Classic Brand Blue & Emerald Green Accents
   Language: Multi-lingual LTR (English) & RTL (Arabic - Cairo Font)
   ========================================================================== */

/* --- Fonts Import --- */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700&family=Montserrat:wght@300;400;500;600;700&family=Poppins:wght@300;400;500;600&display=swap');

/* --- Global Tokens & Colors (Dark Theme) --- */
:root {
    /* Color Palette */
    --color-bg-deep: #050b11;          /* Core Velvet Navy Black */
    --color-bg-card: rgba(12, 60, 102, 0.16); /* Frosted Glass Brand Blue */
    --color-bg-nav: rgba(5, 11, 17, 0);      /* Nav starts fully transparent */
    --color-bg-nav-scrolled: rgba(5, 11, 17, 0.88); /* Nav Frosted Glass on scroll */
    --color-primary: #0c3c66;         /* Brand Deep Blue from Logo */
    --color-accent: #1b8243;          /* Brand Emerald Green from Logo */
    --color-accent-hover: #26a65b;    /* Light Accent Green */
    --color-accent-rgb: 27, 130, 67;
    
    /* Text Colors */
    --color-text-bright: #FFFFFF;     /* Pure High-Contrast White */
    --color-text-muted: #8FA0AF;      /* Soft Slate Gray for body copy */
    --color-text-accent: #E2E8F0;     /* Silver-White labels in Dark Mode */
    
    /* Borders & Glows */
    --color-border: rgba(12, 60, 102, 0.35); /* Subtle Blue-Gray Borders */
    --color-border-glow: rgba(27, 130, 67, 0.4);
    --color-success: #2ECC71;
    --color-input-bg: rgba(4, 9, 15, 0.8);
    --color-input-border: rgba(12, 60, 102, 0.3);

    /* Typography */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Poppins', sans-serif;

    /* Styling Properties */
    --glass-blur: 20px;
    --shadow-premium: 0 20px 40px rgba(0, 0, 0, 0.6);
    --shadow-accent-glow: 0 0 25px rgba(27, 130, 67, 0.18);
    --border-radius: 12px;
    --border-radius-lg: 20px;
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Light Theme Variables --- */
body.light-theme {
    --color-bg-deep: #F0F4F8;         /* Soft Blue-Gray Light Background */
    --color-bg-card: rgba(255, 255, 255, 0.85); /* Pure White Glass Card */
    --color-bg-nav: rgba(240, 244, 248, 0);      /* Light Nav starts transparent */
    --color-bg-nav-scrolled: rgba(240, 244, 248, 0.93); /* Light Nav on scroll */
    --color-primary: #0c3c66;
    --color-text-bright: #050b11;     /* Dark Navy Text */
    --color-text-muted: #4e6172;      /* Muted Slate Gray Text */
    --color-text-accent: var(--color-accent); /* Green Labels in Light Mode */
    --color-border: rgba(12, 60, 102, 0.15);
    --color-border-glow: rgba(27, 130, 67, 0.6);
    --color-input-bg: #FFFFFF;
    --color-input-border: rgba(0, 0, 0, 0.12);
    --shadow-premium: 0 15px 30px rgba(0, 0, 0, 0.06);
}

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

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

body {
    background-color: var(--color-bg-deep);
    color: var(--color-text-bright);
    font-family: var(--font-body);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.4s ease, color 0.4s ease;
}

/* Scrollbar Style */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: var(--color-bg-deep);
}
::-webkit-scrollbar-thumb {
    background: var(--color-primary);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-accent);
}

/* --- Typography Defaults --- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--color-text-bright);
    line-height: 1.3;
}

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

a:hover {
    color: var(--color-accent);
}

/* --- Layout Utilities --- */
.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-padding {
    padding: 90px 0;
}

.text-gold {
    color: var(--color-accent) !important;
}

.gold-gradient-text {
    background: linear-gradient(135deg, #FFFFFF 0%, #ECEFF2 50%, #C8D3DC 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

body.light-theme .gold-gradient-text {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 60%, #115322 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- Premium Buttons --- */
.btn-gold {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #07223b 0%, var(--color-primary) 50%, #10497b 100%);
    color: #FFFFFF !important;
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.9rem;
    padding: 12px 26px;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(12, 60, 102, 0.3);
    transition: var(--transition-smooth);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    gap: 8px;
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(12, 60, 102, 0.5), 0 0 20px rgba(12, 60, 102, 0.2);
    background: linear-gradient(135deg, var(--color-primary) 0%, #165b94 100%);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: var(--color-accent) !important;
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.9rem;
    padding: 11px 25px;
    border: 1px solid var(--color-accent);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition-smooth);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    gap: 8px;
}

.btn-outline:hover {
    border-color: var(--color-accent);
    color: #FFFFFF !important;
    box-shadow: var(--shadow-accent-glow);
    background: var(--color-accent);
}

/* --- Header & Navigation --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10000; /* Increased to stay above drawer */
    background: var(--color-bg-nav);
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    border-bottom: 1px solid rgba(255, 255, 255, 0);
    transition: background 0.5s ease, backdrop-filter 0.5s ease, -webkit-backdrop-filter 0.5s ease, border-color 0.5s ease, box-shadow 0.5s ease;
}

/* Header becomes frosted glass when user scrolls down */
.site-header.scrolled {
    background: var(--color-bg-nav-scrolled);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.25);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    padding: 0 24px;
    max-width: 1300px;
    margin: 0 auto;
}

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

.site-logo img {
    height: 48px;
    width: auto;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 28px;
}

.nav-link {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 6px 0;
    position: relative;
    color: var(--color-text-bright);
    opacity: 0.85;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: var(--transition-smooth);
}

.nav-link:hover {
    opacity: 1;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
    background-color: var(--color-accent);
}

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

.lang-switch {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.8rem;
    background: transparent;
    border: 1px solid var(--color-border);
    color: #FFFFFF;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

body.light-theme .lang-switch {
    color: var(--color-accent);
}

.lang-switch:hover {
    background-color: var(--color-accent);
    color: #FFFFFF;
    border-color: var(--color-accent);
}

.theme-switch-btn {
    background: transparent;
    border: 1px solid var(--color-border);
    color: var(--color-accent);
    width: 32px;
    height: 32px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    transition: var(--transition-smooth);
}

.theme-switch-btn:hover {
    background-color: var(--color-accent);
    color: #FFFFFF;
    border-color: var(--color-accent);
}

/* --- Page Banners --- */
.page-banner {
    position: relative;
    width: 100%;
    padding: 130px 0 70px 0;
    background: linear-gradient(135deg, rgba(5,11,17,0.95) 0%, rgba(12,60,102,0.15) 100%);
    border-bottom: 1px solid var(--color-border);
    text-align: center;
}

body.light-theme .page-banner {
    background: linear-gradient(135deg, #E2E8F0 0%, #D1DBE5 100%);
}

.page-banner::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background-color: var(--color-accent);
}

.page-banner-title {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    text-transform: uppercase;
    margin-bottom: 8px;
}

.page-banner-subtitle {
    font-size: 0.95rem;
    color: var(--color-text-muted);
}

/* --- Hero Section & Search Bar --- */
.hero-section {
    position: relative;
    width: 100%;
    min-height: 95vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    padding-top: 120px;
    padding-bottom: 60px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

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

.hero-bg-fallback {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(5,11,17,0.98) 0%, rgba(12,60,102,0.2) 100%);
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(5, 11, 17, 0.6) 0%, rgba(5, 11, 17, 0.96) 100%);
    z-index: -1;
}

body.light-theme .hero-overlay {
    background: linear-gradient(to bottom, rgba(240, 244, 248, 0.65) 0%, rgba(240, 244, 248, 0.97) 100%);
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin-bottom: 40px;
    z-index: 10;
}

.hero-tagline {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.8rem;
    color: var(--color-text-accent);
    text-transform: uppercase;
    letter-spacing: 0.3em;
    margin-bottom: 16px;
    display: inline-block;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.8rem);
    line-height: 1.2;
    margin-bottom: 20px;
    text-transform: uppercase;
    font-weight: 600;
}

.hero-subtitle {
    font-size: clamp(0.95rem, 1.8vw, 1.1rem);
    color: var(--color-text-muted);
    font-weight: 300;
    max-width: 700px;
    margin: 0 auto;
}

/* Advanced Search Bar Component */
.search-container {
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
    text-align: left;
    background: var(--color-bg-card);
    backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    padding: 24px;
    box-shadow: var(--shadow-premium);
    z-index: 10;
}

.search-form {
    display: grid;
    grid-template-columns: repeat(4, 1fr) auto;
    gap: 16px;
    align-items: center;
}

.search-field-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: start;
}

.search-field-group label {
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--color-text-accent);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.search-field-group select,
.search-field-group input {
    background: var(--color-input-bg);
    border: 1px solid var(--color-input-border);
    border-radius: 6px;
    color: var(--color-text-bright);
    padding: 12px 14px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    width: 100%;
    outline: none;
    transition: var(--transition-smooth);
}

.search-field-group select:focus,
.search-field-group input:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 10px rgba(27, 130, 67, 0.15);
}

.search-btn {
    height: 70px;
    padding: 0 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.search-btn svg {
    display: block;
}

.search-btn span {
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    font-weight: 700;
}

/* --- Portfolio Grid Page (Filter Bar) --- */
.portfolio-filter-bar {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    padding: 16px 24px;
    margin-bottom: 40px;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
}

.filter-controls-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    flex-grow: 1;
}

.filter-select {
    background: var(--color-input-bg);
    border: 1px solid var(--color-input-border);
    border-radius: 6px;
    color: var(--color-text-bright);
    padding: 8px 14px;
    font-family: var(--font-body);
    font-size: 0.8rem;
    min-width: 140px;
    outline: none;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.filter-select:focus {
    border-color: var(--color-accent);
}

/* --- Section Heading --- */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-tagline {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    color: var(--color-text-accent);
    text-transform: uppercase;
    letter-spacing: 0.25em;
    margin-bottom: 10px;
    display: block;
}

.section-title {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    text-transform: uppercase;
    font-weight: 600;
}

/* --- Why Invest Section --- */
.why-invest-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.why-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    padding: 30px;
    text-align: center;
    transition: var(--transition-smooth);
}

.why-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-primary);
    box-shadow: 0 10px 25px rgba(12, 60, 102, 0.2);
}

.why-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 20px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(12, 60, 102, 0.15);
    border: 1px solid var(--color-border);
    border-radius: 50%;
}

.why-icon svg {
    width: 24px;
    height: 24px;
    fill: var(--color-accent);
}

.why-title {
    font-size: 1.1rem;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.why-desc {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

/* --- How We Work Steps --- */
.roadmap-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.step-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    padding: 24px;
    position: relative;
    transition: var(--transition-smooth);
}

.step-card:hover {
    border-color: var(--color-primary);
}

.step-number {
    position: absolute;
    top: 15px;
    right: 15px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 2.2rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1;
}

body.light-theme .step-number {
    color: rgba(12, 60, 102, 0.18);
}

.step-title {
    font-size: 1rem;
    text-transform: uppercase;
    margin-bottom: 8px;
    color: var(--color-text-accent);
    padding-top: 16px;
}

.step-desc {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

/* --- About Us Elements --- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.about-media {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    border: 1px solid var(--color-border);
    height: 400px;
}

.about-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-content h3 {
    font-size: 1.6rem;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.about-content p {
    color: var(--color-text-muted);
    margin-bottom: 16px;
    font-size: 0.9rem;
}

.about-stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 24px;
}

.stat-box {
    border-left: 2px solid var(--color-accent);
    padding-left: 12px;
}

[dir="rtl"] .stat-box {
    border-left: none;
    border-right: 2px solid var(--color-accent);
    padding-right: 12px;
}

.stat-num {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-text-accent);
    line-height: 1.2;
}

.stat-lbl {
    font-size: 0.7rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
}

/* --- Founders / Agency values --- */
.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.value-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    padding: 24px 20px;
    text-align: center;
}

.value-title {
    font-size: 1rem;
    text-transform: uppercase;
    color: var(--color-text-accent);
    margin-bottom: 10px;
}

.value-desc {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

/* --- Contact Page Elements --- */
.contact-layout {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 40px;
    align-items: start;
}

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

.contact-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contact-card-title {
    font-size: 0.9rem;
    text-transform: uppercase;
    color: var(--color-text-accent);
    font-weight: 600;
}

.contact-card-val {
    font-size: 1rem;
    font-weight: 500;
}

.contact-card-desc {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.contact-form-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow-premium);
}

.contact-grid-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.map-container {
    width: 100%;
    height: 350px;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    border: 1px solid var(--color-border);
    margin-top: 40px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
    filter: invert(90%) hue-rotate(180deg);
}

body.light-theme .map-container iframe {
    filter: none;
}

/* --- Property Cards --- */
.property-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
    gap: 24px;
}

.property-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.property-card:hover {
    transform: translateY(-8px);
    border-color: var(--color-primary);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(12, 60, 102, 0.2);
}

.card-media {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    transform: scale(1.15);
    transition: var(--transition-smooth);
}

.property-card:hover .card-media img {
    transform: scale(1.22);
}

.card-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--color-accent);
    color: #FFFFFF;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.7rem;
    padding: 4px 10px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

[dir="rtl"] .card-badge {
    left: auto;
    right: 15px;
}

.card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-location {
    font-size: 0.75rem;
    color: var(--color-text-accent);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.card-title {
    font-size: 1.15rem;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.card-specs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    border-top: 1px solid rgba(12, 60, 102, 0.25);
    border-bottom: 1px solid rgba(12, 60, 102, 0.25);
    padding: 12px 0;
    margin-bottom: 16px;
}

body.light-theme .card-specs {
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

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

.spec-label {
    font-size: 0.7rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
}

.spec-val {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-text-bright);
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.card-price {
    display: flex;
    flex-direction: column;
}

.card-price .price-label {
    font-size: 0.7rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
}

.card-price .price-val {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--color-text-accent);
}

/* --- Single Project Details Layout --- */
.project-detail-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 32px;
    margin-top: 40px;
    align-items: start;
}

.project-main-content {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.project-detail-hero {
    position: relative;
    width: 100%;
    height: 450px;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    border: 1px solid var(--color-border);
}

.project-detail-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(to top, rgba(5, 11, 17, 0.95) 0%, rgba(5, 11, 17, 0) 100%);
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

body.light-theme .project-hero-overlay {
    background: linear-gradient(to top, rgba(240, 244, 248, 0.95) 0%, rgba(240, 244, 248, 0.2) 100%);
}

.project-hero-title h1 {
    font-size: 2rem;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.project-hero-meta {
    display: flex;
    gap: 16px;
    font-size: 0.85rem;
    color: var(--color-text-accent);
}

.project-hero-price {
    text-align: left;
}

[dir="rtl"] .project-hero-price {
    text-align: left;
}

.project-hero-price span {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--color-text-muted);
    display: block;
}

.project-hero-price h3 {
    font-size: 1.7rem;
    color: var(--color-text-accent);
}

.quick-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.quick-stat-box {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    padding: 16px;
    text-align: center;
}

.quick-stat-box span {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--color-text-muted);
    display: block;
    margin-bottom: 4px;
}

.quick-stat-box h4 {
    font-size: 1.05rem;
    color: var(--color-text-accent);
    font-weight: 500;
}

.project-content-block {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    padding: 30px;
}

.block-title {
    font-size: 1.3rem;
    text-transform: uppercase;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--color-border);
    padding-bottom: 10px;
}

.project-desc {
    color: var(--color-text-muted);
    line-height: 1.8;
    font-size: 0.9rem;
}

.amenities-layout-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.amenity-card-item {
    background: rgba(12, 60, 102, 0.1);
    border: 1px solid rgba(12, 60, 102, 0.25);
    border-radius: 8px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition-smooth);
}

body.light-theme .amenity-card-item {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.amenity-card-item:hover {
    border-color: var(--color-accent);
    transform: translateY(-2px);
}

.amenity-card-item svg {
    width: 20px;
    height: 20px;
    fill: var(--color-accent);
}

.amenity-card-item span {
    font-size: 0.85rem;
    font-weight: 500;
}

.tabs-navigation {
    display: flex;
    border-bottom: 1px solid rgba(12, 60, 102, 0.25);
    margin-bottom: 20px;
    gap: 16px;
}

body.light-theme .tabs-navigation {
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.tab-nav-btn {
    background: transparent;
    border: none;
    color: var(--color-text-muted);
    padding: 10px 20px;
    font-family: var(--font-heading);
    font-weight: 500;
    cursor: pointer;
    font-size: 0.9rem;
    position: relative;
    transition: var(--transition-smooth);
}

.tab-nav-btn.active {
    color: var(--color-text-accent);
}

.tab-nav-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--color-accent);
}

.tab-content-panel {
    display: none;
    animation: fadeIn 0.4s ease forwards;
}

.tab-content-panel.active {
    display: block;
}

.floor-plan-container {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 24px;
    align-items: center;
}

.floor-plan-img {
    background: #031525;
    border: 1px solid rgba(12, 60, 102, 0.25);
    border-radius: 8px;
    padding: 16px;
    display: flex;
    justify-content: center;
}

body.light-theme .floor-plan-img {
    background: #FFFFFF;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.floor-plan-img img {
    max-width: 100%;
    height: auto;
    filter: invert(1);
}

body.light-theme .floor-plan-img img {
    filter: none;
}

.floor-plan-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.floor-stat {
    border-bottom: 1px solid rgba(12, 60, 102, 0.25);
    padding-bottom: 6px;
}

body.light-theme .floor-stat {
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.floor-stat-label {
    font-size: 0.7rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
}

.floor-stat-val {
    font-size: 1rem;
    font-weight: 500;
}

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

.gallery-grid-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    height: 160px;
    border: 1px solid rgba(12, 60, 102, 0.2);
    cursor: pointer;
}

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

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

.gallery-grid-item::after {
    content: '+';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(12, 60, 102, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--color-accent);
    opacity: 0;
    transition: var(--transition-smooth);
}

.gallery-grid-item:hover::after {
    opacity: 1;
}

.sticky-sidebar {
    position: sticky;
    top: 110px;
    z-index: 100;
}

.lead-capture-card {
    background: linear-gradient(135deg, rgba(12, 60, 102, 0.45) 0%, rgba(5, 11, 17, 0.95) 100%);
    border: 1px solid var(--color-primary);
    border-radius: var(--border-radius);
    padding: 24px;
    box-shadow: var(--shadow-premium);
    text-align: center;
}

body.light-theme .lead-capture-card {
    background: linear-gradient(135deg, #FFFFFF 0%, #F0F4F8 100%);
    border-color: rgba(12, 60, 102, 0.15);
}

.capture-title {
    font-size: 1.2rem;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.capture-subtitle {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-bottom: 20px;
}

.form-field {
    margin-bottom: 12px;
    text-align: start;
}

.form-field label {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--color-text-accent);
    text-transform: uppercase;
    margin-bottom: 4px;
    display: block;
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    background: var(--color-input-bg);
    border: 1px solid var(--color-input-border);
    border-radius: 6px;
    color: var(--color-text-bright);
    padding: 10px 12px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    outline: none;
    transition: var(--transition-smooth);
}

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

.form-submit-btn {
    width: 100%;
    margin-top: 8px;
}

.lead-privacy-notice {
    font-size: 0.65rem;
    color: var(--color-text-muted);
    margin-top: 10px;
}

/* --- Testimonials Section --- */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.testimonial-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    padding: 24px;
    position: relative;
}

.testimonial-text {
    font-size: 0.85rem;
    font-style: italic;
    color: var(--color-text-muted);
    margin-bottom: 16px;
}

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

.testimonial-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--color-accent);
    background-color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 700;
    color: #FFFFFF;
}

.testimonial-info h4 {
    font-size: 0.9rem;
    text-transform: uppercase;
}

.testimonial-info span {
    font-size: 0.7rem;
    color: var(--color-text-muted);
}

/* --- Footer Area --- */
.site-footer {
    background-color: #031525;
    border-top: 1px solid var(--color-border);
    padding: 50px 0 24px 0;
    color: var(--color-text-muted);
}

body.light-theme .site-footer {
    background-color: #E2E8F0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr 1.2fr;
    gap: 32px;
    margin-bottom: 30px;
}

.footer-col h4 {
    font-size: 0.95rem;
    text-transform: uppercase;
    color: var(--color-text-accent);
    margin-bottom: 16px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    color: var(--color-text-muted);
    font-size: 0.85rem;
}

.footer-links a:hover {
    color: var(--color-accent);
    padding-left: 4px;
}

.footer-about {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    min-height: 120px;
}

.footer-about p {
    font-size: 0.85rem;
    margin-top: 12px;
    line-height: 1.6;
}

.footer-contact-item {
    font-size: 0.85rem;
    margin-bottom: 10px;
}

.footer-contact-item strong {
    color: var(--color-text-bright);
}

.footer-bottom {
    border-top: 1px solid rgba(12, 60, 102, 0.2);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
}

body.light-theme .footer-bottom {
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

/* --- Floating WhatsApp Widget --- */
.whatsapp-widget {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999;
    display: flex;
    align-items: center;
    background-color: var(--color-accent);
    color: #FFFFFF !important;
    padding: 8px 16px 8px 12px;
    border-radius: 50px;
    box-shadow: 0 8px 24px rgba(27, 130, 67, 0.3);
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.8rem;
    gap: 6px;
    transition: var(--transition-smooth);
}

.whatsapp-widget:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 12px 30px rgba(27, 130, 67, 0.5);
}

.whatsapp-widget svg {
    width: 20px;
    height: 20px;
    fill: #FFFFFF;
}

/* --- Dual Booking System Modals --- */
.booking-panel-cta {
    background: linear-gradient(135deg, rgba(12, 60, 102, 0.35) 0%, rgba(27, 130, 67, 0.08) 100%);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    padding: 30px;
    text-align: center;
}

body.light-theme .booking-panel-cta {
    background: linear-gradient(135deg, #FFFFFF 0%, rgba(12, 60, 102, 0.05) 100%);
}

.booking-title {
    font-size: 1.5rem;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.booking-desc {
    color: var(--color-text-muted);
    max-width: 500px;
    margin: 0 auto 24px auto;
    font-size: 0.85rem;
}

.booking-buttons-flex {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(4, 9, 15, 0.9);
    backdrop-filter: blur(8px);
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
}

body.light-theme .modal-backdrop {
    background: rgba(240, 244, 248, 0.8);
}

.modal-window {
    background: var(--color-bg-card);
    border: 1px solid var(--color-primary);
    border-radius: var(--border-radius-lg);
    width: 100%;
    max-width: 600px;
    padding: 30px;
    box-shadow: var(--shadow-premium);
    position: relative;
    transform: scale(0.9);
    transition: var(--transition-smooth);
}

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

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

.modal-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    color: var(--color-text-muted);
    font-size: 1.25rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.modal-close-btn:hover {
    color: var(--color-accent);
}

.modal-title {
    font-size: 1.3rem;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.modal-subtitle {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-bottom: 20px;
}

/* Lightbox styles */
.lightbox-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(3,7,12,0.95);
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
}
.lightbox-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}
.lightbox-content {
    max-width: 90%;
    max-height: 85vh;
    z-index: 1205;
}
.lightbox-content img {
    max-width: 100%;
    max-height: 85vh;
    border: 1px solid var(--color-border);
    border-radius: 8px;
}
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(7, 15, 25, 0.6);
    border: 1px solid var(--color-border);
    color: #FFFFFF;
    font-size: 2rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1210;
    transition: var(--transition-smooth);
    outline: none;
}
.lightbox-nav:hover {
    background-color: var(--color-accent);
    color: #FFFFFF;
    border-color: var(--color-accent);
    box-shadow: var(--shadow-accent-glow);
}
.lightbox-prev {
    left: 40px;
}
.lightbox-next {
    right: 40px;
}
.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    background: rgba(7, 15, 25, 0.6);
    border: 1px solid var(--color-border);
    color: #FFFFFF;
    font-size: 1.5rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1210;
    transition: var(--transition-smooth);
}
.lightbox-close:hover {
    background-color: var(--color-accent);
    color: #FFFFFF;
    border-color: var(--color-accent);
}

/* ==========================================================================
   RTL Layout Overrides (For Arabic Translation Support - Cairo Font)
   ========================================================================== */
[dir="rtl"] {
    font-family: 'Cairo', sans-serif;
}
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] h4, [dir="rtl"] h5, [dir="rtl"] h6 {
    font-family: 'Cairo', sans-serif;
}

/* Logical Properties / Alignment adaptions for RTL */
[dir="rtl"] .search-field-group,
[dir="rtl"] .form-field,
[dir="rtl"] .contact-info-column,
[dir="rtl"] .step-card {
    text-align: left;
}

[dir="rtl"] .card-badge {
    left: auto;
    right: 15px;
}

[dir="rtl"] .whatsapp-widget {
    right: auto;
    left: 24px;
}

[dir="rtl"] .tab-nav-btn.active::after {
    left: auto;
    right: 0;
}

[dir="rtl"] .modal-close-btn {
    right: auto;
    left: 20px;
}

[dir="rtl"] .footer-links a:hover {
    padding-left: 0;
    padding-right: 4px;
}

[dir="rtl"] .step-number {
    right: auto;
    left: 15px;
}

/* RTL grid/layout helper for single project */
[dir="rtl"] .project-detail-layout {
    grid-template-columns: 380px 1fr;
}
@media (max-width: 1024px) {
    [dir="rtl"] .project-detail-layout {
        grid-template-columns: 1fr;
    }
}

[dir="rtl"] .project-hero-price {
    text-align: left;
}

[dir="rtl"] .lightbox-prev {
    left: auto;
    right: 40px;
}
[dir="rtl"] .lightbox-next {
    left: 40px;
    right: auto;
}
[dir="rtl"] .lightbox-close {
    right: auto;
    left: 40px;
}

/* --- KEYFRAME ANIMATIONS --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* --- MOBILE & RESPONSIVE MEDIA QUERIES --- */
@media (max-width: 1200px) {
    .roadmap-steps {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1024px) {
    .project-detail-layout,
    .contact-layout,
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .search-form {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .search-btn {
        grid-column: span 2;
    }
    
    .sticky-sidebar {
        position: relative;
        top: 0;
        margin-top: 30px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .header-container {
        height: 70px;
    }
    
    .nav-menu {
        display: none; /* Mobile menu hidden */
    }
    
    .search-form {
        grid-template-columns: 1fr;
    }
    
    .search-btn {
        grid-column: span 1;
    }
    
    .quick-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .amenities-layout-grid,
    .why-invest-grid,
    .testimonials-grid,
    .roadmap-steps {
        grid-template-columns: 1fr;
    }
    
    .floor-plan-container {
        grid-template-columns: 1fr;
    }
    
    .project-hero-overlay {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .project-hero-price {
        text-align: left;
    }
    
    .booking-buttons-flex {
        flex-direction: column;
        align-items: stretch;
    }
    
    .contact-grid-fields {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .lightbox-nav {
        width: 44px;
        height: 44px;
        font-size: 1.25rem;
    }
    .lightbox-prev {
        left: 10px;
    }
    .lightbox-next {
        right: 10px;
    }
    .lightbox-close {
        top: 20px;
        right: 20px;
    }
    [dir="rtl"] .lightbox-prev {
        right: 10px;
    }
    [dir="rtl"] .lightbox-next {
        left: 10px;
    }
    [dir="rtl"] .lightbox-close {
        left: 20px;
    }
}

@media (max-width: 500px) {
    .header-container {
        padding: 0 10px !important;
        height: 60px !important;
    }
    .site-header .site-logo img {
        height: 36px !important;
        width: auto !important;
    }
    .footer-about img {
        height: 130px !important;
        width: auto !important;
    }
    .header-actions {
        gap: 4px !important;
    }
    .header-actions .btn-gold {
        padding: 6px 10px !important;
        font-size: 0.7rem !important;
    }
    .lang-switch {
        padding: 4px 6px !important;
        font-size: 0.7rem !important;
    }
    .theme-switch-btn {
        width: 26px !important;
        height: 26px !important;
        font-size: 0.7rem !important;
    }
    .quick-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-layout-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* --- Marketing Team Modal --- */
.marketing-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(3, 21, 37, 0.8);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

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

.marketing-modal-card {
    background: #051b2c;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    padding: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    position: relative;
    transform: scale(0.85);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    color: #ffffff;
    font-family: 'Cairo', sans-serif;
    direction: ltr;
    text-align: left;
}

body.light-theme .marketing-modal-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: #031525;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.marketing-modal-backdrop.active .marketing-modal-card {
    transform: scale(1);
}

.marketing-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    color: var(--color-text-muted);
    font-size: 24px;
    cursor: pointer;
    transition: color 0.3s;
}

.marketing-modal-close:hover {
    color: var(--color-accent);
}

.marketing-modal-header {
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 12px;
}

body.light-theme .marketing-modal-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.marketing-modal-header h3 {
    font-size: 1.3rem;
    color: #FFFFFF;
    margin: 0;
}

body.light-theme .marketing-modal-header h3 {
    color: #031525;
}

.marketing-team-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.team-member-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s, background 0.3s;
}

body.light-theme .team-member-item {
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.team-member-item:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.06);
}

body.light-theme .team-member-item:hover {
    background: rgba(0, 0, 0, 0.04);
}

.member-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--color-accent);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.member-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.member-name {
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
    color: #FFFFFF;
}

body.light-theme .member-name {
    color: #031525;
}

.member-role {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    line-height: 1.4;
    direction: ltr;
    text-align: left;
}

.member-linkedin {
    color: #0077b5;
    font-size: 20px;
    transition: transform 0.3s, color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 119, 181, 0.1);
    flex-shrink: 0;
}

.member-linkedin:hover {
    transform: scale(1.1);
    background: rgba(0, 119, 181, 0.2);
    color: #0096e6;
}


/* --- Floating Social Dock --- */
.floating-social-dock {
    position: fixed;
    left: 24px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 9999;
    background: rgba(3, 21, 37, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 16px 10px;
    border-radius: 30px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

body.light-theme .floating-social-dock {
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.social-dock-item {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

body.light-theme .social-dock-item {
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.08);
    color: #031525;
}

.social-dock-item svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
    transition: transform 0.3s ease;
}

.social-dock-item.instagram:hover {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%,#d6249f 60%,#285AEB 90%);
    color: #ffffff;
    transform: scale(1.1);
}

.social-dock-item.facebook:hover {
    background: #1877f2;
    color: #ffffff;
    transform: scale(1.1);
}

.social-dock-item.tiktok:hover {
    background: #000000;
    color: #ffffff;
    border-color: #00f2fe;
    box-shadow: 2px 2px 0px #00f2fe, -2px -2px 0px #fe0979;
    transform: scale(1.1);
}

/* RTL support for Symmetrical placement */
[dir="rtl"] .floating-social-dock {
    left: auto;
    right: 24px;
}

/* Mobile responsive layout */
@media (max-width: 768px) {
    .floating-social-dock {
        left: 20px;
        bottom: 20px;
        top: auto;
        transform: none;
        flex-direction: row;
        padding: 8px 12px;
        border-radius: 20px;
        gap: 10px;
    }
    
    [dir="rtl"] .floating-social-dock {
        left: auto;
        right: 20px;
        bottom: 20px;
    }
    
    .social-dock-item {
        width: 36px;
        height: 36px;
    }
    
    .social-dock-item svg {
        width: 16px;
        height: 16px;
    }
}


/* --- Theme-Aware Ready Badges --- */
.badge-ready {
    background-color: var(--color-accent) !important;
    color: #ffffff !important;
    border: none !important;
}

body.light-theme .badge-ready {
    background-color: var(--color-accent) !important;
    color: #ffffff !important;
    border: none !important;
}

.social-dock-item.whatsapp:hover {
    background-color: #25d366;
    color: #ffffff;
    transform: scale(1.1);
}

.whatsapp-widget {
    display: none !important;
}


/* --- Mobile Navigation Drawer & Hamburger --- */
.mobile-menu-toggle {
    display: none;
}

.mobile-nav-drawer {
    display: none;
}

@media (max-width: 768px) {
    /* Hide desktop header actions completely on mobile */
    .header-actions {
        display: none !important;
    }

    /* Show and style hamburger toggle button */
    .mobile-menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 24px;
        height: 18px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 10001; /* Stay above the drawer */
    }

    .mobile-menu-toggle .bar {
        height: 2px;
        width: 100%;
        background-color: var(--color-text-bright);
        border-radius: 2px;
        transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    }

    /* Hamburger to 'X' animation */
    .mobile-menu-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .mobile-menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    .mobile-menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* Mobile slide-out nav drawer */
    .mobile-nav-drawer {
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(3, 21, 37, 0.98);
        backdrop-filter: blur(15px);
        z-index: 9999;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
        padding: 90px 20px 40px 20px;
    }

    body.light-theme .mobile-nav-drawer {
        background-color: rgba(255, 255, 255, 0.98);
    }

    .mobile-nav-drawer.active {
        transform: translateX(0);
    }

    /* Navigation links inside drawer */
    .mobile-nav-links {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 30px;
        margin-bottom: 50px;
        list-style: none;
        padding: 0;
        width: 100%;
    }

    .mobile-nav-links a {
        font-family: var(--font-heading);
        font-size: 1.5rem;
        font-weight: 600;
        color: var(--color-text-bright);
        text-decoration: none;
        transition: color 0.3s;
    }

    .mobile-nav-links a:hover,
    .mobile-nav-links a.active {
        color: var(--color-accent);
    }

    /* Actions container inside drawer */
    .mobile-nav-actions {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
        width: 100%;
        max-width: 280px;
    }

    .mobile-nav-actions .lang-switch,
    .mobile-nav-actions .theme-switch-btn {
        width: 100%;
        max-width: 200px;
        padding: 10px;
        text-align: center;
        justify-content: center;
        border-radius: 6px;
    }
}


/* --- Premium Toast Notification --- */
.custom-toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: rgba(14, 23, 31, 0.96);
    border: 1px solid var(--color-accent);
    border-radius: 12px;
    padding: 16px 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), inset 0 0 15px rgba(212, 175, 55, 0.1);
    color: var(--color-text-bright);
    z-index: 11000;
    max-width: 380px;
    display: flex;
    align-items: center;
    gap: 15px;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(10px);
}
body.rtl-mode .custom-toast {
    right: auto;
    left: 30px;
}
.custom-toast.active {
    transform: translateY(0);
    opacity: 1;
}
.custom-toast-icon {
    background: var(--color-accent-gradient);
    color: #0E171F;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
    font-size: 0.9rem;
    box-shadow: 0 4px 10px rgba(212, 175, 55, 0.3);
}
.custom-toast-content {
    flex-grow: 1;
}
.custom-toast-content h5 {
    margin: 0 0 4px 0;
    font-size: 1rem;
    font-family: var(--font-heading);
    color: var(--color-accent);
}
.custom-toast-content p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    line-height: 1.4;
}

@media (max-width: 576px) {
    .custom-toast {
        bottom: 20px;
        right: 20px;
        left: 20px;
        max-width: none;
    }
    body.rtl-mode .custom-toast {
        left: 20px;
        right: 20px;
    }
}


/* ================================================================
   PORTFOLIO PAGE — MOBILE RESPONSIVE FIXES
   Targets: hero overflow, 3D panel sizing, card text, container
   ================================================================ */



@media (max-width: 768px) {

    /* --- Hero Section --- */
    .hero-section {
        padding-top: 90px !important;
        padding-bottom: 50px !important;
        min-height: 100svh !important;
        align-items: center !important;
    }

    /* Hero container - proper safe padding */
    .hero-section .container {
        padding-left: 20px !important;
        padding-right: 20px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* --- Agency title sizing on mobile --- */
    .agency-title {
        font-size: 2rem !important;
        line-height: 1.2 !important;
        word-break: break-word;
    }

    .agency-desc {
        font-size: 0.95rem !important;
        max-width: 100% !important;
        color: rgba(255,255,255,0.9) !important;
        font-weight: 500 !important;
    }

    .agency-tagline {
        font-size: 0.7rem !important;
        letter-spacing: 0.15em !important;
    }

    /* --- 3D Scroll Section --- */
    /* Make the sticky panels properly contained */
    .relative.z-10.mx-auto.max-w-700.px-6.text-center {
        padding-left: 16px !important;
        padding-right: 16px !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        width: 100% !important;
    }

    /* 3D panel card inner content */
    .double-bezel-outer {
        margin: 0 !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .double-bezel-inner {
        padding: 24px !important;
    }

    /* Panel headings on mobile */
    .explode-text h2.agency-title {
        font-size: 1.6rem !important;
    }

    /* Override inline large padding on hero for mobile */
    section.hero-section[style] {
        padding-top: 90px !important;
    }

    /* --- Bento grid section padding --- */
    section[style*="padding: 100px"] {
        padding: 60px 0 !important;
    }

    /* --- Founder / profile section --- */
    .bento-grid {
        padding: 0 16px !important;
    }

    /* --- General section container safe padding --- */
    section > .container,
    section > div > .container {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
}

@media (max-width: 480px) {

    /* Even tighter on very small phones */
    .agency-title {
        font-size: 1.75rem !important;
    }

    .double-bezel-inner {
        padding: 18px !important;
    }

    .explode-text h2.agency-title {
        font-size: 1.4rem !important;
    }

    /* Reduce hero top padding on tiny phones */
    .hero-section {
        padding-top: 80px !important;
    }

    section.hero-section[style] {
        padding-top: 80px !important;
    }
}
