html, body { 
    height: 100%; 
    width: 100%; 
    margin: 0; 
    scroll-behavior: smooth; 
}

body {
    font-family: 'Space Grotesk', sans-serif;
    background: #0a0a0f;
    color: #e8e8ee;
    overflow-x: hidden;
}

.font-display { font-family: 'Fraunces', serif; }
.font-mono { font-family: 'JetBrains Mono', monospace; }

/* Grid background with circuit vibe */
.circuit-bg {
    background-image:
        linear-gradient(rgba(200, 255, 100, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(200, 255, 100, 0.04) 1px, transparent 1px);
    background-size: 60px 60px;
}

/* Glow */
.glow-accent {
    box-shadow: 0 0 40px rgba(204, 255, 0, 0.25), 0 0 80px rgba(204, 255, 0, 0.1);
}

.text-glow {
    text-shadow: 0 0 20px rgba(204, 255, 0, 0.5);
}

/* Pulse dot */
@keyframes pulseDot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.3); }
}
.pulse-dot { animation: pulseDot 2s ease-in-out infinite; }

/* Marquee */
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.marquee-track {
    animation: marquee 30s linear infinite;
    width: max-content;
}

/* Reveal on load */
@keyframes rise {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
.rise { animation: rise 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both; }

/* Waveform animation */
@keyframes wave {
    0%, 100% { transform: scaleY(0.3); }
    50% { transform: scaleY(1); }
}
.wave-bar {
    animation: wave 1.2s ease-in-out infinite;
    transform-origin: center;
}

/* Hover card tilt */
.project-card {
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.3s;
}
.project-card:hover {
    transform: translateY(-6px);
    border-color: #ccff00 !important;
}

/* Circuit line SVG animation */
@keyframes dash {
    to { stroke-dashoffset: -200; }
}
.circuit-line {
    stroke-dasharray: 6 8;
    animation: dash 4s linear infinite;
}

/* Scanline */
.scanline::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(204,255,0,0.03) 50%, transparent 100%);
    background-size: 100% 8px;
    pointer-events: none;
}

/* Blinking cursor */
@keyframes blink { 50% { opacity: 0; } }
.cursor-blink { animation: blink 1s step-end infinite; }

/* Button */
.btn-primary {
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
}
.btn-primary::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s;
}
.btn-primary:hover::before { left: 100%; }

/* Noise */
.noise {
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.035;
    z-index: 1;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='0.9'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Section divider */
.section-num {
    letter-spacing: 0.3em;
}

/* Skill chip hover */
.skill-chip {
    transition: all 0.3s;
}
.skill-chip:hover {
    background: #ccff00;
    color: #0a0a0f;
    transform: translateY(-2px);
}

/* Custom scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #0a0a0f; }
::-webkit-scrollbar-thumb { background: #2a2a35; border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: #ccff00; }

[data-lucide] { width: 1em; height: 1em; }