/* ============================================
   CSS Custom Properties
   ============================================ */
:root {
  /* Colors */
  --bg: #fafaf8;
  --bg-elevated: #f5f5f3;
  --surface: #ffffff;
  --text-primary: #1a1a1a;
  --text-secondary: #666666;
  --text-muted: #999999;
  --border: #e5e5e3;
  --border-light: #f0f0ee;

  /* Accent - Aviation Red */
  --accent: #E61919;
  --accent-hover: #c41414;

  /* Project card colors */
  --card-blue: #3b82f6;
  --card-orange: #f97316;
  --card-purple: #8b5cf6;
  --card-green: #10b981;
  --card-indigo: #6366f1;

  /* Robin-style sticker colors (contact card hover) */
  --sticker-blue: oklch(0.7 0.13 255.5);
  --sticker-blue-dark: oklch(0.4 0.08 255.5);
  --sticker-blue-light: oklch(0.91 0.08 255.5);
  --sticker-yellow: oklch(0.85 0.18 85.65);
  --sticker-yellow-dark: oklch(0.55 0.12 85.65);
  --sticker-yellow-light: oklch(0.91 0.13 92.5);

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'IBM Plex Mono', 'SF Mono', 'Fira Code', monospace;
  --font-decorative: 'LiebeHeide', cursive;

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;
  --space-5xl: 128px;

  /* Layout */
  --max-width: 1024px;
  --header-height: 72px;

  /* Transitions */
  --ease-out: cubic-bezier(0.33, 1, 0.68, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Dark theme */
[data-theme="dark"] {
  --bg: #0f0f0f;
  --bg-elevated: #1a1a1a;
  --surface: #1f1f1f;
  --text-primary: #f0f0f0;
  --text-secondary: #a0a0a0;
  --text-muted: #666666;
  --border: #2a2a2a;
  --border-light: #1f1f1f;

  /* Muted sticker colors for dark mode */
  --sticker-blue: oklch(0.45 0.1 255.5);
  --sticker-blue-dark: oklch(0.7 0.08 255.5);
  --sticker-blue-light: oklch(0.3 0.06 255.5);
  --sticker-yellow: oklch(0.55 0.12 85.65);
  --sticker-yellow-dark: oklch(0.7 0.08 85.65);
  --sticker-yellow-light: oklch(0.6 0.1 92.5);

  /* Milder dark-mode section tones */
  --contact-dark-bg: #111214;
  --contact-dark-bg-hover: #181b20;
  --contact-dark-border: rgba(255, 255, 255, 0.08);
  --contact-dark-text: #f3f4f6;
  --contact-dark-muted: #b7bcc5;
  --project-pill-bg-dark: rgba(255, 255, 255, 0.1);
  --project-pill-border-dark: rgba(255, 255, 255, 0.08);
}

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

html {
  font-size: 17px;
  scroll-padding-top: calc(var(--header-height) + 24px);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-mono);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-primary);
  background-color: var(--bg);
  min-height: 100vh;
  transition: background-color 0.3s, color 0.3s;
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

img { max-width: 100%; height: auto; display: block; }

/* ============================================
   Skip Link
   ============================================ */
.skip-link {
  position: absolute;
  top: -100px;
  left: var(--space-lg);
  z-index: 1000;
  background: var(--accent);
  color: white;
  padding: var(--space-sm) var(--space-md);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  border-radius: 4px;
  transition: top 0.2s;
}

.skip-link:focus { top: var(--space-md); }

/* ============================================
   Layout
   ============================================ */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

/* ============================================
   Header
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--bg);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background-color 0.3s;
}

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

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

.logo {
  display: flex;
  align-items: center;
}

.logo-name {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  transition: color 0.2s;
}

.logo:hover .logo-name { color: var(--accent); font-style: italic; }

.nav-desktop {
  display: none;
  gap: var(--space-xl);
}

@media (min-width: 768px) {
  .nav-desktop { display: flex; }
}

.nav-link {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-secondary);
  position: relative;
  transition: color 0.2s;
}

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

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

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

/* ============================================
   Header Icons - Robin-style Annotation System
   ============================================ */
.header-icons {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  position: relative;
}

.icon-wrapper {
  position: relative;
}

.header-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  color: var(--text-secondary);
  transition: color 0.2s, background-color 0.2s;
}

.header-icon:hover {
  color: var(--text-primary);
  background-color: var(--surface);
}

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

/* Robin-style annotation bubble */
.annotation {
  position: absolute;
  top: 0;
  left: -16px;
  display: flex;
  margin-top: 64px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
  z-index: 50;
  transform: translateX(-64px);
}

.header-icons:hover .annotation {
  opacity: 0.7;
}

.annotation-text {
  font-family: var(--font-decorative);
  font-size: 1.6rem;
  line-height: 1.1;
  color: var(--text-primary);
  white-space: nowrap;
  text-align: center;
  width: 100px;
  transform: rotate(-2deg);
}

[data-theme="dark"] .annotation-text {
  color: white;
}

.annotation-arrow {
  width: 36px;
  height: 40px;
  margin-top: -24px;
  rotate: -20deg;
  flex-shrink: 0;
  color: var(--text-primary);
}

[data-theme="dark"] .annotation-arrow {
  color: white;
}

/* ============================================
   Mobile Menu
   ============================================ */
.mobile-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--text-primary);
}

@media (min-width: 768px) {
  .mobile-menu-toggle { display: none; }
}

.nav-mobile {
  position: fixed;
  inset: 0;
  z-index: 200;
  background-color: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-xl);
  transform: translateX(100%);
  transition: transform 0.4s var(--ease-out);
}

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

.nav-mobile-link {
  font-family: var(--font-sans);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
  padding: var(--space-4xl) 0 var(--space-4xl);
  min-height: 85vh;
  display: flex;
  align-items: center;
}

.hero-title {
  font-family: var(--font-sans);
  font-size: clamp(1.75rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.025em;
  margin-bottom: var(--space-2xl);
  position: relative;
}

.hero-backend,
.hero-web {
  color: var(--accent);
}

/* Robin-style inline stickers */
.hero-sticker {
  display: inline-block;
  vertical-align: middle;
  width: 0;
  height: 0;
  margin-right: -12px;
  margin-left: 4px;
  margin-bottom: 8px;
  opacity: 0;
  overflow: hidden;
}

.sticker-backend {
  width: 0;
  margin-right: -12px;
  margin-left: 4px;
}

.sticker-web {
  width: 0;
  margin-right: -12px;
  margin-left: 4px;
}

.hero-br {
  display: none;
}

@media (min-width: 640px) {
  .hero-br { display: inline; }
}

.hero-subtitle {
  font-family: var(--font-mono);
  font-size: clamp(0.85rem, 1.5vw, 0.95rem);
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 520px;
  opacity: 0;
  transform: translateY(20px);
  margin-bottom: var(--space-2xl);
}

.hero-br { display: inline; }

/* Desktop-only hero animations */
@media (min-width: 768px) {
  /* Hero fade in */
  .hero {
    animation: heroFadeIn 1s ease-out forwards;
  }

  /* Word-by-word reveal animation (Robin-style stagger) */
  .hero-word {
    display: inline-block;
    opacity: 0;
    filter: blur(4px);
    animation: wordReveal 0.5s ease-out forwards;
  }

  .hero-word.w1 { animation-delay: 0.1s; }
  .hero-word.w2 { animation-delay: 0.15s; }
  .hero-word.w3 { animation-delay: 0.2s; }
  .hero-word.w4 { animation-delay: 0.25s; }
  .hero-word.w5 { animation-delay: 0.3s; }
  .hero-word.w6 { animation-delay: 0.4s; }
  .hero-word.w7 { animation-delay: 0.45s; }
  .hero-word.w8 { animation-delay: 0.5s; }
  .hero-word.w9 { animation-delay: 0.55s; }
  .hero-word.w10 { animation-delay: 0.6s; }
  .hero-word.w11 { animation-delay: 0.65s; }
  .hero-word.w12 { animation-delay: 0.7s; }
  .hero-word.w13 { animation-delay: 0.75s; }

  /* Line reveal */
  .hero-line {
    display: inline-block;
    opacity: 0;
    animation: lineRevealUp 0.6s ease-out forwards;
  }

  /* Sticker entrance - backend */
  .sticker-backend {
    animation: stickerEntrance forwards;
    animation-timing-function: cubic-bezier(0.34, 1.56, 0.64, 1);
    animation-duration: 0.6s;
    animation-delay: 0.7s;
  }

  /* Sticker entrance - web */
  .sticker-web {
    animation: stickerEntrance forwards;
    animation-timing-function: cubic-bezier(0.34, 1.56, 0.64, 1);
    animation-duration: 0.6s;
    animation-delay: 0.85s;
  }

  /* Subtitle fade in with slide up */
  .hero-subtitle {
    animation: subtitleFadeIn 0.6s ease-out 1s forwards;
  }

  /* Backend word glow pulse */
  .hero-backend {
    animation: wordGlow 2s ease-in-out 1.2s infinite;
  }

  /* Web word glow pulse */
  .hero-web {
    animation: wordGlow 2s ease-in-out 1.4s infinite;
  }

  /* Hero title subtle float */
  .hero-title {
    animation: subtleFloat 4s ease-in-out 1.5s infinite;
  }

}

/* Mobile - no animations */
@media (max-width: 767px) {
  .hero {
    opacity: 1;
  }

  .hero-word {
    opacity: 1;
    filter: none;
    transform: none;
  }

  .hero-sticker {
    opacity: 1;
    width: 36px;
    height: auto;
    margin-right: 0;
    margin-left: 4px;
  }

  .hero-subtitle {
    opacity: 1;
    transform: none;
  }
}

/* ============================================
   Contact Section - Robin-style
   ============================================ */
.section-contact {
  padding: var(--space-3xl) 0;
}

.contact-card {
  background-color: var(--surface);
  border: 1px solid transparent;
  border-radius: 16px;
  padding: 40px;
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
}

.contact-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.contact-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  transition: color 0.2s ease;
}

/* Robin-style icons - inside the card padding */
.contact-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.contact-icon-default {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--sticker-yellow);
  font-size: 28px;
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

.contact-icon-email {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--sticker-blue);
  opacity: 0;
  transform: scale(0) rotate(-12deg);
}

.contact-card:hover .contact-icon-default {
  opacity: 0;
  transform: scale(0);
}

.contact-card:hover .contact-icon-email {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

/* Robin-style contact row */
.contact-row {
  border-bottom: 1px solid var(--border);
  position: relative;
}

.contact-row:first-of-type {
  border-top: 1px solid var(--border);
}

.contact-link {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  text-decoration: none;
}

.contact-label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-primary);
  transition: color 0.2s ease;
}

.contact-handle {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

.contact-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: transform 0.2s ease, color 0.2s ease;
}

.contact-card:hover {
  background-color: var(--sticker-blue-light);
  border-color: color-mix(in srgb, var(--sticker-blue) 22%, transparent);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
}

.contact-card:hover .contact-title {
  color: var(--sticker-blue-dark);
}

.contact-card:hover .contact-label,
.contact-card:hover .contact-handle {
  color: var(--sticker-blue-dark);
}

.contact-card:hover .contact-arrow {
  color: var(--sticker-blue-dark);
  transform: rotate(45deg);
}

.contact-card:hover .contact-note {
  color: var(--sticker-blue-dark);
}

.contact-note {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-top: 20px;
  transition: color 0.2s ease;
}

/* Mobile adjustments */
@media (max-width: 640px) {
  .contact-card {
    padding: 24px;
  }

  .contact-link {
    grid-template-columns: 70px 1fr auto;
    gap: 12px;
  }
}

[data-theme="dark"] .contact-card {
  background-color: var(--contact-dark-bg);
  border: 1px solid var(--contact-dark-border);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.22);
}

[data-theme="dark"] .contact-title,
[data-theme="dark"] .contact-label {
  color: var(--contact-dark-text);
}

[data-theme="dark"] .contact-handle,
[data-theme="dark"] .contact-note,
[data-theme="dark"] .contact-arrow {
  color: var(--contact-dark-muted);
}

[data-theme="dark"] .contact-row,
[data-theme="dark"] .contact-row:first-of-type {
  border-color: rgba(159, 182, 217, 0.18);
}

[data-theme="dark"] .contact-icon-default {
  background: rgba(120, 163, 224, 0.28);
  color: var(--contact-dark-text);
}

[data-theme="dark"] .contact-icon-email {
  background: rgba(143, 185, 245, 0.16);
  color: var(--contact-dark-text);
}

[data-theme="dark"] .contact-card:hover {
  background-color: var(--contact-dark-bg-hover);
  border-color: rgba(159, 182, 217, 0.24);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.26);
}

[data-theme="dark"] .contact-card:hover .contact-title,
[data-theme="dark"] .contact-card:hover .contact-label,
[data-theme="dark"] .contact-card:hover .contact-handle,
[data-theme="dark"] .contact-card:hover .contact-note {
  color: var(--contact-dark-text);
}

[data-theme="dark"] .contact-card:hover .contact-arrow {
  color: #e2ebfb;
}

/* ============================================
   Hero Animations (Desktop only)
   ============================================ */
@keyframes heroFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes stickerEntrance {
  from {
    opacity: 0;
    width: 0;
    margin-right: -12px;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    width: 36px;
    height: auto;
    margin-right: 0;
    transform: translateY(0);
  }
}

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

@keyframes underlineExpand {
  from {
    width: 0;
    opacity: 0;
  }
  to {
    width: 100%;
    opacity: 1;
  }
}

@keyframes wordGlow {
  0%, 100% {
    text-shadow: 0 0 0 transparent;
  }
  50% {
    text-shadow: 0 0 20px var(--accent);
  }
}

@keyframes subtleFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

@keyframes lineReveal {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes wordReveal {
  from {
    opacity: 0;
    filter: blur(4px);
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
}

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

/* ============================================
   Divider
   ============================================ */
.divider {
  display: none;
}

/* ============================================
   Section Styles
   ============================================ */
.section-header {
  margin-bottom: var(--space-2xl);
}

.section-title {
  font-family: var(--font-sans);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-sm);
}

.section-description {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.section-projects,
.section-experience,
.section-education {
  padding: var(--space-3xl) 0;
}

/* ============================================
   Projects Carousel
   ============================================ */
.projects-carousel-wrapper {
  position: relative;
}

.projects-carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 320px);
  gap: var(--space-md);
  padding: var(--space-sm) var(--space-lg);
  margin: 0 calc(-1 * var(--space-lg));
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 var(--space-lg);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.projects-carousel::-webkit-scrollbar {
  display: none;
}

@media (min-width: 768px) {
  .projects-carousel {
    padding: var(--space-sm) max(0px, calc((100vw - var(--max-width)) / 2));
    margin: 0 max(0px, calc((100vw - var(--max-width)) / 2 * -1));
    scroll-padding: 0 max(0px, calc((100vw - var(--max-width)) / 2));
  }
}

/* Carousel Navigation */
.carousel-nav {
  display: flex;
  justify-content: flex-end;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}

.carousel-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-primary);
  transition: background-color 0.2s, transform 0.15s, border-color 0.2s;
}

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

.carousel-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

/* ============================================
   Project Cards
   ============================================ */
.project-card {
  scroll-snap-align: start;
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.3s var(--ease-out);
}

.project-card:hover {
  transform: translateY(-6px);
}

.project-card-inner {
  background-color: var(--card-color);
  height: 100%;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  padding: var(--space-lg);
  color: white;
}

.project-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-md);
}

.project-year {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 4px 12px;
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: 100px;
}

.project-arrow-icon {
  opacity: 0;
  transform: translate(-4px, 4px);
  transition: opacity 0.3s, transform 0.3s var(--ease-out);
}

.project-card:hover .project-arrow-icon {
  opacity: 1;
  transform: translate(0, 0);
}

.project-badge {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-tertiary);
  background: var(--bg-secondary);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--border-color);
}

.project-card-thumb {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.9;
}

.project-card-bottom {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  transition: transform 0.3s var(--ease-out);
}

.project-card:hover .project-card-bottom {
  transform: translateY(-8px);
}

.project-title {
  font-family: var(--font-sans);
  font-size: clamp(0.88rem, 1.6vw, 1.05rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
}

.project-tags span {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 2px 10px;
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: 100px;
}

.project-desc {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.3s, max-height 0.3s var(--ease-out);
  line-height: 1.6;
}

.project-card:hover .project-desc {
  opacity: 0.85;
  max-height: 100px;
}

[data-theme="dark"] .project-card-inner {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015)),
    color-mix(in srgb, var(--card-color) 68%, #11161d 32%);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .project-year,
[data-theme="dark"] .project-tags span,
[data-theme="dark"] .project-badge {
  background-color: var(--project-pill-bg-dark);
  box-shadow: inset 0 0 0 1px var(--project-pill-border-dark);
}

[data-theme="dark"] .project-tags span {
  white-space: nowrap;
}

[data-theme="dark"] .project-arrow-icon {
  opacity: 0.75;
}

/* ============================================
   Experience List
   ============================================ */
.experience-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.experience-item {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-sm);
}

@media (min-width: 768px) {
  .experience-item {
    grid-template-columns: 180px 1fr;
    gap: var(--space-xl);
  }
}

.experience-meta {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.experience-date {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.experience-title {
  font-family: var(--font-sans);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: var(--space-xs);
}

.experience-company {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-secondary);
  display: block;
  margin-bottom: var(--space-sm);
}

.experience-desc {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ============================================
   Education List
   ============================================ */
.education-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.education-item {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-sm);
}

@media (min-width: 768px) {
  .education-item {
    grid-template-columns: 180px 1fr;
    gap: var(--space-xl);
  }
}

.education-meta {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.education-date {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.education-title {
  font-family: var(--font-sans);
  font-size: 1.1rem;
  font-weight: 600;
}

.education-track {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent);
  display: block;
  margin-top: var(--space-xs);
}

.education-company {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-secondary);
  display: block;
  margin-top: var(--space-xs);
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
  padding: var(--space-xl) 0 var(--space-4xl);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  align-items: center;
  text-align: center;
}

@media (min-width: 640px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-copyright {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: var(--space-lg);
  list-style: none;
}

.footer-links a {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-secondary);
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--text-primary); }

/* ============================================
   Focus & Selection
   ============================================ */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

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

/* ============================================
   Scrollbar
   ============================================ */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ============================================
   Font Declarations
   ============================================ */
@font-face {
  font-family: 'LiebeHeide';
  src: url('../fonts/LiebeHeide-FinelinerBold.otf') format('opentype');
  font-weight: bold;
  font-style: normal;
  font-display: auto;
}
