/* ─────────────────────────────────
   ELBASHMOHANDES Design System v2
   ───────────────────────────────── */

/* Variables */
:root {
    --bg-main: #0a0a0a;
    --bg-card: #121216;
    --bg-card-hover: #18181c;
    --bg-glass: rgba(18, 18, 22, 0.7);
    --bg-glass-blur: blur(12px);
    --accent-orange: #ff6600;
    --accent-orange-hover: #e05500;
    --accent-glow: rgba(255, 102, 0, 0.4);
    --accent-cyan: #00ccff;
    --accent-cyan-glow: rgba(0, 204, 255, 0.4);
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    --border-light: rgba(255, 255, 255, 0.08);
    --border-focus: rgba(255, 85, 0, 0.5);
    --font-en: 'Outfit', sans-serif;
    --font-ar: 'Tajawal', sans-serif;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 24px;
}

[lang="ar"] { --font-family: var(--font-ar); }
[lang="en"] { --font-family: var(--font-en); }

/* Base */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-family, var(--font-en));
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
::selection { background-color: var(--accent-orange); color: #fff; }

h1,h2,h3,h4,h5,h6 { font-weight: 700; line-height: 1.2; margin-bottom: 1rem; text-align: center; }
.text-accent { color: var(--accent-orange); }
p { color: var(--text-secondary); margin-bottom: 1.5rem; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 5%; }
.text-center { text-align: center; }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    padding: 0.875rem 1.75rem; font-weight: 600; font-size: 1rem;
    border-radius: var(--radius-sm); cursor: pointer; border: 1px solid transparent; transition: var(--transition);
}
.btn-primary { background-color: var(--accent-orange); color: #fff; }
.btn-primary:hover { background-color: var(--accent-orange-hover); box-shadow: 0 4px 25px var(--accent-glow); transform: translateY(-3px); }
.btn-primary { animation: btnPulse 3s infinite ease-in-out; }
@keyframes btnPulse {
    0%, 100% { box-shadow: 0 0 10px rgba(255, 102, 0, 0.2); }
    50% { box-shadow: 0 0 25px rgba(255, 102, 0, 0.4); }
}
.btn-outline { background-color: transparent; border-color: var(--border-light); color: var(--text-primary); }
.btn-outline:hover { border-color: var(--accent-orange); color: var(--accent-orange); transform: translateY(-3px); }

/* Header & Navigation */
.header {
    position: fixed; top: 1.5rem; inset-inline-start: 50%; transform: translateX(-50%);
    width: 92%; max-width: 1200px; z-index: 1000;
    background: rgba(8, 8, 10, 0.4); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05); border-radius: 100px;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}
[dir="rtl"] .header { transform: translateX(50%); } /* Correct centering for RTL transform */

.header.scrolled { 
    top: 1rem; width: 88%; max-width: 1100px;
    background: rgba(5, 5, 7, 0.85); box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5); 
    border-color: rgba(255, 102, 0, 0.2); 
}
.nav-logo-img { 
    height: 28px; width: auto; display: block; 
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.header-container { 
    display: flex; justify-content: space-between; align-items: center; 
    height: 44px; padding: 0 1.5rem; transition: var(--transition); 
}
.header.scrolled .header-container { height: 38px; }
.logo { display: flex; align-items: center; height: 100%; flex-shrink: 0; }
.nav-links { display: flex; gap: 1.5rem; align-items: center; }
.nav-link { font-size: 0.85rem; font-weight: 500; color: var(--text-secondary); position: relative; }
.nav-link::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 0%; height: 2px; background-color: var(--accent-orange); transition: var(--transition); }
.nav-link:hover, .nav-link.active { color: var(--text-primary); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

.nav-login-btn {
    border: 1px solid rgba(255, 102, 0, 0.4) !important;
    color: var(--accent-orange) !important;
    border-radius: 50px !important;
    padding: 0.5rem 1.4rem !important;
    margin-inline-start: 1rem;
    transition: all 0.3s ease !important;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.8rem !important;
    background: rgba(255, 102, 0, 0.05) !important;
}
.nav-login-btn:hover {
    border-color: var(--accent-orange) !important;
    box-shadow: 0 0 15px rgba(255, 102, 0, 0.2);
    transform: translateY(-1px);
}

.header-actions { display: flex; align-items: center; gap: 0.75rem; flex-shrink: 0; }
.lang-btn {
    background: transparent; border: 1px solid var(--border-light); color: var(--text-primary);
    display: flex; align-items: center; gap: 0.4rem; padding: 0.4rem 0.8rem;
    border-radius: 100px; cursor: pointer; font-family: inherit; font-weight: 600; font-size: 0.8rem; transition: var(--transition);
}
.lang-btn:hover { border-color: var(--accent-orange); color: var(--accent-orange); }
.mobile-menu-btn { display: none; background: transparent; border: 1px solid var(--border-light); color: var(--text-primary); font-size: 1.25rem; width: 40px; height: 40px; border-radius: 50%; display: none; align-items: center; justify-content: center; cursor: pointer; transition: var(--transition); }
.mobile-menu-btn:hover { border-color: var(--accent-orange); color: var(--accent-orange); }

/* Section Common */
section { padding: 6rem 0; }
.section-header { margin-bottom: 4rem; position: relative; }

/* ═══ 1. HERO REDESIGN ═══ */
.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    padding-top: 80px;
    background: #050507;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-grid {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    width: 100% !important;
    max-width: 1400px !important;
    padding: 0 5%;
    position: relative;
    z-index: 5;
    margin: 0 auto;
}
/* Force text to stay on the LEFT side of the screen even in RTL */
[dir="rtl"] .hero-grid { justify-content: flex-end; } 
[dir="rtl"] .hero-text-col { align-items: flex-start; text-align: left; margin: 0; }
[dir="rtl"] .hero-actions { justify-content: flex-start; }
[dir="rtl"] .trust-micro-copy { text-align: left; }

.hero-text-col {
    max-width: 600px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1.15;
    font-weight: 800;
    color: #fff;
    margin-bottom: 1.5rem;
    letter-spacing: -1.5px;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.15rem);
    line-height: 1.7;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

.hero-actions {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
    justify-content: flex-start;
}

.trust-micro-copy {
    font-size: 0.75rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.hero-portrait-col {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    z-index: 1;
    pointer-events: none;
}

.hero-portrait-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center right;
    filter: contrast(1.05) brightness(0.8);
    mask-image: linear-gradient(to left, black 65%, transparent 100%);
    -webkit-mask-image: linear-gradient(to left, black 65%, transparent 100%);
}

/* Atmosphere glows */
.hero-glow-1 {
    position: absolute; top: -10%; right: -5%; width: 50%; height: 50%;
    background: radial-gradient(circle, rgba(255, 102, 0, 0.05) 0%, transparent 70%);
}

/* RTL Specific Adjustments */
/* Replaced by global force-left above */
[dir="rtl"] .hero-portrait-col { right: 0; left: auto; width: 50%; }
[dir="rtl"] .hero-portrait-img { 
    object-position: center right; 
    mask-image: linear-gradient(to left, black 65%, transparent 100%); 
    -webkit-mask-image: linear-gradient(to left, black 65%, transparent 100%); 
}
[dir="rtl"] .trust-micro-copy { text-align: right; }

/* ═══ MOBILE RESPONSIVENESS (991PX) ═══ */
@media (max-width: 991px) {
    .hero-section {
        min-height: auto;
        padding-top: clamp(180px, 20vh, 260px); /* Responsive top padding */
        padding-bottom: 2rem;
        display: flex;
        flex-direction: column-reverse;
        align-items: center;
        text-align: center;
    }
    .hero-grid {
        display: flex;
        flex-direction: column-reverse;
        text-align: center;
        gap: 2rem;
    }
    .hero-text-col {
        max-width: 100%;
        align-items: center;
    }
    .hero-title {
        font-size: clamp(1.4rem, 6vw, 1.8rem); /* Smaller headings as requested */
    }
    .hero-actions {
        width: 100%;
        flex-direction: column;
        gap: 0.75rem;
    }
    .hero-actions .btn { width: 100%; }
    .trust-micro-copy { text-align: center; width: 100%; }
    
    .hero-portrait-col { 
        position: relative;
        width: 100%;
        height: auto;
        display: flex;
        justify-content: center; 
        margin-top: 1rem;
        margin-bottom: 1.5rem;
        right: auto;
        left: auto;
    }
    .hero-portrait-img { 
        height: auto;
        width: clamp(280px, 92%, 700px); /* Fluid responsive width */
        max-height: clamp(250px, 45vh, 500px); /* Fluid responsive height */
        object-fit: cover;
        object-position: center;
        mask-image: linear-gradient(to top, transparent 0%, black 15%, black 100%);
        -webkit-mask-image: linear-gradient(to top, transparent 0%, black 15%, black 100%);
        border-radius: 20px;
        filter: contrast(1.05) brightness(0.9);
    }

    [dir="rtl"] .hero-text-col { align-items: center; text-align: center; }
    [dir="rtl"] .hero-portrait-col { justify-content: center; left: auto; width: 100%; }

    /* Mobile Menu Styles */
    .mobile-menu-btn { display: flex !important; }
    .nav-links {
        position: fixed;
        top: 4.5rem; /* Moved higher */
        left: 50%;
        transform: translateX(-50%) translateY(-20px);
        width: 80%; /* Smaller width */
        max-width: 300px;
        background: rgba(10, 10, 15, 0.98);
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
        padding: 1.5rem 1.2rem; /* More compact */
        border-radius: 16px;
        border: 1px solid rgba(255, 102, 0, 0.3);
        flex-direction: column;
        gap: 0.5rem; /* Tighter gap */
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
        box-shadow: 0 30px 60px rgba(0,0,0,0.8);
        z-index: 999;
    }
    .nav-links.active {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(0);
    }
    .nav-link { font-size: 0.95rem; width: 100%; text-align: center; padding: 0.7rem; border-bottom: 1px solid rgba(255,255,255,0.05); }
    .nav-link:last-child { border-bottom: none; }
    .nav-login-btn { margin: 0.8rem 0 0 0 !important; width: 100%; justify-content: center; font-size: 0.9rem; }
    
    /* Removed broken RTL transform centering */
}

/* ══════════════════════════════════
   UI COMPONENTS & UTILITIES
   ══════════════════════════════════ */
.section-badge {
    display: inline-block;
    padding: 0.6rem 1.4rem;
    border-radius: 100px;
    border: 1px solid rgba(255, 102, 0, 0.2);
    color: var(--accent-orange);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    background: rgba(255, 102, 0, 0.05);
}

.section-title {
    font-size: 3rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 2rem;
    line-height: 1.2;
}

[dir="rtl"] .section-title {
    font-size: 2.8rem;
    line-height: 1.4;
}

/* ══════════════════════════════════
   2. FOUNDER'S QUOTE section
   ══════════════════════════════════ */
.about-section {
    padding: 5rem 0;
    background: radial-gradient(circle at 50% 50%, rgba(255, 102, 0, 0.05) 0%, transparent 70%);
}

.founder-card {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 5;
}

.founder-card-inner {
    background: rgba(20, 20, 20, 0.6);
    backdrop-filter: blur(20px);
    border: 2.5px solid var(--accent-orange);
    padding: 3.5rem 2.5rem;
    border-radius: 32px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 40px 100px rgba(255, 102, 0, 0.15);
}

.founder-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 102, 0, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.founder-quote-icon {
    font-size: 2.5rem;
    color: var(--accent-orange);
    margin-bottom: 1.5rem;
    opacity: 0.8;
}

.founder-quote {
    font-size: 1.55rem;
    line-height: 1.6;
    color: #fff;
    font-weight: 500;
    margin-bottom: 2.5rem;
    font-style: italic;
    position: relative;
    z-index: 2;
}

[lang="ar"] .founder-quote {
    font-size: 1.75rem;
    line-height: 1.8;
    font-style: normal;
}

.founder-signature {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
}

.founder-sig-line { width: 80px; height: 3px; background: var(--accent-orange); border-radius: 2px; margin: 0 auto 1.5rem; }
.founder-sig-name { font-size: 1.6rem; font-weight: 800; color: #fff; display: block; margin-bottom: 0.2rem; }
.founder-sig-title { font-size: 0.95rem; color: var(--accent-orange); letter-spacing: 2px; text-transform: uppercase; font-weight: 800; display: block; }


/* ══════════════════════════════════
   2.5 B-GATE SHOWCASE (Split Layout)
   ══════════════════════════════════ */
.bgate-showcase-section {
    padding: 7.5rem 0;
    background: radial-gradient(circle at 100% 0%, rgba(255, 102, 0, 0.05) 0%, transparent 100%);
    overflow: hidden;
}

.showcase-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.showcase-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.showcase-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 2rem;
    color: #fff;
    letter-spacing: -1px;
}

.showcase-desc {
    font-size: 1.15rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 3rem;
    max-width: 550px;
}

.showcase-visual {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.main-gate-logo {
    width: 320px;
    filter: drop-shadow(0 0 50px rgba(255, 102, 0, 0.3));
    animation: floatingLogo 6s ease-in-out infinite;
    margin-bottom: 3rem;
}

@keyframes floatingLogo {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.mini-icons-row {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.mini-icon-card {
    flex-shrink: 0;
    width: 54px;
    height: 54px;
    background: rgba(20, 20, 25, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.mini-icon-card img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.mini-icon-card:hover {
    transform: translateY(-8px) scale(1.1);
    background: rgba(30,30,40,0.8);
    box-shadow: 0 15px 30px rgba(0,0,0,0.5);
}

.mini-icon-card.green:hover { border-color: #00ff88; box-shadow: 0 10px 25px rgba(0, 255, 136, 0.2); }
.mini-icon-card.red:hover { border-color: #ff3333; box-shadow: 0 10px 25px rgba(255, 51, 51, 0.2); }
.mini-icon-card.purple:hover { border-color: #aa66ff; box-shadow: 0 10px 25px rgba(170, 102, 255, 0.2); }
.mini-icon-card.cyan:hover { border-color: #00d2ff; box-shadow: 0 10px 25px rgba(0, 210, 255, 0.2); }
.mini-icon-card.yellow:hover { border-color: #ffcc00; box-shadow: 0 10px 25px rgba(255, 204, 0, 0.2); }
.mini-icon-card.lime:hover { border-color: #ccff00; box-shadow: 0 10px 25px rgba(204, 255, 0, 0.2); }
.mini-icon-card.white:hover { border-color: #ffffff; box-shadow: 0 10px 25px rgba(255, 255, 255, 0.1); }

/* ══════════════════════════════════
   3. SERVICES GRID
   ══════════════════════════════════ */
.services-section { padding: 7.5rem 0; background: #050505; }
.grid-v2 { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 2.5rem; margin-top: 5rem; }
.physical-card.v2 {
    background: #0d0d0f; border: 1px solid rgba(255, 255, 255, 0.04);
    padding: 3.5rem 3rem; border-radius: 32px; transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative; overflow: hidden;
}
.physical-card.v2:hover { transform: translateY(-15px); border-color: rgba(255, 102, 0, 0.3); background: #111114; box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5); }
.card-hardware-icon { font-size: 3rem; color: var(--accent-orange); margin-bottom: 2rem; display: block; }
.card-hardware-title { font-size: 1.6rem; color: #fff; margin-bottom: 1.2rem; font-weight: 800; }
.card-desc { color: var(--text-muted); line-height: 1.7; font-size: 1.05rem; }

/* ══════════════════════════════════
   4. CONTACT SECTION (Premium Split)
   ══════════════════════════════════ */
.contact-v2-section { padding: 7.5rem 0; background: #000; border-top: 1px solid rgba(255, 255, 255, 0.03); }
.contact-split { display: flex; gap: 4rem; align-items: flex-start; }
.contact-info-side { flex: 0.7; }

.contact-quote-card {
    background: rgba(17, 17, 22, 0.4); border: 2px solid rgba(255, 102, 0, 0.15); 
    padding: 2.5rem; border-radius: 24px; margin-bottom: 2rem; position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3); backdrop-filter: blur(10px);
}
.contact-q-icon { font-size: 1.25rem; color: var(--accent-orange); margin-bottom: 0.8rem; }
.contact-q-text { font-size: 1rem; line-height: 1.4; color: #fff; font-weight: 500; margin-bottom: 1.2rem; }
.contact-q-author { display: block; margin-top: 2rem; }
.q-name { font-size: 1.2rem; font-weight: 800; color: #fff; display: block; margin-bottom: 0.2rem; }
.q-title { font-size: 0.85rem; color: var(--accent-orange); font-weight: 800; letter-spacing: 1px; text-transform: uppercase; display: block; }

.contact-methods-list { display: flex; flex-direction: column; gap: 1.5rem; }
.method-item-v2 {
    display: flex; align-items: center; gap: 1rem; padding: 0.75rem 1rem;
    background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.05);
    border-radius: 12px; transition: var(--transition);
}
.method-item-v2:hover { background: rgba(255,255,255,0.04); border-color: rgba(255,102,0,0.3); }
.m-icon {
    width: 45px; height: 45px; background: #111; display: flex; align-items: center; justify-content: center;
    border-radius: 10px; color: var(--accent-orange); font-size: 1.25rem; border: 1px solid rgba(255,255,255,0.05);
}
.m-icon.color-wa { color: #25d366; }
.m-label { font-size: 0.75rem; font-weight: 700; color: var(--text-muted); letter-spacing: 1px; margin-bottom: 0.3rem; display: block; }
.m-link { font-size: 1.15rem; color: #fff; font-weight: 700; }

/* Contact Form Side */
.contact-form-side { flex: 1.2; }
.form-card-v2 {
    background: rgba(15, 15, 18, 0.8); backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.06); padding: 4rem 3rem; border-radius: 32px;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6);
}
.form-header-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; margin-bottom: 1.5rem; }
.f-group { display: flex; flex-direction: column; gap: 0.6rem; width: 100%; }
.form-input-group { display: flex; flex-direction: column; gap: 0.6rem; margin-bottom: 1.5rem; }
.f-group label, .form-input-group label { font-size: 0.85rem; color: var(--text-muted); font-weight: 700; display: block; width: 100%; }
.f-group input, .form-input-group input, .form-input-group select, .form-input-group textarea {
    background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 1.2rem; border-radius: 12px; color: #fff; font-size: 1rem; width: 100%;
    outline: none; transition: var(--transition); font-family: inherit;
}
.f-group input:focus, .form-input-group input:focus, .form-input-group select:focus, .form-input-group textarea:focus {
    border-color: var(--accent-orange); background: rgba(255, 102, 0, 0.05); box-shadow: 0 0 15px rgba(255, 102, 0, 0.1);
}
.submit-btn-v2 {
    width: auto; min-width: 200px; margin-top: 2rem; padding: 1rem 2.5rem; font-size: 1.1rem; font-weight: 800;
    border-radius: 12px; background: var(--accent-orange); color: #fff; border: none; cursor: pointer;
    box-shadow: 0 10px 25px rgba(255, 102, 0, 0.3); transition: var(--transition);
    display: inline-flex;  justify-content: center; align-items: center; gap: 0.8rem;
}
.submit-btn-v2:hover { transform: translateY(-5px); box-shadow: 0 25px 50px rgba(255, 102, 0, 0.5); }
.form-footer-note { margin-top: 2rem; text-align: center; font-size: 0.85rem; color: var(--text-muted); }

/* ══════════════════════════════════
   5. SITE FOOTER RECONSTRUCTION
   ══════════════════════════════════ */
.site-footer { padding: 8rem 0 3rem; background: #000; border-top: 1px solid rgba(255, 255, 255, 0.05); }
.footer-grid-v2 { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 5rem; margin-bottom: 6rem; }
.footer-logo-wrap { display: flex; align-items: center; gap: 12px; margin-bottom: 2rem; }
.f-logo-icon { height: 45px; }
.f-logo-text { height: 22px; }
.footer-desc { color: var(--text-muted); line-height: 1.7; font-size: 1.05rem; max-width: 350px; }
.footer-title { color: #fff; font-size: 1rem; font-weight: 800; margin-bottom: 2rem; letter-spacing: 1.5px; }
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 1rem; }
.footer-links a { color: var(--text-muted); font-size: 1.05rem; transition: var(--transition); }
.footer-links a:hover { color: #fff; padding-inline-start: 8px; }

.footer-bottom { 
    margin-top: 6rem; padding-top: 3rem; border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex; justify-content: space-between; align-items: center;
}
.footer-copy-wrap p { color: var(--text-muted); font-size: 0.95rem; }
.built-by { opacity: 0.4; margin-inline-start: 1rem; }
.footer-social { display: flex; gap: 1.2rem; }
.social-circle {
    width: 50px; height: 50px; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--text-secondary); font-size: 1.3rem; transition: var(--transition);
}
.social-circle:hover { border-color: var(--accent-orange); color: var(--accent-orange); background: rgba(255, 102, 0, 0.05); transform: translateY(-5px); }

/* Global RTL Center Override */
[dir="rtl"] p { text-align: right; }
[dir="rtl"] h2, [dir="rtl"] h3 { text-align: center; }
[dir="rtl"] .showcase-header p { margin: 0 auto; text-align: center; } /* Fix subtitle alignment in RTL */
[dir="rtl"] .text-center, [dir="rtl"] .text-center p, [dir="rtl"] .text-center h2 { text-align: center; }
[dir="rtl"] .founder-card-inner, [dir="rtl"] .founder-card-inner p, [dir="rtl"] .founder-card-inner span { text-align: center; }
[dir="rtl"] .eco-card-v3 p, [dir="rtl"] .eco-card-v3 h3 { text-align: center; }

/* Floating WhatsApp Fix */
.floating-wa {
    position: fixed; bottom: 2rem; right: 2rem !important; left: auto !important; width: 65px; height: 65px;
    background: #25d366; color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 2.2rem; box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4); z-index: 9999;
}
.floating-wa:hover { transform: scale(1.15) rotate(10deg); }

/* ══════════════════════════════════
   7. RESPONSIVE ADAPTATIONS
   ══════════════════════════════════ */
@media (max-width: 1200px) {
    .contact-split { gap: 3rem; }
}

@media (max-width: 991px) {
    .contact-split { flex-direction: column; gap: 4rem; }
    .footer-grid-v2 { grid-template-columns: 1fr 1fr; gap: 3rem; }
    .section-title { font-size: clamp(1.4rem, 6vw, 1.8rem); } /* Match standardized size */
    .form-card-v2 select option { background: #111; color: #fff; } /* Dark theme for dropdown options */
    .form-card-v2 { padding: 3rem 2rem; }
    .eco-spoke { position: relative; width: 100%; left: auto; right: auto; margin-bottom: 2rem; }
    .eco-hub-container { height: auto; flex-direction: column; gap: 3rem; }
    .spoke-branch, .data-particle, .hub-rings { display: none; }
    
    /* Fix B-GATE showcase for mobile */
    .showcase-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
        text-align: center;
    }
    .showcase-title { font-size: 2.5rem; }
    .showcase-desc { font-size: 1rem; margin: 0 auto 2.5rem; }
    .main-gate-logo { width: 250px; }
}

@media (max-width: 768px) {
    section { padding: 4rem 0 !important; }
    .about-section, .services-section, .contact-v2-section, .eco-hub-section { padding: 4rem 0; }
    .grid-v2 { grid-template-columns: 1fr; gap: 1.5rem; }
    .footer-grid-v2 { grid-template-columns: 1fr; text-align: center; gap: 2.5rem; }
    .footer-logo-wrap { justify-content: center; }
    .footer-desc { margin: 0 auto 2rem; font-size: 0.95rem; }
    .footer-bottom { margin-top: 4rem; padding-top: 2rem; flex-direction: column; gap: 2.5rem; text-align: center; }
    .form-grid-v2 { grid-template-columns: 1fr; }
    .form-input-group.full-width, .form-header-row { grid-template-columns: 1fr; grid-column: auto; }
    .founder-card-inner { padding: 2.2rem 1.25rem; border-radius: 20px; }
    .physical-card.v2 { padding: 2.2rem 1.5rem; border-radius: 24px; }
    .contact-quote-card { padding: 1.5rem; border-radius: 16px; }
    .section-badge { font-size: 0.7rem; padding: 0.4rem 1rem; }
    .founder-quote { font-size: 1.05rem; margin-bottom: 1.5rem; }
    [lang="ar"] .founder-quote { font-size: 1.2rem; }
    .founder-sig-name { font-size: 1.2rem; }
    .founder-sig-title { font-size: 0.75rem; }
}

/* Scroll Animations */
.fade-in-up { opacity: 0; transform: translateY(30px); transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1); }
.fade-in-up.visible { opacity: 1; transform: translateY(0); }