:root {
    --neon-blue: #00f3ff;
    --neon-purple: #bc13fe;
    --neon-green: #0aff0a;
    --bg-dark: #050510;
    --panel-bg: rgba(10, 15, 30, 0.6);
    --border-glow: 0 0 10px rgba(0, 243, 255, 0.5);
    --font-head: 'Orbitron', sans-serif;
    --font-body: 'Rajdhani', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: #fff;
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Background Canvas */
canvas#chipCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(circle at center, #0a0a20 0%, #000000 100%);
}

.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,0) 50%, rgba(0,0,0,0.1) 50%, rgba(0,0,0,0.1));
    background-size: 100% 4px;
    z-index: 999;
    pointer-events: none;
    opacity: 0.3;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 3rem;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    background: rgba(5, 5, 16, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 243, 255, 0.2);
}

.logo-container h1 {
    font-family: var(--font-head);
    font-size: 1.5rem;
    letter-spacing: 2px;
    color: #fff;
}

.highlight {
    color: var(--neon-blue);
    text-shadow: 0 0 10px var(--neon-blue);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    color: #ccc;
    text-decoration: none;
    font-family: var(--font-head);
    font-size: 0.9rem;
    text-transform: uppercase;
    transition: 0.3s;
}

nav a:hover {
    color: var(--neon-blue);
    text-shadow: 0 0 8px var(--neon-blue);
}

/* Main Layout */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 20px 50px;
}

/* Reusable Glass Panel */
.glass-panel {
    background: var(--panel-bg);
    border: 1px solid rgba(0, 243, 255, 0.1);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    padding: 3rem;
    margin-bottom: 4rem;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.glass-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--neon-blue), transparent);
    animation: scan 3s infinite linear;
}

@keyframes scan {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

h2, h3, h4, h5 {
    font-family: var(--font-head);
    color: #fff;
    margin-bottom: 1rem;
}

h3 {
    font-size: 2rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

.section-number {
    color: var(--neon-purple);
    margin-right: 10px;
    font-size: 1.5rem;
}

/* Hero Section */
.hero-section {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-content h2 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.subtitle {
    font-size: 1.5rem;
    color: #aaa;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.cta-button {
    display: inline-block;
    padding: 1rem 3rem;
    background: transparent;
    border: 1px solid var(--neon-blue);
    color: var(--neon-blue);
    font-family: var(--font-head);
    font-weight: bold;
    text-transform: uppercase;
    text-decoration: none;
    font-size: 1.2rem;
    transition: 0.3s;
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.cta-button:hover {
    background: var(--neon-blue);
    color: #000;
    box-shadow: 0 0 30px rgba(0, 243, 255, 0.6);
}

/* Glitch Effect */
.glitch {
    position: relative;
    color: var(--neon-green);
}
.glitch::before, .glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-dark);
}
.glitch::before {
    left: 2px;
    text-shadow: -1px 0 red;
    clip: rect(24px, 550px, 90px, 0);
    animation: glitch-anim-1 2.5s infinite linear alternate-reverse;
}
.glitch::after {
    left: -2px;
    text-shadow: -1px 0 blue;
    clip: rect(85px, 550px, 140px, 0);
    animation: glitch-anim-2 3s infinite linear alternate-reverse;
}

@keyframes glitch-anim-1 {
    0% { clip: rect(20px, 9999px, 15px, 0); }
    100% { clip: rect(85px, 9999px, 80px, 0); }
}
@keyframes glitch-anim-2 {
    0% { clip: rect(65px, 9999px, 100px, 0); }
    100% { clip: rect(10px, 9999px, 5px, 0); }
}

/* Timeline */
.timeline {
    border-left: 2px solid var(--neon-purple);
    padding-left: 2rem;
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2.6rem;
    top: 5px;
    width: 1rem;
    height: 1rem;
    background: var(--bg-dark);
    border: 2px solid var(--neon-purple);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--neon-purple);
}

.year {
    font-size: 1.2rem;
    color: var(--neon-purple);
    font-weight: bold;
    margin-bottom: 0.5rem;
}

/* Cards & Grid */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.info-card {
    background: rgba(0, 243, 255, 0.05);
    padding: 2rem;
    border-left: 3px solid var(--neon-blue);
}

.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.card {
    background: rgba(255, 255, 255, 0.03);
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--neon-green);
    box-shadow: 0 10px 20px rgba(10, 255, 10, 0.1);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* Code Comparison */
.code-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.code-block {
    background: #000;
    padding: 1.5rem;
    border-radius: 5px;
    font-family: 'Consolas', monospace;
    font-size: 0.9rem;
    border: 1px solid #333;
}

.code-header {
    margin-bottom: 1rem;
    color: #888;
    text-transform: uppercase;
    font-size: 0.8rem;
    border-bottom: 1px solid #333;
    padding-bottom: 0.5rem;
}

.old { border-color: #ff3333; }
.old .code-header { color: #ff3333; }

.new { border-color: var(--neon-green); }
.new .code-header { color: var(--neon-green); }

.prompt-text {
    color: var(--neon-green);
}

.ai-response {
    margin-top: 1rem;
    color: #888;
}

/* Footer */
footer {
    text-align: center;
    padding: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #666;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s, transform 1s;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile */
@media (max-width: 768px) {
    header { padding: 1rem; }
    nav { display: none; } /* Simplified for MVP */
    .hero-content h2 { font-size: 2.5rem; }
    .grid-2, .code-comparison { grid-template-columns: 1fr; }
}
