/* ==========================================================================
   Sindhuja Muthusamy - Personal Portfolio
  Design: Modern, Elegant, Minimal — Lavender, espresso, and warm paper
   ========================================================================== */

/* --- Fonts & Base Reset --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* Light Theme */
  --bg-primary: #F3EBDD;
  --bg-surface: #FBF6ED;
  --bg-subtle: #EDE2D5;
  --bg-tag: #EEE5FA;

  --border-subtle: rgba(42, 29, 25, 0.12);
  --border-hover: rgba(42, 29, 25, 0.22);
  --border-accent: #9B7EDE;

  --text-primary: #2A1D19;
  --text-secondary: #5F5550;
  --text-muted: #8A7D76;
  --text-faint: #D5C8BE;

  --accent: #9B7EDE;
  --accent-hover: #8062C7;
  --accent-soft: rgba(155, 126, 222, 0.12);
  --accent-subtle: rgba(155, 126, 222, 0.07);
  --accent-glow: rgba(155, 126, 222, 0.08);
  --accent-coffee: #8A5A44;

  --gradient-accent: linear-gradient(135deg, #9B7EDE, #8062C7);
  --gradient-surface: #F7EFE6;
  --gradient-hero: linear-gradient(135deg, #9B7EDE, #8A5A44);

  --badge-green-bg: #ECFDF5;
  --badge-green-text: #065F46;
  --badge-green-dot: #10B981;

  --badge-amber-bg: #FFFBEB;
  --badge-amber-text: #92400E;
  --badge-amber-dot: #F59E0B;

  --badge-blue-bg: #EEF2FF;
  --badge-blue-text: #3730A3;
  --badge-blue-dot: #6366F1;

  --shadow-subtle: 0 1px 2px rgba(42, 29, 25, 0.05);
  --shadow-card: 0 4px 16px rgba(42, 29, 25, 0.08);
  --shadow-hover: 0 10px 24px rgba(42, 29, 25, 0.12);
  --shadow-glow: 0 0 28px rgba(155, 126, 222, 0.06);

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;

  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --container-max: 1060px;
  --container-wide: 1200px;
  --transition-smooth: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-spring: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

[data-theme="dark"] {
  --bg-primary: #12100F;
  --bg-surface: #1B1715;
  --bg-subtle: #241E1B;
  --bg-tag: rgba(155, 126, 222, 0.13);

  --border-subtle: rgba(243, 235, 221, 0.1);
  --border-hover: rgba(243, 235, 221, 0.18);
  --border-accent: #B19AE8;

  --text-primary: #F3EBDD;
  --text-secondary: #C5B9B1;
  --text-muted: #9B8E87;
  --text-faint: #514640;

  --accent: #B19AE8;
  --accent-hover: #C2AFF0;
  --accent-soft: rgba(177, 154, 232, 0.15);
  --accent-subtle: rgba(177, 154, 232, 0.08);
  --accent-glow: rgba(177, 154, 232, 0.1);
  --accent-coffee: #B17A5D;

  --gradient-accent: linear-gradient(135deg, #B19AE8, #8F78D0);
  --gradient-surface: #211B19;
  --gradient-hero: linear-gradient(135deg, #B19AE8, #B17A5D);

  --badge-green-bg: rgba(16, 185, 129, 0.12);
  --badge-green-text: #6EE7B7;
  --badge-green-dot: #34D399;

  --badge-amber-bg: rgba(245, 158, 11, 0.12);
  --badge-amber-text: #FCD34D;
  --badge-amber-dot: #FBBF24;

  --badge-blue-bg: rgba(129, 140, 248, 0.12);
  --badge-blue-text: #C4B5FD;
  --badge-blue-dot: #818CF8;

  --shadow-subtle: 0 1px 2px rgba(0, 0, 0, 0.2);
  --shadow-card: 0 4px 16px rgba(0, 0, 0, 0.3);
  --shadow-hover: 0 12px 32px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 60px rgba(129, 140, 248, 0.12);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.7;
  font-size: 1rem;
  letter-spacing: -0.01em;
  transition: background-color 0.4s ease, color 0.4s ease;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- Scroll Reveal Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* --- Container & Layout --- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-wide {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: 4.5rem 0;
  position: relative;
}

section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(80%, 600px);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-subtle), transparent);
}

section:last-of-type::after {
  display: none;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  color: var(--text-primary);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.serif-display {
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: -0.02em;
}

.serif-italic {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
}

p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.75;
}

p.lead {
  font-size: 1.2rem;
  line-height: 1.65;
  color: var(--text-secondary);
}

a {
  color: var(--text-primary);
  text-decoration: none;
  transition: var(--transition-smooth);
}

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

.label-subtle {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 0.75rem;
}

.label-subtle::before {
  content: '';
  width: 20px;
  height: 1.5px;
  background: var(--gradient-accent);
  border-radius: 2px;
}

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

.section-title {
  font-family: var(--font-serif);
  font-size: 2.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  letter-spacing: -0.03em;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 560px;
}

/* --- Animated Gradient Text --- */
.gradient-text {
  background: var(--gradient-hero);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 4s linear infinite;
}

@keyframes shimmer {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

/* --- Sticky Navigation --- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--bg-primary);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid var(--border-subtle);
  transition: background-color 0.4s ease, border-color 0.4s ease;
}

[data-theme="dark"] .navbar {
  background-color: var(--bg-primary);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand-link {
  font-family: var(--font-sans);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  display: flex;
  align-items: baseline;
  gap: 1px;
}

.brand-dot {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 1.5rem;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-soft);
  border: 1px solid var(--border-subtle);
  padding: 3px 12px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--accent);
  box-shadow: 0 0 0 0 var(--accent-glow);
  animation: pulse 2.5s ease-in-out infinite;
}

@keyframes pulse {
  0% { transform: scale(1); box-shadow: 0 0 0 0 var(--accent-glow); }
  50% { transform: scale(1.1); box-shadow: 0 0 0 8px transparent; }
  100% { transform: scale(1); box-shadow: 0 0 0 0 transparent; }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.1rem;
  list-style: none;
}

.nav-item a {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 500;
  position: relative;
  padding: 6px 9px;
  border-radius: var(--radius-sm);
  transition: var(--transition-smooth);
}

.nav-item a:hover {
  color: var(--text-primary);
  background: var(--accent-subtle);
}

.nav-item a::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--gradient-accent);
  border-radius: 2px;
  transition: width 0.25s ease;
}

.nav-item a:hover::after {
  width: 60%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.theme-toggle-btn {
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  cursor: pointer;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.theme-toggle-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
  transform: rotate(15deg);
}

.mobile-menu-btn {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: 6px;
}

/* Mobile Nav Drawer */
.mobile-nav {
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-primary);
  border-top: 1px solid var(--border-subtle);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  z-index: 99;
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
}

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

.mobile-nav a {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-primary);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  transition: var(--transition-smooth);
}

.mobile-nav a:hover {
  background: var(--accent-soft);
  color: var(--accent);
}

/* --- Buttons & Action Elements --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0.7rem 1.4rem;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-smooth);
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--accent);
  color: #FFFFFF;
  border: 1px solid var(--accent);
  box-shadow: none;
}

.btn-primary:hover {
  transform: translateY(-1px);
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  box-shadow: none;
  color: #FFFFFF;
}

.btn-secondary {
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
  transform: translateY(-2px);
}

.btn-accent {
  background: var(--accent);
  color: #FFFFFF;
  border: 1px solid var(--accent);
}

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

.btn-icon {
  width: 16px;
  height: 16px;
  transition: transform 0.25s ease;
}

.btn:hover .btn-icon-right {
  transform: translateX(3px);
}

/* --- Hero Section --- */
.hero-section {
  padding: 6rem 0 5rem;
  position: relative;
  overflow: hidden;
}

/* Subtle background mesh */
.hero-section::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 360px;
  height: 1px;
  background: var(--accent-coffee);
  opacity: 0.2;
  pointer-events: none;
  z-index: 0;
}

.hero-section::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -150px;
  width: 280px;
  height: 1px;
  background: var(--accent);
  opacity: 0.18;
  pointer-events: none;
  z-index: 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-greeting {
  font-size: 1rem;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-greeting::before {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--gradient-accent);
  border-radius: 2px;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: 3.1rem;
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.035em;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.hero-bio {
  font-size: 1.15rem;
  line-height: 1.75;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  max-width: 520px;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Profile Photo Treatment */
.hero-image-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-photo-frame {
  position: relative;
  width: 100%;
  max-width: 320px;
  aspect-ratio: 4 / 4.8;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--accent-coffee);
  background-color: var(--bg-subtle);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s ease;
}

.hero-photo-frame:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.photo-accent-line {
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  height: 3px;
  background: var(--accent-coffee);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  pointer-events: none;
  z-index: 2;
}

.photo-caption-badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
  background: rgba(250, 250, 250, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-secondary);
  box-shadow: var(--shadow-subtle);
}

[data-theme="dark"] .photo-caption-badge {
  background: rgba(18, 18, 26, 0.85);
}

.photo-badge-title {
  font-weight: 600;
  color: var(--text-primary);
}

/* --- Personal Introduction / Working Notebook --- */
.about-notebook {
  position: relative;
  margin-top: 1.25rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
}

/* --- Personal Introduction / Coffee Desk --- */
.about-notebook {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 0.72fr);
  column-gap: 4rem;
  row-gap: 2.5rem;
  align-items: start;
  margin-top: 1.25rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
}

.about-intro {
  max-width: 610px;
}

.about-intro p { color: var(--text-secondary); }

.about-intro-main {
  font-size: 1.12rem;
  line-height: 1.7;
}

.about-intro-secondary {
  max-width: 540px;
  margin-top: 0.8rem;
  font-size: 0.95rem;
  line-height: 1.7;
}

.about-coffee-desk {
  position: relative;
  min-height: 235px;
}

.about-coffee-cup {
  position: absolute;
  top: 1rem;
  left: 20%;
  width: 132px;
  height: 88px;
  border: 2px solid var(--text-primary);
  border-top: 0;
  border-radius: 0 0 40px 40px;
  transform: rotate(-3deg);
}

.about-coffee-cup::before {
  content: '';
  position: absolute;
  top: -10px;
  right: -31px;
  width: 38px;
  height: 42px;
  border: 2px solid var(--text-primary);
  border-left: 0;
  border-radius: 0 28px 28px 0;
}

.about-coffee-cup::after {
  content: '';
  position: absolute;
  right: -17px;
  bottom: -16px;
  left: -17px;
  height: 2px;
  background: var(--accent);
  opacity: 0.5;
}

.about-coffee-surface {
  position: absolute;
  top: 25px;
  left: 8px;
  width: 116px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.55;
}

.about-coffee-steam,
.about-coffee-steam::before,
.about-coffee-steam::after {
  position: absolute;
  width: 18px;
  height: 50px;
  border-left: 1px solid var(--accent);
  border-radius: 50%;
  opacity: 0.35;
  content: '';
  animation: coffee-steam 3.8s ease-in-out infinite;
}

.about-coffee-steam { top: -63px; left: 42px; }
.about-coffee-steam::before { top: 6px; left: 30px; animation-delay: 0.9s; }
.about-coffee-steam::after { top: 2px; left: 58px; animation-delay: 1.7s; }

.about-coffee-note {
  position: absolute;
  right: 0;
  bottom: 0;
  max-width: 210px;
  color: var(--accent);
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-style: italic;
  line-height: 1.5;
  transform: rotate(-3deg);
}

.about-coffee-note span { display: block; color: var(--text-muted); font-size: 0.84rem; }

.about-coffee-note strong {
  display: block;
  margin-top: 0.3rem;
  font-weight: 500;
}

.about-coffee-note strong::after {
  content: 'still brewing...';
  display: block;
  margin-top: 0.35rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-style: normal;
  letter-spacing: 0.08em;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.about-coffee-desk:hover .about-coffee-note strong::after { opacity: 1; }

.about-coffee-menu {
  align-self: end;
  justify-self: end;
  width: min(100%, 315px);
  padding: 1.15rem 1.25rem;
  border-top: 1px solid var(--text-primary);
  border-bottom: 1px solid var(--text-primary);
  background: var(--bg-surface);
  transform: rotate(1.5deg);
}

.about-menu-title,
.about-menu-footer {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.about-menu-list {
  margin: 0.65rem 0;
  border-top: 1px solid var(--border-subtle);
}

.about-menu-item {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 0.4rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.82rem;
}

.about-menu-item span:first-child { color: var(--text-muted); font-family: var(--font-mono); font-size: 0.67rem; }
.about-menu-item strong { color: var(--text-primary); font-weight: 600; }
.about-menu-item em { color: var(--text-muted); font-size: 0.72rem; font-style: normal; }

.about-menu-footer { margin-top: 0.8rem; color: var(--text-muted); letter-spacing: 0.08em; }

@keyframes coffee-steam {
  0%, 100% { opacity: 0.18; transform: translateY(3px) rotate(-5deg); }
  50% { opacity: 0.45; transform: translateY(-6px) rotate(5deg); }
}

/* --- About Editorial Coffee Composition --- */
.about-editorial {
  --about-body-size: 1rem;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr);
  gap: clamp(2.5rem, 8vw, 7rem);
  align-items: center;
  margin-top: 1.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
}

.about-editorial .about-copy,
.about-editorial .about-coffee-visual {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.about-editorial.is-visible .about-copy,
.about-editorial.is-visible .about-coffee-visual {
  opacity: 1;
  transform: translateY(0);
}

.about-editorial .about-copy {
  max-width: 650px;
}

.about-editorial .about-copy p {
  color: var(--text-secondary);
}

.about-editorial .about-intro-main {
  font-size: var(--about-body-size);
  line-height: 1.75;
}

.about-editorial .about-intro-secondary {
  max-width: 620px;
  margin-top: 1rem;
  font-size: var(--about-body-size);
  line-height: 1.75;
}

.about-coffee-visual {
  position: relative;
  min-height: 345px;
}

.about-mug {
  position: absolute;
  top: 2.5rem;
  left: 14%;
  width: 182px;
  height: 124px;
  border: 2px solid var(--text-primary);
  border-top: 0;
  border-radius: 0 0 46px 46px;
  transform: rotate(-4deg);
}

.about-editorial.is-visible .about-mug {
  animation: about-mug-breathe 4.8s ease-in-out infinite;
}

.about-mug::before {
  content: '';
  position: absolute;
  top: -10px;
  right: -44px;
  width: 52px;
  height: 58px;
  border: 2px solid var(--text-primary);
  border-left: 0;
  border-radius: 0 30px 30px 0;
}

.about-mug::after {
  content: '';
  position: absolute;
  right: -22px;
  bottom: -19px;
  left: -22px;
  height: 2px;
  background: var(--accent);
  opacity: 0.45;
}

.about-mug-coffee {
  position: absolute;
  top: 24px;
  left: 12px;
  width: 154px;
  height: 13px;
  border-radius: 50%;
  background: #8b654d;
  opacity: 0.68;
  animation: about-coffee-shimmer 4.8s ease-in-out infinite;
}

.about-mug-coffee::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 22px;
  width: 38px;
  height: 2px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
}

.about-mug-code {
  position: absolute;
  right: 33px;
  bottom: 31px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  opacity: 0.75;
}

.about-mug-steam {
  position: absolute;
  top: -64px;
  width: 19px;
  height: 54px;
  border-left: 1px solid var(--accent);
  border-radius: 50%;
  opacity: 0.34;
  animation: about-steam-rise 3.4s ease-in-out infinite;
}

.about-mug-steam-one { left: 57px; }
.about-mug-steam-two { left: 102px; height: 45px; animation-delay: 1.2s; }

.about-coffee-visual:hover .about-mug-steam {
  opacity: 0.55;
}

.about-editorial .about-coffee-note {
  position: absolute;
  top: 13.5rem;
  left: 8%;
  right: auto;
  width: 280px;
  max-width: calc(100% - 1rem);
  margin: 0;
  padding-top: 0.8rem;
  border-top: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-family: var(--font-serif);
  font-size: var(--about-body-size);
  font-style: italic;
  line-height: 1.55;
  text-align: center;
  transform: rotate(-3deg);
}

.about-editorial .about-coffee-note span,
.about-editorial .about-coffee-note strong {
  display: block;
}

.about-editorial .about-coffee-note strong {
  margin-top: 0.25rem;
  color: var(--accent);
  font-weight: 500;
}

.about-editorial .about-coffee-note em {
  display: block;
  margin-top: 0.45rem;
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-style: normal;
}

.about-editorial .about-coffee-note strong::after {
  display: none;
}

.about-code-note {
  position: absolute;
  top: 0.5rem;
  left: 60%;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  transform: rotate(2deg);
}

@keyframes about-steam-rise {
  0%, 100% { opacity: 0.18; transform: translateY(5px) rotate(-7deg); }
  50% { opacity: 0.52; transform: translateY(-9px) rotate(6deg); }
}

@keyframes about-mug-breathe {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50% { transform: translateY(-3px) rotate(-3deg); }
}

@keyframes about-coffee-shimmer {
  0%, 100% { opacity: 0.58; transform: scaleX(0.98); }
  50% { opacity: 0.76; transform: scaleX(1); }
}

/* --- Coding Record Section --- */
.coding-notebook {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-card);
  margin-top: 1.5rem;
  position: relative;
  overflow: hidden;
}

.coding-notebook::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-accent);
}

.coding-counter-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-subtle);
}

.counter-item {
  display: flex;
  flex-direction: column;
}

.counter-number {
  font-family: var(--font-serif);
  font-size: 2.75rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 0.4rem;
}

.counter-sub {
  font-size: 1.1rem;
  font-family: var(--font-sans);
  font-weight: 500;
  color: var(--accent);
}

.counter-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
  line-height: 1.4;
}

.coding-quote {
  font-size: 1rem;
  color: var(--text-secondary);
  font-style: italic;
  font-family: var(--font-serif);
  margin-bottom: 1.25rem;
}

.coding-platforms {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.platform-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  padding: 7px 16px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition-smooth);
}

.platform-link:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
  transform: translateY(-1px);
}

/* --- Academic Journey Library --- */
.journey-library {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: end;
  gap: 0.8rem;
  margin-top: 1.5rem;
  padding: 2rem 0 1.25rem;
}

.journey-library::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 8px;
  background: var(--text-primary);
  box-shadow: 0 5px 0 var(--border-subtle);
}

.journey-book {
  position: relative;
  z-index: 1;
  min-width: 0;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.journey-book:hover,
.journey-book.is-open {
  transform: translateY(-8px) rotate(-1deg);
}

.journey-book.is-open {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(170px, 230px) minmax(0, 1fr);
  gap: 1rem;
  align-items: stretch;
}

.book-cover {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 265px;
  padding: 1.25rem 1rem 1rem 1.2rem;
  border: 0;
  border-left: 9px solid rgba(0, 0, 0, 0.2);
  border-radius: 2px 4px 4px 2px;
  color: #fff;
  text-align: left;
  cursor: pointer;
  box-shadow: 5px 7px 0 rgba(0, 0, 0, 0.12), 0 12px 18px rgba(0, 0, 0, 0.12);
  transition: box-shadow 0.35s ease, filter 0.35s ease;
}

.book-cover:hover,
.book-cover:focus-visible {
  filter: brightness(1.06);
  box-shadow: 7px 9px 0 rgba(0, 0, 0, 0.12), 0 16px 22px rgba(0, 0, 0, 0.16);
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.book-slate .book-cover { background: #52616b; }
.book-rust .book-cover { background: #9b5741; }
.book-olive .book-cover { background: #73764d; }
.book-blue .book-cover { background: #3f6274; }
.book-ink .book-cover { background: #303b48; }

.book-number,
.book-year,
.book-action {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.book-number { opacity: 0.72; }
.book-year { margin-top: 0.4rem; opacity: 0.9; }

.book-title {
  max-width: 10rem;
  margin-top: auto;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  line-height: 1.08;
}

.book-subtitle {
  margin-top: 0.65rem;
  font-size: 0.79rem;
  line-height: 1.35;
  opacity: 0.86;
}

.book-mark {
  position: absolute;
  top: 1.25rem;
  right: 1rem;
  width: 18px;
  height: 24px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 50% 50% 45% 45%;
  opacity: 0.75;
}

.book-mark::after {
  content: '';
  position: absolute;
  top: 5px;
  left: 4px;
  width: 8px;
  height: 1px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 4px 0 rgba(255, 255, 255, 0.8), 0 8px 0 rgba(255, 255, 255, 0.8);
}

.book-action {
  display: flex;
  justify-content: space-between;
  margin-top: 1.25rem;
  padding-top: 0.7rem;
  border-top: 1px solid rgba(255, 255, 255, 0.28);
  opacity: 0.78;
}

.book-action span { font-size: 1rem; line-height: 0.7; }

.journey-book-detail {
  margin-top: 0.75rem;
  padding: 1.15rem 1.25rem 1.2rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-top: 3px solid var(--text-primary);
  box-shadow: var(--shadow-card);
  animation: page-open 0.3s ease both;
}

.journey-book.is-open .journey-book-detail {
  margin-top: 0;
}

.journey-book-detail p {
  margin-bottom: 0.8rem;
  font-size: 0.92rem;
  line-height: 1.65;
}

.journey-book-detail p:last-child { margin-bottom: 0; }

.book-current .book-cover::after {
  content: 'still open';
  position: absolute;
  right: 0.8rem;
  bottom: 3.2rem;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.7;
}

@keyframes page-open {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- Academic Journey Reader --- */
.journey-reader {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  --journey-ink: #393229;
  --book-body-text: #5A4A43;
  --journey-accent: #8b6c45;
  --journey-muted: #756a5b;
  --journey-line: rgba(89, 72, 52, 0.24);
  --book-title-size: clamp(2.75rem, 4vw, 3.25rem);
  --book-body-size: 1rem;
  --book-meta-size: 0.72rem;
  --book-label-size: 0.72rem;
  --book-quote-size: 1rem;
  --book-nav-size: 0.82rem;
  --book-body-line-height: 1.7;
  color: var(--journey-ink);
}

.journey-reader[hidden] { display: none; }

.journey-reader[data-book-theme="grade-10"] {
  --journey-ink: #35454e;
  --journey-accent: #52616b;
  --journey-muted: #727d81;
  --journey-line: rgba(82, 97, 107, 0.26);
}

.journey-reader[data-book-theme="grade-11"] {
  --journey-ink: #5a352a;
  --journey-accent: #9b5741;
  --journey-muted: #88675a;
  --journey-line: rgba(155, 87, 65, 0.26);
}

.journey-reader[data-book-theme="grade-12"] {
  --journey-ink: #4d5033;
  --journey-accent: #73764d;
  --journey-muted: #777957;
  --journey-line: rgba(115, 118, 77, 0.28);
}

.journey-reader[data-book-theme="rec-year-one"] {
  --journey-ink: #304c5b;
  --journey-accent: #3f6274;
  --journey-muted: #687d84;
  --journey-line: rgba(63, 98, 116, 0.27);
}

.journey-reader[data-book-theme="rec-year-two"] {
  --journey-ink: #303b48;
  --journey-accent: #303b48;
  --journey-muted: #69727b;
  --journey-line: rgba(48, 59, 72, 0.26);
}

.journey-reader-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(13, 14, 18, 0.96);
  animation: reader-fade-in 0.25s ease both;
}

.journey-reader-shell {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: 100vw;
  height: 100vh;
  background: transparent;
  animation: reader-rise-in 0.3s ease both;
}

.journey-reader-toolbar,
.journey-reader-controls {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.journey-reader-toolbar {
  top: 8vh;
  right: 4vw;
  left: 4vw;
}

.journey-reader-controls {
  right: 4vw;
  bottom: 7vh;
  left: 4vw;
}

.journey-reader-label {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--journey-muted);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.journey-reader-toolbar h3 {
  color: var(--journey-ink);
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 500;
}

.journey-reader-year {
  display: block;
  margin-top: 0.15rem;
  color: var(--journey-muted);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
}

.journey-reader-close,
.journey-page-control {
  border: 1px solid var(--journey-line);
  background: transparent;
  color: var(--journey-ink);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  cursor: pointer;
  pointer-events: auto;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.journey-reader-close {
  padding: 0.5rem 0.7rem;
}

.journey-reader-close span {
  margin-left: 0.35rem;
  font-size: 1.1rem;
  vertical-align: -1px;
}

.journey-reader-close:hover,
.journey-reader-close:focus-visible,
.journey-page-control:hover,
.journey-page-control:focus-visible {
  border-color: var(--journey-accent);
  background: rgba(255, 255, 255, 0.32);
  outline: none;
}

.journey-page-frame {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: center;
  min-height: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  perspective: 1400px;
}

.journey-page {
  position: relative;
  width: 94vw;
  height: 92vh;
  min-height: 0;
  padding: 9rem clamp(2.25rem, 8vw, 8rem) 8rem;
  border: 1px solid rgba(89, 72, 52, 0.2);
  background-color: #f4eddf;
  background-image: radial-gradient(rgba(89, 72, 52, 0.055) 0.55px, transparent 0.7px);
  background-size: 5px 5px;
  box-shadow: 14px 18px 0 rgba(54, 43, 31, 0.1), 0 24px 40px rgba(0, 0, 0, 0.24);
  overflow: hidden;
  backface-visibility: hidden;
  animation: page-open 0.32s ease both;
}

.journey-page-number {
  position: absolute;
  right: clamp(2.25rem, 8vw, 8rem);
  bottom: 5.6rem;
  color: var(--journey-muted);
  font-family: var(--font-mono);
  font-size: var(--book-meta-size);
}

.journey-page h4 {
  margin-bottom: 1rem;
  color: var(--journey-ink);
  font-family: var(--font-serif);
  font-size: var(--book-title-size);
  font-weight: 500;
}

#journey-page-content {
  width: min(100%, 900px);
  margin: 0 auto;
}

.journey-page .page-kicker {
  margin-bottom: 0.85rem;
  color: var(--journey-accent);
  font-family: var(--font-mono);
  font-size: var(--book-label-size);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.journey-page p,
.journey-page li,
.journey-page .page-closing {
  color: var(--book-body-text);
  font-family: var(--font-sans);
  font-size: var(--book-body-size);
  line-height: var(--book-body-line-height);
}

.journey-page p {
  max-width: 100%;
  margin: 0 0 1rem;
}

.journey-page .page-lede {
  color: var(--book-body-text);
  font-size: var(--book-body-size);
  line-height: var(--book-body-line-height);
  font-weight: 500;
}

.journey-page .page-closing {
  margin-top: 1.35rem;
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--journey-line);
  border-bottom: 1px solid var(--journey-line);
  border-left: 3px solid var(--journey-accent);
  background: rgba(255, 255, 255, 0.26);
  color: var(--book-body-text);
  font-size: var(--book-quote-size);
  line-height: 1.55;
  font-style: italic;
}

.page-rule {
  width: 100%;
  height: 1px;
  margin: 0 0 1.6rem;
  background: var(--journey-line);
}

.journey-page ul {
  max-width: 100%;
  margin: 1.1rem 0 0;
  padding-left: 1.35rem;
}

.journey-page li { margin-bottom: 0.75rem; padding-left: 0.35rem; }

.journey-page li::marker { color: var(--journey-accent); }

.journey-reader-controls {
  color: var(--journey-muted);
  font-family: var(--font-mono);
  font-size: var(--book-nav-size);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.journey-page-control { padding: 0.45rem 0.6rem; }

.journey-page-frame.is-changing-next .journey-page {
  animation: page-change-next 0.3s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

.journey-page-frame.is-changing-previous .journey-page {
  animation: page-change-previous 0.3s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

@keyframes reader-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes reader-rise-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes cover-open { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; transform: scale(1); } }
@keyframes spread-open { from { opacity: 0; transform: scale(0.98); } to { opacity: 1; transform: scale(1); } }
@keyframes page-change-next {
  0% { opacity: 1; transform: translateX(0); box-shadow: 14px 18px 0 rgba(54, 43, 31, 0.1), 0 24px 40px rgba(0, 0, 0, 0.24); }
  42% { opacity: 0; transform: translateX(-10px); box-shadow: 4px 18px 18px rgba(54, 43, 31, 0.12); }
  58% { opacity: 0; transform: translateX(10px); box-shadow: 4px 18px 18px rgba(54, 43, 31, 0.12); }
  100% { opacity: 1; transform: translateX(0); box-shadow: 14px 18px 0 rgba(54, 43, 31, 0.1), 0 24px 40px rgba(0, 0, 0, 0.24); }
}

@keyframes page-change-previous {
  0% { opacity: 1; transform: translateX(0); box-shadow: 14px 18px 0 rgba(54, 43, 31, 0.1), 0 24px 40px rgba(0, 0, 0, 0.24); }
  42% { opacity: 0; transform: translateX(10px); box-shadow: 18px 18px 18px rgba(54, 43, 31, 0.12); }
  58% { opacity: 0; transform: translateX(-10px); box-shadow: 18px 18px 18px rgba(54, 43, 31, 0.12); }
  100% { opacity: 1; transform: translateX(0); box-shadow: 14px 18px 0 rgba(54, 43, 31, 0.1), 0 24px 40px rgba(0, 0, 0, 0.24); }
}

/* --- Projects Section --- */
.projects-filter-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.filter-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 7px 16px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.filter-btn:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-soft);
}

.filter-btn.active {
  background: var(--gradient-accent);
  color: #FFFFFF;
  border-color: transparent;
  box-shadow: 0 2px 8px var(--accent-glow);
}

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

.project-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: var(--shadow-subtle);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-accent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.project-card:hover::before {
  opacity: 1;
}

.project-card-featured {
  grid-column: 1 / -1;
  border-left: 3px solid var(--accent);
}

.project-card-featured::before {
  display: none;
}

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

.project-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
}

/* Status Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.badge-in-progress {
  background: var(--badge-amber-bg);
  color: var(--badge-amber-text);
}

.badge-in-progress::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--badge-amber-dot);
}

.badge-built {
  background: var(--badge-green-bg);
  color: var(--badge-green-text);
}

.badge-built::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--badge-green-dot);
}

.badge-concept {
  background: var(--badge-blue-bg);
  color: var(--badge-blue-text);
}

.badge-concept::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--badge-blue-dot);
}

.project-meta-info {
  font-size: 0.78rem;
  color: var(--accent);
  font-family: var(--font-mono);
  margin-bottom: 0.75rem;
}

.project-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 1.15rem;
}

.project-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--text-primary);
  margin-bottom: 0.9rem;
  padding-left: 1rem;
  border-left: 2px solid var(--accent);
}

.project-features {
  list-style: none;
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.project-features li {
  font-size: 0.85rem;
  color: var(--text-secondary);
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.55;
}

.project-features li::before {
  content: '→';
  color: var(--accent);
  font-size: 0.85rem;
  flex-shrink: 0;
  font-weight: 600;
}

.project-footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tag {
  background: var(--bg-tag);
  color: var(--accent);
  font-size: 0.75rem;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-weight: 500;
  letter-spacing: 0.01em;
}

.project-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-sm {
  padding: 0.4rem 0.9rem;
  font-size: 0.8rem;
}

/* --- Achievements Section --- */
.achievements-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.milestones-thread::before {
  content: '';
  position: absolute;
  top: 1.5rem;
  bottom: 1.5rem;
  left: 50%;
  z-index: 0;
  border-left: 1px dashed var(--accent);
  opacity: 0.45;
}

.achievement-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: var(--shadow-subtle);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.milestones-thread .achievement-card::after {
  content: '';
  position: absolute;
  top: 1.25rem;
  left: 50%;
  width: 8px;
  height: 8px;
  border: 2px solid var(--bg-surface);
  border-radius: 50%;
  background: var(--accent);
  transform: translateX(-50%);
}

.achievement-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 0;
  background: var(--gradient-accent);
  transition: height 0.4s ease;
  border-radius: 0 0 2px 0;
}

.achievement-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
  border-color: var(--border-hover);
}

.achievement-card:hover::before {
  height: 100%;
}

.achievement-category {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.achievement-big-number {
  font-family: var(--font-serif);
  font-size: 2.75rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 0.4rem;
}

.achievement-sub {
  font-size: 1.25rem;
  font-family: var(--font-sans);
  font-weight: 500;
  color: var(--accent);
  vertical-align: baseline;
}

.achievement-title {
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}

.achievement-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* School achievements container */
.school-achievements-box {
  grid-column: 1 / -1;
  background: var(--gradient-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.75rem;
}

.school-header-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.75rem;
}

.school-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
}

.school-period {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.school-scores-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.school-score-item {
  display: flex;
  flex-direction: column;
}

.school-score-percent {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.school-score-class {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
}

.school-score-note {
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-top: 0.2rem;
}

/* --- Experience & Leadership Section --- */
.experience-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.experience-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: var(--shadow-subtle);
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  transition: var(--transition-smooth);
}

.experience-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-card);
}

.org-logo-frame {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  flex-shrink: 0;
  overflow: hidden;
}

.org-logo-frame.dark-bg {
  background: #0A0A0F;
  border-color: rgba(255, 255, 255, 0.08);
}

.org-logo {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

.org-logo-icon {
  width: 32px;
  height: 32px;
  color: var(--accent);
}

.experience-content {
  flex: 1;
}

.experience-header-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.experience-role {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.experience-period {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
}

.experience-org {
  font-size: 0.92rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.experience-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* --- Writing Section --- */
.writing-blog-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--gradient-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.75rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-subtle);
  flex-wrap: wrap;
  gap: 1rem;
}

.writing-blog-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.blogger-brand-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  object-fit: contain;
  flex-shrink: 0;
}

.writing-blog-title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-primary);
}

.writing-blog-tagline {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.writing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.writing-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: var(--shadow-subtle);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.writing-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-accent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.writing-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-card);
  transform: translateY(-3px);
}

.writing-card:hover::before {
  opacity: 1;
}

.writing-publication-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}

.writing-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.writing-summary {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 1.25rem;
  flex: 1;
}

.writing-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
  margin-top: auto;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.writing-read-time {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.upcoming-articles-box {
  margin-top: 1.5rem;
  padding: 1.25rem 1.5rem;
  background: var(--gradient-surface);
  border: 1px dashed var(--border-subtle);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* --- Skills Section --- */
.skills-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.skill-category-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  transition: var(--transition-smooth);
}

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

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

.skills-pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skill-pill {
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  padding: 5px 14px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-primary);
  transition: var(--transition-smooth);
}

.skill-pill:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
  transform: translateY(-2px);
}

.skill-pill.exploring {
  border-style: dashed;
  color: var(--text-muted);
}

.skill-pill.exploring:hover {
  color: var(--accent);
}

/* --- Education Section --- */
.education-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.education-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-subtle);
  transition: var(--transition-smooth);
}

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

.education-header-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.education-institution {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-primary);
}

.education-duration {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
}

.education-degree {
  font-size: 1rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.education-grade-pill {
  display: inline-block;
  background: var(--accent-soft);
  border: 1px solid var(--border-subtle);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.education-highlights-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem 1.5rem;
}

.education-highlights-list li {
  font-size: 0.88rem;
  color: var(--text-secondary);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.education-highlights-list li::before {
  content: '→';
  color: var(--accent);
  font-size: 0.88rem;
  font-weight: 600;
  flex-shrink: 0;
}

/* --- Contact & Final Section --- */
.contact-section {
  padding: 6rem 0;
  background: var(--bg-subtle);
  border-bottom: none;
  position: relative;
  overflow: hidden;
}

.contact-section::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
}

.contact-section::after {
  display: none;
}

.contact-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 3.5rem 3rem;
  box-shadow: var(--shadow-card), var(--shadow-glow);
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.contact-headline {
  font-family: var(--font-serif);
  font-size: 2.75rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.contact-subtext {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto 2.25rem;
}

.contact-email-wrapper {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-full);
  margin-bottom: 2rem;
  transition: var(--transition-smooth);
}

.contact-email-wrapper:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-subtle);
}

.contact-email-text {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--text-primary);
  font-weight: 500;
}

.copy-email-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--accent);
  display: flex;
  align-items: center;
  padding: 4px;
  border-radius: var(--radius-sm);
  transition: var(--transition-spring);
}

.copy-email-btn:hover {
  transform: scale(1.15);
}

.copy-feedback {
  font-size: 0.75rem;
  color: var(--badge-green-text);
  font-weight: 600;
  display: none;
}

.contact-links-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* Quick Note Form */
.quick-note-box {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
  text-align: left;
}

.quick-note-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.quick-note-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.note-form {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.note-input {
  flex: 1;
  min-width: 240px;
  padding: 0.7rem 1rem;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.note-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-subtle);
}

/* --- Footer --- */
.footer {
  padding: 3rem 0;
  background-color: var(--bg-primary);
  border-top: 1px solid var(--border-subtle);
  font-size: 0.88rem;
  color: var(--text-muted);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-author {
  font-weight: 600;
  color: var(--text-primary);
}

.footer-tagline {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--text-muted);
}

/* --- Modals --- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-container {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 780px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.3), var(--shadow-glow);
  transform: translateY(20px) scale(0.97);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.modal-overlay.active .modal-container {
  transform: translateY(0) scale(1);
}

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

.modal-title {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 600;
}

.modal-close-btn {
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  font-size: 1.2rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px 10px;
  line-height: 1;
  border-radius: var(--radius-sm);
  transition: var(--transition-smooth);
}

.modal-close-btn:hover {
  color: var(--text-primary);
  background: var(--accent-soft);
  border-color: var(--accent);
}

.modal-body {
  padding: 2rem;
  overflow-y: auto;
  line-height: 1.75;
  color: var(--text-secondary);
}

.modal-body h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  margin: 1.5rem 0 0.5rem;
  color: var(--text-primary);
}

.modal-body p {
  margin-bottom: 1.15rem;
}

.modal-body ul {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}

.modal-body li {
  margin-bottom: 0.4rem;
}

/* Article Reader */
.article-reading-container {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-primary);
}

.article-reading-container h2 {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  margin-top: 1.75rem;
  margin-bottom: 0.6rem;
}

.article-reading-container p {
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  font-family: var(--font-sans);
  font-size: 0.98rem;
}

.article-code-block {
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  margin: 1.25rem 0;
  overflow-x: auto;
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .hero-image-wrapper {
    order: -1;
  }

  .hero-photo-frame {
    max-width: 260px;
    margin: 0 auto;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .about-notebook {
    grid-template-columns: 1fr;
    row-gap: 2rem;
  }

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

  .about-editorial .about-copy {
    max-width: 700px;
  }

  .about-coffee-visual {
    min-height: 245px;
  }

  .about-mug {
    left: 20%;
  }

  .about-coffee-desk {
    min-height: 220px;
  }

  .about-coffee-menu {
    justify-self: start;
    width: min(100%, 360px);
  }

  .about-coffee-note {
    right: 12%;
  }

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

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

  .skills-container {
    grid-template-columns: 1fr;
  }

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

  .coding-counter-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .journey-library {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .journey-book.is-open {
    grid-column: 1 / -1;
  }

  .education-highlights-list {
    grid-template-columns: 1fr;
  }

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

  .section-title {
    font-size: 2rem;
  }
}

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

  .mobile-menu-btn {
    display: block;
  }

  .hero-title {
    font-size: 2.1rem;
  }

  section {
    padding: 3.25rem 0;
  }

  .contact-headline {
    font-size: 2rem;
  }

  .contact-box {
    padding: 2.5rem 1.5rem;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .about-coffee-desk {
    min-height: 205px;
  }

  .about-coffee-cup {
    left: 22%;
  }

  .about-coffee-note {
    right: 2%;
    max-width: 185px;
  }

  .about-coffee-menu {
    justify-self: stretch;
    width: 100%;
    transform: rotate(0.5deg);
  }

  .about-editorial {
    gap: 1.5rem;
    padding-top: 1.5rem;
  }

  .about-editorial .about-intro-main {
    font-size: 1rem;
  }

  .about-editorial .about-intro-secondary {
    font-size: var(--about-body-size);
  }

  .about-coffee-visual {
    min-height: 270px;
  }

  .about-mug {
    top: 2.5rem;
    left: 16%;
    transform: scale(0.86) rotate(-4deg);
    transform-origin: top left;
  }

  .about-editorial .about-coffee-note {
    top: 12.5rem;
    left: 0;
    right: auto;
    width: min(280px, 100%);
    font-size: var(--about-body-size);
  }

  .about-code-note {
    top: 0.5rem;
    left: 55%;
  }

  .journey-library {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .journey-book.is-open {
    grid-column: span 1;
    display: block;
  }

  .book-cover {
    min-height: 210px;
  }

  .book-title {
    font-size: 1.5rem;
  }

  .journey-reader {
    padding: 0;
    --book-title-size: clamp(2.15rem, 9vw, 2.5rem);
    --book-body-size: 0.95rem;
    --book-meta-size: 0.68rem;
    --book-label-size: 0.68rem;
    --book-quote-size: 0.95rem;
    --book-nav-size: 0.78rem;
  }

  .journey-reader-shell {
    width: 100%;
    height: 100%;
    min-height: 0;
    padding: 0;
  }

  .journey-reader-toolbar {
    top: 4vh;
    right: 4vw;
    left: 4vw;
  }

  .journey-reader-toolbar h3 {
    font-size: 1.2rem;
  }

  .journey-page-frame {
    margin: 0;
  }

  .journey-page {
    width: 96vw;
    height: 94vh;
    min-height: 0;
    padding: 5.5rem 1.5rem 4.8rem;
    box-shadow: 8px 10px 0 rgba(54, 43, 31, 0.1), 0 16px 28px rgba(0, 0, 0, 0.22);
  }

  .journey-page h4 {
    font-size: var(--book-title-size);
  }

  .journey-reader-controls {
    right: 4vw;
    bottom: 4vh;
    left: 4vw;
    gap: 0.5rem;
  }

  .journey-reader-controls > span {
    flex: 1;
    text-align: center;
  }
}

/* Print Styles */
@media print {
  .navbar, .theme-toggle-btn, .mobile-menu-btn, .contact-section, .modal-overlay {
    display: none !important;
  }
  body {
    background: #FFFFFF !important;
    color: #000000 !important;
  }
  .container {
    max-width: 100% !important;
    padding: 0 !important;
  }
}
