/* ============================================
   DANIEL CROCKER — PORTFOLIO
   Bioluminescent / Molecular Theme
   ============================================ */

/* ---------- CUSTOM PROPERTIES ---------- */
:root {
    --bg-primary:   #050510;
    --bg-secondary: #0a0a1a;
    --bg-tertiary:  #12122a;
    --accent-1:     #00d4ff;   /* cyan  */
    --accent-2:     #7b2ff7;   /* purple */
    --accent-3:     #00ff88;   /* green  */
    --text-primary:   #e8e8f0;
    --text-secondary: #8888aa;
    --text-dim:       #4a4a6a;
    --border:         #1a1a3a;
    --font-heading:  'Space Grotesk', sans-serif;
    --font-body:     'Inter', sans-serif;
    --font-mono:     'JetBrains Mono', monospace;
    --container:     1100px;
    --section-pad:   36px;
    --radius:        16px;
    --radius-sm:     8px;
}

/* ---------- RESET ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul, ol { list-style: none; }
::selection { background: rgba(0,212,255,.25); color: #fff; }

/* ---------- UTILITY ---------- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ---------- CURSOR BALL ---------- */
#cursor-ball {
    position: fixed;
    width: 22px; height: 22px;
    border-radius: 50%;
    background: rgba(0, 212, 255, 0.2);
    border: 1.5px solid rgba(0, 212, 255, 0.45);
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: width .25s ease, height .25s ease, background .25s ease, border-color .25s ease;
    mix-blend-mode: screen;
    will-change: left, top;
    opacity: 0;
}
#cursor-ball.visible { opacity: 1; }
#cursor-ball.cursor-hover {
    width: 48px; height: 48px;
    background: rgba(0, 212, 255, 0.08);
    border-color: rgba(0, 212, 255, 0.6);
}
@media (max-width: 768px) { #cursor-ball { display: none; } }
@media (pointer: coarse) { #cursor-ball { display: none; } }

/* ---------- LOADER ---------- */
#loader {
    position: fixed; inset: 0;
    z-index: 9999;
    background: var(--bg-primary);
    display: flex; align-items: center; justify-content: center;
    transition: opacity .6s ease;
}
.loader-atom {
    width: 70px; height: 70px;
    position: relative;
}
.loader-nucleus {
    position: absolute;
    width: 12px; height: 12px;
    background: var(--accent-1);
    border-radius: 50%;
    top: 50%; left: 50%;
    transform: translate(-50%,-50%);
    box-shadow: 0 0 20px var(--accent-1);
}
.loader-ring {
    position: absolute; inset: 0;
    border: 2px solid transparent;
    border-top-color: var(--accent-1);
    border-radius: 50%;
    animation: orbit 1.6s linear infinite;
}
.loader-ring-2 {
    inset: 6px;
    border-top-color: var(--accent-2);
    animation-duration: 1.1s;
    animation-direction: reverse;
}
.loader-ring-3 {
    inset: 12px;
    border-top-color: var(--accent-3);
    animation-duration: 1.9s;
}
@keyframes orbit { to { transform: rotate(360deg); } }

/* ---------- THREE.JS CANVAS ---------- */
#hero-canvas {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100vh;
    z-index: 0;
}

/* ---------- NAVBAR ---------- */
#navbar {
    position: fixed; top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 20px 0;
    transition: background .4s, padding .4s, backdrop-filter .4s;
}
#navbar.scrolled {
    background: rgba(5,5,16,.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}
.nav-container {
    max-width: var(--container);
    margin: 0 auto; padding: 0 24px;
    display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
    font-family: var(--font-heading);
    font-weight: 700; font-size: 1.4rem;
    color: var(--accent-1);
    letter-spacing: -1px;
}
.nav-links { display: flex; gap: 32px; }
.nav-link {
    font-family: var(--font-mono);
    font-size: .85rem;
    color: var(--text-secondary);
    transition: color .3s;
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute; bottom: -4px; left: 0;
    width: 0; height: 2px;
    background: var(--accent-1);
    transition: width .3s;
}
.nav-link:hover, .nav-link.active { color: var(--accent-1); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

/* theme toggle */
.theme-toggle {
    width: 36px; height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--bg-secondary);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color .3s, transform .3s;
}
.theme-toggle:hover {
    border-color: var(--accent-1);
    transform: scale(1.1);
}

/* hamburger */
.nav-toggle { display: none; flex-direction: column; gap: 5px; width: 28px; padding: 4px 0; }
.nav-toggle span {
    display: block; width: 100%; height: 2px;
    background: var(--text-primary);
    transition: transform .3s, opacity .3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* mobile menu */
.mobile-menu {
    position: fixed; inset: 0;
    z-index: 99;
    background: rgba(5,5,16,.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 32px;
    opacity: 0; pointer-events: none;
    transition: opacity .4s;
}
.mobile-menu.open { opacity: 1; pointer-events: auto; }
.mobile-link {
    font-family: var(--font-heading);
    font-size: 2rem; font-weight: 500;
    color: var(--text-secondary);
    transition: color .3s;
}
.mobile-link:hover { color: var(--accent-1); }

/* ---------- HERO ---------- */
#hero {
    position: relative;
    height: 100vh; min-height: 600px;
    display: flex; align-items: center; justify-content: center;
    z-index: 1;
}
.hero-content {
    text-align: center;
    padding: 0 24px;
    max-width: 800px;
}
.hero-label {
    font-family: var(--font-mono);
    font-size: .95rem;
    color: var(--accent-1);
    margin-bottom: 12px;
    opacity: 0;
}
.hero-name {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 10vw, 5.5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 20px;
}
.hero-name-line {
    display: block;
    opacity: 0;
}
.hero-letter { display: inline-block; will-change: transform; }
.hero-dot { color: var(--accent-1); }
.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
    opacity: 0;
}
.hero-pipe { color: var(--accent-2); margin: 0 4px; }
.hero-tagline {
    font-size: 1.05rem;
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: 36px;
    opacity: 0;
}
.hero-cta {
    display: flex; gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
}

/* scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 36px; left: 50%;
    transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    opacity: 0;
}
.scroll-mouse {
    width: 24px; height: 38px;
    border: 2px solid rgba(255,255,255,.35);
    border-radius: 12px;
    position: relative;
}
.scroll-wheel {
    width: 3px; height: 8px;
    background: rgba(255,255,255,.6);
    border-radius: 2px;
    position: absolute; left: 50%; top: 7px;
    transform: translateX(-50%);
    animation: scrollWheel 1.8s ease-in-out infinite;
}
@keyframes scrollWheel {
    0%   { opacity: 1; top: 7px; }
    100% { opacity: 0; top: 20px; }
}
.scroll-text {
    font-family: var(--font-mono);
    font-size: .7rem;
    color: var(--text-dim);
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* ---------- BUTTONS ---------- */
.btn {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: .9rem;
    padding: 14px 30px;
    border-radius: var(--radius-sm);
    transition: transform .3s, box-shadow .3s, background .3s;
    cursor: pointer;
}
.btn-primary {
    background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    color: #fff;
}
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,212,255,.25);
}
.btn-outline {
    border: 1px solid var(--accent-1);
    color: var(--accent-1);
}
.btn-outline:hover {
    background: rgba(0,212,255,.08);
    transform: translateY(-3px);
}

/* ---------- SECTIONS (shared) ---------- */
.section {
    position: relative;
    z-index: 2;
    background: var(--bg-primary);
    padding: var(--section-pad) 0;
    overflow: hidden;
}
.section-header {
    display: flex; align-items: center; gap: 16px;
    margin-bottom: 64px;
}
.section-number {
    font-family: var(--font-mono);
    font-size: .9rem;
    color: var(--accent-1);
}
.section-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 600;
    white-space: nowrap;
}
.section-line {
    flex: 1; height: 1px;
    background: linear-gradient(to right, var(--border), transparent);
}

/* background orbs */
.section-bg-orb {
    position: absolute; width: 600px; height: 600px;
    border-radius: 50%; pointer-events: none;
    opacity: .06;
}
.orb-right { right: -250px; top: 10%; }
.orb-left  { left: -250px; bottom: 10%; }
.orb-cyan   { background: radial-gradient(circle, var(--accent-1), transparent 70%); }
.orb-purple { background: radial-gradient(circle, var(--accent-2), transparent 70%); }
.orb-green  { background: radial-gradient(circle, var(--accent-3), transparent 70%); }

/* ---------- ABOUT ---------- */
.about-grid {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 64px;
    align-items: start;
}
.about-image-col {
    display: flex; flex-direction: column; align-items: center; gap: 16px;
}
.about-image {
    position: relative;
    width: 260px; height: 260px;
}
.image-border {
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    background: conic-gradient(var(--accent-1), var(--accent-2), var(--accent-3), var(--accent-1));
    animation: spin 5s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.about-image img {
    position: relative;
    width: 100%; height: 100%;
    border-radius: 50%;
    object-fit: cover;
    z-index: 1;
    border: 4px solid var(--bg-primary);
}
.about-location {
    font-family: var(--font-mono);
    font-size: .8rem;
    color: var(--text-secondary);
}
.about-clock {
    font-family: var(--font-mono);
    font-size: .75rem;
    color: var(--text-secondary);
    margin-top: 4px;
}
.about-bio {
    color: var(--text-secondary);
    margin-bottom: 18px;
    font-size: 1.05rem;
}
.highlight {
    color: var(--accent-1);
    font-weight: 500;
}
.about-stats {
    display: flex;
    gap: 16px;
    margin-top: 36px;
}
.about-stats .stat-card { flex: 1; min-width: 0; }
.stat-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 20px 12px;
    text-align: center;
    transition: border-color .3s, transform .3s;
}
.stat-card:hover {
    border-color: var(--accent-1);
    transform: translateY(-4px);
}
.stat-value {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}
.stat-text-value {
    font-size: 1.5rem;
    background: linear-gradient(135deg, var(--accent-1), var(--accent-3));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.stat-suffix {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--accent-1);
}
.stat-label {
    font-size: .75rem;
    color: var(--text-dim);
    margin-top: 6px;
    line-height: 1.3;
}

/* ---------- EXPERIENCE / TIMELINE ---------- */
.timeline {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
    padding: 10px 0;
}
.timeline-track {
    position: absolute;
    left: 50%; top: 0; bottom: 0;
    width: 2px;
    transform: translateX(-50%);
    background: linear-gradient(to bottom, var(--accent-1), var(--accent-2), var(--accent-3));
    opacity: .4;
}
.timeline-item {
    position: relative;
    width: 50%;
    padding: 0 24px 0;
    margin-bottom: -40px;
}
.timeline-item:last-child { margin-bottom: 0; }
.tl-right { margin-left: 50%; }
.tl-left  { text-align: right; }
.timeline-marker {
    position: absolute;
    width: 14px; height: 14px;
    background: var(--accent-1);
    border: 3px solid var(--bg-primary);
    border-radius: 50%;
    top: 4px;
    box-shadow: 0 0 12px rgba(0,212,255,.5);
    z-index: 2;
}
.tl-right .timeline-marker { left: -7px; }
.tl-left  .timeline-marker { right: -7px; }
.timeline-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px 24px;
    transition: border-color .3s, transform .3s;
}
.timeline-card:hover {
    border-color: rgba(0,212,255,.3);
    transform: translateY(-4px);
}
.timeline-date {
    font-family: var(--font-mono);
    font-size: .8rem;
    color: var(--accent-1);
}
.timeline-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 600;
    margin: 6px 0 4px;
}
.timeline-role {
    font-size: .9rem;
    color: var(--text-dim);
    display: block;
    margin-bottom: 12px;
}
.timeline-card p {
    font-size: .95rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

/* ---------- RESEARCH ---------- */
.research-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}
.research-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color .3s, transform .2s;
    will-change: transform;
}
.research-card:hover { border-color: rgba(0,212,255,.3); }
.research-visual {
    height: 200px;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    position: relative;
    overflow: hidden;
}
.research-visual-molecular {
    background: linear-gradient(135deg, #07101e 0%, #150a2e 50%, #0a1e18 100%);
}
.research-visual-neural {
    background: linear-gradient(135deg, #0a1e18 0%, #150a2e 50%, #07101e 100%);
}
/* dot grid overlay */
.research-visual::after {
    content: '';
    position: absolute; inset: 0;
    background-image: radial-gradient(circle, rgba(0,212,255,.12) 1px, transparent 1px);
    background-size: 24px 24px;
}
.research-metric-display {
    position: relative; z-index: 1;
    text-align: center;
}
.metric-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-1), var(--accent-3));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
}
.metric-unit {
    font-family: var(--font-mono);
    font-size: .85rem;
    color: var(--text-dim);
    display: block;
    margin-top: 4px;
}
.research-body { padding: 28px; }
.research-body h3 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: 4px;
}
.research-affiliation {
    font-size: .85rem;
    color: var(--text-dim);
    margin-bottom: 14px;
}
.research-desc {
    font-size: .95rem;
    color: var(--text-secondary);
    margin-bottom: 18px;
    line-height: 1.65;
}
.research-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
    font-family: var(--font-mono);
    font-size: .75rem;
    padding: 4px 12px;
    border-radius: 20px;
    background: rgba(0,212,255,.08);
    color: var(--accent-1);
    border: 1px solid rgba(0,212,255,.15);
}

/* ---------- SKILLS / JAR ---------- */
.jar-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}
.skill-jar {
    position: relative;
    width: 100%;
    max-width: 860px;
    height: 480px;
    border: 2px solid rgba(0, 212, 255, 0.15);
    border-top: none;
    border-radius: 0 0 30px 30px;
    background: rgba(0, 212, 255, 0.015);
    box-shadow: inset 0 0 40px rgba(0, 212, 255, 0.03), 0 0 30px rgba(0, 212, 255, 0.05);
}
.jar-rim {
    position: absolute;
    top: -8px;
    left: -10px;
    right: -10px;
    height: 10px;
    background: linear-gradient(to bottom, rgba(0, 212, 255, 0.25), rgba(0, 212, 255, 0.08));
    border: 2px solid rgba(0, 212, 255, 0.2);
    border-bottom: none;
    border-radius: 8px 8px 0 0;
    z-index: 3;
}
.skill-ball {
    position: absolute;
    top: 0; left: 0;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: .85rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.95);
    text-align: center;
    line-height: 1.15;
    padding: 4px;
    user-select: none;
    white-space: pre-line;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
    will-change: transform;
    z-index: 1;
    transition: filter .2s;
}
.skill-ball:hover { filter: brightness(1.3); z-index: 2; }
.skill-ball.cat-technical {
    background: radial-gradient(circle at 30% 30%, rgba(50, 230, 255, 0.95), rgba(0, 160, 210, 0.8));
    box-shadow: 0 2px 10px rgba(0, 212, 255, 0.35), inset 0 -2px 6px rgba(0, 0, 0, 0.2);
}
.skill-ball.cat-language {
    background: radial-gradient(circle at 30% 30%, rgba(50, 255, 160, 0.95), rgba(0, 180, 100, 0.8));
    box-shadow: 0 2px 10px rgba(0, 255, 136, 0.35), inset 0 -2px 6px rgba(0, 0, 0, 0.2);
}
.skill-ball.cat-professional {
    background: radial-gradient(circle at 30% 30%, rgba(150, 80, 255, 0.95), rgba(100, 30, 210, 0.8));
    box-shadow: 0 2px 10px rgba(123, 47, 247, 0.35), inset 0 -2px 6px rgba(0, 0, 0, 0.2);
}
.skill-ball.cat-laboratory {
    background: radial-gradient(circle at 30% 30%, rgba(255, 170, 90, 0.95), rgba(210, 120, 50, 0.8));
    box-shadow: 0 2px 10px rgba(255, 140, 66, 0.35), inset 0 -2px 6px rgba(0, 0, 0, 0.2);
}
.skill-tooltip {
    position: fixed;
    padding: 8px 16px;
    background: rgba(10, 10, 30, 0.95);
    border: 1px solid rgba(0, 212, 255, 0.25);
    border-radius: 8px;
    font-family: var(--font-mono);
    font-size: .8rem;
    color: var(--text-primary);
    pointer-events: none;
    opacity: 0;
    z-index: 200;
    transition: opacity .15s;
    white-space: nowrap;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.skill-tooltip.visible { opacity: 1; }
.jar-legend {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    justify-content: center;
}
.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: .8rem;
    color: var(--text-dim);
}
.legend-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
}
.legend-technical { background: var(--accent-1); box-shadow: 0 0 6px rgba(0, 212, 255, 0.4); }
.legend-language { background: var(--accent-3); box-shadow: 0 0 6px rgba(0, 255, 136, 0.4); }
.legend-professional { background: var(--accent-2); box-shadow: 0 0 6px rgba(123, 47, 247, 0.4); }
.legend-laboratory { background: #ff8c42; box-shadow: 0 0 6px rgba(255, 140, 66, 0.4); }
.jar-main {
    display: flex;
    gap: 24px;
    align-items: stretch;
    width: 100%;
    max-width: 1060px;
}
.jar-main .skill-jar { flex: 1; min-width: 0; }
.jar-controls {
    width: 180px;
    flex-shrink: 0;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.controls-title {
    font-family: var(--font-mono);
    font-size: .75rem;
    color: var(--accent-1);
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}
.control-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
}
.control-label {
    font-family: var(--font-mono);
    font-size: .7rem;
    color: var(--text-dim);
}
.control-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}
.control-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px; height: 14px;
    border-radius: 50%;
    background: var(--accent-1);
    box-shadow: 0 0 6px rgba(0, 212, 255, 0.4);
    cursor: pointer;
}
.control-slider::-moz-range-thumb {
    width: 14px; height: 14px;
    border: none;
    border-radius: 50%;
    background: var(--accent-1);
    box-shadow: 0 0 6px rgba(0, 212, 255, 0.4);
    cursor: pointer;
}
.control-reset {
    font-family: var(--font-mono);
    font-size: .7rem;
    color: var(--text-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 6px 0;
    margin-top: auto;
    transition: border-color .3s, color .3s;
}
.control-reset:hover {
    border-color: var(--accent-1);
    color: var(--accent-1);
}

/* ---------- CONTACT ---------- */
.contact-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}
.contact-message {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 48px;
    line-height: 1.8;
}
.contact-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.contact-card {
    display: flex;
    flex-direction: column;
    align-items: center; gap: 8px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px 24px;
    transition: border-color .3s, transform .3s;
}
.contact-card:hover {
    border-color: var(--accent-1);
    transform: translateY(-6px);
}
.contact-icon {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-1);
}
.contact-label {
    font-family: var(--font-mono);
    font-size: .75rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1px;
}
.contact-value {
    font-size: .95rem;
    color: var(--text-secondary);
}

/* ---------- FOOTER ---------- */
footer {
    position: relative; z-index: 2;
    background: var(--bg-primary);
    border-top: 1px solid var(--border);
    padding: 32px 0;
}
.footer-inner {
    display: flex; align-items: center; justify-content: space-between;
}
footer p {
    font-size: .85rem;
    color: var(--text-dim);
}
.footer-links {
    display: flex; gap: 24px;
}
.footer-links a {
    font-size: .85rem;
    color: var(--text-dim);
    transition: color .3s;
}
.footer-links a:hover { color: var(--accent-1); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
    :root { --section-pad: 32px; }
    .about-grid { gap: 48px; }
    .research-grid { gap: 24px; }
}

@media (max-width: 768px) {
    :root { --section-pad: 28px; }

    .nav-links { display: none; }
    .nav-toggle { display: flex; }

    .hero-name { font-size: clamp(2.5rem, 12vw, 4rem); }
    .hero-cta { flex-direction: column; align-items: center; }
    .btn { width: 100%; max-width: 280px; text-align: center; }

    .about-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .about-image-col { order: -1; }
    .about-image { width: 200px; height: 200px; margin: 0 auto; }
    .about-stats { grid-template-columns: 1fr 1fr; }

    /* timeline: single column */
    .timeline-track { left: 20px; }
    .timeline-item { width: 100%; margin-left: 0; margin-bottom: 16px; padding: 0 0 0 52px; text-align: left; }
    .tl-left { text-align: left; }
    .timeline-marker { left: 13px !important; right: auto !important; }

    .research-grid { grid-template-columns: 1fr; }
    .jar-main { flex-direction: column; align-items: center; }
    .jar-controls { width: 100%; max-width: 420px; flex-direction: row; flex-wrap: wrap; gap: 10px; padding: 14px 16px; }
    .controls-title { width: 100%; padding-bottom: 6px; }
    .control-row { flex: 1; min-width: 120px; }
    .control-reset { min-width: 120px; }
    .skill-jar { height: 560px; }
    .contact-cards { grid-template-columns: 1fr; }

    .footer-inner { flex-direction: column; gap: 12px; text-align: center; }
}

@media (max-width: 480px) {
    :root { --section-pad: 24px; }
    .about-stats { grid-template-columns: 1fr 1fr; }
    .stat-value { font-size: 1.4rem; }
    .section-header { margin-bottom: 40px; }
    .section-title { font-size: 1.6rem; }
    .skill-jar { height: 480px; }
}

/* ---------- LIGHT THEME ---------- */
[data-theme="light"] {
    --bg-primary:   #faf7f2;
    --bg-secondary: #f0ece4;
    --bg-tertiary:  #e6e0d6;
    --accent-1:     #e85d04;
    --accent-2:     #dc2f02;
    --accent-3:     #f48c06;
    --text-primary:   #1c1c28;
    --text-secondary: #555566;
    --text-dim:       #8888a0;
    --border:         #d8d2c8;
}
[data-theme="light"] ::selection { background: rgba(232, 93, 4, .2); }
[data-theme="light"] #cursor-ball {
    background: rgba(232, 93, 4, .18);
    border-color: rgba(232, 93, 4, .5);
    mix-blend-mode: normal;
}
[data-theme="light"] #cursor-ball.cursor-hover {
    background: rgba(232, 93, 4, .08);
    border-color: rgba(232, 93, 4, .6);
}
[data-theme="light"] #navbar.scrolled {
    background: rgba(250, 247, 242, .9);
}
[data-theme="light"] .mobile-menu {
    background: rgba(250, 247, 242, .97);
}
[data-theme="light"] .btn-primary:hover {
    box-shadow: 0 10px 30px rgba(232, 93, 4, .2);
}
[data-theme="light"] .btn-outline:hover {
    background: rgba(232, 93, 4, .06);
}
[data-theme="light"] .timeline-marker {
    box-shadow: 0 0 12px rgba(232, 93, 4, .4);
}
[data-theme="light"] .timeline-card:hover {
    border-color: rgba(232, 93, 4, .25);
}
[data-theme="light"] .research-visual-molecular {
    background: linear-gradient(135deg, #fef3e6 0%, #fde8d0 50%, #fef6ea 100%);
}
[data-theme="light"] .research-visual-neural {
    background: linear-gradient(135deg, #fef6ea 0%, #fde8d0 50%, #fef3e6 100%);
}
[data-theme="light"] .research-visual::after {
    background-image: radial-gradient(circle, rgba(232, 93, 4, .1) 1px, transparent 1px);
}
[data-theme="light"] .research-card:hover {
    border-color: rgba(232, 93, 4, .25);
}
[data-theme="light"] .tag {
    background: rgba(232, 93, 4, .06);
    border-color: rgba(232, 93, 4, .12);
}
[data-theme="light"] .skill-ball.cat-technical {
    background: radial-gradient(circle at 30% 30%, rgba(255, 130, 40, .95), rgba(232, 93, 4, .85));
    box-shadow: 0 2px 10px rgba(232, 93, 4, .3), inset 0 -2px 6px rgba(0,0,0,.1);
}
[data-theme="light"] .skill-ball.cat-language {
    background: radial-gradient(circle at 30% 30%, rgba(255, 185, 40, .95), rgba(244, 140, 6, .85));
    box-shadow: 0 2px 10px rgba(244, 140, 6, .3), inset 0 -2px 6px rgba(0,0,0,.1);
}
[data-theme="light"] .skill-ball.cat-professional {
    background: radial-gradient(circle at 30% 30%, rgba(240, 80, 40, .95), rgba(220, 47, 2, .85));
    box-shadow: 0 2px 10px rgba(220, 47, 2, .3), inset 0 -2px 6px rgba(0,0,0,.1);
}
[data-theme="light"] .skill-ball.cat-laboratory {
    background: radial-gradient(circle at 30% 30%, rgba(180, 120, 70, .95), rgba(139, 94, 60, .85));
    box-shadow: 0 2px 10px rgba(139, 94, 60, .3), inset 0 -2px 6px rgba(0,0,0,.1);
}
[data-theme="light"] .skill-jar {
    border-color: rgba(232, 93, 4, .12);
    background: rgba(232, 93, 4, .02);
    box-shadow: inset 0 0 40px rgba(232, 93, 4, .03), 0 0 30px rgba(232, 93, 4, .04);
}
[data-theme="light"] .jar-rim {
    background: linear-gradient(to bottom, rgba(232, 93, 4, .18), rgba(232, 93, 4, .06));
    border-color: rgba(232, 93, 4, .12);
}
[data-theme="light"] .skill-tooltip {
    background: rgba(250, 247, 242, .95);
    border-color: rgba(232, 93, 4, .2);
}
[data-theme="light"] .legend-technical { background: var(--accent-1); box-shadow: 0 0 6px rgba(232, 93, 4, .4); }
[data-theme="light"] .legend-language { background: var(--accent-3); box-shadow: 0 0 6px rgba(244, 140, 6, .4); }
[data-theme="light"] .legend-professional { background: var(--accent-2); box-shadow: 0 0 6px rgba(220, 47, 2, .4); }
[data-theme="light"] .legend-laboratory { background: #8b5e3c; box-shadow: 0 0 6px rgba(139, 94, 60, .4); }
[data-theme="light"] .control-slider::-webkit-slider-thumb {
    box-shadow: 0 0 6px rgba(232, 93, 4, .4);
}
[data-theme="light"] .control-slider::-moz-range-thumb {
    box-shadow: 0 0 6px rgba(232, 93, 4, .4);
}
[data-theme="light"] .orb-cyan { background: radial-gradient(circle, var(--accent-1), transparent 70%); }
[data-theme="light"] .orb-purple { background: radial-gradient(circle, var(--accent-2), transparent 70%); }
[data-theme="light"] .orb-green { background: radial-gradient(circle, var(--accent-3), transparent 70%); }
[data-theme="light"] .scroll-mouse { border-color: rgba(0, 0, 0, .3); }
[data-theme="light"] .scroll-wheel { background: rgba(0, 0, 0, .5); }
[data-theme="light"] .scroll-text { color: var(--text-dim); }

/* ---------- REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .scroll-indicator { display: none; }
}
