/* ==========================================================================
   Sunatchanida Wongdao Portfolio - Stylesheet
   Aesthetic: Soft Frosted Glass & Floating Pills (Aether.co inspiration)
   + Dark Mode Premium + Subtle Developer Accents + Tasteful Interactions
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS Variables & Theme Foundations
   -------------------------------------------------------------------------- */
:root {
  /* Typography */
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Transitions */
  --transition-fast: 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-spring: 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Radius (Generously rounded like Aether) */
  --radius-pill: 9999px;
  --radius-card-sm: 18px;
  --radius-card-md: 24px;
  --radius-card-lg: 32px;
  --radius-card-xl: 38px;
}

/* Dark Mode (Default) */
[data-theme="dark"] {
  --bg-body: #07090e;
  --bg-gradient: radial-gradient(circle at 50% 0%, #121827 0%, #07090e 70%);
  
  /* Frosted Glass Surfaces */
  --surface-card: rgba(18, 23, 34, 0.62);
  --surface-card-hover: rgba(24, 31, 46, 0.78);
  --surface-inner: rgba(255, 255, 255, 0.035);
  
  /* Borders & Highlights */
  --border-card: rgba(255, 255, 255, 0.09);
  --border-card-hover: rgba(255, 255, 255, 0.2);
  --border-inner-bevel: rgba(255, 255, 255, 0.18);
  --border-subtle: rgba(255, 255, 255, 0.06);

  /* Text Colors */
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-subtle: #64748b;
  --text-inverse: #07090e;

  /* Aether Pastel Accents (Dark Adaptations) */
  --accent-lavender: #c084fc;
  --accent-peach: #fb923c;
  --accent-mint: #34d399;
  --accent-sky: #38bdf8;
  
  /* Primary Button Gradient (Lavender to Peach & Sky) */
  --btn-primary-bg: linear-gradient(135deg, #c084fc 0%, #a78bfa 40%, #38bdf8 100%);
  --btn-primary-text: #090d16;
  --btn-primary-shadow: 0 10px 28px -6px rgba(192, 132, 252, 0.4);

  /* Code Syntax Palette */
  --syntax-keyword: #c084fc;
  --syntax-fn: #38bdf8;
  --syntax-str: #34d399;
  --syntax-comment: #64748b;
  --syntax-id: #f472b6;
  --syntax-type: #fb923c;

  /* Shadows */
  --shadow-frosted: inset 0 1px 1.5px var(--border-inner-bevel), inset 0 0 0 1px rgba(255, 255, 255, 0.05), 0 20px 40px -15px rgba(0, 0, 0, 0.55);
  --shadow-dock: inset 0 1px 1.5px rgba(255, 255, 255, 0.2), 0 20px 45px -10px rgba(0, 0, 0, 0.7);

  --dock-bg: rgba(14, 18, 28, 0.75);
}

/* Light Mode */
[data-theme="light"] {
  --bg-body: #f8fafc;
  --bg-gradient: radial-gradient(circle at 50% 0%, #eef2f6 0%, #f8fafc 70%);

  /* Frosted Glass Surfaces */
  --surface-card: rgba(255, 255, 255, 0.85);
  --surface-card-hover: rgba(255, 255, 255, 0.98);
  --surface-inner: rgba(241, 245, 249, 0.7);

  /* Borders & Highlights */
  --border-card: rgba(15, 23, 42, 0.08);
  --border-card-hover: rgba(15, 23, 42, 0.18);
  --border-inner-bevel: rgba(255, 255, 255, 0.95);
  --border-subtle: rgba(15, 23, 42, 0.05);

  /* Text Colors */
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-subtle: #94a3b8;
  --text-inverse: #ffffff;

  /* Aether Pastel Accents */
  --accent-lavender: #8b5cf6;
  --accent-peach: #ea580c;
  --accent-mint: #059669;
  --accent-sky: #0284c7;

  /* Primary Button Gradient */
  --btn-primary-bg: linear-gradient(135deg, #a78bfa 0%, #f472b6 60%, #fb923c 100%);
  --btn-primary-text: #ffffff;
  --btn-primary-shadow: 0 10px 24px -6px rgba(167, 139, 250, 0.35);

  /* Code Syntax Palette */
  --syntax-keyword: #7c3aed;
  --syntax-fn: #0284c7;
  --syntax-str: #059669;
  --syntax-comment: #94a3b8;
  --syntax-id: #db2777;
  --syntax-type: #d97706;

  /* Shadows */
  --shadow-frosted: inset 0 1.5px 2px #ffffff, 0 18px 40px -15px rgba(15, 23, 42, 0.08);
  --shadow-dock: inset 0 1.5px 2px #ffffff, 0 20px 40px -10px rgba(15, 23, 42, 0.12);

  --dock-bg: rgba(255, 255, 255, 0.88);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-body);
  background-image: var(--bg-gradient);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  overflow-x: clip;
  transition: background-color var(--transition-smooth), color var(--transition-smooth);
}

body.is-loading {
  overflow: hidden !important;
}

/* --------------------------------------------------------------------------
   Preloader Screen (3D Rotating Point-Cloud Sphere + Ethereal Pastel Backdrop)
   Matches Reference: Soft dreamy mist backdrop + 3D particle sphere + LOADING
   -------------------------------------------------------------------------- */
.preloader-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  /* Light mode default matches reference: subtle pink & sky ethereal mist */
  background: 
    radial-gradient(circle at 25% 25%, rgba(248, 220, 230, 0.95) 0%, transparent 55%),
    radial-gradient(circle at 80% 80%, rgba(204, 222, 242, 0.9) 0%, transparent 60%),
    radial-gradient(circle at 50% 50%, #e2d9e2 0%, #cad5e4 100%);
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 0.75s cubic-bezier(0.16, 1, 0.3, 1), 
              visibility 0.75s;
}

[data-theme="dark"] .preloader-overlay {
  background: 
    radial-gradient(circle at 28% 25%, rgba(139, 92, 246, 0.16) 0%, transparent 55%),
    radial-gradient(circle at 76% 75%, rgba(56, 189, 248, 0.14) 0%, transparent 60%),
    radial-gradient(circle at 50% 50%, #0d121e 0%, #06080e 100%);
}

.preloader-overlay.is-loaded {
  opacity: 0;
  transform: scale(1.04);
  visibility: hidden;
  pointer-events: none;
}

.preloader-aura {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  opacity: 0.75;
}

.preloader-aura.aura-1 {
  width: 480px;
  height: 480px;
  top: 10%;
  left: 15%;
  background: radial-gradient(circle, rgba(248, 212, 226, 0.85) 0%, transparent 70%);
}

[data-theme="dark"] .preloader-aura.aura-1 {
  background: radial-gradient(circle, rgba(168, 85, 247, 0.22) 0%, transparent 70%);
}

.preloader-aura.aura-2 {
  width: 520px;
  height: 520px;
  bottom: 10%;
  right: 15%;
  background: radial-gradient(circle, rgba(198, 222, 245, 0.75) 0%, transparent 70%);
}

[data-theme="dark"] .preloader-aura.aura-2 {
  background: radial-gradient(circle, rgba(56, 189, 248, 0.18) 0%, transparent 70%);
}

.preloader-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.preloader-sphere-container {
  position: relative;
  width: 260px;
  height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#preloaderCanvas {
  display: block;
  width: 260px;
  height: 260px;
}

.preloader-label-wrap {
  margin-top: 26px;
  text-align: center;
}

.preloader-label {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.38em;
  text-indent: 0.38em;
  color: #323943;
  text-transform: uppercase;
  user-select: none;
  animation: preloader-pulse 2.2s infinite ease-in-out;
}

[data-theme="dark"] .preloader-label {
  color: #e2e8f0;
}

@keyframes preloader-pulse {
  0%, 100% {
    opacity: 0.88;
    transform: translateY(0);
  }
  50% {
    opacity: 0.45;
    transform: translateY(1px);
  }
}

@media (max-width: 640px) {
  .preloader-sphere-container {
    width: 210px;
    height: 210px;
  }
  #preloaderCanvas {
    width: 210px;
    height: 210px;
  }
  .preloader-label {
    font-size: 12px;
    letter-spacing: 0.32em;
    text-indent: 0.32em;
  }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-body);
}
::-webkit-scrollbar-thumb {
  background: var(--border-card-hover);
  border-radius: var(--radius-pill);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-lavender);
}

::selection {
  background-color: var(--accent-lavender);
  color: #fff;
}

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

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

/* Ambient Backdrops (Soft atmospheric clouds) */
.ambient-glow {
  position: fixed;
  width: 550px;
  height: 550px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(140px);
  opacity: 0.18;
  transition: opacity var(--transition-smooth);
}
.glow-1 {
  top: -100px;
  left: 20%;
  background: radial-gradient(circle, var(--accent-lavender) 0%, transparent 70%);
}
.glow-2 {
  top: 45%;
  right: -80px;
  background: radial-gradient(circle, var(--accent-peach) 0%, transparent 70%);
}
.glow-3 {
  bottom: 0px;
  left: 10%;
  background: radial-gradient(circle, var(--accent-sky) 0%, transparent 70%);
}

.ambient-grid {
  position: fixed;
  inset: 0;
  background-size: 44px 44px;
  background-image: linear-gradient(to right, var(--border-subtle) 1px, transparent 1px),
                    linear-gradient(to bottom, var(--border-subtle) 1px, transparent 1px);
  mask-image: radial-gradient(circle at 50% 50%, black 25%, transparent 85%);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, black 25%, transparent 85%);
  pointer-events: none;
  z-index: 0;
  opacity: 0.45;
}

/* --------------------------------------------------------------------------
   3. Frosted Glass Cards & Interactive Tilt
   -------------------------------------------------------------------------- */
.glass-card {
  background: var(--surface-card);
  backdrop-filter: blur(28px) saturate(150%);
  -webkit-backdrop-filter: blur(28px) saturate(150%);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-card-lg);
  box-shadow: var(--shadow-frosted);
  position: relative;
  transition: transform var(--transition-smooth), border-color var(--transition-smooth), box-shadow var(--transition-smooth), background-color var(--transition-smooth);
}
.glass-card:hover {
  border-color: var(--border-card-hover);
}

.glass-inner-card {
  background: var(--surface-inner);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-card-md);
  box-shadow: inset 0 1px 1px var(--border-inner-bevel);
  transition: all var(--transition-smooth);
}
.glass-inner-card:hover {
  border-color: var(--border-card-hover);
  transform: translateY(-3px);
}

/* Interactive 3D Tilt Effect */
.interactive-tilt {
  transform-style: preserve-3d;
  will-change: transform;
}

/* --------------------------------------------------------------------------
   4. Floating Badges & Animations (Aether Inspiration)
   -------------------------------------------------------------------------- */
.floating-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  font-size: 12.5px;
  font-weight: 600;
  background: var(--surface-card);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--border-card);
  box-shadow: inset 0 1px 1px var(--border-inner-bevel), 0 8px 20px -5px rgba(0, 0, 0, 0.25);
  transition: all var(--transition-fast);
}
.floating-pill:hover {
  border-color: var(--border-card-hover);
  transform: scale(1.02);
}

/* Floating Animations */
.float-anim-1 {
  animation: float-soft-1 5s ease-in-out infinite alternate;
}
.float-anim-2 {
  animation: float-soft-2 6.5s ease-in-out infinite alternate;
}
.float-anim-3 {
  animation: float-soft-3 5.8s ease-in-out infinite alternate;
}

@keyframes float-soft-1 {
  0% { transform: translateY(0px); }
  100% { transform: translateY(-7px); }
}
@keyframes float-soft-2 {
  0% { transform: translateY(0px); }
  100% { transform: translateY(-9px); }
}
@keyframes float-soft-3 {
  0% { transform: translateY(0px); }
  100% { transform: translateY(-6px); }
}

/* --------------------------------------------------------------------------
   5. Aether-inspired Pill Buttons
   -------------------------------------------------------------------------- */
.pill-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-smooth);
}
.pill-btn .btn-arrow {
  display: inline-block;
  font-size: 16px;
  transition: transform var(--transition-smooth);
}
.pill-btn:hover .btn-arrow {
  transform: translateX(4px);
}

/* Primary Pill Button (Gradient with Soft Shadow) */
.primary-pill-btn {
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.5), var(--btn-primary-shadow);
  border: 1px solid rgba(255, 255, 255, 0.25);
}
.primary-pill-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow: inset 0 1px 1.5px rgba(255, 255, 255, 0.7), 0 14px 32px -6px rgba(192, 132, 252, 0.55);
}

/* Frosted Secondary Pill Button */
.frosted-pill-btn {
  background: var(--surface-card);
  color: var(--text-main);
  border: 1px solid var(--border-card);
  box-shadow: inset 0 1px 1.5px var(--border-inner-bevel), 0 8px 20px -5px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.frosted-pill-btn:hover {
  background: var(--surface-card-hover);
  border-color: var(--border-card-hover);
  transform: translateY(-2px);
  box-shadow: inset 0 1px 2px var(--border-inner-bevel), 0 12px 25px -5px rgba(0, 0, 0, 0.25);
}

.mini-pill {
  padding: 7px 16px;
  font-size: 12.5px;
}

.full-width {
  width: 100%;
}

/* --------------------------------------------------------------------------
   6. Subtle Developer Accents & Code Tokens
   -------------------------------------------------------------------------- */
.code-keyword {
  font-family: var(--font-mono);
  color: var(--syntax-keyword);
  font-weight: 600;
}
.code-fn {
  font-family: var(--font-mono);
  color: var(--syntax-fn);
  font-weight: 600;
}
.code-string {
  font-family: var(--font-mono);
  color: var(--syntax-str);
}
.code-comment {
  font-family: var(--font-mono);
  color: var(--syntax-comment);
  font-style: italic;
  font-size: 0.9em;
}
.code-id {
  font-family: var(--font-mono);
  color: var(--syntax-id);
  font-weight: 600;
}
.code-type {
  font-family: var(--font-mono);
  color: var(--syntax-type);
}

.section-tag-code,
.section-tag-row {
  margin-bottom: 12px;
}
.section-tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--accent-lavender);
  background: rgba(192, 132, 252, 0.08);
  border: 1px solid rgba(192, 132, 252, 0.22);
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: inset 0 1px 1px var(--border-inner-bevel);
}

.code-fn-title {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

/* Editorial Clean Bullet List */
.bullet-list-clean {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}
.bullet-list-clean li {
  position: relative;
  padding-left: 18px;
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.6;
}
.bullet-list-clean li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-lavender);
  box-shadow: 0 0 8px rgba(192, 132, 252, 0.4);
}

/* IDE-style Bulleted List */
.bullet-list-ide {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}
.bullet-list-ide li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.6;
}
.bullet-list-ide .line-no {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-subtle);
  background: var(--surface-inner);
  border: 1px solid var(--border-subtle);
  padding: 2px 7px;
  border-radius: 6px;
  flex-shrink: 0;
  margin-top: 2px;
}
.bullet-content {
  flex: 1;
}

/* --------------------------------------------------------------------------
   7. Soft Circular Icon Pods (Aether Bottom Card Style)
   -------------------------------------------------------------------------- */
.pod-purple {
  background: rgba(192, 132, 252, 0.12);
  color: var(--accent-lavender);
  border: 1px solid rgba(192, 132, 252, 0.25);
}
.pod-amber {
  background: rgba(251, 146, 60, 0.12);
  color: var(--accent-peach);
  border: 1px solid rgba(251, 146, 60, 0.25);
}
.pod-emerald {
  background: rgba(52, 211, 153, 0.12);
  color: var(--accent-mint);
  border: 1px solid rgba(52, 211, 153, 0.25);
}
.pod-cyan {
  background: rgba(56, 189, 248, 0.12);
  color: var(--accent-sky);
  border: 1px solid rgba(56, 189, 248, 0.25);
}

.highlight-icon-pod,
.pillar-icon-pod,
.cat-icon-pod,
.card-icon-pod {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: inset 0 1px 1px var(--border-inner-bevel);
  transition: transform var(--transition-spring);
}
.highlight-icon-pod:hover,
.pillar-icon-pod:hover,
.cat-icon-pod:hover,
.card-icon-pod:hover {
  transform: scale(1.1);
}

/* --------------------------------------------------------------------------
   8. Layout Architecture
   -------------------------------------------------------------------------- */
.page-container {
  max-width: 1480px;
  margin: 0 auto;
  padding: 36px 28px;
  display: flex;
  position: relative;
  z-index: 1;
  gap: 36px;
}

/* Mobile Header */
.mobile-header {
  display: none;
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 90;
  padding: 14px 22px;
  background: var(--dock-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border-card);
  align-items: center;
  justify-content: space-between;
}
.mobile-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-monogram {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  color: var(--accent-lavender);
  background: var(--surface-inner);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid var(--border-card);
  box-shadow: inset 0 1px 1px var(--border-inner-bevel);
}
.brand-name {
  font-weight: 800;
  font-size: 16px;
  letter-spacing: -0.02em;
}
.brand-code-status {
  display: block;
  font-size: 11px;
}
.mobile-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* --------------------------------------------------------------------------
   9. Floating Nav Dock
   -------------------------------------------------------------------------- */
.sidebar-dock {
  position: fixed;
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;
  background: var(--dock-bg);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-pill);
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-dock);
}

.dock-btn {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all var(--transition-fast);
}
.dock-btn:hover {
  color: var(--text-main);
  background: var(--surface-inner);
}

[data-theme="dark"] .sun-icon { display: block; }
[data-theme="dark"] .moon-icon { display: none; }
[data-theme="light"] .sun-icon { display: none; }
[data-theme="light"] .moon-icon { display: block; }

.dock-divider {
  width: 20px;
  height: 1px;
  background: var(--border-card);
  margin: 4px 0;
}

.dock-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dock-link {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  position: relative;
  transition: all var(--transition-fast);
}
.dock-link:hover,
.dock-link.active {
  color: var(--accent-lavender);
  background: var(--surface-inner);
}
.dock-link.active {
  box-shadow: inset 0 1px 1px var(--border-inner-bevel), 0 0 15px rgba(192, 132, 252, 0.3);
}

.dock-link .tooltip {
  position: absolute;
  left: calc(100% + 14px);
  top: 50%;
  transform: translateY(-50%) translateX(-8px);
  background: var(--dock-bg);
  backdrop-filter: blur(20px);
  color: var(--text-main);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 8px;
  border: 1px solid var(--border-card);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  box-shadow: var(--shadow-frosted);
  transition: all var(--transition-fast);
}
.dock-link:hover .tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0);
}

/* --------------------------------------------------------------------------
   10. Sticky User Profile Sidebar
   -------------------------------------------------------------------------- */
.sidebar-user {
  width: 360px;
  flex-shrink: 0;
  position: sticky;
  top: 36px;
  height: calc(100vh - 72px);
  margin-left: 64px;
}

.user-card-wrap {
  height: 100%;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow-y: auto;
  border-radius: var(--radius-card-xl);
}
.user-card-wrap::-webkit-scrollbar {
  display: none;
}

.status-badge-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.status-badge {
  background: rgba(52, 211, 153, 0.1);
  border-color: rgba(52, 211, 153, 0.25);
}
.status-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-mint);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-mint);
  animation: pulse-dot 2s infinite ease-in-out;
}
@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.6; }
}
.status-text {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-mint);
}
.status-comment {
  font-size: 11px;
}

/* Portrait Photo Avatar */
.user-avatar-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  margin: 18px 0;
}
.profile-photo-box {
  width: 144px;
  height: 144px;
  border-radius: 38px;
  position: relative;
  overflow: hidden;
  border: 2px solid var(--border-card-hover);
  box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.45), inset 0 1.5px 2px rgba(255, 255, 255, 0.2);
  background: var(--surface-inner);
  z-index: 1;
}
.profile-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.profile-photo-box:hover .profile-photo {
  transform: scale(1.05);
}
.photo-decor-ring {
  position: absolute;
  inset: -6px;
  border-radius: 44px;
  border: 1.5px dashed var(--border-card-hover);
  opacity: 0.55;
  animation: rotate-ring 28s linear infinite;
  pointer-events: none;
}
@keyframes rotate-ring {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Fallback monogram support */
.monogram-box {
  width: 140px;
  height: 140px;
  border-radius: 40px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid var(--border-card);
  box-shadow: inset 0 1.5px 2px var(--border-inner-bevel), 0 16px 36px -10px rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.monogram-letters {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 48px;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, var(--text-main) 20%, var(--accent-lavender) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.avatar-tag-badge {
  margin-top: -14px;
  z-index: 2;
  font-size: 11.5px;
  background: var(--surface-card);
  border: 1px solid var(--border-card);
  color: var(--text-main);
}
.badge-sparkle {
  color: var(--accent-lavender);
}

/* User Info */
.user-info {
  text-align: center;
  margin-top: 6px;
}
.user-name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.03em;
  color: var(--text-main);
  margin-bottom: 5px;
}
.user-role {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--accent-lavender);
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}
.user-institution {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}

.card-separator {
  height: 1px;
  background: var(--border-card);
  margin: 14px 0;
}

/* Quick Contacts */
.quick-contacts {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.contact-pill.soft-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12.5px;
  color: var(--text-muted);
  background: var(--surface-inner);
  border: 1px solid var(--border-card);
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  box-shadow: inset 0 1px 1px var(--border-inner-bevel);
  transition: all var(--transition-fast);
}
.contact-pill.soft-pill:hover {
  color: var(--text-main);
  border-color: var(--border-card-hover);
  transform: translateY(-1px);
}
.pill-icon-pod {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--surface-card);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Social links */
.social-links-row {
  display: flex;
  gap: 10px;
  margin: 10px 0;
}
.social-pill-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-main);
  background: var(--surface-inner);
  border: 1px solid var(--border-card);
  padding: 10px;
  border-radius: var(--radius-pill);
  box-shadow: inset 0 1px 1px var(--border-inner-bevel);
  transition: all var(--transition-fast);
}
.social-pill-btn:hover {
  border-color: var(--accent-lavender);
  color: var(--accent-lavender);
  transform: translateY(-2px);
}

.sidebar-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

/* --------------------------------------------------------------------------
   11. Main Content Feed
   -------------------------------------------------------------------------- */
.main-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 68px;
  padding-bottom: 80px;
}

.section {
  scroll-margin-top: 60px;
}

/* Reveal on Scroll */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-on-scroll.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-main);
  line-height: 1.15;
  margin-bottom: 8px;
}

.section-subtitle {
  font-size: 15px;
  color: var(--text-muted);
  max-width: 620px;
  line-height: 1.55;
  margin-bottom: 28px;
}

/* --- HERO SECTION --- */
.hero-section {
  padding-top: 12px;
}

.floating-pills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}
.hero-chip-pill {
  padding: 8px 18px;
  font-size: 13px;
}
.pill-sparkle { color: var(--accent-lavender); }
.pill-icon-leaf { color: var(--accent-mint); }
.pill-icon-heart { color: var(--accent-peach); }
.pill-strong { font-weight: 700; color: var(--text-main); margin-left: 2px; }

.section-badge-code {
  font-family: var(--font-mono);
  font-size: 12.5px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface-inner);
  border: 1px solid var(--border-card);
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  box-shadow: inset 0 1px 1px var(--border-inner-bevel);
  margin-bottom: 18px;
}
.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-mint);
  box-shadow: 0 0 8px var(--accent-mint);
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(34px, 5vw, 54px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.12;
  margin-bottom: 20px;
  max-width: 840px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--accent-lavender) 0%, var(--accent-peach) 50%, var(--accent-sky) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.dev-cursor {
  display: inline-block;
  font-family: var(--font-mono);
  color: var(--accent-lavender);
  font-weight: 300;
  margin-left: 4px;
  animation: blink-caret 1.1s infinite step-start;
  user-select: none;
}

@keyframes blink-caret {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.hero-subtext {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 720px;
  line-height: 1.65;
  margin-bottom: 32px;
}

/* Highlights Container (Aether Bottom Bar Card) */
.highlights-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 26px;
  border-radius: var(--radius-card-xl);
  margin-bottom: 36px;
  gap: 14px;
}
.highlight-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex: 1;
  min-width: 0;
}
.highlight-icon-pod {
  width: 44px;
  height: 44px;
  min-width: 44px;
  margin-top: 2px;
}
.highlight-content {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.highlight-title-row {
  display: flex;
  align-items: baseline;
  gap: 5px;
  white-space: nowrap;
  min-height: 28px;
  line-height: 1.15;
}
.highlight-title-row .code-comment {
  white-space: nowrap;
  font-size: 11px;
}
.highlight-number {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.15;
}
.highlight-number sup { font-size: 14px; color: var(--accent-lavender); }
.highlight-label {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.35;
  margin-top: 1px;
}
.highlight-sub {
  font-size: 11px;
  color: var(--text-subtle);
  line-height: 1.35;
  margin-top: 2px;
}
.highlight-divider {
  width: 1px;
  height: 48px;
  background: var(--border-card);
  flex-shrink: 0;
  align-self: center;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.hero-code-badge {
  font-family: var(--font-mono);
  font-size: 12.5px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: var(--surface-inner);
  border: 1px solid var(--border-card);
  color: var(--text-muted);
}

/* --- ABOUT SECTION --- */
.about-card {
  padding: 38px;
}
.code-header-badge {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.about-main-text {
  position: relative;
  margin-bottom: 32px;
}
.quote-mark {
  font-family: var(--font-display);
  font-size: 72px;
  line-height: 0.8;
  color: var(--accent-lavender);
  opacity: 0.35;
  margin-bottom: 12px;
}
.summary-paragraph {
  font-size: 18px;
  line-height: 1.65;
  color: var(--text-main);
  font-weight: 500;
}

/* --- ABOUT SECTION: INFINITE MARQUEE CAROUSEL --- */
.pillars-marquee-wrapper {
  overflow: hidden;
  width: 100%;
  position: relative;
  margin-top: 28px;
  border-top: 1px solid var(--border-card);
  padding: 24px 0 6px;
  /* Smooth edge fade gradients for elegant seamless entrance and exit */
  mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
}

.pillars-marquee-track {
  display: flex;
  width: max-content;
}

.pillars-marquee-group {
  display: flex;
  gap: 20px;
  padding-right: 20px;
  flex-shrink: 0;
  animation: marquee-drift-left 32s linear infinite;
  will-change: transform;
}

/* Pause smoothly when user hovers to read */
.pillars-marquee-wrapper:hover .pillars-marquee-group {
  animation-play-state: paused;
}

.pillar-box {
  width: 290px;
  flex-shrink: 0;
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-card-md);
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.pillar-box:hover {
  transform: translateY(-4px);
  border-color: var(--accent-lavender);
  box-shadow: 0 14px 30px -10px rgba(192, 132, 252, 0.22);
}

.pillar-code-meta {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-muted);
  margin: 12px 0 4px;
}

.pillar-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
}

.pillar-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

@keyframes marquee-drift-left {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}

@media (max-width: 640px) {
  .pillar-box {
    width: 250px;
    padding: 20px 18px;
  }
  .pillars-marquee-group {
    animation-duration: 24s;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pillars-marquee-group {
    animation: none;
  }
  .pillars-marquee-wrapper {
    overflow-x: auto;
    mask-image: none;
    -webkit-mask-image: none;
  }
}

/* --- EDUCATION SECTION --- */
.timeline-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.timeline-card {
  padding: 30px;
}
.timeline-card.featured-edu {
  border-color: rgba(192, 132, 252, 0.35);
}

.timeline-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  flex-wrap: wrap;
  gap: 10px;
}
.badge-time-pill {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--accent-lavender);
  background: var(--surface-inner);
  border: 1px solid var(--border-card);
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  box-shadow: inset 0 1px 1px var(--border-inner-bevel);
}
.status-pill-soft {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-main);
  background: var(--surface-inner);
  border: 1px solid var(--border-card);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
}
.status-dot-mini {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-mint);
}
.status-pill-soft.muted {
  color: var(--text-subtle);
}

.timeline-degree {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
}
.timeline-institution {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--accent-lavender);
  margin-bottom: 12px;
}
.timeline-note {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.edu-soft-pill {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--surface-inner);
  border: 1px solid var(--border-card);
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  box-shadow: inset 0 1px 1px var(--border-inner-bevel);
}

/* --- EXPERIENCE SECTION: STICKY STACKING CARDS EFFECT --- */
.stacked-cards-deck {
  display: flex;
  flex-direction: column;
  position: relative;
  padding-bottom: 24px;
}

.stacked-card-item {
  position: sticky;
  /* Staggered sticky top offsets:
     Card 0 sticks at top: 90px
     Card 1 sticks at top: 116px (reveals Card 0's top tab)
     Card 2 sticks at top: 142px (reveals Card 1's top tab)
     Card 3 sticks at top: 168px (reveals Card 2's top tab)
  */
  top: calc(90px + calc(var(--card-index, 0) * 26px));
  z-index: calc(var(--card-index, 0) + 2);
  
  /* Ample margin between cards so scrolling down the page brings the next card over the previous */
  margin-bottom: 56px;
  
  /* Rich opaque surface so text underneath doesn't show through */
  background: rgba(16, 21, 32, 0.96);
  backdrop-filter: blur(32px) saturate(160%);
  -webkit-backdrop-filter: blur(32px) saturate(160%);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-card-xl);
  
  /* Physical card deck drop shadow */
  box-shadow: 
    0 -12px 32px -4px rgba(0, 0, 0, 0.5),
    inset 0 1px 1.5px var(--border-inner-bevel),
    0 24px 50px -12px rgba(0, 0, 0, 0.65);
    
  padding: 34px 38px;
  transform-origin: center top;
  will-change: transform, filter;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), 
              filter 0.25s cubic-bezier(0.16, 1, 0.3, 1), 
              border-color 0.3s ease, 
              box-shadow 0.3s ease;
}

[data-theme="light"] .stacked-card-item {
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 
    0 -10px 28px -4px rgba(15, 23, 42, 0.08),
    inset 0 1.5px 2px #ffffff,
    0 24px 50px -12px rgba(15, 23, 42, 0.12);
}

/* Card Stack Header with Tab */
.card-stack-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
  flex-wrap: wrap;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
}

.card-stack-tab {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--surface-inner);
  border: 1px solid var(--border-card);
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  box-shadow: inset 0 1px 1px var(--border-inner-bevel);
}

.card-stack-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-lavender);
  background: rgba(192, 132, 252, 0.12);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}
.card-stack-badge.latest {
  color: var(--accent-sky);
  background: rgba(56, 189, 248, 0.14);
}

.card-stack-year {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
}

.latest-tab {
  border-color: rgba(56, 189, 248, 0.35);
  background: rgba(56, 189, 248, 0.08);
}

.featured-latest-card {
  border-color: rgba(56, 189, 248, 0.4);
}
.featured-latest-card:hover {
  border-color: var(--accent-sky);
  box-shadow: 
    0 -12px 32px -4px rgba(56, 189, 248, 0.2),
    inset 0 1px 1.5px var(--border-inner-bevel),
    0 24px 50px -12px rgba(0, 0, 0, 0.65);
}

.card-stack-body .exp-org {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 4px;
}
.card-stack-body .exp-role {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--accent-lavender);
  margin-bottom: 16px;
}

.milestone-badge-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-subtle);
  background: var(--surface-card);
  border: 1px solid var(--border-card);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
}
.milestone-badge-tag.latest {
  color: var(--accent-sky);
  border-color: rgba(56, 189, 248, 0.35);
  background: rgba(56, 189, 248, 0.1);
}

.exp-meta-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.code-scope-badge {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--syntax-id);
}

.card-pipeline-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  margin-bottom: 14px;
  padding: 6px 14px;
  background: var(--surface-inner);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-card-sm);
  font-family: var(--font-mono);
  font-size: 11.5px;
  box-shadow: inset 0 1px 1px var(--border-inner-bevel);
  max-width: 100%;
  flex-wrap: wrap;
}
.pipeline-label {
  color: var(--accent-lavender);
  font-weight: 700;
  text-transform: lowercase;
}
.pipeline-code {
  color: var(--text-muted);
  font-family: inherit;
}

.card-tech-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 18px;
  border-top: 1px solid var(--border-card);
}
.code-chip {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent-lavender);
  background: var(--surface-inner);
  border: 1px solid var(--border-card);
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  box-shadow: inset 0 1px 1px var(--border-inner-bevel);
  transition: all var(--transition-fast);
}
.code-chip:hover {
  border-color: var(--accent-lavender);
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .stacked-card-item {
    top: calc(75px + calc(var(--card-index, 0) * 18px));
    padding: 22px 20px;
    margin-bottom: 36px;
  }
  .card-stack-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* --- PROJECTS SECTION --- */
.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
}
.project-card {
  padding: 34px;
  position: relative;
  overflow: hidden;
}
.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: linear-gradient(to bottom, var(--accent-lavender), var(--accent-sky));
  opacity: 0.9;
}
.project-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  flex-wrap: wrap;
  gap: 10px;
}
.project-award-badge {
  color: var(--accent-peach);
  border-color: rgba(251, 146, 60, 0.3);
  background: rgba(251, 146, 60, 0.08);
}
.project-award-badge.hackathon {
  color: var(--accent-sky);
  border-color: rgba(56, 189, 248, 0.3);
  background: rgba(56, 189, 248, 0.08);
}
.project-award-badge.webapp {
  color: var(--accent-mint);
  border-color: rgba(52, 211, 153, 0.3);
  background: rgba(52, 211, 153, 0.08);
}
.project-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 4px;
}
.project-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.project-arch-banner {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  margin-bottom: 6px;
  padding: 7px 16px;
  border-radius: var(--radius-card-sm);
  background: var(--surface-inner);
  border: 1px solid var(--border-card);
  font-family: var(--font-mono);
  font-size: 12px;
  box-shadow: inset 0 1px 1px var(--border-inner-bevel);
  max-width: 100%;
  flex-wrap: wrap;
}
.arch-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--accent-lavender);
  font-weight: 700;
  text-transform: lowercase;
}
.arch-spec {
  color: var(--text-muted);
  font-weight: 500;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.tech-pill-soft {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-main);
  background: var(--surface-inner);
  border: 1px solid var(--border-card);
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  box-shadow: inset 0 1px 1px var(--border-inner-bevel);
  transition: all var(--transition-fast);
}
.tech-pill-soft.code-accent {
  font-family: var(--font-mono);
  color: var(--accent-lavender);
  background: rgba(192, 132, 252, 0.08);
  border-color: rgba(192, 132, 252, 0.28);
}
.tech-pill-soft:hover {
  border-color: var(--accent-sky);
  color: var(--accent-sky);
  transform: translateY(-2px);
}

/* --- SKILLS & TECH STACK SECTION --- */
.skills-category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 22px;
}
.skill-category-card {
  padding: 28px;
}
.cat-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}
.code-category-sub {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-subtle);
}
.cat-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--text-main);
}
.skill-pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.skill-pill-soft {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface-inner);
  border: 1px solid var(--border-card);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  box-shadow: inset 0 1px 1px var(--border-inner-bevel);
  transition: all var(--transition-fast);
}
.skill-pill-soft:hover {
  background: var(--surface-card-hover);
  border-color: var(--accent-lavender);
  color: var(--accent-lavender);
  transform: translateY(-2px);
}

/* --- CONTACT SECTION --- */
.contact-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 26px;
}
.contact-cards-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.contact-info-card {
  padding: 18px 22px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.card-text {
  flex: 1;
  min-width: 0;
}
.card-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-subtle);
  margin-bottom: 2px;
}
.card-val {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: block;
}
.card-val:hover {
  color: var(--accent-lavender);
}
.copy-small-pill {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-pill);
  background: var(--surface-inner);
  border: 1px solid var(--border-card);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 1px 1px var(--border-inner-bevel);
  transition: all var(--transition-fast);
}
.copy-small-pill:hover {
  border-color: var(--accent-lavender);
  color: var(--accent-lavender);
  transform: scale(1.05);
}

/* Contact Form */
.contact-form-card {
  padding: 34px;
}
.form-title-row {
  margin-bottom: 22px;
}
.form-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-main);
  margin: 2px 0;
}
.form-sub {
  font-size: 13px;
  color: var(--text-muted);
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-group label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-muted);
}
.form-group input,
.form-group select,
.form-group textarea {
  font-family: inherit;
  font-size: 14px;
  color: var(--text-main);
  background: var(--surface-inner);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-card-sm);
  padding: 11px 16px;
  outline: none;
  box-shadow: inset 0 1px 1px var(--border-inner-bevel);
  transition: border-color var(--transition-fast), background-color var(--transition-fast);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent-lavender);
  background: var(--surface-card);
}
.form-group select option {
  background: var(--bg-body);
  color: var(--text-main);
}
.form-group textarea {
  resize: vertical;
}

/* --- FOOTER --- */
.site-footer {
  margin-top: 36px;
}
.footer-inner {
  padding: 36px 32px 28px;
}
.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.footer-monogram {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  color: var(--accent-lavender);
  background: var(--surface-inner);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  border: 1px solid var(--border-card);
  box-shadow: inset 0 1px 1px var(--border-inner-bevel);
}
.footer-name {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
}
.footer-role {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}
.footer-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-nav a {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
}
.footer-nav a:hover {
  color: var(--accent-lavender);
}
.footer-divider {
  height: 1px;
  background: var(--border-card);
  margin: 24px 0;
}
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-quote {
  font-size: 13px;
  color: var(--text-muted);
}
.footer-copy {
  font-size: 12px;
  color: var(--text-subtle);
}

/* --------------------------------------------------------------------------
   12. Developer Terminal Toast & IDE Status Bar
   -------------------------------------------------------------------------- */
.toast-notification {
  position: fixed;
  bottom: 42px;
  right: 28px;
  background: var(--surface-card);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid var(--border-card);
  color: var(--text-main);
  padding: 10px 18px;
  border-radius: var(--radius-card-sm);
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 16px 36px -8px rgba(0, 0, 0, 0.4), inset 0 1px 1px var(--border-inner-bevel);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: all var(--transition-smooth);
  font-family: var(--font-mono);
  font-size: 12.5px;
}
.toast-notification.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.toast-shell-prompt {
  color: var(--accent-lavender);
  font-weight: 700;
}
.toast-command {
  color: var(--accent-sky);
  font-weight: 600;
}
.toast-arrow {
  color: var(--text-subtle);
  font-weight: 400;
}
.toast-message {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-main);
}
.toast-status-tag {
  color: var(--accent-mint);
  font-weight: 700;
  font-size: 11.5px;
}
.toast-cursor {
  color: var(--accent-lavender);
  animation: blink-caret 1s infinite step-start;
  margin-left: 1px;
}

/* --- DEVELOPER IDE STATUS BAR --- */
.ide-status-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 27px;
  z-index: 950;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  background: rgba(8, 12, 20, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-card);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  user-select: none;
}

[data-theme="light"] .ide-status-bar {
  background: rgba(248, 250, 252, 0.92);
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.ide-status-left,
.ide-status-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

.ide-divider {
  width: 1px;
  height: 12px;
  background: var(--border-card);
  margin: 0 2px;
}

.ide-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 11px;
  font-family: inherit;
  color: var(--text-muted);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.ide-btn:hover {
  background: var(--surface-inner);
  color: var(--accent-lavender);
}

.ide-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 6px;
  font-size: 11px;
  color: var(--text-muted);
}

.ide-icon {
  flex-shrink: 0;
}

.ide-muted {
  color: var(--text-subtle);
}

.ide-pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-mint);
  box-shadow: 0 0 8px rgba(52, 211, 153, 0.8);
  animation: pulse-dot 2.2s infinite ease-in-out;
}

.ide-lang-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-sky);
}

.ide-ping-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-mint);
}

@keyframes pulse-dot {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.45;
    transform: scale(0.85);
  }
}

/* --------------------------------------------------------------------------
   13. Responsive Breakpoints
   -------------------------------------------------------------------------- */
@media (max-width: 1200px) {
  .sidebar-user {
    width: 320px;
    margin-left: 54px;
  }
  .highlights-container {
    flex-wrap: wrap;
  }
  .highlight-divider {
    display: none;
  }
}

@media (max-width: 1024px) {
  .page-container {
    flex-direction: column;
    padding: 20px 16px;
    gap: 32px;
  }

  .mobile-header {
    display: flex;
  }

  /* Bottom Floating Dock */
  .sidebar-dock {
    top: auto;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    flex-direction: row;
    padding: 8px 16px;
    border-radius: var(--radius-pill);
    z-index: 960;
  }
  .dock-top, .dock-bottom, .dock-divider {
    display: none;
  }
  .dock-list {
    flex-direction: row;
    gap: 6px;
  }
  .dock-link .tooltip {
    display: none;
  }

  .sidebar-user {
    position: static;
    width: 100%;
    height: auto;
    margin-left: 0;
  }
  .user-card-wrap {
    height: auto;
  }

  .main-content {
    padding-bottom: 110px;
  }

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

  .ide-hide-mobile {
    display: none !important;
  }

  .toast-notification {
    bottom: 84px;
    right: 16px;
    left: 16px;
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .hero-headline {
    font-size: 30px;
  }
  .highlights-container {
    flex-direction: column;
    align-items: stretch;
    padding: 20px;
  }
  .about-card, .exp-card, .project-card, .contact-form-card {
    padding: 24px 18px;
  }
  .footer-inner {
    padding: 24px 18px;
  }
  .footer-top, .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-nav {
    gap: 12px;
  }
}
