/* ===== RESET & BASE ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --bg-primary: #06060f;
    --bg-secondary: #0c0c1d;
    --bg-card: rgba(14, 14, 35, 0.75);
    --bg-card-hover: rgba(20, 20, 50, 0.9);
    --neon-cyan: #00e5ff;
    --neon-magenta: #ff00aa;
    --neon-purple: #7b2fff;
    --neon-green: #00ff88;
    --neon-orange: #ff8800;
    --neon-gold: #ffd700;
    --text-primary: #e4e4f0;
    --text-secondary: #8888aa;
    --text-dim: #555577;
    --border-subtle: rgba(255,255,255,0.06);
    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background: var(--bg-primary);
}

body {
    font-family: var(--font-body);
    color: var(--text-primary);
    background: var(--bg-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

::selection {
    background: var(--neon-cyan);
    color: var(--bg-primary);
}

a { color: var(--neon-cyan); text-decoration: none; transition: color 0.3s; }
a:hover { color: #fff; }

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 100px 0;
    position: relative;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 60px;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== PARTICLES CANVAS ===== */
#particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* ===== NAVIGATION ===== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 32px;
    transition: background 0.4s, backdrop-filter 0.4s, box-shadow 0.4s;
}

.nav.scrolled {
    background: rgba(6, 6, 15, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 var(--border-subtle);
}

.nav-logo {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--neon-cyan) !important;
    text-shadow: 0 0 20px rgba(0, 229, 255, 0.4);
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 400;
    color: var(--text-secondary);
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: color 0.3s, text-shadow 0.3s;
}

.nav-links a:hover {
    color: var(--neon-cyan);
    text-shadow: 0 0 10px rgba(0, 229, 255, 0.3);
}

/* ===== HERO ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    z-index: 1;
    padding-top: 60px;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.hero-photo-wrapper {
    position: relative;
    width: 180px;
    height: 180px;
    margin-bottom: 10px;
}

.hero-photo-glow {
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: conic-gradient(var(--neon-cyan), var(--neon-purple), var(--neon-magenta), var(--neon-cyan));
    animation: glow-rotate 4s linear infinite;
    filter: blur(6px);
    opacity: 0.7;
}

@keyframes glow-rotate {
    to { transform: rotate(360deg); }
}

.hero-photo {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center 20%;
    position: relative;
    z-index: 1;
    border: 3px solid var(--bg-primary);
}

.hero-name {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 900;
    letter-spacing: 4px;
    line-height: 1.1;
    position: relative;
    color: #fff;
}

/* Glitch effect */
.hero-name::before,
.hero-name::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    overflow: hidden;
    opacity: 0;
}

.hero-name::before {
    color: var(--neon-cyan);
    animation: glitch-1 4s infinite;
}

.hero-name::after {
    color: var(--neon-magenta);
    animation: glitch-2 4s infinite;
}

@keyframes glitch-1 {
    0%, 88%, 92%, 100% { opacity: 0; transform: none; }
    89% { opacity: 0.8; transform: translateX(-3px) skewX(-2deg); clip-path: inset(20% 0 40% 0); }
    91% { opacity: 0.8; transform: translateX(3px) skewX(2deg); clip-path: inset(60% 0 10% 0); }
}

@keyframes glitch-2 {
    0%, 88%, 92%, 100% { opacity: 0; transform: none; }
    90% { opacity: 0.6; transform: translateX(3px) skewX(1deg); clip-path: inset(40% 0 20% 0); }
    91.5% { opacity: 0.6; transform: translateX(-2px) skewX(-1deg); clip-path: inset(10% 0 60% 0); }
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 6px;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.hero-tags {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.hero-tag {
    font-size: 0.85rem;
    color: var(--neon-cyan);
    font-weight: 500;
}

.hero-tag-sep {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--text-dim);
}

.hero-stats {
    display: flex;
    gap: 48px;
    margin-top: 20px;
    padding-top: 30px;
    border-top: 1px solid var(--border-subtle);
}

.hero-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.hero-stat-row {
    display: flex;
    align-items: baseline;
}

.hero-stat-number {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    color: #fff;
}

.hero-stat-plus {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--neon-cyan);
}

.hero-stat-icon {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    color: #fff;
}

.hero-stat-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.scroll-indicator {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0.5;
    animation: fade-bob 3s ease-in-out infinite;
}

.scroll-indicator span {
    font-size: 0.7rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-dim);
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid var(--text-dim);
    border-bottom: 2px solid var(--text-dim);
    transform: rotate(45deg);
}

@keyframes fade-bob {
    0%, 100% { transform: translateY(0); opacity: 0.5; }
    50% { transform: translateY(8px); opacity: 0.3; }
}

/* ===== ABOUT ===== */
.about {
    padding: 40px 0 60px;
    z-index: 1;
    position: relative;
}

.about-text {
    max-width: 750px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

/* ===== TIMELINE ===== */
.timeline {
    position: relative;
    padding: 20px 0;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(
        to bottom,
        transparent,
        var(--neon-cyan) 10%,
        var(--neon-purple) 50%,
        var(--neon-cyan) 90%,
        transparent
    );
    transform: translateX(-50%);
    opacity: 0.4;
}

.timeline-entry {
    position: relative;
    width: 50%;
    padding: 20px 0;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.timeline-entry.visible {
    opacity: 1;
    transform: translateY(0);
}

.timeline-entry.left {
    padding-right: 50px;
    text-align: right;
}

.timeline-entry.right {
    margin-left: 50%;
    padding-left: 50px;
    text-align: left;
}

.timeline-dot {
    position: absolute;
    top: 30px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--neon-cyan);
    border: 3px solid var(--bg-primary);
    box-shadow: 0 0 12px rgba(0, 229, 255, 0.5);
    z-index: 2;
}

.timeline-entry.left .timeline-dot {
    right: -7px;
}

.timeline-entry.right .timeline-dot {
    left: -7px;
}

.dot-large {
    width: 18px;
    height: 18px;
}

.timeline-entry.left .dot-large {
    right: -9px;
}

.timeline-entry.right .dot-large {
    left: -9px;
}

.dot-accent {
    background: var(--neon-magenta);
    box-shadow: 0 0 16px rgba(255, 0, 170, 0.6);
}

.timeline-date {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-dim);
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.date-active {
    color: var(--neon-green);
    text-shadow: 0 0 8px rgba(0, 255, 136, 0.3);
}

/* ===== TIMELINE CARDS ===== */
.timeline-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    overflow: hidden;
    text-align: left;
    transition: transform 0.4s, box-shadow 0.4s, border-color 0.4s;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.timeline-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    border-color: rgba(0, 229, 255, 0.15);
}

.card-featured {
    border-color: rgba(0, 229, 255, 0.1);
}

.card-flagship {
    border-color: rgba(255, 0, 170, 0.15);
}

.card-flagship:hover {
    border-color: rgba(255, 0, 170, 0.3);
    box-shadow: 0 20px 60px rgba(255, 0, 170, 0.1);
}

.card-image {
    height: 160px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.card-image-tall {
    height: 220px;
}

.card-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 40%, var(--bg-card) 100%);
}

/* Expand button on images */
.card-image-expand {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 32px;
    height: 32px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 6px;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.3s, background 0.3s;
    padding: 5px;
}

.card-image-expand svg {
    width: 100%;
    height: 100%;
}

.card-image:hover .card-image-expand {
    opacity: 1;
}

.card-image-expand:hover {
    background: rgba(0, 229, 255, 0.3);
    border-color: var(--neon-cyan);
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(4, 4, 12, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s;
    cursor: zoom-out;
}

.lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox img {
    max-width: 92vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 0 60px rgba(0, 229, 255, 0.15);
    transform: scale(0.92);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox.active img {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 24px;
    width: 40px;
    height: 40px;
    background: none;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.3s, color 0.3s;
}

.lightbox-close:hover {
    border-color: var(--neon-cyan);
    color: var(--neon-cyan);
}

.card-image-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    font-family: var(--font-heading);
    font-size: 0.6rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 4px 12px;
    background: rgba(255, 0, 170, 0.8);
    border-radius: 4px;
    color: #fff;
    z-index: 1;
}

.card-image-gradient {
    display: flex;
    align-items: center;
    justify-content: center;
}

.gradient-orange {
    background: linear-gradient(135deg, #1a0a00 0%, #331500 30%, #552200 60%, #773300 100%);
}

.gradient-blue {
    background: linear-gradient(135deg, #000a1a 0%, #001533 30%, #002255 60%, #003377 100%);
}

.gradient-purple {
    background: linear-gradient(135deg, #0a001a 0%, #150033 30%, #220055 60%, #330077 100%);
}

.gradient-cyan {
    background: linear-gradient(135deg, #001a1a 0%, #003333 30%, #005555 60%, #007777 100%);
}

.card-image-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    z-index: 1;
}

.card-image-stat {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 900;
    color: #fff;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
}

.card-image-stat-label {
    font-size: 0.75rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.card-icon {
    width: 48px;
    height: 48px;
    color: var(--text-secondary);
    opacity: 0.6;
}

.card-content {
    padding: 20px 24px 24px;
}

.card-badge {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.55rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 4px;
    margin-bottom: 10px;
}

.badge-education {
    background: rgba(0, 229, 255, 0.1);
    color: var(--neon-cyan);
    border: 1px solid rgba(0, 229, 255, 0.2);
}

.badge-project {
    background: rgba(123, 47, 255, 0.1);
    color: var(--neon-purple);
    border: 1px solid rgba(123, 47, 255, 0.2);
}

.badge-flagship {
    background: rgba(255, 0, 170, 0.1);
    color: var(--neon-magenta);
    border: 1px solid rgba(255, 0, 170, 0.2);
}

.card-content h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
    letter-spacing: 1px;
}

.card-subtitle {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
    font-style: italic;
}

.card-content p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 12px;
}

.card-content p strong {
    color: var(--text-primary);
}

/* Achievements inside cards */
.card-achievements {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
}

.achievement {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    padding: 6px 10px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
}

.achievement-icon {
    font-size: 1rem;
    flex-shrink: 0;
}

.achievement-gold .achievement-icon {
    color: var(--neon-gold);
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
}

.achievement-silver .achievement-icon {
    color: #c0c0c0;
    text-shadow: 0 0 8px rgba(192, 192, 192, 0.5);
}

/* Metric callout */
.card-metric {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 136, 0, 0.08);
    border: 1px solid rgba(255, 136, 0, 0.15);
    border-radius: 8px;
    margin-bottom: 12px;
}

.metric-number {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--neon-orange);
}

.metric-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Tags */
.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
}

.tag {
    font-size: 0.7rem;
    padding: 3px 10px;
    border-radius: 20px;
    background: rgba(123, 47, 255, 0.08);
    border: 1px solid rgba(123, 47, 255, 0.15);
    color: var(--text-secondary);
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Card gallery thumbnails */
.card-gallery {
    display: flex;
    gap: 6px;
    margin: 10px 0 6px;
    overflow-x: auto;
    scrollbar-width: none;
}

.card-gallery::-webkit-scrollbar {
    display: none;
}

.gallery-thumb {
    height: 56px;
    width: auto;
    border-radius: 6px;
    border: 1px solid var(--border-subtle);
    cursor: zoom-in;
    object-fit: cover;
    flex-shrink: 0;
    transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

.gallery-thumb:hover {
    border-color: var(--neon-cyan);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 229, 255, 0.15);
}

/* ===== FLOATING TIDBITS ===== */
.tidbits {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
    position: relative;
    z-index: 3;
}

.tidbit {
    position: relative;
    animation: tidbit-float 4s ease-in-out infinite;
    animation-delay: var(--delay, 0s);
}

@keyframes tidbit-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.tidbit-pill {
    font-family: var(--font-heading);
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 20px;
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
    transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
    border: 1px solid;
}

.tidbit-pill:hover {
    transform: scale(1.05);
}

.tidbit-pill {
    position: relative;
}

.tidbit:not(.open) .tidbit-pill::after {
    content: "Click to read";
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    font-family: var(--font-body);
    font-size: 0.65rem;
    font-weight: 400;
    letter-spacing: 0.5px;
    text-transform: none;
    white-space: nowrap;
    color: var(--text-primary);
    background: rgba(12, 12, 30, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    padding: 4px 10px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.25s, transform 0.25s;
}

.tidbit:not(.open) .tidbit-pill:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.tidbit.open .tidbit-pill {
    transform: scale(1.05);
}

/* Tidbit color variants */
.tidbit-feeling .tidbit-pill {
    background: rgba(123, 47, 255, 0.12);
    border-color: rgba(123, 47, 255, 0.3);
    color: #b388ff;
}
.tidbit-feeling .tidbit-pill:hover,
.tidbit-feeling.open .tidbit-pill {
    background: rgba(123, 47, 255, 0.22);
    box-shadow: 0 0 16px rgba(123, 47, 255, 0.25);
}

.tidbit-tech .tidbit-pill {
    background: rgba(0, 229, 255, 0.1);
    border-color: rgba(0, 229, 255, 0.25);
    color: var(--neon-cyan);
}
.tidbit-tech .tidbit-pill:hover,
.tidbit-tech.open .tidbit-pill {
    background: rgba(0, 229, 255, 0.2);
    box-shadow: 0 0 16px rgba(0, 229, 255, 0.25);
}

.tidbit-challenge .tidbit-pill {
    background: rgba(255, 136, 0, 0.1);
    border-color: rgba(255, 136, 0, 0.25);
    color: var(--neon-orange);
}
.tidbit-challenge .tidbit-pill:hover,
.tidbit-challenge.open .tidbit-pill {
    background: rgba(255, 136, 0, 0.2);
    box-shadow: 0 0 16px rgba(255, 136, 0, 0.25);
}

.tidbit-fun .tidbit-pill {
    background: rgba(0, 255, 136, 0.08);
    border-color: rgba(0, 255, 136, 0.2);
    color: var(--neon-green);
}
.tidbit-fun .tidbit-pill:hover,
.tidbit-fun.open .tidbit-pill {
    background: rgba(0, 255, 136, 0.18);
    box-shadow: 0 0 16px rgba(0, 255, 136, 0.25);
}

/* Popup */
.tidbit-popup {
    position: absolute;
    bottom: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%) translateY(8px) scale(0.95);
    width: 280px;
    background: rgba(12, 12, 30, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 16px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s, transform 0.3s;
    z-index: 100;
}

.tidbit.open .tidbit-popup {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0) scale(1);
}

.tidbit-popup p {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
}

/* Responsive: popups don't overflow */
@media (max-width: 768px) {
    .tidbit-popup {
        width: 240px;
        left: 0;
        transform: translateX(0) translateY(8px) scale(0.95);
    }
    .tidbit.open .tidbit-popup {
        transform: translateX(0) translateY(0) scale(1);
    }
}

/* Card links */
.card-links {
    display: flex;
    gap: 16px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--border-subtle);
}

.card-link {
    font-family: var(--font-heading);
    font-size: 0.65rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--neon-cyan) !important;
    transition: text-shadow 0.3s;
}

.card-link:hover {
    text-shadow: 0 0 10px rgba(0, 229, 255, 0.5);
    color: #fff !important;
}

/* ===== SKILLS ===== */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
}

.skill-category {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 28px 24px;
    text-align: center;
    transition: transform 0.4s, box-shadow 0.4s, border-color 0.4s;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease, box-shadow 0.4s, border-color 0.4s;
}

.skill-category.visible {
    opacity: 1;
    transform: translateY(0);
}

.skill-category:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 229, 255, 0.15);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.skill-wide {
    grid-column: 1 / -1;
}

.skill-icon {
    width: 40px;
    height: 40px;
    margin: 0 auto 16px;
    color: var(--neon-cyan);
    opacity: 0.7;
}

.skill-icon svg {
    width: 100%;
    height: 100%;
}

.skill-category h3 {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.skill-items {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.skill-item {
    font-size: 0.8rem;
    padding: 5px 14px;
    border-radius: 20px;
    background: rgba(0, 229, 255, 0.05);
    border: 1px solid rgba(0, 229, 255, 0.1);
    color: var(--text-secondary);
    transition: background 0.3s, color 0.3s, border-color 0.3s;
}

.skill-item:hover {
    background: rgba(0, 229, 255, 0.12);
    color: var(--neon-cyan);
    border-color: rgba(0, 229, 255, 0.3);
}

/* ===== INTERESTS ===== */
.interests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
}

.interest-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 32px 24px;
    text-align: center;
    transition: transform 0.4s, box-shadow 0.4s, border-color 0.4s;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease, box-shadow 0.4s, border-color 0.4s;
}

.interest-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.interest-card:hover {
    transform: translateY(-6px);
    border-color: rgba(123, 47, 255, 0.2);
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.3);
}

.interest-icon-wrap {
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
    color: var(--neon-purple);
    opacity: 0.8;
}

.interest-icon-wrap svg {
    width: 100%;
    height: 100%;
}

.interest-card h3 {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.interest-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* ===== FOOTER / CONTACT ===== */
.footer {
    text-align: center;
    padding-bottom: 60px;
    position: relative;
    z-index: 1;
}

.contact-email {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--neon-cyan) !important;
    margin-bottom: 24px;
    transition: text-shadow 0.3s;
}

.contact-email:hover {
    text-shadow: 0 0 20px rgba(0, 229, 255, 0.5);
    color: #fff !important;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 40px;
}

.contact-link {
    font-size: 0.85rem;
    color: var(--text-secondary) !important;
    padding: 8px 20px;
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    transition: all 0.3s;
}

.contact-link:hover {
    color: var(--neon-cyan) !important;
    border-color: rgba(0, 229, 255, 0.3);
    background: rgba(0, 229, 255, 0.05);
}

.footer-copy {
    font-size: 0.75rem;
    color: var(--text-dim);
    letter-spacing: 1px;
}

/* ===== SCROLL ANIMATIONS ===== */
.timeline-entry.left.visible {
    animation: slide-in-left 0.8s ease forwards;
}

.timeline-entry.right.visible {
    animation: slide-in-right 0.8s ease forwards;
}

@keyframes slide-in-left {
    from { opacity: 0; transform: translateX(-40px) translateY(20px); }
    to { opacity: 1; transform: translateX(0) translateY(0); }
}

@keyframes slide-in-right {
    from { opacity: 0; transform: translateX(40px) translateY(20px); }
    to { opacity: 1; transform: translateX(0) translateY(0); }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .hero-name {
        font-size: 2.2rem;
        letter-spacing: 2px;
    }

    .hero-title {
        font-size: 0.75rem;
        letter-spacing: 3px;
    }

    .hero-stats {
        gap: 24px;
    }

    .hero-stat-number {
        font-size: 1.6rem;
    }

    .nav-links {
        gap: 16px;
    }

    .nav-links a {
        font-size: 0.6rem;
    }

    /* Stack timeline vertically */
    .timeline-line {
        left: 20px;
    }

    .timeline-entry,
    .timeline-entry.left,
    .timeline-entry.right {
        width: 100%;
        margin-left: 0;
        padding-left: 50px;
        padding-right: 0;
        text-align: left;
    }

    .timeline-entry.left .timeline-dot,
    .timeline-entry.right .timeline-dot {
        left: 13px;
        right: auto;
    }

    .timeline-entry.left .dot-large,
    .timeline-entry.right .dot-large {
        left: 11px;
        right: auto;
    }

    .timeline-entry.left.visible,
    .timeline-entry.right.visible {
        animation: slide-in-right 0.8s ease forwards;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .skills-grid {
        grid-template-columns: 1fr 1fr;
    }

    .interests-grid {
        grid-template-columns: 1fr 1fr;
    }

    .hero-photo-wrapper {
        width: 140px;
        height: 140px;
    }

    .hero-photo {
        width: 140px;
        height: 140px;
    }
}

@media (max-width: 480px) {
    .nav {
        padding: 12px 16px;
    }

    .nav-links {
        gap: 10px;
    }

    .nav-links a {
        font-size: 0.55rem;
        letter-spacing: 1px;
    }

    .hero-name {
        font-size: 1.8rem;
    }

    .hero-tags {
        gap: 8px;
    }

    .hero-tag {
        font-size: 0.75rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 16px;
    }

    .section {
        padding: 60px 0;
    }

    .skills-grid,
    .interests-grid {
        grid-template-columns: 1fr;
    }

    .contact-links {
        flex-direction: column;
        align-items: center;
    }
}
