:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --text-primary: #f5f5f5;
    --text-secondary: #6b6b6b;
    --accent: #60a5fa;
    --accent-glow: rgba(96, 165, 250, 0.15);
    --max-width: 800px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-x: hidden;
}

/* Subtle background glow */
.bg-glow {
    position: fixed;
    top: -50%;
    left: -20%;
    width: 60%;
    height: 100%;
    background: radial-gradient(
        ellipse at center,
        rgba(96, 165, 250, 0.03) 0%,
        transparent 70%
    );
    pointer-events: none;
    z-index: 0;
}

main {
    flex: 1;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 2rem 1.5rem;
    width: 100%;
    position: relative;
    z-index: 1;
}

section {
    margin-bottom: 4rem;
}

/* Typography */
h1 {
    font-family: 'JetBrains Mono', monospace;
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, var(--text-primary) 0%, #a8a8a8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2 {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

p {
    color: var(--text-secondary);
    font-size: 1.125rem;
    font-weight: 300;
}

/* Hero section */
.hero {
    padding: 6rem 0 4rem;
}

.hero p {
    margin-top: 0.25rem;
}

.tagline {
    margin-top: 0.75rem !important;
    font-size: 1.375rem;
    font-weight: 400;
    color: var(--text-secondary);
}

/* Blinking cursor */
.cursor {
    display: inline-block;
    color: var(--accent);
    animation: blink 1s step-end infinite;
    margin-left: 2px;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Reveal animations */
.reveal {
    opacity: 0;
    transform: translateY(12px);
    animation: revealUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.reveal-section {
    opacity: 0;
    transform: translateY(16px);
    animation: revealUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes revealUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Links */
.links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.links li {
    display: inline-flex;
}

.links a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.0625rem;
    font-weight: 400;
    position: relative;
    padding-bottom: 2px;
    transition: color 0.25s ease;
}

.links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

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

.links a:hover::after {
    width: 100%;
}

/* Project list */
.project-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.project-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.project-item a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.0625rem;
    font-weight: 400;
    position: relative;
    padding-bottom: 2px;
    transition: color 0.25s ease;
    width: fit-content;
}

.project-item a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.project-item a:hover {
    color: var(--accent);
}

.project-item a:hover::after {
    width: 100%;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.625rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.25rem 0.625rem;
    border-radius: 9999px;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.tag:hover {
    border-color: rgba(96, 165, 250, 0.3);
    color: var(--accent);
}

/* Contact section horizontal layout */
.contact .links {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 2rem;
}

/* Footer */
footer {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 2rem 1.5rem 3rem;
    width: 100%;
    position: relative;
    z-index: 1;
}

footer p {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: var(--text-secondary);
    letter-spacing: 0.02em;
}

/* Responsive */
@media (max-width: 600px) {
    h1 {
        font-size: 2.25rem;
    }

    .tagline {
        font-size: 1.125rem;
    }

    .hero {
        padding: 3rem 0 2rem;
    }

    section {
        margin-bottom: 3rem;
    }

    .contact .links {
        gap: 1.25rem;
    }

    .links a {
        font-size: 1rem;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .reveal,
    .reveal-section {
        animation: none;
        opacity: 1;
        transform: none;
    }

    .cursor {
        animation: none;
        opacity: 1;
    }

    .links a::after {
        transition: none;
    }
}
