/* ==========================================================================
   Jaepark Yoon Portfolio - Light Theme Design System & Styles
   ========================================================================== */

:root {
  /* Color Palette - Premium Crisp Light Theme */
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f1f5f9;
  --bg-card: #ffffff;
  --bg-card-hover: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.85);
  --border-subtle: #e2e8f0;
  --border-hover: #cbd5e1;
  --border-focus: rgba(79, 70, 229, 0.4);

  /* Accents */
  --accent-primary: #4f46e5; /* Indigo 600 */
  --accent-primary-hover: #4338ca;
  --accent-secondary: #0284c7; /* Sky 600 */
  --accent-gradient: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #0284c7 100%);
  --accent-snapfolio: #ea580c; /* Orange 600 */
  --accent-snapfolio-glow: rgba(234, 88, 12, 0.15);
  --accent-tactics: #059669; /* Emerald 600 */
  --accent-tactics-glow: rgba(5, 150, 105, 0.15);

  /* Typography Colors */
  --text-primary: #0f172a; /* Slate 900 */
  --text-secondary: #475569; /* Slate 600 */
  --text-muted: #64748b; /* Slate 500 */
  --text-inverse: #ffffff;

  /* Fonts */
  --font-sans: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, Roboto, "Helvetica Neue", "Segoe UI", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  --font-mono: "Fira Code", "JetBrains Mono", Consolas, Menlo, monospace;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.05), 0 1px 2px rgba(15, 23, 42, 0.03);
  --shadow-md: 0 4px 16px rgba(15, 23, 42, 0.06), 0 2px 4px rgba(15, 23, 42, 0.03);
  --shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.08), 0 4px 8px rgba(15, 23, 42, 0.04);
  --shadow-xl: 0 20px 48px rgba(15, 23, 42, 0.1);

  /* Layout */
  --container-max: 1200px;
  --header-height: 72px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  line-height: 1.65;
  background-color: var(--bg-primary);
  background-image: 
    radial-gradient(at 10% 10%, rgba(79, 70, 229, 0.05) 0px, transparent 50%),
    radial-gradient(at 90% 20%, rgba(124, 58, 237, 0.04) 0px, transparent 50%),
    radial-gradient(at 50% 80%, rgba(2, 132, 199, 0.04) 0px, transparent 60%);
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
}

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

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

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

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   Navigation Bar
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  z-index: 1000;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: all var(--transition-normal);
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  border-bottom-color: var(--border-hover);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
}

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

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

.nav-link {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all var(--transition-normal);
}

.nav-link:hover, .nav-link.active {
  color: var(--accent-primary);
  background: var(--bg-tertiary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.github-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 9999px;
  background: var(--text-primary);
  border: 1px solid var(--text-primary);
  color: white;
  font-size: 0.88rem;
  font-weight: 600;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-sm);
}

.github-btn:hover {
  background: #1e293b;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.mobile-menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  font-size: 1.4rem;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero-section {
  padding: calc(var(--header-height) + 60px) 0 60px;
  position: relative;
}

.hero-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 880px;
  margin: 0 auto;
}

.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 9999px;
  background: rgba(79, 70, 229, 0.08);
  border: 1px solid rgba(79, 70, 229, 0.2);
  color: var(--accent-primary);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.pill-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-tactics);
  box-shadow: 0 0 8px var(--accent-tactics);
}

.hero-title {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  color: var(--text-primary);
  word-break: keep-all;
}

.gradient-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 36px;
  word-break: keep-all;
}

.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.96rem;
  transition: all var(--transition-normal);
  text-decoration: none;
}

.btn-primary {
  background: var(--accent-gradient);
  color: white;
  box-shadow: 0 4px 16px rgba(79, 70, 229, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(79, 70, 229, 0.4);
}

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

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

.btn-outline {
  border: 1px solid var(--border-subtle);
  background: var(--bg-secondary);
  color: var(--text-secondary);
  box-shadow: var(--shadow-sm);
}

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

/* Stat Counters */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  width: 100%;
  padding: 24px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.stat-value {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--text-primary);
  font-family: var(--font-mono);
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ==========================================================================
   Project Spotlight Switcher (Quick Nav)
   ========================================================================== */

.project-nav-section {
  padding: 20px 0 50px;
}

.project-switcher {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 6px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  max-width: 600px;
  margin: 0 auto;
}

.switch-tab {
  padding: 10px 24px;
  border-radius: 9999px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all var(--transition-normal);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.switch-tab:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.6);
}

.switch-tab.active {
  color: white;
  background: var(--accent-primary);
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
}

/* ==========================================================================
   Project Card Sections
   ========================================================================== */

.project-section {
  padding: 80px 0;
  position: relative;
}

.project-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-subtle), transparent);
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.badge-tactics {
  background: rgba(5, 150, 105, 0.1);
  color: var(--accent-tactics);
  border: 1px solid rgba(5, 150, 105, 0.25);
}

.section-header {
  margin-bottom: 48px;
}

.section-title {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--text-primary);
  word-break: keep-all;
}

.project-logo-img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}

.section-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 780px;
  line-height: 1.7;
  word-break: keep-all;
}

.tech-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.tech-tag {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 6px;
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
}

/* ==========================================================================
   SnapFolio Showcase & Gallery
   ========================================================================== */

.snapfolio-banner {
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  margin-bottom: 40px;
  box-shadow: var(--shadow-md);
  position: relative;
}

.snapfolio-banner img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Device Carousel Showcase */
.screenshot-showcase {
  margin: 40px 0 60px;
}

.showcase-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 24px;
}

.carousel-controls {
  display: flex;
  gap: 10px;
}

.carousel-nav-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-sm);
}

.carousel-nav-btn:hover {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: white;
  transform: scale(1.05);
}

.screenshot-carousel-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 16px 4px 28px;
  scrollbar-width: thin;
  scrollbar-color: var(--border-subtle) transparent;
}

.screenshot-carousel-track::-webkit-scrollbar {
  height: 6px;
}

.screenshot-carousel-track::-webkit-scrollbar-thumb {
  background: var(--border-hover);
  border-radius: 10px;
}

.screenshot-card {
  flex: 0 0 280px;
  scroll-snap-align: start;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-smooth);
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.screenshot-card:hover {
  transform: translateY(-8px);
  border-color: rgba(234, 88, 12, 0.4);
  box-shadow: var(--shadow-xl);
}

.screenshot-img-wrapper {
  background: #f8fafc;
  padding: 12px 12px 0;
  display: flex;
  justify-content: center;
}

.screenshot-img-wrapper img {
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  width: 100%;
  height: auto;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.1);
}

.screenshot-info {
  padding: 18px 16px;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  flex: 1;
}

.screenshot-num {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-snapfolio);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.screenshot-title {
  font-size: 0.98rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.screenshot-desc {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Feature Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 36px;
}

.feature-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: transparent;
  transition: all var(--transition-normal);
}

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

.snapfolio-theme .feature-card:hover::before {
  background: var(--accent-snapfolio);
}

.tactics-theme .feature-card:hover::before {
  background: var(--accent-tactics);
}

.feature-icon-box {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.icon-snapfolio {
  background: rgba(234, 88, 12, 0.1);
  color: var(--accent-snapfolio);
  border: 1px solid rgba(234, 88, 12, 0.2);
}

.icon-tactics {
  background: rgba(5, 150, 105, 0.1);
  color: var(--accent-tactics);
  border: 1px solid rgba(5, 150, 105, 0.2);
}

.feature-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.feature-text {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.7;
  word-break: keep-all;
}

/* Architecture Highlight Box */
.arch-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 36px;
  margin-top: 40px;
  box-shadow: var(--shadow-md);
}

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

.arch-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.arch-flow-diagram {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.flow-step {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
}

.step-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-primary);
  font-family: var(--font-mono);
}

.step-title {
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--text-primary);
}

.step-desc {
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* ==========================================================================
   SnapFolio App Flow Simulation Component
   ========================================================================== */

.app-sim-container {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 48px;
  align-items: start;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 44px;
  box-shadow: var(--shadow-lg);
}

/* Phone Mockup */
.phone-mockup-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: sticky;
  top: 100px;
}

.phone-frame {
  width: 290px;
  height: 600px;
  background: #0f172a;
  border-radius: 46px;
  padding: 12px;
  box-shadow: 
    0 0 0 4px #e2e8f0,
    0 25px 50px -12px rgba(15, 23, 42, 0.22),
    0 8px 16px -4px rgba(15, 23, 42, 0.08);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.phone-notch {
  width: 96px;
  height: 20px;
  background: #0f172a;
  border-radius: 0 0 14px 14px;
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 36px;
  overflow: hidden;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sim-screen-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.phone-home-bar {
  width: 110px;
  height: 4px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 9999px;
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.phone-step-indicator {
  display: flex;
  gap: 8px;
  margin-top: 20px;
}

.step-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border-subtle);
  cursor: pointer;
  transition: all var(--transition-normal);
}

.step-dot:hover {
  background: var(--border-hover);
}

.step-dot.active {
  width: 28px;
  border-radius: 9999px;
  background: var(--accent-snapfolio);
}

/* Flow Step Panel */
.flow-panel {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.flow-step-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.flow-step-btn {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px 20px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  text-align: left;
  cursor: pointer;
  transition: all var(--transition-normal);
}

.flow-step-btn:hover {
  background: #ffffff;
  border-color: var(--border-hover);
  transform: translateX(4px);
  box-shadow: var(--shadow-sm);
}

.flow-step-btn.active {
  background: #ffffff;
  border-color: var(--accent-snapfolio);
  box-shadow: 0 4px 18px rgba(234, 88, 12, 0.12), var(--shadow-sm);
  transform: translateX(6px);
}

.flow-step-num {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-muted);
  font-family: var(--font-mono);
  width: 32px;
  flex-shrink: 0;
}

.flow-step-btn.active .flow-step-num {
  color: var(--accent-snapfolio);
}

.flow-step-content {
  flex: 1;
}

.flow-step-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 3px;
}

.flow-step-desc {
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.flow-step-arrow {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: transform var(--transition-normal), color var(--transition-normal);
}

.flow-step-btn.active .flow-step-arrow {
  color: var(--accent-snapfolio);
  transform: translateX(3px);
}

/* Detail Card */
.flow-detail-card {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.flow-detail-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.flow-detail-badge {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 9999px;
  background: rgba(234, 88, 12, 0.12);
  color: var(--accent-snapfolio);
  font-family: var(--font-mono);
}

.flow-detail-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
}

.flow-detail-body p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
}

.flow-detail-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.detail-tech-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 6px;
  background: #ffffff;
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  box-shadow: var(--shadow-sm);
}

/* ==========================================================================
   About & Contact
   ========================================================================== */

.about-section {
  padding: 80px 0 100px;
}

.about-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 48px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.about-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.about-avatar {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  font-weight: 800;
  color: white;
  margin: 0 auto 24px;
  box-shadow: 0 4px 20px rgba(79, 70, 229, 0.35);
}

.about-name {
  font-size: 1.85rem;
  font-weight: 800;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.about-role {
  font-size: 1rem;
  color: var(--accent-primary);
  font-weight: 700;
  margin-bottom: 24px;
}

.about-bio {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 36px;
  word-break: keep-all;
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 40px 0;
  background: var(--bg-secondary);
  font-size: 0.88rem;
  color: var(--text-muted);
}

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

.footer-links {
  display: flex;
  gap: 20px;
}

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

/* ==========================================================================
   Lightbox / Modal for Screenshots
   ========================================================================== */

.modal-backdrop {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(8px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-backdrop.open {
  display: flex;
  opacity: 1;
}

.modal-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.modal-content img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  cursor: pointer;
  transition: background 0.2s;
}

.modal-close-btn:hover {
  background: rgba(0, 0, 0, 0.9);
}


/* ==========================================================================
   Generic badge (indigo) & mobile nav
   ========================================================================== */

.badge-indigo {
  background: rgba(79, 70, 229, 0.08);
  color: var(--accent-primary);
  border: 1px solid rgba(79, 70, 229, 0.2);
}

@media (max-width: 768px) {
  .nav-links.open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    padding: 12px 16px 16px;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-md);
  }
  .nav-links.open .nav-link {
    display: block;
    padding: 12px 14px;
  }
}

/* ==========================================================================
   About & Skills
   ========================================================================== */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(300px, 1fr);
  gap: 32px;
  align-items: start;
}

.about-text p {
  font-size: 1.02rem;
  color: var(--text-secondary);
  line-height: 1.85;
  word-break: keep-all;
  margin-bottom: 18px;
}

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

.skills-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 26px 28px;
  box-shadow: var(--shadow-md);
  position: sticky;
  top: calc(var(--header-height) + 24px);
}

.skills-title {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-primary);
}

.skills-title i {
  color: var(--accent-primary);
}

.skills-list {
  display: flex;
  flex-direction: column;
}

.skill-row {
  padding: 10px 0;
  border-top: 1px solid var(--border-subtle);
}

.skill-row dt {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-primary);
  font-family: var(--font-mono);
  margin-bottom: 3px;
}

.skill-row dd {
  font-size: 0.9rem;
  color: var(--text-primary);
  font-weight: 500;
  word-break: keep-all;
}

/* ==========================================================================
   Career Timeline
   ========================================================================== */

.timeline {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.timeline-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

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

.career-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.career-company {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.career-role {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 2px;
}

.career-period {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 0.86rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.career-duration {
  font-size: 0.74rem;
  padding: 3px 10px;
  border-radius: 9999px;
  background: rgba(79, 70, 229, 0.08);
  color: var(--accent-primary);
  border: 1px solid rgba(79, 70, 229, 0.2);
}

.career-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.career-bullets li {
  position: relative;
  padding-left: 16px;
  font-size: 0.94rem;
  color: var(--text-secondary);
  word-break: keep-all;
}

.career-bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-primary);
}

.career-bullets a {
  color: var(--text-primary);
  font-weight: 600;
  border-bottom: 1px dashed var(--border-hover);
}

.career-bullets a:hover {
  color: var(--accent-primary);
  border-bottom-color: var(--accent-primary);
}

/* ==========================================================================
   Project Blocks (company projects)
   ========================================================================== */

.project-block {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-md);
  margin-bottom: 32px;
  scroll-margin-top: calc(var(--header-height) + 16px);
}

.project-head {
  margin-bottom: 28px;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 0.8rem;
  font-weight: 700;
}

.project-meta span {
  padding: 4px 12px;
  border-radius: 9999px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-tertiary);
  color: var(--text-secondary);
}

.project-meta .project-org {
  background: rgba(79, 70, 229, 0.08);
  color: var(--accent-primary);
  border-color: rgba(79, 70, 229, 0.2);
}

.project-meta .project-period {
  font-family: var(--font-mono);
}

.project-title {
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.project-subtitle {
  font-size: 1.02rem;
  color: var(--text-secondary);
  word-break: keep-all;
}

.project-body {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 1fr);
  gap: 36px;
  align-items: start;
}

.project-body--landscape {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 1.1fr);
}

.achievements-title {
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-primary);
  margin-bottom: 12px;
  font-family: var(--font-mono);
}

.achievements {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.achievements li {
  position: relative;
  padding-left: 18px;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  word-break: keep-all;
}

.achievements li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--accent-primary);
  transform: rotate(45deg);
}

.snapfolio-theme .achievements li::before {
  background: var(--accent-snapfolio);
}

.snapfolio-theme .achievements-title {
  color: var(--accent-snapfolio);
}

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

.related-articles {
  margin-top: 20px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.related-label {
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 2px;
}

.related-articles a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}

.related-articles a::before {
  content: "· ";
  color: var(--text-muted);
}

.related-articles a:hover {
  color: var(--accent-primary);
}

/* Screenshot triplets */
.shot-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.shot-row--landscape {
  grid-template-columns: 1fr;
}

.shot {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.shot img {
  width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  cursor: zoom-in;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  background: var(--bg-tertiary);
}

.shot img:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.shot figcaption {
  font-size: 0.76rem;
  color: var(--text-muted);
  text-align: center;
  font-weight: 600;
  word-break: keep-all;
}

/* ==========================================================================
   SnapFolio: Orchestration grid & agent diagram
   ========================================================================== */

.orchestration-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(360px, 1fr);
  gap: 36px;
  align-items: start;
  margin-bottom: 48px;
}

.agent-diagram {
  min-width: 0;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}

.agent-orchestrator,
.agent-deploy {
  border-radius: var(--radius-md);
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: center;
}

.agent-orchestrator {
  background: var(--accent-snapfolio);
  color: #fff;
  box-shadow: 0 4px 16px rgba(234, 88, 12, 0.3);
}

.agent-deploy {
  background: var(--text-primary);
  color: #fff;
}

.agent-box-label {
  font-weight: 800;
  font-size: 0.95rem;
}

.agent-box-desc {
  font-size: 0.78rem;
  opacity: 0.9;
}

.agent-arrow {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.agent-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.agent-col {
  min-width: 0;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.agent-col-title {
  font-weight: 800;
  font-size: 0.86rem;
  color: var(--text-primary);
  padding-bottom: 6px;
  border-bottom: 2px solid var(--accent-snapfolio);
}

.agent-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.agent-col li {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-secondary);
  background: #fff;
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 4px 7px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.agent-col-note {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 600;
  word-break: keep-all;
}

.agent-caption {
  text-align: center;
  font-size: 0.76rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 4px;
}

/* App screens block */
.app-screens {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 1.05fr);
  gap: 36px;
  align-items: center;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 36px;
  box-shadow: var(--shadow-md);
}

.app-screens-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.app-screens-sub {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 18px;
  word-break: keep-all;
}

/* ==========================================================================
   Writing
   ========================================================================== */

.writing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.writing-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all var(--transition-normal);
}

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

.writing-tag {
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 9999px;
  background: rgba(79, 70, 229, 0.08);
  color: var(--accent-primary);
  border: 1px solid rgba(79, 70, 229, 0.2);
  font-family: var(--font-mono);
}

.writing-title {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.45;
  word-break: keep-all;
}

.writing-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.65;
  word-break: keep-all;
}

/* ==========================================================================
   Closing quote
   ========================================================================== */

.closing-quote {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.85;
  margin: 0 0 36px;
  padding: 20px 24px;
  border-left: 4px solid var(--accent-primary);
  background: var(--bg-tertiary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  text-align: left;
  word-break: keep-all;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (max-width: 1024px) {
  .app-sim-container {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 28px 20px;
  }
  
  .phone-mockup-wrapper {
    position: static;
  }

  .phone-frame {
    width: 280px;
    height: 560px;
  }
}

@media (max-width: 768px) {
  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .nav-links {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
  }

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

  .about-card {
    padding: 32px 20px;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .phone-frame {
    width: 250px;
    height: 500px;
  }
}

@media (max-width: 1024px) {
  .about-grid,
  .orchestration-grid,
  .app-screens,
  .project-body,
  .project-body--landscape {
    grid-template-columns: 1fr;
  }

  .skills-card {
    position: static;
  }
}

@media (max-width: 768px) {
  .project-block,
  .app-screens {
    padding: 24px 18px;
  }

  .career-period {
    align-items: flex-start;
  }

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

  .shot-row {
    gap: 10px;
  }

  .closing-quote br {
    display: none;
  }

  .hero-subtitle br {
    display: none;
  }
}

/* First section sits under the fixed header */
.first-section {
  padding-top: calc(var(--header-height) + 60px);
}

.first-section::before {
  display: none;
}
