/* ===================================================================
   OKIKI NELSON PORTFOLIO — 2026 EDITION
   Modern dark-first design with glassmorphism & micro-animations
   =================================================================== */

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Core palette — Indigo / Violet */
    --primary: #6366f1;
    --primary-light: #818cf8;
    --primary-dark: #4f46e5;
    --accent: #a855f7;
    --accent-light: #c084fc;

    /* Neutrals */
    --bg: #0a0a0f;
    --bg-card: rgba(17, 17, 27, 0.7);
    --bg-card-solid: #11111b;
    --bg-elevated: rgba(30, 30, 50, 0.5);
    --surface: #16161f;
    --border: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(255, 255, 255, 0.12);

    /* Text */
    --text: #e4e4e7;
    --text-muted: #a1a1aa;
    --text-dim: #71717a;

    /* Effects */
    --glow-primary: rgba(99, 102, 241, 0.15);
    --glow-accent: rgba(168, 85, 247, 0.15);
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);

    /* Sizes */
    --nav-height: 72px;
    --radius: 16px;
    --radius-sm: 10px;
    --radius-xs: 6px;
}

/* Light Theme */
[data-theme="light"] {
    --bg: #fafafa;
    --bg-card: rgba(255, 255, 255, 0.8);
    --bg-card-solid: #ffffff;
    --bg-elevated: rgba(245, 245, 255, 0.9);
    --surface: #f4f4f5;
    --border: rgba(0, 0, 0, 0.06);
    --border-hover: rgba(0, 0, 0, 0.12);
    --text: #18181b;
    --text-muted: #52525b;
    --text-dim: #a1a1aa;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.12);
    --glow-primary: rgba(99, 102, 241, 0.08);
    --glow-accent: rgba(168, 85, 247, 0.08);
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    overflow-x: hidden;
}

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

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

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

/* Focus ring */
:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
    border-radius: var(--radius-xs);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ===== NAVIGATION ===== */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--nav-height);
    display: flex;
    align-items: center;
    background: rgba(10, 10, 15, 0.6);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border);
    transition: all 0.35s cubic-bezier(.4,0,.2,1);
}

[data-theme="light"] nav {
    background: rgba(250, 250, 250, 0.7);
}

nav.nav-shrink {
    height: 60px;
    background: rgba(10, 10, 15, 0.85);
}

[data-theme="light"] nav.nav-shrink {
    background: rgba(250, 250, 250, 0.9);
}

nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text);
}

.logo-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    font-size: 0.75rem;
    color: white;
    letter-spacing: -0.5px;
}

.logo-text {
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: -0.5px;
}

.logo-dot {
    color: var(--primary);
}

/* Nav Menu */
nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

nav ul a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-xs);
    transition: all 0.25s;
    position: relative;
}

nav ul a:hover,
nav ul a[aria-current="page"] {
    color: var(--text);
    background: var(--glow-primary);
}

nav ul a[aria-current="page"]::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
}

/* Theme Toggle */
.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.25s;
    padding: 0;
}

.theme-toggle:hover {
    background: var(--glow-primary);
    border-color: var(--border-hover);
    color: var(--text);
}

.moon-icon { display: block; }
.sun-icon { display: none; }

[data-theme="light"] .moon-icon { display: none; }
[data-theme="light"] .sun-icon { display: block; }

/* Nav Toggle (Mobile) */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s;
}

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: var(--nav-height);
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.mesh-gradient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 20% 40%, rgba(99, 102, 241, 0.25) 0%, transparent 60%),
        radial-gradient(ellipse 60% 40% at 80% 20%, rgba(168, 85, 247, 0.2) 0%, transparent 60%),
        radial-gradient(ellipse 50% 60% at 60% 80%, rgba(59, 130, 246, 0.15) 0%, transparent 60%);
    animation: meshShift 12s ease-in-out infinite alternate;
}

[data-theme="light"] .mesh-gradient {
    background:
        radial-gradient(ellipse 80% 50% at 20% 40%, rgba(99, 102, 241, 0.12) 0%, transparent 60%),
        radial-gradient(ellipse 60% 40% at 80% 20%, rgba(168, 85, 247, 0.1) 0%, transparent 60%),
        radial-gradient(ellipse 50% 60% at 60% 80%, rgba(59, 130, 246, 0.08) 0%, transparent 60%);
}

@keyframes meshShift {
    0% { transform: scale(1) rotate(0deg); }
    100% { transform: scale(1.1) rotate(3deg); }
}

.grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}

[data-theme="light"] .grid-overlay {
    background-image:
        linear-gradient(rgba(0,0,0,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,0,0,0.03) 1px, transparent 1px);
}

.floating-orbs { position: absolute; inset: 0; }

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: orbFloat 20s ease-in-out infinite;
}

.orb-1 {
    width: 300px;
    height: 300px;
    background: var(--primary);
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.orb-2 {
    width: 250px;
    height: 250px;
    background: var(--accent);
    top: 60%;
    right: 15%;
    animation-delay: -7s;
}

.orb-3 {
    width: 200px;
    height: 200px;
    background: #3b82f6;
    bottom: 20%;
    left: 40%;
    animation-delay: -14s;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -40px) scale(1.1); }
    50% { transform: translate(-20px, 20px) scale(0.9); }
    75% { transform: translate(15px, 30px) scale(1.05); }
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 2rem 0 4rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 0.5rem 1.25rem;
    border-radius: 100px;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
    animation: fadeInDown 0.8s ease-out;
}

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

@keyframes pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5); }
    50% { opacity: 0.8; box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -2px;
    margin-bottom: 1.5rem;
}

.hero-line {
    display: block;
    animation: fadeInUp 0.8s ease-out both;
}

.hero-line:nth-child(2) {
    animation-delay: 0.15s;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-light), var(--accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.8;
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

.hero-description strong {
    color: var(--text);
    font-weight: 600;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2.5rem;
    animation: fadeInUp 0.8s ease-out 0.45s both;
}

.hero-stat {
    text-align: center;
}

.hero-stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--text);
    font-family: 'JetBrains Mono', monospace;
}

.hero-stat-plus {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-light);
    font-family: 'JetBrains Mono', monospace;
}

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

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

/* Hero CTAs */
.hero-ctas {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(.4,0,.2,1);
    cursor: pointer;
    border: none;
    font-family: inherit;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    box-shadow: 0 4px 15px var(--glow-primary);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.35);
}

.btn-ghost {
    background: var(--bg-card);
    color: var(--text);
    border: 1px solid var(--border);
    backdrop-filter: blur(10px);
}

.btn-ghost:hover {
    background: var(--bg-elevated);
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

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

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

/* Hero Tech Pills */
.hero-tech-stack {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    animation: fadeInUp 0.8s ease-out 0.75s both;
}

.tech-pill {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-dim);
    padding: 0.35rem 0.9rem;
    border: 1px solid var(--border);
    border-radius: 100px;
    transition: all 0.25s;
    font-family: 'JetBrains Mono', monospace;
}

.tech-pill:hover {
    color: var(--primary-light);
    border-color: var(--primary);
    background: var(--glow-primary);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-dim);
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    animation: fadeInUp 0.8s ease-out 1s both;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--primary), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
    50% { opacity: 1; transform: scaleY(1); }
}

/* ===== SECTION STYLING ===== */
section {
    padding: 100px 0;
    position: relative;
}

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

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-tag {
    display: inline-block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.75rem;
    letter-spacing: 1px;
}

section h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -1.5px;
    color: var(--text);
}

/* ===== ABOUT SECTION ===== */
.about-bento {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.bento-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(.4,0,.2,1);
}

.bento-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow);
}

.bento-intro {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.about-lead {
    font-size: 1.15rem;
    line-height: 1.8;
}

.text-accent {
    color: var(--primary-light);
    font-weight: 700;
}

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

.bento-intro p strong {
    color: var(--primary-light);
    font-weight: 600;
}

.about-status {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.5rem;
    color: #22c55e;
    font-size: 0.9rem;
    font-weight: 500;
}

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

.bento-side {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.bento-stat-card {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
}

.bento-stat-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--glow-primary), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.bento-stat-card:hover::before {
    opacity: 1;
}

.bento-stat-card.accent::before {
    background: linear-gradient(135deg, var(--glow-accent), transparent);
}

.bento-stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-light);
    font-family: 'JetBrains Mono', monospace;
    position: relative;
    z-index: 1;
}

.bento-stat-card.accent .bento-stat-value {
    color: var(--accent-light);
}

.bento-stat-desc {
    font-size: 0.8rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
    margin-top: 0.5rem;
    position: relative;
    z-index: 1;
}

.about-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

/* ===== SKILLS SECTION ===== */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.skill-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(.4,0,.2,1);
    position: relative;
    overflow: hidden;
}

.skill-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    opacity: 0;
    transition: opacity 0.3s;
}

.skill-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.skill-card:hover::after {
    opacity: 1;
}

.skill-card-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.skill-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 1.25rem;
    letter-spacing: -0.3px;
}

.skill-items {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-item {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
    padding: 0.4rem 0.75rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-xs);
    transition: all 0.2s;
}

.skill-item:hover {
    color: var(--primary-light);
    border-color: var(--primary);
    background: var(--glow-primary);
}

/* Skill Meters */
.skill-meter-group {
    margin-top: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.skill-meter-item {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.skill-meter-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-dim);
    font-weight: 500;
}

.skill-meter-bar {
    height: 6px;
    background: var(--bg-elevated);
    border-radius: 100px;
    overflow: hidden;
}

.skill-meter-bar > span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 100px;
    width: 0;
    transition: width 1.2s cubic-bezier(.4,0,.2,1);
}

.w-90 { --w: 90%; }
.w-95 { --w: 95%; }

/* ===== PROJECTS SECTION ===== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(.4,0,.2,1);
    display: flex;
    flex-direction: column;
    position: relative;
}

.project-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.project-card.featured {
    border-color: rgba(99, 102, 241, 0.2);
}

.project-card.featured:hover {
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 12px 40px rgba(99, 102, 241, 0.15);
}

.project-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.project-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.folder-icon {
    color: var(--primary-light);
    flex-shrink: 0;
}

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

.project-icon-link {
    color: var(--text-dim);
    transition: all 0.25s;
    display: inline-flex;
    align-items: center;
}

.project-icon-link:hover {
    color: var(--primary-light);
    transform: translateY(-2px);
}

.project-status {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #22c55e;
    margin-top: 0.75rem;
}

.live-dot {
    width: 6px;
    height: 6px;
    background: #22c55e;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

.project-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.75rem;
    letter-spacing: -0.3px;
}

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

.project-highlights {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-bottom: 1.25rem;
}

.project-highlights span {
    font-size: 0.8rem;
    color: var(--text-dim);
    padding-left: 1rem;
    position: relative;
}

.project-highlights span::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--primary-light);
    font-weight: bold;
}

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

.project-card-tags span {
    font-size: 0.75rem;
    font-family: 'JetBrains Mono', monospace;
    color: var(--text-dim);
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    background: var(--bg-elevated);
    transition: all 0.2s;
}

.project-card-tags span:hover {
    color: var(--primary-light);
}

/* ===== EXPERIENCE / TIMELINE ===== */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding-left: 40px;
}

.timeline-line {
    position: absolute;
    left: 10px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary), var(--accent), transparent);
}

.timeline-item {
    position: relative;
    margin-bottom: 2.5rem;
    padding-left: 2rem;
}

.timeline-dot {
    position: absolute;
    left: -36px;
    top: 8px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--surface);
    border: 2px solid var(--text-dim);
    z-index: 2;
    transition: all 0.3s;
}

.timeline-dot.current {
    border-color: var(--primary);
    background: var(--primary);
    box-shadow: 0 0 0 4px var(--glow-primary);
}

.timeline-item:hover .timeline-dot {
    border-color: var(--primary);
    transform: scale(1.2);
}

.timeline-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(.4,0,.2,1);
}

.timeline-content:hover {
    border-color: var(--border-hover);
    transform: translateX(6px);
    box-shadow: var(--shadow);
}

.timeline-badge {
    display: none;
}

.current-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: white;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    padding: 0.25rem 0.75rem;
    border-radius: 100px;
    margin-bottom: 0.75rem;
}

.timeline-content h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.25rem;
    letter-spacing: -0.3px;
}

.timeline-role {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-light);
    margin-bottom: 0.25rem;
}

.timeline-date {
    font-size: 0.8rem;
    color: var(--text-dim);
    font-family: 'JetBrains Mono', monospace;
    margin-bottom: 1rem;
}

.timeline-content ul {
    list-style: none;
}

.timeline-content li {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.7;
    padding-left: 1.25rem;
    margin-bottom: 0.5rem;
    position: relative;
}

.timeline-content li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--primary-light);
    font-weight: bold;
}

/* ===== CONTACT SECTION ===== */
.contact-grid {
    max-width: 800px;
    margin: 0 auto;
}

.contact-text {
    text-align: center;
    margin-bottom: 3rem;
}

.contact-lead {
    font-size: 1.2rem;
    color: var(--text);
    font-weight: 500;
    margin-bottom: 0.75rem;
    line-height: 1.7;
}

.contact-text p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.contact-cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem 2rem;
    text-decoration: none;
    color: var(--text);
    backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(.4,0,.2,1);
}

.contact-card:hover {
    border-color: var(--primary);
    transform: translateX(8px);
    box-shadow: 0 4px 20px var(--glow-primary);
}

.contact-card-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.contact-card-info {
    flex: 1;
}

.contact-card-info h3 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.contact-card-info span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.contact-arrow {
    color: var(--text-dim);
    transition: all 0.3s;
    flex-shrink: 0;
}

.contact-card:hover .contact-arrow {
    color: var(--primary-light);
    transform: translateX(4px);
}

/* ===== FOOTER ===== */
footer {
    background: var(--bg);
    border-top: 1px solid var(--border);
    padding: 4rem 0 2rem;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.7;
    max-width: 360px;
}

.footer-socials {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.footer-socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    color: var(--text-muted);
    transition: all 0.25s;
}

.footer-socials a:hover {
    color: var(--primary-light);
    border-color: var(--primary);
    background: var(--glow-primary);
    transform: translateY(-2px);
}

.footer-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-col h4 {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.25rem;
}

.footer-col a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.footer-col a:hover {
    color: var(--primary-light);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border);
    padding-top: 2rem;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: var(--text-dim);
}

/* Back to Top */
.back-to-top {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-muted);
    text-decoration: none;
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: all 0.3s;
}

.back-to-top.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.back-to-top:hover {
    color: var(--primary-light);
    border-color: var(--primary);
    background: var(--glow-primary);
    transform: translateY(-2px);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Reveal on scroll */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(.4,0,.2,1);
}

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

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

    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-bento {
        grid-template-columns: 1fr;
    }

    .bento-side {
        grid-template-columns: repeat(4, 1fr);
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    :root {
        --nav-height: 64px;
    }

    .container {
        padding: 0 1.25rem;
    }

    section {
        padding: 70px 0;
    }

    /* Nav mobile */
    .nav-toggle {
        display: flex;
        order: 3;
    }

    nav ul {
        position: fixed;
        top: var(--nav-height);
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--bg);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 1rem;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(.4,0,.2,1);
    }

    nav.mobile-open ul {
        transform: translateX(0);
    }

    nav ul a {
        font-size: 1.15rem;
        padding: 0.75rem 1.5rem;
    }

    .nav-toggle span {
        transition: all 0.3s;
    }

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

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

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

    /* Hero mobile */
    .hero h1 {
        font-size: clamp(2rem, 8vw, 3rem);
        letter-spacing: -1px;
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-stats {
        gap: 1.5rem;
    }

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

    .hero-ctas {
        flex-direction: column;
        align-items: center;
    }

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

    .scroll-indicator {
        display: none;
    }

    /* Skills mobile */
    .skills-grid {
        grid-template-columns: 1fr;
    }

    /* Projects mobile */
    .projects-grid {
        grid-template-columns: 1fr;
    }

    /* About mobile */
    .bento-side {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Timeline mobile */
    .timeline {
        padding-left: 30px;
    }

    .timeline-dot {
        left: -26px;
        width: 12px;
        height: 12px;
    }

    .timeline-content {
        padding: 1.5rem;
    }

    /* Footer */
    .footer-inner {
        gap: 2rem;
    }

    .footer-links {
        grid-template-columns: 1fr 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    section {
        padding: 50px 0;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .hero-stat-divider {
        display: none;
    }

    .bento-side {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }

    .bento-stat-card {
        padding: 1rem;
    }

    .bento-stat-value {
        font-size: 1.5rem;
    }

    .about-links {
        flex-direction: column;
        align-items: center;
    }

    .about-links .btn {
        width: 100%;
        max-width: 280px;
    }

    .contact-card {
        padding: 1.25rem 1.5rem;
    }

    .footer-links {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .back-to-top {
        bottom: 1rem;
        right: 1rem;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    nav, .cursor-glow, .back-to-top, .scroll-indicator, .hero-bg { display: none; }
    body { background: white; color: black; }
    section { padding: 2rem 0; }
}