*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg: #080b10;
    --bg2: #0d1117;
    --card: #111720;
    --border: #1e2d40;
    --accent: #3EB4FF;
    --accent2: #7DF9B3;
    --accent3: #FF6B6B;
    --text: #e6edf3;
    --muted: #7d8590;
    --glow: rgba(62, 180, 255, 0.15);
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg2);
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

* {
    scrollbar-width: thin;
    scrollbar-color: var(--border) var(--bg2);
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'DM Mono', monospace;
    min-height: 100vh;
    overflow-x: hidden;
}

/* animated bg grid */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(62, 180, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(62, 180, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: 0;
}

/* NAV */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    backdrop-filter: blur(12px);
    background: rgba(8, 11, 16, 0.8);
    border-bottom: 1px solid var(--border);
    padding: 14px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: 1rem;
    background: linear-gradient(135deg, #fff 30%, var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    gap: 24px;
    list-style: none;
}

.nav-links a {
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    color: var(--muted);
    text-decoration: none;
    text-transform: uppercase;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--accent);
}

.container {
    max-width: 860px;
    margin: 0 auto;
    padding: 100px 24px 60px;
    position: relative;
    z-index: 1;
}

/* ── HERO ── */
.hero-bg-svg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -52%);
    width: 860px;
    pointer-events: none;
    opacity: 0.07;
    filter: saturate(0) brightness(2) sepia(1) hue-rotate(180deg);
    z-index: 0;
}

.hero-bg-svg img {
    width: 100%;
    display: block;
}

.hero>*:not(.hero-bg-svg) {
    position: relative;
    z-index: 1;
}

.hero {
    text-align: center;
    padding-bottom: 72px;
    position: relative;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, var(--accent), transparent);
}

.avatar-wrap {
    position: relative;
    display: inline-block;
    margin-bottom: 28px;
}

.avatar-ring {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    padding: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: spin-ring 8s linear infinite;
}

@keyframes spin-ring {
    0% {
        box-shadow: 0 0 0 0 rgba(62, 180, 255, 0.4), 0 0 20px rgba(62, 180, 255, 0.1);
    }

    50% {
        box-shadow: 0 0 0 8px rgba(62, 180, 255, 0), 0 0 40px rgba(62, 180, 255, 0.2);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(62, 180, 255, 0.4), 0 0 20px rgba(62, 180, 255, 0.1);
    }
}

.avatar-inner {
    width: 152px;
    height: 152px;
    border-radius: 50%;
    background: var(--bg2);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 42px;
}

.avatar-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.status-dot {
    position: absolute;
    bottom: 4px;
    right: 4px;
    width: 16px;
    height: 16px;
    background: var(--accent2);
    border-radius: 50%;
    border: 2px solid var(--bg);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(125, 249, 179, 0.5);
    }

    50% {
        box-shadow: 0 0 0 6px rgba(125, 249, 179, 0);
    }
}

.hero-name {
    font-family: 'Syne', sans-serif;
    font-size: clamp(2.8rem, 6vw, 4.4rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1;
    margin-bottom: 12px;
    display: inline-block;
}

.hero-name-inner {
    background: linear-gradient(135deg, #fff 30%, var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-cursor {
    display: inline-block;
    color: var(--accent);
    -webkit-text-fill-color: var(--accent);
    font-weight: 300;
    animation: blink 0.75s step-end infinite;
    margin-left: 1px;
}

.hero-cursor.done {
    animation: blink 0.75s step-end 5;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.hero-role {
    font-size: 0.78rem;
    color: var(--accent);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 18px;
    animation: fadeUp 0.8s 0.1s ease both;
}

.hero-role span {
    color: var(--muted);
    margin: 0 6px;
}

.hero-bio {
    font-size: 0.88rem;
    color: var(--muted);
    line-height: 1.8;
    max-width: 560px;
    margin: 0 auto 32px;
    animation: fadeUp 0.8s 0.2s ease both;
}

.links {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    animation: fadeUp 0.8s 0.3s ease both;
}

.link-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-family: 'DM Mono', monospace;
    font-size: 0.75rem;
    color: var(--muted);
    text-decoration: none;
    background: var(--card);
    transition: all 0.2s;
    letter-spacing: 0.04em;
}

.link-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: 0 0 16px var(--glow);
    transform: translateY(-2px);
}

.link-btn.primary {
    background: rgba(62, 180, 255, 0.1);
    border-color: rgba(62, 180, 255, 0.4);
    color: var(--accent);
}

/* ── SECTIONS ── */
.section {
    margin-top: 64px;
    animation: fadeUp 0.6s ease both;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-label {
    font-family: 'Syne', sans-serif;
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 22px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, var(--border), transparent);
}

/* ── STATS ROW ── */
.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.stat-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.stat-card:hover {
    border-color: var(--accent);
    box-shadow: 0 0 20px var(--glow);
}

.stat-num {
    font-family: 'Syne', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--accent);
}

.stat-num.green {
    color: var(--accent2);
}

.stat-num.red {
    color: var(--accent3);
}

.stat-label {
    font-size: 0.65rem;
    color: var(--muted);
    margin-top: 4px;
    letter-spacing: 0.08em;
    line-height: 1.4;
}

/* ── ABOUT ME ── */
.about-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    transition: border-color 0.2s;
}

.about-card:hover {
    border-color: rgba(62, 180, 255, 0.3);
}

.about-text {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.about-text p {
    font-size: 0.82rem;
    color: var(--muted);
    line-height: 1.85;
}

.about-highlight {
    color: var(--accent);
    font-style: normal;
}

.about-facts {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    padding-top: 4px;
    border-top: 1px solid var(--border);
}

.about-fact {
    text-align: center;
    padding: 12px 0;
}

.about-fact-val {
    font-family: 'Syne', sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--accent2);
}

.about-fact-label {
    font-size: 0.62rem;
    color: var(--muted);
    letter-spacing: 0.08em;
    margin-top: 2px;
}

.about-current {
    border-top: 1px solid var(--border);
    padding-top: 16px;
}

.about-current-label {
    font-size: 0.65rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
}

@media (max-width: 640px) {
    .about-facts {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ── TECH GRID ── */
.tech-groups {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.tech-group {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 18px 20px;
    transition: border-color 0.2s;
}

.tech-group:hover {
    border-color: rgba(62, 180, 255, 0.3);
}

.tech-group-label {
    font-family: 'Syne', sans-serif;
    font-size: 0.62rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 12px;
}

.tech-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tech-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.75rem;
    border: 1px solid var(--border);
    background: var(--card);
    color: var(--text);
    letter-spacing: 0.03em;
    transition: all 0.2s;
    cursor: default;
}

.tech-pill:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--glow);
}

.tech-pill .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* ── EXPERIENCE ── */
.timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 8px;
    bottom: 8px;
    width: 1px;
    background: linear-gradient(to bottom, var(--accent), var(--border), transparent);
}

.tl-item {
    display: flex;
    gap: 24px;
    padding-bottom: 32px;
}

.tl-dot {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    border: 2px solid var(--accent);
    background: var(--bg);
    flex-shrink: 0;
    margin-top: 4px;
    box-shadow: 0 0 8px rgba(62, 180, 255, 0.3);
}

.tl-dot.dim {
    border-color: var(--border);
    box-shadow: none;
}

.tl-company {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: var(--text);
}

.tl-role {
    font-size: 0.75rem;
    color: var(--accent);
    margin: 2px 0 6px;
    letter-spacing: 0.05em;
}

.tl-date {
    font-size: 0.68rem;
    color: var(--muted);
    letter-spacing: 0.06em;
}

.tl-bullets {
    margin-top: 10px;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.tl-bullets li {
    font-size: 0.78rem;
    color: var(--muted);
    line-height: 1.6;
    padding-left: 14px;
    position: relative;
}

.tl-bullets li::before {
    content: '›';
    position: absolute;
    left: 0;
    color: var(--accent2);
}

/* ── PROJECTS ── */
.projects-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.project-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 22px;
    transition: all 0.25s;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: block;
}

.project-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--glow), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.project-card:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 8px 32px var(--glow);
}

.project-card:hover::before {
    opacity: 1;
}

.project-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 10px;
}

.project-icon {
    font-size: 1.4rem;
}

.project-link-icon {
    font-size: 0.75rem;
    color: var(--muted);
    transition: color 0.2s;
}

.project-card:hover .project-link-icon {
    color: var(--accent);
}

.project-name {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 6px;
    color: var(--text);
}

.project-desc {
    font-size: 0.75rem;
    color: var(--muted);
    line-height: 1.65;
    margin-bottom: 14px;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.project-tag {
    font-size: 0.65rem;
    padding: 3px 8px;
    border-radius: 4px;
    background: rgba(62, 180, 255, 0.08);
    border: 1px solid rgba(62, 180, 255, 0.2);
    color: var(--accent);
    letter-spacing: 0.04em;
}

.project-tag.green {
    background: rgba(125, 249, 179, 0.08);
    border-color: rgba(125, 249, 179, 0.2);
    color: var(--accent2);
}

/* ── COMMUNITY ── */
.community-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 28px;
    display: flex;
    gap: 24px;
    align-items: flex-start;
    transition: border-color 0.2s;
}

.community-card:hover {
    border-color: var(--accent2);
    box-shadow: 0 0 24px rgba(125, 249, 179, 0.1);
}

.community-icon {
    font-size: 2.2rem;
    flex-shrink: 0;
}

.community-title {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 4px;
}

.community-sub {
    font-size: 0.72rem;
    color: var(--accent2);
    letter-spacing: 0.06em;
    margin-bottom: 10px;
}

.community-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.fact-chip {
    font-size: 0.7rem;
    padding: 4px 10px;
    border-radius: 20px;
    background: rgba(125, 249, 179, 0.08);
    border: 1px solid rgba(125, 249, 179, 0.2);
    color: var(--accent2);
}

/* ── GITHUB STATS ── */
.github-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.github-grid img,
.github-wide img {
    width: 100%;
    border-radius: 10px;
    border: 1px solid var(--border);
    display: block;
}

.github-wide {
    margin-top: 12px;
}

/* ── CONTACT ── */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.contact-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
}

.contact-card:hover {
    border-color: var(--accent);
    box-shadow: 0 0 20px var(--glow);
    transform: translateY(-2px);
}

.contact-card-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.contact-card-label {
    font-size: 0.65rem;
    color: var(--muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 2px;
}

.contact-card-val {
    font-size: 0.8rem;
    color: var(--text);
}

/* ── FOOTER ── */
.footer-svg {
    width: 100%;
    max-width: 600px;
    margin: 0 auto 24px;
    /* opacity: 0.15; */
    /* filter: saturate(0) brightness(2) sepia(1) hue-rotate(180deg); */
}

.footer-svg img {
    width: 100%;
    display: block;
}

.footer {
    margin-top: 64px;
    text-align: center;
    padding-top: 36px;
    border-top: 1px solid var(--border);
    padding-bottom: 40px;
}

.footer-quote {
    font-family: 'Syne', sans-serif;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--muted);
    letter-spacing: 0.02em;
}

.footer-quote em {
    color: var(--accent);
    font-style: normal;
}

.footer-sub {
    font-size: 0.7rem;
    color: var(--border);
    margin-top: 14px;
    letter-spacing: 0.1em;
}

/* scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 640px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .stats-row {
        grid-template-columns: 1fr 1fr;
    }

    .github-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    nav .nav-links {
        display: none;
    }
}