:root {
    --accent: #7eb8c9;
    --gold: #c8a96e;
    --bg: #0e1117;
    --bg2: #13171f;
    --text: #e8e3da;
    --muted: #8b8780;
    --border: #1e2229;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none !important;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'DM Sans', sans-serif;
    font-weight: 300;
    cursor: none;
}

a, button, .card, .tab, .skill-pill, .contact-btn, .github {
    cursor: none;
}

/* ─── PROGRESS BAR ─── */
#progress {
    position: fixed;
    top: 0;
    height: 2px;
    background: var(--accent);
    width: 0%;
    z-index: 999;
    transition: width 0.1s linear;
}

/* ─── NAV ─── */
nav {
    position: fixed;
    width: 100%;
    z-index: 100;
    backdrop-filter: blur(12px);
    background: rgba(14, 17, 23, 0.85);
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s;
}

nav.scrolled {
    border-bottom-color: var(--border);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 60px;
}

.logo {
    font-family: 'Lora', serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.05em;
}

#navLinks {
    display: flex;
    gap: 36px;
    list-style: none;
}

#navLinks a {
    text-decoration: none;
    color: var(--muted);
    font-size: 0.88rem;
    letter-spacing: 0.02em;
    position: relative;
    transition: color 0.2s;
}

#navLinks a:hover {
    color: var(--text);
}

#navLinks a::after {
    content: "";
    height: 1px;
    width: 0;
    background: var(--accent);
    position: absolute;
    bottom: -5px;
    left: 0;
    transition: width 0.3s;
}

#navLinks a:hover::after {
    width: 100%;
}

/* Hamburger */
#menuBtn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

#menuBtn span {
    display: block;
    width: 24px;
    height: 1.5px;
    background: var(--text);
    transition: transform 0.3s, opacity 0.3s;
    transform-origin: center;
}

#menuBtn.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
#menuBtn.open span:nth-child(2) { opacity: 0; }
#menuBtn.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile drawer */
#mobileMenu {
    display: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s;
    background: rgba(14, 17, 23, 0.97);
    border-top: 1px solid var(--border);
}

#mobileMenu.open {
    max-height: 400px;
    padding: 20px 0 28px;
}

#mobileMenu ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
}

#mobileMenu a {
    text-decoration: none;
    color: var(--muted);
    font-size: 1rem;
    letter-spacing: 0.04em;
    transition: color 0.2s;
}

#mobileMenu a:hover { color: var(--accent); }

/* ─── HERO ─── */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 40px;
    width: 100%;
    padding: 0 60px;
}

.hero-text {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.tag {
    color: var(--accent);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* H1 — Lora serif for elegance */
h1.reveal-text {
    font-family: 'Lora', serif;
    font-size: clamp(2.4rem, 4.5vw, 3.8rem);
    font-weight: 400;
    line-height: 1.12;
    color: var(--text);
}

/* The accent word "actually" — explicitly teal, not gold */
.accent-word {
    font-style: italic;
    color: var(--accent) !important;
}

/* TEXT REVEAL — spans animate in */
.reveal-text .line {
    display: block;
    opacity: 0;
    transform: translateY(36px);
    animation: textReveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.reveal-text .line:nth-child(2) { animation-delay: 0.3s; }
.reveal-text .line:nth-child(3) { animation-delay: 0.55s; }

@keyframes textReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-sub {
    color: var(--muted);
    font-size: 0.9rem;
    letter-spacing: 0.03em;
    opacity: 0;
    animation: textReveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.8s forwards;
}

/* NN SVG */
#nn {
    width: 100%;
    height: 340px;
}

/* ─── SECTIONS ─── */
section {
    padding: 120px 80px;
}

section h2 {
    font-family: 'Lora', serif;
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 32px;
}

/* ─── ABOUT ─── */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 80px;
}

.about-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.about-container p {
    color: var(--muted);
    line-height: 1.85;
    font-size: 1.15rem;
}

.about-portrait {
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-portrait img {
    width: 260px;
    height: auto;
    display: block;
    filter: drop-shadow(0 8px 32px rgba(126, 184, 201, 0.1));
    transition: filter 0.4s, transform 0.4s;
}

.about-portrait img:hover {
    filter: drop-shadow(0 12px 40px rgba(126, 184, 201, 0.2));
    transform: translateY(-6px);
}

/* ─── EXPERIENCE ─── */
.exp-container {
    display: flex;
    gap: 64px;
}

.tabs {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 130px;
    border-left: 1px solid var(--border);
}

.tab {
    background: none;
    border: none;
    text-align: left;
    padding: 12px 24px;
    color: var(--muted);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.88rem;
    cursor: none;
    transition: color 0.2s, border-color 0.2s;
    border-left: 2px solid transparent;
    margin-left: -1px;
}

.tab:hover { color: var(--text); }

.tab.active {
    color: var(--accent);
    border-left-color: var(--accent);
}

.panel {
    display: none;
    flex-direction: column;
    gap: 16px;
}

.panel.active {
    display: flex;
}

.panel h3 {
    font-family: 'Lora', serif;
    font-size: 1.4rem;
    font-weight: 400;
}

.at {
    color: var(--accent);
    font-style: italic;
}

.period {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: var(--muted);
    letter-spacing: 0.05em;
}

.panel p {
    color: var(--muted);
    line-height: 1.8;
    font-size: 1.05rem;
    max-width: 620px;
}

/* ─── TECH TAGS ─── */
.tech-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 6px;
}

.tech-tags span {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: var(--accent);
    border: 1px solid rgba(126, 184, 201, 0.25);
    border-radius: 4px;
    padding: 4px 13px;
    letter-spacing: 0.04em;
}

/* ─── PROJECTS ─── */
.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.card {
    background: rgba(20, 24, 32, 0.6);
    padding: 36px;
    border-radius: 14px;
    border: 1px solid var(--border);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.3s,
                box-shadow 0.4s;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.card:hover {
    border-color: rgba(126, 184, 201, 0.4);
    box-shadow: 0 8px 32px rgba(126, 184, 201, 0.07);
}

.card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.card-top h3 {
    font-family: 'Lora', serif;
    font-size: 1.25rem;
    font-weight: 400;
}

.card p {
    color: var(--muted);
    line-height: 1.75;
    font-size: 1rem;
    flex: 1;
}

.github {
    color: var(--muted);
    font-size: 1.1rem;
    text-decoration: none;
    transition: color 0.2s;
}

.github:hover {
    color: var(--accent);
}

/* ─── CONTACT ─── */
.contact-lead {
    color: var(--muted);
    font-size: 1.15rem;
    margin-bottom: 44px;
    max-width: 700px;
    line-height: 1.8;
}

.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.88rem;
    letter-spacing: 0.04em;
    padding: 14px 28px;
    border-radius: 8px;
    border: 1px solid rgba(126, 184, 201, 0.3);
    color: var(--text);
    background: rgba(126, 184, 201, 0.05);
    transition: background 0.25s, border-color 0.25s, color 0.25s;
}

.contact-btn:hover {
    background: rgba(126, 184, 201, 0.12);
    border-color: var(--accent);
    color: var(--accent);
}

.contact-btn--outline {
    border-color: var(--border);
    background: transparent;
    color: var(--muted);
}

.contact-btn--outline:hover {
    border-color: var(--muted);
    color: var(--text);
    background: transparent;
}

/* ─── CUSTOM CURSOR ─── */
#cursor,
#cursor-ring {
    pointer-events: none;
    position: fixed;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    transition: opacity 0.3s;
}

#cursor {
    width: 8px;
    height: 8px;
    background: var(--accent);
    top: 0;
    left: 0;
}

#cursor-ring {
    width: 36px;
    height: 36px;
    border: 1px solid rgba(126, 184, 201, 0.5);
    top: 0;
    left: 0;
    transition: width 0.25s cubic-bezier(0.16,1,0.3,1),
                height 0.25s cubic-bezier(0.16,1,0.3,1),
                border-color 0.25s,
                opacity 0.3s;
}

body.cursor-hover #cursor-ring {
    width: 56px;
    height: 56px;
    border-color: rgba(126, 184, 201, 0.8);
}

body.cursor-hidden #cursor,
body.cursor-hidden #cursor-ring {
    opacity: 0;
}

/* ─── SKILLS ─── */
.skills-groups {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.skill-group-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 16px;
}

.skills-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.skill-pill {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 13px 22px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: rgba(20, 24, 32, 0.5);
    transition: border-color 0.25s, background 0.25s, transform 0.25s cubic-bezier(0.16,1,0.3,1);
    cursor: none;
    overflow: hidden;
}

.skill-pill .icon-wrap {
    width: 22px;
    height: 22px;
    min-width: 22px;
    min-height: 22px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.skill-pill .icon-wrap img {
    width: 22px;
    height: 22px;
    max-width: 22px;
    max-height: 22px;
    object-fit: contain;
    display: block;
}

.skill-pill:hover {
    border-color: rgba(126, 184, 201, 0.35);
    background: rgba(126, 184, 201, 0.05);
    transform: translateY(-3px);
}

/* GitHub icon is black — invert on dark bg */
.skill-pill .icon-wrap img[alt="GitHub"] {
    filter: invert(1) brightness(0.85);
}

.skill-pill span {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.88rem;
    color: var(--text);
    letter-spacing: 0.02em;
}

/* ─── SCROLL REVEAL ─── */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
    .nav-container { padding: 16px 24px; }
    section { padding: 80px 24px; }
    #navLinks { display: none; }
    #menuBtn { display: flex; }
    #mobileMenu { display: block; }

    .hero-grid {
        grid-template-columns: 1fr;
        padding: 0 24px;
        text-align: center;
    }

    #nn { height: 220px; order: -1; }

    .hero-text { align-items: center; }

    .exp-container { flex-direction: column; gap: 24px; }
    .tabs { flex-direction: row; border-left: none; border-bottom: 1px solid var(--border); }
    .tab { border-left: none; border-bottom: 2px solid transparent; margin-left: 0; margin-bottom: -1px; }
    .tab.active { border-left-color: transparent; border-bottom-color: var(--accent); }

    .grid { grid-template-columns: 1fr; }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .about-portrait {
        width: 160px;
    }

    .about-portrait img {
        width: 160px;
    }
}

@media (max-width: 600px) {
    h1.reveal-text { font-size: 2.2rem; }
}
