/* ==========================================================================
   VICTOR GBAYESOLA — PORTFOLIO CSS DESIGN SYSTEM (RADNAABAZAR PARADIGM)
   ========================================================================== */

:root {
  /* Google Fonts Typography Pairing */
  --font-heading: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-sub: 'Sora', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-main: var(--font-body);

  /* Smooth Custom Transitions */
  --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  /* Shape Language (Border Radii) */
  --radius-lg: 24px;
  --radius-md: 16px;
  
  /* NEON DARK THEME PRESETS (Default) */
  --bg-app: #08090a;
  --bg-card: rgba(18, 20, 24, 0.45);
  --bg-card-hover: rgba(26, 29, 36, 0.65);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-color-hover: rgba(255, 255, 255, 0.18);
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.65);
  --text-muted: rgba(255, 255, 255, 0.4);
  
  /* Custom Accent Color Codes */
  --color-ux: #ff007f;           /* Hot Pink */
  --color-econ: #00f0ff;         /* Electric Cyan */
  --color-strategy: #f59e0b;     /* Amber Gold */
  --color-primary: #ffffff;
  
  /* Glow shadows */
  --shadow-card: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
  --cursor-glow-color: rgba(0, 240, 255, 0.08);
}

/* LIGHT THEME PRESETS */
[data-theme="light"] {
  --font-main: var(--font-body);
  --bg-app: #f6f8fa;
  --bg-card: rgba(255, 255, 255, 0.72);
  --bg-card-hover: rgba(255, 255, 255, 0.95);
  --border-color: rgba(15, 23, 42, 0.07);
  --border-color-hover: rgba(15, 23, 42, 0.18);
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  
  /* Accent Colors (Slightly deeper for light background contrasts) */
  --color-ux: #db2777;           /* Deep Pink */
  --color-econ: #0284c7;         /* Deep Sky Blue */
  --color-strategy: #d97706;     /* Dark Amber */
  --color-primary: #0f172a;
  
  /* Glow shadows */
  --shadow-card: 0 8px 24px 0 rgba(0, 0, 0, 0.05);
  --cursor-glow-color: rgba(2, 132, 199, 0.05);
}

/* ═══ 1. GLOBAL ROOT RESET ═══ */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scroll-behavior: auto;
}

html, body {
  width: 100%;
  overflow-x: hidden;
  background-color: var(--bg-app);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  transition: background-color 0.6s ease, color 0.6s ease;
}

body.portfolio-body {
  position: relative;
}

/* Global focus-visible accessibility styles */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 4px;
    border-radius: 4px;
}

/* Screen reader utility class */
.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* ═══ 2. HARDWARE ACCELERATED MOUSE GLOW ═══ */
.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, var(--cursor-glow-color) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 1;
  transition: opacity 0.5s ease;
  opacity: 0;
  will-change: transform;
}

/* ═══ 3. RADNAABAZAR GRID LAYOUT BACKGROUND ═══ */
.bg-grid-lines {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

.grid-vertical-line {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background-color: var(--border-color);
  transition: background-color 0.6s ease;
}

.grid-vertical-line.col-1 { left: 15%; }
.grid-vertical-line.col-2 { left: 50%; }
.grid-vertical-line.col-3 { left: 85%; }

/* Grid bordered sections mapping */
.grid-section {
  position: relative;
  border-bottom: 1px solid var(--border-color);
  padding: 100px 0;
  z-index: 3;
  transition: border-color 0.6s ease;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ═══ 4. NAVIGATION HEADER ═══ */
.app-header {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: 95%;
  max-width: 1100px;
  z-index: 100;
  border: 1px solid var(--border-color);
  border-radius: 60px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background-color: rgba(8, 9, 10, 0.65);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  transition: background-color 0.6s ease, border-color 0.6s ease;
}

[data-theme="light"] .app-header {
  background-color: rgba(246, 248, 250, 0.65);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

.header-container {
  height: 64px;
  padding: 0 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
}

.logo-circle {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-ux), var(--color-econ));
  box-shadow: 0 0 10px var(--color-econ);
}

.brand-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.nav-menu {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 30px;
}

.nav-item {
  text-decoration: none;
  font-family: var(--font-sub);
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition-fast);
}

.nav-item:hover, .nav-item.active {
  color: var(--text-primary);
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.2);
}

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

/* Language Switcher Pill */
.lang-switcher-pill {
  display: flex;
  align-items: center;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 6px 12px;
  border-radius: 20px;
  gap: 8px;
  transition: var(--transition-fast);
}

.lang-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-sub);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-fast);
}

.lang-btn.active {
  color: var(--text-primary);
}

.pill-divider {
  color: var(--border-color);
  font-size: 0.8rem;
}

/* Theme Switcher Sun/Moon */
.theme-toggle-btn {
  background: none;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

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

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

/* Mobile Hamburger Toggle */
.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  min-width: 44px;
  min-height: 44px;
  padding: 14px 10px;
  background: none;
  border: none;
  cursor: pointer;
}

.hamburger-bar {
  width: 24px;
  height: 2px;
  background-color: var(--text-primary);
  transition: var(--transition-fast);
}

/* ═══ 5. EDITORIAL HERO SECTION ═══ */
.hero-section {
  padding-top: 160px;
  min-height: 90vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 10;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 6px 14px;
  border-radius: 30px;
  gap: 8px;
  margin-bottom: 24px;
  font-family: var(--font-sub);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.pulse-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #22c55e;
  box-shadow: 0 0 10px #22c55e;
  animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.2); opacity: 1; box-shadow: 0 0 14px #22c55e; }
  100% { transform: scale(0.9); opacity: 0.8; }
}

.hero-headline {
  font-family: var(--font-heading);
  font-size: 4.2rem;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.accent-gradient {
  background: none;
  -webkit-background-clip: initial;
  -webkit-text-fill-color: initial;
}

.accent-gradient .bouncy-char {
  background: linear-gradient(135deg, var(--color-ux), var(--color-econ));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  font-weight: 400;
  margin-bottom: 40px;
  max-width: 600px;
}

.hero-metadata {
  display: flex;
  gap: 30px;
  margin-bottom: 40px;
  border-top: 1px solid var(--border-color);
  padding-top: 24px;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.meta-icon {
  font-size: 1.1rem;
}

.meta-label {
  font-family: var(--font-sub);
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.hero-ctas {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

/* Mechanical Mechanical Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 8px;
  font-family: var(--font-sub);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-primary {
  background-color: var(--text-primary);
  color: var(--bg-app);
  border: 1px solid var(--text-primary);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 255, 255, 0.1);
}

[data-theme="light"] .btn-primary:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
  background: none;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background-color: var(--bg-card);
  border-color: var(--border-color-hover);
  transform: translateY(-2px);
}

/* Right Editorial Picture Frame */
.editorial-portrait-frame {
  position: relative;
  width: 100%;
  max-width: 440px;
  aspect-ratio: 0.82;
  margin-left: auto;
  border: 1px solid var(--border-color);
  padding: 20px;
  transition: border-color 0.6s ease;
}

.portrait-container {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.profile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%) contrast(1.05) brightness(95%);
  transition: var(--transition-smooth);
}

.editorial-portrait-frame:hover .profile-img {
  filter: grayscale(0%) contrast(1.0) brightness(100%);
  transform: scale(1.04);
}

.portrait-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(8, 9, 10, 0.4), transparent 50%);
  pointer-events: none;
}

/* Linear Frame Corners */
.frame-corner {
  position: absolute;
  width: 15px;
  height: 15px;
  border: 2px solid var(--text-primary);
  z-index: 10;
}

.corner-tl { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.corner-tr { top: -1px; right: -1px; border-left: none; border-bottom: none; }
.corner-bl { bottom: -1px; left: -1px; border-right: none; border-top: none; }
.corner-br { bottom: -1px; right: -1px; border-left: none; border-top: none; }

.floating-highlight-badge {
  position: absolute;
  bottom: -20px;
  left: -20px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 12px 20px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-card);
  z-index: 11;
  transition: var(--transition-smooth);
}

.editorial-portrait-frame:hover .floating-highlight-badge {
  border-color: var(--color-econ);
  box-shadow: 0 8px 30px rgba(0, 240, 255, 0.15);
}

.badge-icon {
  font-size: 1.3rem;
}

.badge-text {
  display: flex;
  flex-direction: column;
}

.badge-text strong {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--text-primary);
}

.badge-text span {
  font-size: 0.72rem;
  color: var(--text-secondary);
}

/* ═══ FLOATING UI ECOSYSTEM ═══ */
.floating-ui-element {
  position: absolute;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 12px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.25);
  z-index: 12;
  transition: transform 0.2s ease-out;
  display: flex;
  align-items: center;
  pointer-events: none; /* Passes clicks through */
}

/* 1. Metric Pill */
.floating-metric-pill {
  top: -20px;
  left: -50px;
  padding: 12px 20px;
  gap: 12px;
}
.floating-metric-pill .ui-icon {
  background: rgba(46, 204, 113, 0.15);
  color: #2ecc71;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}
.floating-metric-pill .ui-text {
  display: flex;
  flex-direction: column;
}
.floating-metric-pill .ui-text strong {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--text-primary);
  line-height: 1;
}
.floating-metric-pill .ui-text span {
  font-size: 0.7rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 2px;
}

/* 2. Mini Chart */
.floating-chart {
  bottom: 30px;
  right: -40px;
  padding: 16px;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}
.floating-chart .chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 40px;
}
.floating-chart .bar {
  width: 12px;
  background: var(--border-color);
  border-radius: 2px 2px 0 0;
  transition: background 0.3s;
}
.floating-chart .bar.active {
  background: var(--color-ux);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
}
.floating-chart .chart-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* 3. Toggle Switch */
.floating-toggle {
  bottom: 90px;
  left: -70px;
  padding: 12px 16px;
  gap: 12px;
}
.floating-toggle .toggle-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
}
.floating-toggle .toggle-track {
  width: 36px;
  height: 20px;
  background: var(--color-strategy);
  border-radius: 20px;
  position: relative;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
}
.floating-toggle .toggle-knob {
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
  top: 2px;
  right: 2px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* Hide floating elements on mobile to preserve portrait clarity */
@media (max-width: 768px) {
  .floating-ui-element {
    display: none;
  }
}

/* ═══ 6. SECTION HEADER ═══ */
.section-header {
  margin-bottom: 60px;
  position: relative;
}

.subtitle-label {
  font-family: var(--font-sub);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  background: linear-gradient(135deg, var(--color-ux), var(--color-econ));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  margin-bottom: 12px;
}

.section-heading {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* ═══ 7. BENTO GRID ABOUT ═══ */
.bento-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 30px;
}

.bento-card {
  position: relative;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 40px;
  overflow: hidden;
  transition: var(--transition-smooth);
  cursor: pointer;
  z-index: 10;
}

.bento-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, transparent 60%, rgba(255, 255, 255, 0.02) 100%);
  pointer-events: none;
}

.bento-card:hover {
  background-color: var(--bg-card-hover);
  transform: translateY(-5px);
  box-shadow: var(--shadow-card);
}

.bento-card.card-ux:hover { border-color: var(--color-ux); }
.bento-card.card-economics:hover { border-color: var(--color-econ); }
.bento-card.card-strategy:hover { border-color: var(--color-strategy); }

.card-icon {
  font-size: 1.8rem;
  margin-bottom: 24px;
  display: inline-flex;
}

.card-ux .card-icon { color: var(--color-ux); }
.card-economics .card-icon { color: var(--color-econ); }
.card-strategy .card-icon { color: var(--color-strategy); }

/* ═══ BENTO INTERACTIVE VISUALS ═══ */
.bento-visual {
  width: 100%;
  height: 140px;
  background-color: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.4s ease, background-color 0.4s ease;
}

[data-theme="light"] .bento-visual {
  background-color: rgba(255, 255, 255, 0.5);
}

.bento-card:hover .bento-visual {
  background-color: rgba(0, 0, 0, 0.35);
}

.card-ux:hover .bento-visual { border-color: rgba(217, 70, 239, 0.3); }
.card-economics:hover .bento-visual { border-color: rgba(6, 182, 212, 0.3); }
.card-strategy:hover .bento-visual { border-color: rgba(245, 158, 11, 0.3); }

/* 1. UX Figma Canvas Visual */
.figma-canvas {
  width: 100%;
  height: 100%;
  position: relative;
}

.figma-grid-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 0),
    radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 0);
  background-size: 16px 16px;
  background-position: 0 0, 8px 8px;
}

[data-theme="light"] .figma-grid-bg {
  background-image: 
    radial-gradient(rgba(0, 0, 0, 0.04) 1px, transparent 0),
    radial-gradient(rgba(0, 0, 0, 0.04) 1px, transparent 0);
}

.figma-node {
  position: absolute;
  border: 1px dashed rgba(217, 70, 239, 0.3);
  border-radius: 4px;
  background-color: rgba(217, 70, 239, 0.03);
  transition: all 0.3s ease;
}

.node-header {
  top: 15px;
  left: 15px;
  right: 15px;
  height: 16px;
}

.node-hero {
  top: 42px;
  left: 15px;
  right: 15px;
  bottom: 15px;
  border-style: solid;
  border-color: rgba(217, 70, 239, 0.15);
}

.node-btn {
  position: absolute;
  top: 80px;
  left: 30px;
  width: 60px;
  height: 16px;
  border: 1px solid rgba(217, 70, 239, 0.3);
  border-radius: 2px;
  background-color: rgba(217, 70, 239, 0.05);
}

.figma-cursor {
  position: absolute;
  top: 90px;
  left: 120px;
  display: flex;
  align-items: center;
  gap: 4px;
  pointer-events: none;
  animation: figma-cursor-move 6s ease-in-out infinite;
}

.cursor-svg {
  width: 14px;
  height: 14px;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.5));
}

.cursor-tag {
  font-family: var(--font-sub);
  font-size: 8px;
  font-weight: 600;
  color: white;
  background-color: var(--color-ux);
  padding: 1px 4px;
  border-radius: 2px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

@keyframes figma-cursor-move {
  0% { transform: translate(0, 0); }
  30% { transform: translate(-60px, -20px); }
  35% { transform: translate(-60px, -20px) scale(0.9); }
  40% { transform: translate(-60px, -20px); }
  70% { transform: translate(-100px, 10px); }
  100% { transform: translate(0, 0); }
}

.bento-card.card-ux:hover .node-btn {
  animation: figma-click-pulse 6s ease-in-out infinite;
}

@keyframes figma-click-pulse {
  0%, 32% { background-color: rgba(217, 70, 239, 0.05); transform: scale(1); }
  35% { background-color: rgba(217, 70, 239, 0.25); transform: scale(0.95); }
  38%, 100% { background-color: rgba(217, 70, 239, 0.05); transform: scale(1); }
}

/* 2. Quantitative Economics Line Chart Visual */
.chart-canvas {
  width: 100%;
  height: 100%;
  position: relative;
}

.chart-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 15px 0;
}

.grid-row {
  width: 100%;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.05);
}

[data-theme="light"] .grid-row {
  background-color: rgba(0, 0, 0, 0.04);
}

.chart-svg {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

.chart-line {
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  animation: chart-draw 6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards infinite;
}

.chart-dot {
  position: absolute;
  width: 6px;
  height: 6px;
  background-color: var(--color-econ);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  box-shadow: 0 0 10px var(--color-econ);
}

.chart-dot.dot-1 {
  animation: chart-dot-show 6s ease infinite;
  animation-delay: 1.8s;
}

.chart-dot.dot-2 {
  animation: chart-dot-show 6s ease infinite;
  animation-delay: 3.3s;
}

.chart-tooltip {
  position: absolute;
  background-color: rgba(6, 182, 212, 0.15);
  border: 1px solid rgba(6, 182, 212, 0.4);
  border-radius: 4px;
  padding: 2px 6px;
  backdrop-filter: blur(4px);
  transform: scale(0) translateY(10px);
  transform-origin: bottom center;
  pointer-events: none;
  animation: chart-tooltip-show 6s ease infinite;
  animation-delay: 3.4s;
}

.tooltip-val {
  font-family: var(--font-sub);
  font-size: 8px;
  font-weight: 700;
  color: var(--color-econ);
}

@keyframes chart-draw {
  0% { stroke-dashoffset: 600; }
  60%, 100% { stroke-dashoffset: 0; }
}

@keyframes chart-dot-show {
  0%, 40% { transform: translate(-50%, -50%) scale(0); }
  50%, 90% { transform: translate(-50%, -50%) scale(1); }
  100% { transform: translate(-50%, -50%) scale(0); }
}

@keyframes chart-tooltip-show {
  0%, 50% { transform: scale(0) translateY(10px); opacity: 0; }
  60%, 90% { transform: scale(1) translateY(0); opacity: 1; }
  100% { transform: scale(0) translateY(10px); opacity: 0; }
}

/* 3. Venture Strategy Pitch Deck Visual */
.deck-canvas {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.deck-slide {
  position: absolute;
  width: 110px;
  height: 70px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), border-color 0.5s ease;
  transform-origin: center center;
}

[data-theme="light"] .deck-slide {
  background-color: white;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.slide-1 {
  transform: translate(0, 0) rotate(0deg);
  z-index: 3;
}

.slide-2 {
  transform: translate(5px, 5px) rotate(2deg);
  z-index: 2;
  opacity: 0.8;
}

.slide-3 {
  transform: translate(10px, 10px) rotate(4deg);
  z-index: 1;
  opacity: 0.6;
}

.bento-card.card-strategy:hover .slide-1 {
  transform: translate(-28px, -5px) rotate(-6deg);
  border-color: rgba(245, 158, 11, 0.4);
}

.bento-card.card-strategy:hover .slide-2 {
  transform: translate(5px, 0px) rotate(0deg);
  opacity: 1;
}

.bento-card.card-strategy:hover .slide-3 {
  transform: translate(38px, 8px) rotate(6deg);
  opacity: 1;
}

.slide-mini-title {
  font-family: var(--font-main);
  font-size: 8px;
  font-weight: 800;
  color: var(--color-strategy);
  display: block;
  margin-bottom: 4px;
}

.slide-mini-bar {
  width: 100%;
  height: 6px;
  background-color: rgba(245, 158, 11, 0.15);
  border-radius: 1px;
}

.slide-mini-lines {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 10px;
}

.line-sm {
  width: 80%;
  height: 3px;
  background-color: var(--border-color);
  border-radius: 1px;
}

.line-sm:nth-child(2) {
  width: 55%;
}

.slide-mini-chart {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: conic-gradient(var(--color-strategy) 0% 70%, rgba(245, 158, 11, 0.1) 70% 100%);
  margin: 10px auto 0;
}

.card-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.card-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 30px;
  line-height: 1.7;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.card-tags span {
  font-family: var(--font-sub);
  font-size: 0.72rem;
  font-weight: 600;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  padding: 4px 10px;
  border-radius: 4px;
  color: var(--text-secondary);
}

[data-theme="light"] .card-tags span {
  background-color: rgba(15, 23, 42, 0.03);
}

/* ═══ 8. TYPOGRAPHIC HOVER-TO-REVEAL PROJECTS SECTION ═══ */
.projects-section {
  position: relative;
  border-bottom: 1px solid var(--border-color);
  padding: 100px 0;
  background-color: var(--bg-app);
  z-index: 10;
  transition: background-color 0.6s ease, border-color 0.6s ease;
}

.projects-header {
  margin-bottom: 60px;
}

.stacked-cards-wrapper {
  display: flex;
  flex-direction: column;
  padding-bottom: 100px;
  margin-top: 40px;
  position: relative;
}

.stacked-card {
  position: sticky;
  padding-top: 40px;
  margin-bottom: 40px;
}

.stacked-card.card-1 { top: 120px; z-index: 10; }
.stacked-card.card-2 { top: 160px; z-index: 11; }
.stacked-card.card-3 { top: 200px; z-index: 12; }
.stacked-card.card-4 { top: 240px; z-index: 13; }
.stacked-card.card-5 { top: 280px; z-index: 14; }
.stacked-card.card-6 { top: 320px; z-index: 15; }

.card-inner {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 480px;
  transition: border-color var(--transition-smooth);
  transform-origin: top center;
  will-change: transform, filter;
}

[data-theme="light"] .card-inner {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

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

.card-content {
  padding: 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.card-header {
  margin-bottom: 24px;
}

.row-num {
  font-family: var(--font-main);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.stacked-card.card-1 .row-num { color: var(--color-ux); }
.stacked-card.card-2 .row-num { color: var(--color-econ); }
.stacked-card.card-3 .row-num { color: var(--color-strategy); }
.stacked-card.card-4 .row-num { color: var(--color-ux); }
.stacked-card.card-5 .row-num { color: var(--color-econ); }

.row-title {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.1;
}

.card-desc {
  font-family: var(--font-body);
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 30px;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
}

.row-tool {
  font-family: var(--font-sub);
  font-size: 0.85rem;
  background-color: rgba(255, 255, 255, 0.04);
  padding: 6px 14px;
  border-radius: 6px;
  color: var(--text-muted);
}

[data-theme="light"] .row-tool {
  background-color: rgba(0, 0, 0, 0.03);
}

.card-btn {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.card-visual {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--bg-app);
}

.card-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.stacked-card:hover .card-visual img {
  transform: scale(1.05);
}

@media (max-width: 991px) {
  .card-inner {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .card-content {
    padding: 40px 30px;
  }
  .card-visual {
    height: 300px;
    order: -1;
  }
  .row-title {
    font-size: 2.2rem;
  }
  .stacked-card.card-1 { top: 80px; }
  .stacked-card.card-2 { top: 100px; }
  .stacked-card.card-3 { top: 120px; }
  .stacked-card.card-4 { top: 140px; }
  .stacked-card.card-5 { top: 160px; }
  .stacked-card.card-6 { top: 180px; }
}

/* ═══ 9. QUANTIFIED HABITS & ROUTINE BENTO GRID ═══ */
.habits-bento-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  grid-template-rows: auto auto;
  gap: 30px;
}

.habit-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 30px;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-card);
}

.habit-card:hover {
  background-color: var(--bg-card-hover);
  border-color: var(--border-color-hover);
}

.habit-card-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 12px;
}

/* Card A: Timeline schedule list */
.routine-timeline {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  padding-left: 10px;
}

.routine-timeline::before {
  content: '';
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 89px;
  width: 1px;
  background-color: var(--border-color);
}

.routine-item {
  display: flex;
  align-items: center;
  position: relative;
}

.time-label {
  width: 70px;
  font-family: var(--font-sub);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
}

.routine-dot {
  width: 7px;
  height: 7px;
  background-color: var(--text-muted);
  border-radius: 50%;
  margin-left: 12px;
  margin-right: 24px;
  z-index: 10;
  transition: var(--transition-fast);
}

.routine-item:hover .routine-dot {
  background-color: var(--color-econ);
  box-shadow: 0 0 8px var(--color-econ);
  transform: scale(1.3);
}

.routine-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.routine-icon {
  font-size: 1.1rem;
}

.routine-label {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
}

/* Card B: Habits metrics bars */
.stats-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.stat-progress-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stat-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.stat-meta strong {
  font-family: var(--font-heading);
  color: var(--text-primary);
}

.progress-track {
  width: 100%;
  height: 6px;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
  overflow: hidden;
}

[data-theme="light"] .progress-track {
  background-color: rgba(15, 23, 42, 0.04);
}

.progress-bar-fill {
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--color-ux), var(--color-econ));
  transition: width 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Card C: Music Playing widget */
.card-music {
  display: flex;
  flex-direction: column;
}

.music-player-widget {
  display: flex;
  align-items: center;
  gap: 24px;
}

.disc-wrapper {
  position: relative;
  width: 90px;
  height: 90px;
  flex-shrink: 0;
}

.vinyl-disc {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle, #2a2a2d 20%, #151517 40%, #000 60%);
  border: 3px solid #28282b;
  position: relative;
}

.vinyl-disc::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 32px;
  height: 32px;
  background-color: var(--color-econ);
  border-radius: 50%;
  z-index: 2;
}

.vinyl-disc::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  background-color: var(--bg-card);
  border-radius: 50%;
  z-index: 3;
}

.vinyl-disc.spinning {
  animation: rotate-disc 8s linear infinite;
}

@keyframes rotate-disc {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.music-bars-anim {
  position: absolute;
  bottom: 0;
  right: 0;
  display: flex;
  gap: 3px;
  z-index: 5;
}

.music-bars-anim span {
  width: 3px;
  height: 10px;
  background-color: var(--color-econ);
  animation: visualizer 1s ease infinite alternate;
}

.music-bars-anim span:nth-child(2) { animation-delay: 0.2s; }
.music-bars-anim span:nth-child(3) { animation-delay: 0.5s; }
.music-bars-anim span:nth-child(4) { animation-delay: 0.1s; }

@keyframes visualizer {
  0% { height: 4px; }
  100% { height: 18px; }
}

.music-info {
  display: flex;
  flex-direction: column;
}

.song-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.song-artist {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.player-controls {
  display: flex;
  gap: 16px;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.player-controls i {
  cursor: pointer;
  transition: var(--transition-fast);
}

.player-controls i:hover {
  color: var(--color-econ);
}

/* Card D: Future milestones */
.goals-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.goals-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.goal-check {
  color: var(--color-ux);
  font-size: 1.05rem;
}

/* ═══ 10. EXPERIENCE TIMELINE ═══ */
.experience-timeline-grid {
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--border-color);
  padding-left: 30px;
  margin-left: 20px;
  position: relative;
}

.experience-timeline-grid::after {
  content: '';
  position: absolute;
  top: 0;
  left: -1px;
  width: 2px;
  height: var(--timeline-progress, 0%);
  background: linear-gradient(to bottom, var(--color-ux), var(--color-econ), var(--color-strategy));
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.5), 0 0 6px rgba(255, 0, 127, 0.4);
  z-index: 1;
  transition: height 0.1s ease-out;
}

.timeline-row {
  display: grid;
  grid-template-columns: 180px 20px 1fr;
  gap: 20px;
  position: relative;
  padding-bottom: 50px;
  opacity: 0.3;
  transform: translateY(15px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.timeline-row:last-child {
  padding-bottom: 0;
}

.timeline-row.illuminated {
  opacity: 1;
  transform: translateY(0);
}

.role-year {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 2px;
  transition: color 0.4s ease;
}

.timeline-row.illuminated .role-year {
  color: var(--text-primary);
}

.timeline-marker {
  display: flex;
  justify-content: center;
  position: relative;
}

.marker-dot {
  width: 10px;
  height: 10px;
  background-color: var(--text-muted);
  border-radius: 50%;
  position: absolute;
  top: 8px;
  left: -36px;
  border: 2px solid var(--bg-app);
  z-index: 10;
  transition: background-color 0.4s ease, box-shadow 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.timeline-row.illuminated .marker-dot {
  background-color: var(--color-econ);
  box-shadow: 0 0 10px var(--color-econ);
  transform: scale(1.3);
}

.timeline-row.illuminated:nth-child(1) .marker-dot {
  background-color: var(--color-ux);
  box-shadow: 0 0 10px var(--color-ux);
}

.timeline-row.illuminated:nth-child(2) .marker-dot {
  background-color: var(--color-econ);
  box-shadow: 0 0 10px var(--color-econ);
}

.timeline-row.illuminated:nth-child(3) .marker-dot {
  background-color: var(--color-strategy);
  box-shadow: 0 0 10px var(--color-strategy);
}

.role-details {
  display: flex;
  flex-direction: column;
}

.role-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text-primary);
}

.company-name {
  font-family: var(--font-sub);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-econ);
  margin-bottom: 12px;
}

.timeline-row:nth-child(1) .company-name { color: var(--color-ux); }
.timeline-row:nth-child(2) .company-name { color: var(--color-econ); }
.timeline-row:nth-child(3) .company-name { color: var(--color-strategy); }

.role-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ═══ 11. MINIMALIST CONTACT FORM ═══ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: flex-start;
}

.contact-intro {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 40px;
}

.direct-contact-methods {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.direct-link {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-secondary);
  text-decoration: none;
  font-family: var(--font-sub);
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition-fast);
}

.direct-link i {
  font-size: 1.1rem;
  color: var(--text-primary);
}

.direct-link:hover {
  color: var(--text-primary);
}

.contact-form-container {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 40px;
  box-shadow: var(--shadow-card);
}

.minimal-contact-form {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  position: relative;
  width: 100%;
}

.form-group input, .form-group textarea {
  width: 100%;
  background: none;
  border: none;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 10px 0;
  transition: var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-bottom-color: var(--color-econ);
}

.form-group label {
  position: absolute;
  top: 10px;
  left: 0;
  font-family: var(--font-sub);
  font-size: 0.88rem;
  color: var(--text-muted);
  pointer-events: none;
  transition: var(--transition-fast);
}

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

/* ═══ ACCESSIBILITY ═══ */
:focus-visible {
  outline: 2px solid var(--color-econ);
  outline-offset: 4px;
}

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

.form-group input:focus ~ label,
.form-group input:not(:placeholder-shown) ~ label,
.form-group textarea:focus ~ label,
.form-group textarea:not(:placeholder-shown) ~ label {
  top: -12px;
  font-size: 0.72rem;
  color: var(--color-econ);
}

.input-line {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 1.5px;
  background-color: var(--color-econ);
  transition: var(--transition-fast);
}

.form-group input:focus ~ .input-line,
.form-group textarea:focus ~ .input-line {
  width: 100%;
}

.form-btn {
  width: 100%;
  gap: 10px;
  background-color: var(--text-primary);
  color: var(--bg-app);
  border: 1px solid var(--text-primary);
  padding: 14px;
}

.form-btn:hover {
  transform: translateY(-2px);
}

.send-icon {
  font-size: 0.85rem;
}

.form-alert {
  display: none;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sub);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 12px;
  border-radius: 6px;
  margin-top: 10px;
}

.form-alert.success {
  background-color: rgba(34, 197, 94, 0.1);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.2);
}

/* ═══ 12. MINIMAL FOOTER ═══ */
.app-footer {
  border-top: 1px solid var(--border-color);
  padding: 40px 0;
  z-index: 10;
  position: relative;
  background-color: var(--bg-app);
  transition: background-color 0.6s ease, border-color 0.6s ease;
  overflow: hidden;
}

.footer-video-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  pointer-events: none;
  opacity: 0.75; /* Vibrant and highly visible glowing lava! */
  mix-blend-mode: screen;
  filter: contrast(1.25) saturate(1.5) brightness(1.05);
  transition: opacity 0.6s ease;
}

[data-theme="light"] .footer-video-bg {
  opacity: 0.25;
  mix-blend-mode: multiply;
  filter: contrast(1.2) saturate(1.3) grayscale(0.2);
}

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

.copyright-text {
  font-family: var(--font-sub);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9), 0 0 10px rgba(0, 0, 0, 0.5);
  font-weight: 500;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  text-decoration: none;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9), 0 0 10px rgba(0, 0, 0, 0.5);
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: var(--color-econ);
  text-shadow: 0 0 12px var(--color-econ);
}

/* ═══ 12b. IMPACT & SCALE METRICS SECTION ═══ */
.skills-section {
  padding: 120px 0;
  background-color: var(--bg-app);
}

.skills-container {
  padding: 32px;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.skills-tabs {
  display: flex;
  gap: 12px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 16px;
  overflow-x: auto;
  scrollbar-width: none;
}

.skills-tabs::-webkit-scrollbar {
  display: none;
}

.skill-tab-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-sub);
  font-size: 1.05rem;
  font-weight: 600;
  padding: 12px 24px;
  cursor: pointer;
  position: relative;
  transition: color 0.3s ease;
  white-space: nowrap;
}

.skill-tab-btn:hover {
  color: var(--text-primary);
}

.skill-tab-btn.active {
  color: var(--text-primary);
}

.skill-tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -17px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--color-ux), var(--color-brand));
  border-radius: 2px;
}

.skills-panes {
  position: relative;
  min-height: 200px;
}

.skill-pane {
  display: none;
  animation: fadeIn 0.4s ease forwards;
}

.skill-pane.active {
  display: block;
}

.skill-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.skill-box {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.skill-box:hover {
  transform: translateY(-2px);
  border-color: var(--color-brand);
}

.skill-icon {
  font-family: var(--font-sub);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--color-brand);
  background: rgba(255, 68, 0, 0.1);
  padding: 6px 8px;
  border-radius: 6px;
}

.skill-name {
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--text-primary);
  font-size: 1rem;
}

.skill-pane-desc {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  border-left: 3px solid var(--color-ux);
  padding-left: 16px;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ═══ 12c. SECTOR EXPERTISE / SERVICES SECTION ═══ */
.niches-section {
  padding: 120px 0;
  background-color: var(--bg-app);
  border-bottom: 1px solid var(--border-color);
  position: relative;
  z-index: 10;
  overflow: hidden;
  transition: background-color 0.6s ease, border-color 0.6s ease;
}

.niches-container-split {
  display: grid;
  grid-template-columns: 0.8fr 1.5fr 1.2fr;
  gap: 60px;
  align-items: center;
}

.niches-sidebar {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  min-height: 250px;
}

.niches-sidebar .sidebar-top {
  font-family: var(--font-sub);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  transition: color 0.6s ease;
}

.niches-sidebar .sidebar-bottom {
  font-family: var(--font-main);
  font-size: 1.15rem;
  line-height: 1.5;
  color: var(--text-secondary);
  max-width: 200px;
  margin-top: auto;
  transition: color 0.6s ease;
}

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

.niche-item {
  cursor: pointer;
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 0.35;
}

.niche-item.active {
  opacity: 1;
}

.niche-title {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  display: inline-block;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), color 0.4s ease;
}

.niche-item.active .niche-title {
  transform: translateX(10px);
}

.niche-item[data-service-index="0"].active .niche-title { color: var(--color-ux); }
.niche-item[data-service-index="1"].active .niche-title { color: var(--color-econ); }
.niche-item[data-service-index="2"].active .niche-title { color: var(--color-strategy); }
.niche-item[data-service-index="3"].active .niche-title { color: var(--color-ux); }
.niche-item[data-service-index="4"].active .niche-title { color: var(--color-econ); }

.niches-display {
  display: flex;
  justify-content: flex-end;
}

.display-frame {
  width: 100%;
  max-width: 320px;
  height: 400px;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  background-color: var(--bg-card);
  transition: background-color 0.6s ease, border-color 0.6s ease;
}

.display-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(0.9) translateY(20px);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.display-img.active {
  opacity: 1;
  transform: scale(1) translateY(0);
  z-index: 2;
}

[data-theme="light"] .niches-section {
  background-color: var(--bg-app);
}

/* Responsive Rules */
@media (max-width: 991px) {
  .niches-container-split {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .niches-sidebar {
    min-height: auto;
    gap: 10px;
  }
  
  .niches-sidebar .sidebar-bottom {
    max-width: 100%;
    margin-top: 10px;
  }
  
  .niche-title {
    font-size: 2.5rem;
  }
  
  .niche-item.active .niche-title {
    transform: translateX(5px);
  }
  
  .niches-display {
    justify-content: center;
    margin-top: 20px;
  }
  
  .display-frame {
    max-width: 280px;
    height: 350px;
  }
}

/* ═══ 13. RESPONSIVE MEDIA CONTROLLER ═══ */
@media (max-width: 1200px) {
  .hero-headline { font-size: 3.4rem; }
  .bento-grid { grid-template-columns: 1fr 1fr; }
  .projects-sticky-wrapper { padding: 60px 0; }
  .project-slide-card { width: 720px; height: 420px; }
  .habits-bento-grid { grid-template-columns: 1fr; }
}

@media (max-width: 991px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-image-col { display: flex; justify-content: center; }
  .editorial-portrait-frame { max-width: 380px; }
  .bento-grid { grid-template-columns: 1fr; }
  .projects-section-horizontal { height: auto; }
  .projects-sticky-wrapper {
    position: relative;
    height: auto;
    width: 100%;
    padding: 60px 0;
  }
  .projects-slide-track-container {
    overflow-x: auto;
    padding-bottom: 20px;
    -webkit-overflow-scrolling: touch;
  }
  .projects-slide-track {
    transform: none !important;
    padding: 0 40px;
  }
  .project-slide-card {
    width: 600px;
    height: auto;
    grid-template-columns: 1fr;
  }
  .project-image-wrapper {
    height: 260px;
    border-right: none;
    border-bottom: 1px solid var(--border-color);
  }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .grid-vertical-line.col-1 { left: 10%; }
  .grid-vertical-line.col-2 { display: none; }
  .grid-vertical-line.col-3 { left: 90%; }
  
  /* Metrics mobile override */
  .metrics-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .metric-card {
    padding-top: 16px;
  }
}

@media (max-width: 768px) {
  .header-container { padding: 0 20px; }
  .nav-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--bg-app);
    border-top: none;
    padding: 100px 40px 40px 40px;
    z-index: 90;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
  }
  
  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }
  
  .nav-list {
    flex-direction: column;
    gap: 24px;
    width: 100%;
  }
  
  .nav-item {
    font-size: 1.4rem;
  }
  
  .mobile-toggle {
    display: flex;
  }
  
  .mobile-toggle.active .hamburger-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  
  .mobile-toggle.active .hamburger-bar:nth-child(2) {
    transform: rotate(-45deg);
  }
  
  .hero-headline { font-size: 2.5rem; }
  .hero-subtitle { font-size: 1.1rem; }
  .hero-metadata { flex-direction: column; gap: 12px; }
  .section-heading { font-size: 2.2rem; }
  .timeline-row { grid-template-columns: 1fr; gap: 8px; padding-bottom: 30px; }
  .marker-dot { left: -14px; top: 32px; }
  .experience-timeline-grid { margin-left: 0; padding-left: 20px; }
  .role-year { margin-top: 0; font-size: 0.95rem; }
  .form-row { grid-template-columns: 1fr; }
  .project-slide-card { width: 310px; }
  .project-image-wrapper { height: 180px; }
  .project-details { padding: 20px; }
  .project-details .project-title { font-size: 1.5rem; }
  .projects-slide-track { gap: 20px; padding: 0 20px; }
  .footer-container { flex-direction: column; gap: 16px; text-align: center; }
}

/* ==========================================================================
   14. DYNAMIC TEXT CURSOR FOLLOWER (FANCY.DESIGN STYLE)
   ========================================================================== */
.cursor-follower {
  position: fixed;
  top: 0;
  left: 0;
  width: 24px;
  height: 24px;
  background-color: transparent;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate3d(-50%, -50%, 0);
  display: flex;
  align-items: center;
  justify-content: center;
  mix-blend-mode: difference;
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              height 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              background-color 0.3s ease,
              border-radius 0.3s ease,
              box-shadow 0.3s ease;
  opacity: 0;
  will-change: transform, width, height;
}

/* Create the crosshair/star effect using pseudo-elements */
.cursor-follower::before,
.cursor-follower::after {
  content: '';
  position: absolute;
  background-color: var(--text-primary);
  transition: opacity 0.2s ease, transform 0.3s ease;
}

/* Vertical line of crosshair */
.cursor-follower::before {
  width: 2px;
  height: 12px;
}

/* Horizontal line of crosshair */
.cursor-follower::after {
  width: 12px;
  height: 2px;
}

.cursor-follower.active {
  opacity: 1;
}

.cursor-text {
  font-family: var(--font-sub);
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--bg-app); /* matches theme base background */
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.2s ease, transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  text-transform: uppercase;
  pointer-events: none;
}

/* Expanded pill state when hovering over interactive elements */
.cursor-follower.expanded {
  width: 90px;
  height: 90px;
  mix-blend-mode: normal;
  background-color: var(--text-primary);
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.2);
  border-radius: 50%;
}

/* Hide the crosshair lines when expanded to a pill */
.cursor-follower.expanded::before,
.cursor-follower.expanded::after {
  opacity: 0;
  transform: scale(0);
}

[data-theme="light"] .cursor-follower.expanded {
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.15);
}

.cursor-follower.expanded .cursor-text {
  opacity: 1;
  transform: scale(1);
}

/* Specific styling for fields and inputs where cursor size should expand smaller */
.cursor-follower.small-expand {
  width: 45px;
  height: 45px;
  mix-blend-mode: difference;
}

/* ═══ 15. INTERACTIVE MARQUEE SECTION (FANCY.DESIGN STYLE) ═══ */
.interactive-marquee-section {
  width: 100%;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 35px 0;
  cursor: pointer;
  overflow: hidden;
  position: relative;
  background-color: var(--bg-app);
  transition: background-color 0.4s ease, border-color 0.4s ease;
  z-index: 5;
}

.interactive-marquee-section:hover {
  background-color: rgba(255, 0, 127, 0.02);
  border-color: rgba(255, 0, 127, 0.25);
}

[data-theme="light"] .interactive-marquee-section:hover {
  background-color: rgba(219, 39, 119, 0.02);
  border-color: rgba(219, 39, 119, 0.25);
}

.marquee-wrapper {
  overflow: hidden;
  width: 100%;
  display: flex;
}

.marquee-track {
  display: flex;
  gap: 50px;
  width: max-content;
  animation: scroll-marquee-banner 20s linear infinite;
  will-change: transform;
}

.marquee-item {
  font-family: var(--font-heading);
  font-size: 3.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--text-primary);
  transition: color 0.4s ease, text-shadow 0.4s ease;
  white-space: nowrap;
}

.interactive-marquee-section:hover .marquee-item {
  color: var(--color-ux);
  text-shadow: 0 0 20px rgba(255, 0, 127, 0.2);
}

@keyframes scroll-marquee-banner {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); } /* slide half path for infinite loop */
}

/* ═══ 16. SLIDING UNDERLINE LINKS ═══ */
.nav-item {
  position: relative;
  padding: 6px 0;
}

.nav-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--color-ux), var(--color-econ));
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-item:hover::after, .nav-item.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* ==========================================================================
   17. AURORA FLARE GRADIENTS (IGLOO.INC STYLE)
   ========================================================================== */
.aurora-flare {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle at center,
    rgba(0, 240, 255, 0.1) 0%,
    rgba(255, 0, 127, 0.08) 25%,
    rgba(139, 92, 246, 0.05) 50%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  animation: rotate-aurora 25s linear infinite;
  animation-play-state: paused;
  will-change: transform;
}

@keyframes rotate-aurora {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Hover triggers for cards to glow with the Aurora */
.bento-card:hover .aurora-flare,
.project-slide-card:hover .aurora-flare {
  opacity: 1;
  animation-play-state: running;
}

/* Make sure child contents stack on top of the absolute aurora glow */
.bento-card > *:not(.aurora-flare) {
  position: relative;
  z-index: 2;
}

.project-slide-card > *:not(.aurora-flare) {
  position: relative;
  z-index: 2;
}

/* ═══ 18. ARCTIC FLOATING ICE PARTICLES (IGLOO.INC STYLE) ═══ */
.app-footer {
  position: relative;
  overflow: hidden;
}

.arctic-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
  overflow: hidden;
}

.ice-crystal {
  position: absolute;
  background-color: var(--text-primary);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  filter: blur(1.5px);
  animation: float-ice-crystal var(--drift-duration) linear infinite;
  animation-delay: var(--drift-delay);
  bottom: -20px;
  will-change: transform, opacity;
}

@keyframes float-ice-crystal {
  0% {
    transform: translate3d(0, 0, 0) scale(0.5);
    opacity: 0;
  }
  15% {
    opacity: var(--max-opacity);
  }
  85% {
    opacity: var(--max-opacity);
  }
  100% {
    transform: translate3d(var(--drift-x), -140px, 0) scale(1.1);
    opacity: 0;
  }
}

/* ═══ 19. GROTESQUE RAZOR-THIN TYPOGRAPHY REFINEMENTS ═══ */
.subtitle-label {
  font-weight: 400 !important;
  letter-spacing: 0.18em !important;
}

.status-badge {
  font-weight: 400 !important;
  letter-spacing: 0.08em !important;
}

.role-year {
  font-weight: 400 !important;
  letter-spacing: 0.05em !important;
}

.copyright-text {
  font-weight: 300 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
}

/* ==========================================================================
   20. TYPEWRITER PRELOADER & ELASTIC BOUNCY TYPOGRAPHY (RADNAABAZAR + FANCY STYLE)
   ========================================================================== */

/* Prevent scroll during preloader */
body.preloading {
  overflow: hidden !important;
  height: 100vh;
}

.preloader-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: var(--bg-app);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 1.2s cubic-bezier(0.85, 0, 0.15, 1), opacity 1.2s cubic-bezier(0.85, 0, 0.15, 1);
  will-change: transform, opacity;
}

.preloader-screen.fade-out {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

.preloader-content {
  text-align: center;
  padding: 0 20px;
}

.preloader-title {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  row-gap: 10px;
}

@media (max-width: 768px) {
  .preloader-title {
    font-size: 2rem;
  }
}

.typewriter-cursor {
  font-family: var(--font-heading);
  font-weight: 300;
  color: var(--color-econ);
  animation: blink-cursor 0.8s step-end infinite;
  margin-left: 6px;
  display: inline-block;
}

@keyframes blink-cursor {
  from, to { opacity: 0; }
  50% { opacity: 1; }
}

.preloader-char {
  display: inline-block;
  transform-origin: bottom center;
  white-space: pre;
}

.preloader-char.bounce {
  animation: preloader-bounce 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}

@keyframes preloader-bounce {
  0%, 100% {
    transform: translateY(0) scale(1);
    color: var(--text-primary);
  }
  50% {
    transform: translateY(-25px) scale(1.15);
    color: var(--color-econ);
    text-shadow: 0 0 15px rgba(0, 240, 255, 0.4);
  }
}

/* Hero Headline Bouncy Letters */
.bouncy-word {
  display: inline-block;
  white-space: nowrap;
}

.bouncy-char {
  display: inline-block;
  transform-origin: bottom center;
  cursor: default;
  transition: color 0.3s ease;
  will-change: transform;
}

.bouncy-char:hover {
  animation: elastic-jump 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
  color: var(--color-econ);
  text-shadow: 0 0 8px rgba(0, 240, 255, 0.2);
}

.bouncy-space {
  display: inline-block;
  white-space: pre;
}

@keyframes elastic-jump {
  0% { transform: scale(1) translateY(0); }
  30% { transform: scale(1.25, 0.75) translateY(0); }
  40% { transform: scale(0.75, 1.25) translateY(-20px); }
  50% { transform: scale(1.15, 0.85) translateY(-20px); }
  65% { transform: scale(0.95, 1.05) translateY(0); }
  75% { transform: scale(1.05, 0.95) translateY(0); }
  100% { transform: scale(1) translateY(0); }
}

/* ═══ 19. METHODOLOGY / DESIGN PROCESS SECTION ═══ */
.methodology-section {
  padding: 100px 0;
  border-top: 1px solid var(--border-color);
  background-color: var(--bg-app);
  position: relative;
  z-index: 5;
}

.methodology-section .section-header {
  margin-bottom: 60px;
}

.methodology-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.methodology-card {
  border-top: 1px solid var(--border-color);
  padding-top: 30px;
  position: relative;
  transition: border-color 0.4s ease;
}

.methodology-card::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--text-primary);
  transition: width 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.methodology-card:hover::before {
  width: 100%;
}

.methodology-card:nth-child(1):hover::before {
  background: var(--color-ux);
}
.methodology-card:nth-child(2):hover::before {
  background: var(--color-econ);
}
.methodology-card:nth-child(3):hover::before {
  background: var(--color-strategy);
}

.phase-num-wrapper {
  margin-bottom: 20px;
  overflow: hidden;
  height: 50px;
}

.phase-num {
  display: block;
  font-family: var(--font-main);
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
  color: var(--text-muted);
  opacity: 0.4;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), color 0.4s ease, opacity 0.4s ease;
}

.methodology-card:hover .phase-num {
  transform: translateY(-5px);
  opacity: 1;
}

.methodology-card:nth-child(1):hover .phase-num {
  color: var(--color-ux);
}
.methodology-card:nth-child(2):hover .phase-num {
  color: var(--color-econ);
}
.methodology-card:nth-child(3):hover .phase-num {
  color: var(--color-strategy);
}

.phase-title {
  font-family: var(--font-main);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 15px;
  transition: color 0.3s ease;
}

.phase-desc {
  font-family: var(--font-sub);
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-muted);
}

@media (max-width: 991px) {
  .methodology-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }
}

/* ═══ 20. INTERACTIVE TESTIMONIALS SLIDER SECTION ═══ */
.testimonials-section {
  padding: 100px 0;
  border-top: 1px solid var(--border-color);
  background-color: var(--bg-app);
  position: relative;
  z-index: 5;
}


.anim-testim-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  max-width: 1000px;
  margin: 0 auto;
  align-items: center;
}

.anim-testim-images {
  position: relative;
  height: 400px;
  width: 100%;
  perspective: 1000px;
  transform-style: preserve-3d;
}

.anim-testim-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transform-origin: bottom;
  will-change: transform, opacity, z-index;
  transition: all 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.anim-testim-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px 0;
  position: relative;
}

.anim-testim-text-wrap {
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.anim-testim-name {
  font-size: 1.8rem;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 4px 0;
}

.anim-testim-designation {
  font-size: 1rem;
  font-family: var(--font-sub);
  color: var(--text-muted);
  margin: 0 0 32px 0;
}

.anim-testim-quote {
  font-size: 1.4rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.anim-testim-word {
  display: inline-block;
  will-change: filter, opacity, transform;
  transition: filter 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
  opacity: 0;
  filter: blur(10px);
  transform: translateY(5px);
}

.anim-testim-word.revealed {
  opacity: 1;
  filter: blur(0px);
  transform: translateY(0);
}

.anim-testim-controls {
  display: flex;
  gap: 16px;
  margin-top: 48px;
}

.anim-testim-btn {
  height: 40px;
  width: 40px;
  border-radius: 50%;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.anim-testim-btn:hover {
  background-color: var(--text-primary);
  color: var(--bg-app);
}

.anim-testim-btn i {
  transition: transform 0.3s ease;
}

#anim-testim-prev:hover i {
  transform: rotate(12deg);
}

#anim-testim-next:hover i {
  transform: rotate(-12deg);
}

@media (max-width: 991px) {
  .anim-testim-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* ═══ 21. SCROLL-ANIMATED LAVA ROCK ASSET ═══ */
.floating-lava-rock-container {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 380px;
  height: 380px;
  z-index: 2; /* In front of bg-app and grids, behind headers/bento grids/text */
  pointer-events: none;
  opacity: 0.8;
  mix-blend-mode: screen;
  filter: contrast(1.1) saturate(1.2) brightness(1.05);
  transition: opacity 1.2s ease-out;
}

.floating-lava-rock {
  width: 100%;
  height: 100%;
  object-fit: contain;
  will-change: transform;
}

[data-theme="light"] .floating-lava-rock-container {
  opacity: 0.3;
  mix-blend-mode: multiply;
  filter: invert(1) hue-rotate(180deg) grayscale(0.2);
}

@media (max-width: 991px) {
  .floating-lava-rock-container {
    width: 260px;
    height: 260px;
    opacity: 0.5;
  }
}

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

/* ==========================================================================
   CASE STUDY TEMPLATE STYLES
   ========================================================================== */

.case-study-page {
  background: var(--bg-primary);
}

.case-study-container {
  padding-top: 140px; /* Account for fixed header */
}

/* Hero Section */
.cs-hero {
  padding: 60px 0;
  text-align: center;
}

.cs-title {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 6vw, 5.5rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 40px;
  color: var(--text-primary);
}

.cs-title .accent-gradient {
  display: block;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  margin-top: 10px;
}

.cs-hero-image-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  position: relative;
  background: var(--bg-card);
}

.cs-hero-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Metadata Bento Grid */
.cs-meta {
  padding: 60px 0;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 80px;
}

.cs-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.cs-meta-item h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.cs-meta-item p {
  font-size: 1.1rem;
  color: var(--text-primary);
  font-weight: 500;
  line-height: 1.4;
}

/* Editorial Content */
.cs-content {
  padding: 40px 0;
}

.cs-text-block {
  max-width: 800px;
  margin: 0 auto;
}

.cs-text-block h2 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  margin-bottom: 30px;
  color: var(--text-primary);
}

.cs-text-block p {
  font-size: 1.25rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

/* Visuals */
.cs-visual {
  padding: 60px 0;
}

.cs-full-img {
  width: 100%;
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  background: var(--bg-card);
}

/* Next Project CTA */
.cs-next-project {
  text-align: center;
  padding: 120px 0;
  border-top: 1px solid var(--border-color);
  margin-top: 80px;
}

.cs-next-project p {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.cs-next-title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 20px;
}

.cs-next-title:hover {
  color: var(--color-primary);
}

@media (max-width: 991px) {
  .cs-meta-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

/* --- LIVE PREVIEW IFRAME WRAPPERS --- */
.live-preview-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  background: var(--surface);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}

.browser-header {
  height: 32px;
  background: rgba(20, 20, 20, 0.9);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 8px;
}

.browser-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff5f56;
}
.browser-dot:nth-child(2) { background: #ffbd2e; }
.browser-dot:nth-child(3) { background: #27c93f; }

/* ═══ 15. COVERFLOW CAROUSEL ═══ */
:root {
  --cf-card: clamp(200px, 35vw, 400px); /* Card width driving the entire carousel perspective */
}

.cf-section {
  padding: 100px 0;
  background: var(--bg-app);
  overflow: hidden;
  position: relative;
}

.cf-section-header {
  text-align: center;
  margin-bottom: 60px;
}

.cf-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cf-frame {
  width: 100%;
  padding: 40px 0;
  overflow: hidden;
  outline: none;
  cursor: grab;
  touch-action: pan-y;
  position: relative;
}

.cf-frame:active {
  cursor: grabbing;
}

.cf-frame:focus-visible {
  box-shadow: inset 0 0 0 2px var(--color-econ);
}

.cf-ring {
  position: relative;
  height: var(--cf-card);
  transform-style: preserve-3d;
  user-select: none;
}

.cf-card {
  position: absolute;
  left: 50%;
  top: 0;
  width: var(--cf-card);
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  box-shadow: var(--shadow-card);
  will-change: transform, opacity, z-index;
}

.cf-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.cf-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(18, 20, 24, 0.7);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(8px);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 200;
  transition: var(--transition-fast);
}
.cf-nav:hover { background: var(--bg-card-hover); }
.cf-prev { left: 20px; }
.cf-next { right: 20px; }

.cf-caption {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 24px;
  text-align: center;
}
.cf-caption-title {
  font-size: 1.1rem;
  font-weight: 600;
  font-family: var(--font-heading);
  color: var(--text-primary);
}
.cf-caption-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 4px;
}
.cf-caption-meta {
  margin-top: 24px;
  width: 100%;
  max-width: 250px;
  font-size: 0.85rem;
}
.cf-meta-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.cf-meta-row dt { color: var(--text-muted); }
.cf-meta-row dd { color: var(--text-primary); font-weight: 500; }

.cf-pagination {
  margin-top: 30px;
  display: flex;
  gap: 12px;
  justify-content: center;
}
.cf-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-primary);
  opacity: 0.3;
  cursor: pointer;
  border: none;
  padding: 0;
  transition: var(--transition-fast);
}
.cf-dot.active { opacity: 1; }

.live-iframe {
  flex-grow: 1;
  width: 100%;
  border: none;
  background: #fff;
}

/* Glass overlay to prevent scroll trapping until interacted */
.iframe-overlay {
  position: absolute;
  top: 32px; /* below browser header */
  left: 0;
  width: 100%;
  height: calc(100% - 32px);
  background: transparent;
  z-index: 10;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

/* When the user hovers over the container, hide the overlay so they can interact with the iframe */
.live-preview-wrapper:hover .iframe-overlay {
  opacity: 0;
  pointer-events: none;
}

/* ==========================================================================
   22. HERO BACKGROUND PARALLAX
   ========================================================================== */
.hero-bg-parallax {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 0;
  pointer-events: none;
}

.hero-bg-text {
  font-family: var(--font-heading);
  font-size: clamp(6rem, 15vw, 18rem);
  font-weight: 800;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.08);
  text-transform: uppercase;
  white-space: nowrap;
  letter-spacing: -0.02em;
  margin: 0;
  will-change: transform;
}

/* ==========================================================================
   23. LORO-STYLE FOOTER
   ========================================================================== */
.site-footer {
  background-color: #1a1a1a;
  color: #e0e0e0;
  padding: 80px 0 40px;
  font-family: var(--font-body);
  border-top: 1px solid rgba(255,255,255,0.05);
  position: relative;
  overflow: hidden;
}

.footer-sparkles-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.site-footer .container {
  position: relative;
  z-index: 10;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 60px;
}

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

@media (max-width: 500px) {
  .footer-top {
    grid-template-columns: 1fr;
  }
}

.footer-col-brand .footer-logo {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 16px;
  display: inline-block;
  letter-spacing: -0.02em;
}

.footer-tagline {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #a0a0a0;
  margin-bottom: 24px;
  max-width: 300px;
}

.footer-socials {
  display: flex;
  gap: 16px;
}

.footer-socials a {
  color: #a0a0a0;
  font-size: 1.2rem;
  transition: color 0.3s ease;
}

.footer-socials a:hover {
  color: #fff;
}

.footer-col h4 {
  font-family: var(--font-sub);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #fff;
  margin-bottom: 24px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col ul li {
  margin-bottom: 12px;
}

.footer-col ul a {
  color: #a0a0a0;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.footer-col ul a:hover {
  color: #fff;
}

.footer-contact-info {
  list-style: none;
  padding: 0;
  margin: 0 0 24px 0;
}

.footer-contact-info li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  color: #a0a0a0;
  font-size: 0.95rem;
  line-height: 1.5;
}

.footer-contact-info i {
  margin-top: 4px;
  color: #fff;
}

.footer-contact-info a {
  color: #a0a0a0;
  text-decoration: none;
  transition: color 0.3s ease;
}
.footer-contact-info a:hover { color: #fff; }

.footer-btn {
  display: inline-block;
  background-color: #e51d45;
  color: #fff;
  font-family: var(--font-sub);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 12px 24px;
  border-radius: 4px;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.footer-btn:hover {
  background-color: #ff2a55;
  transform: translateY(-2px);
  color: #fff;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.05);
  font-size: 0.85rem;
  color: #666;
}

.footer-bottom-center {
  font-style: italic;
  color: #888;
}

.footer-legal a {
  color: #666;
  text-decoration: none;
  margin-left: 16px;
  transition: color 0.3s ease;
}

.footer-legal a:hover {
  color: #a0a0a0;
}
