:root {
    /* Color Palette - S-RCS System Match */
    --bg-dark: #1a1d21;      /* System Background */
    --bg-card: #1e2124;      /* System Card Bg */
    --text-primary: #e9ecef; /* System Text */
    --text-secondary: #adb5bd;
    --primary: #3b82f6;      /* System Primary Blue */
    --secondary: #2563eb;    /* System Primary Hover */
    --accent: #22c55e;       /* System Success/Accent */
    --success: #22c55e;
    --danger: #ef4444;       /* System Danger */
    
    /* Gradients */
    --grad-primary: linear-gradient(135deg, var(--primary), var(--secondary));
    --grad-glow: linear-gradient(180deg, rgba(59, 130, 246, 0.15), rgba(59, 130, 246, 0));

    /* Effects */
    --glass: rgba(30, 33, 36, 0.8); /* Darker glass for system match */
    --border: 1px solid #2d3237;    /* System Border */
    --shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

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

h1 { font-size: 3.5rem; letter-spacing: -0.02em; }
h2 { font-size: 2.5rem; margin-bottom: 1rem; }
p { color: var(--text-secondary); margin-bottom: 1.5rem; }

a { text-decoration: none; color: inherit; transition: 0.3s; }

/* Layout Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    overflow-x: hidden;
}

.section {
    padding: 80px 0;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--glass);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(14, 165, 233, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(15, 23, 42, 0.9);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    border-bottom: 1px solid rgba(14, 165, 233, 0.2);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--grad-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    gap: 40px;
    background: rgba(255, 255, 255, 0.03);
    padding: 8px 30px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
}

.nav-links a {
    position: relative;
    font-weight: 500;
    color: var(--text-secondary);
    transition: 0.3s;
    font-size: 0.95rem;
}

.nav-links a:hover, .nav-links a.active-link {
    color: white;
    text-shadow: 0 0 10px rgba(14, 165, 233, 0.5);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 50%;
    background: var(--grad-primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
    box-shadow: 0 0 10px var(--primary);
}

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

.btn {
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: var(--grad-primary);
    color: white;
    box-shadow: 0 4px 14px rgba(14, 165, 233, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.6);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--text-secondary);
    color: var(--text-primary);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    padding-top: 100px; /* Prevent header overlap */
    display: flex;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 1000px;
    height: 1000px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, rgba(15, 23, 42, 0) 70%);
    z-index: -1;
}

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

.hero-badge {
    background: rgba(14, 165, 233, 0.1);
    color: var(--accent);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
    display: inline-block;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 50px;
    flex-wrap: wrap;
}

.stat-item h3 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 5px;
}

/* Feature Cards */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.feature-card {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 16px;
    border: var(--border);
    transition: 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

.icon-box {
    width: 50px;
    height: 50px;
    background: rgba(14, 165, 233, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.5rem;
    margin-bottom: 20px;
}

/* Feature Number Badge */
.feature-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: white;
    font-size: 1.2rem;
    font-weight: 800;
    border-radius: 12px;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

/* Feature Image Box */
.feature-image-box {
    flex: 1;
    min-width: 300px;
    max-width: 100%;
    background: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    border: 2px solid var(--border);
    transition: all 0.3s ease;
}

.feature-image-box:hover {
    border-color: var(--primary);
    box-shadow: 0 10px 40px rgba(59, 130, 246, 0.2);
    transform: translateY(-5px);
}

.feature-img {
    width: 100%;
    height: auto;
    display: block;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.feature-img:hover {
    transform: scale(1.02);
}

/* Sticky Navigation for Features */
.sticky-nav {
    position: sticky;
    top: 70px; /* Below navbar */
    z-index: 100;
    background: var(--glass);
    backdrop-filter: blur(12px);
    padding: 15px 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 30px;
}

/* Scroll offset for anchor links */
.feature-row {
    scroll-margin-top: 180px; /* navbar (70px) + sticky nav (~110px) */
}

.nav-pill {
    display: inline-block;
    padding: 8px 16px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 20px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.nav-pill:hover {
    color: var(--primary);
    border-color: var(--primary);
    background: rgba(59, 130, 246, 0.1);
}

.nav-pill-new {
    background: rgba(34, 197, 94, 0.1);
    border-color: var(--success);
    color: var(--success);
}

.nav-pill-new:hover {
    background: rgba(34, 197, 94, 0.2);
    color: var(--success);
    border-color: var(--success);
}

.nav-pill-active {
    color: white !important;
    background: var(--primary) !important;
    border-color: var(--primary) !important;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

/* Footer */
footer {
    position: relative;
    border-top: 1px solid rgba(14, 165, 233, 0.1);
    padding: 80px 0 30px;
    margin-top: 100px;
    background: linear-gradient(180deg, var(--bg-dark) 0%, #0b1120 100%);
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: 0.5;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-content h4 {
    margin-bottom: 25px;
    font-size: 1.1rem;
    color: white;
    letter-spacing: 0.5px;
}

.footer-content ul li {
    margin-bottom: 15px;
}

.footer-content ul li a {
    color: var(--text-secondary);
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-content ul li a:hover {
    color: var(--primary);
    transform: translateX(5px);
    text-shadow: 0 0 10px rgba(14, 165, 233, 0.3);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Mobile Responsive */
/* Mobile Responsive */
@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    .nav-links { display: none; }
    .desktop-only { display: none !important; } /* Hide desktop buttons */
    
    .hamburger { 
        display: block !important; 
        background: none; 
        border: none; 
        color: white; 
        font-size: 1.5rem; 
        cursor: pointer; 
        margin-left: 10px;
    }

    .mobile-menu {
        position: fixed;
        top: 70px; /* Below navbar */
        left: 0;
        width: 100%;
        background: rgba(15, 23, 42, 0.98);
        backdrop-filter: blur(10px);
        padding: 20px;
        flex-direction: column;
        gap: 15px;
        border-bottom: 1px solid var(--border);
        display: none; /* Hidden by default */
        animation: slideDown 0.3s ease-out;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr); /* 2 Columns to reduce height */
        text-align: left; 
        gap: 30px; 
    }

    /* Logo section spans full width */
    .footer-content > div:first-child {
        grid-column: span 2;
        text-align: center;
    }

    /* Center logo image specifically */
    .footer-content > div:first-child h4 {
        justify-content: center;
    }

    /* Connect section (last child) spans full width and centers */
    .footer-content > div:last-child {
        grid-column: span 2;
        text-align: center;
    }

    .mobile-menu.active {
        display: flex;
    }

    .mobile-menu a {
        font-size: 1.1rem;
        padding: 10px;
        color: var(--text-primary);
        border-radius: 8px;
    }

    .mobile-menu a:hover {
        background: rgba(14, 165, 233, 0.1);
        color: var(--primary);
    }

    .hero-stats { flex-direction: column; gap: 20px; }
    
    /* Feature Rows Responsive */
    .feature-row {
        flex-direction: column !important;
        gap: 30px !important;
    }
    
    .feature-image-box {
        min-width: 100% !important;
        width: 100%;
    }

    /* Prevent grid blowout on small screens */
    .features-grid {
        grid-template-columns: 1fr;
    }
}

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

/* Default state for hamburger */
.hamburger { display: none; }
.mobile-menu { display: none; }

/* Documentation Layout */
.docs-layout {
    display: flex;
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 100px; /* Offset for fixed navbar */
    min-height: 100vh;
}

.docs-sidebar {
    width: 300px;
    position: fixed;
    height: calc(100vh - 100px);
    overflow-y: auto;
    padding: 20px;
    border-right: var(--border);
    background: var(--bg-dark); /* Ensure background covers content behind it */
}

.docs-sidebar h4 {
    color: var(--primary);
    margin: 20px 0 10px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.docs-sidebar ul {
    list-style: none;
}

.docs-sidebar ul li a {
    display: block;
    padding: 8px 12px;
    color: var(--text-secondary);
    border-radius: 6px;
    font-size: 0.95rem;
}

.docs-sidebar ul li a:hover,
.docs-sidebar ul li a.active {
    background: rgba(14, 165, 233, 0.1);
    color: var(--primary);
}

.docs-content {
    margin-left: 300px; /* Width of sidebar */
    flex: 1;
    padding: 20px 60px;
    max-width: 900px;
}

/* Docs Typograhy */
.docs-content h1 { font-size: 3rem; margin-bottom: 20px; }
.docs-content h2 { margin-top: 40px; border-bottom: var(--border); padding-bottom: 10px; }
.docs-content h3 { margin-top: 30px; font-size: 1.5rem; color: var(--text-primary); }
.docs-content p, .docs-content li { color: var(--text-secondary); margin-bottom: 15px; font-size: 1.1rem; }
.docs-content code { background: #333; padding: 2px 6px; border-radius: 4px; font-family: monospace; color: #fab387; }
.docs-content pre { background: #1e1e1e; padding: 20px; border-radius: 8px; overflow-x: auto; margin: 20px 0; border: 1px solid #333; }
.docs-content pre code { background: none; padding: 0; color: #d4d4d4; }

/* Responsive Docs */
@media (max-width: 900px) {
    .docs-layout {
        flex-direction: column;
    }

    /* Off-Canvas Sidebar */
    .docs-sidebar {
        position: fixed;
        top: 70px; /* Below navbar */
        left: 0;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--bg-dark);
        z-index: 999;
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
        border-right: none;
        padding-bottom: 50px; /* Space for footer/scroll */
    }

    .docs-sidebar.active {
        transform: translateX(0);
        box-shadow: 0 0 50px rgba(0,0,0,0.5);
    }

    .docs-sidebar h4 {
        color: white;
        padding-left: 10px;
        border-bottom: 1px solid var(--border);
        padding-bottom: 10px;
    }

    .docs-sidebar ul li a {
        padding: 15px; /* Larger touch targets */
        font-size: 1.1rem;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }

    .docs-content {
        margin-left: 0;
        width: 100%;
        padding: 20px;
    }

    .docs-menu-toggle {
        display: flex;
        align-items: center;
        gap: 10px;
        width: 100%;
        padding: 15px;
        background: var(--bg-card);
        border: 1px solid var(--border);
        color: var(--primary);
        font-weight: 600;
        border-radius: 8px;
        margin-bottom: 20px;
        cursor: pointer;
        font-size: 1rem;
    }

    .docs-footer-container footer {
        margin-left: 0 !important;
        width: 100% !important;
    }
}

@media (min-width: 901px) {
    .docs-menu-toggle {
        display: none;
    }
}

/* Lightbox */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
}

.lightbox-overlay.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    width: 1200px;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    padding: 20px;
    gap: 40px;
    padding: 20px;
}

/* Dynamic Gallery Styles */
.gallery-img {
    height: 400px;
    width: auto;
    border-radius: 12px;
    border: 1px solid var(--border);
    scroll-snap-align: center;
    cursor: pointer;
    transition: transform 0.3s ease;
    flex-shrink: 0; /* Prevent squishing */
}

.gallery-img:hover {
    transform: scale(1.02);
}

@media (max-width: 768px) {
    .gallery-img {
        height: auto; /* Allow height to adjust */
        width: 85vw;  /* fit mostly on screen with peek */
        max-height: 300px; /* specific cap for mobile */
        object-fit: cover;
        object-position: top;
    }
}

.lightbox-image-container {
    flex: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.lightbox-image {
    max-width: 100%;
    max-height: 100%;
    border-radius: 12px;
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
    object-fit: contain;
}

.lightbox-text {
    flex: 1;
    color: var(--text-primary);
    background: rgba(30, 41, 59, 0.8);
    padding: 30px;
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.1);
    max-height: 100%;
    overflow-y: auto;
}

/* Comparison Table Sticky First Column */
@media (max-width: 768px) {
    th:first-child, td:first-child {
        position: sticky;
        left: 0;
        z-index: 10;
        background: var(--bg-card); /* Match table bg */
        border-right: 1px solid var(--border);
        box-shadow: 2px 0 5px rgba(0,0,0,0.1); /* Shadow to show depth */
    }

    th:first-child {
        z-index: 20; /* Header stays on top of body cells */
        background: rgba(30, 41, 59, 0.95); /* Slightly darker/frosted for header */
    }
}

.lightbox-text h2 {
    color: var(--primary);
    margin-bottom: 20px;
    font-size: 2rem;
}

.lightbox-text p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.7;
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 30px;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    transition: 0.3s;
    z-index: 2001;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.lightbox-close:hover {
    background: var(--danger);
    transform: rotate(90deg);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    padding: 20px;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
    font-size: 1.5rem;
    z-index: 2001;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.lightbox-nav:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev { left: 40px; }
.lightbox-next { right: 40px; }

/* Responsive Lightbox */
@media (max-width: 1024px) {
    .lightbox-content {
        flex-direction: column;
        height: 90vh;
        gap: 20px;
    }

    .lightbox-image-container {
        flex: 1;
        width: 100%;
    }

    .lightbox-text {
        width: 100%;
        padding: 20px;
        flex: 0 0 auto;
        max-height: 40%;
    }

    .lightbox-text h2 { font-size: 1.5rem; margin-bottom: 10px; }
    .lightbox-text p { font-size: 1rem; margin-bottom: 0; }
    
    .lightbox-prev { left: 10px; padding: 10px; }
    .lightbox-next { right: 10px; padding: 10px; }
    .lightbox-close { top: 10px; right: 10px; width: 40px; height: 40px; font-size: 1.5rem; }
}

.feature-row img {
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-row img:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Documentation SPA Styles */
.doc-section {
    display: none; /* Hidden by default */
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    animation: fadeIn 0.4s ease-out;
}

.doc-section.active {
    display: block; /* Show active */
    opacity: 1;
}

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

.nav-buttons-container {
    display: flex;
    justify-content: space-between;
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid rgba(148, 163, 184, 0.1);
}

.btn-nav {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: var(--bg-card);
    border: 1px solid rgba(148, 163, 184, 0.1);
    border-radius: 8px;
    color: var(--text-secondary);
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-nav:hover {
    background: var(--glass);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

.btn-nav.next {
    margin-left: auto; /* Push to right if alone */
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.1), rgba(99, 102, 241, 0.1));
    border: 1px solid rgba(14, 165, 233, 0.3);
    color: var(--text-primary);
}

.btn-nav.next:hover {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.2), rgba(99, 102, 241, 0.2));
    box-shadow: 0 0 15px rgba(14, 165, 233, 0.2);
}

aside.docs-sidebar li a.active {
    color: var(--primary);
    border-left-color: var(--primary);
    background: linear-gradient(90deg, rgba(14, 165, 233, 0.1), transparent);
    padding-left: 15px; /* Indent active */
}

/* Accordion (Troubleshooting) */
.accordion details {
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid rgba(148, 163, 184, 0.1);
    border-radius: 12px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.accordion details:hover {
    border-color: rgba(14, 165, 233, 0.3);
    background: rgba(30, 41, 59, 0.6);
}

.accordion details[open] {
    background: rgba(15, 23, 42, 0.8);
    border-color: var(--primary);
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.accordion summary {
    padding: 20px;
    cursor: pointer;
    font-weight: 600;
    list-style: none; /* Hide default triangle */
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-primary);
    font-size: 1.05rem;
}

.accordion summary::-webkit-details-marker {
    display: none;
}

.accordion summary::after {
    content: '\f078'; /* FontAwesome Chevron Down */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    transition: transform 0.3s ease;
    color: var(--primary);
    font-size: 0.9rem;
}

.accordion details[open] summary::after {
    transform: rotate(180deg);
}

.accordion-content {
    padding: 0 20px 20px;
    color: var(--text-secondary);
    line-height: 1.6;
    animation: fadeIn 0.3s ease-out;
}

.accordion-content code {
    background: rgba(0,0,0,0.3);
    padding: 2px 6px;
    border-radius: 4px;
    color: var(--accent);
    font-family: monospace;
}
/* Language Cards */
.lang-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 20px 30px;
    border-radius: 12px;
    text-align: center;
    font-weight: 600;
    transition: 0.3s;
    cursor: default;
    min-width: 140px;
}

.lang-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 16px;
    border: 1px solid var(--border);
    transition: 0.3s;
    text-align: left;
}

.service-card:hover {
    border-color: var(--success);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px -10px rgba(34, 197, 94, 0.3);
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--text-primary);
}

/* FAQ Items */
.faq-item {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: rgba(14, 165, 233, 0.4);
}

.faq-item[open] {
    border-color: var(--primary);
    background: rgba(15, 23, 42, 0.8);
}

.faq-item summary {
    padding: 20px 25px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--text-primary);
    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: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--primary);
    transition: transform 0.3s ease;
}

.faq-item[open] summary::after {
    transform: rotate(180deg);
}

.faq-item .accordion-content {
    padding: 0 25px 25px;
    line-height: 1.7;
}

.faq-item .accordion-content a {
    display: inline-block;
    margin-top: 10px;
    font-weight: 500;
}

/* Language Switcher */
.lang-dropdown { position: relative; margin-right: 15px; }
.lang-btn { background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); color: white; padding: 8px 12px; border-radius: 8px; cursor: pointer; display: flex; align-items: center; gap: 8px; transition: all 0.3s ease; }
.lang-btn:hover { background: rgba(255,255,255,0.2); }
.lang-menu { display: none; position: absolute; top: 100%; right: 0; background: #1e293b; border: 1px solid rgba(255,255,255,0.1); border-radius: 8px; padding: 8px; min-width: 150px; box-shadow: 0 10px 30px rgba(0,0,0,0.5); z-index: 1000; }
.lang-dropdown:hover .lang-menu { display: block; }
.lang-menu a { display: block; padding: 8px 12px; color: #cbd5e1; text-decoration: none; border-radius: 4px; transition: all 0.2s; }
.lang-menu a:hover { background: rgba(59, 130, 246, 0.2); color: white; }

/* Fix Helper for Dropdowns - Override global container hidden overflow */
.navbar, .navbar .nav-container, .navbar .container {
    overflow: visible !important;
}

.lang-menu {
    z-index: 2000 !important; /* Ensure it's above everything */
    margin-top: 5px; /* Slight gap */
}

/* Hover bridge to prevent closing clearly */
.lang-dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 10px; /* Bridge gap */
    background: transparent;
}
