/* ============================================================
   BENTOVIBE OBSIDIAN DESIGN SYSTEM · nnavyy.dev
   Inspired by BentoVibe (Framer) & Linear Studio
   Zero Slop · Zero Cliché Emojis · Real Screenshots Only
   Pure Typographic & Spatial Hierarchy
   ============================================================ */

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-base: #07080a;
  --bg-card: #0d0f14;
  --bg-card-elevated: #13161f;
  --bg-card-hover: #181c28;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.2);
  --border-active: rgba(255, 255, 255, 0.35);

  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --text-faint: #4b5563;

  --accent-blue: #2563eb;
  --accent-blue-dark: #1d4ed8;
  --accent-amber: #f59e0b;
  --accent-amber-dark: #b45309;

  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'Azeret Mono', 'JetBrains Mono', monospace;
  --font-display: 'Inter', system-ui, -apple-system, sans-serif;

  --radius-card: 22px;
  --radius-inner: 14px;
  --radius-pill: 9999px;
  
  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

/* Screen reader only utility for SEO and accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Custom Profile Avatar Cursor */
html,
body {
  cursor: url('../assets/avatar-cursor-32.png') 2 3, auto;
}

a,
button,
[role="button"],
.btn-pill-full,
.btn-top-action,
.social-circle-btn,
.profile-footer-link,
.bento-arrow-btn,
.bento-card.clickable,
.modal-close-btn,
.ai-chip,
.ai-send-btn,
.project-tag,
.sys-badge,
.modal-project-card,
.sub-tab-pill,
.flow-node,
.chip-filter {
  cursor: url('../assets/avatar-cursor-pointer-32.png') 2 3, pointer;
}

input[type="text"],
input[type="email"],
textarea {
  cursor: text;
}

body {
  background-color: var(--bg-base);
  background-image: 
    radial-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1px),
    radial-gradient(ellipse 90% 60% at 50% -15%, rgba(37, 99, 235, 0.16), transparent 70%);
  background-size: 26px 26px, 100% 100%;
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding: 24px 20px 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ---- Ambient Top Glow ---- */
.ambient-glow {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1000px;
  height: 280px;
  background: radial-gradient(ellipse at 50% 0%, rgba(37, 99, 235, 0.15), transparent 75%);
  pointer-events: none;
  z-index: 0;
}

/* ============================================================
   TOP BAR (Clock & Minimal Action Nav)
   ============================================================ */
.bento-topbar {
  width: 100%;
  max-width: 1280px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 8px 24px;
  position: relative;
  z-index: 10;
}

.bento-clock {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
}

/* ============================================================
   FLUID TACTILE MOTION & CLICK SYSTEM (Linear / Apple Aesthetics)
   ============================================================ */
.bento-card {
  position: relative;
  overflow: hidden;
}

.bento-card:active {
  transform: scale(0.985);
  transition: transform 0.09s var(--ease-spring);
}

.bento-card:active .bento-arrow-btn {
  transform: scale(0.92);
}

button:active,
.btn-top-action:active,
.btn-pill-full:active,
.social-circle-btn:active,
.bento-arrow-btn:active,
.btn-link:active,
.profile-footer-link:active,
.modal-close-btn:active,
.ai-chip:active,
.ai-send-btn:active {
  transform: scale(0.93) !important;
  transition: transform 0.08s var(--ease-spring) !important;
}

.bentovibe-card:active,
.modal-project-card:active {
  transform: scale(0.988);
  transition: transform 0.09s var(--ease-spring);
}

/* Fluid Luminous Click Coordinate Ripple */
.tactile-ripple {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.45) 0%, rgba(96, 165, 250, 0.25) 45%, transparent 70%);
  transform: translate(-50%, -50%) scale(0);
  animation: tactile-ripple-expand 0.42s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  pointer-events: none;
  z-index: 100;
}

@keyframes tactile-ripple-expand {
  0% {
    transform: translate(-50%, -50%) scale(0);
    opacity: 0.9;
  }
  100% {
    transform: translate(-50%, -50%) scale(24);
    opacity: 0;
  }
}

/* Card Border Flash On Click */
.card-click-active {
  animation: card-click-flash 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes card-click-flash {
  0% {
    border-color: rgba(255, 255, 255, 0.45);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18), 0 8px 30px rgba(37, 99, 235, 0.2);
  }
  100% {
    border-color: var(--border-hover);
    box-shadow: none;
  }
}

.bento-top-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

/* Sleek Linear/Apple Segmented Language Switcher */
.lang-switch-pill {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-pill);
  padding: 3px;
  gap: 2px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.3);
}

.lang-switch-opt {
  background: transparent;
  border: none;
  color: #71717a;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.lang-switch-opt:hover {
  color: #ffffff;
}

.lang-switch-opt.active {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.btn-top-action {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s var(--ease-spring);
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-top-action:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  border-color: var(--border-hover);
  transform: translateY(-1px);
}

.btn-top-action.active-glow {
  background: rgba(37, 99, 235, 0.15);
  border-color: rgba(37, 99, 235, 0.4);
  color: #93c5fd;
}

.btn-top-action.active-glow:hover {
  background: rgba(37, 99, 235, 0.25);
  border-color: rgba(37, 99, 235, 0.6);
}

/* ============================================================
   MASTER BENTO CONTAINER
   ============================================================ */
.bento-dashboard {
  width: 100%;
  max-width: 1280px;
  display: grid;
  grid-template-columns: 280px 1.15fr 1.35fr;
  gap: 20px;
  position: relative;
  z-index: 10;
}

.bento-dashboard > * {
  min-width: 0;
}

/* ---- Generic Bento Card ---- */
.bento-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s var(--ease-spring), box-shadow 0.3s var(--ease-spring), transform 0.3s var(--ease-spring);
}

.bento-card:hover {
  border-color: var(--border-hover);
}

/* Circular Arrow Link (BentoVibe signature element) */
.bento-arrow-btn {
  position: absolute;
  bottom: 18px;
  right: 18px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #ffffff;
  color: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
  border: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
  transition: transform 0.25s var(--ease-spring), background-color 0.2s;
  z-index: 5;
}

.bento-arrow-btn svg {
  width: 16px;
  height: 16px;
  stroke-width: 2.5;
  transition: transform 0.25s var(--ease-spring);
}

.bento-card:hover .bento-arrow-btn {
  transform: scale(1.08);
}

.bento-card:hover .bento-arrow-btn svg {
  transform: translate(1px, -1px);
}

/* ============================================================
   COLUMN 1: PROFILE & IDENTITY
   ============================================================ */
.bento-profile-col {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px 22px;
  background: rgba(13, 15, 20, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.profile-avatar-wrap {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  padding: 2px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.03));
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  flex-shrink: 0;
}

.profile-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 20%;
  background: #18181b;
  display: block;
}

.profile-meta {
  display: flex;
  flex-direction: column;
}

.profile-name {
  font-family: var(--font-sans);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--text-main);
  line-height: 1.2;
}

.profile-role {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  margin-top: 4px;
}

.profile-bio {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: #a1a1aa;
  line-height: 1.65;
  margin-bottom: 28px;
}

.profile-cta-wrap {
  margin-bottom: 12px;
}

.btn-pill-full {
  width: 100%;
  padding: 11px 20px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-main);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  transition: all 0.25s var(--ease-spring);
}

.btn-pill-full:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-hover);
  transform: translateY(-1px);
}

.profile-socials {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
  margin-bottom: 2px;
}

.social-circle-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  position: relative;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
              background 0.26s ease,
              border-color 0.26s ease,
              box-shadow 0.3s ease,
              color 0.26s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.social-circle-btn svg {
  width: 18px;
  height: 18px;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
              color 0.26s ease,
              fill 0.26s ease,
              stroke 0.26s ease;
}

/* Hover base: gentle lift and subtle scale */
.social-circle-btn:hover {
  transform: translateY(-2px) scale(1.05);
}

.social-circle-btn:hover svg {
  transform: scale(1.06);
}

/* GITHUB (Octocat Tilt Dwell Animation) */
.social-circle-btn.social-github:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.28);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
}
.social-circle-btn.social-github:hover svg {
  fill: #ffffff;
  animation: ghWaggle 0.75s ease 0.5s 1 forwards;
}

@keyframes ghWaggle {
  0% { transform: scale(1) rotate(0deg); }
  25% { transform: scale(1.12) rotate(-8deg); }
  50% { transform: scale(1.12) rotate(8deg); }
  75% { transform: scale(1.05) rotate(-3deg); }
  100% { transform: scale(1) rotate(0deg); }
}

/* INSTAGRAM (Shutter Aperture & Flash Pulse Dwell Animation) */
.social-circle-btn.social-instagram:hover {
  background: rgba(225, 48, 108, 0.08);
  border-color: rgba(225, 48, 108, 0.35);
  box-shadow: 0 4px 14px rgba(225, 48, 108, 0.22);
}
.social-circle-btn.social-instagram:hover svg {
  stroke: url(#igGradient);
}
.social-circle-btn.social-instagram .ig-lens {
  transform-origin: 12px 12px;
}
.social-circle-btn.social-instagram .ig-flash {
  transform-origin: 17.5px 6.5px;
}
.social-circle-btn.social-instagram:hover .ig-lens {
  animation: igLensSnap 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) 0.5s 1 forwards;
}
.social-circle-btn.social-instagram:hover .ig-flash {
  animation: igFlashPulse 0.7s ease 0.5s 1 forwards;
}

@keyframes igLensSnap {
  0% { transform: scale(1); }
  45% { transform: scale(1.3); }
  75% { transform: scale(0.92); }
  100% { transform: scale(1); }
}
@keyframes igFlashPulse {
  0% { opacity: 1; }
  40% { opacity: 0.1; transform: scale(0.5); }
  60% { opacity: 1; transform: scale(1.5); }
  100% { opacity: 1; transform: scale(1); }
}

/* TELEGRAM (Paper Plane Only Flight - Blue Circle Stays) */
.social-circle-btn.social-telegram {
  overflow: hidden;
}
.social-circle-btn.social-telegram .tele-bg {
  fill: currentColor;
  transition: fill 0.25s ease;
}
.social-circle-btn.social-telegram .tele-plane {
  fill: #0d0f14;
  transition: fill 0.25s ease;
}
.social-circle-btn.social-telegram:hover {
  background: rgba(36, 161, 222, 0.08);
  border-color: rgba(36, 161, 222, 0.35);
  box-shadow: 0 4px 14px rgba(36, 161, 222, 0.22);
}
.social-circle-btn.social-telegram:hover .tele-bg {
  fill: #24a1de;
  /* Blue circle STAYS completely fixed in place! */
}
.social-circle-btn.social-telegram:hover .tele-plane {
  fill: #ffffff;
  /* Only the white paper plane flies with buttery smooth glide! */
  animation: telePlaneFlight 1.8s cubic-bezier(0.2, 0.9, 0.3, 1) 0.5s 1 forwards;
}

@keyframes telePlaneFlight {
  0% {
    transform: translate(0, 0) scale(1) rotate(0deg);
    opacity: 1;
  }
  18% {
    transform: translate(-1.5px, 1.5px) scale(0.96) rotate(-4deg);
    opacity: 1;
  }
  45% {
    transform: translate(28px, -28px) scale(0.62) rotate(-16deg);
    opacity: 0;
  }
  52% {
    transform: translate(-22px, 22px) scale(0.68) rotate(-10deg);
    opacity: 0;
  }
  76% {
    transform: translate(1.5px, -1.5px) scale(1.04) rotate(2deg);
    opacity: 1;
  }
  90% {
    transform: translate(-0.5px, 0.5px) scale(0.99) rotate(-1deg);
    opacity: 1;
  }
  100% {
    transform: translate(0, 0) scale(1) rotate(0deg);
    opacity: 1;
  }
}

/* GMAIL (Seamless 3D Envelope Opening & Letter Reveal) */
.social-circle-btn.social-email .mail-svg {
  overflow: visible;
}
.social-circle-btn.social-email .mail-back {
  fill: currentColor;
  opacity: 0.15;
  transition: fill 0.25s ease, opacity 0.25s ease;
}
.social-circle-btn.social-email .mail-flap {
  fill: currentColor;
  transform-origin: 12px 6.5px;
  transform-box: view-box;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), fill 0.25s ease;
}
.social-circle-btn.social-email .mail-letter-group {
  opacity: 0;
  transform: translateY(3px);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
}
.social-circle-btn.social-email .mail-paper {
  fill: #f8fafc;
}
.social-circle-btn.social-email .mail-line {
  stroke: #94a3b8;
  stroke-width: 1.2;
  stroke-linecap: round;
}
.social-circle-btn.social-email .mail-pocket {
  fill: currentColor;
  transition: fill 0.25s ease;
}

.social-circle-btn.social-email:hover {
  background: rgba(234, 67, 53, 0.08);
  border-color: rgba(234, 67, 53, 0.35);
  box-shadow: 0 4px 14px rgba(234, 67, 53, 0.22);
}
.social-circle-btn.social-email:hover .mail-back {
  fill: #c5221f;
  opacity: 1;
}
.social-circle-btn.social-email:hover .mail-pocket {
  fill: #ea4335;
}
.social-circle-btn.social-email:hover .mail-flap {
  fill: #ea4335;
  animation: flapOpen 0.7s cubic-bezier(0.34, 1.3, 0.64, 1) 0.5s 1 forwards;
}
.social-circle-btn.social-email:hover .mail-letter-group {
  animation: letterRise 0.7s cubic-bezier(0.34, 1.3, 0.64, 1) 0.55s 1 forwards;
}

@keyframes flapOpen {
  0% { transform: scaleY(1); fill: #ea4335; }
  40% { transform: scaleY(0); fill: #c5221f; }
  100% { transform: scaleY(-1); fill: #b31412; }
}

@keyframes letterRise {
  0% { transform: translateY(3px); opacity: 0; }
  30% { opacity: 1; }
  100% { transform: translateY(-5px); opacity: 1; }
}

.profile-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.profile-copyright {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-faint);
}

.profile-footer-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.profile-footer-link {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  text-decoration: none;
  cursor: pointer;
  background: none;
  border: none;
  text-align: left;
  padding: 0;
  transition: color 0.15s;
}

.profile-footer-link:hover {
  color: var(--text-main);
}

/* ------------------------------------------------------------
   HACKERRANK REACT CREDENTIAL CARD (Profile Column)
   ------------------------------------------------------------ */
.profile-cert-card {
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
  padding: 10px 13px !important;
  background: rgba(255, 255, 255, 0.025) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 12px !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  cursor: pointer !important;
  position: relative !important;
  overflow: hidden !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1) !important;
  user-select: none !important;
  box-sizing: border-box !important;
  width: 100% !important;
}

.profile-cert-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 15% 30%, rgba(96, 165, 250, 0.12), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.profile-cert-card:hover {
  background: rgba(96, 165, 250, 0.05) !important;
  border-color: rgba(96, 165, 250, 0.35) !important;
  transform: translateY(-1.5px) !important;
  box-shadow: 0 8px 24px -4px rgba(37, 99, 235, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}

.profile-cert-card:hover::before {
  opacity: 1;
}

.profile-cert-card:active {
  transform: scale(0.97) !important;
  transition: transform 0.08s var(--ease-spring) !important;
}

.cert-card-top {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  gap: 8px !important;
}

.cert-brand-row {
  display: flex !important;
  align-items: center !important;
  gap: 7px !important;
  min-width: 0 !important;
  flex: 1 !important;
}

.react-cert-icon {
  width: 16px !important;
  height: 16px !important;
  min-width: 16px !important;
  min-height: 16px !important;
  max-width: 16px !important;
  max-height: 16px !important;
  flex-shrink: 0 !important;
  display: block !important;
  transition: transform 0.35s ease !important;
}

.profile-cert-card:hover .react-cert-icon {
  transform: rotate(60deg) scale(1.08) !important;
}

.cert-issuer-tag {
  font-family: var(--font-mono) !important;
  font-size: 10.5px !important;
  font-weight: 600 !important;
  color: #60a5fa !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.cert-card-title {
  font-family: var(--font-sans) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: var(--text-main) !important;
  line-height: 1.25 !important;
  letter-spacing: -0.01em !important;
  white-space: normal !important;
  word-break: normal !important;
}

.cert-card-arrow {
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  min-height: 18px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: var(--text-muted) !important;
  flex-shrink: 0 !important;
  transition: transform 0.25s var(--ease-spring), color 0.2s !important;
}

.cert-card-arrow svg {
  width: 12px !important;
  height: 12px !important;
  min-width: 12px !important;
  min-height: 12px !important;
  max-width: 12px !important;
  max-height: 12px !important;
  stroke-width: 2.5 !important;
  flex-shrink: 0 !important;
  display: block !important;
}

.profile-cert-card:hover .cert-card-arrow {
  transform: translate(2px, -2px) !important;
  color: #60a5fa !important;
}

/* ------------------------------------------------------------
   MODAL CERTIFICATE PREVIEW STYLING
   ------------------------------------------------------------ */
.modal-cert-img-wrap {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #ffffff;
  box-shadow: 0 20px 48px -12px rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  box-sizing: border-box;
}

.modal-cert-img {
  width: 100%;
  height: auto;
  max-height: 560px;
  object-fit: contain;
  border-radius: 4px;
  display: block;
}

.cert-verify-cta-btn {
  justify-content: center;
  background: #2563eb !important;
  color: #ffffff !important;
  font-weight: 600;
  font-size: 13.5px;
  padding: 14px 24px;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.35);
  border: 1px solid rgba(96, 165, 250, 0.5) !important;
  transition: all 0.25s var(--ease-spring);
}

.cert-verify-cta-btn:hover {
  background: #3b82f6 !important;
  box-shadow: 0 6px 24px rgba(59, 130, 246, 0.5);
  transform: translateY(-1.5px);
}
.bento-center-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ---- MY PROJECTS CARD & HARDWARE DEVICE MOCKUPS ---- */
.bento-card-projects {
  height: 420px;
  position: relative;
  background: #090a0f;
  cursor: pointer;
  overflow: hidden;
}

.projects-collage-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  padding: 14px;
  overflow: hidden;
  perspective: 1000px;
}

.projects-collage-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: marquee-float 10s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite alternate;
  will-change: transform;
}

.projects-collage-col:hover {
  animation-play-state: paused;
}

.projects-collage-col.reverse {
  animation: marquee-float-rev 10s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite alternate;
  will-change: transform;
}

.projects-collage-col.reverse:hover {
  animation-play-state: paused;
}

@keyframes marquee-float {
  0% { transform: translateY(0); }
  100% { transform: translateY(-110px); }
}

@keyframes marquee-float-rev {
  0% { transform: translateY(-110px); }
  100% { transform: translateY(0); }
}

/* ---- COLLAGE ITEMS (Clean Glass Cards) ---- */
.collage-item {
  width: 100%;
  height: 155px;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #11131a;
  flex-shrink: 0;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.55);
  transition: transform 0.35s var(--ease-spring), border-color 0.25s, box-shadow 0.25s;
}

.collage-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s var(--ease-spring);
}

.collage-item:hover img {
  transform: scale(1.05);
}

.collage-item-tag {
  position: absolute;
  bottom: 8px;
  left: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  padding: 3px 8px;
  background: rgba(8, 10, 15, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 6px;
  color: #f3f4f6;
  border: 1px solid rgba(255, 255, 255, 0.12);
  z-index: 2;
  letter-spacing: 0.02em;
}

.projects-glass-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 50% 50%, rgba(7, 8, 10, 0.45) 0%, rgba(7, 8, 10, 0.88) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
  pointer-events: none;
  z-index: 5;
}

.projects-title-pill {
  background: rgba(13, 16, 24, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  border-radius: 9999px;
  padding: 12px 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  transition: transform 0.28s var(--ease-spring), border-color 0.25s, box-shadow 0.25s;
}

.bento-card-projects:hover .projects-title-pill {
  transform: scale(1.05);
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.projects-title-badge {
  font-family: var(--font-sans);
  font-size: clamp(19px, 2vw, 24px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin: 0;
  line-height: 1;
  white-space: nowrap;
}

/* ---- BOTTOM SPLIT ROW ---- */
.bento-center-bottom-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  height: 195px;
}

/* ---- EXPERIENCE CARD (Amber Constellation & Milestones) ---- */
/* ---- EXPERIENCE CARD (Amber Constellation & Milestones) ---- */
.bento-card-experience {
  background: radial-gradient(circle at 75% -20%, #d97706 0%, #92400e 36%, #0f1015 82%);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(245, 158, 11, 0.22);
  box-shadow: 0 10px 30px -8px rgba(180, 83, 9, 0.28);
  transition: border-color 0.3s var(--ease-spring), box-shadow 0.3s var(--ease-spring), transform 0.3s var(--ease-spring);
}

.bento-card-experience:hover {
  border-color: rgba(245, 158, 11, 0.45);
  box-shadow: 0 16px 36px -6px rgba(217, 119, 6, 0.4);
  transform: translateY(-2px);
}

.experience-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 3;
  width: 100%;
  margin-bottom: 10px;
}

.experience-card-title {
  font-family: var(--font-sans);
  font-size: 16.5px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* ---- HORIZONTAL CIRCUIT TRACK (DIRECT LABELS & NO BADGES) ---- */
.experience-circuit-track {
  position: relative;
  z-index: 3;
  margin: auto 0;
  padding: 8px 4px 6px 4px;
}

.circuit-rail-base {
  position: absolute;
  top: 17px;
  left: 28px;
  right: 28px;
  height: 2px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 99px;
  z-index: 1;
}

.circuit-rail-fill {
  position: absolute;
  top: 17px;
  left: 28px;
  right: 28px;
  height: 2px;
  background: linear-gradient(90deg, #f59e0b 0%, #38bdf8 33%, #a855f7 66%, #10b981 100%);
  border-radius: 99px;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.55);
  z-index: 2;
}

.circuit-nodes-inline {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.circuit-node-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: transform 0.25s var(--ease-spring);
  padding: 2px 2px;
  user-select: none;
  flex: 1;
  min-width: 0;
  text-align: center;
}

.circuit-node-item:hover {
  transform: translateY(-2px);
}

.circuit-node-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #0d0f14;
  border: 2px solid #f59e0b;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: transform 0.25s var(--ease-spring), box-shadow 0.25s var(--ease-spring), border-color 0.25s var(--ease-spring);
}

.circuit-node-dot::after {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #f59e0b;
  transition: transform 0.25s var(--ease-spring);
}

.circuit-node-dot.dot-2022 { border-color: #f59e0b; box-shadow: 0 0 9px rgba(245, 158, 11, 0.75); }
.circuit-node-dot.dot-2022::after { background: #f59e0b; }

.circuit-node-dot.dot-2024 { border-color: #38bdf8; box-shadow: 0 0 9px rgba(56, 189, 248, 0.75); }
.circuit-node-dot.dot-2024::after { background: #38bdf8; }

.circuit-node-dot.dot-2025 { border-color: #a855f7; box-shadow: 0 0 9px rgba(168, 85, 247, 0.75); }
.circuit-node-dot.dot-2025::after { background: #a855f7; }

.circuit-node-dot.dot-2026 { border-color: #10b981; box-shadow: 0 0 12px rgba(16, 185, 129, 0.95); }
.circuit-node-dot.dot-2026::after { background: #10b981; }

.circuit-node-item.active .circuit-node-dot,
.circuit-node-item:hover .circuit-node-dot {
  transform: scale(1.22);
}

.circuit-node-dot.dot-live::after {
  animation: pulseLiveDot 2.2s infinite ease-in-out;
}

@keyframes pulseLiveDot {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.85);
  }
  50% {
    transform: scale(1.3);
    opacity: 0.85;
    box-shadow: 0 0 14px rgba(16, 185, 129, 1);
  }
}

.circuit-node-year {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  color: #f4f4f5;
  letter-spacing: 0.02em;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

.circuit-node-item.active .circuit-node-year,
.circuit-node-item:hover .circuit-node-year {
  color: #ffffff;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
}

/* Direct Focus Label (Raised right underneath timeline, pure typography, stacked year + role) */
.circuit-active-detail {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  margin-top: 8px;
  padding: 0 16px;
  width: 100%;
  box-sizing: border-box;
  min-height: 38px;
  text-align: center;
  user-select: none;
}

.circuit-detail-year {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: #10b981;
  letter-spacing: 0.04em;
  text-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
  transition: color 0.2s ease, text-shadow 0.2s ease;
  line-height: 1.2;
}

.circuit-detail-role {
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 600;
  color: #f4f4f5;
  letter-spacing: -0.01em;
  line-height: 1.35;
  text-align: center;
  text-wrap: balance;
  word-break: break-word;
  max-width: 100%;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

.bento-card-experience:hover .circuit-detail-role {
  color: #ffffff;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.45);
}

.experience-globe-canvas {
  position: absolute;
  bottom: -20px;
  right: -10px;
  width: 170px;
  height: 130px;
  pointer-events: none;
  z-index: 1;
  opacity: 0.55;
}

.experience-card-header .bento-arrow-btn {
  position: static;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.experience-card-header .bento-arrow-btn svg {
  width: 13.5px;
  height: 13.5px;
}

/* ---- PROOF / TELEMETRY CARD ---- */
.bento-card-proof {
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #0d0f14;
}

.proof-stars {
  display: flex;
  gap: 4px;
  color: #f59e0b;
  font-size: 14px;
  letter-spacing: 2px;
}

.proof-main-num {
  font-family: var(--font-sans);
  font-size: 32px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
  letter-spacing: -0.03em;
  margin: 6px 0 2px;
}

.proof-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.proof-avatars-row {
  display: flex;
  align-items: center;
  margin-top: 8px;
}

.proof-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid #0d0f14;
  margin-left: -7px;
  background-size: cover;
  background-position: center 20%;
  background-color: #27272a;
}

.proof-avatar:first-child {
  margin-left: 0;
}

/* ============================================================
   COLUMN 3: RIGHT (My Stack + Live Translator Overlay)
   ============================================================ */
.bento-right-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ---- MY STACK CARD (Electric Royal Blue) ---- */
.bento-card-stack {
  height: 190px;
  background: linear-gradient(135deg, #1e40af 0%, #2563eb 55%, #3b82f6 100%);
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: 0 14px 34px -8px rgba(37, 99, 235, 0.45);
}

/* Architectural Grid & Circuit Texture Overlay */
.bento-card-stack::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.28) 1.2px, transparent 0),
    linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 18px 18px, 36px 36px, 36px 36px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 95% 85% at 50% 50%, #000 45%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 95% 85% at 50% 50%, #000 45%, transparent 100%);
  z-index: 1;
}

/* Ambient Radial Glow behind the Hero Capsule */
.bento-card-stack::after {
  content: '';
  position: absolute;
  top: 58%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 280px;
  height: 110px;
  background: radial-gradient(ellipse, rgba(255, 255, 255, 0.22) 0%, rgba(59, 130, 246, 0) 70%);
  filter: blur(18px);
  pointer-events: none;
  z-index: 1;
  transition: transform 0.3s var(--ease-spring), opacity 0.3s ease;
}

.bento-card-stack:hover::after {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.1);
}

.stack-card-header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.stack-card-title {
  font-family: var(--font-mono);
  font-size: 13.5px;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stack-capsule-pill {
  position: relative;
  z-index: 2;
  align-self: center;
  margin: auto 0;
  background: #ffffff;
  border-radius: var(--radius-pill);
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 18px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28), 0 2px 8px rgba(0, 0, 0, 0.12);
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s ease;
}

.bento-card-stack:hover .stack-capsule-pill {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.34), 0 4px 12px rgba(0, 0, 0, 0.16);
}

.stack-icon-item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  transition: transform 0.2s var(--ease-spring);
}

.stack-icon-item:hover {
  transform: scale(1.22) translateY(-2px);
}

.stack-icon-item svg,
.stack-icon-item img {
  width: 26px;
  height: 26px;
  display: block;
}

/* ---- FEATURED SHOWCASE CARD (Live Translator Overlay) ---- */
.bento-card-featured {
  height: 425px;
  background: #0d0f14;
  display: flex;
  flex-direction: column;
  position: relative;
  cursor: pointer;
  overflow: hidden;
}

.featured-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(0, 0, 0, 0.2);
}

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

.window-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #27272a;
}

.window-dot.red { background: #ef4444; }
.window-dot.yellow { background: #f59e0b; }
.window-dot.green { background: #10b981; }

.featured-telemetry-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.2);
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.05em;
}

.featured-media-container {
  flex: 1;
  position: relative;
  overflow: hidden;
  background: #07080a;
  display: flex;
  align-items: center;
  justify-content: center;
}

.featured-media-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.4s var(--ease-spring);
  display: block;
}

.bento-card-featured:hover .featured-media-container img {
  transform: scale(1.03);
}

.featured-bottom-info {
  padding: 16px 20px;
  background: linear-gradient(180deg, transparent 0%, rgba(13, 15, 20, 0.95) 40%, #0d0f14 100%);
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
}

.featured-title {
  font-family: var(--font-sans);
  font-size: 22px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.featured-desc {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  max-width: 82%;
  line-height: 1.5;
}

.featured-header-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

/* ============================================================
   APPLE DESIGN: STATUS CAPSULE (VisionOS / iOS Glass Refinement)
   ============================================================ */
.apple-status-capsule {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 9999px;
  padding: 3px 10px 3px 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: all 0.25s var(--ease-spring);
  user-select: none;
  white-space: nowrap;
}

.apple-status-capsule:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  border-top-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-0.5px);
}

.apple-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 8px rgba(52, 211, 153, 0.7);
  display: inline-block;
  position: relative;
  flex-shrink: 0;
}

.apple-status-dot::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  background: rgba(52, 211, 153, 0.35);
  animation: appleStatusPulse 2.8s ease-in-out infinite;
}

@keyframes appleStatusPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.6);
    opacity: 0.15;
  }
}

.apple-status-title {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  color: #f4f4f5;
  letter-spacing: -0.01em;
}

.apple-status-sep {
  font-family: var(--font-sans);
  font-size: 10px;
  color: rgba(255, 255, 255, 0.3);
  line-height: 1;
}

.apple-status-date {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 400;
  color: #a1a1aa;
  letter-spacing: 0.02em;
}

/* Fallback for backward compatibility */
.featured-coming-soon-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 9999px;
  padding: 3px 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  color: #f4f4f5;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  .apple-status-dot::after {
    animation: none;
  }
  .apple-status-capsule {
    transition: none;
  }
}

/* ============================================================
   MODALS (Vertical Flow · Linear / Apple Aesthetics)
   ============================================================ */
/* ============================================================
   MODALS (Vertical Flow · Linear / Apple Pop-in / Pop-out Physics)
   ============================================================ */
@keyframes modalBackdropIn {
  from {
    opacity: 0;
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
  }
  to {
    opacity: 1;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }
}

@keyframes modalBackdropOut {
  from {
    opacity: 1;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }
  to {
    opacity: 0;
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
  }
}

@keyframes modalPopIn {
  0% {
    opacity: 0;
    transform: scale(0.84) translateY(24px) translateZ(0);
    filter: blur(6px);
  }
  65% {
    opacity: 1;
    transform: scale(1.02) translateY(-2px) translateZ(0);
    filter: blur(0px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0) translateZ(0);
    filter: blur(0px);
  }
}

@keyframes modalPopOut {
  0% {
    opacity: 1;
    transform: scale(1) translateY(0) translateZ(0);
    filter: blur(0px);
  }
  100% {
    opacity: 0;
    transform: scale(0.86) translateY(20px) translateZ(0);
    filter: blur(4px);
  }
}

.modal-backdrop {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(4, 5, 8, 0.85);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  will-change: opacity, backdrop-filter;
}

.modal-backdrop.active {
  display: flex;
  animation: modalBackdropIn 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.modal-sheet {
  background: #0e1117;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  width: 100%;
  max-width: 860px;
  max-height: 90vh;
  max-height: calc(100dvh - 48px);
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.88);
  isolation: isolate;
  will-change: transform, opacity, filter;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.modal-backdrop.active .modal-sheet {
  animation: modalPopIn 0.32s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.modal-backdrop.closing {
  display: flex;
  pointer-events: none;
  animation: modalBackdropOut 0.2s cubic-bezier(0.4, 0, 1, 1) forwards;
}

.modal-backdrop.closing .modal-sheet {
  pointer-events: none;
  animation: modalPopOut 0.2s cubic-bezier(0.4, 0, 1, 1) forwards;
}

/* Stack Modal Grid & Tech Badge Chips */
.stack-modal-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

@media (max-width: 680px) {
  .stack-modal-grid {
    grid-template-columns: 1fr;
  }
}

.stack-modal-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.stack-modal-card:hover {
  background: rgba(255, 255, 255, 0.035);
  border-color: rgba(255, 255, 255, 0.14);
}

.stack-modal-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.stack-modal-card-title {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.stack-card-counter {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.stack-modal-card-desc {
  font-size: 12.5px;
  color: #a1a1aa;
  line-height: 1.55;
  margin-bottom: 2px;
}

.stack-modal-badges-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.stack-badge-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 6px 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  color: #f4f4f5;
  transition: all 0.2s var(--ease-spring);
  user-select: none;
}

.stack-badge-item:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-2px);
}

.stack-badge-item svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(14, 17, 23, 0.98);
  flex-shrink: 0;
  gap: 16px;
}

.modal-title-wrap {
  min-width: 0;
  overflow-wrap: anywhere;
}

.modal-title-wrap h3 {
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
}

.modal-title-wrap p {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.modal-close-btn {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}

.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.modal-body {
  flex: 1 1 auto;
  min-height: 0;
  padding: 24px;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  gap: 20px;
  contain: content;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: auto;
  will-change: scroll-position;
  transform: translateZ(0);
  overflow-wrap: anywhere;
}

/* Keep content at its natural height inside the scrolling sheet. */
.modal-body > * {
  flex-shrink: 0;
  min-width: 0;
}

/* Custom scrollbar for modal */
.modal-body::-webkit-scrollbar {
  width: 6px;
}
.modal-body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 3px;
}

/* Vertical Project Card Inside Modal (Apple Design & BentoVibe standard) */
.modal-project-card {
  flex-shrink: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color 0.25s var(--ease-spring), background 0.25s var(--ease-spring);
  contain: layout style;
  transform: translateZ(0);
}

.modal-project-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.035);
}

.modal-project-img-wrap {
  width: 100%;
  background: #050608;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-project-img-wrap img,
.modal-project-img-wrap video {
  width: 100%;
  max-height: 440px;
  object-fit: contain;
  border-radius: 10px;
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
  background: #0b0d12;
}

/* Live Translator Aspect Ratio Switcher (16:9 vs 9:16) */
.aspect-ratio-selector {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  gap: 12px;
  flex-wrap: wrap;
}

.aspect-segmented-control {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
  padding: 3px;
  gap: 3px;
}

.aspect-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  border-radius: 9999px;
  border: none;
  background: transparent;
  color: #a1a1aa;
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.aspect-tab-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.04);
}

.aspect-tab-btn.active {
  background: #2563eb;
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.45);
}

.aspect-tab-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.aspect-format-badge {
  font-size: 11px;
  font-family: var(--font-mono, monospace);
  color: #71717a;
  letter-spacing: 0.04em;
}

.modal-project-img-wrap.translator-view-9x16 {
  background: radial-gradient(circle at 50% 50%, rgba(37, 99, 235, 0.08) 0%, #050608 85%);
  padding: 24px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.reel-phone-frame {
  width: 100%;
  max-width: 280px;
  aspect-ratio: 9 / 16;
  border-radius: 28px;
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 24px 60px -12px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(0, 0, 0, 0.8);
  background: #000000;
  display: flex;
}

.reel-phone-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: none;
  box-shadow: none;
  border-radius: 0;
}

/* Mobile App Screenshot Display Frame (9:16 portrait) */
.modal-project-img-wrap.mobile-wrap {
  background: radial-gradient(circle at 50% 50%, rgba(37, 99, 235, 0.08) 0%, #050608 85%);
  padding: 24px 16px;
}

.modal-project-img-wrap.mobile-wrap img {
  max-height: 480px;
  width: auto;
  max-width: 270px;
  border-radius: 24px;
  border: 2px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.9);
}

/* Mobile Dual-Screen App Display Frame (2 Pages Side-by-Side) */
.modal-project-img-wrap.mobile-dual-wrap {
  background: radial-gradient(circle at 50% 50%, rgba(16, 185, 129, 0.09) 0%, #050608 85%);
  padding: 24px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.modal-project-img-wrap.mobile-dual-wrap img {
  max-height: 460px;
  width: auto;
  max-width: 230px;
  border-radius: 20px;
  border: 1.5px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.9);
  transition: transform 0.3s var(--ease-spring), border-color 0.3s var(--ease-spring);
}

.modal-project-img-wrap.mobile-dual-wrap img:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: rgba(255, 255, 255, 0.3);
}

@media (max-width: 600px) {
  .modal-project-img-wrap.mobile-dual-wrap {
    gap: 12px;
    padding: 16px 8px;
  }
  .modal-project-img-wrap.mobile-dual-wrap img {
    max-height: 360px;
    max-width: 46%;
    border-radius: 14px;
  }
}

/* Featured Bento Card Dual Phone Preview */
.featured-media-container.dual-mobile-media {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 12px;
  background: radial-gradient(circle at 50% 50%, rgba(16, 185, 129, 0.09) 0%, #07080a 85%);
}

.featured-media-container.dual-mobile-media .featured-phone-img {
  width: auto;
  height: 100%;
  max-height: 255px;
  object-fit: contain;
  border-radius: 12px;
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.85);
  transition: transform 0.35s var(--ease-spring), border-color 0.35s var(--ease-spring);
}

.bento-card-featured:hover .featured-media-container.dual-mobile-media .featured-phone-img:first-child {
  transform: translateY(-3px) scale(1.02) rotate(-0.5deg);
  border-color: rgba(255, 255, 255, 0.25);
}

.bento-card-featured:hover .featured-media-container.dual-mobile-media .featured-phone-img:last-child {
  transform: translateY(-3px) scale(1.02) rotate(0.5deg);
  border-color: rgba(255, 255, 255, 0.25);
}

/* ============================================================
   EXPERIENCE TIMELINE MODAL STYLES
   ============================================================ */
.experience-timeline {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 20px;
}

.timeline-item {
  display: flex;
  gap: 16px;
  position: relative;
}

.timeline-dot-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 20px;
  flex-shrink: 0;
  padding-top: 4px;
}

.timeline-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #f59e0b;
  border: 2px solid #0e1117;
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.4);
  z-index: 2;
}

.timeline-dot.active {
  background: #34d399;
  box-shadow: 0 0 0 2px rgba(52, 211, 153, 0.4), 0 0 12px rgba(52, 211, 153, 0.6);
}

.timeline-line {
  flex: 1;
  width: 1.5px;
  background: rgba(255, 255, 255, 0.1);
  margin-top: 6px;
  min-height: 40px;
}

.timeline-content {
  flex: 1;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 16px 18px;
  transition: border-color 0.2s var(--ease-spring), background-color 0.2s;
}

.timeline-content:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.15);
}

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

.timeline-title {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.timeline-role {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #9ca3af;
  display: block;
  margin-top: 2px;
}

.timeline-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #d1d5db;
  white-space: nowrap;
}

.timeline-badge.live {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.35);
  color: #6ee7b7;
}

.timeline-desc {
  font-size: 13px;
  line-height: 1.65;
  color: #a1a1aa;
  margin-bottom: 12px;
}

/* ============================================================
   INTERACTIVE CURVED CIRCUIT ROADMAP & SPOTLIGHT STAGE
   ============================================================ */
.experience-interactive-hub {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

/* --- Curved Circuit Track --- */
.circuit-track-wrapper {
  position: relative;
  width: 100%;
  padding: 14px 12px 24px 12px;
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 18px;
  overflow: hidden;
  box-sizing: border-box;
}

.circuit-track-svg {
  position: absolute;
  top: 0;
  left: 12px;
  right: 12px;
  width: calc(100% - 24px);
  height: 100px;
  pointer-events: none;
  z-index: 1;
}

.circuit-track-base {
  transition: opacity 0.3s ease;
}

.circuit-track-active {
  stroke-dasharray: 650;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 0.6s cubic-bezier(0.16, 1, 0.3, 1), stroke 0.4s ease;
  filter: drop-shadow(0 0 8px rgba(16, 185, 129, 0.4));
}

.circuit-nodes-row {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  width: 100%;
  gap: 0;
  box-sizing: border-box;
}

.circuit-node-btn {
  background: transparent;
  border: none;
  outline: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px 4px 10px 4px;
  border-radius: 14px;
  width: 100%;
  min-width: 0;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.25s ease;
  text-align: center;
  user-select: none;
  box-sizing: border-box;
}

.circuit-node-btn:hover {
  background: rgba(255, 255, 255, 0.04);
  transform: translateY(-2px);
}

.circuit-node-btn.active {
  background: rgba(255, 255, 255, 0.06);
}

.circuit-node-btn.node-present {
  margin-top: 38px; /* curved downward into present milestone */
}

.node-ring {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #0d1117;
  border: 2px solid rgba(255, 255, 255, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
  flex-shrink: 0;
}

.node-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #71717a;
  transition: all 0.25s ease;
  flex-shrink: 0;
}

.circuit-node-btn:hover .node-ring {
  border-color: rgba(255, 255, 255, 0.45);
  transform: scale(1.12);
}

.circuit-node-btn.active .node-ring {
  border-color: #34d399;
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.25), 0 0 16px rgba(52, 211, 153, 0.45);
  transform: scale(1.15);
}

.circuit-node-btn.active .node-dot {
  background: #34d399;
}

.node-ring.ring-live {
  border-color: rgba(16, 185, 129, 0.5);
}

.node-dot.dot-live {
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
}

.node-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  width: 100%;
  min-width: 0;
}

.node-year {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: #a1a1aa;
  transition: color 0.25s ease;
  line-height: 1.2;
}

.circuit-node-btn.active .node-year {
  color: #ffffff;
}

.node-year.year-live {
  color: #6ee7b7;
}

.node-role {
  font-size: 11px;
  color: #71717a;
  white-space: normal;
  line-height: 1.25;
  text-align: center;
  width: 100%;
  max-width: 125px;
  word-break: break-word;
  overflow-wrap: break-word;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.25s ease;
}

.circuit-node-btn.active .node-role {
  color: #d1d5db;
}

.circuit-node-btn:hover .node-role {
  color: #e4e4e7;
}

@media (max-width: 600px) {
  .circuit-track-wrapper {
    padding: 10px 6px 18px 6px;
  }
  .circuit-track-svg {
    left: 6px;
    right: 6px;
    width: calc(100% - 12px);
  }
  .node-ring {
    width: 20px;
    height: 20px;
  }
  .node-dot {
    width: 6px;
    height: 6px;
  }
  .circuit-node-btn {
    padding: 10px 2px 6px 2px;
  }
  .node-year {
    font-size: 11.5px;
  }
  .node-role {
    font-size: 9.5px;
    line-height: 1.15;
    max-width: 100%;
  }
}

/* --- Spotlight Showcase Stage --- */
.milestone-spotlight-stage {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 24px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 22px 24px;
  align-items: center;
  transition: border-color 0.3s ease, background-color 0.3s ease;
  position: relative;
  overflow: hidden;
}

.spotlight-narrative-col {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.spotlight-header-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.spotlight-year-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399;
  letter-spacing: 0.02em;
}

.spotlight-status-pill {
  font-family: var(--font-mono);
  font-size: 10px;
  color: #a1a1aa;
}

.spotlight-title {
  font-family: var(--font-sans);
  font-size: 19px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.spotlight-company-line {
  font-family: var(--font-mono);
  font-size: 12px;
  color: #93c5fd;
  display: block;
}

.spotlight-desc-wrap p {
  font-size: 13.5px;
  line-height: 1.7;
  color: #d4d4d8;
  margin: 0;
}

.spotlight-tech-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

/* --- Dynamic Apple Visual Showcase Stage (Parallax & Glow) --- */
.spotlight-visual-col {
  min-width: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1000px;
  width: 100%;
}

.visual-squircle-stage {
  position: relative;
  width: 100%;
  max-width: 440px;
  border-radius: 20px;
  transform-style: preserve-3d;
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.stage-backlight-glow {
  position: absolute;
  inset: -14px;
  border-radius: 30px;
  background: radial-gradient(circle at 50% 50%, rgba(16, 185, 129, 0.32), transparent 72%);
  filter: blur(20px);
  z-index: 1;
  opacity: 0.85;
  transition: background 0.4s ease, opacity 0.3s ease;
  pointer-events: none;
}

.stage-squircle-card {
  position: relative;
  z-index: 2;
  width: 100%;
  aspect-ratio: 16 / 10;
  height: auto;
  min-height: 220px;
  border-radius: 18px;
  overflow: hidden;
  background: #080a0f;
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  animation: stageLevitate 4.5s ease-in-out infinite;
  cursor: zoom-in;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

@keyframes stageLevitate {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-6px);
  }
}

.stage-squircle-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: #05070b;
  display: block;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
}

.visual-squircle-stage:hover .stage-squircle-card img {
  transform: scale(1.03);
}

.stage-zoom-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 5;
  background: rgba(9, 11, 16, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-pill);
  padding: 4px 10px;
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: #ffffff;
  opacity: 0.85;
  transition: opacity 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
  pointer-events: none;
}

.stage-squircle-card:hover .stage-zoom-badge {
  opacity: 1;
  transform: scale(1.05);
  background: rgba(9, 11, 16, 0.92);
  border-color: rgba(255, 255, 255, 0.35);
}

/* Dedicated Carousel Controls Toolbar Below Card (Separated from Clickable Zoom Area) */
.stage-controls-toolbar {
  position: relative;
  z-index: 3;
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(14, 18, 25, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 8px 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.stage-caption-box {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.stage-cap-title {
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stage-cap-sub {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: #34d399;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stage-nav-stepper {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-pill);
  padding: 2px 4px;
  flex-shrink: 0;
}

.stage-nav-arrow {
  position: static;
  transform: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  padding: 0;
}

.stage-nav-arrow:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.4);
  transform: scale(1.08);
}

.stage-nav-arrow:active {
  transform: scale(0.92);
}

.stage-carousel-counter {
  position: static;
  background: transparent;
  border: none;
  padding: 0 6px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  color: #e4e4e7;
  user-select: none;
  min-width: 38px;
  text-align: center;
}

/* ============================================================
   IMAGE LIGHTBOX PREVIEW MODAL
   ============================================================ */
.lightbox-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  background: rgba(5, 7, 10, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  will-change: opacity, backdrop-filter;
}

.lightbox-backdrop.active {
  display: flex !important;
  animation: modalBackdropIn 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.lightbox-backdrop.active .lightbox-container {
  animation: lightboxPopIn 0.32s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.lightbox-backdrop.closing {
  display: flex !important;
  pointer-events: none;
  animation: modalBackdropOut 0.2s cubic-bezier(0.4, 0, 1, 1) forwards;
}

.lightbox-backdrop.closing .lightbox-container {
  pointer-events: none;
  animation: modalPopOut 0.2s cubic-bezier(0.4, 0, 1, 1) forwards;
}

.lightbox-container {
  max-width: 980px;
  width: 92vw;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  will-change: transform, opacity;
}

@keyframes lightboxPopIn {
  0% {
    opacity: 0;
    transform: scale(0.92) translateY(12px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.lightbox-close-btn {
  position: absolute;
  top: -46px;
  right: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 100;
  transition: all 0.2s ease;
}

.lightbox-close-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.08);
}

.lightbox-close-btn:active {
  transform: scale(0.94);
}

.lightbox-media-wrapper {
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  background: #090b10;
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.95);
  display: flex;
  justify-content: center;
}

.lightbox-media-wrapper img {
  width: 100%;
  max-height: 72vh;
  object-fit: contain;
  display: block;
}

.lightbox-caption {
  margin-top: 14px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.lightbox-title {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
}

.lightbox-sub {
  font-family: var(--font-mono);
  font-size: 12px;
  color: #34d399;
}

.lightbox-counter-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  align-self: center;
  margin-top: 4px;
  user-select: none;
}

/* Lightbox Carousel Navigation */
.lightbox-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(9, 11, 16, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 100;
  transition: all 0.2s ease;
  user-select: none;
}

.lightbox-prev {
  left: -58px;
}

.lightbox-next {
  right: -58px;
}

@media (max-width: 1024px) {
  .lightbox-prev { left: 12px; }
  .lightbox-next { right: 12px; }
}

.lightbox-nav-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.45);
  transform: translateY(-50%) scale(1.1);
}

.lightbox-nav-btn:active {
  transform: translateY(-50%) scale(0.94);
}

@media (max-width: 768px) {
  .milestone-spotlight-stage {
    grid-template-columns: minmax(0, 1fr);
    padding: 16px;
    gap: 16px;
  }
  .stage-squircle-card {
    aspect-ratio: 16 / 10;
    height: auto;
    min-height: 180px;
  }
  .stage-controls-toolbar {
    padding: 8px 12px;
  }
  .circuit-nodes-row {
    flex-wrap: wrap;
  }
  .circuit-track-svg {
    display: none;
  }
  .circuit-node-btn.node-present {
    margin-top: 0;
  }
}

/* ============================================================
   BENTOVIBE PROJECT CARD ROWS
   1:1 with bentovibe.framer.website/my-projects
   Mockup preview · Clean typography · Circular arrow · Zero HTTP tags
   ============================================================ */
.bentovibe-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-decoration: none;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
  contain: layout style;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.bentovibe-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.55);
}

.bentovibe-card-left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1 1 auto;
  min-width: 0;
}

/* Thumbnail preview container with mini device mockup framing */
.bentovibe-card-thumb {
  width: 108px;
  height: 74px;
  flex-shrink: 0;
  border-radius: 10px;
  background: #090a0f;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

.bentovibe-card-thumb-header {
  height: 7px;
  background: #171a23;
  display: flex;
  align-items: center;
  gap: 2.5px;
  padding: 0 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}

.bentovibe-card-thumb-dot {
  width: 2.5px;
  height: 2.5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
}

.bentovibe-card-thumb-body {
  flex: 1;
  position: relative;
  overflow: hidden;
  background: #0e1117;
}

.bentovibe-card-thumb-body img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform 0.3s var(--ease-spring);
}

.bentovibe-card:hover .bentovibe-card-thumb-body img {
  transform: scale(1.06);
}

.bentovibe-card-info {
  flex: 1 1 auto;
  min-width: 0;
}

.bentovibe-card-title {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bentovibe-card-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 3px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.bentovibe-card-meta-category {
  color: #60a5fa;
  font-weight: 500;
}

.bentovibe-card-desc {
  font-size: 12px;
  color: #9ca3af;
  margin-top: 4px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* White round arrow button (BentoVibe signature element) */
.bentovibe-card-arrow {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #ffffff;
  color: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s ease, color 0.2s ease;
}

.bentovibe-card:hover .bentovibe-card-arrow {
  transform: scale(1.08);
  background: #2563eb;
  color: #ffffff;
}

.bentovibe-card-arrow svg {
  width: 14px;
  height: 14px;
  stroke-width: 2.5;
}

/* Backward compatibility / modal list container */
.commercial-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  contain: layout style;
  transform: translateZ(0);
}

.commercial-metrics-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  background: rgba(255, 255, 255, 0.025);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  padding: 14px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

/* 3-column layout: perfectly balances 3 metrics across 100% width with zero empty space */
.commercial-metrics-bar.metrics-bar-3col,
.commercial-metrics-bar:has(> :nth-child(3):last-child) {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 600px) {
  .commercial-metrics-bar {
    grid-template-columns: repeat(2, 1fr);
  }
  .commercial-metrics-bar.metrics-bar-3col,
  .commercial-metrics-bar:has(> :nth-child(3):last-child) {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 480px) {
  .commercial-metrics-bar,
  .commercial-metrics-bar.metrics-bar-3col,
  .commercial-metrics-bar:has(> :nth-child(3):last-child) {
    grid-template-columns: 1fr;
  }
}

.comm-metric {
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: all 0.25s var(--ease-spring);
}

.comm-metric:hover {
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(255, 255, 255, 0.09);
  transform: translateY(-1px);
}

.comm-metric-val {
  display: block;
  font-family: var(--font-sans);
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.comm-metric-lbl {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 4px;
}

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

.trial-terms-card {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.12) 0%, rgba(13, 15, 20, 0.7) 100%);
  border: 1px solid rgba(37, 99, 235, 0.35);
  border-radius: 14px;
  padding: 18px 20px;
  margin-top: 16px;
}

.trial-terms-title {
  font-size: 14px;
  font-weight: 700;
  color: #93c5fd;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.trial-terms-desc {
  font-size: 13px;
  color: #d4d4d8;
  line-height: 1.65;
}

.modal-project-content {
  padding: 18px 20px;
}

.modal-project-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.modal-project-name {
  font-size: 17px;
  font-weight: 700;
  color: #ffffff;
}

.modal-project-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(37, 99, 235, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(37, 99, 235, 0.3);
  white-space: nowrap;
}

.modal-project-desc {
  font-size: 13.5px;
  color: #a1a1aa;
  line-height: 1.6;
  margin-bottom: 14px;
}

.modal-project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.tech-tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: #d4d4d8;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 2px 7px;
  border-radius: 4px;
}

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

.btn-link {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s;
}

.btn-link:hover {
  background: #ffffff;
  color: #000000;
}

/* ============================================================
   AI ASSISTANT SLIDE-OVER DRAWER
   ============================================================ */
@keyframes drawerSlideIn {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}

@keyframes drawerSlideOut {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(100%);
  }
}

.ai-drawer-backdrop {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1100;
  display: none;
}

.ai-drawer-backdrop.active {
  display: block;
  animation: modalBackdropIn 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.ai-drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: 100%;
  max-width: 440px;
  background: #0d0f14;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: -12px 0 40px rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
  z-index: 1200;
  transform: translateX(100%);
  contain: layout paint;
  isolation: isolate;
  will-change: transform;
}

.ai-drawer-backdrop.active .ai-drawer {
  animation: drawerSlideIn 0.32s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.ai-drawer-backdrop.closing {
  display: block;
  pointer-events: none;
  animation: modalBackdropOut 0.2s cubic-bezier(0.4, 0, 1, 1) forwards;
}

.ai-drawer-backdrop.closing .ai-drawer {
  pointer-events: none;
  animation: drawerSlideOut 0.2s cubic-bezier(0.4, 0, 1, 1) forwards;
}

.ai-drawer-header {
  padding: 18px 20px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ai-messages {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  transform: translateZ(0);
  will-change: scroll-position;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ai-messages::-webkit-scrollbar {
  width: 5px;
}

.ai-messages::-webkit-scrollbar-track {
  background: transparent;
}

.ai-messages::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 4px;
}

.ai-messages::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.32);
}

.ai-msg {
  padding: 14px 18px;
  border-radius: 14px;
  font-size: 13.5px;
  line-height: 1.68;
  max-width: 90%;
  word-break: break-word;
}

.ai-msg.assistant {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #e4e4e7;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.ai-msg.assistant p {
  margin: 0 0 10px 0;
}

.ai-msg.assistant p:last-child {
  margin-bottom: 0;
}

.ai-msg.assistant strong {
  color: #93c5fd;
  font-weight: 600;
}

.ai-msg.assistant ul.ai-msg-ul,
.ai-msg.assistant ol.ai-msg-ol {
  margin: 10px 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ai-msg.assistant li {
  margin-bottom: 0;
  color: #d4d4d8;
  line-height: 1.6;
}

.ai-msg.assistant li strong {
  color: #ffffff;
  font-weight: 600;
}

.ai-msg.assistant .ai-msg-h {
  margin: 16px 0 8px 0;
  color: #ffffff;
  font-size: 14.5px;
  font-weight: 700;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 4px;
}

/* Beautiful responsive markdown table for AI drawer */
.ai-table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 10px 0;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.35);
}

.ai-table-wrap table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  line-height: 1.5;
  text-align: left;
}

.ai-table-wrap th {
  background: rgba(255, 255, 255, 0.06);
  padding: 8px 10px;
  color: #f8fafc;
  font-weight: 600;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  white-space: nowrap;
}

.ai-table-wrap td {
  padding: 8px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: #d4d4d8;
  vertical-align: top;
}

.ai-table-wrap tr:last-child td {
  border-bottom: none;
}

.ai-code-block {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  overflow-x: auto;
  margin: 8px 0;
}

.ai-inline-code {
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 5px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: #93c5fd;
}

.ai-msg.user {
  align-self: flex-end;
  background: #2563eb;
  color: #ffffff;
  white-space: pre-wrap;
}

.ai-chips-row {
  padding: 10px 18px 4px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.ai-chips-row::-webkit-scrollbar {
  display: none;
}

.ai-chip {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
}

.ai-chip:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-main);
}

/* AI INPUT FORM WITH AUTO-GROWING MULTI-LINE TEXTAREA */
.ai-input-form {
  padding: 14px 18px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: flex-end;
  gap: 10px;
  background: #0d0f14;
}

.ai-input {
  flex: 1;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 10px 14px;
  color: #ffffff;
  font-size: 13.5px;
  font-family: var(--font-sans);
  line-height: 1.5;
  outline: none;
  resize: none;
  min-height: 42px;
  max-height: 120px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
  transition: border-color 0.2s ease, background 0.2s ease;
  word-break: break-word;
  white-space: pre-wrap;
}

.ai-input::-webkit-scrollbar {
  width: 5px;
}
.ai-input::-webkit-scrollbar-track {
  background: transparent;
}
.ai-input::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 4px;
}

.ai-input:focus {
  border-color: rgba(37, 99, 235, 0.6);
  background: rgba(255, 255, 255, 0.06);
}

.ai-send-btn {
  height: 42px;
  padding: 0 18px;
  border-radius: 10px;
  background: #2563eb;
  color: #ffffff;
  border: none;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, opacity 0.15s ease;
}

.ai-send-btn:hover {
  background: #1d4ed8;
}

.ai-send-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ============================================================
   RESPONSIVE BREAKPOINTS (Mobile & Tablet)
   ============================================================ */
@media (min-width: 1025px) {
  body:has(> .bento-dashboard) {
    padding-bottom: 24px;
  }
  .bento-topbar,
  .bento-dashboard {
    max-width: none;
  }
  .bento-dashboard {
    flex: 1;
    grid-template-columns: clamp(280px, 21vw, 380px) minmax(0, 1.15fr) minmax(0, 1.35fr);
  }
  .bento-card-projects {
    flex: 1;
    height: auto;
    min-height: 420px;
  }
  .bento-center-bottom-row {
    flex: 0 0 clamp(195px, 25vh, 260px);
    height: auto;
  }
  .bento-card-featured {
    flex: 1;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    height: auto;
    min-height: 425px;
  }
  .bento-card-stack {
    flex-shrink: 0;
  }
  .featured-media-container.dual-mobile-media {
    min-height: 0;
  }
  .featured-media-container.dual-mobile-media .featured-phone-img {
    height: 100%;
    max-width: 42%;
    max-height: clamp(255px, 42vh, 520px);
  }
  .featured-bottom-info {
    position: static;
    padding-right: 64px;
  }
}

@media (max-width: 1024px) {
  .bento-dashboard {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }
  .bento-profile-col {
    padding: 24px;
  }
  .bento-right-col {
    display: flex;
    flex-direction: column;
    gap: 18px;
  }
  .bento-card-projects {
    height: 380px;
  }
  .bento-center-bottom-row {
    grid-template-columns: 1fr 1fr;
    height: 190px;
  }
}

@media (max-width: 640px) {
  body {
    padding: 14px 10px 40px;
  }
  .bento-topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .bento-top-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    gap: 8px;
  }
  .bento-top-actions > * {
    min-width: 0;
    justify-content: center;
  }
  .btn-top-action,
  .lang-switch-opt {
    min-height: 44px;
  }
  .btn-top-action {
    padding: 8px 10px;
  }
  .btn-top-action svg {
    flex-shrink: 0;
  }
  .lang-switch-opt {
    flex: 1;
  }
  .modal-backdrop {
    padding: 12px 8px;
  }
  .modal-sheet {
    max-height: calc(100vh - 24px);
    max-height: calc(100dvh - 24px);
  }
  .modal-header {
    padding: 16px;
    align-items: flex-start;
  }
  .modal-close-btn {
    width: 44px;
    height: 44px;
  }
  .modal-body {
    padding: 16px;
  }
  .modal-project-content {
    padding: 16px;
  }
  .spotlight-actions-row {
    flex-wrap: wrap;
  }
  .aspect-segmented-control {
    width: 100%;
    border-radius: var(--radius-inner);
  }
  .aspect-tab-btn {
    flex: 1;
    min-width: 0;
    min-height: 44px;
    padding: 6px 8px;
    border-radius: 10px;
  }
  .bento-center-bottom-row {
    grid-template-columns: 1fr;
    height: auto;
  }
  .bento-card-contact,
  .bento-card-proof {
    height: 170px;
  }
  .bento-card-projects {
    height: 340px;
  }
  .bento-card-featured {
    height: 370px;
  }
}

/* ============================================================
   WORDPRESS COMMERCIAL DEPLOYMENTS PAGE (BentoVibe Apple Aesthetic)
   ============================================================ */
.wp-page-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 90px 24px 60px;
  width: 100%;
}

.wp-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.wp-filter-chip {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s var(--ease-spring);
}

.wp-filter-chip:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  border-color: var(--border-hover);
}

.wp-filter-chip.active {
  background: rgba(37, 99, 235, 0.15);
  border-color: rgba(37, 99, 235, 0.4);
  color: #93c5fd;
}

.wp-verified-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

@media (max-width: 900px) {
  .wp-verified-grid {
    grid-template-columns: 1fr;
  }
}

.wp-verified-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 14px 18px;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
  contain: layout style;
  transform: translateZ(0);
}

.wp-verified-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

.wp-verified-card .wp-site-title {
  font-family: var(--font-sans);
  font-size: 15.5px;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.3;
}

.wp-verified-card .wp-site-domain {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: #60a5fa;
}

/* Nav header for child pages */
#main-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 60px;
  background: rgba(13, 15, 20, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  z-index: 100;
}

.nav-logo {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-links a {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s;
}

.nav-links a:hover,
.nav-links a.active {
  color: #ffffff;
}

.nav-cta {
  font-family: var(--font-mono);
  font-size: 11.5px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-main);
  text-decoration: none;
  transition: all 0.2s;
}

.nav-cta:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* ---- FOOTER (Linear / Apple Aesthetics) ---- */
footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #06070a;
  padding: 48px 0 32px;
  margin-top: 60px;
}

.footer-wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-brand {
  max-width: 480px;
}

.footer-logo {
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin-bottom: 8px;
}

.footer-desc {
  font-size: 13px;
  color: #a1a1aa;
  line-height: 1.6;
}

.footer-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-links a {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: #a1a1aa;
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-links a:hover {
  color: #60a5fa;
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: #71717a;
}

/* ============================================================
   SLEEK OBSIDIAN GLASSMORPHIIC TOOLTIP SYSTEM
   Replaces default browser white boxes with Bento/Linear aesthetic
   ============================================================ */
.custom-tooltip-pill {
  position: fixed;
  top: 0;
  left: 0;
  padding: 5px 10px;
  background: rgba(13, 16, 23, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  color: #f3f4f6;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
  white-space: nowrap;
  pointer-events: none;
  z-index: 9999999;
  opacity: 0;
  visibility: hidden;
  box-shadow: 0 8px 20px -2px rgba(0, 0, 0, 0.7), 
              inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.2s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.2s;
  will-change: transform, opacity;
}

.custom-tooltip-pill.active {
  opacity: 1;
  visibility: visible;
}
