/* ========================================
   VARIABLES & RESET
   ======================================== */
:root {
    --bg: #0a0a0b;
    --bg-secondary: #111113;
    --bg-card: #161618;
    --bg-card-hover: #1c1c1f;
    --text: #e4e4e7;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    --accent: #6366f1;
    --accent-light: #818cf8;
    --accent-glow: rgba(99, 102, 241, 0.15);
    --accent-glow-strong: rgba(99, 102, 241, 0.3);
    --border: #27272a;
    --border-hover: #3f3f46;
    --radius: 12px;
    --radius-sm: 8px;
    --radius-xs: 6px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background: var(--accent);
    color: white;
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

a:focus-visible, button:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: 4px;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
}

/* ========================================
   PRELOADER
   ======================================== */
.preloader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.done {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader-terminal {
    width: 420px;
    max-width: 90vw;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: #0d0d0f;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.preloader-dots {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.7rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid var(--border);
}

.preloader-lines {
    padding: 1.25rem 1.5rem;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    line-height: 2;
    min-height: 140px;
}

.preloader-lines p {
    color: var(--text-secondary);
    opacity: 0;
    transform: translateY(5px);
    animation: lineIn 0.3s ease forwards;
}

.preloader-lines .done-text {
    color: #22c55e;
}

.preloader-lines .ready-text {
    color: var(--accent-light);
    font-weight: 600;
}

.preloader-cursor {
    animation: blink 0.6s step-end infinite;
    color: var(--accent-light);
}

@keyframes lineIn {
    to { opacity: 1; transform: translateY(0); }
}

/* ========================================
   CURSOR GLOW
   ======================================== */
.cursor-glow {
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    transition: opacity 0.3s;
    opacity: 0;
}

body:hover .cursor-glow {
    opacity: 1;
}

/* ========================================
   NAVIGATION
   ======================================== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0 2rem;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(10, 10, 11, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid transparent;
    transition: var(--transition);
}

.nav.scrolled {
    border-bottom-color: var(--border);
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text);
    transition: var(--transition);
}

.nav-logo:hover {
    color: var(--accent-light);
}

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

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--text);
}

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

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text);
    transition: var(--transition);
    border-radius: 2px;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-menu {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(10, 10, 11, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 1.5rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 999;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.mobile-menu.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
}

.mobile-link {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 0.5rem 0;
    transition: var(--transition);
}

.mobile-link:hover {
    color: var(--accent-light);
    padding-left: 0.5rem;
}

/* ========================================
   CODE RAIN
   ======================================== */
.code-rain {
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0.06;
    pointer-events: none;
}

/* ========================================
   HERO
   ======================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 6rem 2rem 4rem;
    overflow: hidden;
}

.hero-bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(99, 102, 241, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 102, 241, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 30%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 30%, transparent 100%);
}

.hero-content {
    max-width: 800px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    border-radius: 100px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4); }
    50% { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
}

.hero-title {
    margin-bottom: 1rem;
}

.hero-greeting {
    display: block;
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 400;
    color: var(--accent-light);
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.hero-name {
    display: block;
    font-size: clamp(2.5rem, 7vw, 5rem);
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1.1;
    background: linear-gradient(135deg, var(--text) 0%, var(--text-secondary) 50%, var(--accent-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    min-height: 2rem;
}

.typewriter-cursor {
    color: var(--accent);
    animation: blink 1s step-end infinite;
    font-weight: 300;
}

@keyframes blink {
    50% { opacity: 0; }
}

.hero-desc {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 2.5rem;
    line-height: 1.8;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3.5rem;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.75rem;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: var(--font);
    border-radius: 100px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: var(--accent);
    color: white;
    box-shadow: 0 0 0 0 var(--accent-glow);
}

.btn-primary:hover {
    background: var(--accent-light);
    box-shadow: 0 0 30px 0 var(--accent-glow-strong);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent-light);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1rem;
}

/* Stats */
.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

.stat {
    text-align: center;
}

.stat-number {
    display: inline;
    font-size: 2rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.02em;
}

.stat-plus {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
}

.stat-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 0.25rem;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border);
}

/* Hero Code Block */
.hero-code {
    margin-top: 3rem;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

.code-window {
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: #0d0d0f;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.code-dots {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.7rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid var(--border);
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot-red { background: #ff5f57; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #28c840; }

.code-filename {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-left: 0.6rem;
}

.code-block {
    padding: 1.25rem 1.5rem;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    line-height: 1.8;
    overflow-x: auto;
    margin: 0;
    color: var(--text-secondary);
}

.code-block code {
    font-family: inherit;
}

.code-keyword { color: #c678dd; }
.code-var { color: #61afef; }
.code-key { color: #e06c75; }
.code-string { color: #98c379; }
.code-number { color: #d19a66; }

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--accent), transparent);
    animation: scroll-anim 2s infinite;
}

@keyframes scroll-anim {
    0% { opacity: 0; transform: scaleY(0); transform-origin: top; }
    50% { opacity: 1; transform: scaleY(1); transform-origin: top; }
    51% { transform-origin: bottom; }
    100% { opacity: 0; transform: scaleY(0); transform-origin: bottom; }
}

/* ========================================
   SECTIONS
   ======================================== */
.section {
    padding: 6rem 2rem;
    position: relative;
}

.section-dark {
    background: var(--bg-secondary);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
}

.section-header {
    margin-bottom: 3.5rem;
}

.section-tag {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: 500;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0.5rem 0 1rem;
}

.section-line {
    width: 60px;
    height: 3px;
    background: var(--accent);
    border-radius: 3px;
}

/* ========================================
   ABOUT
   ======================================== */
.about-intro {
    max-width: 800px;
    margin-bottom: 2.5rem;
}

.about-lead {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.about-lead strong {
    color: var(--text);
}

.about-intro p {
    font-size: 0.95rem;
    line-height: 1.85;
    color: var(--text-muted);
}

.about-intro p strong {
    color: var(--text-secondary);
    font-weight: 600;
}

/* Bento Grid */
.about-bento {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.bento-card {
    padding: 1.5rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--bg-card);
    transition: var(--transition);
}

.bento-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.bento-wide {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto auto;
    column-gap: 1rem;
}

.bento-wide .bento-icon {
    grid-row: 1 / 3;
    align-self: start;
}

.bento-wide h3 {
    align-self: end;
}

.bento-wide .bento-highlight {
    grid-column: 1 / -1;
}

.bento-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background: color-mix(in srgb, var(--bc) 12%, transparent);
    color: var(--bc);
    margin-bottom: 0.75rem;
}

.bento-card h3 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.bento-card p {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.bento-highlight {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.bento-highlight span {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: var(--text-muted);
    padding: 0.2rem 0.55rem;
    border-radius: var(--radius-xs);
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.1);
}

/* Beyond Code */
.about-beyond {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.beyond-card {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    border-radius: 100px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    font-size: 0.82rem;
    color: var(--text-secondary);
    transition: var(--transition);
}

.beyond-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.beyond-emoji {
    font-size: 1rem;
}

@media (max-width: 768px) {
    .about-bento {
        grid-template-columns: 1fr;
    }

    .bento-wide {
        display: block;
    }
}

/* ========================================
   NAV RESUME BUTTON
   ======================================== */
.btn-nav-resume {
    padding: 0.5rem 1.1rem;
    font-size: 0.8rem;
    margin-left: 0.5rem;
}

/* ========================================
   WORK EXPERIENCE TIMELINE
   ======================================== */
.timeline {
    position: relative;
    max-width: 800px;
}

.timeline-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-marker {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 0.4rem;
}

.timeline-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid var(--border-hover);
    background: var(--bg-secondary);
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.timeline-dot-active {
    border-color: var(--accent);
    background: var(--accent);
    box-shadow: 0 0 12px var(--accent-glow-strong);
}

.timeline-line {
    width: 2px;
    flex: 1;
    background: var(--border);
    margin-top: 0.5rem;
}

.timeline-content {
    flex: 1;
    padding: 1.5rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--bg-card);
    transition: var(--transition);
}

.timeline-content:hover {
    border-color: var(--border-hover);
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.timeline-role {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.timeline-company {
    font-size: 0.9rem;
    color: var(--accent-light);
    font-weight: 500;
    margin-top: 0.15rem;
}

.timeline-date {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    white-space: nowrap;
    padding: 0.3rem 0.75rem;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
}

.timeline-points {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.timeline-points li {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
    padding-left: 1.2rem;
    position: relative;
}

.timeline-points li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55rem;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent-light);
}

.timeline-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.timeline-tech span {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: var(--text-muted);
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-xs);
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.12);
}

/* ========================================
   EDUCATION
   ======================================== */
.education-card {
    max-width: 800px;
}

.edu-timeline {
    display: flex;
    gap: 1.5rem;
}

.edu-marker {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 0.4rem;
}

.edu-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid var(--accent);
    background: var(--accent);
    box-shadow: 0 0 12px var(--accent-glow-strong);
    flex-shrink: 0;
}

.edu-line {
    width: 2px;
    flex: 1;
    background: var(--border);
    margin-top: 0.5rem;
}

.edu-content {
    flex: 1;
    padding: 1.5rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--bg-card);
}

.edu-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.edu-degree {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.edu-institution {
    font-size: 0.9rem;
    color: var(--accent-light);
    font-weight: 500;
    margin-top: 0.15rem;
}

.edu-location {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.15rem;
}

.edu-year {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    white-space: nowrap;
    padding: 0.3rem 0.75rem;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
}

.edu-points {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.edu-points li {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
    padding-left: 1.2rem;
    position: relative;
}

.edu-points li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55rem;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent-light);
}

@media (max-width: 768px) {
    .edu-timeline {
        gap: 1rem;
    }

    .edu-header {
        flex-direction: column;
        gap: 0.5rem;
    }

    .edu-content {
        padding: 1.25rem;
    }
}

/* Achievements */
.achievements {
    margin-top: 2.5rem;
}

.achievements-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1.25rem;
    color: var(--accent-light);
}

.achievements-header h3 {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent-light);
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.achievement-card {
    padding: 1.25rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--bg-card);
    transition: var(--transition);
    text-align: center;
}

.achievement-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.achievement-icon {
    width: 44px;
    height: 44px;
    margin: 0 auto 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: color-mix(in srgb, var(--ac) 12%, transparent);
    color: var(--ac);
}

.achievement-number {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text);
    margin-bottom: 0.25rem;
}

.achievement-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.achievement-detail {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.5;
}

@media (max-width: 1024px) {
    .achievements-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .timeline-item {
        gap: 1rem;
    }

    .timeline-header {
        flex-direction: column;
        gap: 0.5rem;
    }

    .timeline-content {
        padding: 1.25rem;
    }

    .btn-nav-resume {
        display: none;
    }

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

@media (max-width: 480px) {
    .achievements-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   SKILLS
   ======================================== */
.skills-logo-section {
    margin-bottom: 2.5rem;
}

.skills-logo-section:last-child {
    margin-bottom: 0;
}

.skill-cat-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-light);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.25rem;
}

.skills-logo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 1rem;
}

.skill-logo-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    padding: 1.25rem 0.75rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--bg-card);
    transition: var(--transition);
    cursor: default;
}

.skill-logo-card:hover {
    border-color: var(--accent);
    background: var(--bg-card-hover);
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25), 0 0 20px var(--accent-glow);
}

.skill-logo {
    width: 40px;
    height: 40px;
    opacity: 0.7;
    filter: grayscale(40%);
    transition: var(--transition);
}

.skill-logo-card:hover .skill-logo {
    opacity: 1;
    filter: grayscale(0%);
    transform: scale(1.1);
}

.skill-logo-card span {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
    text-align: center;
    transition: var(--transition);
    line-height: 1.2;
}

.skill-logo-card:hover span {
    color: var(--text);
}

/* ========================================
   EXPERIENCE CHART
   ======================================== */
.section-subtitle {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-top: 0.75rem;
}

.exp-chart {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    max-width: 800px;
}

.exp-row {
    display: grid;
    grid-template-columns: 160px 1fr 90px;
    align-items: center;
    gap: 1rem;
}

.exp-label {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.exp-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.exp-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
}

.exp-bar-wrap {
    width: 100%;
    height: 28px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

.exp-bar {
    height: 100%;
    width: 0;
    border-radius: 6px;
    background: var(--bar-color);
    position: relative;
    transition: width 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.exp-bar::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.15) 50%,
        transparent 100%
    );
    border-radius: inherit;
}

.exp-bar.animated {
    width: var(--bar-width);
}

.exp-count {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
    text-align: right;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(-8px);
    transition: opacity 0.5s ease 1s, transform 0.5s ease 1s;
}

.exp-count.animated {
    opacity: 1;
    transform: translateX(0);
}

/* Staggered animation delays for bars */
.exp-row:nth-child(1) .exp-bar { transition-delay: 0s; }
.exp-row:nth-child(1) .exp-count { transition-delay: 0.8s; }
.exp-row:nth-child(2) .exp-bar { transition-delay: 0.08s; }
.exp-row:nth-child(2) .exp-count { transition-delay: 0.88s; }
.exp-row:nth-child(3) .exp-bar { transition-delay: 0.16s; }
.exp-row:nth-child(3) .exp-count { transition-delay: 0.96s; }
.exp-row:nth-child(4) .exp-bar { transition-delay: 0.24s; }
.exp-row:nth-child(4) .exp-count { transition-delay: 1.04s; }
.exp-row:nth-child(5) .exp-bar { transition-delay: 0.32s; }
.exp-row:nth-child(5) .exp-count { transition-delay: 1.12s; }
.exp-row:nth-child(6) .exp-bar { transition-delay: 0.4s; }
.exp-row:nth-child(6) .exp-count { transition-delay: 1.2s; }
.exp-row:nth-child(7) .exp-bar { transition-delay: 0.48s; }
.exp-row:nth-child(7) .exp-count { transition-delay: 1.28s; }
.exp-row:nth-child(8) .exp-bar { transition-delay: 0.56s; }
.exp-row:nth-child(8) .exp-count { transition-delay: 1.36s; }
.exp-row:nth-child(9) .exp-bar { transition-delay: 0.64s; }
.exp-row:nth-child(9) .exp-count { transition-delay: 1.44s; }
.exp-row:nth-child(10) .exp-bar { transition-delay: 0.72s; }
.exp-row:nth-child(10) .exp-count { transition-delay: 1.52s; }
.exp-row:nth-child(11) .exp-bar { transition-delay: 0.8s; }
.exp-row:nth-child(11) .exp-count { transition-delay: 1.6s; }
.exp-row:nth-child(12) .exp-bar { transition-delay: 0.88s; }
.exp-row:nth-child(12) .exp-count { transition-delay: 1.68s; }
.exp-row:nth-child(13) .exp-bar { transition-delay: 0.96s; }
.exp-row:nth-child(13) .exp-count { transition-delay: 1.76s; }

@media (max-width: 768px) {
    .exp-row {
        grid-template-columns: 120px 1fr 80px;
        gap: 0.6rem;
    }

    .exp-icon {
        width: 20px;
        height: 20px;
    }

    .exp-name {
        font-size: 0.8rem;
    }

    .exp-bar-wrap {
        height: 22px;
    }

    .exp-count {
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .exp-row {
        grid-template-columns: 100px 1fr 70px;
    }
}

/* ========================================
   PROJECTS
   ======================================== */
/* Project Tabs */
.project-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.project-tab {
    font-family: var(--font);
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.55rem 1.25rem;
    border-radius: 100px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
}

.project-tab:hover {
    border-color: var(--border-hover);
    color: var(--text);
}

.project-tab.active {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

.project-group {
    margin-bottom: 3rem;
}

.project-group.tab-hidden {
    display: none;
}

.group-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
}

.group-label {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.group-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.group-dot-pro { background: #22c55e; box-shadow: 0 0 8px rgba(34, 197, 94, 0.4); }
.group-dot-personal { background: var(--accent-light); box-shadow: 0 0 8px var(--accent-glow); }
.group-dot-other { background: var(--text-muted); }

.group-title {
    font-size: 1.1rem;
    font-weight: 700;
}

.group-count {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    margin-bottom: 1rem;
}

/* New card design */
.project-card-v2 {
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--bg-card);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.project-card-v2[data-project] {
    cursor: pointer;
}

.project-card-v2:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.project-card-v2[data-project]:hover .card-preview::after {
    content: 'View Details \2192';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
    background: rgba(0,0,0,0.5);
    padding: 0.4rem 1rem;
    border-radius: 100px;
    backdrop-filter: blur(4px);
    z-index: 2;
    white-space: nowrap;
}

.project-card-v2.pro-hidden,
.project-card-v2.personal-hidden {
    display: none;
}

.project-card-v2.show {
    display: flex;
}

.card-preview {
    height: 200px;
    background: linear-gradient(135deg, var(--g1), var(--g2));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.card-preview::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 50%, rgba(255,255,255,0.1) 0%, transparent 60%);
}

.card-preview-img {
    background: var(--bg-card);
    padding: 0;
}

.card-preview-img::before {
    display: none;
}

.card-preview-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease, filter 0.4s ease;
}

.project-card-v2:hover .card-preview-img img {
    transform: scale(1.05);
    filter: brightness(0.7);
}

.card-preview-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    z-index: 1;
}

.card-preview-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: rgba(255,255,255,0.8);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.store-badges {
    position: absolute;
    bottom: 8px;
    right: 8px;
    display: flex;
    gap: 0.35rem;
    z-index: 1;
}

.store-badge {
    font-size: 0.6rem;
    font-weight: 600;
    color: white;
    background: rgba(0,0,0,0.4);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    backdrop-filter: blur(4px);
}

.card-body {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-body-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.card-body-header .project-title {
    margin-bottom: 0;
}

.project-links {
    display: flex;
    gap: 0.75rem;
}

.project-links a {
    color: var(--text-muted);
    transition: var(--transition);
    display: flex;
}

.project-links a:hover {
    color: var(--accent-light);
    transform: translateY(-2px);
}

.project-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

.project-desc {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.7;
    flex: 1;
    margin-bottom: 1rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: auto;
}

.project-tech span {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--text-muted);
    padding: 0.2rem 0.55rem;
    border-radius: var(--radius-xs);
    background: rgba(255, 255, 255, 0.04);
}

/* Expand button */
.expand-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.85rem;
    margin-top: 0.5rem;
    font-family: var(--font);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: transparent;
    border: 1px dashed var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
}

.expand-btn:hover {
    border-color: var(--accent);
    color: var(--accent-light);
    background: var(--accent-glow);
}

.expand-btn.expanded svg {
    transform: rotate(180deg);
}

.expand-btn svg {
    transition: var(--transition);
}

.expand-btn.hidden {
    display: none;
}

/* More Projects */
.more-projects {
    border-top: 1px solid var(--border);
    padding-top: 3rem;
}

.more-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
}

.more-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 0.75rem;
}

.more-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1.25rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--bg-card);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.more-item:hover {
    border-color: var(--accent);
    background: var(--bg-card-hover);
    transform: translateX(4px);
}

.more-tech {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* ========================================
   CONTACT
   ======================================== */
.contact-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.contact-code-block {
    margin: 2rem 0;
    text-align: left;
}

.contact-window {
    max-width: 520px;
    margin: 0 auto;
}

.contact-window .code-block {
    font-size: 0.8rem;
    line-height: 1.9;
}

.code-comment {
    color: #5c6370;
    font-style: italic;
}

.contact-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.social-link {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    transition: var(--transition);
}

.social-link:hover {
    border-color: var(--accent);
    color: var(--accent-light);
    background: var(--accent-glow);
    transform: translateY(-3px);
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    padding: 2.5rem 2rem;
    text-align: center;
    border-top: 1px solid var(--border);
    font-family: var(--font-mono);
}

.footer-code {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.4rem;
}

.footer-comment {
    font-size: 0.75rem;
    color: var(--text-muted);
    opacity: 0.6;
}

/* ========================================
   REVEAL ANIMATIONS
   ======================================== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal:nth-child(4) { transition-delay: 0.3s; }

/* Project card staggered animations */
.projects-grid .reveal:nth-child(1) { transition-delay: 0s; }
.projects-grid .reveal:nth-child(2) { transition-delay: 0.1s; }
.projects-grid .reveal:nth-child(3) { transition-delay: 0.2s; }
.projects-grid .reveal:nth-child(4) { transition-delay: 0.3s; }
.projects-grid .reveal:nth-child(5) { transition-delay: 0.4s; }
.projects-grid .reveal:nth-child(6) { transition-delay: 0.5s; }
.projects-grid .reveal:nth-child(7) { transition-delay: 0.6s; }
.projects-grid .reveal:nth-child(8) { transition-delay: 0.7s; }
.projects-grid .reveal:nth-child(9) { transition-delay: 0.8s; }
.projects-grid .reveal:nth-child(10) { transition-delay: 0.15s; }
.projects-grid .reveal:nth-child(11) { transition-delay: 0.25s; }
.projects-grid .reveal:nth-child(12) { transition-delay: 0.35s; }
.projects-grid .reveal:nth-child(13) { transition-delay: 0.45s; }
.projects-grid .reveal:nth-child(14) { transition-delay: 0.55s; }
.projects-grid .reveal:nth-child(15) { transition-delay: 0.65s; }

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
    .projects-grid {
        grid-template-columns: 1fr 1fr;
    }

    .skills-logo-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .hero {
        padding: 5rem 1.5rem 3rem;
    }

    .hero-desc {
        font-size: 0.95rem;
    }

    .hero-stats {
        gap: 1.25rem;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .skills-logo-grid {
        grid-template-columns: repeat(auto-fill, minmax(85px, 1fr));
        gap: 0.75rem;
    }

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

    .card-preview {
        height: 160px;
    }

    .section {
        padding: 4rem 1.5rem;
    }

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

    .more-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.35rem;
    }

    .project-filters {
        gap: 0.4rem;
    }

    .filter-btn {
        padding: 0.4rem 1rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
}

/* ========================================
   SMOOTH SCROLLBAR
   ======================================== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: var(--border-hover);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}
