/* ================================================================
   OH YUBHIN — Developer Portfolio
   Design System v4.0 — Clean & Minimal
   ================================================================ */

:root {
  /* ---- Color System (minimal & clean) ---- */
  --bg-primary: #f7f3ec;
  --bg-secondary: #f0eadf;
  --bg-card: #fffefb;
  --bg-card-hover: #f7f1e6;
  --bg-surface: #fffefb;

  --text-primary: #171f2f;
  --text-secondary: #465066;
  --text-muted: #6b7486;
  --text-dim: #9aa2b0;

  --primary: #4a7cf2;
  --cyan: var(--primary);
  --purple: #5c86f4;
  --pink: #5c86f4;
  --green: #5c86f4;
  --yellow: #5c86f4;

  --gradient-main: transparent;
  --gradient-hot: transparent;
  --gradient-cyber: transparent;
  --gradient-surface: transparent;

  --glow-cyan: transparent;
  --glow-purple: transparent;
  --glow-pink: transparent;

  --border: rgba(23, 31, 47, 0.09);
  --border-hover: rgba(74, 124, 242, 0.26);

  --nav-bg: rgba(253, 249, 243, 0.9);
  --soft-bg: rgba(23, 31, 47, 0.045);
  --overlay-bg: rgba(23, 31, 47, 0.54);
  --panel-bg: rgba(255, 254, 251, 0.9);
  --panel-bg-weak: rgba(255, 254, 251, 0.7);
  --chip-bg: rgba(74, 124, 242, 0.08);
  --chip-border: rgba(74, 124, 242, 0.16);
  --link-bg: rgba(23, 31, 47, 0.03);
  --demo-link-bg: rgba(244, 63, 94, 0.06);
  --scrollbar-track: rgba(23, 31, 47, 0.05);
  --scrollbar-thumb-border: rgba(255, 255, 255, 0.72);
  --panel-shadow: 0 14px 40px rgba(23, 31, 47, 0.08);
  --noise-opacity: 0.035;

  /* Profile image theme variables */
  --profile-border: rgba(23, 31, 47, 0.16);
  --profile-bg: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  --profile-shadow: 0 10px 30px rgba(23,31,47,0.06);
  --profile-filter: saturate(0.98) contrast(1.01) brightness(1);
  --profile-border-width: 1px;
  --profile-glow: rgba(0, 0, 0, 0);
  --profile-object-position: 2%;

  /* ---- Typography ---- */
  --font-display: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  --font-body: 'Pretendard Variable', 'Pretendard', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  --text-hero: clamp(2rem, 4.8vw, 3.4rem);
  --text-h1: clamp(1.5rem, 2.8vw, 2rem);
  --text-h2: clamp(1.05rem, 2vw, 1.35rem);
  --text-h3: clamp(0.95rem, 1.6vw, 1.1rem);
  --text-body: clamp(0.85rem, 1vw, 0.95rem);
  --text-small: clamp(0.78rem, 0.9vw, 0.88rem);
  --text-xs: 0.74rem;
  --text-xxs: 0.68rem;

  /* ---- Spacing ---- */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 2.5rem;
  --space-6: 3rem;
  --space-8: 4rem;
  --space-10: 5rem;
  --space-12: 6rem;

  --max-width: 1100px;
  --section-padding: clamp(2rem, 4.5vw, 3.2rem);
  --card-radius: 16px;

  /* ---- Motion ---- */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme='dark'] {
  --bg-primary: #0d1117;
  --bg-secondary: #111827;
  --bg-card: #171b24;
  --bg-card-hover: #1f2430;
  --bg-surface: #0d1117;

  --text-primary: #f8fafc;
  --text-secondary: #d5d9e3;
  --text-muted: #a6adbb;
  --text-dim: #6f7a8a;

  --border: rgba(148, 163, 184, 0.16);
  --border-hover: rgba(74, 158, 255, 0.45);

  --nav-bg: rgba(7, 10, 16, 0.84);
  --soft-bg: rgba(255, 255, 255, 0.06);
  --overlay-bg: rgba(0, 0, 0, 0.82);
  --panel-bg: #111217;
  --panel-bg-weak: rgba(255, 255, 255, 0.01);
  --chip-bg: rgba(92, 200, 232, 0.08);
  --chip-border: rgba(92, 200, 232, 0.15);
  --link-bg: rgba(255, 255, 255, 0.04);
  --demo-link-bg: rgba(244, 63, 94, 0.06);
  --scrollbar-track: rgba(255, 255, 255, 0.04);
  --scrollbar-thumb-border: rgba(0, 0, 0, 0.25);
  --panel-shadow: 0 20px 80px rgba(0, 0, 0, 0.45);
  --noise-opacity: 0.25;

  /* Profile image theme variables (dark) */
  --profile-border: rgba(255, 255, 255, 0.14);
  --profile-bg: linear-gradient(180deg, rgba(0,0,0,0.18), rgba(255,255,255,0.01));
  --profile-shadow: 0 10px 30px rgba(0,0,0,0.45);
  --profile-filter: brightness(0.98) contrast(1.02) saturate(0.95);
  --profile-border-width: 1px;
  --profile-glow: rgba(0, 0, 0, 0);
  --profile-object-position: 0%;
}

/* ================================================================
   Reset & Base
   ================================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  color-scheme: light;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
html[data-theme='dark'] {
  color-scheme: dark;
}
body {
  min-width: 320px;
  font-family: var(--font-body);
  font-size: var(--text-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.3s var(--ease-out);
}
a:hover { color: #4a97ff; }
::selection { background: rgba(63, 141, 255, 0.18); color: var(--text-primary); }

/* ================================================================
   Noise Texture Overlay (organic feel, anti-AI look)
   ================================================================ */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 9998;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  background-repeat: repeat;
  opacity: var(--noise-opacity);
}

/* ================================================================
   Particle Canvas
   ================================================================ */
#particle-canvas {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none; z-index: 0;
  opacity: 0.6;
}

/* ================================================================
   Navigation — Sticky
   ================================================================ */
.sticky-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: var(--nav-bg);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid var(--border);
  transform: translateY(-100%); opacity: 0;
  transition: transform 0.5s var(--ease-out), opacity 0.5s var(--ease-out);
}
.sticky-nav.visible { transform: translateY(0); opacity: 1; }
.sticky-nav-inner {
  max-width: 1000px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.5rem 0.9rem;
  gap: 1rem;
}
.sticky-nav-brand {
  font-family: var(--font-display); font-weight: 700;
  font-size: 0.82rem; color: var(--primary);
  text-decoration: none; letter-spacing: 0.02em;
}
.sticky-nav-links {
  display: flex; align-items: center; gap: 4px;
  margin-left: auto; flex-wrap: nowrap;
}
.sticky-nav-links .nav-links {
  font-family: var(--font-mono); font-weight: 500;
  font-size: 0.66rem; color: var(--text-muted);
  text-decoration: none; padding: 5px 8px;
  border-radius: 6px; letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: all 0.25s var(--ease-out);
}
.sticky-nav-links .nav-links:hover {
  color: var(--primary); background: var(--soft-bg);
}
.theme-toggle {
  width: 34px; height: 34px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-secondary);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all 0.25s var(--ease-out);
  margin-left: 0.6rem;
  flex: 0 0 auto;
}
.theme-toggle-fab {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 10001;
  width: auto;
  min-width: 98px;
  height: 44px;
  padding: 0 14px;
  gap: 8px;
  margin-left: 0;
  background: var(--bg-card);
  box-shadow: 0 12px 26px rgba(23, 31, 47, 0.12);
}
.theme-toggle-text {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.theme-toggle:hover {
  border-color: var(--border-hover);
  color: var(--primary);
  background: var(--bg-card-hover);
}

html {
  scroll-padding-top: var(--sticky-nav-offset, 96px);
}

.hero,
.section-wrapper {
  scroll-margin-top: var(--sticky-nav-offset, 96px);
}

/* ================================================================
   Hero Section
   ================================================================ */
.hero {
  position: relative; z-index: 1;
  min-height: 42vh; min-height: 42dvh;
  display: flex; align-items: center;
  padding: 0 var(--space-4);
  overflow: hidden;
  background: var(--bg-primary);
}

/* Grid Background */
.hero::before {
  display: none;
}

/* Gradient orbs */
.hero::after {
  display: none;
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto; width: 100%;
  padding: var(--space-4) 0;
  position: relative; z-index: 2;
}

.hero-label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--primary);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: var(--space-2);
  display: flex; align-items: center; gap: var(--space-2);
  opacity: 0; animation: heroFadeIn 0.6s var(--ease-out) 0.5s forwards;
}
.hero-label::before {
  content: '';
  width: 32px; height: 1px;
  background: var(--primary);
}

.hero-name {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-2);
  opacity: 0; animation: heroFadeIn 0.7s var(--ease-out) 0.7s forwards;
}
.hero-name .accent {
  color: var(--primary);
}

.hero-intro {
  max-width: 100%;
  display: inline-block;
  font-family: var(--font-body);
  font-size: clamp(0.85rem, 0.9vw, 0.98rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text-secondary);
  line-height: 1.2;
  white-space: normal;
  margin-bottom: var(--space-4);
  opacity: 0; animation: heroFadeIn 0.6s var(--ease-out) 0.9s forwards;
}
.hero-intro .accent {
  color: var(--primary);
}

.hero-intro-emphasis {
  font-weight: 700;
  color: var(--text-primary);
}

.hero-intro-emphasis .accent {
  color: var(--primary);
}

/* ================================================================
   Hero: two-column layout with profile image on the right
   ================================================================ */

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 24px;
  align-items: center;
}

.hero-left { max-width: 720px; }

.hero-right { display: flex; justify-content: flex-start; margin-left: -5rem; }

.hero-profile-wrap {
  border-radius: 12px;
  padding: 0; /* remove inner padding to avoid extra whitespace when cropping */
  background: var(--profile-bg);
  border: var(--profile-border-width) solid var(--profile-border);
  box-shadow: var(--profile-shadow);
  overflow: hidden;
  transition: border-color 0.18s var(--ease-smooth), box-shadow 0.18s var(--ease-smooth), background-color 0.18s var(--ease-smooth), filter 0.18s var(--ease-smooth);
  width: 100%;
  max-width: 260px;
  aspect-ratio: 2 / 3;
  height: auto;
}

/* Hover effect removed as requested */

.hero-profile {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 8px;
  object-fit: cover; /* crop to fill container */
  object-position: center var(--profile-object-position); /* crop to show face-to-waist */
  transform: scale(1.08);
  transform-origin: center 16%;
  filter: brightness(1.02) contrast(1.06) saturate(1.02);
  background: transparent;
}

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-right { order: -1; margin-bottom: var(--space-4); display: flex; justify-content: center; }
  .hero-profile-wrap { max-width: 200px; aspect-ratio: 2 / 3; height: auto; }
  .hero-profile {
    object-position: center 8%;
    transform: scale(1.04);
  }
}

.hero-actions {
  display: flex; gap: 6px;
  flex-wrap: wrap;
  opacity: 0; animation: heroFadeIn 0.6s var(--ease-out) 1.1s forwards;
}

.hero-btn {
  font-family: var(--font-display);
  font-weight: 600; font-size: var(--text-xs);
  padding: 9px 18px;
  border-radius: 6px; border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px;
  transition: all 0.3s var(--ease-out);
  letter-spacing: 0.02em;
}
.hero-btn-primary {
  background: var(--primary); color: var(--bg-primary);
  box-shadow: none;
}
.hero-btn-primary:hover {
  box-shadow: none;
  color: var(--bg-primary);
  background: #4a97ff;
}
.hero-btn-ghost {
  background: transparent; color: var(--text-secondary);
  border: 1px solid var(--border);
}
.hero-btn-ghost:hover {
  border-color: var(--border-hover);
  color: var(--primary);
  background: rgba(63, 141, 255, 0.05);
}
.hero-btn-accent {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
  border-radius: 999px;
  padding: 8px 16px;
}
.hero-btn-accent:hover {
  color: var(--bg-primary);
  background: var(--primary);
  border-color: var(--primary);
}

.hero-social {
  position: absolute; bottom: var(--space-6);
  left: 0;
  display: flex; flex-direction: column;
  gap: var(--space-3); align-items: center;
  opacity: 0; animation: heroFadeIn 0.6s var(--ease-out) 1.3s forwards;
}
.hero-social::after {
  content: '';
  width: 1px; height: 80px;
  background: linear-gradient(180deg, var(--text-dim), transparent);
}
.hero-social a {
  color: var(--text-muted);
  font-size: 1.1rem;
  transition: all 0.3s var(--ease-out);
}
.hero-social a:hover { color: var(--primary); }

.hero-scroll {
  position: absolute; bottom: var(--space-6);
  right: 0;
  display: flex; flex-direction: column;
  align-items: center; gap: var(--space-1);
  opacity: 0; animation: heroFadeIn 0.6s var(--ease-out) 1.5s forwards;
}
.hero-scroll-text {
  font-family: var(--font-mono); font-size: var(--text-xxs);
  color: var(--text-dim); letter-spacing: 0.15em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}
.hero-scroll-line {
  width: 1px; height: 50px;
  background: linear-gradient(180deg, var(--text-dim), transparent);
  animation: scrollPulse 2.5s ease-in-out infinite;
}

@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.2; transform: scaleY(0.5); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ================================================================
   Section Layout
   ================================================================ */
.section-wrapper {
  position: relative; z-index: 1;
  border-top: 1px solid var(--border);
}
.section-wrapper:nth-child(even) { background: var(--bg-secondary); }
.section {
  max-width: var(--max-width); margin: 0 auto;
  padding: var(--section-padding) var(--space-3);
}
.section.about { display: block; }
.section.education,
.section.projects,
.section.extra { display: block; }
.full-width { width: 100%; }

/* Section Headings */
.section-heading {
  font-family: var(--font-display);
  font-size: var(--text-h1);
  color: var(--text-primary);
  font-weight: 700; letter-spacing: -0.02em;
  margin-bottom: var(--space-3);
  position: relative;
  display: flex; align-items: center; gap: var(--space-3);
}
.section-heading::before {
  content: attr(data-num);
  font-family: var(--font-mono);
  font-size: var(--text-small);
  color: var(--primary);
  font-weight: 600;
}
.section-heading::after {
  content: '';
  flex: 1; height: 1px;
  background: linear-gradient(90deg, var(--border), transparent);
}

#education-awards .section-heading {
  font-size: var(--text-h2);
  margin-bottom: var(--space-2);
}

#career .section-heading {
  font-size: var(--text-h2);
}

#career .paragraph-text-normal {
  font-size: 1rem;
  line-height: 1.7;
}

.compact-line {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--card-radius, 16px);
  background: var(--bg-card);
  font-size: var(--text-small);
  line-height: 1.4;
}
.compact-label {
  font-family: var(--font-mono);
  font-size: var(--text-xxs);
  color: var(--primary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.compact-text {
  color: var(--text-secondary);
  font-weight: 500;
}

/* ================================================================
   Summary Cards (Education / Awards)
   ================================================================ */
.summary-card {
  padding: 0.9rem 1rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg-card);
  box-shadow: var(--panel-shadow);
  height: 100%;
}
.summary-card-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: var(--text-small);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.6rem;
}
.summary-card-title i {
  color: var(--primary);
  font-size: 0.9rem;
}
.summary-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}
.summary-stack {
  display: grid;
  gap: 0.35rem;
  padding: 0.6rem 0.7rem;
  border-radius: 10px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  margin-top: 0.4rem;
}
.summary-item {
  display: grid;
  gap: 0.15rem;
  padding: 0.5rem 0.6rem;
  border-radius: 10px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
}

/* Compact the Education/Awards cards to reduce empty space */
#education-awards .dual-section-row {
  align-items: start;
}
#education-awards .summary-card {
  padding: 0.6rem 0.75rem;
  height: auto;
}
#education-awards .summary-card-title {
  margin-bottom: 0.3rem;
  font-size: var(--text-xs);
  font-weight: 500;
}
#education-awards .summary-list {
  gap: 0.3rem;
}
#education-awards .summary-item {
  padding: 0.35rem 0.45rem;
}
#education-awards .summary-stack {
  padding: 0.4rem 0.5rem;
  margin-top: 0.2rem;
}
.summary-label {
  font-size: var(--text-body);
  font-weight: 600;
  color: var(--text-primary);
}
.summary-meta {
  font-size: var(--text-small);
  color: var(--text-muted);
}

/* Increase general description text sizes for readability */
.about-section p,
.about-popup-article p,
.paragraph-text-normal,
.experience-description li,
.summary-meta,
.project-content .paragraph-text-normal {
  font-size: 0.96rem;
  line-height: 1.6;
}

/* Career section: increase readability and match education spacing */
#career .paragraph-text-normal,
#career .experience-description,
#career .experience-item p {
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--text-body);
}

/* Education/Awards: ensure meta and label sizes align */
#education-awards .summary-label {
  font-size: var(--text-body);
  font-weight: 500;
}
#education-awards .summary-meta {
  font-size: var(--text-small);
  line-height: 1.6;
  color: var(--text-muted);
}

/* Projects: larger titles, consistent with other section headings */
.project-title {
  font-size: 1.02rem;
  line-height: 1.25;
  margin-bottom: 0.25rem;
}
.project-meta {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Slightly increase section inner spacing for visual clarity */
.section-inner {
  padding-top: 0.45rem;
  padding-bottom: 0.6rem;
}

/* Large screens: improve scanability on office monitors */
@media (min-width: 1200px) {
  body {
    font-size: 1.02rem;
  }

  .about-section p,
  .about-popup-article p,
  .paragraph-text-normal,
  .experience-description li,
  .summary-meta,
  .project-content .paragraph-text-normal,
  #career .paragraph-text-normal,
  #career .experience-description,
  #career .experience-item p {
    font-size: 0.98rem;
    line-height: 1.68;
  }

  .summary-label,
  .experience-title,
  .project-title,
  #education-awards .summary-label {
    font-size: 1.06rem;
  }

  #education-awards .summary-label {
    font-size: var(--text-body);
  }
  #education-awards .summary-meta {
    font-size: var(--text-small);
  }

  .project-meta {
    font-size: 0.96rem;
  }
}

/* Ensure project meta/labels remain slightly bolder */
.summary-label,
.experience-title,
.project-title {
  font-size: 1.02rem;
}

/* ================================================================
   About Section
   ================================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: var(--space-6);
  align-items: center;
}
.about-text { max-width: 560px; }

.paragraph-text {
  font-family: var(--font-body);
  font-size: var(--text-body);
  color: var(--text-secondary);
  line-height: 1.9;
  margin-bottom: var(--space-4);
  word-break: keep-all;
}
.paragraph-text a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(63, 141, 255, 0.28);
  transition: text-decoration-color 0.3s;
}
.paragraph-text a:hover {
  text-decoration-color: var(--primary);
  color: #4a97ff;
}

.about-grid-simple {
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: var(--space-6);
  align-items: start;
}

.about-section-card {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
  gap: var(--space-6);
  align-items: center;
  margin-bottom: var(--space-5);
  padding: var(--space-5);
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--bg-card);
  box-shadow: var(--panel-shadow);
}

.about-section-card-reverse {
  grid-template-columns: minmax(260px, 0.85fr) minmax(0, 1.15fr);
}

.about-section-copy h3 {
  margin: 0 0 var(--space-3);
  font-family: var(--font-display);
  font-size: var(--text-h3);
  color: var(--text-primary);
  line-height: 1.25;
}

.about-section-copy p,
.about-section-note p,
.about-metric-card p {
  font-family: var(--font-body);
  color: var(--text-secondary);
  line-height: 1.9;
  word-break: keep-all;
}

.about-section-kicker {
  margin-bottom: 0.6rem;
  font-family: var(--font-mono);
  font-size: var(--text-xxs);
  color: var(--primary);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.about-section-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-section p strong {
  color: var(--text-primary);
  font-weight: 700;
}

.about-grid-layout-media-stack {
  gap: 1.25rem;
  align-items: start;
}

.about-media-stack {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
  align-self: start;
}

.about-media-stack img {
  width: 100%;
  display: block;
  border-radius: 14px;
  border: 1px solid var(--border);
  object-fit: cover;
  background: var(--bg-surface);
  box-shadow: var(--panel-shadow);
}

.about-media-stack img:first-child {
  aspect-ratio: 4 / 3;
}

.about-media-stack img:last-child {
  aspect-ratio: 16 / 10;
}

.about-grid-layout-media-stack {
  gap: 1.25rem;
  align-items: start;
}

.about-media-stack {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
  align-self: start;
}

.about-media-stack img {
  width: 100%;
  display: block;
  border-radius: 14px;
  border: 1px solid var(--border);
  object-fit: cover;
  background: var(--bg-surface);
  box-shadow: var(--panel-shadow);
}

.about-media-stack img:first-child {
  aspect-ratio: 4 / 3;
}

.about-media-stack img:last-child {
  aspect-ratio: 16 / 10;
}

.about-section-image {
  width: 100%;
  max-width: 360px;
  border-radius: 18px;
  border: 1px solid var(--border);
  object-fit: cover;
  background: var(--bg-surface);
}

.about-section-note {
  padding: var(--space-4);
  background: var(--bg-secondary);
  border-radius: 18px;
  border: 1px solid var(--border);
}

.about-section-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
}

.about-metric-card {
  padding: var(--space-4);
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--bg-card);
}

.about-metric-card h3 {
  margin: 0 0 0.7rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--text-primary);
}

.about-metric-card p {
  margin: 0;
  font-size: var(--text-small);
}

@media (max-width: 900px) {
  .about-section-card,
  .about-section-card-reverse {
    grid-template-columns: 1fr;
  }

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

  .about-grid-layout-media-stack {
    grid-template-columns: 1fr;
  }

  .about-grid-layout-media-stack {
    grid-template-columns: 1fr;
  }
}

.about-simple-profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg-card);
  padding: var(--space-4);
  text-align: center;
}

.about-simple-photo {
  width: 150px;
  height: 190px;
  border-radius: 10px;
  object-fit: cover;
  margin: 0 auto var(--space-2);
  border: 1px solid var(--border);
}

.about-simple-name {
  font-family: var(--font-display);
  font-size: var(--text-h3);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.about-simple-role {
  font-family: var(--font-mono);
  font-size: var(--text-xxs);
  color: var(--text-muted);
  letter-spacing: 0.03em;
}

/* ================================================================
   Profile Card
   ================================================================ */

/* Stats Row */
.stats-row {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: var(--space-2); margin-top: var(--space-6);
}
.stat-item {
  text-align: center;
  padding: var(--space-3) var(--space-2);
  background: var(--bg-card);
  border-radius: 12px;
  border: 1px solid var(--border);
  transition: all 0.4s var(--ease-out);
  position: relative;
  overflow: hidden;
}
.stat-item::before {
  display: none;
}
.stat-item:hover {
  border-color: var(--border-hover);
  transform: translateY(-1px);
  box-shadow: none;
}
.stat-number {
  font-family: var(--font-display);
  font-size: var(--text-h1); font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
}
.stat-label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-top: var(--space-1);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.paragraph-text-normal {
  font-family: var(--font-body);
  color: var(--text-secondary);
  line-height: 1.75; font-size: 1rem;
  word-break: keep-all;
}
.justify-text { text-align: left; }
.center-align { text-align: center; }
.nav-links { font-family: var(--font-display); font-weight: 500; }

/* ================================================================
   Projects
   ================================================================ */
.project-technologies {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: var(--space-4); justify-content: center;
}
.projects-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--space-2);
}

.project-card {
  background: var(--bg-card);
  border-radius: var(--card-radius);
  border: 1px solid var(--border);
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.25s var(--ease-out);
  position: relative;
}
.project-card::after {
  display: none;
}
.project-card:hover {
  border-color: var(--border-hover);
  box-shadow: none;
}
.project-card:hover::after { opacity: 0; }

.project-image {
  width: 100%; height: 120px;
  overflow: hidden; position: relative;
  background: var(--bg-secondary);
  display: flex; align-items: center; justify-content: center;
}
.project-image img {
  width: 100%; height: 100%; object-fit: cover;
}
.project-card:hover .project-image img { transform: none; }

/* Fallback for broken images */
.project-image img[alt]::after {
  content: '';
  display: block;
  position: absolute; inset: 0;
  background: var(--bg-secondary);
}

.project-image-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: var(--space-1);
  background: var(--bg-secondary);
}
.project-image-placeholder i {
  font-size: 3rem; color: var(--text-muted);
}
.project-image-placeholder span {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-muted);
  letter-spacing: 0.08em;
}

.project-content {
  padding: var(--space-2);
  position: relative; z-index: 2;
}
.project-title {
  font-family: var(--font-display);
  font-weight: 600; font-size: 1.02rem;
  color: var(--text-primary);
  margin-bottom: var(--space-1);
  letter-spacing: -0.01em;
  transition: color 0.3s;
  line-height: 1.25;
}
.project-card:hover .project-title { color: var(--primary); }

/* 설명 텍스트 2줄 제한 */
.project-content .paragraph-text-normal {
  line-clamp: 2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: var(--text-small);
  color: var(--text-muted);
  margin-bottom: var(--space-2);
  line-height: 1.55;
}

.project-technology {
  font-family: var(--font-mono);
  font-size: var(--text-xxs);
  background: var(--chip-bg);
  color: var(--primary);
  border: 1px solid var(--chip-border);
  border-radius: 4px;
  padding: 3px 8px; font-weight: 500;
  white-space: nowrap;
  cursor: default;
  pointer-events: auto;
  user-select: text;
}

.project-links {
  display: flex; gap: 6px;
  margin-top: var(--space-1); flex-wrap: nowrap;
  overflow: hidden;
}
.project-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-weight: 500;
  font-size: var(--text-xs); color: var(--text-secondary);
  text-decoration: none;
  padding: 5px 10px; border-radius: 6px;
  white-space: nowrap;
  background: var(--link-bg);
  border: 1px solid var(--border);
  transition: all 0.3s var(--ease-out);
  letter-spacing: 0.03em;
}
.project-link:hover {
  background: var(--primary); color: var(--bg-primary);
  border-color: var(--primary);
  box-shadow: none;
}
.project-link.demo-link {
  background: var(--demo-link-bg);
  color: var(--pink); border-color: rgba(244, 63, 94, 0.15);
}
.project-link.demo-link:hover {
  background: var(--pink); color: white;
  border-color: var(--pink);
  box-shadow: none;
}

/* ================================================================
   Dual Section Row (Education + Awards)
   ================================================================ */
.dual-section-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
  align-items: stretch;
}
.dual-section-row .dual-column:first-child {
  align-self: center;
  margin-top: 0.6rem;
}
.dual-section-row .dual-column {
  display: block;
  height: 100%;
}
.dual-section-row .experience-grid {
  margin: 0;
}

@media screen and (max-width: 900px) {
  .dual-section-row {
    grid-template-columns: 1fr;
    gap: var(--space-2);
  }
}

/* ================================================================
   Video Modal
   ================================================================ */
.video-modal-overlay {
  position: fixed; inset: 0; z-index: 10000;
  background: var(--overlay-bg);
  backdrop-filter: blur(12px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: all 0.3s var(--ease-out);
}
.video-modal-overlay.active { opacity: 1; visibility: visible; }
.video-modal {
  width: 90%; max-width: 800px;
  background: var(--bg-card); border-radius: var(--card-radius);
  overflow: hidden; border: 1px solid var(--border);
  transform: scale(0.92) translateY(20px);
  transition: transform 0.5s var(--ease-spring);
}
.video-modal-overlay.active .video-modal { transform: scale(1) translateY(0); }
.video-modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--space-2) var(--space-3);
  border-bottom: 1px solid var(--border);
}
.video-modal-title {
  font-family: var(--font-display); font-weight: 600;
  font-size: var(--text-h3); color: var(--text-primary);
}
.video-modal-close {
  background: none; border: none; color: var(--text-muted);
  font-size: 1.5rem; cursor: pointer; padding: 4px 8px;
  border-radius: 6px; transition: all 0.2s;
}
.video-modal-close:hover { background: var(--soft-bg); color: var(--text-primary); }
.video-modal-body { position: relative; padding-bottom: 56.25%; height: 0; }
.video-modal-body iframe, .video-modal-body video {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%; border: none;
}

/* ================================================================
   About Popup
   ================================================================ */
.about-popup-overlay {
  position: fixed; inset: 0; z-index: 11000;
  background: var(--overlay-bg);
  backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: opacity 0.28s var(--ease-out), visibility 0.28s var(--ease-out);
}
.about-popup-overlay.active { opacity: 1; visibility: visible; }

.about-popup {
  width: min(1120px, 94vw);
  max-height: 90vh;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--panel-bg);
  box-shadow: var(--panel-shadow);
  transform: translateY(18px) scale(0.98);
  transition: transform 0.35s var(--ease-out);
}
.about-popup-overlay.active .about-popup { transform: translateY(0) scale(1); }

.about-popup-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid var(--border);
  background: var(--panel-bg-weak);
}
.about-popup-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--text-primary);
}
.about-popup-close {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 1rem;
  width: 30px; height: 30px;
  border-radius: 8px;
  cursor: pointer;
}
.about-popup-close:hover {
  border-color: var(--border-hover);
  color: var(--text-primary);
}

.about-popup-body {
  height: min(66vh, calc(100vh - 108px));
  max-height: calc(90vh - 52px);
  overflow-y: scroll;
  overflow-x: hidden;
  padding: 0.75rem;
  cursor: grab;
  scrollbar-gutter: stable;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.about-popup-body.dragging {
  cursor: grabbing;
  user-select: none;
}

.about-popup-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 0.8rem;
  border: 1px solid var(--border);
  background: var(--bg-card);
  border-radius: 14px;
  padding: 0.8rem;
  margin-bottom: 0.75rem;
}

.about-popup-section-wide {
  grid-template-columns: 1fr;
}

.about-popup-section-two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1rem;
  border: 1px solid var(--border);
  background: var(--panel-bg-weak);
  border-radius: 14px;
  padding: 1rem;
  margin-bottom: 1rem;
}

.about-popup-article {
  max-width: 920px;
  margin: 0 auto;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--panel-bg-weak);
  padding: 1rem 1.1rem;
}

.about-popup-article h3 {
  margin: 0 0 0.6rem;
  font-size: 1.08rem;
}

.about-popup-article p {
  margin: 0 0 0.55rem;
  font-size: 0.96rem;
  line-height: 1.68;
  color: var(--text-secondary);
  word-break: keep-all;
}

.about-popup-article .about-popup-image {
  width: min(360px, 100%);
  margin: 0 auto 1rem;
}

.about-popup-inline-image {
  width: min(680px, 100%);
  margin: 0.7rem auto 1rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  display: block;
}

.about-popup-section-full {
  grid-template-columns: 1fr;
}

.about-popup-copy h3 {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: 1.08rem;
}

.about-popup-copy p {
  margin: 0 0 0.5rem;
  font-size: 0.96rem;
  color: var(--text-secondary);
  line-height: 1.68;
}

.about-popup-copy ul {
  margin: 0.3rem 0 0.9rem 1.2rem;
  color: var(--text-secondary);
  line-height: 1.9;
}

.about-popup-copy li {
  margin-bottom: 0.35rem;
}

.about-popup-note {
  font-size: 1.03rem !important;
  color: var(--text-muted) !important;
  margin-top: 0.4rem !important;
}

.about-popup-body::-webkit-scrollbar {
  width: 12px;
}
.about-popup-body::-webkit-scrollbar-track {
  background: var(--scrollbar-track);
}
.about-popup-body::-webkit-scrollbar-thumb {
  background: rgba(74, 158, 255, 0.55);
  border-radius: 999px;
  border: 2px solid var(--scrollbar-thumb-border);
}
.about-popup-body::-webkit-scrollbar-thumb:hover {
  background: rgba(74, 158, 255, 0.85);
}

.about-popup-image-wrap,
.about-popup-image-stack {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.about-popup-image {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--border);
  object-fit: cover;
  background: var(--bg-surface);
}

.about-popup-body .about-section {
  margin-bottom: 0.7rem;
  padding: 0.8rem 0.9rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--bg-card);
}

.about-popup-body .about-section h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.about-popup-body .about-section p {
  margin: 0 0 0.5rem;
  font-size: 0.92rem;
  line-height: 1.62;
  color: var(--text-secondary);
  word-break: keep-all;
}

.about-popup-body .about-section p strong {
  color: var(--text-primary);
  font-weight: 700;
}

.about-popup-body .about-grid-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.8rem;
}

.about-grid-layout-media-stack {
  grid-template-columns: minmax(0, 1.15fr) minmax(200px, 0.85fr);
  align-items: start;
}

.about-media-stack {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
}

.about-media-stack img {
  width: 100%;
  display: block;
  border-radius: 10px;
  border: 1px solid var(--border);
  object-fit: cover;
  background: var(--bg-surface);
  box-shadow: var(--panel-shadow);
}

.about-section-image {
  width: 100%;
  max-width: 200px;
  border-radius: 12px;
  border: 1px solid var(--border);
  object-fit: cover;
  background: var(--bg-surface);
}

.about-section-note {
  padding: var(--space-2);
  background: var(--bg-secondary);
  border-radius: 12px;
  border: 1px solid var(--border);
}

.about-section-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.about-metric-card {
  padding: var(--space-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-card);
}

.about-metric-card h3 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--text-primary);
}

.about-metric-card p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.6;
}

/* ================================================================
   Contact / Extra
   ================================================================ */
.extra { margin-bottom: 0; }
.extra-links {
  display: flex; align-items: center; justify-content: center;
  margin-top: var(--space-6); gap: var(--space-3);
}
.contact-link-item {
  display: flex; flex-direction: column;
  align-items: center; gap: var(--space-2);
  padding: var(--space-4) var(--space-5);
  background: var(--bg-card);
  border-radius: var(--card-radius);
  border: 1px solid var(--border);
  transition: all 0.4s var(--ease-out);
  text-decoration: none;
  min-width: 160px;
}
.contact-link-item:hover {
  border-color: var(--border-hover);
  box-shadow: none;
}
.contact-link-item i {
  font-size: 1.5rem; color: var(--primary);
  transition: all 0.3s var(--ease-out);
}
.contact-link-item:hover i { color: #4a97ff; transform: scale(1.15); }
.contact-link-label {
  font-family: var(--font-mono);
  font-size: var(--text-small);
  color: var(--text-muted);
  letter-spacing: 0.05em;
}
.contact-link-value {
  font-family: var(--font-body);
  font-size: var(--text-body);
  color: var(--text-secondary);
}

/* Legacy contact icons */
.bottom-link {
  display: flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--bg-card); border: 1px solid var(--border);
  transition: all 0.3s var(--ease-spring);
}
.bottom-link:hover {
  border-color: var(--border-hover);
  box-shadow: none;
}
.bottom-link i { color: var(--primary); font-size: 1.2rem; }
.head-icon { font-size: 1.3rem; margin: 0; }

/* ================================================================
   Footer
   ================================================================ */
.footer {
  background: var(--bg-primary);
  border-top: 1px solid var(--border);
  padding: var(--space-5) var(--space-3);
  display: flex; justify-content: center; align-items: center;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.04em;
}

/* ================================================================
   Scroll Reveal
   ================================================================ */
.reveal {
  opacity: 0; transform: translateY(32px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.reveal.revealed { opacity: 1; transform: translateY(0); }

/* ================================================================
   Semi-transparent buttons override
   ================================================================ */
.semi-transparent-button.with-border {
  border-color: var(--border) !important;
  color: var(--text-muted) !important;
  transition: all 0.3s var(--ease-out) !important;
  font-family: var(--font-mono) !important;
  font-weight: 500 !important;
  font-size: var(--text-xs) !important;
  border-radius: 6px !important;
  letter-spacing: 0.03em !important;
  padding: 7px 14px !important;
  min-width: auto !important;
}
.semi-transparent-button.with-border:hover,
.white-button-hover {
  border-color: var(--primary) !important;
  color: var(--primary) !important;
  background: rgba(63, 141, 255, 0.06) !important;
}

/* Legacy */
.projects-grid { display: grid; grid-template-columns: auto auto; gap: var(--space-2); }
.project-tags { margin: var(--space-3) 0; }
.slightly-smaller-text { font-size: var(--text-small); }
.pt-sans-font { font-family: var(--font-body); }
.head-menu-wrap { display: none; }

/* ================================================================
   Responsive — Tablet
   ================================================================ */
@media screen and (max-width: 900px) {
  .about-grid { gap: var(--space-5); }
}

@media screen and (max-width: 768px) {
  .about-grid,
  .about-grid-simple {
    grid-template-columns: 1fr;
  }
  .about-simple-profile {
    max-width: 240px;
    margin: 0 auto;
  }
  .about-simple-photo {
    width: 130px;
    height: 165px;
  }
  .projects-wrapper { grid-template-columns: 1fr; }
  .stats-row { gap: var(--space-2); }
  .stat-item { padding: var(--space-3); }
  .stat-number { font-size: var(--text-h2); }
  
  /* Mobile Navigation */
  .sticky-nav-inner {
    padding: 0.7rem var(--space-2);
    flex-wrap: wrap;
    align-items: flex-start;
  }
  .sticky-nav-brand {
    flex: 1 1 100%;
  }
  .sticky-nav-links {
    width: 100%;
    margin-left: 0;
    gap: 0.35rem;
    flex-wrap: wrap;
    justify-content: flex-end;
    max-width: none;
    overflow: visible;
  }
  .sticky-nav-links .nav-links {
    font-size: 0.69rem;
    padding: 6px 10px;
    white-space: normal;
    flex-shrink: 1;
  }
  .sticky-nav-brand {
    font-size: 0.86rem;
  }
  
  .project-content { padding: var(--space-3); }
  .hero-social { display: none; }
  .hero-scroll { display: none; }
  .extra-links { flex-direction: column; gap: var(--space-2); }
  .contact-link-item { width: 100%; flex-direction: row; min-width: auto; padding: var(--space-3); }

  .about-popup {
    width: 96vw;
    max-height: 92vh;
  }
  .about-popup-body { padding: 0.7rem; }
  .about-popup-section,
  .about-popup-section-two-col { grid-template-columns: 1fr; }

  .about-popup-article {
    padding: 1rem;
  }
  .about-popup-article h3 {
    font-size: 1.4rem;
  }
  .about-popup-article p {
    font-size: 1.03rem;
    line-height: 1.9;
  }

  .hero-intro {
    font-size: 0.88rem;
    line-height: 1.25;
    white-space: normal;
  }
}

/* ================================================================
   Responsive — Mobile
   ================================================================ */
@media screen and (max-width: 480px) {
  /* Hero Section Mobile Optimization */
  .hero {
    padding: 0 var(--space-3);
  }
  .hero-inner {
    padding: var(--space-6) 0;
    text-align: center;
  }
  .hero-label {
    justify-content: center;
  }
  .hero-label::before {
    display: none;
  }
  .hero-name {
    font-size: clamp(2rem, 10vw, 3rem);
    text-align: center;
  }
  .hero-typing-wrap {
    font-size: var(--text-small);
    text-align: center;
    min-height: 1.5em;
  }
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }
  .hero-btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
    font-size: var(--text-small);
    padding: 12px 20px;
  }
  
  /* Mobile Navigation */
  .sticky-nav-inner {
    padding: 0.65rem 0.8rem;
    gap: 0.45rem;
    flex-wrap: wrap;
  }
  .sticky-nav-brand {
    width: 100%;
    font-size: 0.8rem;
    flex-shrink: 0;
  }
  .sticky-nav-links {
    width: 100%;
    justify-content: flex-start;
    gap: 0.35rem;
  }
  .sticky-nav-links .nav-links {
    font-size: 0.62rem;
    padding: 5px 8px;
    border-radius: 999px;
    letter-spacing: 0.02em;
  }
  .theme-toggle-fab {
    min-width: 52px;
    height: 48px;
    padding: 0 14px;
    border-radius: 999px;
  }
  .theme-toggle-text {
    display: none;
  }
  .projects-wrapper { grid-template-columns: 1fr; gap: var(--space-3); }
  .project-content { padding: var(--space-3); }
  .project-title { font-size: 1rem; }
  .stats-row { grid-template-columns: repeat(3, 1fr); gap: var(--space-1); }
  .stat-item { padding: var(--space-2) var(--space-1); }
  .stat-number { font-size: 1.3rem; }
  .stat-label { 
    font-size: 0.6rem; 
    letter-spacing: 0.02em;
    word-break: keep-all;
  }
  .section-heading { font-size: 1.5rem; margin-bottom: var(--space-5); flex-wrap: wrap; }
  .section-heading::after { display: none; }
  .video-modal { width: 96%; }
  .section { padding: var(--space-6) var(--space-3); }
  .paragraph-text { font-size: 0.95rem; }
  .paragraph-text-normal { font-size: 0.95rem; }
  .contact-link-item { padding: var(--space-3) var(--space-4); }
  
  .what-i-do {
    text-align: center;
  }
}

@media screen and (max-height: 500px) {
  .hero { min-height: 500px; }
}

/* Extra small mobile (360px and below) */
@media screen and (max-width: 360px) {
  .hero-name {
    font-size: 1.8rem;
  }
  .hero-typing-wrap {
    font-size: 0.85rem;
  }
  .sticky-nav-links .nav-links {
    font-size: 0.58rem;
    padding: 4px 7px;
  }
  .sticky-nav-brand {
    font-size: 0.75rem;
  }
  .section-heading {
    font-size: 1.3rem;
  }
  .stat-number {
    font-size: 1.1rem;
  }
  .stat-label {
    font-size: 0.55rem;
    letter-spacing: 0;
  }
  .stat-item {
    padding: var(--space-2) 2px;
  }
  .stat-number {
    font-size: 1.2rem;
  }
}
