/* Define the Navbar Height Variable */
        :root {
            --navbar-height: 90px;
            --primary-blue-nav: #1e3a8a;
            --primary-blue-deep: #162C7A;
            --accent-gold: #FFD700;
            --mid-gray: #EEEEEE;
            --text-dark: #333;
            --step-number-size: 45px;
        }

        *, *::before, *::after {
            box-sizing: border-box;
        }
        /* --- LOADING LINE ANIMATION --- */
@keyframes loadingLine {
    0% {
        transform: scaleX(0);
        opacity: 0.3;
    }
    50% {
        transform: scaleX(1);
        opacity: 1;
    }
    100% {
        transform: scaleX(0);
        opacity: 0.3;
    }
}

.loading-line {
    width: 200px;
    height: 4px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--accent-gold) 50%, 
        transparent 100%);
    border-radius: 2px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
    animation: loadingLine 1.5s ease-in-out infinite;
}

.loading-line::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.8) 50%, 
        transparent 100%);
    animation: loadingLine 1.5s ease-in-out infinite 0.75s;
}

/* Loading overlay styles */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
}

.loading-overlay.active {
    opacity: 1;
    visibility: visible;
}

.loading-text {
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
}


        /* Base Styles & Typography */
        body {
            font-family: 'Inter', sans-serif;
            margin: 0;
            padding: 0;
            color: var(--text-dark);
            overflow-x: hidden;
        }

        .container {
            width: 90%;
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 15px;
        }

        /* ------------------------------------------- */
        /* Fixed Navbar Content - DEFAULT (Transparent) */
        /* ------------------------------------------- */
        #main-navbar {
            background-color: transparent; /* Default transparent background */
            padding: 25px 0;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            z-index: 1000;
            box-shadow: none; /* Default no shadow */
            transition: background-color 0.3s ease, box-shadow 0.3s ease; /* Add transition */
        }

        /* SCROLLED Navbar State */
        #main-navbar.scrolled {
            background-color: var(--primary-blue-nav); /* Solid color on scroll */
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4); /* Shadow on scroll */
        }

        .nav-content {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .left-nav-group {
            display: flex;
            align-items: center;
            gap: 15px;
        }

        /* Logo Text - Default White when navbar is transparent */
        .logo-text {
            font-size: 2.2em;
            color: white; /* White color when transparent */
            font-weight: bold;
            transition: font-size 0.3s, color 0.3s; /* Added color transition */
            white-space: nowrap;
        }

        /* Logo Text - Scrolled Gold */
        #main-navbar.scrolled .logo-text {
            color: var(--accent-gold); /* Gold color on scroll */
        }

        /* Back Arrow - Always visible */
        .header-back-arrow {
            color: white;
            font-size: 1.8em;
            text-decoration: none;
            transition: transform 0.2s ease-in-out, color 0.2s;
            display: flex;
            align-items: center;
            width: auto !important;
            margin-right: 15px !important;
            opacity: 1;
            visibility: visible;
        }

        /* Back Arrow - Gold when navbar is scrolled */
        #main-navbar.scrolled .header-back-arrow {
            color: var(--accent-gold);
        }

        .header-back-arrow:hover {
            transform: translateX(-3px);
            color: var(--accent-gold);
        }

        .right-nav-group {
            display: flex;
            align-items: center;
            gap: 20px;
        }

        #nav-buttons {
            max-width: 0;
            opacity: 0;
            overflow: hidden;
            display: flex;
            gap: 15px;
            align-items: center;
            transition: max-width 0.5s ease-out, opacity 0.4s ease-out;
        }
        .nav-buttons-visible #nav-buttons {
            max-width: 300px;
            opacity: 1;
        }
        .nav-btn-create, .nav-btn-login {
            text-decoration: none;
            font-size: 0.9em;
            padding: 8px 15px;
            border-radius: 6px;
            font-weight: bold;
            white-space: nowrap;
            transition: background-color 0.2s, color 0.2s, border-color 0.2s;
        }
        .nav-btn-create { background-color: var(--accent-gold); color: var(--primary-blue-deep); }

        /* Login Button - White background with blue text */
        .nav-btn-login { 
            background-color: white; 
            color: var(--primary-blue-deep); 
            border: 1px solid white; 
        }

        /* Login Button - Scrolled State (Better contrast against solid blue) */
        #main-navbar.scrolled .nav-btn-login {
            border-color: var(--accent-gold);
            color: var(--primary-blue-deep);
            background-color: white;
        }

        .nav-btn-login:hover { 
            background-color: var(--accent-gold); 
            color: var(--primary-blue-deep); 
        }
        #main-navbar.scrolled .nav-btn-login:hover {
            background-color: var(--accent-gold);
            color: var(--primary-blue-deep);
        }

        .nav-btn-login i, .nav-btn-create i { margin-right: 5px; }

        /* Translate Button - White when navbar is transparent */
        .translate-btn {
            background: none; 
            border: none; 
            color: white; /* White color when transparent */
            font-size: 1.2em; 
            cursor: pointer;
            padding: 5px 0; 
            transition: color 0.2s; 
            text-decoration: none; 
            font-weight: bold;
            display: flex; 
            align-items: center; 
            gap: 5px;
            /* Added underline when navbar is transparent */
            border-bottom: 2px solid white;
        }

        /* Translate Button - White when navbar is scrolled */
        #main-navbar.scrolled .translate-btn {
            color: white;
            /* Remove underline when navbar is scrolled */
            border-bottom: none;
        }

        .translate-btn:hover { color: var(--accent-gold); }

        /* Animation */
        .slide-in-element { opacity: 0; transform: translateX(-50px); transition: opacity 1s ease-out, transform 1s ease-out; }
        .slide-in-right { transform: translateX(50px); }
        .is-visible { opacity: 1; transform: translateX(0); }

        /* Hero Section - Set to 100vh height */
        #hero-enterprise {
            background-color: var(--primary-blue-nav);
            background-size: cover;
            background-position: center center;
            background-repeat: no-repeat;
            min-height: 100vh; 
            display: flex;
            align-items: flex-start; 
            justify-content: flex-start; 
            text-align: left; 
            padding: 0;
            position: relative;
            overflow: hidden;
        }

        /* Subtle Dark Overlay for Text Readability */
        #hero-enterprise::before {
            content: '';
            position: absolute;
            top: 0;
            right: 0;
            bottom: 0;
            left: 0;
            background: rgba(0, 0, 0, 0.3);
            z-index: 1;
        }

        /* Ensure content is above the overlay and accounts for fixed navbar height. */
        #hero-enterprise .container {
            z-index: 2;
            position: relative;
            /* **MODIFICATION 1: Increased padding-top to bring content down for desktop/tablets (above 600px)** */
            padding-top: calc(var(--navbar-height) + 120px); 
            padding-bottom: 50px;
            width: 100%;
        }

        #hero-enterprise h1 {
            font-size: 3em;
            color: white;
            margin-bottom: 15px;
        }
        #hero-enterprise p {
            font-size: 1.4em;
            color: white;
            margin-bottom: 30px;
            padding: 15px; 
            border-radius: 8px; 
            max-width: 800px; 
        }

        /* Hero CTA Buttons */
        .cta-group {
            display: flex;
            justify-content: flex-start; 
            gap: 20px;
            flex-wrap: wrap;
            padding-bottom:20px;
        }
        .btn-primary, .btn-secondary {
            padding: 15px 35px; border-radius: 8px; font-weight: bold;
            text-decoration: none; font-size: 1.1em;
            white-space: nowrap;
        }
        .btn-primary {
            background-color: var(--accent-gold); color: var(--primary-blue-deep);
            box-shadow: 0 4px 10px rgba(255, 215, 0, 0.4); transition: background-color 0.3s;
        }
        .btn-secondary {
            background-color: var(--primary-blue-deep);; color: white; border: none;
            transition: background-color 0.3s, color 0.3s;
        }
        .btn-primary:hover { background-color: #FFC700; }
        .btn-secondary:hover { background-color: white; color: var(--primary-blue-deep); }

        /* ------------------------------------------- */
        /* Animated Dots Background for How It Works */
        /* ------------------------------------------- */

        /* Animation Keyframes for Dot Movement */
        @keyframes moveDots {
            from { background-position: 0 0; }
            to { background-position: 400px 400px; } /* Move diagonally */
        }

        /* How It Works Section Container */
        #how-it-works {
            background-color: white;
            padding: 60px 0;
            position: relative;
            overflow: hidden;
        }
        #how-it-works h2 {
            text-align: center; color: var(--primary-blue-deep); margin-bottom: 40px;
            font-size: 2.2em; font-weight: normal;
        }

        /* Pseudo-element for Animated Dots */
        #how-it-works::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 0;
            opacity: 0.1;

            background-image:
                radial-gradient(circle, var(--primary-blue-deep) 4px, transparent 4px),
                radial-gradient(circle, var(--accent-gold) 2px, transparent 2px);
            background-size: 80px 80px, 80px 80px;
            background-position: 0 0, 40px 40px;

            animation: moveDots 60s linear infinite;
        }

        /* Ensure all content within #how-it-works is above the animated background */
        #how-it-works .container {
            position: relative;
            z-index: 1;
        }

        .step-container {
            display: flex;
            flex-direction: column;
            align-items: center;
            position: relative;
            padding-top: 10px;
        }

        /* Timeline line (Desktop/Tablet) */
        .step-container::before {
            content: '';
            position: absolute; top: 0; left: 50%; width: 2px; height: 100%;
            background: #ccc; transform: translateX(-50%); z-index: 0;
        }

        .step {
            width: 100%;
            max-width: 600px;
            padding: 15px 20px;
            position: relative;
            margin-bottom: 20px;
            background: white;
            z-index: 1;
        }

        /* Step Number Styling */
        .step-number {
            background-color: var(--primary-blue-deep); color: var(--accent-gold);
            border: 3px solid var(--accent-gold); border-radius: 50%;
            width: var(--step-number-size);
            height: var(--step-number-size);
            line-height: calc(var(--step-number-size) - 6px);
            font-weight: bold;
            font-size: 1.3em;
            display: inline-flex; justify-content: center;
            align-items: center;
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            z-index: 2;
        }

        /* Positioning and Content Alignment (Desktop) */
        /* ODD STEPS (LEFT SIDE) */
        .step:nth-child(odd) {
            align-self: flex-start;
            text-align: right;
            padding-right: 40px;

        }
        .step:nth-child(odd) .step-number {
            right: calc(-1 * var(--step-number-size) / 2);
            left: auto;
        }
        .step:nth-child(odd) h4, .step:nth-child(odd) p {
            text-align: right;
            margin-left: 0;
            margin-right: calc(var(--step-number-size) / 2 + 10px);
        }

        /* EVEN STEPS (RIGHT SIDE) */
        .step:nth-child(even) {
            align-self: flex-end;
            text-align: left;
            padding-left: 40px;
        }
        .step:nth-child(even) .step-number {
            left: calc(-1 * var(--step-number-size) / 2);
            right: auto;
        }
        .step:nth-child(even) h4, .step:nth-child(even) p {
            text-align: left;
            margin-right: 0;
            margin-left: calc(var(--step-number-size) / 2 + 10px);
        }

        .step h4, .step p {
            color: var(--primary-blue-deep);
            margin-top: 5px; margin-bottom: 5px;
        }

        /* Trust & Final CTA Section */
        #trust-and-cta { padding: 80px 0; text-align: center; background-color: var(--mid-gray); }
        #trust-and-cta h3 { color: var(--primary-blue-deep); margin-bottom: 20px; font-size: 1.5em;}
        #trust-and-cta h2 { color: var(--primary-blue-deep); margin-bottom: 60px; font-size: 2em;}

        .network-logos {
            display: flex; justify-content: center; gap: 40px; margin-bottom: 60px;
            flex-wrap: wrap; font-weight: bold; color: var(--primary-blue-deep);
        }

        .network-placeholder {
            border: 2px solid var(--primary-blue-deep);
            padding: 10px 20px;
            border-radius: 6px;
            font-size: 1.2em;
        }

        /* Styling the final button */
        .btn-final-cta {
            background: linear-gradient(135deg, var(--accent-gold), #FFC700);
            color: var(--primary-blue-deep); padding: 20px 50px; border-radius: 12px;
            font-weight: bold; text-decoration: none; font-size: 1.3em;
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2), 0 0 0 4px rgba(255, 215, 0, 0.5);
            transition: transform 0.3s, box-shadow 0.3s; text-transform: uppercase;
        }
        .btn-final-cta:hover {
            transform: translateY(-3px);
            box-shadow: 0 12px 25px rgba(0, 0, 0, 0.3), 0 0 0 6px rgba(255, 215, 0, 0.7);
        }

        /* Footer */
        footer {
            background-color: var(--mid-gray); color: var(--text-dark);
            padding: 30px 0; text-align: center; font-size: 0.9em;
            border-top: 1px solid #ddd;
        }

        /* Media Queries for Tablet & Small Desktop (<= 900px) */
        @media (max-width: 900px) {
            .step { max-width: 450px; }
            /* Tablet Hero Font Sizes */
            #hero-enterprise h1 { font-size: 2.5em; }
            #hero-enterprise p { font-size: 1.2em; }
            
        }


        /* Media Queries for Mobile Phones (<= 600px) */
        @media (max-width: 600px) {

            #main-navbar { padding: 15px 0; }
            .logo-text { font-size: 1.6em; }

            /* Ensure logo is still white in transparent state on mobile */
            .logo-text { color: white; }

            .right-nav-group { gap: 10px; }
            .left-nav-group { gap: 10px; }
            .header-back-arrow { font-size: 1.5em; margin-right: 10px !important; }
            .cta-group { flex-direction: column; gap: 10px; }
            .btn-primary, .btn-secondary { padding: 12px 20px; font-size: 0.9em; }

            
            #hero-enterprise .container {
                /* **MODIFICATION 2: Increased mobile hero padding-top to push content further down** */
                padding-top: calc(var(--navbar-height) + 160px); 
            }
            
            /* Mobile Phone Hero Font Sizes */
            #hero-enterprise h1 {
                font-size: 2em;
            }
            #hero-enterprise p {
                font-size: 1.1em;
            }

            .step-container::before {
                left: 10px; transform: translateX(0);
            }

            .step {
                padding: 8px 5px 8px 40px;
                max-width: 100%;
                align-self: flex-start !important;
                text-align: left !important;
                width: 100%;
            }

            .step:nth-child(odd), .step:nth-child(even) {
                padding-left: 40px;
                padding-right: 5px;
            }

            .step h4 {
                font-size: 1em;
                margin-top: 3px; margin-bottom: 3px;
                text-align: left !important;
                margin-left: 0 !important;
                margin-right: 0 !important;
            }
            .step p {
                font-size: 0.85em;
                margin-top: 0;
                text-align: left !important;
                margin-left: 0 !important;
                margin-right: 0 !important;
            }

            .step-number {
                width: 25px; height: 25px; line-height: 20px; font-size: 0.9em;
                left: 10px !important;
                right: auto !important;
                transform: translate(-50%, -50%);
            }

            #trust-and-cta { padding: 40px 0; }
            .network-logos { gap: 15px; margin-bottom: 30px; }
            .network-placeholder { font-size: 0.9em; padding: 6px 12px; }
            .btn-final-cta { font-size: 1.1em; padding: 15px 30px; }
        }
