/* =========================================
   BAIT AL MUSTAQBAL - COMPLETE LUXURY CSS
   ========================================= */

:root {
    --midnight: #0b132b; /* Deep navy from the card */
    --card-blue: #38bdf8; /* The light cyan/blue accent from the card */
    --white: #ffffff;
    --off-white: #f8fafc;
    --text-gray: #cbd5e1;
    --gold: #c5a059; 
    --footer-bg: #050a17; 
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Poppins', sans-serif;
    color: #333;
    background-color: var(--off-white); 
    
    /* PREMIUM SOFT AMBIENT GLOW */
    background-image: 
        radial-gradient(circle at 0% 0%, rgba(197, 160, 89, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 100% 100%, rgba(11, 19, 43, 0.04) 0%, transparent 50%),
        radial-gradient(circle at 100% 0%, rgba(56, 189, 248, 0.04) 0%, transparent 40%);
    
    background-attachment: fixed; 
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    z-index: 0; /* Establishes stacking context for the globe */
}

h1, h2, h3 { font-family: 'Playfair Display', serif; color: var(--midnight); }

/* --- TOP BAR & NAVIGATION --- */
.top-bar {
    background-color: #050a17;
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(56, 189, 248, 0.15) 0%, transparent 45%),
        radial-gradient(circle at 85% 50%, rgba(56, 189, 248, 0.1) 0%, transparent 40%),
        linear-gradient(90deg, #050a17 0%, #101d36 50%, #050a17 100%);
    color: var(--text-gray);
    border-bottom: 1px solid rgba(56, 189, 248, 0.2); 
    font-size: 13px;
    padding: 8px 0;
}

.container-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0 20px; 
    box-sizing: border-box; 
}

.top-bar svg {
    fill: var(--card-blue);
    vertical-align: middle;
    margin-right: 5px;
}

header {
    background-color: #050a17;
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(56, 189, 248, 0.15) 0%, transparent 45%),
        radial-gradient(circle at 85% 50%, rgba(56, 189, 248, 0.1) 0%, transparent 40%),
        linear-gradient(90deg, #050a17 0%, #101d36 50%, #050a17 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 12px 40px;
    display: flex; 
    justify-content: space-between;
    align-items: center; 
    position: sticky; 
    top: 0; 
    z-index: 100;
    border-bottom: 2px solid var(--gold);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 32px;
    color: white;
    cursor: pointer;
    outline: none;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    z-index: 101;
    color: white !important;
}
.logo-img {
    height: 45px; 
    width: auto;
    max-width: 250px;
    object-fit: contain;
}
.logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 700;
    color: white !important;
    letter-spacing: 0.5px;
}

nav { display: flex; align-items: center; }

nav a {
    text-decoration: none; 
    color: white; 
    margin-left: 30px; 
    font-size: 13px; 
    font-weight: 600; 
    text-transform: uppercase;
    letter-spacing: 0.5px; 
    position: relative;
    transition: color 0.3s ease;
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--gold);
    transition: width 0.3s ease;
}

nav a:hover { color: var(--gold); }
nav a:hover::after { width: 100%; }

.lang-switch {
    margin-left: 30px; 
    padding: 6px 12px; 
    border: 1px solid var(--gold);
    background: transparent; 
    color: white; 
    font-family: 'Poppins', sans-serif;
    font-weight: 600; 
    font-size: 12px;
    border-radius: 4px; 
    cursor: pointer; 
    outline: none;
    transition: all 0.3s ease;
}
.lang-switch option { color: var(--midnight); }
.lang-switch:hover {
    border-color: var(--card-blue);
    background: rgba(56, 189, 248, 0.1);
}

/* --- HERO SECTION WITH SLIDESHOW --- */
.hero {
    position: relative;
    height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
    overflow: hidden;
}
.hero-slideshow { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; }
.bg-slide {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover; background-position: center;
    opacity: 0; transition: opacity 1.5s ease-in-out;
}
.bg-slide.active { opacity: 1; }
.hero-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(rgba(11, 19, 43, 0.6), rgba(11, 19, 43, 0.75));
    z-index: 2;
}
.hero-content { position: relative; z-index: 3; max-width: 900px; }
.hero h1 { font-size: 56px; color: white; margin-bottom: 20px; line-height: 1.2; }
.hero p { color: #e5e7eb; font-size: 18px; font-weight: 300; margin-bottom: 40px; }

.search-bar {
    background: rgba(255, 255, 255, 0.15); backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px); border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 15px; border-radius: 8px; display: inline-flex; gap: 15px; justify-content: center; flex-wrap: wrap;
}
.search-bar select {
    padding: 15px; width: 200px; border: none; border-radius: 4px;
    font-family: 'Poppins', sans-serif; font-size: 14px; color: var(--midnight); outline: none;
}
.search-bar button {
    padding: 15px 30px; background-color: var(--gold); color: var(--midnight);
    border: none; border-radius: 4px; font-family: 'Poppins', sans-serif;
    font-weight: 600; font-size: 14px; cursor: pointer; text-transform: uppercase;
    letter-spacing: 1px; transition: background 0.3s;
}
.search-bar button:hover { background-color: #b08d4a; }

/* --- TRUST STATS SECTION --- */
.stats-section { background-color: var(--midnight); padding: 40px 0; border-bottom: 3px solid var(--gold); position: relative; z-index: 2;}
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; margin: 0 auto; }
.stat-box h2 { color: var(--gold); font-size: 42px; margin-bottom: 5px; }
.stat-box p { color: #d1d5db; font-size: 14px; text-transform: uppercase; letter-spacing: 1px; }

/* --- GENERAL CONTAINER & TITLES --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section-title { text-align: center; margin-bottom: 50px; margin-top: 80px; }
.section-title h2 { font-size: 38px; margin-bottom: 10px; }
.section-title p { color: #64748b; font-weight: 500; }

/* --- SERVICES SECTION --- */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 30px; position: relative; z-index: 2;}
.service-card {
    background: white; border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 0.3s; overflow: hidden; border-top: 4px solid var(--gold);
    display: flex; flex-direction: column;
}
.service-card:hover { transform: translateY(-5px); box-shadow: 0 20px 40px rgba(0,0,0,0.1); }
.service-img { width: 100%; height: 220px; object-fit: cover; border-bottom: 1px solid #eee; }
.service-content { padding: 30px; flex-grow: 1; }
.service-content h3 { font-family: 'Poppins', sans-serif; font-size: 20px; margin-bottom: 15px; }
.service-content p { 
    font-size: 14px; 
    color: #475569; 
    line-height: 1.7; 
}

/* --- INVESTOR HUB SECTION (UPDATED: TRANSPARENT) --- */
.investor-hub { 
    background-color: transparent; /* Removed the solid white background */
    padding: 80px 0; 
    border-top: none; /* Removed top border */
    border-bottom: none; /* Removed bottom border */
    position: relative; 
    z-index: 2;
}

.investor-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }

.investor-card {
    padding: 30px; 
    /* Glassmorphism effect so the globe shows behind the cards elegantly */
    background: rgba(255, 255, 255, 0.85); 
    backdrop-filter: blur(10px);
    border-left: 4px solid var(--gold);
    border-radius: 4px; 
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
}
.investor-card:hover { 
    transform: translateY(-5px); 
    box-shadow: 0 10px 25px rgba(0,0,0,0.08); 
}
.investor-card h3 { font-family: 'Poppins', sans-serif; font-size: 18px; margin-bottom: 15px; }
.investor-card p { font-size: 14px; color: #475569; }

/* --- TEAM SECTION (FLOATING MINIMALIST) --- */
.team-section { 
    background-color: transparent; 
    padding: 80px 0; 
    position: relative;
    z-index: 2; 
}
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 40px; text-align: center; }

.team-card { 
    background: transparent; 
    padding: 0; 
    box-shadow: none;
    transition: transform 0.4s ease;
}

.team-img { 
    width: 160px; 
    height: 160px; 
    border-radius: 50%; 
    object-fit: cover; 
    border: 3px solid var(--gold); 
    margin: 0 auto 20px auto; 
    display: block; 
    transition: all 0.4s ease;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1); 
}

.team-card:hover {
    transform: translateY(-10px);
}
.team-card:hover .team-img {
    border-color: var(--card-blue);
    box-shadow: 0 15px 30px rgba(56, 189, 248, 0.2);
}

.team-card h3 { 
    font-family: 'Poppins', sans-serif; 
    font-size: 20px; 
    margin-bottom: 5px; 
    color: var(--midnight);
    text-shadow: 0 2px 10px rgba(255, 255, 255, 0.9); 
}

.team-card .role { 
    color: var(--gold); 
    font-size: 13px; 
    font-weight: 600; 
    text-transform: uppercase; 
    letter-spacing: 1px;
    text-shadow: 0 2px 10px rgba(255, 255, 255, 0.9);
}

/* --- TESTIMONIALS SECTION --- */
.testimonials-section { background-color: var(--midnight); padding: 80px 0; position: relative; z-index: 2;}
.testimonials-section .section-title h2 { color: white; }
.testimonial-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-top: 40px; }
.testimonial-card { background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); padding: 30px; border-radius: 8px; }
.stars { margin-bottom: 15px; font-size: 14px; }
.testimonial-card .quote { font-size: 15px; color: #e5e7eb; font-style: italic; margin-bottom: 20px; line-height: 1.6; }
.testimonial-card .author { display: flex; flex-direction: column; }
.testimonial-card .author strong { color: var(--gold); font-size: 16px; }
.testimonial-card .author span { color: #9ca3af; font-size: 13px; }

/* --- CONTACT & MAP SECTION --- */
.contact-section { padding: 80px 0; background: white; position: relative; z-index: 2;}
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; background: var(--off-white); padding: 40px; border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); }
.contact-form-wrapper h2 { margin-bottom: 10px; font-size: 32px; }
.contact-form-wrapper p { color: #64748b; margin-bottom: 30px; }
.contact-form-wrapper form { display: flex; flex-direction: column; gap: 15px; }
.form-row { display: flex; gap: 15px; }
.contact-form-wrapper input, .contact-form-wrapper textarea { width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 4px; font-family: 'Poppins', sans-serif; outline: none; }
.contact-form-wrapper input:focus, .contact-form-wrapper textarea:focus { border-color: var(--gold); }
.contact-form-wrapper .btn-gold { border: none; cursor: pointer; align-self: flex-start; margin-top: 10px; }
.map-wrapper { min-height: 400px; border-radius: 8px; overflow: hidden; box-shadow: 0 5px 15px rgba(0,0,0,0.1); }

/* --- B2B SECTION --- */
.owner-section { background-color: var(--midnight); padding: 80px 20px; text-align: center; position: relative; z-index: 2;}
.owner-content { max-width: 800px; margin: 0 auto; }
.owner-section h2 { color: white; font-size: 36px; margin-bottom: 20px; }
.owner-section p { color: #a0aec0; font-size: 16px; margin-bottom: 30px; font-weight: 300; }
.btn-gold { display: inline-block; background-color: var(--gold); color: var(--midnight); padding: 15px 40px; text-decoration: none; font-weight: 600; border-radius: 4px; text-transform: uppercase; letter-spacing: 1px; transition: background 0.3s; }
.btn-gold:hover { background-color: #b08d4a; }
.glow-effect { box-shadow: 0 0 15px rgba(197, 160, 89, 0.4); animation: pulse-glow 2s infinite; }
@keyframes pulse-glow { 0% { box-shadow: 0 0 10px rgba(197, 160, 89, 0.3); } 50% { box-shadow: 0 0 25px rgba(197, 160, 89, 0.8); } 100% { box-shadow: 0 0 10px rgba(197, 160, 89, 0.3); } }

/* --- FOOTER SECTION --- */
footer { 
    background-color: var(--footer-bg); 
    color: white; 
    padding-top: 50px; /* Reduced height */
    border-top: 3px solid var(--gold);
    position: relative;
    overflow: hidden;
    z-index: 2;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?auto=format&fit=crop&w=1000&q=80');
    background-size: cover;
    background-position: center left;
    opacity: 0.08; 
    z-index: 0;
    pointer-events: none;
}

.footer-grid { 
    display: grid; 
    grid-template-columns: 1.5fr 1fr 1.2fr 1.5fr; 
    gap: 40px; 
    
    /* THE FIX: Expanded max-width to push columns to the edges */
    max-width: 1400px; 
    margin: 0 auto; 
    
    /* Tighter padding to fix the height */
    padding: 0 40px 30px 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1); 
    position: relative;
    z-index: 1; 
}

.footer-brand h2 { 
    color: white; 
    font-size: 28px; 
    margin-bottom: 10px; 
    font-family: 'Playfair Display', serif; 
}

.footer-brand p { 
    color: #9ca3af; 
    font-size: 14px; 
    line-height: 1.6; 
    margin-bottom: 15px; 
    max-width: 320px; 
}

.social-links { display: flex; gap: 10px; }
.social-links a { 
    display: flex; align-items: center; justify-content: center; 
    width: 38px; height: 38px; border-radius: 50%; 
    background: rgba(255,255,255,0.05); color: var(--gold); 
    transition: all 0.3s; border: 1px solid transparent;
}
.social-links a:hover { 
    background: var(--gold); 
    color: var(--midnight); 
    transform: translateY(-3px); 
    border-color: var(--gold); 
}

.footer-links, .footer-contact { 
    display: flex; 
    flex-direction: column; 
    gap: 8px; 
}

.footer-links h3, .footer-contact h3 { 
    color: var(--gold); 
    font-family: 'Poppins', sans-serif; 
    font-size: 15px; 
    margin-bottom: 5px; 
    text-transform: uppercase; 
    letter-spacing: 1px; 
    font-weight: 600;
}

.footer-links a { 
    color: #9ca3af; 
    text-decoration: none; 
    font-size: 14px; 
    transition: all 0.3s; 
    display: inline-block; 
    width: fit-content; 
}
.footer-links a:hover { 
    color: var(--gold); 
    transform: translateX(3px); 
}

.footer-contact p { 
    color: #9ca3af; 
    font-size: 13.5px; 
    margin-bottom: 5px; 
    line-height: 1.5; 
}
.footer-contact strong { 
    color: #e5e7eb; 
    font-weight: 500; 
}

.contact-link { 
    color: #9ca3af; 
    text-decoration: none; 
    transition: color 0.3s; 
    font-size: 13px; /* Keeps long emails on one line */
    word-break: break-word;
}
.contact-link:hover { 
    color: var(--gold); 
    text-decoration: underline; 
}

.footer-bottom { 
    text-align: center; 
    padding: 12px 0; /* Fixed the golden strip to be narrow */
    background: var(--gold); 
    color: var(--midnight); 
    font-size: 13px; 
    position: relative;
    z-index: 1;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr; 
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr; 
        text-align: center;
        padding: 0 20px 30px 20px;
    }
    .footer-brand p {
        margin: 0 auto 15px auto;
    }
    .social-links {
        justify-content: center;
    }
    .footer-links, .footer-contact {
        align-items: center;
    }
    .footer-links a:hover {
        transform: translateY(-2px);
    }
}

/* --- FLOATING WHATSAPP --- */
.whatsapp-btn {
    position: fixed; bottom: 30px; right: 30px;
    background-color: #25D366; color: white;
    width: 65px; height: 65px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 1000; transition: transform 0.3s, box-shadow 0.3s;
}
.whatsapp-btn:hover { transform: scale(1.1) translateY(-5px); box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6); }
.whatsapp-btn svg { width: 35px; height: 35px; }

/* --- RTL SUPPORT --- */
.rtl-layout { font-family: 'Cairo', 'Poppins', sans-serif; }
.rtl-layout h1, .rtl-layout h2, .rtl-layout h3 { font-family: 'Cairo', 'Playfair Display', serif; }
.rtl-layout nav a { margin-left: 0; margin-right: 30px; }
.rtl-layout .lang-switch { margin-left: 0; margin-right: 30px; }
.rtl-layout .investor-card { border-left: none; border-right: 4px solid var(--gold); }
.rtl-layout .whatsapp-btn { right: auto; left: 30px; }
.rtl-layout .section-title[style*="text-align: left"] { text-align: right !important; }

/* --- GLOBAL INVESTOR PORTFOLIO --- */
.investor-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; max-width: 900px; margin: 0 auto 40px auto; }
.stat-card { background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(197, 160, 89, 0.3); border-radius: 12px; padding: 25px; text-align: center; transition: all 0.3s ease; }
.stat-card:hover { transform: translateY(-5px); border-color: var(--gold); background: rgba(197, 160, 89, 0.1); }
.stat-card .flag { font-size: 40px; margin-bottom: 10px; }
.stat-card .count { font-size: 36px; font-family: 'Playfair Display', serif; color: var(--gold); font-weight: 700; line-height: 1; margin-bottom: 5px; }
.stat-card .country { color: #d1d5db; font-size: 14px; text-transform: uppercase; letter-spacing: 1px; font-weight: 500; }
.investor-message { background: rgba(255, 255, 255, 0.05); border-left: 4px solid var(--gold); padding: 30px; max-width: 900px; margin: 0 auto; border-radius: 0 8px 8px 0; }
.investor-message p { color: #e5e7eb; font-size: 16px; line-height: 1.8; text-align: center; font-style: italic; }

/* --- NO-RESULTS STATE --- */
.no-results-container { max-width: 600px; margin: 40px auto; background: white; border: 1px solid #eee; border-radius: 12px; padding: 50px 30px; text-align: center; box-shadow: 0 10px 30px rgba(0,0,0,0.05); position: relative; z-index: 2;}
.no-results-icon { font-size: 40px; margin-bottom: 20px; opacity: 0.5; }
.no-results-title { font-family: 'Playfair Display', serif; font-size: 26px; color: var(--midnight); margin-bottom: 15px; }
.no-results-desc { font-family: 'Poppins', sans-serif; font-size: 15px; color: #64748b; line-height: 1.6; margin-bottom: 30px; }
.btn-whatsapp { display: inline-flex; align-items: center; justify-content: center; background-color: #25D366; color: white; padding: 12px 25px; border-radius: 6px; text-decoration: none; font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 15px; transition: all 0.3s ease; box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3); }
.btn-whatsapp:hover { background-color: #1ebe5d; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4); }
.btn-clear-search { color: var(--midnight); font-family: 'Poppins', sans-serif; font-size: 14px; text-decoration: underline; font-weight: 500; transition: color 0.3s; }
.btn-clear-search:hover { color: var(--gold); }

/* --- INFINITE PROPERTY MARQUEE (REEL) --- */
.property-marquee-wrapper {
    overflow: hidden;
    width: 100%;
    padding: 20px 0;
    position: relative;
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    z-index: 2;
}

.property-marquee-track {
    display: flex;
    flex-wrap: nowrap;
    gap: 40px; 
    width: max-content;
    animation: scrollReel 40s linear infinite;
}

.property-marquee-wrapper:hover .property-marquee-track {
    animation-play-state: paused;
}

.property-marquee-track .card {
    flex: 0 0 250px; 
    width: 250px;
    max-width: 250px;
    background: white; 
    border-radius: 8px; 
    overflow: hidden; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.05); 
    transition: transform 0.3s, box-shadow 0.3s;
}

.property-marquee-track .card-img-wrapper {
    height: 150px; 
}

.property-marquee-track .card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.property-marquee-track .card:hover { 
    transform: translateY(-8px); 
    box-shadow: 0 20px 40px rgba(0,0,0,0.1); 
}
.property-marquee-track .card:hover .card-img-wrapper img { 
    transform: scale(1.05); 
}

@keyframes scrollReel {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* --- CORPORATE CLIENTS MARQUEE (TEXT ONLY) --- */
.clients-section {
    background-color: var(--midnight);
    padding: 50px 0;
    border-top: 1px solid rgba(197, 160, 89, 0.3);
    border-bottom: 1px solid rgba(197, 160, 89, 0.3);
    overflow: hidden;
    position: relative;
    z-index: 2;
}

.clients-title {
    text-align: center;
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--gold);
    margin-bottom: 30px;
    font-weight: 600;
}

.clients-marquee-wrapper {
    overflow: hidden;
    width: 100%;
    position: relative;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.client-marquee-track {
    display: flex;
    flex-direction: row;
    width: max-content;
    animation: scrollClients 30s linear infinite;
    align-items: center;
}

.clients-marquee-wrapper:hover .client-marquee-track {
    animation-play-state: paused;
}

@keyframes scrollClients {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.client-name-box {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 60px; 
}

.client-name {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    color: #e5e7eb;
    font-weight: 600;
    font-style: italic;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.client-name:hover {
    color: var(--gold);
    text-shadow: 0 0 15px rgba(197, 160, 89, 0.6);
    transform: scale(1.05);
}

/* --- MOBILE RESPONSIVENESS --- */
@media (max-width: 992px) {
    .contact-grid { grid-template-columns: 1fr; }
    .hero h1 { font-size: 42px; }
    .search-bar { flex-direction: column; width: 100%; max-width: 400px; }
    .search-bar select, .search-bar button { width: 100%; }
    .footer-grid { grid-template-columns: 1fr; gap: 40px; text-align: center; }
    .social-links { justify-content: center; }
    .rtl-layout .section-title[style*="text-align: left"] { text-align: center !important; }
    .investor-stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .top-bar { display: none; }
    header { padding: 15px 20px; }
    .logo-img { height: 40px; }
    .logo-text { font-size: 20px; }
    .mobile-menu-btn { display: block; }
    
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
    .form-row { flex-direction: column; }
    .rtl-layout nav a { margin: 10px 0; text-align: center; }
    .rtl-layout .lang-switch { margin: 15px 0 0 0; }

    /* Mobile Footer Adjustments */
    .footer-grid { grid-template-columns: 1fr; text-align: center; gap: 40px; padding: 0 20px 40px 20px; }
    .footer-brand p { margin: 0 auto 25px auto; }
    .footer-links { align-items: center; }
    .footer-links a:hover { transform: translateY(-3px); }
}

/* --- ELEGANT ROTATING SVG GLOBE (FIXED BACKGROUND) --- */
body::before {
    content: '';
    position: fixed; 
    top: 50%;
    left: 50%;
    width: 90vw;
    height: 90vw;
    max-width: 1200px;
    max-height: 1200px;
    
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ccircle cx='50' cy='50' r='49' fill='none' stroke='%230b132b' stroke-opacity='0.08' stroke-width='0.5'/%3E%3Cellipse cx='50' cy='50' rx='20' ry='49' fill='none' stroke='%230b132b' stroke-opacity='0.08' stroke-width='0.5'/%3E%3Cellipse cx='50' cy='50' rx='40' ry='49' fill='none' stroke='%230b132b' stroke-opacity='0.08' stroke-width='0.5'/%3E%3Cellipse cx='50' cy='50' rx='49' ry='20' fill='none' stroke='%230b132b' stroke-opacity='0.08' stroke-width='0.5'/%3E%3Cellipse cx='50' cy='50' rx='49' ry='40' fill='none' stroke='%230b132b' stroke-opacity='0.08' stroke-width='0.5'/%3E%3C/svg%3E");
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    
    transform: translate(-50%, -50%);
    animation: spinGlobe 180s linear infinite; 
    
    z-index: -1; 
    pointer-events: none; 
}

@keyframes spinGlobe {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* =========================================
   INVESTOR PAGE SPECIFIC STYLES
   ========================================= */

/* --- INVESTOR HERO --- */
.investor-hero {
    padding: 120px 20px;
    text-align: center;
    background: transparent;
    position: relative;
    z-index: 2;
}

.investor-hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.investor-hero h1 {
    font-size: 52px;
    color: var(--midnight);
    line-height: 1.2;
    margin-bottom: 20px;
}

.investor-hero p {
    font-size: 18px;
    color: #475569;
    margin-bottom: 40px;
    font-weight: 500;
}

/* --- PROBLEM VS SOLUTION --- */
.problem-solution-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.ps-card {
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.ps-card:hover {
    transform: translateY(-5px);
}

.ps-card h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 20px;
    margin-bottom: 15px;
}

.ps-card p {
    color: #475569;
    font-size: 15px;
    line-height: 1.7;
}

.problem-card {
    background: rgba(255, 235, 235, 0.8);
    border-left: 4px solid #ef4444; /* Red border */
    backdrop-filter: blur(10px);
}

.solution-card {
    background: rgba(240, 253, 244, 0.8);
    border-left: 4px solid #22c55e; /* Green border */
    backdrop-filter: blur(10px);
}

/* --- HOW IT WORKS (PROCESS) --- */
.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.process-step {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    padding: 30px 20px;
    border-radius: 8px;
    text-align: center;
    border-top: 3px solid var(--gold);
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--midnight);
    color: var(--gold);
    font-size: 20px;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px auto;
}

.process-step h4 {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    margin-bottom: 10px;
    color: var(--midnight);
}

.process-step p {
    font-size: 13px;
    color: #64748b;
    line-height: 1.6;
}

/* --- FAQ ACCORDION --- */
.faq-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-item[open] {
    border-color: var(--gold);
    box-shadow: 0 5px 15px rgba(197, 160, 89, 0.1);
}

.faq-item summary {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: var(--midnight);
    list-style: none; /* Hides default arrow */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-item summary::-webkit-details-marker {
    display: none; /* Hides default arrow on Safari */
}

.faq-item summary::after {
    content: '+';
    color: var(--gold);
    font-size: 24px;
    font-weight: 300;
}

.faq-item[open] summary::after {
    content: '-';
}

.faq-item p {
    margin-top: 15px;
    color: #475569;
    font-size: 15px;
    line-height: 1.6;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

/* --- INVESTOR FORM SECTION --- */
.investor-form-section {
    padding: 80px 20px;
    background: transparent;
    position: relative;
    z-index: 2;
}

.glass-form-wrapper {
    max-width: 700px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.9); /* Frosted glass */
    backdrop-filter: blur(15px);
    padding: 50px;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
    border-top: 5px solid var(--gold);
}

.glass-form-wrapper form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.glass-form-wrapper input, 
.glass-form-wrapper select, 
.glass-form-wrapper textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.8);
    outline: none;
    transition: border 0.3s;
}

.glass-form-wrapper input:focus, 
.glass-form-wrapper select:focus, 
.glass-form-wrapper textarea:focus {
    border-color: var(--gold);
    background: white;
}

/* --- MOBILE RESPONSIVENESS FOR INVESTOR PAGE --- */
@media (max-width: 992px) {
    .problem-solution-grid { grid-template-columns: 1fr; }
    .process-grid { grid-template-columns: repeat(2, 1fr); }
    .investor-hero h1 { font-size: 38px; }
}

@media (max-width: 768px) {
    .process-grid { grid-template-columns: 1fr; }
    .glass-form-wrapper { padding: 30px 20px; }
    .form-row { flex-direction: column; }
}

/* --- FAQ ACCORDION STYLES --- */
.faq-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.faq-item {
    background: white;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 20px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.02);
    transition: all 0.3s ease;
}
.faq-item[open] {
    border-color: var(--gold);
    box-shadow: 0 5px 15px rgba(197, 160, 89, 0.1);
}
.faq-item summary {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: var(--midnight);
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: '+';
    color: var(--gold);
    font-size: 24px;
    font-weight: 300;
}
.faq-item[open] summary::after { content: '-'; }
.faq-item p {
    margin-top: 15px;
    color: #64748b;
    font-size: 15px;
    line-height: 1.6;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

/* --- MOBILE UX IMPROVEMENTS --- */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 36px !important; 
        line-height: 1.2;
    }
    .hero p {
        font-size: 16px !important;
        margin-bottom: 30px !important;
    }
    .search-bar {
        flex-direction: column;
        padding: 20px;
        gap: 10px;
        background: rgba(11, 19, 43, 0.8);
    }
    .search-bar select, .search-bar button {
        width: 100%;
        min-height: 50px;
    }
    .container {
        padding: 0 15px;
    }
    .section-title h2 {
        font-size: 28px;
    }
    .team-grid {
        grid-template-columns: 1fr !important; 
        gap: 30px;
    }
}

/* =========================================
   FINAL MOBILE MENU OVERRIDE (FIX)
   ========================================= */

.mobile-menu-btn {
    display: none;
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block !important;
        background: none;
        border: none;
        font-size: 32px;
        color: white;
        cursor: pointer;
        margin-left: auto;
        padding: 10px;
        z-index: 10000;
        position: relative;
    }

    #nav-menu {
        display: none !important; 
        flex-direction: column;
        position: absolute;
        top: 100%; 
        left: 0;
        width: 100%;
        background-color: #0b132b; 
        padding: 20px 0;
        z-index: 9999;
        box-shadow: 0 10px 15px rgba(0,0,0,0.5);
    }

    #nav-menu.active {
        display: flex !important; 
    }

    #nav-menu a {
        padding: 15px 20px;
        text-align: center;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        width: 100%;
        box-sizing: border-box;
        margin: 0;
    }
    
    #nav-menu a::after {
        display: none;
    }

    #nav-menu .lang-switch {
        margin: 15px auto;
        width: 80%;
    }
}