/* ─── RESET & BASE ────────────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

/* ─── DESIGN TOKENS ───────────────────────────────────────── */
:root {
    --bg: #080c10;
    --surface: #0d1117;
    --border: rgba(0, 255, 170, .12);
    --accent: #00ffaa;
    --accent2: #00bfff;
    --text: #c9d1d9;
    --text-dim: #606878;
    --heading: #e6edf3;
    --mono: 'JetBrains Mono', monospace;
    --sans: 'Syne', sans-serif;
    --radius: 6px;
    --glow: 0 0 18px rgba(0, 255, 170, .25);
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--mono);
    font-size: 14px;
    line-height: 1.7;
    overflow-x: hidden;
    cursor: none;
}

/* ─── CUSTOM CURSOR ───────────────────────────────────────── */
#cursor {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    width: 10px;
    height: 10px;
    background: var(--accent);
    border-radius: 50%;
    pointer-events: none;
    transition: transform .15s ease, opacity .2s;
    mix-blend-mode: screen;
}

#cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9998;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(0, 255, 170, .5);
    border-radius: 50%;
    pointer-events: none;
    transition: transform .35s ease, opacity .2s;
}

/* ─── CANVAS GRID BACKGROUND ──────────────────────────────── */
#grid-canvas {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: .35;
}

/* ─── NAVBAR ──────────────────────────────────────────────── */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 60px;
    background: rgba(8, 12, 16, .85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    transition: padding .3s;
}

nav.scrolled {
    padding: 12px 60px;
}

.logo {
    font-family: var(--sans);
    font-size: 20px;
    font-weight: 800;
    color: var(--heading);
    letter-spacing: -.02em;
}

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

.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 12px;
    letter-spacing: .12em;
    text-transform: uppercase;
    transition: color .2s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width .3s;
}

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

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

/* ─── SECTIONS SHARED ─────────────────────────────────────── */
section {
    position: relative;
    z-index: 1;
    padding: 120px 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-tag {
    font-size: 11px;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-tag::before {
    content: '';
    display: inline-block;
    width: 28px;
    height: 1px;
    background: var(--accent);
}

h2.section-title {
    font-family: var(--sans);
    font-size: clamp(32px, 4vw, 52px);
    font-weight: 800;
    color: var(--heading);
    line-height: 1.1;
    margin-bottom: 56px;
}

/* ─── SECTION DIVIDER ─────────────────────────────────────── */
.divider {
    max-width: 1200px;
    margin: 0 auto;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
}

/* ════════════════════════════════════════════════════════════
     HERO (Section 1 — General Info)
  ════════════════════════════════════════════════════════════ */
#hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 380px;
    align-items: center;
    gap: 80px;
    padding-top: 160px;
}

.hero-eyebrow {
    font-size: 12px;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero-eyebrow .dot {
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.hero-name {
    font-family: var(--sans);
    font-size: clamp(48px, 5vw, 88px);
    font-weight: 800;
    color: var(--heading);
    line-height: .95;
    letter-spacing: -.03em;
    margin-bottom: 24px;
}

.hero-name .accent-line {
    display: block;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-role {
    font-size: 16px;
    color: var(--text-dim);
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-role::before {
    content: '//';
    color: var(--accent);
}

.hero-bio {
    max-width: 670px;
    color: var(--text);
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 44px;
}

.hero-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-primary {
    padding: 14px 32px;
    background: var(--accent);
    color: var(--bg);
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    border: none;
    border-radius: var(--radius);
    cursor: none;
    text-decoration: none;
    transition: box-shadow .25s, transform .2s;
}

.btn-primary:hover {
    box-shadow: var(--glow);
    transform: translateY(-2px);
}

.btn-ghost {
    padding: 14px 32px;
    background: transparent;
    color: var(--accent);
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: none;
    text-decoration: none;
    transition: border-color .25s, background .25s, transform .2s;
}

.btn-ghost:hover {
    border-color: var(--accent);
    background: rgba(0, 255, 170, .06);
    transform: translateY(-2px);
}

/* Avatar card */
.hero-avatar-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.avatar-frame {
    width: 280px;
    height: 280px;
    position: relative;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(0, 255, 170, .15), rgba(0, 191, 255, .1));
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0, 255, 170, .25);
    box-shadow: 0 0 60px rgba(0, 255, 170, .1), inset 0 0 40px rgba(0, 255, 170, .04);
}

.avatar-frame img {
    width: 260px;
    height: 260px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

/* Placeholder silhouette when no image */
.avatar-placeholder {
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: linear-gradient(160deg, #111820, #0d1117);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.avatar-placeholder svg {
    opacity: .35;
}

.avatar-orbit {
    position: absolute;
    inset: -20px;
    border: 1px dashed rgba(0, 255, 170, .2);
    border-radius: 50%;
    animation: orbit 20s linear infinite;
}

.orbit-dot {
    position: absolute;
    top: -4px;
    left: calc(50% - 4px);
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: var(--glow);
}

@keyframes orbit {
    to {
        transform: rotate(360deg);
    }
}

.avatar-badge {
    margin-top: 24px;
    padding: 10px 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 40px;
    font-size: 12px;
    color: var(--text-dim);
    text-align: center;
}

.avatar-badge strong {
    color: var(--accent);
}

.hero-stats {
    display: flex;
    gap: 32px;
    margin-top: 56px;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-val {
    font-family: var(--sans);
    font-size: 28px;
    font-weight: 800;
    color: var(--heading);
    line-height: 1;
}

.stat-val span {
    color: var(--accent);
}

.stat-label {
    font-size: 11px;
    color: var(--text-dim);
    margin-top: 4px;
    letter-spacing: .1em;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: .4;
        transform: scale(.7);
    }
}

/* ════════════════════════════════════════════════════════════
     EXPERIENCE (Section 2)
  ════════════════════════════════════════════════════════════ */
.timeline {
    position: relative;
    padding-left: 32px;
}

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

.timeline-item {
    position: relative;
    margin-bottom: 52px;
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity .5s ease, transform .5s ease;
}

.timeline-item.visible {
    opacity: 1;
    transform: translateX(0);
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -36px;
    top: 8px;
    width: 9px;
    height: 9px;
    background: var(--bg);
    border: 2px solid var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 255, 170, .4);
}

.exp-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 8px;
}

.exp-role {
    font-family: var(--sans);
    font-size: 18px;
    font-weight: 700;
    color: var(--heading);
}

.exp-date {
    font-size: 11px;
    color: var(--accent);
    background: rgba(0, 255, 170, .08);
    border: 1px solid var(--border);
    padding: 4px 12px;
    border-radius: 40px;
    white-space: nowrap;
    flex-shrink: 0;
}

.exp-company {
    font-size: 13px;
    color: var(--accent2);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.exp-company::before {
    content: '@';
    opacity: .6;
}

.exp-desc {
    color: var(--text);
    line-height: 1.8;
    font-size: 13px;
}

.exp-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.tag {
    font-size: 10px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--text-dim);
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .07);
    padding: 3px 10px;
    border-radius: 3px;
}

/* ════════════════════════════════════════════════════════════
     SKILLS (Section 3)
  ════════════════════════════════════════════════════════════ */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.skill-category {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 28px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .5s ease, transform .5s ease, border-color .3s;
}

.skill-category.visible {
    opacity: 1;
    transform: translateY(0);
}

.skill-category:hover {
    border-color: rgba(0, 255, 170, .3);
}

.skill-cat-title {
    font-family: var(--sans);
    font-size: 14px;
    font-weight: 700;
    color: var(--heading);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.skill-cat-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(0, 255, 170, .1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
}

.skill-bar-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* .skill-bar-item {} */

.skill-bar-header {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text);
    margin-bottom: 6px;
}

.skill-bar-header span:last-child {
    color: var(--accent);
}

.skill-bar-track {
    height: 3px;
    background: rgba(255, 255, 255, .06);
    border-radius: 2px;
    overflow: hidden;
}

.skill-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--accent2));
    border-radius: 2px;
    width: 0;
    transition: width 1s cubic-bezier(.4, 0, .2, 1);
}

/* ════════════════════════════════════════════════════════════
     PROJECTS (Section 4)
  ════════════════════════════════════════════════════════════ */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
}

.project-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .5s ease, transform .5s ease, border-color .3s, box-shadow .3s;
    cursor: none;
}

.project-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.project-card:hover {
    border-color: rgba(0, 255, 170, .3);
    box-shadow: 0 16px 48px rgba(0, 0, 0, .4), 0 0 24px rgba(0, 255, 170, .06);
    transform: translateY(-4px);
}

.project-thumb {
    height: 180px;
    background-color: #0d1520;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.project-thumb::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, .6) 100%);
}

.project-type-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    font-size: 9px;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--accent);
    background: rgba(0, 255, 170, .1);
    border: 1px solid rgba(0, 255, 170, .2);
    padding: 4px 10px;
    border-radius: 40px;
}

.project-body {
    padding: 24px;
}

.project-title {
    font-family: var(--sans);
    font-size: 18px;
    font-weight: 700;
    color: var(--heading);
    margin-bottom: 8px;
}

.project-desc {
    font-size: 13px;
    color: var(--text-dim);
    line-height: 1.7;
    margin-bottom: 18px;
}

.project-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.project-links {
    display: flex;
    gap: 10px;
}

.project-link {
    font-size: 11px;
    color: var(--accent);
    text-decoration: none;
    letter-spacing: .08em;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: opacity .2s;
}

.project-link:hover {
    opacity: .7;
}

.project-link svg {
    width: 12px;
    height: 12px;
}

/* ════════════════════════════════════════════════════════════
     FOOTER / CONTACT
  ════════════════════════════════════════════════════════════ */
footer {
    position: relative;
    z-index: 1;
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 72px 60px 48px;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand .logo {
    font-size: 22px;
    margin-bottom: 16px;
    display: block;
}

.footer-brand p {
    font-size: 13px;
    color: var(--text-dim);
    line-height: 1.7;
}

.footer-col-title {
    font-size: 11px;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 20px;
}

.contact-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-list a {
    color: var(--text);
    text-decoration: none;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: color .2s;
}

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

.contact-list .ci {
    width: 28px;
    height: 28px;
    background: rgba(0, 255, 170, .07);
    border: 1px solid var(--border);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    flex-shrink: 0;
}

.social-row {
    display: flex;
    gap: 12px;
}

.social-btn {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, .03);
    border: 1px solid var(--border);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dim);
    text-decoration: none;
    font-size: 15px;
    transition: border-color .2s, color .2s, background .2s;
    cursor: none;
}

.social-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(0, 255, 170, .06);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 28px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11px;
    color: var(--text-dim);
}

.footer-bottom span {
    color: var(--accent);
}

/* ─── SCROLL INDICATOR ────────────────────────────────────── */
.scroll-hint {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 10px;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--text-dim);
    animation: float 2.5s ease-in-out infinite;
}

.scroll-hint-bar {
    width: 1px;
    height: 48px;
    background: linear-gradient(180deg, var(--accent), transparent);
}

@keyframes float {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(8px);
    }
}

/* ─── TERMINAL BLINKING CURSOR ────────────────────────────── */
.blink {
    display: inline-block;
    width: 2px;
    height: 1em;
    background: var(--accent);
    margin-left: 3px;
    vertical-align: middle;
    animation: blink .9s step-end infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* ─── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 900px) {
    nav {
        padding: 16px 24px;
    }

    nav.scrolled {
        padding: 10px 24px;
    }

    .nav-links {
        gap: 20px;
    }

    section {
        padding: 80px 24px;
    }

    #hero {
        grid-template-columns: 1fr;
        gap: 48px;
        padding-top: 120px;
    }

    .hero-avatar-card {
        order: -1;
    }

    .avatar-frame {
        width: 200px;
        height: 200px;
    }

    .avatar-placeholder,
    .avatar-frame img {
        width: 185px;
        height: 185px;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .footer {
        padding: 48px 24px 32px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .hero-stats {
        gap: 20px;
    }

    .hero-cta {
        flex-direction: column;
    }

    .btn-primary,
    .btn-ghost {
        text-align: center;
    }

    .exp-header {
        flex-direction: column;
    }
}