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

:root {
    /* Glassmorphism 2026 Core Colors */
    --primary: #41abdd;
    --primary-light: #6bc2ec;
    --secondary: #263e79;
    --accent-orange: #f39c12;

    /* Immersive Dark Theme Base */
    --bg-base: #0a1122;
    --glass-bg: rgba(18, 28, 51, 0.65);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-highlight: rgba(255, 255, 255, 0.15);

    --text-primary: #ffffff;
    --text-secondary: #94a3b8;

    --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --shadow-glow: 0 0 20px rgba(65, 171, 221, 0.3);

    --transition-smooth: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);

    --font-primary: 'Inter', sans-serif;
    --font-heading: 'Outfit', sans-serif;
    --font-arabic: 'Cairo', sans-serif;
}

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

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

body {
    background-color: var(--bg-base);
    color: var(--text-primary);
    font-family: var(--font-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Dynamic Ambient Glows (Blobs) - PERFORMANCE OPTIMIZED */
.ambient-glows {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
    transform: translateZ(0);
    will-change: transform;
}

.glow-blob {
    position: absolute;
    border-radius: 50%;
    opacity: 0.5;
    animation: blobFloat 20s infinite alternate cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
    transform: translateZ(0);
}

.glow-1 {
    width: 60vw; height: 60vw;
    background: radial-gradient(50% 50% at 50% 50%, rgba(65, 171, 221, 0.6) 0%, rgba(65, 171, 221, 0) 100%);
    top: -20%; right: -10%;
}

.glow-2 {
    width: 50vw; height: 50vw;
    background: radial-gradient(50% 50% at 50% 50%, rgba(38, 62, 121, 0.7) 0%, rgba(38, 62, 121, 0) 100%);
    bottom: -10%; left: -20%;
    animation-delay: -5s;
}

.glow-3 {
    width: 40vw; height: 40vw;
    background: radial-gradient(50% 50% at 50% 50%, rgba(243, 156, 18, 0.3) 0%, rgba(243, 156, 18, 0) 100%);
    top: 40%; left: 30%;
    opacity: 0.3;
    animation-delay: -10s;
}

@keyframes blobFloat {
    0% { transform: translate(0, 0) scale(1) translateZ(0); }
    33% { transform: translate(5%, 5%) scale(1.05) translateZ(0); }
    66% { transform: translate(-5%, 2%) scale(0.95) translateZ(0); }
    100% { transform: translate(2%, -5%) scale(1) translateZ(0); }
}

/* Typography Fluid Scaling */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    font-weight: 700;
    line-height: 1.2;
}

h1 { font-size: clamp(3rem, 6vw, 5.5rem); margin-bottom: 1.5rem; letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 2rem; letter-spacing: -0.01em; }
h3 { font-size: 1.5rem; margin-bottom: 1rem; }
p { color: var(--text-secondary); margin-bottom: 1.5rem; }

.section-subtitle {
    display: inline-block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 1rem;
    padding: 6px 12px;
    border-radius: 4px;
    background: rgba(65, 171, 221, 0.1);
    border: 1px solid rgba(65, 171, 221, 0.2);
}

/* Utilities */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
    position: relative;
    z-index: 2;
}

.section {
    padding: 8rem 0;
    position: relative;
}

.text-center { text-align: center; }

/* Bento Grids */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.bento-col-4 { grid-column: span 4; }
.bento-col-6 { grid-column: span 6; }
.bento-col-8 { grid-column: span 8; }
.bento-col-12 { grid-column: span 12; }

/* Legacy Grids mapping to Bento */
.grid-4, .grid-3 {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}
.grid-4 > * { grid-column: span 3; }
.grid-3 > * { grid-column: span 4; }

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem;
    margin-top: 4rem;
}

/* Magnetic Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    transition: var(--transition-smooth);
    cursor: pointer;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    border: none;
    box-shadow: 0 10px 20px -5px rgba(65, 171, 221, 0.5);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    z-index: -1;
    transition: opacity 0.4s ease;
    opacity: 0;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 25px -5px rgba(65, 171, 221, 0.6);
}
.btn-primary:hover::before { opacity: 1; }

.btn-outline {
    background: rgba(18, 28, 51, 0.9);
    color: var(--text-primary);
    border: 1px solid var(--glass-highlight);
}

.btn-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--primary);
    transform: translateY(-3px);
}

/* Glassmorphism 2.0 Cards */
.glass-card {
    background: rgba(13, 22, 43, 0.93);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 3rem;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-glass);
    position: relative;
    overflow: hidden;
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 50%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05), transparent);
    transform: skewX(-20deg);
    transition: 0.7s;
}

.glass-card:hover {
    transform: translateY(-12px);
    border-color: var(--glass-highlight);
    box-shadow: var(--shadow-glass), var(--shadow-glow);
}

.glass-card:hover::before {
    left: 150%;
}

/* Floating Navbar */
.navbar {
    position: fixed;
    top: 2rem;
    left: 50%;
    transform: translateX(-50%) translate3d(0, 0, 0);
    width: 92%;
    max-width: 1400px;
    z-index: 1000;
    transition: var(--transition-smooth);
    background: rgba(10, 17, 34, 0.85);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    padding: 1rem 2rem;
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.5);
    will-change: top, background-color, width;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.navbar.scrolled {
    top: 1rem;
    width: 96%;
    background: rgba(10, 17, 34, 0.85);
    border-color: rgba(255,255,255,0.15);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 38px;
    filter: drop-shadow(0 0 8px rgba(255,255,255,0.2));
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition-smooth);
    position: relative;
    padding: 0.5rem 0;
}

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

.nav-links a:hover {
    color: var(--primary-light);
}

.nav-links a:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-align: center;
    padding: 6rem 0 8rem 0;
    background: radial-gradient(circle at center, rgba(10, 17, 40, 0.35) 0%, #0a1128 100%),
                url('/Master/img/glowing-map.png') center/cover no-repeat;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    z-index: 10;
    transition: var(--transition);
    opacity: 0.7;
}

.scroll-indicator:hover {
    opacity: 1;
    color: var(--primary);
}

.scroll-indicator .mouse {
    width: 28px;
    height: 46px;
    border: 2px solid var(--text-primary);
    border-radius: 15px;
    position: relative;
    display: flex;
    justify-content: center;
    transition: var(--transition);
}

.scroll-indicator:hover .mouse {
    border-color: var(--primary);
}

.scroll-indicator .wheel {
    width: 4px;
    height: 8px;
    background-color: var(--text-primary);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    animation: scrollWheel 1.8s infinite ease-in-out;
}

.scroll-indicator:hover .wheel {
    background-color: var(--primary);
}

@keyframes scrollWheel {
    0% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(8px); opacity: 0.5; }
    100% { transform: translateY(16px); opacity: 0; }
}

/* RTL support for scroll indicator */
html[dir="rtl"] .scroll-indicator {
    left: 50%;
    transform: translateX(-50%);
}

@media (max-width: 768px) {
    .scroll-indicator {
        /*position: relative;*/
        /*bottom: auto;*/
        left: auto;
        transform: none;
        margin: 3rem auto 0;
    }
    html[dir="rtl"] .scroll-indicator {
        left: auto;
        transform: none;
    }
}



.hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 3rem;
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

/* Service Cards - Immersive Image Overlay */
.service-img-card {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    min-height: 400px;
    display: flex;
    align-items: flex-end;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-glass);
    border: 1px solid var(--glass-border);
}

.service-img-card .card-image {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 1;
}

.service-img-card .card-image img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.service-img-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(10, 17, 34, 0.95) 0%, rgba(10, 17, 34, 0.4) 50%, transparent 100%);
    z-index: 2;
    transition: opacity 0.4s ease;
}

.service-img-card .card-content {
    position: relative;
    z-index: 3;
    padding: 2.5rem;
    width: 100%;
    transform: translateY(20px);
    transition: var(--transition-smooth);
}

.service-img-card:hover {
    transform: translateY(-12px);
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

.service-img-card:hover .card-image img {
    transform: scale(1.1);
}

.service-img-card:hover::after {
    opacity: 0.8;
}

.service-img-card:hover .card-content {
    transform: translateY(0);
}

.card-icon-overlay {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px; height: 50px;
    background: var(--primary);
    border-radius: 12px;
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 20px rgba(65, 171, 221, 0.4);
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-light);
    font-weight: 600;
    text-decoration: none;
    margin-top: 1rem;
    opacity: 0;
    transform: translateY(10px);
    transition: var(--transition-smooth);
}

.service-img-card:hover .service-link {
    opacity: 1;
    transform: translateY(0);
}

.service-link:hover { gap: 12px; }

/* Companies Bento Grid */
.company-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 3rem 2.5rem;
    background: rgba(13, 22, 43, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.company-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(65, 171, 221, 0.03) 0%, transparent 100%);
    z-index: 1;
    pointer-events: none;
}

.company-card > div {
    position: relative;
    z-index: 2;
}

.company-card .btn {
    position: relative;
    z-index: 2;
    margin-top: 2rem;
    width: 100%;
}

.company-card:hover {
    transform: translateY(-8px);
    background: rgba(13, 22, 43, 0.7);
    border-color: rgba(65, 171, 221, 0.35);
    box-shadow: 0 20px 40px rgba(65, 171, 221, 0.15);
}

.company-logo-wrapper {
    height: 70px;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.company-logo-wrapper.light-bg {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    padding: 10px 20px;
    display: inline-flex;
    transition: var(--transition-smooth);
}

.company-card:hover .company-logo-wrapper.light-bg {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(65, 171, 221, 0.4);
    box-shadow: 0 0 15px rgba(65, 171, 221, 0.15);
}

.company-card-logo {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.85;
    transition: var(--transition-smooth);
}

.company-card:hover .company-card-logo {
    opacity: 1;
}

.company-logo-placeholder {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.25rem;
}

.company-logo-placeholder i {
    font-size: 1.8rem;
    color: var(--primary);
    background: rgba(65, 171, 221, 0.1);
    padding: 12px;
    border-radius: 12px;
    box-shadow: 0 0 15px rgba(65, 171, 221, 0.15);
    transition: var(--transition-smooth);
}

.company-card:hover .company-logo-placeholder i {
    color: #fff;
    background: var(--primary);
    box-shadow: 0 0 20px var(--primary);
}

.company-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    transition: var(--transition);
}

.company-card:hover h3 {
    color: var(--primary-light);
}

.company-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.company-list {
    list-style: none;
    margin-bottom: 1rem;
}

.company-list li {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: var(--transition);
}

.company-card:hover .company-list li {
    color: var(--text-primary);
}

.company-list li::before {
    content: '';
    display: inline-block;
    width: 6px; height: 6px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary);
}

/* About Section */
.split-section {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

@media (max-width: 1024px) {
    .split-section {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}


.about-image {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
}

.about-image img {
    width: 100%;
    display: block;
    transition: transform 0.8s ease;
}

.about-image:hover img {
    transform: scale(1.05);
}

.stats-section {
    background: rgba(13, 22, 43, 0.93);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    padding: 6rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.stat-item h3 {
    font-size: clamp(3rem, 5vw, 4rem);
    background: linear-gradient(135deg, #fff, var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.stat-item p {
    color: var(--text-secondary);
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* Footer */
.footer {
    padding: 6rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .bento-col-4, .bento-col-6, .bento-col-8 { grid-column: span 6; }
    .grid-2 { grid-template-columns: 1fr; }
    .grid-4 > * { grid-column: span 6; }
    .grid-3 > * { grid-column: span 6; }
}

@media (max-width: 768px) {
    .bento-col-4, .bento-col-6, .bento-col-8, .bento-col-12 { grid-column: span 12; }
    .grid-4 > * { grid-column: span 12; }
    .grid-3 > * { grid-column: span 12; }
    .grid-4, .grid-3, .bento-grid { gap: 1.5rem; margin-top: 2rem; }

    /* Optimize cards layout on mobile */
    .company-card {
        padding: 2.2rem 1.5rem !important;
    }

    .service-img-card {
        min-height: 320px !important;
    }

    .service-img-card .card-content {
        transform: translateY(0) !important;
        padding: 1.8rem !important;
    }

    .service-link {
        opacity: 1 !important;
        transform: translateY(0) !important;
    }


    .mobile-menu-btn {
        display: block;
        background: none;
        border: none;
        color: var(--text-primary);
        font-size: 1.3rem;
        cursor: pointer;
        transition: var(--transition-smooth);
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: calc(100% + 12px);
        left: 0;
        width: 100%;
        background: rgba(10, 17, 34, 0.96);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 24px;
        padding: 2rem;
        gap: 1.2rem;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
        z-index: 999;
        text-align: center;
    }

    .nav-links.active {
        display: flex;
        animation: slideDown 0.3s ease-out forwards;
    }

    .nav-links a {
        font-size: 1.1rem;
        font-weight: 600;
        display: block;
        padding: 0.5rem 0;
        width: 100%;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .stats-grid, .footer-grid { grid-template-columns: 1fr; gap: 3rem; }

    .hero-btns {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
        width: 100%;
    }

    .hero-btns .btn {
        width: 100%;
        max-width: 280px;
    }

    h1 { font-size: clamp(2rem, 8vw, 3rem) !important; }
    h2 { font-size: clamp(1.8rem, 6vw, 2.4rem) !important; }
    .hero p { font-size: 1rem !important; }

    .section { padding: 5rem 0; }
    .navbar { width: 95%; top: 1rem; }
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* RTL Support Override */
html[dir="rtl"] {
    font-family: var(--font-arabic);
}

html[dir="rtl"] h1, html[dir="rtl"] h2, html[dir="rtl"] h3, html[dir="rtl"] h4, html[dir="rtl"] p, html[dir="rtl"] a, html[dir="rtl"] span, html[dir="rtl"] li, html[dir="rtl"] div {
    font-family: var(--font-arabic);
    letter-spacing: normal;
}

/* ==========================================
   Hybrid Light Theme (Post-Hero Sections)
   ========================================== */

:root {
    --accent: var(--secondary);
    --border-soft: rgba(15, 23, 42, 0.08);
}

/* Main Section Backgrounds */
.section {
    background: #ffffff !important;
}

/* Alternating Section Backgrounds for Visual Contrast */
#about, .stats-section {
    background: #f8fafc !important;
}

/* Headings in Light Sections */
.section h2,
.section h3,
.section h4,
.section h5,
.section.stats-section h3 {
    color: #0f172a !important;
}

/* Override text color in light sections */
.section p,
.section li,
.section span:not(.section-subtitle),
.section div:not(.service-img-card) {
    color: #475569;
}

/* Subtitles */
.section-subtitle {
    color: var(--primary) !important;
}

/* Feature Icons with Premium Gradients */
.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--secondary), var(--primary)) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    display: inline-block;
    filter: drop-shadow(0 4px 12px rgba(65, 171, 221, 0.15));
}

/* Glassmorphism Cards in Light Mode */
.section .glass-card {
    background: rgba(255, 255, 255, 0.7) !important;
    border: 1px solid rgba(15, 23, 42, 0.08) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03) !important;
    color: #475569 !important;
}

.section .glass-card h3,
.section .glass-card h4 {
    color: #0f172a !important;
}

.section .glass-card p {
    color: #64748b !important;
}

.section .glass-card:hover {
    background: #ffffff !important;
    border-color: rgba(65, 171, 221, 0.4) !important;
    box-shadow: 0 20px 40px rgba(65, 171, 221, 0.08) !important;
}

/* Company Bento Grid Refinements */
.company-card-logo {
    filter: brightness(0) opacity(0.65) !important;
}

.company-card:hover .company-card-logo {
    filter: none !important;
    opacity: 1 !important;
}

.company-logo-wrapper.light-bg {
    background: rgba(15, 23, 42, 0.04) !important;
    border: 1px solid rgba(15, 23, 42, 0.06) !important;
}

.company-card:hover .company-logo-wrapper.light-bg {
    background: #ffffff !important;
    border-color: rgba(65, 171, 221, 0.3) !important;
    box-shadow: 0 8px 24px rgba(65, 171, 221, 0.1) !important;
}

.company-logo-placeholder {
    color: #0f172a !important;
}

.company-logo-placeholder i {
    background: rgba(65, 171, 221, 0.08) !important;
    color: var(--primary) !important;
    box-shadow: none !important;
}

.company-card:hover .company-logo-placeholder i {
    color: #fff !important;
    background: var(--primary) !important;
    box-shadow: 0 0 15px var(--primary) !important;
}

.company-list li {
    color: #475569 !important;
}

.company-card:hover .company-list li {
    color: #0f172a !important;
}

/* Outlined Buttons in Light Mode */
.section .btn-outline {
    color: var(--secondary) !important;
    border-color: rgba(38, 62, 121, 0.3) !important;
}

.section .btn-outline:hover {
    background: var(--secondary) !important;
    color: #ffffff !important;
    border-color: var(--secondary) !important;
}

/* Service Card Overlays (Text inside remains white because of dark overlay) */
.service-img-card h3 {
    color: #ffffff !important;
}

.service-img-card p {
    color: rgba(255, 255, 255, 0.8) !important;
}

.service-link {
    color: var(--primary-light) !important;
}

.service-link:hover {
    color: #ffffff !important;
}

/* Stats / Counters in Light Mode */
.stats-section {
    border-top: 1px solid rgba(15, 23, 42, 0.06) !important;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06) !important;
}

.stat-item h3 {
    background: linear-gradient(135deg, var(--secondary), var(--primary)) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

.stat-item p {
    color: #475569 !important;
}

/* Contact Info & Forms in Light Mode */
.contact-info-card {
    background: rgba(255, 255, 255, 0.7) !important;
    border: 1px solid rgba(15, 23, 42, 0.08) !important;
}

.info-item i {
    background: rgba(65, 171, 221, 0.08) !important;
    color: var(--primary) !important;
}

.info-item h4 {
    color: #0f172a !important;
}

.info-item p {
    color: #475569 !important;
}

.form-group input,
.form-group textarea {
    background: rgba(255, 255, 255, 0.9) !important;
    border: 1px solid rgba(15, 23, 42, 0.12) !important;
    color: #0f172a !important;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #94a3b8 !important;
}

.form-group input:focus,
.form-group textarea:focus {
    background: #ffffff !important;
    border-color: var(--primary) !important;
    box-shadow: 0 0 12px rgba(65, 171, 221, 0.15) !important;
}

/* Dark Footer for premium contrast grounding */
.footer {
    background-color: #0a1122 !important;
    color: var(--text-secondary) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.footer h3,
.footer h4 {
    color: #ffffff !important;
}

.footer p,
.footer li,
.footer a {
    color: var(--text-secondary) !important;
}

.footer a:hover {
    color: var(--primary) !important;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
    color: var(--text-secondary) !important;
}

/* ==========================================
   Dark Theme Restorations for Companies (#companies)
   ========================================== */
#companies {
    background: #0a1122 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
}

#companies h2,
#companies h3,
#companies h4 {
    color: #ffffff !important;
}

#companies p {
    color: #94a3b8 !important;
}

/* Revert Company Cards to Dark Glass */
#companies .glass-card {
    background: rgba(13, 22, 43, 0.93) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37) !important;
    color: #94a3b8 !important;
}

#companies .glass-card:hover {
    background: rgba(18, 28, 51, 0.85) !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 0 25px rgba(65, 171, 221, 0.2) !important;
}

/* Revert Company Logo Badges in Dark Mode */
#companies .company-logo-wrapper.light-bg {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
}

#companies .company-card:hover .company-logo-wrapper.light-bg {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(65, 171, 221, 0.4) !important;
    box-shadow: 0 0 15px rgba(65, 171, 221, 0.15) !important;
}

#companies .company-card-logo {
    filter: brightness(0) invert(1) !important;
    opacity: 0.85 !important;
}

#companies .company-card:hover .company-card-logo {
    opacity: 1 !important;
    filter: brightness(0) invert(1) !important;
}

#companies .company-logo-placeholder {
    color: #ffffff !important;
}

#companies .company-logo-placeholder i {
    background: rgba(255, 255, 255, 0.05) !important;
    color: #ffffff !important;
    box-shadow: none !important;
}

#companies .company-card:hover .company-logo-placeholder i {
    background: var(--primary) !important;
    color: #ffffff !important;
    box-shadow: 0 0 15px var(--primary) !important;
}

/* Revert List text */
#companies .company-list li {
    color: #94a3b8 !important;
}

#companies .company-card:hover .company-list li {
    color: #ffffff !important;
}

/* Revert Outline Buttons in Companies to White/Blue */
#companies .btn-outline {
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
}

#companies .btn-outline:hover {
    background: var(--primary) !important;
    color: #ffffff !important;
    border-color: var(--primary) !important;
}

/* Language Portal Badges */
#companies .portal-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary-light) !important;
    background: rgba(65, 171, 221, 0.1) !important;
    padding: 5px 12px;
    border-radius: 50px;
    margin-bottom: 1.2rem;
    border: 1px solid rgba(65, 171, 221, 0.2);
    width: fit-content;
}

/* Contact Section & Form Styling (High Performance Dark Theme) */
#contact {
    background: #0a1122 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
    padding: 6rem 0;
}

#contact h2 {
    color: #ffffff !important;
}

#contact p {
    color: #94a3b8 !important;
}

#contact .section-subtitle {
    color: var(--primary-light) !important;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 0;
    background: #111827 !important; /* Solid dark color, no backdrop-filter for ultra-fast rendering */
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.contact-form-container {
    padding: 4rem;
}

.contact-form {
    margin-top: 2rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.form-group label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #94a3b8 !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Force dark colors with high specificity to override global !important rules */
#contact .form-group input,
#contact .form-group select,
#contact .form-group textarea {
    padding: 0.9rem 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 12px;
    font-size: 0.95rem;
    background: #1f2937 !important; /* Solid dark background */
    color: #ffffff !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    font-family: inherit;
}

#contact .form-group select option {
    background: #111827;
    color: #ffffff;
}

#contact .form-group input::placeholder,
#contact .form-group textarea::placeholder {
    color: #64748b !important;
}

#contact .form-group input:focus,
#contact .form-group select:focus,
#contact .form-group textarea:focus {
    border-color: var(--primary) !important;
    outline: none;
    background: #1f2937 !important;
    box-shadow: 0 0 0 3px rgba(65, 171, 221, 0.25) !important;
}

.contact-image-container {
    position: relative;
    height: 100%;
    min-height: 500px;
    overflow: hidden;
}

.contact-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.contact-image-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(10, 17, 34, 0.85) 0%, rgba(10, 17, 34, 0.5) 100%);
    display: flex;
    align-items: flex-end;
    padding: 4rem;
}

.contact-info-card {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    width: 100%;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1.2rem;
}

.info-item i {
    font-size: 1.2rem;
    color: var(--primary) !important;
    background: rgba(65, 171, 221, 0.15) !important;
    border: 1px solid rgba(65, 171, 221, 0.3);
    padding: 12px;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-item h5 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
    color: #ffffff !important;
}

.info-item p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8) !important;
    margin: 0 !important;
    line-height: 1.5;
}

@media (max-width: 991px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    .contact-image-container {
        min-height: 400px;
    }
    .contact-form-container {
        padding: 3rem;
    }
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .contact-form-container {
        padding: 2rem;
    }
    .contact-image-overlay {
        padding: 2.5rem;
    }
}
