/* ==========================================================================
   PIUSH PAUL - EDITORIAL NEO-BRUTALIST PORTFOLIO
   Design Inspiration: Serhii Korchov / UPROCK AGENCY (Dribbble)
   Enhanced with Scroll-Driven Animations, Dedicated Education & Achievements
   Sections, and Dark Contrast Themes (Tokyo Night, Catppuccin, Cyber Matrix,
   and Editorial Bone).
   ========================================================================== */

/* --- GOOGLE FONTS IMPORT --- */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=JetBrains+Mono:ital,wght@0,300;0,400;0,500;0,700;1,400&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Syne:wght@700;800&display=swap');

/* --- CSS THEME VARIABLES --- */
:root {
  /* Default Theme: Tokyo Night (Dark Contrast) */
  --theme-name: "tokyo-night";
  --bg-page: #13141f;
  --bg-canvas: #1a1b26;
  --bg-surface: #24283b;
  --bg-surface-hover: #292e42;
  --border-frame: #414868;
  --border-frame-inner: #2f354f;
  --border-subtle: #292e42;
  --border-divider: #3b4261;
  
  --text-primary: #c0caf5;
  --text-heading: #f7768e;
  --text-headline-solid: #ffffff;
  --text-muted: #7982a9;
  --text-subtle: #565f89;
  
  --accent-cyan: #7dcfff;
  --accent-blue: #7aa2f7;
  --accent-purple: #bb9af7;
  --accent-green: #73daca;
  --accent-orange: #ff9e64;
  --accent-pink: #f7768e;
  --accent-gold: #e0af68;
  
  --stroke-outline: #7aa2f7;
  --badge-bg: rgba(122, 162, 247, 0.12);
  --badge-text: #7aa2f7;
  --badge-border: rgba(122, 162, 247, 0.35);

  --font-display: 'Bebas Neue', 'Syne', sans-serif;
  --font-syne: 'Syne', sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --frame-radius: 28px;
  --card-radius: 14px;
  --frame-border-width: 6px;
  
  --shadow-frame: 0 25px 60px -15px rgba(0, 0, 0, 0.7);
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  --shadow-hover: -8px 8px 0px var(--stroke-outline);
  --transition-smooth: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Catppuccin Mocha Theme */
[data-theme="catppuccin"] {
  --theme-name: "catppuccin";
  --bg-page: #11111b;
  --bg-canvas: #1e1e2e;
  --bg-surface: #25263a;
  --bg-surface-hover: #313244;
  --border-frame: #45475a;
  --border-frame-inner: #313244;
  --border-subtle: #313244;
  --border-divider: #45475a;
  
  --text-primary: #cdd6f4;
  --text-heading: #f5c2e7;
  --text-headline-solid: #f5e0dc;
  --text-muted: #a6adc8;
  --text-subtle: #6c7086;
  
  --accent-cyan: #89dceb;
  --accent-blue: #89b4fa;
  --accent-purple: #cba6f7;
  --accent-green: #a6e3a1;
  --accent-orange: #fab387;
  --accent-pink: #f5c2e7;
  --accent-gold: #f9e2af;
  
  --stroke-outline: #cba6f7;
  --badge-bg: rgba(203, 166, 247, 0.12);
  --badge-text: #cba6f7;
  --badge-border: rgba(203, 166, 247, 0.35);
  
  --shadow-frame: 0 25px 60px -15px rgba(0, 0, 0, 0.8);
}

/* Editorial Bone (Dribbble Original Light Neo-Brutalist) */
[data-theme="editorial-bone"] {
  --theme-name: "editorial-bone";
  --bg-page: #ECEBE4;
  --bg-canvas: #F4F3EE;
  --bg-surface: #E8E6DF;
  --bg-surface-hover: #DFDDD5;
  --border-frame: #9A9993;
  --border-frame-inner: #BCBBB5;
  --border-subtle: #BCBBB5;
  --border-divider: #A8A7A0;
  
  --text-primary: #2B2A29;
  --text-heading: #1C1B1A;
  --text-headline-solid: #1E1E1E;
  --text-muted: #605F5A;
  --text-subtle: #82817A;
  
  --accent-cyan: #1C1B1A;
  --accent-blue: #2E4057;
  --accent-purple: #4A306D;
  --accent-green: #2B6E48;
  --accent-orange: #BA5A31;
  --accent-pink: #9A275A;
  --accent-gold: #A27B1E;
  
  --stroke-outline: #1E1E1E;
  --badge-bg: rgba(30, 30, 30, 0.08);
  --badge-text: #1C1B1A;
  --badge-border: rgba(30, 30, 30, 0.3);
  
  --shadow-frame: 0 20px 40px -15px rgba(0, 0, 0, 0.15);
}

/* Cyber Matrix Theme (Pure OLED Black & Neon Emerald) */
[data-theme="cyber-matrix"] {
  --theme-name: "cyber-matrix";
  --bg-page: #050608;
  --bg-canvas: #090b10;
  --bg-surface: #10141c;
  --bg-surface-hover: #171d28;
  --border-frame: #1f2737;
  --border-frame-inner: #151b27;
  --border-subtle: #171e2c;
  --border-divider: #263349;
  
  --text-primary: #e6edf3;
  --text-heading: #00ff9d;
  --text-headline-solid: #ffffff;
  --text-muted: #8b949e;
  --text-subtle: #484f58;
  
  --accent-cyan: #58a6ff;
  --accent-blue: #388bfd;
  --accent-purple: #bc8cff;
  --accent-green: #00ff9d;
  --accent-orange: #f0883e;
  --accent-pink: #ff7b72;
  --accent-gold: #f2cc60;
  
  --stroke-outline: #00ff9d;
  --badge-bg: rgba(0, 255, 157, 0.1);
  --badge-text: #00ff9d;
  --badge-border: rgba(0, 255, 157, 0.35);
  
  --shadow-frame: 0 25px 70px -15px rgba(0, 255, 157, 0.08);
}

/* --- RESET & GLOBAL STYLES --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-page);
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-page);
  color: var(--text-primary);
  min-height: 100vh;
  padding: 24px 20px 48px;
  overflow-x: hidden;
  transition: background-color 0.4s ease, color 0.4s ease;
  line-height: 1.6;
}

@media (max-width: 768px) {
  body {
    padding: 12px 8px 32px;
  }
}

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

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

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

/* --- REAL-TIME SCROLL PROGRESS BAR --- */
.scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-blue), var(--stroke-outline));
  z-index: 99999;
  transition: width 0.1s ease-out;
}

/* --- SCROLL-DRIVEN REVEAL ANIMATIONS --- */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-on-scroll.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

.scroll-item {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.is-revealed .scroll-item {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger animation delays for grid items */
.scroll-item:nth-child(1) { transition-delay: 0.04s; }
.scroll-item:nth-child(2) { transition-delay: 0.10s; }
.scroll-item:nth-child(3) { transition-delay: 0.16s; }
.scroll-item:nth-child(4) { transition-delay: 0.22s; }
.scroll-item:nth-child(5) { transition-delay: 0.28s; }
.scroll-item:nth-child(6) { transition-delay: 0.34s; }

/* Section Badges */
.section-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--accent-cyan);
  margin-bottom: 8px;
  text-transform: uppercase;
}

/* --- PRELOADER / INTRO COUNTER (Matching Video Frames 013-016) --- */
#intro-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background-color: var(--bg-page);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  transition: opacity 0.6s cubic-bezier(0.85, 0, 0.15, 1), transform 0.6s cubic-bezier(0.85, 0, 0.15, 1);
}

#intro-loader.hidden {
  opacity: 0;
  transform: translateY(-100%);
  pointer-events: none;
}

.loader-card {
  width: 100%;
  max-width: 1360px;
  height: calc(100vh - 48px);
  max-height: 820px;
  background-color: #1f2023;
  border-radius: var(--frame-radius);
  border: var(--frame-border-width) solid #3a3b40;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 48px 64px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8);
  overflow: hidden;
}

[data-theme="editorial-bone"] .loader-card {
  background-color: #2b2b2e;
  border-color: #55555a;
}

.loader-brand {
  position: absolute;
  top: 48px;
  left: 64px;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: #a0a0ab;
}

.loader-meta {
  position: absolute;
  top: 48px;
  right: 64px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: #71717a;
}

.loader-center-graphic {
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.loader-title-solid {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 6.5rem);
  line-height: 0.9;
  color: #ffffff;
  letter-spacing: 2px;
}

.loader-title-stroke {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 6.5rem);
  line-height: 0.9;
  color: transparent;
  -webkit-text-stroke: 1.5px #71717a;
  letter-spacing: 2px;
}

.loader-counter-wrap {
  display: flex;
  justify-content: flex-end;
  align-items: baseline;
  gap: 12px;
}

.loader-number {
  font-family: var(--font-display);
  font-size: clamp(5rem, 14vw, 12rem);
  line-height: 0.85;
  color: #f4f4f5;
  font-weight: 800;
  letter-spacing: -2px;
}

.loader-percent {
  font-family: var(--font-mono);
  font-size: clamp(1.2rem, 3vw, 2.5rem);
  color: #71717a;
  font-weight: 700;
}

.skip-intro-btn {
  position: absolute;
  bottom: 24px;
  left: 64px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: #71717a;
  text-decoration: underline;
  background: transparent;
  cursor: pointer;
  letter-spacing: 1px;
}
.skip-intro-btn:hover {
  color: #ffffff;
}

/* --- THE MAIN FRAMED CANVAS (Core Dribbble Style) --- */
.portfolio-frame {
  max-width: 1400px;
  margin: 0 auto;
  background-color: var(--bg-canvas);
  border: var(--frame-border-width) solid var(--border-frame);
  border-radius: var(--frame-radius);
  box-shadow: var(--shadow-frame);
  position: relative;
  overflow: hidden;
  transition: background-color 0.4s ease, border-color 0.4s ease;
}

/* --- TOP HEADER NAVIGATION --- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 36px;
  border-bottom: 1.5px solid var(--border-frame-inner);
  background: var(--bg-canvas);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-link {
  display: inline-block;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.6rem;
  letter-spacing: 1.5px;
  color: var(--text-headline-solid);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--badge-bg);
  border: 1px solid var(--badge-border);
  color: var(--badge-text);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.5px;
}

.status-dot {
  width: 7px;
  height: 7px;
  background-color: var(--accent-green);
  border-radius: 50%;
  animation: pulseDot 2s infinite ease-in-out;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.75); }
}

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

.cv-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-headline-solid);
  padding: 8px 16px;
  border: 1.5px solid var(--border-frame);
  border-radius: 8px;
  background: var(--bg-surface);
  transition: var(--transition-smooth);
  letter-spacing: 0.5px;
}

.cv-download-btn:hover {
  background: var(--accent-blue);
  color: #0d0f18;
  border-color: var(--accent-blue);
  transform: translateY(-2px);
}

.cv-download-btn svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

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

.nav-link {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.5px;
  position: relative;
  padding: 4px 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-headline-solid);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--stroke-outline);
  transition: width 0.25s ease;
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

/* Theme Selector Component */
.theme-selector-wrap {
  position: relative;
}

.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid var(--border-frame);
  background: var(--bg-surface);
  color: var(--text-primary);
  transition: var(--transition-smooth);
}

.theme-toggle-btn:hover {
  background: var(--bg-surface-hover);
  border-color: var(--stroke-outline);
}

.theme-swatch {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-blue);
}

.theme-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: 210px;
  background: var(--bg-surface);
  border: 1.5px solid var(--border-frame);
  border-radius: 8px;
  box-shadow: var(--shadow-card);
  padding: 6px;
  display: none;
  flex-direction: column;
  gap: 4px;
  z-index: 200;
}

.theme-dropdown.open {
  display: flex;
}

.theme-option-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 5px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-primary);
  text-align: left;
  transition: background 0.2s ease;
}

.theme-option-btn:hover {
  background: var(--bg-surface-hover);
}

.theme-option-btn.active {
  color: var(--accent-cyan);
  font-weight: 700;
}

.theme-option-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}
.theme-dot-tokyo { background: #7aa2f7; box-shadow: 0 0 6px #7aa2f7; }
.theme-dot-catppuccin { background: #cba6f7; box-shadow: 0 0 6px #cba6f7; }
.theme-dot-editorial { background: #8E8D85; border: 1px solid #1a1a1a; }
.theme-dot-cyber { background: #00ff9d; box-shadow: 0 0 6px #00ff9d; }

/* Mobile Menu Toggle & Drawer */
.mobile-nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.mobile-nav-toggle span {
  width: 22px;
  height: 2px;
  background-color: var(--text-headline-solid);
  transition: 0.3s;
}

.mobile-drawer {
  display: none;
  background: var(--bg-surface);
  border-bottom: 2px solid var(--border-frame);
  padding: 20px 24px;
}
.mobile-drawer.open {
  display: block;
}
.mobile-drawer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.mobile-drawer-link {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}
.mobile-drawer-link:hover {
  color: var(--accent-cyan);
}

/* --- HERO SECTION (Exact Dribbble Frame 001 Typography & Layout) --- */
.hero-section {
  padding: 48px 48px 40px;
  position: relative;
}

.hero-main-title {
  margin-bottom: 40px;
  user-select: none;
}

.hero-title-row-1 {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px 20px;
}

.role-tag-box {
  display: inline-flex;
  align-items: baseline;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6.5vw, 6.5rem);
  line-height: 0.85;
  letter-spacing: 2px;
}

.role-solid {
  color: var(--text-headline-solid);
  font-weight: 800;
}

.role-slash {
  color: var(--text-subtle);
  margin: 0 2px;
}

.role-stroke {
  color: transparent;
  -webkit-text-stroke: 2px var(--stroke-outline);
  font-weight: 800;
}

.hero-word-engineer {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 11vw, 11rem);
  line-height: 0.85;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--text-headline-solid);
}

.hero-title-row-2 {
  margin-top: 4px;
}

.hero-word-portfolio {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 11vw, 11rem);
  line-height: 0.85;
  font-weight: 800;
  letter-spacing: 3px;
  color: transparent;
  -webkit-text-stroke: 2px var(--stroke-outline);
  transition: -webkit-text-stroke 0.4s ease;
}

/* Hero Profile & Bio Grid */
.hero-profile-row {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 36px;
  align-items: center;
  margin-top: 24px;
}

.portrait-container {
  position: relative;
  width: 280px;
  height: 280px;
  background-color: var(--bg-surface);
  border-radius: var(--card-radius);
  border: 2px solid var(--border-frame);
  overflow: visible;
  box-shadow: var(--shadow-card);
  transition: var(--transition-smooth);
}

.portrait-container:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.portrait-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: calc(var(--card-radius) - 2px);
  filter: contrast(1.08) brightness(0.98);
}

/* ROTATING CIRCULAR STAMP BADGE (Matching Video Frames 003, 011, 012) */
.circular-stamp {
  position: absolute;
  top: -24px;
  right: -24px;
  width: 110px;
  height: 110px;
  pointer-events: none;
  z-index: 10;
  animation: rotateStamp 20s linear infinite;
}

@keyframes rotateStamp {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.circular-stamp svg {
  width: 100%;
  height: 100%;
}

.circular-stamp text {
  font-family: var(--font-mono);
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 2px;
  fill: var(--accent-green);
  text-transform: uppercase;
}

[data-theme="tokyo-night"] .circular-stamp text { fill: #73daca; }
[data-theme="catppuccin"] .circular-stamp text { fill: #a6e3a1; }
[data-theme="editorial-bone"] .circular-stamp text { fill: #2B6E48; }
[data-theme="cyber-matrix"] .circular-stamp text { fill: #00ff9d; }

.hero-bio-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.bio-statement {
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  line-height: 1.6;
  color: var(--text-primary);
  font-weight: 400;
  max-width: 680px;
}

.bio-statement strong {
  color: var(--text-headline-solid);
  font-weight: 700;
}

.bio-pills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.bio-stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border-frame);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-primary);
}

.bio-stat-pill .pill-val {
  color: var(--accent-cyan);
  font-weight: 700;
}

/* --- RUNNING TICKER / MARQUEE (Matching Video Frame 003 & 005) --- */
.ticker-ribbon-wrap {
  width: 100%;
  overflow: hidden;
  border-top: 2px solid var(--border-frame);
  border-bottom: 2px solid var(--border-frame);
  background: var(--bg-surface);
  padding: 12px 0;
  display: flex;
  white-space: nowrap;
  user-select: none;
}

.ticker-track {
  display: flex;
  align-items: center;
  gap: 28px;
  animation: scrollMarquee 26s linear infinite;
  flex-shrink: 0;
}

@keyframes scrollMarquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

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

.ticker-item {
  font-family: var(--font-display);
  font-size: 1.8rem;
  letter-spacing: 2.5px;
  display: inline-flex;
  align-items: center;
  gap: 24px;
}

.ticker-text-stroke {
  color: transparent;
  -webkit-text-stroke: 1.2px var(--stroke-outline);
}

.ticker-text-solid {
  color: var(--text-headline-solid);
}

.ticker-spark {
  color: var(--accent-orange);
  font-size: 1.3rem;
  line-height: 1;
}

/* --- SECTION GENERAL HEADINGS --- */
.section-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 48px 48px 24px;
  border-bottom: 2px solid var(--border-frame);
  flex-wrap: wrap;
  gap: 20px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  line-height: 0.95;
  letter-spacing: 2px;
  color: var(--text-headline-solid);
}

.section-subtitle {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
  max-width: 520px;
}

/* --- WORKS SECTION (2-Column Dribbble Grid) --- */
.works-filter-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 18px 48px;
  background: var(--bg-surface);
  border-bottom: 1.5px solid var(--border-frame-inner);
  overflow-x: auto;
}

.filter-btn {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-frame);
  color: var(--text-muted);
  background: transparent;
  transition: var(--transition-smooth);
  white-space: nowrap;
}

.filter-btn:hover {
  color: var(--text-headline-solid);
  border-color: var(--stroke-outline);
}

.filter-btn.active {
  background: var(--text-headline-solid);
  color: var(--bg-page);
  border-color: var(--text-headline-solid);
}

.works-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 2px solid var(--border-frame);
}

.work-card {
  border-right: 1.5px solid var(--border-frame);
  border-bottom: 1.5px solid var(--border-frame);
  padding: 36px 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--bg-canvas);
  transition: var(--transition-smooth);
  position: relative;
}

.work-card:nth-child(2n) {
  border-right: none;
}

.work-card:hover {
  background: var(--bg-surface);
  box-shadow: inset 0 0 0 1px var(--stroke-outline);
}

.work-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.work-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.2vw, 3rem);
  line-height: 0.95;
  letter-spacing: 1.5px;
  color: var(--text-headline-solid);
}

.work-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.work-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--badge-bg);
  border: 1px solid var(--badge-border);
  color: var(--badge-text);
  white-space: nowrap;
}

.work-subtitle {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.work-visual-wrap {
  width: 100%;
  aspect-ratio: 16 / 9.5;
  background: #0d0e15;
  border-radius: 10px;
  border: 1.5px solid var(--border-frame);
  overflow: hidden;
  position: relative;
  margin-bottom: 20px;
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.work-card:hover .work-visual-wrap {
  transform: translateY(-4px);
  border-color: var(--stroke-outline);
  box-shadow: 0 12px 24px -8px rgba(0, 0, 0, 0.6);
}

.work-visual-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.work-card-footer {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px dashed var(--border-frame-inner);
}

.work-details-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-cyan);
  background: transparent;
  cursor: pointer;
  padding: 6px 0;
  transition: gap 0.2s ease;
}

.work-details-toggle:hover {
  gap: 12px;
}

.work-bullets-tray {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  opacity: 0;
}

.work-bullets-tray.expanded {
  max-height: 600px;
  opacity: 1;
  margin-top: 16px;
}

.work-bullets-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-left: 4px;
}

.work-bullet-item {
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--text-primary);
  position: relative;
  padding-left: 20px;
}

.work-bullet-item::before {
  content: '✦';
  position: absolute;
  left: 0;
  top: 1px;
  color: var(--accent-cyan);
  font-size: 0.75rem;
}

/* --- STAGES / CAREER TIMELINE SECTION (Frame 007-009 Accordion) --- */
.stages-section {
  display: grid;
  grid-template-columns: 420px 1fr;
  border-bottom: 2px solid var(--border-frame);
  background: var(--bg-canvas);
}

.stages-left-pane {
  padding: 56px 48px;
  border-right: 2px solid var(--border-frame);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.stages-big-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 4.5vw, 4.8rem);
  line-height: 0.92;
  letter-spacing: 2px;
  color: var(--text-headline-solid);
}

.stages-note {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-top: 24px;
}

.stages-pane-footer {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-cyan);
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 24px;
  border-top: 1px solid var(--border-frame-inner);
}

.pulse-indicator {
  color: var(--accent-green);
  animation: pulseDot 1.5s infinite;
}

.stages-right-pane {
  display: flex;
  flex-direction: column;
}

.stage-accordion-item {
  border-bottom: 1.5px solid var(--border-frame);
  transition: background 0.25s ease;
}

.stage-accordion-item:last-child {
  border-bottom: none;
}

.stage-accordion-item.active {
  background: var(--bg-surface);
}

.stage-header-btn {
  width: 100%;
  display: grid;
  grid-template-columns: 90px 1fr 40px;
  align-items: center;
  padding: 26px 36px;
  text-align: left;
  gap: 16px;
  background: transparent;
  border: none;
  cursor: pointer;
}

.stage-index {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 1.5px;
}

.stage-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stage-main-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  letter-spacing: 1.5px;
  color: var(--text-headline-solid);
  line-height: 1;
}

.stage-sub-title {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--accent-cyan);
}

.stage-toggle-icon {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--text-headline-solid);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, color 0.3s ease;
  line-height: 1;
}

.stage-accordion-item.active .stage-toggle-icon {
  transform: rotate(45deg);
  color: var(--accent-pink);
}

.stage-content-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  opacity: 0;
  padding: 0 36px 0 142px;
}

.stage-accordion-item.active .stage-content-body {
  max-height: 900px;
  opacity: 1;
  padding-bottom: 32px;
}

.stage-bullet-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.stage-bullet-item {
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--text-primary);
  position: relative;
  padding-left: 20px;
}

.stage-bullet-item::before {
  content: '▪';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent-blue);
  font-size: 1rem;
}

.stage-meta-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.stage-meta-pill {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 4px 10px;
  border-radius: 4px;
  background: var(--bg-surface-hover);
  color: var(--text-muted);
}

/* ==========================================================================
   DEDICATED EDUCATION SECTION
   ========================================================================== */
.education-section {
  border-bottom: 2px solid var(--border-frame);
  background: var(--bg-canvas);
}

.education-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 48px;
  gap: 32px;
}

.education-card {
  background: var(--bg-surface);
  border: 1.5px solid var(--border-frame);
  border-radius: var(--card-radius);
  padding: 36px;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
  position: relative;
}

.education-card:hover {
  transform: translateY(-5px);
  border-color: var(--stroke-outline);
  box-shadow: var(--shadow-hover);
}

.education-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  flex-wrap: wrap;
  gap: 8px;
}

.edu-year-badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-cyan);
  background: var(--badge-bg);
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid var(--badge-border);
}

.edu-loc-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
}

.edu-school-name {
  font-family: var(--font-display);
  font-size: 2.2rem;
  line-height: 1;
  letter-spacing: 1.5px;
  color: var(--text-headline-solid);
  margin-bottom: 6px;
}

.edu-degree-title {
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--accent-blue);
  margin-bottom: 4px;
}

.edu-department {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.edu-divider {
  width: 100%;
  height: 1px;
  background: var(--border-frame-inner);
  margin: 20px 0;
}

.edu-details-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.edu-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 1px;
}

.edu-tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.edu-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 4px 10px;
  background: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  color: var(--text-primary);
}

.edu-honors-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text-primary);
}

.edu-honors-list li {
  position: relative;
  padding-left: 18px;
}

.edu-honors-list li::before {
  content: '★';
  position: absolute;
  left: 0;
  top: 1px;
  color: var(--accent-gold);
  font-size: 0.8rem;
}

.edu-highlight-box {
  margin-top: 20px;
  padding: 12px 16px;
  background: var(--bg-canvas);
  border-left: 3px solid var(--accent-cyan);
  border-radius: 0 6px 6px 0;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.highlight-star {
  color: var(--accent-cyan);
  font-size: 1rem;
}

/* ==========================================================================
   DEDICATED ACHIEVEMENTS SECTION
   ========================================================================== */
.achievements-section {
  border-bottom: 2px solid var(--border-frame);
  background: var(--bg-canvas);
}

.achievements-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 48px;
  gap: 24px;
}

.achievement-card {
  background: var(--bg-surface);
  border: 1.5px solid var(--border-frame);
  border-radius: var(--card-radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition-smooth);
}

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

.achieve-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.achieve-rank-pill {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.pill-gold {
  background: rgba(224, 175, 104, 0.15);
  color: var(--accent-gold);
  border: 1px solid rgba(224, 175, 104, 0.4);
}

.pill-cyan {
  background: rgba(125, 207, 255, 0.15);
  color: var(--accent-cyan);
  border: 1px solid rgba(125, 207, 255, 0.4);
}

.pill-purple {
  background: rgba(187, 154, 247, 0.15);
  color: var(--accent-purple);
  border: 1px solid rgba(187, 154, 247, 0.4);
}

.achieve-year {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
}

.achieve-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  line-height: 1;
  letter-spacing: 1.2px;
  color: var(--text-headline-solid);
  margin-bottom: 6px;
}

.achieve-issuer {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--accent-blue);
  margin-bottom: 12px;
}

.achieve-desc {
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.achieve-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}

.achieve-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--bg-canvas);
  border: 1px solid var(--border-frame-inner);
  color: var(--text-muted);
}

/* --- TECHNICAL SKILLS MATRIX SECTION --- */
.skills-section {
  padding: 48px;
  border-bottom: 2px solid var(--border-frame);
  background: var(--bg-canvas);
}

.skills-category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.skill-category-card {
  background: var(--bg-surface);
  border: 1.5px solid var(--border-frame);
  border-radius: var(--card-radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: var(--transition-smooth);
}

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

.skill-cat-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 1.5px;
  color: var(--text-headline-solid);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.skill-cat-title span {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-cyan);
}

.skill-pills-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-pill {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  padding: 5px 12px;
  background: var(--bg-canvas);
  border: 1px solid var(--border-frame-inner);
  border-radius: 6px;
  color: var(--text-primary);
  transition: var(--transition-smooth);
}

.skill-pill:hover {
  border-color: var(--stroke-outline);
  color: var(--text-headline-solid);
  transform: translateY(-2px);
}

/* --- CONTACT ME SECTION (Exact Frame 012 Layout) --- */
.contact-section {
  position: relative;
  padding: 64px 48px 48px;
  background: var(--bg-canvas);
}

.contact-stamp-badge {
  position: absolute;
  top: 36px;
  right: 48px;
  width: 130px;
  height: 130px;
  animation: rotateStamp 22s linear infinite;
  pointer-events: none;
}

.contact-stamp-badge svg {
  width: 100%;
  height: 100%;
}

.contact-stamp-badge text {
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 2.2px;
  fill: var(--text-headline-solid);
  text-transform: uppercase;
}

.contact-headline {
  margin-bottom: 48px;
}

.contact-word-contact {
  font-family: var(--font-display);
  font-size: clamp(4.5rem, 13vw, 13rem);
  line-height: 0.85;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--text-headline-solid);
}

.contact-word-me {
  font-family: var(--font-display);
  font-size: clamp(4.5rem, 13vw, 13rem);
  line-height: 0.85;
  font-weight: 800;
  letter-spacing: 2px;
  color: transparent;
  -webkit-text-stroke: 2px var(--stroke-outline);
}

.contact-columns-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding-top: 32px;
  border-top: 2px solid var(--border-frame);
}

.contact-col-header {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--text-muted);
  margin-bottom: 20px;
  text-transform: uppercase;
}

.contact-link-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-link-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-frame-inner);
}

.contact-link-label {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-headline-solid);
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact-link-val {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent-cyan);
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 4px 8px;
  background: var(--bg-surface);
  border: 1px solid var(--border-frame);
  border-radius: 4px;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.copy-btn:hover {
  color: var(--text-headline-solid);
  border-color: var(--stroke-outline);
}

/* Quick Message Box */
.quick-connect-card {
  margin-top: 48px;
  background: var(--bg-surface);
  border: 1.5px solid var(--border-frame);
  border-radius: var(--card-radius);
  padding: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  transition: var(--transition-smooth);
}

.quick-connect-card:hover {
  border-color: var(--stroke-outline);
  box-shadow: var(--shadow-hover);
}

.quick-connect-info h4 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  letter-spacing: 1px;
  color: var(--text-headline-solid);
  margin-bottom: 4px;
}

.quick-connect-info p {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-muted);
}

.quick-connect-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.action-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 8px;
  background: var(--text-headline-solid);
  color: var(--bg-page);
  border: 1.5px solid var(--text-headline-solid);
  transition: var(--transition-smooth);
}

.action-pill-btn:hover {
  transform: translateY(-2px);
  background: var(--accent-blue);
  border-color: var(--accent-blue);
  color: #0d0f18;
}

.action-pill-secondary {
  background: transparent;
  color: var(--text-headline-solid);
  border-color: var(--border-frame);
}

.action-pill-secondary:hover {
  background: var(--bg-surface-hover);
  color: var(--text-headline-solid);
  border-color: var(--stroke-outline);
}

/* --- FOOTER (Matching Frame 012 bottom) --- */
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 48px;
  border-top: 1.5px solid var(--border-frame-inner);
  background: var(--bg-canvas);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-subtle);
  flex-wrap: wrap;
  gap: 12px;
}

.footer-credit {
  letter-spacing: 1px;
}

.footer-tech {
  color: var(--text-muted);
}

/* --- RESUME SELECTOR MODAL --- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

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

.resume-modal {
  background: var(--bg-canvas);
  border: 4px solid var(--border-frame);
  border-radius: var(--frame-radius);
  max-width: 680px;
  width: 100%;
  padding: 36px 40px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.8);
  position: relative;
  animation: modalPop 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPop {
  from { opacity: 0; transform: scale(0.95) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

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

.modal-title {
  font-family: var(--font-display);
  font-size: 2.4rem;
  letter-spacing: 1.5px;
  color: var(--text-headline-solid);
}

.modal-close-btn {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
  background: none;
  border: none;
  line-height: 1;
}
.modal-close-btn:hover {
  color: var(--text-headline-solid);
}

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

.resume-option-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  background: var(--bg-surface);
  border: 1.5px solid var(--border-frame);
  border-radius: 10px;
  transition: var(--transition-smooth);
}

.resume-option-card:hover {
  border-color: var(--stroke-outline);
  background: var(--bg-surface-hover);
  transform: translateX(4px);
}

.resume-option-info h5 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-headline-solid);
  display: flex;
  align-items: center;
  gap: 8px;
}

.badge-recommended {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  background: var(--accent-cyan);
  color: #0b0c10;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
}

.resume-option-info p {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.resume-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 8px 16px;
  background: var(--text-headline-solid);
  color: var(--bg-page);
  border-radius: 6px;
  border: 1.5px solid var(--text-headline-solid);
  transition: var(--transition-smooth);
  flex-shrink: 0;
}

.resume-action-btn:hover {
  background: var(--accent-blue);
  border-color: var(--accent-blue);
  color: #090a0f;
}

/* Toast Notification */
.toast-msg {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--text-headline-solid);
  color: var(--bg-page);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 12px 22px;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 99999;
}

.toast-msg.show {
  transform: translateY(0);
  opacity: 1;
}

/* --- RESPONSIVE MEDIA QUERIES --- */
@media (max-width: 1100px) {
  .achievements-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1024px) {
  .hero-profile-row {
    grid-template-columns: 240px 1fr;
    gap: 28px;
  }
  .portrait-container {
    width: 240px;
    height: 240px;
  }
  .stages-section {
    grid-template-columns: 1fr;
  }
  .stages-left-pane {
    border-right: none;
    border-bottom: 2px solid var(--border-frame);
    padding: 40px 32px;
  }
  .education-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .site-header {
    padding: 16px 20px;
  }
  .nav-links {
    display: none;
  }
  .mobile-nav-toggle {
    display: flex;
  }
  .works-grid {
    grid-template-columns: 1fr;
  }
  .work-card {
    border-right: none;
    padding: 28px 24px;
  }
  .hero-section {
    padding: 32px 24px;
  }
  .hero-profile-row {
    grid-template-columns: 1fr;
  }
  .portrait-container {
    margin: 0 auto;
  }
  .achievements-grid {
    grid-template-columns: 1fr;
    padding: 24px;
  }
  .education-grid {
    padding: 24px;
  }
  .contact-columns-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .contact-section {
    padding: 40px 24px;
  }
  .contact-stamp-badge {
    display: none;
  }
  .stage-header-btn {
    grid-template-columns: 60px 1fr 30px;
    padding: 20px;
  }
  .stage-content-body {
    padding: 0 20px 24px 20px;
  }
  .site-footer {
    padding: 20px 24px;
  }
}
