/* ==========================================================================
   Cyberpunk Variables & Reset
   ========================================================================== */
:root {
    /* Color Palette */
    --bg-color: #050505;
    --bg-secondary: #0a0a0c;
    
    --neon-yellow: #fcee0a;
    --neon-pink: #ff003c;
    --neon-blue: #00f0ff;
    
    --text-main: #e2e8f0;
    --text-muted: #8b92a5;
    
    /* Fonts */
    --font-heading: 'Share Tech Mono', monospace;
    --font-body: 'Inter', sans-serif;
    
    /* UI Elements */
    --cybr-border-width: 2px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    /* subtle grid background */
    background-image: 
        linear-gradient(rgba(0, 240, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 240, 255, 0.03) 1px, transparent 1px);
    background-size: 30px 30px;
}

/* Typography Utilities */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 2px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.neon-yellow-text { color: var(--neon-yellow); text-shadow: 0 0 5px rgba(252, 238, 10, 0.5); }
.neon-pink-text { color: var(--neon-pink); text-shadow: 0 0 5px rgba(255, 0, 60, 0.5); }
.neon-blue-text { color: var(--neon-blue); text-shadow: 0 0 5px rgba(0, 240, 255, 0.5); }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 6rem 0;
    position: relative;
    z-index: 2;
}

.text-center { text-align: center; }
.mt-large { margin-top: 4rem; }

/* ==========================================================================
   Scanlines Overlay
   ========================================================================== */
.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(
        rgba(18, 16, 16, 0) 50%, 
        rgba(0, 0, 0, 0.25) 50%
    );
    background-size: 100% 4px;
    z-index: 9999;
    pointer-events: none;
    opacity: 0.4;
}

/* Background Canvas */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
    opacity: 0.3;
}

/* ==========================================================================
   Cyberpunk Glitch Effects
   ========================================================================== */
.glitch {
    position: relative;
    color: white;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-color);
}

.glitch::before {
    left: 2px;
    text-shadow: -2px 0 var(--neon-pink);
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 5s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -2px 0 var(--neon-blue);
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim2 5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% { clip: rect(21px, 9999px, 83px, 0); }
    5% { clip: rect(69px, 9999px, 66px, 0); }
    10% { clip: rect(51px, 9999px, 2px, 0); }
    15% { clip: rect(8px, 9999px, 34px, 0); }
    20% { clip: rect(98px, 9999px, 14px, 0); }
    25% { clip: rect(31px, 9999px, 50px, 0); }
    30% { clip: rect(64px, 9999px, 81px, 0); }
    35% { clip: rect(2px, 9999px, 99px, 0); }
    40% { clip: rect(81px, 9999px, 51px, 0); }
    45% { clip: rect(29px, 9999px, 48px, 0); }
    50% { clip: rect(11px, 9999px, 2px, 0); }
    55% { clip: rect(62px, 9999px, 96px, 0); }
    60% { clip: rect(19px, 9999px, 16px, 0); }
    65% { clip: rect(48px, 9999px, 63px, 0); }
    70% { clip: rect(89px, 9999px, 3px, 0); }
    75% { clip: rect(15px, 9999px, 27px, 0); }
    80% { clip: rect(96px, 9999px, 5px, 0); }
    85% { clip: rect(31px, 9999px, 42px, 0); }
    90% { clip: rect(72px, 9999px, 93px, 0); }
    95% { clip: rect(10px, 9999px, 12px, 0); }
    100% { clip: rect(50px, 9999px, 58px, 0); }
}

@keyframes glitch-anim2 {
    0% { clip: rect(65px, 9999px, 99px, 0); }
    5% { clip: rect(12px, 9999px, 40px, 0); }
    10% { clip: rect(83px, 9999px, 14px, 0); }
    15% { clip: rect(2px, 9999px, 81px, 0); }
    20% { clip: rect(54px, 9999px, 21px, 0); }
    25% { clip: rect(98px, 9999px, 66px, 0); }
    30% { clip: rect(11px, 9999px, 3px, 0); }
    35% { clip: rect(42px, 9999px, 92px, 0); }
    40% { clip: rect(76px, 9999px, 55px, 0); }
    45% { clip: rect(19px, 9999px, 18px, 0); }
    50% { clip: rect(91px, 9999px, 72px, 0); }
    55% { clip: rect(3px, 9999px, 41px, 0); }
    60% { clip: rect(62px, 9999px, 86px, 0); }
    65% { clip: rect(24px, 9999px, 9px, 0); }
    70% { clip: rect(88px, 9999px, 31px, 0); }
    75% { clip: rect(14px, 9999px, 67px, 0); }
    80% { clip: rect(46px, 9999px, 94px, 0); }
    85% { clip: rect(93px, 9999px, 22px, 0); }
    90% { clip: rect(38px, 9999px, 5px, 0); }
    95% { clip: rect(71px, 9999px, 51px, 0); }
    100% { clip: rect(5px, 9999px, 83px, 0); }
}

.glitch-hover {
    position: relative;
    display: inline-block;
}

.glitch-hover::before,
.glitch-hover::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    opacity: 0;
}

.glitch-hover:hover::before {
    left: 2px;
    text-shadow: -2px 0 var(--neon-pink);
    opacity: 1;
    animation: glitch-anim-hover 0.3s cubic-bezier(.25, .46, .45, .94) both infinite;
}

.glitch-hover:hover::after {
    left: -2px;
    text-shadow: -2px 0 var(--neon-blue);
    opacity: 1;
    animation: glitch-anim-hover 0.3s cubic-bezier(.25, .46, .45, .94) reverse both infinite;
}

@keyframes glitch-anim-hover {
    0% { clip: rect(10px, 9999px, 30px, 0); }
    20% { clip: rect(40px, 9999px, 50px, 0); }
    40% { clip: rect(20px, 9999px, 40px, 0); }
    60% { clip: rect(60px, 9999px, 80px, 0); }
    80% { clip: rect(5px, 9999px, 15px, 0); }
    100% { clip: rect(30px, 9999px, 50px, 0); }
}

/* ==========================================================================
   Cyberpunk Button
   ========================================================================== */
.cybr-btn {
    --primary: var(--neon-yellow);
    --shadow-primary: var(--neon-yellow);
    --color: black;
    --font-size: 1rem;
    --label-size: 9px;
    --gap: 2px;
    
    font-family: var(--font-heading);
    letter-spacing: 2px;
    color: var(--color);
    background: var(--primary);
    border: 0;
    text-transform: uppercase;
    padding: 1rem 1.5rem;
    position: relative;
    cursor: pointer;
    font-weight: 700;
    outline: transparent;
    transition: background 0.2s;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
    display: inline-flex;
}

.cybr-btn::after {
    content: 'MITHION_SYS';
    display: block;
    position: absolute;
    bottom: -2px;
    right: 5px;
    font-size: var(--label-size);
    color: var(--bg-color);
    text-shadow: 1px 1px 0px rgba(255,255,255,0.3);
}

.cybr-btn__glitch {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--neon-pink);
    text-shadow: 2px 2px var(--neon-blue), -2px -2px var(--neon-yellow);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    padding: 1rem 1.5rem;
    color: white;
    display: none;
}

.cybr-btn:hover .cybr-btn__glitch {
    display: block;
    animation: glitch-anim-btn 0.3s infinite;
}

@keyframes glitch-anim-btn {
    0% { clip-path: polygon(0 2%, 100% 2%, 100% 5%, 0 5%); }
    20% { clip-path: polygon(0 15%, 100% 15%, 100% 15%, 0 15%); }
    40% { clip-path: polygon(0 10%, 100% 10%, 100% 20%, 0 20%); }
    60% { clip-path: polygon(0 1%, 100% 1%, 100% 2%, 0 2%); }
    80% { clip-path: polygon(0 33%, 100% 33%, 100% 33%, 0 33%); }
    100% { clip-path: polygon(0 44%, 100% 44%, 100% 44%, 0 44%); }
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.cybr-nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition);
    border-bottom: 1px solid rgba(0, 240, 255, 0.1);
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(5px);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--text-main);
    letter-spacing: 4px;
    font-weight: bold;
}

.logo-blinker {
    color: var(--neon-pink);
    animation: blink 1s step-end infinite;
}

@keyframes blink { 50% { opacity: 0; } }

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a::before {
    content: '[';
    color: var(--neon-blue);
    opacity: 0;
    margin-right: 5px;
    transition: var(--transition);
}

.nav-links a::after {
    content: ']';
    color: var(--neon-blue);
    opacity: 0;
    margin-left: 5px;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--neon-blue);
}

.nav-links a:hover::before,
.nav-links a:hover::after {
    opacity: 1;
}

.mobile-menu-btn {
    display: none;
    color: var(--neon-yellow);
    font-size: 1.5rem;
    cursor: pointer;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 5rem;
    gap: 2rem;
}

.hero-content {
    flex: 1;
    z-index: 10;
}

.hero-badge {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    color: var(--text-muted);
    border-left: 3px solid var(--neon-blue);
    padding-left: 10px;
}

.status-ok { color: #0f0; }

.hero-title {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: white;
}

.hero-subtitle {
    font-family: var(--font-heading);
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.5);
    border-left: 3px solid var(--neon-pink);
}

/* Cyber Terminal */
.hero-graphic {
    flex: 1;
    display: flex;
    justify-content: center;
}

.cyber-terminal {
    width: 100%;
    background: #0a0a0c;
    border: 1px solid #333;
    border-radius: 5px;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.cyber-terminal::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, var(--neon-blue), transparent);
}

.terminal-header {
    background: #151515;
    padding: 10px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #333;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 8px;
}
.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.terminal-title {
    font-family: var(--font-heading);
    color: var(--text-muted);
    margin-left: 1rem;
    font-size: 0.9rem;
}

.terminal-body {
    padding: 1.5rem;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #0f0;
}

.c-keyword { color: var(--neon-pink); }
.c-string { color: var(--neon-yellow); }
.c-success { color: var(--neon-blue); }

.cursor-blink {
    animation: blink 1s step-end infinite;
}

/* ==========================================================================
   Shared Component Styles
   ========================================================================== */
.section-header {
    margin-bottom: 4rem;
}

.section-title {
    font-size: 3rem;
    color: white;
    position: relative;
    display: inline-block;
}

.section-divider {
    width: 100px;
    height: 3px;
    background: var(--neon-blue);
    margin-top: 1rem;
    box-shadow: 0 0 10px var(--neon-blue);
}

.section-divider.center {
    margin: 1rem auto 0;
}

/* ==========================================================================
   About Section
   ========================================================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.about-text p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.cybr-stat-box {
    border: 1px solid rgba(0, 240, 255, 0.3);
    padding: 1.5rem 1rem;
    text-align: center;
    position: relative;
    background: rgba(0, 240, 255, 0.02);
}

.cybr-stat-box::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 10px; height: 10px;
    border-top: 2px solid var(--neon-blue);
    border-left: 2px solid var(--neon-blue);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-family: var(--font-heading);
    color: white;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.stat-label {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    color: var(--neon-blue);
}

.cyber-image-frame {
    aspect-ratio: 1;
    background: repeating-linear-gradient(
        45deg,
        rgba(255, 0, 60, 0.1),
        rgba(255, 0, 60, 0.1) 10px,
        rgba(0, 0, 0, 0.5) 10px,
        rgba(0, 0, 0, 0.5) 20px
    );
    border: 1px solid var(--neon-pink);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cyber-corner {
    position: absolute;
    width: 30px; height: 30px;
}
.cyber-corner.top-left {
    top: -5px; left: -5px;
    border-top: 3px solid var(--neon-pink);
    border-left: 3px solid var(--neon-pink);
}
.cyber-corner.bottom-right {
    bottom: -5px; right: -5px;
    border-bottom: 3px solid var(--neon-pink);
    border-right: 3px solid var(--neon-pink);
}

.giant-icon {
    font-size: 10rem;
    color: var(--neon-pink);
    filter: drop-shadow(0 0 20px rgba(255,0,60,0.5));
}

.retro-terminal-frame {
    aspect-ratio: 1;
    background: #000;
    border: 1px solid var(--neon-pink);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    box-shadow: inset 0 0 20px rgba(255, 0, 60, 0.2);
}

.retro-text {
    font-family: 'Courier New', Courier, monospace;
    font-size: 1rem;
    color: var(--neon-yellow);
    line-height: 1.5;
    width: 100%;
}

/* ==========================================================================
   Services Section
   ========================================================================== */
.services-section {
    background: #020202;
    border-top: 1px solid #333;
    border-bottom: 1px solid #333;
}

.category-title {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.cybr-card {
    background: rgba(10, 10, 10, 0.8);
    border: 1px solid #222;
    padding: 2.5rem 2rem;
    position: relative;
    transition: var(--transition);
    overflow: hidden;
}

.cybr-card:hover {
    border-color: var(--neon-blue);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.8);
}

.cybr-card-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--neon-pink);
    transition: width 0.3s;
}

.cybr-card:hover .cybr-card-line {
    width: 100%;
}

.service-icon {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 1.5rem;
}

.cybr-card:hover .service-icon {
    color: var(--neon-blue);
}

.cybr-card h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: white;
}

.cybr-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ==========================================================================
   Approach Section
   ========================================================================== */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.cybr-card-minimal {
    padding: 2rem;
    border-left: 3px solid #333;
    background: rgba(255,255,255,0.02);
    transition: var(--transition);
}

.cybr-card-minimal:hover {
    border-left-color: var(--neon-yellow);
    background: rgba(252, 238, 10, 0.05);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: white;
}

.cybr-card-minimal h4 {
    margin-bottom: 1rem;
}

/* ==========================================================================
   Contact & Footer
   ========================================================================== */
.cyber-contact-panel {
    background: #000;
    border: 1px solid var(--neon-pink);
    padding: 4rem 2rem;
    text-align: center;
    position: relative;
    clip-path: polygon(20px 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%, 0 20px);
}

.contact-content h2 {
    font-size: 3rem;
    color: white;
    margin-bottom: 1rem;
}

.cyber-muted {
    font-family: var(--font-heading);
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.cybr-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: white;
    padding: 0.5rem 1rem;
    border: 1px solid #333;
}

.cybr-link:hover {
    border-color: var(--neon-blue);
    color: var(--neon-blue);
    background: rgba(0, 240, 255, 0.1);
}

.support-badge-cyber {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--neon-yellow);
    color: black;
    font-family: var(--font-heading);
    font-weight: bold;
    letter-spacing: 1px;
}

.cyber-decoration-lines {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 100px;
    height: 10px;
    background: repeating-linear-gradient(90deg, var(--neon-pink), var(--neon-pink) 2px, transparent 2px, transparent 6px);
}

.cyber-footer {
    background: #000;
    border-top: 1px dashed #333;
    padding: 2rem 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-heading);
}

.footer-logo {
    color: var(--neon-blue);
    font-size: 1.2rem;
    font-weight: bold;
}

.copyright {
    color: #666;
    font-size: 0.9rem;
}

/* ==========================================================================
   Animations
   ========================================================================== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.5s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 992px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 8rem;
    }
    
    .hero-subtitle {
        text-align: left;
    }

    .hero-title { font-size: 2.5rem; }
    
    .about-grid, .service-grid, .feature-grid {
        grid-template-columns: 1fr;
    }
    
    .cyber-image-frame { max-width: 300px; margin: 0 auto; }
}

@media (max-width: 768px) {
    .nav-links, .nav-cta { display: none; }
    .mobile-menu-btn { display: block; }
    .stats-container { grid-template-columns: 1fr; }
    .contact-info { flex-direction: column; align-items: center; }
    .footer-content { flex-direction: column; text-align: center; gap: 1rem; }
}

/* ==========================================================================
   Services Detail Page
   ========================================================================== */
.service-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 6rem;
}

.service-details-grid.reverse {
    grid-template-columns: 1fr 1fr;
}

.cyber-list {
    list-style: none;
    padding: 0;
}

.cyber-list li {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border-left: 2px solid var(--neon-blue);
    transition: var(--transition);
}

.cyber-list li:hover {
    background: rgba(0, 240, 255, 0.05);
    transform: translateX(10px);
}

.cyber-list i {
    font-size: 2rem;
    color: var(--neon-blue);
    margin-top: 0.2rem;
}

.cyber-list h4 {
    margin-bottom: 0.5rem;
    color: white;
}

.cyber-list p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

@media (max-width: 992px) {
    .service-details-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Extreme Cyberpunk Additions
   ========================================================================== */

body.loading {
    overflow: hidden;
}

/* Boot Sequence */
#boot-sequence {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: #000;
    color: #0f0;
    font-family: 'Courier New', Courier, monospace;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    padding: 2rem;
    font-size: 1.2rem;
    line-height: 1.5;
}

#boot-text {
    flex-grow: 1;
    overflow-y: hidden;
}

.boot-skip {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    color: #555;
    cursor: pointer;
    animation: blink 2s infinite;
}

.boot-skip:hover {
    color: var(--neon-pink);
}

/* Mouse Trail */
#trail-canvas {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    pointer-events: none;
    z-index: 9998;
}

/* Global Glitch Overlay */
.global-glitch-overlay {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: white;
    mix-blend-mode: difference;
    z-index: 9997;
    pointer-events: none;
    opacity: 0;
}

.global-glitch-active {
    animation: global-glitch 0.2s cubic-bezier(.25, .46, .45, .94) both;
}

@keyframes global-glitch {
    0% { opacity: 0; transform: skewX(0deg); filter: hue-rotate(0deg); }
    20% { opacity: 0.1; transform: skewX(-20deg); filter: hue-rotate(90deg); }
    40% { opacity: 0; transform: skewX(20deg); filter: hue-rotate(-90deg); }
    60% { opacity: 0.2; transform: skewX(-10deg); filter: hue-rotate(180deg); }
    80% { opacity: 0; transform: skewX(10deg); filter: hue-rotate(45deg); }
    100% { opacity: 0; transform: skewX(0deg); filter: hue-rotate(0deg); }
}

/* 3D Parallax Cards */
.cybr-card-3d {
    transition: transform 0.1s ease-out, box-shadow 0.1s ease-out;
    transform-style: preserve-3d;
}

/* Interactive Terminal */
.interactive-terminal .terminal-body {
    display: flex;
    flex-direction: column;
    height: 350px;
}

.term-history {
    flex-grow: 1;
    overflow-y: auto;
    margin-bottom: 10px;
}

/* Hide scrollbar for term history */
.term-history::-webkit-scrollbar {
    width: 5px;
}
.term-history::-webkit-scrollbar-thumb {
    background: var(--neon-blue);
}

.term-input-line {
    display: flex;
    align-items: center;
}

#term-input {
    flex-grow: 1;
    background: transparent;
    border: none;
    color: #0f0;
    font-family: inherit;
    font-size: inherit;
    outline: none;
    margin-left: 10px;
}
