:root {
    --color-bg-base: #0A0A0A;
    --color-bg-darker: #050505;
    --color-midnight: #001F3F;
    --color-purple: #2A0A2A;
    
    --color-neon-blue: #00FFFF;
    --color-neon-pink: #FF00FF;
    --color-neon-green: #39FF14;
    --color-neon-yellow: #FFFF00;
    --color-neon-red: #FF003C;
    
    --color-text-main: #E0E0E0;
    --color-text-sub: #808080;
    --color-white: #FFFFFF;

    --font-heading: 'Orbitron', sans-serif;
    --font-hud: 'Rajdhani', sans-serif;
    --font-body: 'Roboto Mono', monospace;

    --grid-size: 40px;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    background-color: var(--color-bg-base);
    color: var(--color-text-main);
    font-family: var(--font-body);
    overflow-x: hidden;
    scroll-behavior: smooth;
    line-height: 1.6;
}

/* Backgrounds & Canvas */
#particles-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    opacity: 0.6;
}

.cyber-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 255, 0.05) 1px, transparent 1px);
    background-size: var(--grid-size) var(--grid-size);
    z-index: 0;
    pointer-events: none;
    perspective: 1000px;
    box-shadow: inset 0 0 150px rgba(0,0,0,0.9);
}

/* Ensure main content is clickable above fixed bgs */
main, nav, footer, #loader {
    position: relative;
    z-index: 10;
}

/* Typography Utility */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    margin: 0 0 1rem 0;
    text-transform: uppercase;
    letter-spacing: 2px;
}

a {
    color: var(--color-neon-blue);
    text-decoration: none;
    transition: 0.3s;
}

a:hover {
    color: var(--color-neon-pink);
    text-shadow: 0 0 8px var(--color-neon-pink);
}

.eng {
    font-family: var(--font-hud);
    font-size: 0.8em;
    color: var(--color-neon-blue);
    letter-spacing: 3px;
    display: block;
    margin-top: 5px;
}

.text-center { text-align: center; }

.neon-text {
    text-shadow: 0 0 10px currentColor, 0 0 20px currentColor;
}
.type-pink { color: var(--color-neon-pink); }
.type-blue { color: var(--color-neon-blue); }

.neon-red { color: var(--color-neon-red); text-shadow: 0 0 5px var(--color-neon-red); }
.neon-blue { color: var(--color-neon-blue); text-shadow: 0 0 5px var(--color-neon-blue); }
.neon-pink { color: var(--color-neon-pink); text-shadow: 0 0 5px var(--color-neon-pink); }
.neon-green { color: var(--color-neon-green); text-shadow: 0 0 5px var(--color-neon-green); }

.color-sub { color: var(--color-text-sub); }

.blink {
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

.pulse {
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 0, 255, 0.7); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 20px rgba(255, 0, 255, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 0, 255, 0); }
}

/* Global Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

/* Loader */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-bg-base);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    transition: opacity 0.5s ease-out;
}

.loader-content {
    width: 80%;
    max-width: 500px;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: var(--color-bg-darker);
    border: 1px solid var(--color-purple);
    margin-top: 20px;
    position: relative;
    overflow: hidden;
}

.progress {
    width: 0%;
    height: 100%;
    background: var(--color-neon-blue);
    box-shadow: 0 0 10px var(--color-neon-blue);
    transition: width 0.1s linear;
}

.system-logs {
    font-family: var(--font-body);
    font-size: 0.8rem;
    color: var(--color-neon-green);
    margin-top: 10px;
    height: 80px;
    overflow: hidden;
    text-shadow: 0 0 2px var(--color-neon-green);
}

/* Glitch Text Effect */
.glitch-text, .glitch {
    position: relative;
    color: var(--color-white);
    font-weight: bold;
    display: inline-block;
}
.glitch::before, .glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-bg-base);
    z-index: -1;
}
.glitch::before {
    left: 2px;
    text-shadow: -2px 0 var(--color-neon-red);
    clip: rect(24px, 550px, 90px, 0);
    animation: glitch-anim 3s infinite linear alternate-reverse;
}
.glitch::after {
    left: -2px;
    text-shadow: -2px 0 var(--color-neon-blue);
    clip: rect(85px, 550px, 140px, 0);
    animation: glitch-anim 2.5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% { clip: rect(31px, 9999px, 94px, 0); }
    5% { clip: rect(70px, 9999px, 71px, 0); }
    10% { clip: rect(10px, 9999px, 18px, 0); }
    15% { clip: rect(98px, 9999px, 19px, 0); }
    20% { clip: rect(60px, 9999px, 52px, 0); }
    25% { clip: rect(31px, 9999px, 86px, 0); }
    30% { clip: rect(22px, 9999px, 7px, 0); }
    35% { clip: rect(66px, 9999px, 55px, 0); }
    40% { clip: rect(38px, 9999px, 34px, 0); }
    45% { clip: rect(64px, 9999px, 94px, 0); }
    50% { clip: rect(90px, 9999px, 85px, 0); }
    55% { clip: rect(81px, 9999px, 2px, 0); }
    60% { clip: rect(32px, 9999px, 16px, 0); }
    65% { clip: rect(17px, 9999px, 21px, 0); }
    70% { clip: rect(11px, 9999px, 3px, 0); }
    75% { clip: rect(51px, 9999px, 80px, 0); }
    80% { clip: rect(74px, 9999px, 35px, 0); }
    85% { clip: rect(20px, 9999px, 11px, 0); }
    90% { clip: rect(13px, 9999px, 60px, 0); }
    95% { clip: rect(5px, 9999px, 98px, 0); }
    100% { clip: rect(89px, 9999px, 96px, 0); }
}

/* Nav */
.hud-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(to bottom, rgba(10,10,10,0.9), transparent);
    font-family: var(--font-hud);
    border-bottom: 1px solid rgba(0,255,255,0.2);
    backdrop-filter: blur(5px);
}
.hud-nav .logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-neon-blue);
    letter-spacing: 2px;
    cursor: pointer;
}
.nav-links { display: flex; gap: 30px; }
.nav-link {
    color: var(--color-text-main);
    text-decoration: none;
    font-size: 1.1rem;
    text-transform: uppercase;
    position: relative;
    padding: 5px 0;
    transition: color 0.3s, text-shadow 0.3s;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--color-neon-blue);
    transition: width 0.3s ease;
    box-shadow: 0 0 5px var(--color-neon-blue);
}
.nav-link:hover {
    color: var(--color-white);
    text-shadow: 0 0 8px var(--color-neon-blue);
}
.nav-link:hover::after { width: 100%; }

.nav-link.highlight {
    color: var(--color-neon-pink);
}
.nav-link.highlight::after { background: var(--color-neon-pink); box-shadow: 0 0 5px var(--color-neon-pink);}
.nav-link.highlight:hover { text-shadow: 0 0 8px var(--color-neon-pink); }

/* Buttons */
.cyber-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 15px 40px;
    background: rgba(0, 0, 0, 0.4);
    color: var(--color-neon-blue);
    font-family: var(--font-hud);
    font-size: 1.2rem;
    font-weight: bold;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 2px;
    border: 1px solid var(--color-neon-blue);
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    clip-path: polygon(15px 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%, 0 15px);
}
.cyber-button:hover {
    background: rgba(0, 255, 255, 0.1);
    color: var(--color-white);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.5), inset 0 0 15px rgba(0, 255, 255, 0.5);
}
.cyber-button.primary {
    border-color: var(--color-neon-pink);
    color: var(--color-neon-pink);
}
.cyber-button.primary:hover {
    background: rgba(255, 0, 255, 0.1);
    box-shadow: 0 0 15px rgba(255, 0, 255, 0.5), inset 0 0 15px rgba(255, 0, 255, 0.5);
}

.btn-tag {
    position: absolute;
    bottom: -2px;
    right: 5px;
    font-size: 0.6rem;
    color: var(--color-text-sub);
}

.cyber-button::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 20%; height: 100%;
    background: rgba(255,255,255,0.2);
    transform: skewX(-45deg);
    transition: 0.5s;
}
.cyber-button:hover::before {
    left: 120%;
}

.massive {
    font-size: 1.5rem;
    padding: 20px 60px;
}

/* Sections */
.section {
    padding: 120px 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
}
.fullscreen-section {
    height: 100vh;
    padding: 0;
}
.dark-bg { background: rgba(5,5,5,0.8); }

.section-header { margin-bottom: 60px; }
.section-header.right-align { text-align: right; border-right: 4px solid var(--color-neon-blue); padding-right: 20px;}
.section-header.center-align { text-align: center; }
.section-header:not(.right-align):not(.center-align) { border-left: 4px solid var(--color-neon-pink); padding-left: 20px;}

.section-title {
    font-size: 3rem;
    margin: 0;
    text-shadow: 0 0 5px currentColor;
}
.subtitle {
    font-family: var(--font-hud);
    font-size: 1.2rem;
    color: var(--color-text-sub);
    letter-spacing: 3px;
    margin-top: 10px;
}

/* Fade In Animation */
.fade-in-section {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.fade-in-section.is-visible {
    opacity: 1;
    transform: none;
}

/* Hero */
.hero {
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}
.hero-content {
    flex: 1;
    padding-left: 8%;
    z-index: 2;
}
.system-warning {
    font-family: var(--font-hud);
    color: var(--color-neon-red);
    border: 1px solid var(--color-neon-red);
    background: rgba(255,0,60,0.1);
    display: inline-block;
    padding: 5px 15px;
    margin-bottom: 20px;
    letter-spacing: 2px;
}
.hero-title {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 30px;
}
.hero-lead {
    font-size: 1.1rem;
    color: var(--color-text-main);
    max-width: 500px;
    margin-bottom: 40px;
    border-left: 2px solid var(--color-neon-blue);
    padding-left: 15px;
    background: linear-gradient(90deg, rgba(0,255,255,0.05), transparent);
}
.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 50%;
    height: 100%;
    z-index: 1;
    opacity: 0.8;
}

/* Hologram */
.hologram-circle {
    width: 600px;
    height: 600px;
    position: relative;
    border-radius: 50%;
    transform-style: preserve-3d;
    transform: perspective(800px) rotateX(60deg) rotateY(10deg);
}
.circle-outer, .circle-inner {
    position: absolute;
    border-radius: 50%;
    border: 2px dashed var(--color-neon-blue);
    box-shadow: 0 0 20px var(--color-neon-blue), inset 0 0 20px var(--color-neon-blue);
    animation: rotate 20s linear infinite;
}
.circle-outer {
    width: 100%; height: 100%;
    top: 0; left: 0;
    border: 1px solid rgba(0,255,255,0.3);
}
.circle-inner {
    width: 60%; height: 60%;
    top: 20%; left: 20%;
    border: 3px solid var(--color-neon-pink);
    border-style: dotted;
    box-shadow: 0 0 20px var(--color-neon-pink), inset 0 0 20px var(--color-neon-pink);
    animation: rotate 15s linear infinite reverse;
}
.data-stream {
    position: absolute;
    width: 10%; height: 200%;
    top: -50%; left: 45%;
    background: linear-gradient(to bottom, transparent, rgba(0,255,255,0.1), transparent);
    animation: hologram-scan 4s infinite linear;
    transform: rotateY(90deg);
}
@keyframes rotate { 100% { transform: rotate(360deg); } }
@keyframes hologram-scan { 0% { transform: translateY(-50%); } 100% { transform: translateY(50%); } }

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: var(--font-hud);
    color: var(--color-neon-blue);
    letter-spacing: 3px;
    font-size: 0.8rem;
    z-index: 2;
}
.scroll-indicator .arrow {
    width: 2px;
    height: 40px;
    background: linear-gradient(transparent, var(--color-neon-blue));
    margin-top: 10px;
    animation: scrollDrop 2s infinite;
}
@keyframes scrollDrop {
    0% { transform: scaleY(0); transform-origin: top; opacity: 1;}
    50% { transform: scaleY(1); transform-origin: top; opacity: 1;}
    50.1% { transform: scaleY(1); transform-origin: bottom; opacity: 1;}
    100% { transform: scaleY(0); transform-origin: bottom; opacity: 0;}
}

/* Layouts */
.split-layout {
    display: flex;
    gap: 60px;
    align-items: center;
}
.text-block { flex: 1.2; font-size: 1.1rem; }
.text-block p { margin-bottom: 20px; color: var(--color-text-main); line-height: 1.8; }
.visual-block { flex: 0.8; }

.tech-panel {
    border: 1px solid var(--color-text-sub);
    background: rgba(0,31,63,0.3);
    box-shadow: 0 0 30px rgba(0,0,0,0.8) inset, 0 0 10px rgba(0,255,255,0.1);
    position: relative;
    padding: 2px;
    backdrop-filter: blur(5px);
}
.tech-panel::before, .tech-panel::after {
    content: ''; position: absolute; width: 15px; height: 15px; border: 2px solid var(--color-neon-blue);
}
.tech-panel::before { top: -2px; left: -2px; border-right: none; border-bottom: none; }
.tech-panel::after { bottom: -2px; right: -2px; border-left: none; border-top: none; }

.panel-header {
    background: rgba(0, 255, 255, 0.1);
    padding: 10px 15px;
    font-family: var(--font-hud);
    color: var(--color-neon-blue);
    border-bottom: 1px solid var(--color-text-sub);
    letter-spacing: 2px;
}
.panel-body { padding: 20px; font-family: var(--font-body); }
.status-list { list-style: none; padding: 0; margin: 0; }
.status-list li { margin-bottom: 15px; border-bottom: 1px dotted rgba(255,255,255,0.1); padding-bottom: 5px; }

/* Grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}
.feature-card {
    background: linear-gradient(135deg, rgba(20,20,20,0.8), rgba(5,5,5,0.9));
    padding: 40px 30px;
    position: relative;
    border: 1px solid rgba(255,255,255,0.1);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s;
    backdrop-filter: blur(4px);
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%);
}
.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,255,255,0.1);
    border-color: rgba(0,255,255,0.4);
}
.card-icon {
    font-family: var(--font-heading);
    font-size: 5rem;
    font-weight: 900;
    color: rgba(255,255,255,0.03);
    position: absolute;
    top: 10px; right: 20px;
    line-height: 1;
    transition: 0.4s;
}
.feature-card:hover .card-icon {
    color: rgba(0,255,255,0.1);
}
.card-icon.neon-pink { color: rgba(255,0,255,0.03); }
.feature-card:hover .card-icon.neon-pink { color: rgba(255,0,255,0.1); }
.card-icon.neon-green { color: rgba(57,255,20,0.03); }
.feature-card:hover .card-icon.neon-green { color: rgba(57,255,20,0.1); }


.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}
.feature-card p {
    color: var(--color-text-sub);
    position: relative;
    z-index: 2;
}
.decorative-bar {
    width: 0;
    height: 3px;
    background: var(--color-neon-blue);
    position: absolute;
    bottom: 0;
    left: 0;
    transition: width 0.4s ease;
}
.feature-card:hover .decorative-bar { width: 100%; }

/* Diagram */
.architecture-diagram {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 60px 0;
}
.node {
    padding: 20px 40px;
    border: 1px solid var(--color-neon-blue);
    background: rgba(0,31,63,0.5);
    font-family: var(--font-hud);
    font-size: 1.2rem;
    letter-spacing: 2px;
    color: var(--color-white);
    position: relative;
    box-shadow: 0 0 15px rgba(0,255,255,0.2);
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}
.core-node {
    border-color: var(--color-neon-pink);
    box-shadow: 0 0 30px rgba(255,0,255,0.3);
    font-size: 1.5rem;
    font-weight: bold;
    animation: neon-pulse 3s infinite;
}
@keyframes neon-pulse {
    0%, 100% { box-shadow: 0 0 30px rgba(255,0,255,0.3); }
    50% { box-shadow: 0 0 50px rgba(255,0,255,0.6); }
}

.wire {
    width: 80px;
    height: 2px;
    background: var(--color-text-sub);
    position: relative;
    overflow: hidden;
}
.wire::after {
    content: ''; position: absolute; top:-2px; left:0; width: 15px; height: 6px; background: var(--color-neon-green);
    animation: wire-flow 2s infinite linear;
    box-shadow: 0 0 10px var(--color-neon-green);
}
@keyframes wire-flow { 0% { left: -20px;} 100% { left: 100%; } }
.diagram-info {text-align: center; max-width: 800px; margin: 0 auto; color: var(--color-text-sub); border: 1px dashed rgba(255,255,255,0.2); padding: 20px;}

/* CTA Countdown */
.cta-section { background: radial-gradient(circle at center, rgba(42,10,42,0.4) 0%, var(--color-bg-base) 70%); }
.cta-title { font-size: 4rem; margin-bottom: 20px;}
.cta-subtitle { font-size: 1.2rem; margin-bottom: 40px; }
.countdown-timer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    font-family: var(--font-heading);
    font-size: 3.5rem;
    margin-bottom: 50px;
    color: var(--color-neon-blue);
    text-shadow: 0 0 15px var(--color-neon-blue);
}
.time-block { display: flex; flex-direction: column; align-items: center; width: 80px; }
.time-block .label { font-size: 0.9rem; font-family: var(--font-hud); color: var(--color-white); text-shadow: none; margin-top: 5px; opacity: 0.7;}
.colon { animation: blink 1s infinite; }
.ms { color: var(--color-neon-pink); text-shadow: 0 0 10px var(--color-neon-pink); width: 60px; font-size: 2.5rem; align-self: flex-start; margin-top: 10px;}

/* Footer */
.cyber-footer {
    border-top: 1px solid rgba(0,255,255,0.2);
    padding: 60px 0 20px;
    background: var(--color-bg-darker);
    font-family: var(--font-hud);
}
.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}
.footer-logo {
    color: var(--color-text-sub);
    letter-spacing: 3px;
    font-size: 1.2rem;
}
.footer-links a {
    color: var(--color-text-sub);
    text-decoration: none;
    margin-left: 30px;
    transition: color 0.3s;
    text-transform: uppercase;
    font-size: 0.9rem;
}
.footer-links a:hover { color: var(--color-neon-blue); text-shadow: 0 0 5px var(--color-neon-blue);}
.footer-bottom {
    text-align: center;
    color: rgba(255,255,255,0.3);
    font-size: 0.8rem;
    border-top: 1px dotted rgba(255,255,255,0.1);
    padding-top: 20px;
    letter-spacing: 1px;
}

/* Responsive */
@media (max-width: 900px) {
    .hologram-circle { width: 400px; height: 400px; }
}

@media (max-width: 768px) {
    .hud-nav { padding: 15px 20px; flex-direction: column; gap: 10px; background: rgba(10,10,10,0.95); }
    .hero { flex-direction: column; justify-content: center; }
    .hero-content { padding: 0 20px; margin-top: 150px; text-align: center; }
    .hero-lead { border-left: none; background: none; margin: 0 auto 30px; }
    .hero-title { font-size: 3rem; }
    .hero-visual { position: absolute; width: 100%; top: 20%; transform: none; right: auto; margin-top: 0; opacity: 0.3; z-index: -1;}
    .hologram-circle { width: 300px; height: 300px; }
    .split-layout { flex-direction: column; gap: 40px;}
    .architecture-diagram { flex-direction: column; }
    .wire { width: 2px; height: 40px; }
    .wire::after { top: 0; left: -2px; width: 6px; height: 15px; animation: wire-flow-y 2s infinite linear; }
    @keyframes wire-flow-y { 0% { top: -20px; } 100% { top: 100%; } }
    .countdown-timer { font-size: 2.2rem; gap: 10px; }
    .time-block { width: 50px; }
    .ms { font-size: 1.5rem; width: 40px; }
    .section-header { text-align: center !important; border: none !important; padding: 0 !important;}
    .section-title { font-size: 2.5rem; }
    .footer-top { flex-direction: column; gap: 20px; }
    .footer-links a { margin: 0 10px; }
}
