:root {
    --bg-color: #030303;
    --card-bg: rgba(15, 15, 15, 0.4);
    --text-color: #f5f5f5;
    --accent: #0070f3;
    --secondary: #666;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
/* Background Chart Canvas */
#chartCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.15; /* Keep it subtle */
    pointer-events: none;
}

/* Ensure hero content stays above the canvas */
.hero-content {
    position: relative;
    z-index: 10;
}
body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* 1. Grainy Texture Overlay */
.noise-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: url('https://grainy-gradients.vercel.app/noise.svg');
    opacity: 0.05;
    pointer-events: none;
    z-index: 9999;
}

.container { width: 90%; max-width: 1000px; margin: 0 auto; padding: 6rem 0; }
.highlight { color: var(--accent); }

/* Navigation */
nav {
    background: rgba(3, 3, 3, 0.7);
    backdrop-filter: blur(12px);
    position: fixed; width: 100%; top: 0; z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.nav-container { display: flex; justify-content: space-between; align-items: center; padding: 1.2rem 5%; }
.nav-links { display: flex; list-style: none; }
.nav-links li { margin-left: 2rem; }
.nav-links a { text-decoration: none; color: var(--secondary); font-size: 0.85rem; transition: 0.3s; }
.nav-links a:hover { color: var(--text-color); }

/* Hero Texture */
.hero {
    position: relative; height: 100vh; display: flex; align-items: center; 
    justify-content: center; text-align: center; overflow: hidden; perspective: 1200px;
}

.grid-overlay {
    position: absolute; width: 200%; height: 200%; top: -10%; left: -50%;
    background-image: linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 80px 80px;
    transform: rotateX(70deg);
    animation: grid-move 20s linear infinite;
}

@keyframes grid-move { from { background-position: 0 0; } to { background-position: 0 80px; } }

.hero::after {
    content: ""; position: absolute; inset: 0;
    background: radial-gradient(circle at center, transparent 0%, var(--bg-color) 90%);
}

.hero-content { position: relative; z-index: 10; }

.build-tag {
    font-family: 'JetBrains Mono', monospace; font-size: 0.6rem; color: var(--secondary);
    letter-spacing: 4px; margin-bottom: 2rem; text-transform: uppercase;
}

.hero-content h1 { font-size: clamp(2.5rem, 10vw, 5rem); font-weight: 600; letter-spacing: -3px; margin-bottom: 0.5rem; }
.hero-content p { font-family: 'JetBrains Mono', monospace; color: var(--secondary); margin-bottom: 3rem; font-size: 1.1rem; }

.btn {
    padding: 0.8rem 2.2rem; background: var(--text-color); color: var(--bg-color);
    text-decoration: none; border-radius: 2px; font-weight: 600; font-size: 0.85rem;
    display: inline-block; margin: 0.5rem; transition: 0.4s;
}

.btn-outline { background: transparent; border: 1px solid rgba(255, 255, 255, 0.1); color: var(--text-color); }
.btn:hover { background: var(--accent); color: white; border-color: var(--accent); transform: translateY(-2px); }

/* Timeline Texture */
.section-title { font-size: 1.2rem; color: var(--secondary); margin-bottom: 3.5rem; font-weight: 500; text-transform: uppercase; letter-spacing: 2px; }

.timeline { border-left: 1px solid rgba(255, 255, 255, 0.05); }
.timeline-item { position: relative; padding-left: 2.5rem; margin-bottom: 4.5rem; }
.timeline-item::before { content: ""; position: absolute; left: -1px; top: 8px; width: 1px; height: 100%; background: var(--accent); opacity: 0; transition: 0.5s; }
.timeline-item:hover::before { opacity: 1; }

.time { font-family: 'JetBrains Mono', monospace; color: var(--accent); font-size: 0.75rem; margin-bottom: 0.5rem; }
.company { font-size: 1.4rem; font-weight: 500; margin-bottom: 0.5rem; }
.desc { color: var(--secondary); font-size: 0.95rem; max-width: 550px; }

/* Interest Tags */
.interest-tags { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.tag {
    background: rgba(255, 255, 255, 0.02); border: 1px solid rgba(255, 255, 255, 0.05); 
    padding: 0.6rem 1.2rem; border-radius: 2px; font-size: 0.8rem; color: var(--secondary); transition: 0.3s;
}
.tag:hover { border-color: var(--accent); color: var(--text-color); background: rgba(0, 112, 243, 0.05); }

/* Interactive Cards */
.project-card {
    position: relative; background: var(--card-bg); padding: 4rem 3rem; border-radius: 2px;
    border: 1px solid rgba(255, 255, 255, 0.03); transition: 0.5s; overflow: hidden;
}

.project-card:hover { border-color: rgba(255, 255, 255, 0.1); transform: translateY(-5px); }

.card-glow {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at var(--px, 50%) var(--py, 50%), rgba(255,255,255,0.04) 0%, transparent 60%);
    pointer-events: none;
}

.project-card h3 { font-size: 1.5rem; margin-bottom: 1rem; font-weight: 500; }
.project-card p { color: var(--secondary); font-size: 0.95rem; margin-bottom: 2rem; }
.stack span { font-family: 'JetBrains Mono', monospace; font-size: 0.65rem; color: var(--accent); margin-right: 20px; opacity: 0.7; }

/* Simple Footer */
footer { padding: 6rem 0; text-align: center; }
.footer-line { width: 30px; height: 1px; background: var(--secondary); margin: 0 auto 2.5rem; opacity: 0.3; }
footer p { font-size: 0.7rem; color: var(--secondary); letter-spacing: 2px; text-transform: uppercase; }

@media (max-width: 768px) {
    .hero-content h1 { font-size: 3rem; }
}
