/* --- 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 adjusted for slow, separated scroll */
    height: 700vh; 
}

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);
}

/* 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) --- */
#scene-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    perspective: 1000px; 
    transform-style: preserve-3d;
}

.scene-layer {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    transform-style: preserve-3d;
    backface-visibility: hidden;
    transition: transform 0.1s linear; 
}

header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.7);
    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;
}
.code-grid-bg {
    position: absolute;
    width: 150%;
    height: 150%;
    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: rotateX(70deg) translateZ(-200px); 
    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: rotateX(5deg); 
    z-index: 10;
    overflow: hidden;
}

.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);
}

.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. SERVICE TRIPTYCH STYLES - BORDER ADDED --- */
.service-triptych {
    background: transparent;
    flex-direction: column;
}

/* Style for the Bordered Section */
.bordered-section {
    border: 3px solid var(--color-neon-blue);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.4);
    padding: 50px 0; 
    background: rgba(0, 0, 0, 0.7); 
}

.section-title {
    font-size: 2.5em;
    margin-bottom: 50px;
    color: var(--color-light-text);
    text-shadow: 0 0 10px var(--color-neon-green);
}

.triptych-panels {
    display: flex;
    gap: 40px;
    width: 90%;
    max-width: 1200px;
    transform: rotateX(15deg); 
}

/* Individual Triptych Panels */
.panel {
    flex: 1;
    padding: 30px;
    border-radius: 5px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.panel:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 25px rgba(255, 255, 255, 0.2);
}

.panel h3 {
    margin: 15px 0 10px;
    color: var(--color-light-text);
    text-shadow: 0 0 5px var(--color-neon-green);
}

.panel i {
    font-size: 3em;
    animation: pulse 2s infinite alternate;
}

.icon-neon-green { color: var(--color-neon-green); }
.icon-neon-red { color: var(--color-neon-red); }
.icon-neon-blue { color: var(--color-neon-blue); }

.panel-cta {
    display: block;
    margin-top: 20px;
    color: var(--color-neon-green);
    font-weight: bold;
}


/* Icon Pulse Animation */
@keyframes pulse {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.05); opacity: 1; }
}

/* --- 5. INFORMATIONAL CONTENT LAYER STYLES (Used for About and Services Content Card) --- */
.info-layer {
    background: transparent;
}
.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: rotateX(-5deg); 
}
.info-card h2 {
    color: var(--color-neon-green);
    margin-bottom: 20px;
}
.info-card p {
    margin-bottom: 40px;
    line-height: 1.6;
}

/* ======================================= */
/* 7. STANDALONE PAGE LAYOUTS (Contact/Services) - ADDED SECTION */
/* ======================================= */

/* Main content wrapper for non-scrolling pages (like contact.html or services.html) */
.contact-main-content {
    /* Use Fixed positioning to stack above the body but below the header/footer */
    position: fixed; 
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh; /* Make it cover the full viewport */
    
    padding-top: 100px; 
    padding-bottom: 50px;
    display: flex; /* Keep for centering content like the console-wrapper */
    justify-content: center;
    align-items: center;
    background-color: var(--color-dark-bg);

}

/* Console Wrapper - Used for the Contact Form */
.console-wrapper {
    display: flex;
    max-width: 1000px;
    width: 90%;
    margin-bottom: 50px;
    background: rgba(10, 10, 30, 0.9);
    border: 1px solid var(--color-neon-green);
    box-shadow: 0 0 30px rgba(57, 255, 20, 0.5);
    transform: perspective(1000px) rotateX(2deg); 
}

/* Console Body - Form Side */
.console-body {
    flex: 3;
    padding: 50px;
    transform: none; 
}

/* Informational Panel - Contact Sidebar */
.contact-info-panel {
    flex: 2;
    padding: 50px;
    background: rgba(0, 0, 0, 0.8);
    border-left: 1px solid rgba(57, 255, 20, 0.5);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-info-panel h3 {
    margin-bottom: 20px;
    color: var(--color-neon-blue);
    text-shadow: 0 0 5px var(--color-neon-blue);
}

.contact-info-panel p {
    margin-bottom: 30px;
    font-size: 0.95em;
}

.detail-line {
    margin-bottom: 15px;
    font-size: 1em;
}

.detail-line i {
    margin-right: 10px;
}

/* Terminal Form Specific Styles */
.terminal-form label {
    display: block;
    color: var(--color-neon-green);
    margin-top: 15px;
    margin-bottom: 5px;
}

.terminal-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--color-neon-blue);
    color: var(--color-light-text);
    padding: 10px;
    font-family: var(--font-mono);
    font-size: 1em;
    resize: vertical;
    caret-color: var(--color-neon-green); /* Ensure cursor is visible */
}
.terminal-input:focus {
    outline: none;
    border-color: var(--color-neon-green);
    box-shadow: 0 0 10px rgba(57, 255, 20, 0.7);
}


/* --- 6. FOOTER STYLES --- */
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);
}

/* --- NEW CSS for LMS PROMO SECTION --- */

#digital-codex {
    /* Ensure it flows vertically normally and fills the screen for impact */
    height: 100vh; 
    display: flex; 
    align-items: center;
    justify-content: center;
    background-color: #05050e;
    padding: 20px;
}

.lms-promo-console {
    max-width: 900px;
    padding: 60px;
    text-align: center;
    
    /* Stronger cyberpunk styling for the main CTA */
    background: rgba(10, 10, 20, 0.95);
    border: 3px solid #ff3333; /* Neon Red Border */
    box-shadow: 0 0 20px rgba(255, 51, 51, 0.5), 
                inset 0 0 10px rgba(0, 255, 255, 0.2);
    border-radius: 12px;
}

.lms-promo-console .section-title {
    font-size: 3rem;
}

.lms-promo-console .section-subtitle {
    margin-bottom: 40px;
}

.lms-description {
    color: #e0e0e0;
    font-size: 1.2rem;
    margin-bottom: 50px;
    line-height: 1.6;
}

/* Ensure the button is massive and clear */
.lms-promo-console .execute-btn {
    min-width: 350px;
    transition: all 0.4s ease;
}

.lms-promo-console .execute-btn:hover {
    box-shadow: 0 0 30px rgba(255, 0, 0, 1), 0 0 10px rgba(255, 255, 255, 0.8);
}
/* --- Media Queries --- */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .col-contact ul, .col-links ul {
        text-align: center;
    }
    .col-contact ul li {
        text-align: left;
        margin: 0 auto 15px;
        width: fit-content;
    }
    
    /* Media Queries for Contact Page */
    .console-wrapper {
        flex-direction: column;
        transform: none; /* Remove 3D tilt on small screens */
    }
    .contact-info-panel {
        border-left: none;
        border-top: 1px solid rgba(57, 255, 20, 0.5);
        text-align: center;
    }
    /* detail-line styles already adjusted above for mobile in the general contact section */

}

/* ================================================= */
/* 8. RESPONSIVE DESIGN PROTOCOLS (Z-INDEX & WIDTH FIX)*/
/* ================================================= */


/* --- PROTOCOL BETA (Tablet/Big Phone: Max 1024px) --- */
@media (max-width: 1024px) {
    /* 2. HEADER & NAVIGATION */
    nav ul li {
        margin-left: 20px; /* Tighten spacing */
    }
    .portal-btn {
        padding: 10px 20px; /* Slightly smaller button */
        margin-left: 20px;
    }

    /* 3. HERO SECTION */
    .new-hero-console {
        width: 95%; /* Use more width */
        max-width: 700px;
    }
    .console-body {
        padding: 25px 30px;
    }
    .neon-green-text {
        font-size: 2.8em; /* Scale down main heading */
    }
    .main-tagline {
        font-size: 1em;
    }

    /* 4. SERVICE TRIPTYCH */
    .triptych-panels {
        gap: 20px;
        transform: rotateX(10deg); /* Reduce 3D tilt */
    }
    .bordered-section {
        padding: 40px 0;
    }
    .section-title {
        font-size: 2em;
    }
    
    /* 7. CONTACT/CONSOLE LAYOUT */
    .console-wrapper {
        max-width: 90%;
    }
    .console-body, .contact-info-panel {
        padding: 30px; /* Reduce padding inside console */
    }
}

/* --- PROTOCOL ALPHA (Small Tablet/Phone Landscape: Max 768px) --- */
@media (max-width: 768px) {
    /* **CRITICAL FIX FOR OVERFLOW/ZOOMING ISSUE** */
    .code-grid-bg {
        /* Set width to 100% and hide any overflow from the 150% original on mobile */
        width: 100% !important; 
        overflow: hidden !important;
        transform: none !important;
    }

    /* 1. CORE 3D DISABLING (FORCES STRAIGHT SCROLL) */
    body {
        height: auto !important; 
        overflow-y: auto !important;
        font-size: 14px;
    }
    
    /* Disables the fixed 3D container and flattens the scene */
    #scene-container {
        position: relative !important; 
        perspective: none !important; 
        transform-style: flat !important;
        height: auto !important; 
    }
    
    /* Forces scene layers to flow naturally */
    .scene-layer {
        position: relative !important; 
        min-height: 80vh; 
        transform: none !important; 
        backface-visibility: visible !important;
        transition: none !important;
        z-index: 1 !important; 
        align-items: flex-start !important; 
        padding-top: 80px;
    }
    
    /* Ensure the scroll anchor is removed if present */
    #scroll-anchor {
        display: none !important;
    }

    /* 2. HEADER & NAVIGATION */
    header {
        padding: 10px 0;
        z-index: 9999 !important;
    }
    .nav-content {
        flex-wrap: wrap; 
    }
    nav {
        width: 100%;
        margin-top: 10px;
    }
    nav ul {
        justify-content: space-around;
        width: 100%;
    }
    nav ul li {
        margin-left: 0;
    }
    .portal-btn {
        display: none; 
    }

    /* 3. HERO SECTION */
    .code-portal {
        position: relative !important; 
        height: auto !important;
        min-height: 80vh;
    }
    .new-hero-console {
        width: 100%;
        transform: none; 
        border: none;
        box-shadow: none;
        max-width: 100%;
    }
    .console-body {
        padding: 20px;
        text-align: center;
    }
    .command-line {
        font-size: 0.9em;
        text-align: left;
        margin-left: 5%; 
    }
    .neon-green-text {
        font-size: 2em; 
    }
    .main-tagline {
        font-size: 0.9em;
        margin-bottom: 20px;
    }
    .hero-actions {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    /* 4. SERVICE TRIPTYCH */
    .triptych-panels {
        flex-direction: column; 
        gap: 30px;
        transform: none; 
        width: 95%;
    }

    /* 7. STANDALONE CONTENT (Contact/Careers) */
    .contact-main-content {
        position: relative !important; 
        min-height: 100vh;
        height: auto !important;
        padding-top: 80px;
        align-items: flex-start !important; 
    }
    .console-wrapper {
        flex-direction: column;
        transform: none; 
    }
    .contact-info-panel {
        border-left: none;
        border-top: 1px solid rgba(57, 255, 20, 0.5);
        text-align: left;
    }

    /* FOOTER */
    footer {
        position: relative !important;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* --- PROTOCOL EPSILON (Small Phone Portrait: Max 480px) --- */
@media (max-width: 480px) {
    /* 2. HEADER & NAVIGATION */
    .logo img {
        height: 30px;
    }
    nav ul {
        flex-direction: column; 
        align-items: center;
    }
    nav ul li {
        margin-bottom: 5px;
        font-size: 0.9em;
    }
    
    /* 3. HERO SECTION */
    .console-body {
        padding: 15px;
    }
    .neon-green-text {
        font-size: 1.8em;
    }
    
    /* 7. CONTACT/CONSOLE LAYOUT */
    .console-body {
        padding: 20px;
    }
    .contact-info-panel {
        padding: 20px;
    }
    .terminal-form label, .terminal-input {
        font-size: 0.9em;
    }
    
    /* FOOTER */
    .col-contact i {
        display: none; 
    }
    .col-contact ul li {
        width: 100%;
    }
    .legal-ticker {
        line-height: 1.5;
        display: block;
        padding-top: 10px;
    }
}