:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-card: #16161f;
    --bg-card-hover: #1a1a25;
    --border: #1e1e2a;
    --border-accent: #2a2a3a;
    --text-primary: #e4e4e8;
    --text-secondary: #8888a0;
    --text-muted: #7b7b95;
    --accent: #4af;
    --accent-dim: rgba(68, 170, 255, 0.1);
    --accent-glow: rgba(68, 170, 255, 0.15);
    --green: #4ade80;
    --green-dim: rgba(74, 222, 128, 0.1);
    --font-mono: 'JetBrains Mono', monospace;
    --font-sans: 'Outfit', sans-serif;
}

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

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--border-accent) var(--bg-primary);
}

body {
    font-family: var(--font-sans);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
}

::selection {
    background: var(--accent);
    color: var(--bg-primary);
}

/* ─── Noise overlay ─── */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 9999;
}

/* ─── Grid lines background ─── */
.grid-bg {
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(var(--border) 1px, transparent 1px),
        linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 80px 80px;
    opacity: 0.15;
    pointer-events: none;
    z-index: 0;
}

/* ─── Navigation ─── */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 0 2rem;
}

nav .nav-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}

nav .logo {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--accent);
    letter-spacing: -0.02em;
    text-decoration: none;
}

nav .logo span { color: var(--text-muted); }

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

nav .nav-links a {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.4rem 0.75rem;
    border-radius: 6px;
    transition: all 0.2s;
    letter-spacing: -0.01em;
}

nav .nav-links a:hover {
    color: var(--text-primary);
    background: var(--accent-dim);
}

/* ─── Main Container ─── */
main {
    position: relative;
    z-index: 1;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ─── Section base ─── */
section {
    padding: 6rem 0;
    border-bottom: 1px solid var(--border);
}

section:last-child { border-bottom: none; }

.section-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.section-label::before {
    content: '//';
    color: var(--text-muted);
}

/* ─── Hero ─── */
#hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 60px;
    border-bottom: 1px solid var(--border);
}

.hero-greeting {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeUp 0.6s 0.2s forwards;
}

.hero-name {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeUp 0.6s 0.4s forwards;
}

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

.hero-tagline {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 600px;
    line-height: 1.8;
    font-weight: 300;
    opacity: 0;
    animation: fadeUp 0.6s 0.6s forwards;
}

.hero-meta {
    margin-top: 3rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    opacity: 0;
    animation: fadeUp 0.6s 0.8s forwards;
}

.hero-tag {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    padding: 0.4rem 0.85rem;
    border-radius: 100px;
    border: 1px solid var(--border-accent);
    color: var(--text-secondary);
    background: var(--bg-secondary);
}

.hero-tag.highlight {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-dim);
}

/* ─── About ─── */
.about-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: start;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
    font-weight: 300;
    font-size: 1.02rem;
}

.about-text p strong {
    color: var(--text-primary);
    font-weight: 500;
}

.text-link {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px solid var(--accent);
}

.about-sidebar {
    display: flex;
    justify-content: center;
}

.about-photo {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--border-accent);
    margin-bottom: 1.5rem;
    filter: grayscale(20%);
    transition: filter 0.3s;
}

.about-photo:hover {
    filter: grayscale(0%);
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.stat-block {
    padding: 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
}

.stat-number {
    font-family: var(--font-mono);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent);
}

.stat-label {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* ─── VPR Section ─── */
.vpr-hero {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 3rem;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
}

.vpr-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    pointer-events: none;
}

.vpr-hero h3 {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 0.5rem;
}

.vpr-hero h3 span { color: var(--accent); }

.vpr-hero .vpr-role {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--green);
    background: var(--green-dim);
    display: inline-block;
    padding: 0.3rem 0.75rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
}

.vpr-hero p {
    color: var(--text-secondary);
    font-weight: 300;
    max-width: 650px;
    position: relative;
}

.vpr-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.vpr-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.75rem;
    transition: all 0.3s;
}

.vpr-card:hover {
    border-color: var(--border-accent);
    background: var(--bg-card-hover);
    transform: translateY(-2px);
}

.vpr-card h4 {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem;
}

.vpr-card p {
    color: var(--text-secondary);
    font-size: 0.92rem;
    font-weight: 300;
}

.vpr-card .tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 1rem;
}

.vpr-card .tech-tag {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    color: var(--text-muted);
}

/* ─── Timeline ─── */
.timeline {
    position: relative;
    padding-left: 2.5rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(to bottom, var(--accent), var(--border-accent), var(--border));
}

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

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2.55rem;
    top: 0.5rem;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--bg-primary);
    border: 2px solid var(--accent);
}

.timeline-item.current::before {
    background: var(--accent);
    box-shadow: 0 0 12px var(--accent-glow);
}

.timeline-date {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-bottom: 0.35rem;
}

.timeline-title {
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 0.2rem;
}

.timeline-company {
    font-size: 0.9rem;
    color: var(--accent);
    margin-bottom: 0.75rem;
}

.timeline-desc {
    color: var(--text-secondary);
    font-weight: 300;
    font-size: 0.92rem;
}

.timeline-desc ul {
    list-style: none;
    margin-top: 0.5rem;
}

.timeline-desc ul li {
    position: relative;
    padding-left: 1.2rem;
    margin-bottom: 0.35rem;
}

.timeline-desc ul li::before {
    content: '›';
    position: absolute;
    left: 0;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

/* ─── Contact ─── */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    text-decoration: none;
    transition: all 0.3s;
}

.contact-card:hover {
    border-color: var(--accent);
    background: var(--bg-card-hover);
    transform: translateY(-2px);
}

.contact-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--accent-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon svg {
    width: 20px;
    height: 20px;
    stroke: var(--accent);
    fill: none;
    stroke-width: 1.5;
}

.contact-info .label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.contact-info .value {
    color: var(--text-primary);
    font-size: 0.95rem;
    margin-top: 0.15rem;
}

/* ─── Footer ─── */
footer {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 3rem 2rem;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border);
}

/* ─── Animations ─── */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ─── Mobile hamburger ─── */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 0.5rem; }
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--text-secondary); margin: 4px 0; transition: 0.3s; border-radius: 1px; }

/* ─── Responsive ─── */
@media (max-width: 768px) {
    .nav-toggle { display: block; }

    nav .nav-links {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        flex-direction: column;
        background: rgba(10, 10, 15, 0.95);
        backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--border);
        padding: 1rem;
    }

    nav .nav-links.open { display: flex; }

    .about-grid { grid-template-columns: 1fr; gap: 2rem; }

    .about-stats { grid-template-columns: repeat(2, 1fr); }
    .vpr-hero { padding: 2rem; }
    .vpr-details { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    section { padding: 4rem 0; }

    .hero-name { font-size: clamp(2rem, 8vw, 3rem); }
}
