:root {
    --bg-color: #050505;
    --surface-color: #111111;
    --border-color: #222222;
    --text-primary: #f0f0f0;
    --text-secondary: #888888;
    --accent-color: #00ffcc;
    --accent-glow: rgba(0, 255, 204, 0.2);
    --font-mono: 'Courier New', Courier, monospace;
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

body {
    font-family: var(--font-sans);
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    background-image: linear-gradient(var(--border-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--border-color) 1px, transparent 1px);
    background-size: 40px 40px;
    background-position: center center;
}

/* Noise texture for that techy monitor feel */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.03;
    background: url('data:image/svg+xml,%3Csvg viewBox=%220 0 200 200%22 xmlns=%22http://www.w3.org/2000/svg%22%3E%3Cfilter id=%22noiseFilter%22%3E%3CfeTurbulence type=%22fractalNoise%22 baseFrequency=%220.65%22 numOctaves=%223%22 stitchTiles=%22stitch%22/%3E%3C/filter%3E%3Crect width=%22100%25%22 height=%22100%25%22 filter=%22url(%23noiseFilter)%22/%3E%3C/svg%3E');
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
}

.nav-brand {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--accent-color);
    text-shadow: 0 0 10px var(--accent-glow);
}

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

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.9rem;
    font-family: var(--font-mono);
    transition: color 0.3s;
}

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

.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 10%;
}

.hero-content {
    max-width: 800px;
}

.glitch-text {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1rem;
    position: relative;
}

.typing-text {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    min-height: 2rem;
}

.cursor {
    animation: blink 1s infinite;
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
}

.btn {
    padding: 0.8rem 1.5rem;
    font-family: var(--font-mono);
    text-decoration: none;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    border-radius: 4px;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-block;
}

.btn:hover {
    background: var(--accent-glow);
    box-shadow: 0 0 15px var(--accent-glow);
}

.social-links {
    display: inline-flex;
    gap: 1rem;
    margin-left: 2rem;
}

.social-btn {
    color: var(--text-secondary);
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    transition: color 0.3s;
}

.social-btn:hover {
    color: var(--accent-color);
}

.section {
    padding: 100px 10%;
    min-height: 50vh;
}

.section-title {
    font-family: var(--font-mono);
    color: var(--accent-color);
    font-size: 2rem;
    margin-bottom: 3rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}

.skills-grid,
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.skill-card,
.project-card,
.achievement-item {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: 8px;
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.skill-card:hover,
.project-card:hover,
.achievement-item:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    box-shadow: 0 10px 30px var(--accent-glow);
}

.skill-card h3,
.project-card h3,
.achievement-item h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.tech-stack {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.timeline {
    border-left: 2px solid var(--border-color);
    padding-left: 2rem;
    margin-left: 1rem;
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
}

.timeline-dot {
    position: absolute;
    left: -35px;
    top: 5px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--bg-color);
    border: 2px solid var(--accent-color);
}

.timeline-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.accent {
    color: var(--accent-color);
}

.date {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--text-secondary);
    display: block;
    margin-bottom: 1rem;
}

.timeline-content ul {
    list-style-position: inside;
    color: var(--text-secondary);
}

.timeline-content li {
    margin-bottom: 0.5rem;
}

footer {
    text-align: center;
    padding: 2rem;
    border-top: 1px solid var(--border-color);
    font-family: var(--font-mono);
    color: var(--text-secondary);
    background: var(--surface-color);
}

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

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

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero {
        padding: 0 5%;
        text-align: center;
        justify-content: center;
    }

    .social-links {
        display: block;
        margin: 1rem 0 0 0;
    }

    .social-btn {
        display: inline-block;
        margin: 0.5rem;
    }

    .timeline {
        border-left: none;
        padding-left: 0;
        margin-left: 0;
    }

    .timeline-dot {
        display: none;
    }
}