/* ==========================================================================
   CSS DESIGN TOKENS & SYSTEM
   ========================================================================== */
:root {
  /* Palette (Unified #1E3A8A Navy across all surfaces) */
  --bg-canvas: #F9F8F3;           /* Warm sketchbook parchment cream */
  --bg-primary: #1E3A8A;          /* Single Unified Royal Cobalt Navy for cards & nav */
  --bg-card: #FFFFFF;             /* Crisp white island containers */
  --bg-card-subtle: #F8FAFC;
  
  /* Typography Colors */
  --text-white: #FFFFFF;
  --text-muted: #E0E7FF;          /* Soft light indigo for subtitles */
  --text-dark: #0F172A;           /* Deep text inside white cards */
  --text-dark-muted: #475569;
  
  /* Accent Colors */
  --accent-yellow: #FFD23F;       /* Warm yellow highlight */
  --accent-yellow-dark: #E5B800;
  --accent-orange: #FF5A36;
  --accent-purple: #8B5CF6;
  --accent-blue: #38BDF8;
  --accent-green: #10B981;
  
  /* Linework & Navy-Tinted Soft Elevation Shadows */
  --doodle-stroke: #FFFFFF;
  --doodle-width: 2.5px;
  --shadow-navy-card: 0 24px 60px rgba(30, 58, 138, 0.22), 0 6px 18px rgba(30, 58, 138, 0.12);
  --shadow-navy-card-hover: 0 30px 70px rgba(30, 58, 138, 0.28), 0 8px 24px rgba(30, 58, 138, 0.16);
  --shadow-navy-nav: 0 16px 40px rgba(30, 58, 138, 0.22);
  --shadow-sticker: 0 10px 24px rgba(15, 23, 42, 0.18);
  
  /* Typography Stacks (Crisp Modern Geometric Sans Headings + Clean Body + Playful Doodles) */
  --font-display: 'Plus Jakarta Sans', 'Syne', -apple-system, BlinkMacSystemFont, 'Inter', sans-serif;
  --font-body: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-hand: 'Patrick Hand', 'Caveat', cursive;
  
  /* Animation Curves */
  --ease-snappy: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

/* Tactile Dot-Grid Background Texture on #F9F8F3 Cream Paper */
body {
  background-color: var(--bg-canvas);
  background-image: 
    radial-gradient(circle at 50% 8%, rgba(255, 210, 63, 0.09) 0%, transparent 45%),
    radial-gradient(circle at 80% 60%, rgba(30, 58, 138, 0.04) 0%, transparent 40%),
    radial-gradient(rgba(30, 58, 138, 0.055) 1.2px, transparent 1.2px);
  background-size: 100% 100%, 100% 100%, 28px 28px;
  background-position: 0 0, 0 0, 14px 14px;
  font-family: var(--font-body);
  color: var(--text-white);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   FLOATING ROUNDED INSET NAVBAR
   ========================================================================== */
.sticky-nav-wrapper {
  position: sticky;
  top: 0;
  width: 100%;
  padding: 14px 20px 8px;
  z-index: 500;
  pointer-events: none;
}

.sticky-nav {
  max-width: 1180px;
  margin: 0 auto;
  background: rgba(30, 58, 138, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.22);
  box-shadow: var(--shadow-navy-nav);
  padding: 8px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  pointer-events: auto;
  transition: transform 0.25s var(--ease-snappy), box-shadow 0.25s ease;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: white;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-brand-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent-yellow);
  letter-spacing: -0.02em;
  transform: rotate(-3deg);
  display: inline-block;
  text-shadow: 1px 2px 0 rgba(0,0,0,0.3);
}

.nav-brand-name {
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 800;
  color: white;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-item {
  position: relative;
}

.nav-link {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-white);
  text-decoration: none;
  padding: 4px 2px 6px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-item.active .nav-link {
  color: var(--accent-yellow);
}

/* Hand-Drawn Squiggle Underline */
.nav-squiggle {
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 8px;
  stroke: var(--accent-yellow);
  stroke-width: 2.5px;
  fill: none;
  stroke-linecap: round;
  opacity: 0;
  transform: translateY(2px) scaleX(0.7);
  transition: opacity 0.25s ease, transform 0.25s var(--ease-snappy);
  pointer-events: none;
}

.nav-link:hover .nav-squiggle,
.nav-item.active .nav-squiggle {
  opacity: 1;
  transform: translateY(0) scaleX(1);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.nav-resume-btn {
  background: #FFFFFF;
  color: #1E3A8A;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  padding: 6px 18px;
  height: 38px;
  border-radius: 999px;
  text-decoration: none;
  border: 2px solid #FFFFFF;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.16);
  transition: transform 0.2s var(--ease-snappy), background 0.2s ease, box-shadow 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.nav-resume-btn:hover {
  background: #F1F5F9;
  transform: scale(1.05) translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
}

.nav-cta-btn {
  background: var(--accent-yellow);
  color: #0F172A;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  padding: 6px 20px;
  height: 38px;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  border: 2px solid #FFFFFF;
  transition: transform 0.2s var(--ease-snappy), background 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.nav-cta-btn:hover {
  background: #FFFFFF;
  transform: scale(1.05) translateY(-2px);
}

/* ==========================================================================
   PAGE CONTAINER & FLOATING SECTION CARDS
   ========================================================================== */
.portfolio-container {
  width: 100%;
  max-width: 1180px;
  padding: 32px 24px 100px;
  display: flex;
  flex-direction: column;
  gap: 56px;
  position: relative;
}

/* Elevated Section Cards */
.section-card {
  position: relative;
  background-color: var(--bg-primary);
  border-radius: 32px;
  padding: 80px 64px;
  box-shadow: var(--shadow-navy-card);
  border: 2px solid rgba(255, 255, 255, 0.22);
  scroll-margin-top: 110px;
  height: auto;
  min-height: auto;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s var(--ease-smooth), box-shadow 0.3s ease;
}

.section-card:hover {
  box-shadow: var(--shadow-navy-card-hover);
}

/* Headings & Subtitles (Crisp Geometric Sans) */
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 4.4vw, 3.6rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--text-white);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.section-subtitle {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-yellow);
  margin-bottom: 26px;
}

.body-copy {
  font-family: var(--font-body);
  font-size: 1.15rem;
  line-height: 1.7;
  color: #F1F5F9;
  letter-spacing: -0.005em;
  font-weight: 400;
}

.body-copy p + p {
  margin-top: 16px;
}

.body-copy strong {
  color: #FFFFFF;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(255, 210, 63, 0.65);
  text-underline-offset: 4px;
}

/* Hand-lettered Doodle Micro-Notes */
.doodle-note {
  font-family: var(--font-hand);
  font-size: 1.55rem;
  line-height: 1.15;
  color: var(--text-white);
  position: absolute;
  pointer-events: none;
  z-index: 5;
  text-shadow: 1px 2px 3px rgba(0,0,0,0.3);
}

.doodle-arrow-svg {
  position: absolute;
  stroke: var(--doodle-stroke);
  stroke-width: var(--doodle-width);
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
  filter: drop-shadow(1px 2px 2px rgba(0,0,0,0.25));
}

/* Scroll-Drawn SVG System */
.draw-path {
  will-change: stroke-dashoffset;
}

.doodle-badge-loop {
  position: absolute;
  top: -8px;
  left: -12px;
  width: calc(100% + 24px);
  height: calc(100% + 16px);
  pointer-events: none;
  overflow: visible;
  z-index: 2;
}

/* ==========================================================================
   SECTION 1: HERO / COVER (Source Anchor Slot)
   ========================================================================== */
.hero-container {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 40px;
  position: relative;
  padding: 10px 0 20px;
}

.hero-title-group {
  position: relative;
  z-index: 2;
  margin-top: 48px;
}

.big-name-title {
  font-family: var(--font-display);
  font-size: clamp(3.8rem, 7.5vw, 5.8rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
  color: var(--text-white);
  text-transform: uppercase;
}

.hero-tagline {
  font-family: var(--font-body);
  font-size: 1.25rem;
  line-height: 1.6;
  color: #E0E7FF;
  max-width: 520px;
  margin-top: 18px;
  font-weight: 400;
}

/* Hero Quick Stat Summary Strip */
.hero-stats-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.hero-stat-pill {
  background: rgba(255, 255, 255, 0.12);
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  padding: 7px 18px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.05rem;
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.hero-stat-pill .stat-highlight {
  color: var(--accent-yellow);
  font-weight: 800;
  font-size: 1.25rem;
}

/* Hero Avatar Anchor Slot (Container A) */
.hero-character-box {
  width: 100%;
  max-width: 360px;
  aspect-ratio: 1 / 1;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  margin: 10px auto 0;
}

/* Shared Flying Avatar Element */
.flying-avatar-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  will-change: transform;
  pointer-events: none;
}

.flying-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.38);
  border: 3px solid rgba(255, 255, 255, 0.3);
  background: #1E3A8A;
  pointer-events: auto;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

/* ==========================================================================
   SECTION 2: ABOUT ME (Destination Anchor Slot)
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 56px;
  align-items: start;
}

.profile-card {
  background: var(--bg-card);
  padding: 28px 24px;
  border-radius: 22px;
  box-shadow: var(--shadow-sticker);
  text-align: center;
  transform: rotate(-2deg);
  transition: transform 0.3s var(--ease-snappy);
}

.profile-card:hover {
  transform: rotate(0deg) scale(1.02);
}

/* About Avatar Anchor Slot (Container B) */
.profile-avatar-box {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 18px;
  background: rgba(30, 58, 138, 0.1);
  overflow: hidden;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px dashed rgba(30, 58, 138, 0.3);
  position: relative;
}

.profile-avatar-placeholder {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: #64748B;
  opacity: 0;
}

.profile-name {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--text-dark);
}

.profile-sub {
  font-family: var(--font-body);
  font-size: 1.15rem;
  color: var(--text-dark-muted);
  margin-top: 4px;
}

/* Enhanced Education Typography & Layout */
.edu-chip {
  margin-top: 18px;
  padding: 18px 20px;
  background: #F8FAFC;
  border-radius: 18px;
  border: 1.5px solid #E2E8F0;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.edu-degree {
  font-family: var(--font-display);
  font-size: 1.45rem;
  color: #0F172A;
  font-weight: 700;
  line-height: 1.2;
}

.edu-sub {
  font-family: var(--font-sans);
  font-size: 0.92rem;
  color: #475569;
  font-weight: 600;
}

.edu-metric {
  font-family: var(--font-body);
  font-size: 1.25rem;
  color: #1E293B;
}

.edu-certs {
  font-family: var(--font-sans);
  font-size: 0.94rem;
  font-weight: 700;
  color: #1E293B;
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1.5px dashed #CBD5E1;
  line-height: 1.45;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.edu-certs-tag {
  background: #E2E8F0;
  color: #0F172A;
  font-size: 0.76rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 6px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.cert-link {
  color: #1E3A8A;
  text-decoration: underline;
  text-decoration-color: rgba(30, 58, 138, 0.4);
  text-underline-offset: 3px;
  font-weight: 700;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  cursor: pointer;
}

.cert-link:hover {
  color: #2563EB;
  text-decoration-color: #2563EB;
  background-color: rgba(30, 58, 138, 0.06);
  border-radius: 4px;
}

.cert-link-icon {
  display: inline-block;
  opacity: 0.65;
  transition: opacity 0.2s ease, transform 0.2s ease;
  vertical-align: middle;
  flex-shrink: 0;
}

.cert-link:hover .cert-link-icon {
  opacity: 1;
  transform: translate(1px, -1px);
}

.cert-sep {
  color: #64748B;
  margin: 0 3px;
  font-weight: 400;
  user-select: none;
}

/* ==========================================================================
   SECTION 3: REBUILT SKILLS SECTION (Unified List with Real Brand Logos)
   ========================================================================== */
.skills-unified-cluster {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  margin-top: 12px;
}

.tech-chip {
  background: var(--bg-card);
  color: var(--text-dark);
  border-radius: 18px;
  padding: 12px 24px;
  font-family: var(--font-body);
  font-size: 1.22rem;
  font-weight: bold;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.16);
  display: inline-flex;
  align-items: center;
  gap: 14px;
  cursor: grab;
  user-select: none;
  will-change: transform;
  transform-origin: center center;
}

.tech-chip:active {
  cursor: grabbing;
}

.tech-chip-icon-box {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: #F1F5F9;
  padding: 5px;
}

.tech-chip-icon-box.dark {
  background: #181717;
}

.tech-chip-icon-box svg {
  width: 100%;
  height: 100%;
}

/* Dual icon container for Git & GitHub */
.dual-icon-box {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.dual-icon-box .mini-icon {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  background: #F1F5F9;
}

/* Plain Text-Only Chip for Google Antigravity (No Fabricated Logo) */
.tech-chip.text-only-chip {
  padding: 14px 26px;
  background: var(--bg-card);
  border: 2px dashed rgba(30, 58, 138, 0.3);
  color: #0F172A;
}

/* ==========================================================================
   TRANSITION POSTER BANNER
   ========================================================================== */
.poster-slide-box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  position: relative;
  padding: 16px 0;
}

.poster-giant-text {
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 6.2vw, 5.6rem);
  line-height: 0.95;
  text-transform: uppercase;
  margin-bottom: 28px;
  max-width: 900px;
}

.giant-drawn-arrow {
  width: 100%;
  max-width: 640px;
  height: 80px;
}

/* ==========================================================================
   SECTIONS 4 & 5: CLIENT WORK
   ========================================================================== */
.project-case-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.95fr;
  gap: 56px;
  align-items: start;
}

.project-details {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 8px;
}

.feature-list li {
  font-family: var(--font-body);
  font-size: 1.25rem;
  line-height: 1.5;
  color: var(--text-muted);
  position: relative;
  padding-left: 24px;
}

.feature-list li::before {
  content: "›";
  position: absolute;
  left: 0;
  color: var(--accent-yellow);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.6rem;
  line-height: 1;
}

.feature-list strong {
  color: white;
  font-family: var(--font-display);
  font-size: 1.35rem;
  text-decoration: none;
}

.project-cards-island {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  position: relative;
  margin-top: 8px;
}

.sample-card {
  background: var(--bg-card);
  border-radius: 20px;
  padding: 14px;
  box-shadow: var(--shadow-sticker);
  transition: all 0.3s var(--ease-snappy);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.sample-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
}

/* Browser Window Mockup Frame */
.browser-frame {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  background: #0F172A;
  border: 1px solid #334155;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.browser-header {
  height: 24px;
  background: #1E293B;
  border-bottom: 1px solid #334155;
  display: flex;
  align-items: center;
  padding: 0 10px;
  gap: 8px;
}

.window-dots {
  display: flex;
  gap: 5px;
  align-items: center;
}

.window-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}
.window-dot.red { background: #EF4444; }
.window-dot.yellow { background: #F59E0B; }
.window-dot.green { background: #10B981; }

.browser-url-pill {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  color: #94A3B8;
  background: rgba(15, 23, 42, 0.6);
  padding: 2px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  max-width: 140px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.browser-screen {
  flex: 1;
  width: 100%;
  background: #090D16;
  position: relative;
  overflow: hidden;
  display: block;
  cursor: grab;
  user-select: none;
}

.browser-screen.is-dragging {
  cursor: grabbing;
}

.browser-screen img {
  width: 100%;
  height: auto;
  min-height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
  transition: transform 0.12s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: transform;
  pointer-events: none;
}

/* Screen Scroll-Preview Micro-Hint Badge */
.screen-scroll-hint {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(4px);
  color: #F8FAFC;
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  pointer-events: none;
  opacity: 0.9;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.browser-screen:hover .screen-scroll-hint {
  opacity: 0;
  transform: translateY(4px);
}

/* Phone Mockup Stage (Dedicated Portrait Device Frame with Thin Bezel) */
.phone-stage {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  background: #0B1120;
  border: 1px solid #1E293B;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  padding: 6px;
}

.phone-mockup-frame {
  height: 94%;
  aspect-ratio: 9 / 18.5;
  background: #020617;
  border: 2.5px solid #475569;
  border-radius: 18px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 3px;
}

.phone-camera-hole {
  width: 22px;
  height: 4px;
  background: #334155;
  border-radius: 999px;
  margin-top: 2px;
  margin-bottom: 3px;
  flex-shrink: 0;
}

.phone-screen {
  flex: 1;
  width: 100%;
  border-radius: 12px;
  background: #090D16;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.phone-home-indicator {
  width: 28px;
  height: 3px;
  background: #334155;
  border-radius: 999px;
  margin-top: 3px;
  margin-bottom: 1px;
  flex-shrink: 0;
}

/* Screenshot Placeholder Wireframe */
.screenshot-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.3) 0%, rgba(15, 23, 42, 0.8) 100%);
  color: #94A3B8;
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  padding: 12px;
  text-align: center;
}

.screenshot-placeholder-sub {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  color: #64748B;
  letter-spacing: 0.02em;
}

.sample-preview {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #0A1128;
  color: white;
  position: relative;
  padding: 18px;
  text-align: center;
}

.sample-card-tag {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--text-dark);
  padding: 2px 4px 0;
  text-align: center;
  letter-spacing: 0.02em;
}

/* SaaS Demo Videos Section (Option B) */
.demo-section-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.production-tools-box {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.production-tools-label {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--accent-yellow);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.production-tools-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

/* Individual Project Showcase Cards & Highlights */
.project-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.project-title-group {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.project-links-cluster {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.project-action-link {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 999px;
  transition: transform 0.2s var(--ease-snappy), background 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  letter-spacing: 0.02em;
}

.project-action-link.live {
  background: var(--accent-yellow);
  color: #0F172A;
  border: 1.5px solid #FFFFFF;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.project-action-link.live:hover {
  background: #FFFFFF;
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.28);
}

.project-action-link.github {
  background: rgba(15, 23, 42, 0.75);
  color: #F8FAFC;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.project-action-link.github svg {
  flex-shrink: 0;
}

.project-action-link.github:hover {
  background: #0F172A;
  color: var(--accent-yellow);
  border-color: var(--accent-yellow);
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.28);
}

.category-badge {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 700;
  background: var(--accent-yellow);
  color: #0F172A;
  padding: 6px 16px;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
  letter-spacing: 0.02em;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.project-stat-highlight {
  font-family: var(--font-display);
  font-size: 1.38rem;
  color: var(--accent-yellow);
  font-weight: 700;
  margin-top: 16px;
  letter-spacing: 0.02em;
  text-shadow: 1px 2px 2px rgba(0, 0, 0, 0.25);
}

/* Sticker Badges */
.sticker-badge {
  position: absolute;
  background: var(--accent-yellow);
  color: #0F172A;
  font-family: var(--font-display);
  font-size: 1.45rem;
  padding: 6px 20px;
  border-radius: 999px;
  box-shadow: var(--shadow-sticker);
  border: 2px dashed #0F172A;
  transform: rotate(-6deg);
  z-index: 10;
  cursor: default;
  transition: transform 0.2s var(--ease-snappy);
}

.sticker-badge:hover {
  transform: rotate(0deg) scale(1.08);
}

/* ==========================================================================
   SECTION 6: PERSONAL PROJECTS
   ========================================================================== */
.personal-grid-wrapper {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-top: 24px;
}

.personal-card {
  background: var(--bg-card);
  color: var(--text-dark);
  border-radius: 20px;
  padding: 28px 24px;
  box-shadow: var(--shadow-sticker);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  transition: transform 0.25s var(--ease-snappy), box-shadow 0.25s ease;
  cursor: pointer;
}

.personal-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 36px rgba(0,0,0,0.25);
}

.personal-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
}

.personal-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--text-dark);
  line-height: 1;
}

.personal-tag {
  font-family: var(--font-sans);
  font-size: 0.76rem;
  font-weight: 700;
  background: #E0E7FF;
  color: #3730A3;
  padding: 4px 10px;
  border-radius: 999px;
}

.personal-desc {
  font-family: var(--font-body);
  font-size: 1.2rem;
  line-height: 1.5;
  color: #475569;
}

/* ==========================================================================
   SECTION 8: NATIVE ON-PAGE RESUME SECTION
   ========================================================================== */
.resume-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.15);
}

.resume-download-btn {
  background: var(--accent-yellow);
  color: #0F172A;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  padding: 10px 24px;
  border-radius: 999px;
  text-decoration: none;
  border: 2px solid #FFFFFF;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.2s var(--ease-snappy), background 0.2s ease, box-shadow 0.2s ease;
}

.resume-download-btn:hover {
  background: #FFFFFF;
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.32);
}

.resume-sections-container {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.resume-block {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.resume-block-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.resume-block-icon {
  font-size: 1.4rem;
}

.resume-block-title {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--accent-yellow);
  text-transform: uppercase;
}

.resume-entry-card {
  background: var(--bg-card);
  color: var(--text-dark);
  padding: 28px 32px;
  border-radius: 20px;
  box-shadow: var(--shadow-sticker);
  border: 1.5px solid rgba(255, 255, 255, 0.9);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.2s var(--ease-snappy);
}

.resume-entry-card:hover {
  transform: translateY(-2px);
}

.resume-entry-headline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.resume-entry-role {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: #0F172A;
  line-height: 1.2;
}

.resume-entry-org {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  color: #475569;
  margin-top: 3px;
}

.resume-entry-period {
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 700;
  background: #E2E8F0;
  color: #1E293B;
  padding: 4px 14px;
  border-radius: 999px;
  white-space: nowrap;
}

.resume-edu-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 4px;
}

.resume-meta-pill {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: #334155;
  background: #F1F5F9;
  padding: 4px 12px;
  border-radius: 8px;
  border: 1px solid #E2E8F0;
}

.resume-certs-row {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 700;
  color: #1E293B;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 10px;
  border-top: 1.5px dashed #CBD5E1;
}

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

.resume-skills-group {
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  padding: 20px 22px;
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.resume-group-label {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--accent-yellow);
  letter-spacing: 0.02em;
}

.resume-chips-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.resume-skill-tag {
  background: #FFFFFF;
  color: #0F172A;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.resume-entries-stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.resume-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 6px;
}

.resume-bullets li {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.6;
  color: #334155;
  position: relative;
  padding-left: 22px;
}

.resume-bullets li::before {
  content: "•";
  position: absolute;
  left: 6px;
  color: #1E3A8A;
  font-size: 1.3rem;
  line-height: 1;
  top: 0;
}

/* ==========================================================================
   SECTION 7: CONTACT SECTION
   ========================================================================== */
.contact-layout-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.contact-card-box {
  background: rgba(0, 0, 0, 0.25);
  border: 2px dashed rgba(255, 255, 255, 0.4);
  border-radius: 24px;
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-link-pill {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg-card);
  color: var(--text-dark);
  padding: 16px 22px;
  border-radius: 16px;
  font-family: var(--font-display);
  font-size: 1.4rem;
  text-decoration: none;
  transition: all 0.2s var(--ease-snappy);
}

.contact-link-pill:hover {
  background: var(--accent-yellow);
  transform: translateX(6px);
}

.contact-pill-icon {
  font-family: var(--font-sans);
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--bg-primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 800;
  flex-shrink: 0;
}

/* Floating Animations */
@keyframes floatSlight {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.animate-float {
  animation: floatSlight 4s ease-in-out infinite;
}

/* Footer Note on Cream Canvas */
.footer-note {
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: #475569;
  font-weight: 600;
  margin-top: 10px;
}

/* ======================================================================
   RESPONSIVE DESIGN — COMPREHENSIVE MULTI-BREAKPOINT SYSTEM
   ====================================================================== */

/* ------- BREAKPOINT 1: Large Tablet / Small Desktop (≤1100px) ------- */
@media (max-width: 1100px) {
  .sticky-nav {
    max-width: 960px;
    padding: 8px 16px;
    gap: 12px;
  }
  .nav-links {
    gap: 14px;
  }
  .nav-link {
    font-size: 0.95rem;
  }
  .nav-resume-btn,
  .nav-cta-btn {
    font-size: 0.95rem;
    padding: 5px 14px;
    height: 36px;
  }
  .portfolio-container {
    max-width: 960px;
    padding: 28px 20px 80px;
  }
  .section-card {
    padding: 64px 48px;
  }
  .hero-container {
    gap: 32px;
  }
  .about-grid {
    grid-template-columns: 280px 1fr;
    gap: 40px;
  }
  .project-case-grid {
    gap: 40px;
  }
}

/* ------- BREAKPOINT 2: Tablet (≤900px) ------- */
@media (max-width: 900px) {
  .sticky-nav-wrapper {
    padding: 10px 12px 4px;
  }
  .sticky-nav {
    padding: 10px 18px;
    border-radius: 20px;
  }
  .nav-links {
    display: none;
  }
  .nav-brand-name {
    display: none;
  }
  .nav-brand-logo {
    font-size: 1.6rem;
  }
  .portfolio-container {
    padding: 24px 16px 80px;
    gap: 40px;
  }
  .section-card {
    padding: 48px 28px;
    border-radius: 26px;
  }
  .hero-container,
  .about-grid,
  .project-case-grid,
  .contact-layout-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .hero-title-group {
    margin-top: 56px;
  }
  .hero-character-box {
    max-width: 260px;
    order: -1;
  }
  .about-grid {
    justify-items: center;
  }
  .profile-card {
    max-width: 360px;
    width: 100%;
    transform: rotate(0deg);
  }
  .skills-unified-cluster {
    gap: 12px;
  }
  .project-cards-island {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .personal-grid-wrapper {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .sticker-badge {
    font-size: 1.15rem;
    padding: 5px 14px;
    top: 16px !important;
    right: 20px !important;
  }
  .doodle-note {
    font-size: 1.3rem;
  }
  /* Resume Section */
  .resume-top-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .resume-entry-card {
    padding: 22px 20px;
  }
  .resume-entry-role {
    font-size: 1.25rem;
  }
  .resume-entry-headline {
    flex-direction: column;
    gap: 10px;
  }
  /* Contact */
  .contact-card-box {
    padding: 28px 20px;
  }
  .contact-link-pill {
    padding: 14px 18px;
    font-size: 1.15rem;
  }
  .poster-giant-text {
    font-size: clamp(2.6rem, 5vw, 4rem);
  }
  .giant-drawn-arrow {
    height: 60px;
  }
  .feature-list li {
    font-size: 1.1rem;
  }
  .feature-list strong {
    font-size: 1.15rem;
  }
}

/* ------- BREAKPOINT 3: Mobile (≤768px) ------- */
@media (max-width: 768px) {
  .sticky-nav {
    padding: 8px 14px;
    gap: 8px;
  }
  .nav-resume-btn span {
    display: none;
  }
  .nav-resume-btn {
    padding: 6px 10px;
    height: 34px;
    min-width: 34px;
    justify-content: center;
  }
  .nav-cta-btn {
    font-size: 0.9rem;
    padding: 5px 14px;
    height: 34px;
  }
  .portfolio-container {
    padding: 20px 12px 60px;
    gap: 32px;
  }
  .section-card {
    padding: 36px 20px;
    border-radius: 22px;
    scroll-margin-top: 80px;
  }
  .section-title {
    font-size: clamp(1.8rem, 5vw, 2.6rem);
  }
  .section-subtitle {
    font-size: 0.88rem;
    letter-spacing: 0.06em;
    margin-bottom: 18px;
  }
  .body-copy {
    font-size: 1.05rem;
    line-height: 1.65;
  }
  .big-name-title {
    font-size: clamp(2.8rem, 10vw, 4.2rem);
  }
  .hero-tagline {
    font-size: 1.1rem;
    margin-top: 14px;
  }
  .hero-stats-strip {
    gap: 8px;
    margin-top: 18px;
  }
  .hero-stat-pill {
    font-size: 0.9rem;
    padding: 5px 12px;
  }
  .hero-stat-pill .stat-highlight {
    font-size: 1.1rem;
  }
  .hero-character-box {
    max-width: 220px;
  }
  .hero-title-group {
    margin-top: 40px;
  }
  .about-grid {
    gap: 24px;
  }
  .profile-card {
    max-width: 320px;
    padding: 22px 20px;
  }
  .edu-degree {
    font-size: 1.25rem;
  }
  .edu-metric {
    font-size: 1.1rem;
  }
  .edu-certs {
    font-size: 0.85rem;
  }
  .tech-chip {
    padding: 10px 18px;
    font-size: 1.05rem;
    gap: 10px;
  }
  .tech-chip-icon-box {
    width: 28px;
    height: 28px;
  }
  .dual-icon-box .mini-icon {
    width: 24px;
    height: 24px;
  }
  .project-case-grid {
    gap: 24px;
  }
  .project-cards-island {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .sample-card {
    padding: 10px;
  }
  .sample-card-tag {
    font-size: 1.05rem;
  }
  .personal-card {
    padding: 22px 20px;
  }
  .personal-title {
    font-size: 1.5rem;
  }
  .personal-desc {
    font-size: 1.05rem;
  }
  .project-action-link {
    font-size: 1rem;
    padding: 4px 12px;
  }
  .category-badge {
    font-size: 0.75rem;
    padding: 4px 12px;
  }
  .project-stat-highlight {
    font-size: 1.2rem;
  }
  /* SaaS Demos */
  .production-tools-label {
    font-size: 1.15rem;
  }
  .production-tools-chips {
    gap: 10px;
  }
  /* Resume */
  .resume-block-title {
    font-size: 1.3rem;
  }
  .resume-entry-card {
    padding: 18px 16px;
  }
  .resume-entry-role {
    font-size: 1.15rem;
  }
  .resume-entry-org {
    font-size: 0.9rem;
  }
  .resume-entry-period {
    font-size: 0.82rem;
    padding: 3px 10px;
  }
  .resume-bullets li {
    font-size: 0.95rem;
    padding-left: 18px;
  }
  .resume-download-btn {
    font-size: 1rem;
    padding: 8px 18px;
  }
  .resume-meta-pill {
    font-size: 0.85rem;
  }
  .resume-certs-row {
    font-size: 0.85rem;
    flex-direction: column;
    gap: 6px;
  }
  /* Contact */
  .contact-card-box {
    padding: 22px 16px;
    gap: 14px;
  }
  .contact-link-pill {
    padding: 12px 16px;
    font-size: 1rem;
    gap: 12px;
    border-radius: 14px;
  }
  .contact-pill-icon {
    width: 34px;
    height: 34px;
    font-size: 0.85rem;
  }
  /* Sticker badges */
  .sticker-badge {
    font-size: 1rem;
    padding: 4px 12px;
  }
  .doodle-badge-loop {
    display: none;
  }
  /* Footer */
  .footer-note {
    font-size: 1.1rem;
  }
  /* Poster */
  .poster-giant-text {
    font-size: clamp(2rem, 6vw, 3rem);
    margin-bottom: 18px;
  }
  .giant-drawn-arrow {
    height: 50px;
  }
}

/* ------- BREAKPOINT 4: Small Mobile (≤480px) ------- */
@media (max-width: 480px) {
  .sticky-nav-wrapper {
    padding: 8px 8px 4px;
  }
  .sticky-nav {
    padding: 6px 10px;
    border-radius: 16px;
    gap: 6px;
  }
  .nav-brand-logo {
    font-size: 1.35rem;
  }
  .nav-cta-btn {
    font-size: 0.82rem;
    padding: 4px 10px;
    height: 32px;
  }
  .nav-cta-btn span {
    display: none;
  }
  .nav-cta-btn::after {
    content: "Chat ➔";
    font-size: 0.82rem;
  }
  .nav-resume-btn {
    height: 32px;
    padding: 4px 8px;
    min-width: 32px;
  }
  .portfolio-container {
    padding: 16px 10px 48px;
    gap: 24px;
  }
  .section-card {
    padding: 28px 16px;
    border-radius: 18px;
    scroll-margin-top: 60px;
  }
  .section-title {
    font-size: clamp(1.5rem, 6vw, 2rem);
    margin-bottom: 6px;
  }
  .section-subtitle {
    font-size: 0.78rem;
    margin-bottom: 14px;
  }
  .body-copy {
    font-size: 0.95rem;
    line-height: 1.6;
  }
  .big-name-title {
    font-size: clamp(2.2rem, 12vw, 3.2rem);
    margin-bottom: 10px;
  }
  .hero-tagline {
    font-size: 1rem;
  }
  .hero-stats-strip {
    flex-direction: column;
    gap: 6px;
  }
  .hero-stat-pill {
    font-size: 0.85rem;
    padding: 4px 10px;
    width: 100%;
    justify-content: center;
  }
  .hero-character-box {
    max-width: 180px;
  }
  .hero-title-group {
    margin-top: 24px;
  }
  .doodle-note {
    font-size: 1.1rem;
  }
  .doodle-arrow-svg {
    display: none;
  }
  /* About */
  .profile-card {
    max-width: 280px;
    padding: 18px 16px;
    border-radius: 18px;
  }
  .profile-name {
    font-size: 1.35rem;
  }
  .profile-sub {
    font-size: 1rem;
  }
  .edu-chip {
    padding: 14px 14px;
    gap: 6px;
  }
  .edu-degree {
    font-size: 1.1rem;
  }
  .edu-sub {
    font-size: 0.82rem;
  }
  .edu-metric {
    font-size: 1rem;
  }
  .edu-certs {
    font-size: 0.78rem;
    gap: 4px;
  }
  /* Skills */
  .tech-chip {
    padding: 8px 14px;
    font-size: 0.95rem;
    gap: 8px;
    border-radius: 14px;
  }
  .tech-chip-icon-box {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    padding: 3px;
  }
  .dual-icon-box .mini-icon {
    width: 22px;
    height: 22px;
    border-radius: 5px;
    padding: 3px;
  }
  .dual-icon-box {
    gap: 4px;
  }
  .tech-chip.text-only-chip {
    padding: 10px 16px;
  }
  /* Project Work */
  .project-header-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .project-links-cluster {
    width: 100%;
  }
  .project-action-link {
    font-size: 0.9rem;
    padding: 4px 10px;
  }
  .feature-list li {
    font-size: 0.95rem;
    padding-left: 18px;
  }
  .feature-list strong {
    font-size: 1rem;
  }
  .sample-card-tag {
    font-size: 0.9rem;
  }
  /* Personal Projects */
  .personal-card {
    padding: 18px 16px;
    gap: 14px;
  }
  .personal-title {
    font-size: 1.3rem;
  }
  .personal-desc {
    font-size: 0.95rem;
  }
  .personal-tag {
    font-size: 0.68rem;
  }
  .personal-card-header {
    flex-direction: column;
    gap: 8px;
  }
  /* SaaS Demos */
  .production-tools-label {
    font-size: 1rem;
  }
  .production-tools-chips {
    gap: 8px;
  }
  /* Resume */
  .resume-sections-container {
    gap: 24px;
  }
  .resume-block-title {
    font-size: 1.1rem;
  }
  .resume-entry-card {
    padding: 16px 14px;
    border-radius: 16px;
  }
  .resume-entry-role {
    font-size: 1.05rem;
  }
  .resume-entry-org {
    font-size: 0.82rem;
  }
  .resume-bullets li {
    font-size: 0.88rem;
    line-height: 1.55;
    padding-left: 16px;
  }
  .resume-download-btn {
    font-size: 0.9rem;
    padding: 7px 14px;
  }
  .resume-edu-meta {
    flex-direction: column;
    gap: 6px;
  }
  .resume-meta-pill {
    font-size: 0.8rem;
  }
  /* Contact */
  .contact-link-pill {
    padding: 10px 12px;
    font-size: 0.88rem;
    gap: 10px;
    border-radius: 12px;
  }
  .contact-pill-icon {
    width: 30px;
    height: 30px;
    font-size: 0.75rem;
    border-radius: 8px;
  }
  /* Sticker badges */
  .sticker-badge {
    font-size: 0.85rem;
    padding: 3px 10px;
    position: relative !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    transform: rotate(-3deg);
    margin-bottom: 12px;
    align-self: flex-start;
  }
  /* Footer */
  .footer-note {
    font-size: 0.95rem;
  }
  .poster-giant-text {
    font-size: clamp(1.6rem, 7vw, 2.4rem);
  }
}

/* ------- BREAKPOINT 5: Tiny screens (≤360px) ------- */
@media (max-width: 360px) {
  .section-card {
    padding: 22px 12px;
    border-radius: 16px;
  }
  .section-title {
    font-size: 1.4rem;
  }
  .big-name-title {
    font-size: 2rem;
  }
  .hero-character-box {
    max-width: 150px;
  }
  .profile-card {
    max-width: 260px;
    padding: 14px 12px;
  }
  .tech-chip {
    padding: 6px 10px;
    font-size: 0.85rem;
    gap: 6px;
  }
  .personal-card {
    padding: 14px 12px;
  }
  .personal-title {
    font-size: 1.15rem;
  }
  .resume-entry-card {
    padding: 14px 12px;
  }
  .resume-entry-role {
    font-size: 0.95rem;
  }
  .resume-bullets li {
    font-size: 0.82rem;
  }
  .contact-link-pill {
    font-size: 0.8rem;
    padding: 8px 10px;
  }
}

/* ------- Touch-Friendly: Remove hover-only effects on touch devices ------- */
@media (hover: none) {
  .tech-chip {
    cursor: default;
  }
  .browser-screen {
    cursor: default;
  }
  .sample-card:hover {
    transform: none;
  }
  .personal-card:hover {
    transform: none;
  }
  .section-card:hover {
    box-shadow: var(--shadow-navy-card);
  }
}

/* ------- Landscape phone (max-height ≤500px and landscape) ------- */
@media (max-height: 500px) and (orientation: landscape) {
  .section-card {
    padding: 32px 24px;
  }
  .hero-container {
    grid-template-columns: 1.2fr 0.8fr;
    gap: 20px;
  }
  .hero-title-group {
    margin-top: 16px;
  }
  .hero-character-box {
    max-width: 180px;
  }
  .big-name-title {
    font-size: 2.4rem;
  }
}

/* ==========================================================================
   CSP-SAFE COMPONENT POSITIONING & UTILITY CLASSES (Zero Inline style="")
   ========================================================================== */
.doodle-note-top-left {
  top: 24px;
  left: 36px;
  max-width: 220px;
  transform: rotate(-3deg);
}

.doodle-arrow-hero-left {
  top: 80px;
  left: 150px;
  width: 60px;
  height: 70px;
}

.doodle-note-top-right {
  top: 24px;
  right: 48px;
  max-width: 200px;
  text-align: right;
  transform: rotate(4deg);
}

.doodle-arrow-hero-right {
  top: 76px;
  right: 150px;
  width: 70px;
  height: 60px;
}

.doodle-note-work {
  bottom: 28px;
  left: 60px;
  transform: rotate(-2deg);
  text-decoration: none;
  pointer-events: auto;
  cursor: pointer;
}

.doodle-arrow-about {
  top: 36px;
  left: 90px;
  width: 60px;
  height: 50px;
}

.doodle-note-skills {
  bottom: 28px;
  right: 60px;
  font-size: 1.45rem;
  transform: rotate(-3deg);
}

.doodle-note-contact {
  position: relative;
  margin-top: 16px;
  transform: rotate(-2deg);
  font-size: 1.55rem;
}

.icon-bg-github { background: #181717; }
.icon-bg-react { background: #20232A; }
.icon-bg-cpp { background: #00599C; }
.icon-bg-python { background: #F8FAFC; }
.icon-bg-postgres { background: #336791; }
.icon-bg-claude { background: #D97706; }
.icon-bg-gemini { background: #0F172A; }
.icon-bg-flow { background: #0284C7; }

.chip-subtext {
  font-size: 0.95rem;
  font-weight: 400;
  color: #64748B;
}

.subtitle-tight {
  margin-bottom: 0;
}

.subtitle-project-meta {
  margin-top: 8px;
  margin-bottom: 20px;
}

.subtitle-demos {
  margin-bottom: 20px;
}

.project-title-lg {
  font-size: 2.8rem;
  margin-bottom: 0;
}

.project-title-demos {
  font-size: 2.8rem;
}

.project-title-md {
  font-size: 2.6rem;
  margin-bottom: 0;
}

.sticker-investment {
  top: 32px;
  right: 52px;
  position: absolute;
}

.sticker-demos {
  top: 32px;
  right: 52px;
}

.sticker-contact {
  bottom: 40px;
  right: 56px;
  transform: rotate(8deg);
}

.demo-copy {
  max-width: 880px;
}

.demo-features {
  margin-top: 8px;
  max-width: 920px;
}

.skills-cluster-resume {
  margin-top: 4px;
}

.contact-copy {
  margin-bottom: 32px;
}

.contact-pill-label {
  font-family: var(--font-sans);
  font-size: 0.76rem;
  color: #64748B;
  font-weight: 700;
}

.contact-pill-linkedin { background: #0A66C2; }
.contact-pill-github { background: #18181B; }
.contact-pill-youtube { background: #DC2626; }

.edu-school-divider {
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1.5px dashed #CBD5E1;
}

.edu-school-name {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 700;
  color: #0F172A;
}

.edu-school-loc {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: #475569;
  font-weight: 600;
}

.project-action-link.case-study {
  background: rgba(255, 255, 255, 0.14);
  color: #FFFFFF;
  border: 1.5px solid rgba(255, 255, 255, 0.42);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.project-action-link.case-study:hover {
  background: #FFFFFF;
  color: #0F172A;
  border-color: #FFFFFF;
  transform: translateY(-2px) scale(1.04);
}

.placeholder-spec-card {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.45) 0%, rgba(15, 23, 42, 0.92) 100%);
  color: #E2E8F0;
  padding: 14px;
  text-align: center;
}

.placeholder-spec-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  color: var(--accent-yellow);
}

.placeholder-spec-sub {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  line-height: 1.4;
  color: #CBD5E1;
}

/* ==========================================================================
   CASE STUDY & MULTI-PAGE STYLES (/projects/*)
   ========================================================================== */
.case-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.case-breadcrumb a {
  color: var(--accent-yellow);
  text-decoration: none;
}

.case-breadcrumb a:hover {
  text-decoration: underline;
}

.case-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--text-white);
  margin-bottom: 12px;
}

.case-meta-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
  margin-bottom: 24px;
}

.case-grid-two {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 20px;
}

.case-panel {
  background: var(--bg-card);
  color: var(--text-dark);
  border-radius: 20px;
  padding: 26px 24px;
  box-shadow: var(--shadow-sticker);
}

.case-panel h2,
.case-panel h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: #0F172A;
  margin-bottom: 10px;
}

.case-panel p,
.case-panel li {
  font-family: var(--font-body);
  font-size: 1.02rem;
  line-height: 1.6;
  color: #334155;
}

.case-panel ul {
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.case-code {
  background: #0F172A;
  color: #F8FAFC;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.9rem;
  padding: 14px 18px;
  border-radius: 12px;
  overflow-x: auto;
  margin-top: 12px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 18px;
  margin-top: 10px;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 600;
}

.footer-note a,
.footer-links a {
  color: #1E3A8A;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-note a:hover,
.footer-links a:hover {
  color: #0F172A;
}

.inline-link-light {
  color: var(--accent-yellow);
  text-decoration: underline;
  text-decoration-color: rgba(255, 210, 63, 0.7);
  text-underline-offset: 4px;
  font-weight: 700;
}

.inline-link-light:hover {
  color: #FFFFFF;
  text-decoration-color: #FFFFFF;
}

@media (max-width: 768px) {
  .case-grid-two {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   ACCESSIBILITY: FOCUS VISIBILITY & REDUCED MOTION
   ========================================================================== */
a:focus-visible,
button:focus-visible,
.sample-card:focus-visible,
pre[tabindex]:focus-visible {
  outline: 3px solid var(--accent-yellow);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
