/* ==========================================================================
   CSS Variables & Design Tokens (Deep Forest Green & Dusty Coral Pink)
   ========================================================================== */
:root {
  /* User-Defined Palette */
  --color-brand: #18392B;        /* Deep Forest Green - Navbar, headings, buttons, footer */
  --color-brand-hover: #0f251c;
  --color-coral: #E98F8F;        /* Dusty Coral Pink - Highlight words, tags, hover states */
  --color-coral-hover: #d97878;
  --color-coral-light: rgba(233, 143, 143, 0.16);
  --color-coral-glow: rgba(233, 143, 143, 0.35);

  --color-bg: #F7F5F0;           /* Warm Off-White - Main background */
  --color-text: #202320;         /* Near Black - Paragraphs/body copy */
  --color-text-muted: #525a53;   /* Muted body text */
  --color-sage: #DCE5DD;         /* Soft Sage - Cards, sections, subtle backgrounds */
  --color-sage-light: #edf2ee;
  --color-card: #FFFFFF;

  /* Functional Mappings */
  --bg-primary: var(--color-bg);
  --bg-secondary: var(--color-sage);
  --bg-card: #FFFFFF;
  --bg-card-hover: #FBFDFB;
  --border-color: #D2DDD4;
  --border-hover: #B8C8BC;

  --text-main: var(--color-brand);     /* Headings are Forest Green */
  --text-body: var(--color-text);      /* Paragraphs are Near Black */
  --text-muted: var(--color-text-muted);

  --accent-primary: var(--color-brand);
  --accent-coral: var(--color-coral);
  --accent-light: var(--color-coral-light);
  --accent-gradient: linear-gradient(135deg, #18392B 0%, #E98F8F 100%);

  /* Header & Footer specifically Deep Forest Green */
  --header-bg: rgba(24, 57, 43, 0.95);
  --header-text: #F7F5F0;
  --header-text-muted: #DCE5DD;
  --footer-bg: #18392B;
  --footer-text: #F7F5F0;

  /* Shadows with organic green tint */
  --shadow-sm: 0 1px 3px rgba(24, 57, 43, 0.05);
  --shadow-md: 0 4px 12px -1px rgba(24, 57, 43, 0.08), 0 2px 5px -2px rgba(24, 57, 43, 0.04);
  --shadow-lg: 0 14px 28px -4px rgba(24, 57, 43, 0.1), 0 6px 12px -5px rgba(24, 57, 43, 0.05);
  --shadow-hover: 0 20px 32px -5px rgba(24, 57, 43, 0.18), 0 8px 14px -4px var(--color-coral-glow);

  /* Layout & Sizing */
  --max-width: 1140px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  /* Apple-Style Smooth Animation Curve */
  --ease-apple: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: all 0.4s var(--ease-apple);

  /* Modern Typography: Space Grotesk (Headings/Branding) & Plus Jakarta Sans (Clean Body) */
  --font-heading: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

[data-theme="dark"] {
  --color-bg: #0c1410;
  --color-text: #E8ECE9;
  --color-text-muted: #9EABA1;
  --color-sage: #14221a;
  --color-card: #18281F;

  --bg-primary: #0c1410;
  --bg-secondary: #132219;
  --bg-card: #18281F;
  --bg-card-hover: #1f3328;
  --border-color: #243b2e;
  --border-hover: #355342;

  --text-main: #F7F5F0;
  --text-body: #E8ECE9;
  --text-muted: #9EABA1;

  --accent-primary: #A3D3B7;
  --accent-coral: #F0A5A5;
  --accent-light: rgba(240, 165, 165, 0.15);
  --accent-gradient: linear-gradient(135deg, #F0A5A5 0%, #A3D3B7 100%);

  --header-bg: rgba(12, 20, 16, 0.92);
  --header-text: #F7F5F0;
  --header-text-muted: #9EABA1;
  --footer-bg: #0a110d;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 14px 28px rgba(0, 0, 0, 0.6);
  --shadow-hover: 0 20px 35px rgba(240, 165, 165, 0.18);
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-body);
  color: var(--text-body);
  background-color: var(--bg-primary);
  transition: background-color 0.4s ease, color 0.4s ease;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-primary);
  color: var(--text-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

ul {
  list-style: none;
}

button, input, select, textarea {
  font-family: inherit;
}

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

.container {
  width: 90%;
  max-width: var(--max-width);
  margin: 0 auto;
}

.section {
  padding: 6rem 0;
  position: relative;
}

/* ==========================================================================
   Top Scroll Reading Progress Bar
   ========================================================================== */
.scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3.5px;
  background: linear-gradient(90deg, var(--color-brand) 0%, var(--color-coral) 100%);
  z-index: 9999;
  transition: width 0.1s linear;
  box-shadow: 0 0 8px var(--color-coral-glow);
}

/* ==========================================================================
   Apple-Style Scroll Reveal Animation System
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(32px) scale(0.985);
  filter: blur(6px);
  transition: opacity 0.85s var(--ease-apple),
              transform 0.85s var(--ease-apple),
              filter 0.85s var(--ease-apple);
  will-change: opacity, transform, filter;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

/* Stagger delay utilities */
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }
.reveal-delay-5 { transition-delay: 0.40s; }
.reveal-delay-6 { transition-delay: 0.48s; }

/* ==========================================================================
   Trending Interactive FX: Mouse Spotlight & 3D Tilt
   ========================================================================== */
.spotlight-card {
  position: relative;
  background: radial-gradient(
    600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(233, 143, 143, 0.14),
    transparent 45%
  ), var(--bg-card);
}

.tilt-card {
  transform-style: preserve-3d;
  transition: transform 0.2s cubic-bezier(0.2, 0, 0, 1), box-shadow 0.3s ease, border-color 0.3s ease;
  will-change: transform;
}

/* Magnetic Button Pulse */
.magnetic-btn {
  transition: transform 0.25s var(--ease-apple), background-color 0.25s ease, box-shadow 0.25s ease;
  will-change: transform;
}

/* ==========================================================================
   Infinite Creator Marquee / Ticker
   ========================================================================== */
.marquee-wrapper {
  overflow: hidden;
  background-color: var(--color-brand);
  color: #F7F5F0;
  padding: 1.1rem 0;
  white-space: nowrap;
  position: relative;
  border-top: 1px solid rgba(233, 143, 143, 0.2);
  border-bottom: 1px solid rgba(233, 143, 143, 0.2);
}

.marquee-track {
  display: inline-flex;
  gap: 2.5rem;
  animation: marquee-scroll 32s linear infinite;
  will-change: transform;
}

.marquee-track:hover {
  animation-play-state: paused;
}

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.marquee-item {
  font-size: 0.825rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 1.5rem;
}

.marquee-star {
  color: var(--color-coral);
  font-size: 1rem;
}

/* ==========================================================================
   Typography & Shared Utilities (Space Grotesk & Plus Jakarta Sans)
   ========================================================================== */
h1, h2, h3, h4, h5, h6,
.brand-logo,
.hero-title,
.section-title,
.section-tag,
.sticky-title,
.pillar-heading,
.project-title,
.stat-number,
.counter-number,
.marquee-item,
.step-num,
.tag,
.btn,
.pill-badge,
.timeline-title,
.timeline-badge,
.skill-cat-header h3,
.about-highlight h3,
.contact-title,
.stat-label,
.feature-tile h4,
.preview-badge {
  font-family: var(--font-heading);
}

/* Lucide Icon Alignment */
.lucide, svg.lucide {
  width: 1.15em;
  height: 1.15em;
  display: inline-block;
  vertical-align: -0.15em;
  flex-shrink: 0;
}

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

.highlight-coral {
  color: var(--accent-coral);
  font-weight: 700;
}

.section-tag {
  display: inline-block;
  font-size: 0.825rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-brand);
  background: var(--color-sage);
  border: 1px solid rgba(24, 57, 43, 0.12);
  padding: 0.35rem 0.95rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.85rem;
}

[data-theme="dark"] .section-tag {
  color: var(--accent-coral);
  background: var(--accent-light);
  border-color: rgba(240, 165, 165, 0.2);
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3.75rem;
}

.section-title {
  font-size: 2.35rem;
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--text-main);
  margin-bottom: 0.85rem;
  line-height: 1.22;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.925rem;
  font-weight: 600;
  padding: 0.8rem 1.5rem;
  border-radius: var(--radius-md);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: var(--transition-smooth);
}

/* Primary Button: Deep Forest Green -> Hover Dusty Coral Pink */
.btn-primary {
  background-color: var(--color-brand);
  color: #F7F5F0 !important;
  border-color: var(--color-brand);
  box-shadow: 0 4px 14px rgba(24, 57, 43, 0.25);
}

.btn-primary:hover {
  background-color: var(--color-coral);
  border-color: var(--color-coral);
  color: #18392B !important;
  transform: translateY(-2.5px);
  box-shadow: 0 8px 20px var(--color-coral-glow);
}

/* Secondary Button */
.btn-secondary {
  background-color: transparent;
  color: var(--color-brand);
  border-color: var(--color-brand);
}

.btn-secondary:hover {
  background-color: var(--color-coral-light);
  border-color: var(--color-coral);
  color: var(--color-brand);
  transform: translateY(-2.5px);
}

[data-theme="dark"] .btn-secondary {
  color: #F7F5F0;
  border-color: var(--border-hover);
}

[data-theme="dark"] .btn-secondary:hover {
  border-color: var(--accent-coral);
  color: var(--accent-coral);
}

.icon-btn {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #F7F5F0;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.icon-btn:hover {
  background: var(--color-coral);
  border-color: var(--color-coral);
  color: #18392B;
  transform: scale(1.05);
}

/* ==========================================================================
   Header & Navigation (Deep Forest Green #18392B)
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--header-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(220, 229, 221, 0.15);
  color: var(--header-text);
  transition: var(--transition-smooth);
}

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

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.18rem;
  letter-spacing: 0.04em;
  color: #F7F5F0;
  transition: var(--transition-smooth);
}

.brand-logo-icon {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(247, 245, 240, 0.08);
  border: 1px solid rgba(233, 143, 143, 0.3);
  padding: 4px;
  transition: var(--transition-smooth);
  flex-shrink: 0;
}

.brand-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(0) invert(1);
  transition: var(--transition-smooth);
}

.brand-logo:hover .brand-logo-icon {
  background: var(--color-coral);
  border-color: var(--color-coral);
  transform: translateY(-1.5px) rotate(-3deg) scale(1.06);
  box-shadow: 0 4px 12px var(--color-coral-glow);
}

.brand-logo:hover .brand-logo-img {
  filter: brightness(0);
}

.brand-logo:hover .logo-text {
  color: #F7F5F0;
}

.logo-text {
  font-family: var(--font-heading);
  font-weight: 800;
  letter-spacing: 0.06em;
}

.logo-text .dot {
  color: var(--color-coral);
  font-weight: 900;
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--color-coral);
  color: #18392B;
  border-radius: 10px;
  font-size: 1.05rem;
  font-weight: 800;
  box-shadow: 0 2px 8px var(--color-coral-glow);
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 1.85rem;
}

.nav-link {
  font-size: 0.925rem;
  font-weight: 500;
  color: var(--header-text-muted);
}

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

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

.nav-cta {
  background-color: var(--color-coral);
  color: #18392B !important;
  border-color: var(--color-coral);
  padding: 0.6rem 1.2rem;
  font-size: 0.875rem;
}

.nav-cta:hover {
  background-color: #F7F5F0;
  border-color: #F7F5F0;
  color: #18392B !important;
}

/* Dark mode icon swap */
[data-theme="light"] .light-icon { display: none; }
[data-theme="light"] .dark-icon { display: block; }
[data-theme="dark"] .light-icon { display: block; }
[data-theme="dark"] .dark-icon { display: none; }

.mobile-only {
  display: none;
}

.nav-mobile-footer {
  display: none;
}

.hidden {
  display: none !important;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  padding: 5.5rem 0 4.5rem;
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 10% 20%, rgba(220, 229, 221, 0.45) 0%, transparent 40%);
}

[data-theme="dark"] .hero-section {
  background: radial-gradient(circle at 10% 20%, rgba(24, 40, 31, 0.5) 0%, transparent 45%);
}

.hero-container {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  align-items: center;
  gap: 3.5rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: var(--color-sage);
  color: var(--color-brand);
  font-size: 0.825rem;
  font-weight: 700;
  padding: 0.4rem 0.95rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.5rem;
  border: 1px solid rgba(24, 57, 43, 0.15);
}

[data-theme="dark"] .badge {
  background: rgba(240, 165, 165, 0.12);
  color: var(--accent-coral);
  border-color: rgba(240, 165, 165, 0.25);
}

.badge-dot {
  width: 8px;
  height: 8px;
  background-color: var(--color-coral);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.75; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.75; }
}

.hero-title {
  font-size: 2.95rem;
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -0.04em;
  color: var(--text-main);
  margin-bottom: 1.25rem;
}

.hero-description {
  font-size: 1.125rem;
  color: var(--text-body);
  line-height: 1.75;
  margin-bottom: 2rem;
  max-width: 580px;
}

.hero-cta-group {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-bottom: 2.75rem;
}

.hero-stats {
  display: flex;
  gap: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

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

.stat-number {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--color-brand);
  letter-spacing: -0.03em;
  display: flex;
  align-items: baseline;
}

[data-theme="dark"] .stat-number {
  color: var(--accent-coral);
}

.stat-label {
  font-size: 0.825rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* Profile Card Widget */
.profile-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-lg);
  transition: var(--transition-smooth);
}

.profile-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: var(--color-coral);
}

.profile-avatar-wrap {
  width: 130px;
  height: 130px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  padding: 4px;
  background: linear-gradient(135deg, var(--color-brand) 0%, var(--color-coral) 100%);
  box-shadow: 0 4px 15px var(--color-coral-glow);
  overflow: hidden;
}

.profile-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  border-radius: 50%;
  display: block;
  background: var(--color-sage);
}

.profile-info h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.25rem;
}

.profile-info p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.location-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  color: var(--color-brand);
  background: var(--color-sage);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.25rem;
  font-weight: 600;
}

[data-theme="dark"] .location-chip {
  color: var(--accent-coral);
  background: var(--color-sage);
}

.location-chip svg {
  width: 14px;
  height: 14px;
}

.profile-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.tag {
  font-size: 0.775rem;
  font-weight: 600;
  background: var(--color-sage);
  color: var(--color-brand);
  border: 1px solid var(--border-color);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  transition: var(--transition-smooth);
}

.tag:hover {
  border-color: var(--color-coral);
  color: var(--color-coral);
}

[data-theme="dark"] .tag {
  color: #E8ECE9;
}

/* ==========================================================================
   STICKY SCROLL REVEAL SECTION (CORE CAPABILITIES)
   Pins on screen while user scrolls through 01 -> 02 -> 03
   ========================================================================= */
.sticky-section-track {
  position: relative;
  min-height: 320vh;
  background-color: var(--color-sage);
}

.sticky-viewport {
  position: sticky;
  top: 74px;
  height: calc(100vh - 74px);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.sticky-container {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: 4rem;
  width: 90%;
  max-width: var(--max-width);
  margin: 0 auto;
}

.sticky-sidebar {
  display: flex;
  flex-direction: column;
}

.sticky-title {
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--text-main);
  margin-bottom: 0.85rem;
}

.sticky-desc {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 2.25rem;
}

/* Interactive Step Nav Indicators */
.sticky-step-nav {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  margin-bottom: 2.25rem;
}

.step-btn {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  padding: 0.35rem 0;
  opacity: 0.55;
  transition: var(--transition-smooth);
}

.step-btn:hover {
  opacity: 0.9;
}

.step-btn.active {
  opacity: 1;
}

.step-num {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--color-brand);
  letter-spacing: -0.02em;
  min-width: 24px;
}

[data-theme="dark"] .step-num {
  color: var(--accent-coral);
}

.step-bar-wrap {
  width: 90px;
  height: 4px;
  background: rgba(24, 57, 43, 0.15);
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
}

[data-theme="dark"] .step-bar-wrap {
  background: rgba(255, 255, 255, 0.15);
}

.step-bar-fill {
  width: 0%;
  height: 100%;
  background: var(--color-coral);
  border-radius: var(--radius-full);
  transition: width 0.15s ease-out;
}

.step-label {
  font-size: 0.925rem;
  font-weight: 700;
  color: var(--text-main);
}

.scroll-instruction {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}

.mouse-icon {
  width: 16px;
  height: 16px;
  animation: bounce-subtle 2s infinite ease-in-out;
  color: var(--color-coral);
}

@keyframes bounce-subtle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}

/* Stage & Stacked Cards */
.sticky-cards-stage {
  position: relative;
  width: 100%;
  height: 520px;
}

.stacked-core-card {
  position: absolute;
  inset: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.75rem 2.5rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  transition: opacity 0.65s var(--ease-apple),
              transform 0.65s var(--ease-apple),
              filter 0.65s var(--ease-apple);
  will-change: transform, opacity, filter;
}

.stacked-core-card.is-active {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
  pointer-events: auto;
  z-index: 3;
}

.stacked-core-card.is-prev {
  opacity: 0;
  transform: translateY(-40px) scale(0.92);
  filter: blur(5px);
  pointer-events: none;
  z-index: 1;
}

.stacked-core-card.is-next {
  opacity: 0;
  transform: translateY(50px) scale(0.95);
  filter: blur(5px);
  pointer-events: none;
  z-index: 2;
}

.card-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.pillar-chip {
  font-size: 0.775rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-brand);
  background: var(--color-sage);
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-full);
}

[data-theme="dark"] .pillar-chip {
  color: var(--accent-coral);
}

.card-icon {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-icon {
  background: var(--color-coral-light);
  color: var(--color-coral);
}

.marketing-icon {
  background: rgba(24, 57, 43, 0.12);
  color: var(--color-brand);
}

[data-theme="dark"] .marketing-icon {
  background: rgba(163, 211, 183, 0.15);
  color: var(--accent-primary);
}

.tutoring-icon {
  background: var(--color-sage);
  color: var(--color-brand);
}

.pillar-heading {
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-main);
  margin-bottom: 0.75rem;
}

.pillar-summary {
  font-size: 0.95rem;
  color: var(--text-body);
  line-height: 1.65;
  margin-bottom: 1.85rem;
}

.pillar-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem 1.5rem;
  margin-top: auto;
  border-top: 1px solid var(--border-color);
  padding-top: 1.5rem;
}

.feature-tile {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.feature-tile svg {
  width: 18px;
  height: 18px;
  color: var(--color-brand);
  flex-shrink: 0;
  margin-top: 2px;
}

[data-theme="dark"] .feature-tile svg {
  color: var(--accent-coral);
}

.feature-tile h4 {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.2rem;
}

.feature-tile p {
  font-size: 0.775rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* ==========================================================================
   Projects Section (With Real Project Images)
   ========================================================================== */
.projects-section {
  background-color: var(--bg-primary);
}

.filter-controls {
  display: flex;
  justify-content: center;
  gap: 0.65rem;
  margin-bottom: 3.25rem;
  flex-wrap: wrap;
}

.filter-btn {
  background: var(--bg-card);
  border: 1.5px solid var(--border-color);
  color: var(--text-body);
  padding: 0.55rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.filter-btn:hover {
  border-color: var(--color-coral);
  color: var(--color-brand);
}

.filter-btn.active {
  background: var(--color-brand);
  color: #F7F5F0;
  border-color: var(--color-brand);
  box-shadow: 0 4px 12px rgba(24, 57, 43, 0.25);
}

[data-theme="dark"] .filter-btn.active {
  background: var(--accent-coral);
  color: #18392B;
  border-color: var(--accent-coral);
}

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

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
}

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

/* Image preview wrapper */
.image-preview-wrap {
  position: relative;
  height: 185px;
  width: 100%;
  overflow: hidden;
  background-color: var(--color-sage);
}

.project-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 24%;
  transition: transform 0.6s var(--ease-apple);
}

.project-card:hover .project-card-img {
  transform: scale(1.02);
}

.speako-preview-img {
  object-fit: contain;
  object-position: center;
  background: #f8f8f5;
}

.boots-logo-img {
  object-fit: contain;
  object-position: center;
  padding: 0.75rem;
  background: #fff;
}

.project-preview > a {
  display: block;
  width: 100%;
  height: 100%;
}

.preview-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(24, 57, 43, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #F7F5F0;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(233, 143, 143, 0.4);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.badge-icon-inline {
  width: 14px;
  height: 14px;
  color: var(--color-coral);
}

.project-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-category {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-coral);
  margin-bottom: 0.35rem;
  letter-spacing: 0.05em;
}

.project-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.65rem;
  line-height: 1.35;
}

.project-desc {
  font-size: 0.875rem;
  color: var(--text-body);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: auto;
  margin-bottom: 1.25rem;
}

.project-tags span {
  font-size: 0.725rem;
  background: var(--color-sage);
  color: var(--color-brand);
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  font-weight: 600;
}

[data-theme="dark"] .project-tags span {
  color: #E8ECE9;
}

.project-links {
  border-top: 1px solid var(--border-color);
  padding-top: 1rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-brand);
}

.text-link:hover {
  color: var(--color-coral);
  gap: 0.55rem;
}

[data-theme="dark"] .text-link {
  color: var(--accent-coral);
}

/* ==========================================================================
   Experience & Education Timeline (Soft Sage Section)
   ========================================================================== */
.experience-section {
  background-color: var(--color-sage);
}

.experience-timeline {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  padding-left: 2rem;
  border-left: 2.5px solid var(--color-brand);
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
}

[data-theme="dark"] .experience-timeline {
  border-left-color: var(--accent-coral);
}

.timeline-item {
  position: relative;
}

.timeline-dot {
  position: absolute;
  top: 6px;
  left: -2.52rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--color-coral);
  border: 3px solid var(--color-sage);
  box-shadow: 0 0 0 2px var(--color-brand);
}

.timeline-date {
  font-size: 0.825rem;
  font-weight: 700;
  color: var(--color-brand);
  margin-bottom: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

[data-theme="dark"] .timeline-date {
  color: var(--accent-coral);
}

.timeline-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.6rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.timeline-card:hover {
  border-color: var(--color-coral);
  transform: translateX(5px);
  box-shadow: var(--shadow-md);
}

.scholarship-card {
  border-left: 2px solid rgba(233, 143, 143, 0.4);
}

.timeline-card-header {
  margin-bottom: 0.75rem;
}

.timeline-card-header h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.2rem;
}

.org-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
}

.timeline-card p {
  font-size: 0.9rem;
  color: var(--text-body);
  line-height: 1.6;
}

/* Timeline Media Row for Photos */
.timeline-media-row {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.timeline-thumb {
  width: 120px;
  height: 80px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.timeline-thumb:hover {
  transform: scale(1.08);
  border-color: var(--color-coral);
  box-shadow: var(--shadow-md);
}

/* ==========================================================================
   Skills, Languages & Honors
   ========================================================================== */
.skills-section {
  background-color: var(--bg-primary);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 3.5rem;
}

.skill-category-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.skill-category-card:hover {
  border-color: var(--color-coral);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.skill-cat-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.skill-cat-header svg {
  width: 24px;
  height: 24px;
  color: var(--color-coral);
}

.skill-cat-header h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
}

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

.skill-pill {
  font-size: 0.825rem;
  font-weight: 600;
  background: var(--color-sage);
  border: 1px solid var(--border-color);
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-full);
  color: var(--color-brand);
  transition: var(--transition-smooth);
}

.skill-pill:hover {
  border-color: var(--color-coral);
  color: #18392B;
  background: var(--color-coral);
  transform: translateY(-2px);
}

[data-theme="dark"] .skill-pill {
  color: #E8ECE9;
}

/* Awards Banner (With Real Event Images) */
.awards-banner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.award-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.15rem;
  display: flex;
  align-items: center;
  gap: 0.95rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.award-item:hover {
  border-color: var(--color-coral);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.award-thumb {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  border: 1px solid var(--border-color);
}

.award-item h4 {
  font-size: 0.925rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.2rem;
}

.award-item p {
  font-size: 0.775rem;
  color: var(--text-muted);
  line-height: 1.35;
}

/* ==========================================================================
   About Section (With Real Portrait Photo Frame)
   ========================================================================== */
.about-section {
  background-color: var(--color-sage);
}

.about-container {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: 4.5rem;
}

.about-card-frame {
  position: relative;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 2.75rem 2.25rem;
  border: 1px solid var(--border-color);
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.about-photo-wrapper {
  margin: 0 auto 1.5rem;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  padding: 4px;
  background: linear-gradient(135deg, var(--color-brand) 0%, var(--color-coral) 100%);
  box-shadow: 0 4px 16px var(--color-coral-glow);
  overflow: hidden;
}

.about-feature-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: 50%;
  display: block;
}

.about-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.825rem;
  font-weight: 700;
  color: var(--color-brand);
  background: var(--color-sage);
  border: 1px solid var(--border-color);
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.5rem;
}

[data-theme="dark"] .about-card-badge {
  color: var(--accent-coral);
}

.about-quote {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.6;
  color: var(--color-brand);
  font-style: italic;
  margin-bottom: 1rem;
}

[data-theme="dark"] .about-quote {
  color: #F7F5F0;
}

.about-author-tag {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-coral);
}

.about-bio {
  color: var(--text-body);
  font-size: 1.05rem;
  line-height: 1.75;
  margin-bottom: 1.25rem;
}

.about-highlights {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.highlight-point {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-main);
}

.highlight-point svg {
  width: 20px;
  height: 20px;
  color: var(--color-coral);
  flex-shrink: 0;
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact-section {
  background-color: var(--bg-primary);
}

.contact-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 3.5rem;
  box-shadow: var(--shadow-lg);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3.5rem;
  margin-top: 2.5rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 1.15rem;
}

.info-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--color-sage);
  color: var(--color-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

[data-theme="dark"] .info-icon {
  background: var(--color-coral-light);
  color: var(--accent-coral);
}

.info-item h4 {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.2rem;
}

.info-item a, .info-item p {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-brand);
}

.info-item a:hover {
  color: var(--color-coral);
}

[data-theme="dark"] .info-item a,
[data-theme="dark"] .info-item p {
  color: #F7F5F0;
}

.social-links {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.social-btn {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  background: var(--color-sage);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-brand);
  transition: var(--transition-smooth);
}

.social-btn:hover {
  background: var(--color-coral);
  color: #18392B;
  border-color: var(--color-coral);
  transform: translateY(-2.5px);
}

/* Form Styles */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-color);
  background: var(--bg-primary);
  color: var(--text-body);
  font-size: 0.925rem;
  transition: var(--transition-smooth);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--color-brand);
  box-shadow: 0 0 0 3px rgba(24, 57, 43, 0.12);
  background: var(--bg-card);
}

.submit-btn {
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.95rem;
}

/* ==========================================================================
   Footer (Deep Forest Green #18392B)
   ========================================================================== */
.site-footer {
  border-top: 1px solid rgba(220, 229, 221, 0.2);
  padding: 3rem 0;
  margin-top: auto;
  background-color: var(--footer-bg);
  color: var(--footer-text);
}

.footer-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.875rem;
  color: #DCE5DD;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.footer-logo-icon {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(247, 245, 240, 0.08);
  border: 1px solid rgba(233, 143, 143, 0.3);
  padding: 4px;
  flex-shrink: 0;
  transition: var(--transition-smooth);
}

.footer-brand:hover .footer-logo-icon {
  background: var(--color-coral);
  border-color: var(--color-coral);
  transform: translateY(-1.5px) scale(1.05);
}

.footer-brand:hover .brand-logo-img {
  filter: brightness(0);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.footer-links a {
  color: #DCE5DD;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: var(--transition-smooth);
}

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

/* ==========================================================================
   Responsive Breakpoints: Optimized for iPad (Tablets) & Mobile Phones
   ========================================================================== */

/* 1. Touch Optimization for Mobile Phones & iPads */
@media (hover: none) and (pointer: coarse) {
  /* Disable 3D tilt jitter on touch drags */
  .tilt-card {
    transform: none !important;
  }
  
  /* Tap state feedback */
  .btn:active,
  .step-btn:active,
  .filter-btn:active,
  .social-btn:active {
    transform: scale(0.97) !important;
    opacity: 0.9;
  }

  /* Safe interactive touch target sizes */
  .icon-btn,
  .social-btn,
  .filter-btn,
  .step-btn {
    min-height: 44px;
  }
}

/* 2. iPad Landscape & Smaller Laptops (1024px to 1199px) */
@media (max-width: 1199px) {
  .hero-container {
    gap: 2.5rem;
  }

  .sticky-container {
    gap: 2.5rem;
  }

  .projects-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.35rem;
  }
}

/* 3. iPad Portrait & Medium Tablets (769px to 991px) */
@media (max-width: 991px) {
  .site-header {
    height: 70px;
  }

  .nav-container {
    height: 70px;
  }

  /* Clean Animated Slide-Down Navigation Drawer for iPad */
  .nav-menu {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(24, 57, 43, 0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(233, 143, 143, 0.25);
    padding: 1.5rem 1.75rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.4s var(--ease-apple), opacity 0.35s ease;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
    max-height: calc(100dvh - 70px);
    overflow-y: auto;
    z-index: 99;
  }

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

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }

  .nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1.15rem;
    border-radius: var(--radius-md);
    font-size: 1.05rem;
    font-weight: 600;
    color: #F7F5F0;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: var(--transition-smooth);
  }

  .nav-link:hover,
  .nav-link:active {
    background: var(--color-coral);
    color: #18392B;
    border-color: var(--color-coral);
  }

  .nav-mobile-footer {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin-top: 0.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }

  .nav-mobile-cta {
    width: 100%;
    text-align: center;
    padding: 0.85rem;
  }

  .nav-mobile-ig {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.925rem;
    color: var(--color-coral);
    font-weight: 600;
    padding: 0.4rem;
  }

  .nav-cta {
    display: none;
  }

  .mobile-only {
    display: inline-flex;
  }

  /* Hero Section on iPad Portrait */
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2.75rem;
  }

  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-title {
    font-size: 2.65rem;
    max-width: 680px;
  }

  .hero-cta-group {
    justify-content: center;
  }

  .hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    max-width: 580px;
    width: 100%;
    justify-content: center;
    text-align: center;
    padding-top: 1.75rem;
  }

  .stat-number {
    justify-content: center;
  }

  .profile-card {
    max-width: 440px;
    margin: 0 auto;
  }

  /* Sticky Scroll on iPad */
  .sticky-section-track {
    min-height: 290vh;
  }

  .sticky-viewport {
    height: calc(100dvh - 70px);
    top: 70px;
    padding: 2rem 0;
  }

  .sticky-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

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

  .sticky-cards-stage {
    height: 490px;
  }

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

  .about-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

/* 4. Mobile Phones (768px and below) */
@media (max-width: 768px) {
  /* Prevent horizontal stretch & add safe container margin */
  .container {
    width: 92%;
    max-width: 100%;
  }

  .section {
    padding: 4.5rem 0;
  }

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

  .section-title {
    font-size: clamp(1.75rem, 5.5vw, 2.15rem);
    margin-bottom: 0.65rem;
  }

  .section-subtitle {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  /* Form inputs 16px to prevent iOS Safari auto-zoom */
  .form-group input,
  .form-group select,
  .form-group textarea {
    font-size: 16px !important;
  }

  /* Hero Section on Mobile */
  .hero-section {
    padding: 3.5rem 0 2.75rem;
  }

  .hero-container {
    gap: 2.25rem;
  }

  .hero-title {
    font-size: clamp(1.95rem, 6.8vw, 2.45rem);
    line-height: 1.2;
    margin-bottom: 1rem;
  }

  .hero-description {
    font-size: 0.98rem;
    line-height: 1.65;
    margin-bottom: 1.75rem;
  }

  .hero-cta-group {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 380px;
    margin: 0 auto 2rem;
    gap: 0.75rem;
  }

  .hero-cta-group .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.65rem;
    padding: 1.25rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    width: 100%;
  }

  .stat-number {
    font-size: 1.55rem;
    justify-content: center;
  }

  .stat-label {
    font-size: 0.72rem;
    line-height: 1.35;
    text-align: center;
  }

  .profile-card {
    padding: 1.85rem 1.35rem;
    max-width: 340px;
    margin: 0 auto;
  }

  .profile-avatar-wrap {
    width: 110px;
    height: 110px;
    margin-bottom: 1rem;
  }

  /* Infinite Creator Marquee */
  .marquee-item {
    font-size: 0.76rem;
    gap: 1rem;
  }

  /* Apple-Style Sticky Section on Mobile */
  .sticky-section-track {
    min-height: 270vh;
  }

  .sticky-viewport {
    height: calc(100dvh - 70px);
    top: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 0;
  }

  .sticky-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 0.85rem;
    align-items: center;
    justify-content: center;
  }

  .sticky-sidebar {
    width: 100%;
    text-align: center;
    align-items: center;
  }

  .sticky-sidebar .section-tag {
    margin-bottom: 0.35rem;
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
  }

  .sticky-title {
    font-size: 1.45rem;
    line-height: 1.25;
    margin-bottom: 0.35rem;
  }

  /* Hide lengthy description on mobile viewport to save card stage space */
  .sticky-desc {
    display: none;
  }

  .scroll-instruction {
    display: none;
  }

  /* Compact Horizontal Capsule Step Pills */
  .sticky-step-nav {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    width: 100%;
  }

  .step-btn {
    padding: 0.35rem 0.75rem;
    background: rgba(24, 57, 43, 0.08);
    border-radius: var(--radius-full);
    gap: 0.4rem;
    opacity: 0.7;
    transition: var(--transition-smooth);
    min-height: 36px;
  }

  .step-btn.active {
    background: var(--color-brand);
    color: #F7F5F0;
    opacity: 1;
    box-shadow: 0 2px 8px rgba(24, 57, 43, 0.25);
  }

  [data-theme="dark"] .step-btn {
    background: rgba(255, 255, 255, 0.08);
  }

  [data-theme="dark"] .step-btn.active {
    background: var(--accent-coral);
    color: #18392B;
  }

  .step-num {
    font-size: 0.78rem;
    min-width: auto;
  }

  .step-label {
    font-size: 0.78rem;
  }

  .step-bar-wrap {
    display: none;
  }

  /* Responsive Stage & Stacked Card on Mobile */
  .sticky-cards-stage {
    height: clamp(380px, 54vh, 440px);
    width: 100%;
    position: relative;
  }

  .stacked-core-card {
    padding: 1.35rem 1.25rem;
    border-radius: var(--radius-md);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .card-top-row {
    margin-bottom: 0.75rem;
  }

  .card-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
  }

  .pillar-chip {
    font-size: 0.7rem;
    padding: 0.25rem 0.6rem;
  }

  .pillar-heading {
    font-size: 1.25rem;
    margin-bottom: 0.35rem;
  }

  .pillar-summary {
    font-size: 0.825rem;
    line-height: 1.5;
    margin-bottom: 0.85rem;
  }

  .pillar-feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
    border-top: 1px solid var(--border-color);
    padding-top: 0.75rem;
    margin-top: auto;
  }

  .feature-tile {
    gap: 0.5rem;
  }

  .feature-tile svg {
    width: 15px;
    height: 15px;
    margin-top: 1px;
  }

  .feature-tile h4 {
    font-size: 0.8rem;
    margin-bottom: 0.15rem;
  }

  .feature-tile p {
    font-size: 0.72rem;
    line-height: 1.35;
  }

  /* Projects Section on Mobile */
  .filter-controls {
    gap: 0.45rem;
    margin-bottom: 2rem;
  }

  .filter-btn {
    padding: 0.45rem 0.85rem;
    font-size: 0.8rem;
    border-radius: var(--radius-full);
  }

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

  .image-preview-wrap {
    height: 190px;
  }

  .project-body {
    padding: 1.25rem;
  }

  .project-title {
    font-size: 1.15rem;
  }

  .project-desc {
    font-size: 0.875rem;
  }

  /* Experience Timeline on Mobile */
  .experience-timeline {
    padding-left: 1.25rem;
    border-left-width: 2px;
    gap: 1.75rem;
  }

  .timeline-dot {
    left: -1.78rem;
    width: 12px;
    height: 12px;
    top: 5px;
  }

  .timeline-card {
    padding: 1.25rem 1.15rem;
  }

  .timeline-card-header h3 {
    font-size: 1.05rem;
  }

  .timeline-media-row {
    gap: 0.5rem;
  }

  .timeline-thumb {
    width: 105px;
    height: 75px;
  }

  /* Skills & Awards on Mobile */
  .skills-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin-bottom: 2.5rem;
  }

  .skill-category-card {
    padding: 1.5rem 1.25rem;
  }

  .awards-banner {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .award-item {
    padding: 1rem 1.15rem;
  }

  .award-thumb {
    width: 48px;
    height: 48px;
  }

  /* About Section on Mobile */
  .about-container {
    gap: 2rem;
  }

  .about-card-frame {
    padding: 1.85rem 1.25rem;
  }

  .about-photo-wrapper {
    width: 110px;
    height: 110px;
    margin-bottom: 1rem;
  }

  .about-quote {
    font-size: 1.1rem;
  }

  .about-bio {
    font-size: 0.95rem;
  }

  /* Contact Section on Mobile */
  .contact-box {
    padding: 1.85rem 1.25rem;
  }

  .contact-grid {
    gap: 2rem;
    margin-top: 1.5rem;
  }

  .info-item {
    gap: 0.85rem;
  }

  .info-icon {
    width: 38px;
    height: 38px;
  }

  /* Footer on Mobile */
  .site-footer {
    padding: 2.25rem 0;
    padding-bottom: calc(2.25rem + env(safe-area-inset-bottom, 0px));
  }

  .footer-container {
    flex-direction: column;
    text-align: center;
    gap: 1.25rem;
    align-items: center;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.25rem;
  }
}

/* 5. Extra Compact Mobile Phones (380px and below, e.g. iPhone SE) */
@media (max-width: 400px) {
  .hero-title {
    font-size: 1.85rem;
  }

  .hero-stats {
    gap: 0.4rem;
  }

  .stat-number {
    font-size: 1.4rem;
  }

  .stat-label {
    font-size: 0.68rem;
  }

  .pillar-feature-grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .timeline-thumb {
    width: 88px;
    height: 62px;
  }
}
