/* --- 0. Global & Utility Styles --- */
:root {
    --color-neon-green: #39FF14;
    --color-neon-red: #FF3131;
    --color-neon-blue: #00FFFF;
    --color-dark-bg: #070710; 
    --color-light-text: #E0E0E0;
    --font-mono: 'Courier Prime', monospace; 
    --transition-speed: 1.5s; 
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-mono);
    color: var(--color-light-text);
    background-color: var(--color-dark-bg);
    overflow-x: hidden;
    height: auto; 
}

a {
    color: var(--color-neon-blue);
    text-decoration: none;
    transition: color 0.3s;
}
a:hover {
    color: var(--color-light-text);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Neon Text Effects */
.neon-text {
    text-shadow: 0 0 5px var(--color-neon-blue), 0 0 10px var(--color-neon-blue), 0 0 20px #00FFFF;
    color: var(--color-light-text);
}
.neon-green-text { 
    color: var(--color-neon-green);
    text-shadow: 0 0 5px var(--color-neon-green), 0 0 10px var(--color-neon-green);
}
.neon-red-text { /* Added for bold service text */
    color: var(--color-neon-red);
    text-shadow: 0 0 4px var(--color-neon-red);
}
.neon-blue-text { /* Added for bold service text */
    color: var(--color-neon-blue);
    text-shadow: 0 0 4px var(--color-neon-blue);
}

/* Buttons */
.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 2px;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s;
    font-family: var(--font-mono);
}

.execute-btn {
    background: var(--color-neon-green);
    color: var(--color-dark-bg);
    box-shadow: 0 0 8px var(--color-neon-green);
}

/* --- 1. LEGAL MATRIX (COOKIE OVERLAY) STYLES --- */
.legal-matrix {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000000;
    z-index: 9999;
    display: none;
    place-items: center;
    opacity: 0;
}

.legal-matrix.active {
    display: grid;
    opacity: 1;
}

.consent-console {
    background: rgba(10, 10, 20, 0.9);
    border: 1px solid var(--color-neon-blue);
    padding: 50px;
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.5);
    max-width: 500px;
    text-align: center;
    animation: flicker 1.5s infinite alternate; 
}

@keyframes flicker {
    0% { opacity: 1; }
    50% { opacity: 0.98; }
    100% { opacity: 1; }
}

/* --- 2. 3D SCENE SETUP & HEADER (Fixed) --- */

/* New: Mobile Menu Icon */
.menu-toggle {
    display: none; /* Hidden by default on desktop */
    font-size: 1.8em;
    color: var(--color-neon-blue);
    cursor: pointer;
    z-index: 1001; /* Ensure it's above other elements */
} 
#scene-container {
    position: relative; 
    top: 0;
    left: 0;
    width: 100%;
    height: auto; 
}

.scene-layer {
    position: relative; 
    width: 100%;
    height: auto; 
    min-height: 100vh; 
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 100px 0; 
}

header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.9); 
    backdrop-filter: blur(5px);
    z-index: 1000;
    padding: 15px 0; 
    border-bottom: 1px solid var(--color-neon-blue);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.2);
    transition: border-bottom var(--transition-speed) ease;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 35px;
}

nav ul {
    list-style: none;
    display: flex;
    align-items: center;
}

nav ul li {
    margin-left: 30px; 
}

.neon-link {
    color: var(--color-neon-blue);
    text-shadow: 0 0 5px var(--color-neon-blue);
    font-size: 1em;
    padding: 0;
    text-transform: uppercase;
}

.portal-btn {
    background: var(--color-neon-red);
    color: var(--color-dark-bg);
    box-shadow: 0 0 8px var(--color-neon-red);
    font-size: 1em;
    padding: 12px 30px;
    margin-left: 30px;
    transition: all 0.5s ease;
}


/* --- 3. CODE PORTAL (HERO) STYLES - REDONE SECTION --- */
.code-portal {
    background: transparent;
    padding-top: 150px; 
}
.code-grid-bg {
    position: absolute;
    width: 100%; 
    height: 100%; 
    background-image: linear-gradient(0deg, transparent 95%, rgba(0, 255, 255, 0.1) 100%),
                      linear-gradient(90deg, transparent 95%, rgba(0, 255, 255, 0.1) 100%);
    background-size: 50px 50px;
    transform: none; 
    opacity: 0.3;
}

/* NEW HERO CONSOLE STYLE */
.new-hero-console {
    width: 90%;
    max-width: 900px;
    background: rgba(0, 0, 0, 0.95);
    border: 2px solid var(--color-neon-red);
    box-shadow: 0 0 40px rgba(255, 49, 49, 0.5);
    transform: none; 
    z-index: 10;
    overflow: hidden;
    text-align: center; 
}

.console-header {
    background: var(--color-neon-red);
    color: var(--color-dark-bg);
    padding: 10px 20px;
    font-weight: bold;
    font-size: 0.9em;
}

.console-body {
    padding: 30px 40px;
}

.command-line {
    color: var(--color-neon-blue);
    margin-bottom: 5px;
    white-space: pre;
    overflow: hidden;
    font-size: 1.0em;
    padding-left: 0;
    text-shadow: 0 0 2px rgba(0, 255, 255, 0.5);
    text-align: left; 
}

.neon-green-text {
    font-size: 3.5em;
    margin-top: 30px;
    margin-bottom: 20px;
    font-weight: bold;
}

.main-tagline {
    font-size: 1.1em;
    margin-bottom: 40px;
    color: var(--color-light-text);
}

/* Floating Buttons */
.red-glow {
    background: none;
    border: 2px solid var(--color-neon-red);
    color: var(--color-neon-red);
    box-shadow: 0 0 10px var(--color-neon-red);
}
.blue-glow {
    background: none;
    border: 2px solid var(--color-neon-blue);
    color: var(--color-neon-blue);
    box-shadow: 0 0 10px var(--color-neon-blue);
}


/* --- 4. WEBSITE PACKAGES SECTION STYLES --- */
#services-packages {
    background: rgba(0, 0, 0, 0.5);
    padding: 100px 0;
    min-height: 0; 
}

.section-title {
    font-size: 2.5em;
    margin-bottom: 50px;
    color: var(--color-light-text);
    text-shadow: 0 0 10px var(--color-neon-green);
    text-align: center;
}

.package-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    padding: 0 20px;
}

.package-card {
    background: rgba(10, 10, 30, 0.9);
    border: 1px solid var(--color-neon-blue);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
}

.package-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.6);
}

.level-badge {
    position: absolute;
    top: -10px;
    left: -10px;
    padding: 5px 15px;
    background: var(--color-neon-red);
    color: var(--color-dark-bg);
    font-weight: bold;
    clip-path: polygon(0% 0%, 100% 0%, 90% 100%, 0% 100%);
    transform: rotate(-10deg);
}

.package-card h3 {
    color: var(--color-neon-green);
    font-size: 1.5em;
    margin: 15px 0 10px;
}

.price {
    font-size: 2.5em;
    color: var(--color-neon-red);
    text-shadow: 0 0 10px var(--color-neon-red);
    margin-bottom: 20px;
}

.price span {
    font-size: 0.6em;
    color: var(--color-light-text);
}

.details-list {
    list-style: none;
    text-align: left;
    margin: 20px 0 30px;
    padding-left: 0;
    border-top: 1px solid rgba(0, 255, 255, 0.1);
    padding-top: 15px;
}

.details-list li {
    margin-bottom: 10px;
    font-size: 0.95em;
    line-height: 1.4;
}

.details-list i {
    color: var(--color-neon-green);
    margin-right: 8px;
}

.business-solution-card {
    grid-column: 1 / -1; 
    background: rgba(30, 10, 10, 0.9);
    border-color: var(--color-neon-red);
    box-shadow: 0 0 20px rgba(255, 49, 49, 0.5);
}

.business-solution-card .price {
    font-size: 2em;
}


/* --- NEW MODAL STYLES FOR PAYMENT --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9990;
    display: none; /* Hidden by default */
    place-items: center;
    backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.3s;
}

.modal-overlay.active {
    display: grid;
    opacity: 1;
}

.payment-console {
    background: rgba(10, 10, 20, 0.95);
    border: 2px solid var(--color-neon-red);
    box-shadow: 0 0 40px rgba(255, 49, 49, 0.5);
    padding: 30px;
    max-width: 450px;
    width: 90%;
    position: relative;
}

.payment-console h3 {
    color: var(--color-neon-red);
    margin-bottom: 20px;
    text-align: center;
    font-size: 1.5em;
}

.payment-form label {
    display: block;
    margin-bottom: 5px;
    color: var(--color-neon-blue);
    font-size: 0.9em;
}

.payment-form input[type="text"],
.payment-form input[type="email"],
.payment-form input[type="tel"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    background: var(--color-dark-bg);
    border: 1px solid var(--color-neon-green);
    color: var(--color-light-text);
    box-shadow: inset 0 0 5px rgba(57, 255, 20, 0.5);
    font-family: var(--font-mono);
}

.payment-form .btn {
    width: 100%;
    padding: 15px;
    margin-top: 10px;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    color: var(--color-neon-red);
    font-size: 1.5em;
    cursor: pointer;
}


/* --- 5. INFORMATIONAL CONTENT LAYER STYLES (Used for About and Services Content Card) --- */
.info-layer {
    background: transparent;
    padding: 100px 0;
}
.info-card {
    max-width: 800px;
    padding: 50px;
    background: rgba(10, 30, 10, 0.8);
    border: 1px solid var(--color-neon-green);
    box-shadow: 0 0 25px rgba(57, 255, 20, 0.5);
    text-align: center;
    transform: none; 
}
.info-card h2 {
    color: var(--color-neon-green);
    margin-bottom: 20px;
}
.info-card p {
    margin-bottom: 40px;
    line-height: 1.6;
}


/* --- 6. FOOTER STYLES & Media Queries --- */
footer {
    position: relative;
    z-index: 1000; 
    background-color: #0c0c17; 
    padding: 50px 0 10px;
    color: rgba(255, 255, 255, 0.7);
    border-top: 1px solid var(--color-neon-blue);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.1);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1fr;
    gap: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);

}

.col-brand img {
    height: 30px;
    margin-bottom: 15px;
}

.col-brand p {
    font-size: 0.9em;
    line-height: 1.6;
}

.col-contact h4, .col-links h4 {
    color: var(--color-light-text);
    margin-bottom: 20px;
}

.col-contact ul, .col-links ul {
    list-style: none;
    padding: 0;
}

.col-contact ul li, .col-links ul li {
    margin-bottom: 10px;
    font-size: 0.9em;
}

.col-contact a, .col-links a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.col-contact a:hover, .col-links a:hover {
    color: var(--color-neon-green);
}

.col-contact i {
    color: var(--color-neon-green);
    margin-right: 10px;
}

.social-icons {
    margin-top: 20px;
}

.social-icons a {
    color: var(--color-light-text);
    font-size: 1.5em;
    margin-right: 15px;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: var(--color-neon-green);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    font-size: 0.8em;
}

.legal-ticker {
    color: var(--color-neon-blue);
    text-shadow: 0 0 5px var(--color-neon-blue);
}

#primary-content-flow {
    display: flex;
    flex-direction: column; /* Default (Desktop): Course Promo (top), Services (bottom) */
}

/* Anchor to ensure smooth scrolling past the fixed header */
#deployment-config {
    scroll-margin-top: 100px; 
}

/* --- CSS FIX FOR MOBILE SCROLLING ON PRODUCT ASSIGNMENT (STEP 2) --- */

#assignment-table-wrapper {
    /* 1. Allows content wider than the screen to scroll horizontally */
    width: 100%;
    overflow-x: auto; 
    /* Optional: Improves the scroll experience on iOS devices */
    -webkit-overflow-scrolling: touch;
    padding-bottom: 10px; /* Space for the scrollbar */
}

/* 2. Set a minimum width for the table itself to force the scroll */
#user-product-assignment table {
    /* Adjust this width if you have many products. 600px is a good start. */
    min-width: 600px; 
    width: auto;
}
/* --- PROTOCOL BETA (Tablet/Small Desktop: Max 992px) --- */
/* --- PROTOCOL BETA (Tablet/Small Desktop: Max 992px) --- */
@media (max-width: 992px) {
    /* ... (Existing rules) ... */
    
    /* 2. HEADER & NAVIGATION - Major Change for Mobile Menu */
    .nav-content {
        /* Revert nav-content to horizontal for the logo and toggle */
        flex-direction: row; 
        justify-content: space-between;
        align-items: center;
    }
    
    .menu-toggle {
        display: block; /* Show the hamburger icon */
    }
    
    header nav {
        /* Position the navigation menu overlay */
        position: absolute;
        top: 65px; /* Adjust based on your header height */
        left: 0;
        width: 100%;
        background: rgba(0, 0, 0, 0.95);
        border-top: 1px solid var(--color-neon-blue);
        height: 0; /* Hidden by default */
        overflow: hidden;
        transition: height 0.3s ease;
    }
    
    /* Class applied by JavaScript to show the menu */
    header nav.active {
        height: 300px; /* Or enough height to show all links stacked */
    }

    nav ul {
        flex-direction: column; /* Stack the links vertically */
        padding: 20px 0;
        align-items: center;
        width: 100%;
    }
    
    nav ul li {
        margin: 10px 0; /* Vertical spacing */
    }
    
    .portal-btn {
        margin-left: 0;
        margin-top: 10px;
        padding: 10px 25px;
    }

    #primary-content-flow {
        /* REVERSE ORDER: Course Promo (bottom section in HTML) now appears on top */
        flex-direction: column-reverse; 
    }
}

/* Ensure the smallest screens still stack everything nicely */
@media (max-width: 480px) {
    /* ... (keep existing 480px rules) ... */
    
    /* Override for the toggle icon to look right on tiny screens */
    .nav-content {
        padding: 0 20px;
    }
    .logo img {
        height: 25px;
    }
    .menu-toggle {
        font-size: 1.5em;
    }
}
/* --- Media Queries --- */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .package-grid {
        gap: 20px;
    }
    .package-card {
        padding: 25px 20px;
    }
    .price {
        font-size: 2em;
    }
    .payment-console {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .console-body {
        padding: 15px;
    }
    .neon-green-text {
        font-size: 1.8em;
    }
    .col-contact i {
        display: none; 
    }
    .legal-ticker {
        line-height: 1.5;
        display: block;
        padding-top: 10px;
    }
    /* 2. HEADER & NAVIGATION */
    header {
        padding: 10px 0; /* Reduced vertical padding */
    }
    .logo img {
        height: 25px;
    }
    nav ul {
        flex-direction: column; 
        align-items: center;
        margin-top: 5px;
    }
    nav ul li {
        margin: 5px 0; /* Stack links vertically */
        font-size: 0.85em;
    }
    .portal-btn {
        margin-left: 0;
        margin-top: 10px;
        padding: 8px 20px;
        font-size: 0.8em;
    }
}