﻿/* -------------------- CSS RESET -------------------- */
* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

:root {
    --bg: #0c1420;
    --bg-soft: #0e1a27;
    --text: #dfe7f1;
    --muted: #a7b3c7;
    --card: #0f1f2e;
    --card-soft: #0c1b2a;
    --primary: #00d0ff;
    --primary-2: #7c67ff;
    --ring: rgba(0,208,255,.35);
    --glass: rgba(255,255,255,.06);
    --shadow: 0 10px 30px rgba(0,0,0,.35);
    --radius: 16px;
}

html[data-theme="light"] {
    --bg: #f6f9fc;
    --bg-soft: #eef4fb;
    --text: #0f1720;
    --muted: #4a5568;
    --card: #ffffff;
    --card-soft: #f7fbff;
    --primary: #0077ff;
    --primary-2: #7c67ff;
    --ring: rgba(0,119,255,.28);
    --glass: rgba(255,255,255,.75);
}

/* -------------------- LAYOUT -------------------- */
body {
    font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    color: var(--text);
    background: radial-gradient(1200px 800px at 85% -200px, #462b77 0%, transparent 60%), radial-gradient(800px 600px at -20% -200px, #124b67 0%, transparent 65%), var(--bg);
    min-height: 100dvh;
    overflow-x: hidden;
}

/* particles canvas sits under everything */
#particles {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: .5;
}

/* NAVBAR */
.navbar {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: saturate(110%) blur(8px);
    background: linear-gradient(180deg, rgba(0,0,0,.55), rgba(0,0,0,.15));
    border-bottom: 1px solid rgba(255,255,255,.04);
}

.navbar, .footer .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-left, .nav-center, .nav-right {
    display: flex;
    align-items: center;
}

.nav-center {
    gap: 28px;
}

.navbar .brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
}

    .navbar .brand span {
        font-weight: 600;
        letter-spacing: .5px;
        opacity: .9;
    }

.nav-link {
    display: inline-block;
    padding: 16px 10px;
    color: var(--muted);
    font-weight: 500;
    position: relative;
}

    .nav-link.active, .nav-link:hover {
        color: var(--text);
    }

        .nav-link.active::after {
            content: "";
            position: absolute;
            left: 10px;
            right: 10px;
            bottom: 8px;
            height: 2px;
            background: linear-gradient(90deg, var(--primary), var(--primary-2));
            border-radius: 2px;
        }

.icon-btn {
    border: 0;
    background: transparent;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 20px;
    color: var(--text);
}

    .icon-btn .sun {
        display: none;
    }

html[data-theme="light"] .icon-btn .moon {
    display: none;
}

html[data-theme="light"] .icon-btn .sun {
    display: inline;
}

/* PAGE */
.page {
    position: relative;
    z-index: 1;
}

.section {
    padding: clamp(64px, 8vw, 110px) 0;
}

.container {
    width: min(1100px, 92%);
    margin-inline: auto;
}

.display {
    font-size: clamp(38px, 5vw, 64px);
    margin: 12px 0 8px;
    letter-spacing: .3px;
}

.grad-text {
    background: linear-gradient(90deg, var(--primary), var(--primary-2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.lead {
    color: var(--muted);
    font-size: clamp(16px, 2.4vw, 18px);
    line-height: 1.7;
    max-width: 52ch;
}

.badge {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 100px;
    background: linear-gradient(90deg, var(--primary), var(--primary-2));
    color: #07202a;
    font-weight: 700;
    letter-spacing: .3px;
    box-shadow: var(--shadow);
}

.chips {
    margin-top: 14px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.chip {
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.08);
    color: var(--muted);
}

.actions {
    display: flex;
    gap: 12px;
    margin-top: 18px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,.12);
    color: var(--text);
    background: rgba(255,255,255,.03);
    transition: .2s transform, .2s background, .2s box-shadow;
}

    .btn:hover {
        transform: translateY(-1px);
        background: rgba(255,255,255,.06);
        box-shadow: var(--shadow);
    }

.btn-primary {
    background: linear-gradient(90deg, var(--primary), var(--primary-2));
    border: none;
    color: #04121a;
    font-weight: 700;
}

.btn-ghost {
    background: transparent;
    border: 1px solid rgba(255,255,255,.18);
}

/* GRID */
.grid-2 {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: clamp(28px, 4vw, 60px);
    align-items: center;
}

@media (max-width: 950px) {
    .grid-2 {
        grid-template-columns: 1fr;
    }
}

/* NEUO BOARD (glowing squares) */
.neuo-board {
    position: relative;
}

.board {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    padding: 26px;
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.04));
    box-shadow: inset 0 1px 0 rgba(255,255,255,.15), 0 30px 60px rgba(0,0,0,.35);
}

.cell {
    width: 140px;
    aspect-ratio: 1/1;
    border-radius: 22px;
    background: radial-gradient(120px 120px at 60% 35%, rgba(0,208,255,.8), transparent 65%), linear-gradient(180deg, rgba(255,255,255,.35), rgba(255,255,255,.12));
    box-shadow: inset 0 1px 2px rgba(255,255,255,.2), 0 10px 35px rgba(0,0,0,.45);
    filter: saturate(120%);
    animation: pulse 5s ease-in-out infinite;
}

.board-shadow {
    position: absolute;
    inset: -14px -14px -18px -14px;
    z-index: -1;
    border-radius: 36px;
    background: radial-gradient(60% 60% at 50% 20%, rgba(127,107,255,.30), transparent 65%);
    filter: blur(18px);
}

@keyframes pulse {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}

/* CARDS */
.section-title {
    font-size: clamp(24px, 3.2vw, 30px);
    margin-bottom: 18px;
}

.cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
}

@media (max-width: 900px) {
    .cards {
        grid-template-columns: 1fr;
    }
}

.card {
    background: var(--card);
    border: 1px solid rgba(255,255,255,.10);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform .18s ease;
}

    .card:hover {
        transform: translateY(-4px);
    }

.card-media {
    aspect-ratio: 16/9;
    overflow: hidden;
}

    .card-media img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        filter: saturate(110%);
    }

.card-body {
    padding: 18px;
    display: grid;
    gap: 12px;
}

.card-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    color: var(--muted);
}

    .card-tags span {
        background: rgba(255,255,255,.06);
        border: 1px solid rgba(255,255,255,.10);
        padding: 6px 10px;
        border-radius: 999px;
    }

.card-actions {
    display: flex;
    gap: 10px;
    margin-top: 6px;
}

/* RESUME – timeline */
.resume-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}

    .resume-header .mr-8 {
        margin-right: 8px;
    }

.timeline {
    position: relative;
    padding-left: 26px;
    margin-top: 18px;
}

    .timeline::before {
        content: "";
        position: absolute;
        left: 13px;
        top: 0;
        bottom: 0;
        width: 2px;
        background: linear-gradient(var(--primary), var(--primary-2));
        opacity: .4;
    }

.time-item {
    position: relative;
    margin: 18px 0 26px;
}

.time-dot {
    position: absolute;
    left: -1px;
    top: 8px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 18px var(--primary);
}

.time-content {
    background: var(--card);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 14px;
    padding: 14px 16px;
    box-shadow: var(--shadow);
}

.time-year {
    font-weight: 700;
    color: var(--muted);
    margin-bottom: 4px;
}

/* SKILLS */
.skill-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

@media (max-width: 800px) {
    .skill-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.skill {
    padding: 12px 14px;
    border-radius: 12px;
    background: var(--card);
    border: 1px solid rgba(255,255,255,.12);
    text-align: center;
    color: var(--text);
}

/* CONTACT */
.cta {
    text-align: center;
    background: var(--card);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 22px;
    padding: 28px;
    box-shadow: var(--shadow);
}

/* FOOTER */
.footer {
    padding: 26px 0 40px;
    color: var(--muted);
}

    .footer .container {
        justify-content: center;
    }

/* REVEAL ANIMATIONS */
.reveal {
    opacity: 0;
    transform: translateY(16px);
}

    .reveal.visible {
        opacity: 1;
        transform: none;
        transition: .6s cubic-bezier(.2,.65,.2,1);
    }
