/* ==========================================================================
   HUOT LYSOKHENG PORTFOLIO - CORE DESIGN SYSTEM & STYLES
   Pure Vanilla CSS3 with Zero Bundlers, Zero External Dependencies
   ========================================================================== */

/* --------------------------------------------------------------------------
   01. DESIGN TOKENS & CSS VARIABLES
   -------------------------------------------------------------------------- */
:root {
  /* Color Palette - Dark Theme (Default) */
  --bg-primary: #0a0d14;
  --bg-secondary: #0f1422;
  --bg-card: #121929;
  --bg-card-hover: #172136;
  --bg-surface-elevated: #1a253c;
  --bg-glass: rgba(10, 13, 20, 0.85);

  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-strong: rgba(255, 255, 255, 0.14);
  --border-focus: #38bdf8;
  --border-card-hover: rgba(56, 189, 248, 0.28);

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-inverse: #0a0e17;

  --accent-primary: #38bdf8;
  --accent-secondary: #818cf8;
  --accent-purple: #a855f7;
  --accent-emerald: #10b981;
  --accent-glow: 0 0 25px rgba(56, 189, 248, 0.15);
  --accent-gradient: linear-gradient(135deg, #38bdf8 0%, #6366f1 100%);
  
  --badge-bg: rgba(56, 189, 248, 0.08);
  --badge-text: #38bdf8;
  --badge-border: rgba(56, 189, 248, 0.2);

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 10px 30px -10px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 20px 40px -15px rgba(0, 0, 0, 0.65);

  /* Typography Stacks */
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Layout & Spacing */
  --container-max-width: 1140px;
  --header-height: 4.25rem;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Animation & Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 350ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* Light Theme Variables */
html[data-theme="light"] {
  --bg-primary: #f8fafc;
  --bg-secondary: #f1f5f9;
  --bg-card: #ffffff;
  --bg-card-hover: #f8fafc;
  --bg-surface-elevated: #ffffff;
  --bg-glass: rgba(248, 250, 252, 0.88);

  --border-subtle: rgba(0, 0, 0, 0.09);
  --border-strong: rgba(0, 0, 0, 0.18);
  --border-focus: #0284c7;
  --border-card-hover: rgba(2, 132, 199, 0.4);

  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --text-inverse: #f8fafc;

  --accent-primary: #0284c7;
  --accent-secondary: #6366f1;
  --accent-purple: #7c3aed;
  --accent-emerald: #059669;
  --accent-glow: 0 0 25px rgba(2, 132, 199, 0.15);
  --accent-gradient: linear-gradient(135deg, #0284c7 0%, #6366f1 100%);

  --badge-bg: rgba(2, 132, 199, 0.08);
  --badge-text: #0369a1;
  --badge-border: rgba(2, 132, 199, 0.2);

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 10px 30px -10px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 20px 40px -15px rgba(0, 0, 0, 0.14);
}

/* --------------------------------------------------------------------------
   02. CSS RESET & GLOBAL BASE
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 1.5rem);
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-secondary);
  background-color: var(--bg-primary);
  background-image: 
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(56, 189, 248, 0.08), transparent 70%),
    radial-gradient(circle at 100% 50%, rgba(129, 140, 248, 0.04), transparent 40%);
  background-attachment: fixed;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color var(--transition-smooth), color var(--transition-smooth);
}

/* Accessible focus outlines */
:focus-visible {
  outline: 2px solid var(--border-focus);
  outline-offset: 3px;
  border-radius: 3px;
}

/* Accessible Skip Link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1.5rem;
  z-index: 9999;
  padding: 0.75rem 1.25rem;
  background-color: var(--accent-primary);
  color: var(--text-inverse);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: 1.5rem;
}

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

/* Typography Utility */
.font-mono {
  font-family: var(--font-mono);
}

.gradient-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* Section Shared */
.section {
  padding: 6rem 0;
  position: relative;
}

.section-header {
  margin-bottom: 3.5rem;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-primary);
  background-color: var(--badge-bg);
  border: 1px solid var(--badge-border);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.85rem;
}

.section-title {
  font-size: clamp(1.85rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-top: 0.75rem;
  max-width: 680px;
}

/* --------------------------------------------------------------------------
   03. HEADER & NAVIGATION
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  height: var(--header-height);
  background-color: var(--bg-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
  transition: background-color var(--transition-base), border-color var(--transition-base);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Brand Logo */
.brand-logo {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: -0.02em;
  transition: opacity var(--transition-fast);
}

.brand-logo:hover {
  opacity: 0.85;
}

.brand-bracket {
  color: var(--accent-primary);
}

.brand-slash {
  color: var(--text-muted);
}

.brand-name {
  margin: 0 0.15rem;
}

/* Desktop Navigation */
.nav-desktop {
  display: none;
}

@media (min-width: 768px) {
  .nav-desktop {
    display: block;
  }
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}

.nav-link {
  font-size: 0.925rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  position: relative;
  padding: 0.4rem 0;
  transition: color var(--transition-fast);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--accent-primary);
  transition: width var(--transition-base);
}

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

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

/* Header Action Buttons */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Theme Toggle Button */
.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-md);
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  cursor: pointer;
  transition: background-color var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
}

.theme-toggle-btn:hover {
  background-color: var(--bg-card-hover);
  border-color: var(--border-strong);
  color: var(--text-primary);
  transform: translateY(-1px);
}

.theme-icon {
  transition: transform var(--transition-smooth), opacity var(--transition-fast);
}

/* Dark mode shows sun icon, hides moon */
html[data-theme="dark"] .icon-moon {
  display: none;
}
html[data-theme="dark"] .icon-sun {
  display: block;
}

/* Light mode shows moon icon, hides sun */
html[data-theme="light"] .icon-sun {
  display: none;
}
html[data-theme="light"] .icon-moon {
  display: block;
}

/* Mobile Menu Hamburger Button */
.menu-toggle-btn {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-md);
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  padding: 0;
  transition: background-color var(--transition-fast), border-color var(--transition-fast);
}

@media (min-width: 768px) {
  .menu-toggle-btn {
    display: none;
  }
}

.hamburger-bar {
  width: 18px;
  height: 2px;
  background-color: var(--text-primary);
  border-radius: 1px;
  transition: transform var(--transition-base), opacity var(--transition-base);
}

.menu-toggle-btn[aria-expanded="true"] .hamburger-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.menu-toggle-btn[aria-expanded="true"] .hamburger-bar:nth-child(2) {
  opacity: 0;
}
.menu-toggle-btn[aria-expanded="true"] .hamburger-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Drawer Navigation */
.nav-mobile {
  position: absolute;
  top: var(--header-height);
  left: 0;
  width: 100%;
  background-color: var(--bg-glass);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 1.5rem 1.5rem;
  display: none;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity var(--transition-base), transform var(--transition-base);
}

.nav-mobile.is-open {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 768px) {
  .nav-mobile {
    display: none !important;
  }
}

.mobile-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mobile-nav-link {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-primary);
  text-decoration: none;
  display: block;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-subtle);
}

/* --------------------------------------------------------------------------
   04. HERO SECTION
   -------------------------------------------------------------------------- */
.hero-section {
  padding: 5rem 0 4rem;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: 1.3fr 0.7fr;
  }
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* Hero Avatar Card */
.hero-avatar-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-avatar-card {
  position: relative;
  width: 220px;
  height: 220px;
  border-radius: var(--radius-xl);
  padding: 6px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.4), rgba(129, 140, 248, 0.25));
  border: 1px solid var(--border-strong);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5), 0 0 30px rgba(56, 189, 248, 0.15);
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

@media (min-width: 768px) {
  .hero-avatar-card {
    width: 260px;
    height: 260px;
  }
}

.hero-avatar-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 25px 50px -10px rgba(0, 0, 0, 0.6), 0 0 40px rgba(56, 189, 248, 0.25);
}

.hero-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: calc(var(--radius-xl) - 6px);
  display: block;
}

/* Status Badge */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background-color: var(--badge-bg);
  border: 1px solid var(--badge-border);
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.75rem;
}

.status-indicator {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 10px;
  height: 10px;
}

.pulse-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: var(--radius-full);
  background-color: var(--accent-emerald);
  opacity: 0.75;
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.pulse-dot {
  position: relative;
  width: 6px;
  height: 6px;
  border-radius: var(--radius-full);
  background-color: var(--accent-emerald);
}

@keyframes pulse {
  0% {
    transform: scale(0.95);
    opacity: 0.8;
  }
  70% {
    transform: scale(2.2);
    opacity: 0;
  }
  100% {
    transform: scale(2.2);
    opacity: 0;
  }
}

.status-text {
  font-size: 0.825rem;
  font-weight: 500;
  color: var(--text-primary);
}

.hero-eyebrow {
  font-size: 0.95rem;
  color: var(--accent-primary);
  margin-bottom: 0.75rem;
}

.hero-title {
  font-size: clamp(2.25rem, 5vw, 3.65rem);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin-bottom: 1.25rem;
}

.hero-subtitle {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 680px;
  margin-bottom: 2.25rem;
}

/* Buttons */
.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

.btn-primary {
  background-color: var(--accent-primary);
  color: var(--text-inverse);
  box-shadow: 0 4px 14px rgba(56, 189, 248, 0.25);
}

.btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(56, 189, 248, 0.35);
}

.btn-secondary {
  background-color: var(--bg-card);
  color: var(--text-primary);
  border-color: var(--border-strong);
}

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

.btn-sm {
  padding: 0.45rem 0.95rem;
  font-size: 0.85rem;
}

.btn-outline {
  background-color: transparent;
  color: var(--text-primary);
  border-color: var(--border-strong);
}

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

.btn-icon {
  transition: transform var(--transition-fast);
}

.btn-primary:hover .btn-icon {
  transform: translateX(3px);
}

/* Socials row */
.hero-socials {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  padding-top: 0.5rem;
  width: 100%;
}

.socials-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.social-links-list {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  list-style: none;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.social-link:hover {
  color: var(--accent-primary);
}

/* --------------------------------------------------------------------------
   05. ABOUT SECTION & STATS
   -------------------------------------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3.5rem;
}

@media (min-width: 900px) {
  .about-grid {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
  }
}

.about-location-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--accent-primary);
  font-weight: 600;
  margin-bottom: 1.25rem;
  padding: 0.35rem 0.8rem;
  background-color: var(--badge-bg);
  border: 1px solid var(--badge-border);
  border-radius: var(--radius-full);
}

.about-text p {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}

.about-text strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* Stats Card Grid */
.stats-card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.stat-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition-fast), transform var(--transition-fast);
}

.stat-card:hover {
  border-color: var(--border-card-hover);
  transform: translateY(-2px);
}

.stat-number {
  font-size: clamp(1.85rem, 3vw, 2.35rem);
  font-weight: 800;
  color: var(--accent-primary);
  line-height: 1.1;
}

.stat-label {
  font-size: 0.825rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* --------------------------------------------------------------------------
   06. SKILLS & CAPABILITIES SECTION
   -------------------------------------------------------------------------- */
.skills-category-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .skills-category-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.skill-category-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
}

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

.category-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.category-icon {
  color: var(--accent-primary);
  display: flex;
  align-items: center;
}

.category-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
}

.category-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.badges-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
}

.tech-badge {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  transition: border-color var(--transition-fast), background-color var(--transition-fast), color var(--transition-fast);
}

.tech-badge:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

/* --------------------------------------------------------------------------
   07. FEATURED PROJECTS & FILTER BAR
   -------------------------------------------------------------------------- */
.filter-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 2.5rem;
}

.filter-label {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.filter-button-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.filter-btn {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-full);
  background-color: var(--bg-card);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-btn:hover {
  color: var(--text-primary);
  border-color: var(--border-strong);
}

.filter-btn.active {
  background-color: var(--accent-primary);
  color: var(--text-inverse);
  border-color: var(--accent-primary);
  font-weight: 600;
  box-shadow: 0 2px 10px rgba(56, 189, 248, 0.25);
}

/* Projects Grid */
.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
}

@media (min-width: 768px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.project-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  position: relative;
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 200ms cubic-bezier(0.16, 1, 0.3, 1), border-color var(--transition-fast), box-shadow var(--transition-smooth), opacity var(--transition-base);
}

.project-card:hover {
  border-color: var(--border-card-hover);
  box-shadow: var(--shadow-lg);
}

.project-card.is-filtered-out {
  display: none;
}

.project-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.project-type-tag {
  font-size: 0.775rem;
  color: var(--accent-primary);
  background-color: var(--badge-bg);
  border: 1px solid var(--badge-border);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
}

.project-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.icon-btn-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: var(--radius-md);
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}

.icon-btn-link:hover {
  color: var(--accent-primary);
  border-color: var(--accent-primary);
  transform: translateY(-2px);
}

.project-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.project-description {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.project-achievements {
  list-style: none;
  margin-bottom: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.project-achievements li {
  font-size: 0.875rem;
  color: var(--text-muted);
  position: relative;
  padding-left: 1.15rem;
  line-height: 1.5;
}

.project-achievements li::before {
  content: '▹';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent-primary);
  font-size: 0.9rem;
}

.project-tech-stack {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-subtle);
}

.tech-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-secondary);
  background-color: var(--bg-secondary);
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
}

/* --------------------------------------------------------------------------
   07.1 REPOSITORY SHOWCASE BANNER
   -------------------------------------------------------------------------- */
.repo-showcase-banner {
  margin-top: 3rem;
  background-color: var(--bg-card);
  background-image: radial-gradient(circle at 100% 0%, rgba(56, 189, 248, 0.08) 0%, transparent 60%),
                    radial-gradient(circle at 0% 100%, rgba(129, 140, 248, 0.06) 0%, transparent 50%);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: border-color var(--transition-base), box-shadow var(--transition-base), transform var(--transition-fast);
}

.repo-showcase-banner:hover {
  border-color: var(--border-card-hover);
  box-shadow: var(--shadow-lg), 0 0 25px rgba(56, 189, 248, 0.1);
  transform: translateY(-2px);
}

.repo-banner-content {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
}

.repo-banner-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: var(--radius-md);
  background-color: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: var(--accent-primary);
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.2);
}

.repo-banner-info {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex: 1;
}

.repo-banner-badge {
  font-family: var(--font-mono);
  font-size: 0.775rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-primary);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.repo-banner-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
}

.repo-banner-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 680px;
}

.repo-stats-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.4rem;
}

.repo-chip {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-secondary);
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-strong);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.repo-chip strong {
  color: var(--accent-primary);
  font-weight: 700;
}

.repo-banner-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
}

@media (min-width: 960px) {
  .repo-showcase-banner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .repo-banner-actions {
    flex-direction: column;
    align-items: stretch;
    min-width: 270px;
    flex-shrink: 0;
  }
}

@media (max-width: 640px) {
  .repo-showcase-banner {
    padding: 1.75rem 1.5rem;
  }

  .repo-banner-content {
    flex-direction: column;
    gap: 1rem;
  }

  .repo-banner-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .repo-banner-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

/* --------------------------------------------------------------------------
   08. WORK EXPERIENCE TIMELINE
   -------------------------------------------------------------------------- */
.timeline {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0.5rem;
  bottom: 0.5rem;
  left: 7px;
  width: 2px;
  background-color: var(--border-subtle);
}

.timeline-item {
  position: relative;
  margin-bottom: 3.5rem;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-marker {
  position: absolute;
  left: -2rem;
  top: 0.35rem;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: var(--bg-primary);
  border: 3px solid var(--accent-primary);
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.15);
  transition: transform var(--transition-fast);
}

.timeline-item:hover .timeline-marker {
  transform: scale(1.2);
  border-color: var(--accent-emerald);
}

.timeline-content {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition-fast), transform var(--transition-fast);
}

.timeline-content:hover {
  border-color: var(--border-card-hover);
  transform: translateX(4px);
}

.timeline-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.timeline-date {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-primary);
}

.timeline-badge {
  font-size: 0.725rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
}

.badge-active {
  background-color: rgba(16, 185, 129, 0.15);
  color: var(--accent-emerald);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.timeline-role {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.timeline-company {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.timeline-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.timeline-highlights {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.timeline-highlights li {
  font-size: 0.875rem;
  color: var(--text-secondary);
  position: relative;
  padding-left: 1.25rem;
  line-height: 1.5;
}

.timeline-highlights li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--accent-primary);
  font-weight: bold;
}

/* --------------------------------------------------------------------------
   09. CONTACT SECTION
   -------------------------------------------------------------------------- */
.contact-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  box-shadow: var(--shadow-md);
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

@media (min-width: 640px) {
  .contact-card {
    padding: 4rem 3.5rem;
  }
}

.contact-card-title {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.contact-card-text {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  line-height: 1.65;
}

/* Contact Status Chip */
.contact-status-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--accent-emerald);
  background-color: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: var(--radius-full);
  padding: 0.35rem 0.85rem;
  margin-bottom: 1.5rem;
}

/* Dual Direct Communication Hub Grid */
.contact-methods-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-bottom: 2rem;
  text-align: left;
}

@media (min-width: 680px) {
  .contact-methods-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.contact-method-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.35rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.25rem;
  position: relative;
  transition: border-color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

.contact-method-card:hover {
  border-color: var(--border-card-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.method-card-top {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.method-icon-badge {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary);
  flex-shrink: 0;
}

.method-header-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.method-type {
  font-size: 0.725rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.method-address {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.method-card-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
}

.method-card-actions .btn {
  flex: 1;
  justify-content: center;
  padding: 0.5rem 0.85rem;
  font-size: 0.85rem;
}

.btn-telegram {
  background-color: #229ed9;
  color: #ffffff;
  border: 1px solid #229ed9;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: var(--radius-md);
  font-weight: 500;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.btn-telegram:hover {
  background-color: #1b8ec6;
  border-color: #1b8ec6;
  color: #ffffff;
  box-shadow: 0 0 15px rgba(34, 158, 217, 0.35);
}

/* Interactive Telegram Contact Form */
.contact-form-wrapper {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  margin-bottom: 2rem;
  text-align: left;
  position: relative;
  overflow: hidden;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

@media (min-width: 680px) {
  .contact-form-wrapper {
    padding: 2.5rem;
  }
}

.contact-form-wrapper:hover {
  border-color: rgba(56, 189, 248, 0.3);
}

.form-header {
  margin-bottom: 1.75rem;
  text-align: center;
}

.form-header-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.72rem;
  color: var(--accent-primary);
  background-color: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: var(--radius-full);
  padding: 0.3rem 0.8rem;
  margin-bottom: 0.75rem;
  letter-spacing: 0.04em;
}

.form-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
}

.form-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: 0 auto;
  max-width: 500px;
}

/* Honeypot hidden from humans */
.form-group-gotcha {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.15rem;
  margin-bottom: 1.15rem;
}

@media (min-width: 640px) {
  .form-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.form-field.full-width {
  grid-column: 1 / -1;
  margin-bottom: 1.15rem;
}

.field-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.required-star {
  color: var(--accent-primary);
}

.optional-tag {
  font-size: 0.68rem;
  color: var(--text-muted);
  opacity: 0.7;
}

.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.field-icon {
  position: absolute;
  left: 1rem;
  color: var(--text-muted);
  pointer-events: none;
  transition: color var(--transition-fast);
  z-index: 2;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.925rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast);
}

.form-input {
  height: 46px;
  padding: 0 1rem 0 2.6rem;
}

.form-select {
  height: 46px;
  padding: 0 2.2rem 0 2.6rem;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.select-wrapper {
  position: relative;
}

.select-chevron {
  position: absolute;
  right: 1rem;
  color: var(--text-muted);
  pointer-events: none;
  display: flex;
  align-items: center;
}

.form-textarea {
  padding: 0.85rem 1rem;
  line-height: 1.5;
  resize: vertical;
  min-height: 110px;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
  background-color: var(--bg-card);
}

.input-with-icon:focus-within .field-icon {
  color: var(--accent-primary);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.7;
}

.field-footer {
  display: flex;
  justify-content: flex-end;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.form-actions {
  display: flex;
  justify-content: center;
  margin-top: 0.5rem;
}

.btn-submit-telegram {
  width: 100%;
  max-width: 320px;
  padding: 0.8rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  cursor: pointer;
  background: linear-gradient(135deg, #0088cc 0%, #00a2ed 100%);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 14px rgba(0, 136, 204, 0.3);
  transition: all var(--transition-fast);
}

.btn-submit-telegram:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 136, 204, 0.45);
  background: linear-gradient(135deg, #009be6 0%, #15afff 100%);
}

.btn-submit-telegram:active:not(:disabled) {
  transform: translateY(0);
}

.btn-submit-telegram:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* Spinner */
.btn-spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.btn-submit-telegram.is-loading .btn-spinner {
  display: inline-block;
}

.btn-submit-telegram.is-loading .btn-icon {
  display: none;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Form Status Banner */
.form-status {
  padding: 0.85rem 1.15rem;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  line-height: 1.45;
  margin-bottom: 1.15rem;
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  animation: fadeInSlide 0.3s ease;
}

@keyframes fadeInSlide {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.form-status.status-success {
  background-color: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--accent-emerald);
}

.form-status.status-error {
  background-color: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
}

.form-status.status-info {
  background-color: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: var(--accent-primary);
}

/* Contact Channels Chips Bar */
.contact-channels-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.25rem;
}

.channel-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 0.4rem 0.9rem;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.channel-chip:hover {
  color: var(--accent-primary);
  border-color: var(--border-strong);
  background-color: var(--bg-surface-elevated);
  transform: translateY(-1px);
}

.channel-chip .chip-arrow {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1;
  transition: transform var(--transition-fast);
}

.channel-chip:hover .chip-arrow {
  color: var(--accent-primary);
  transform: translate(2px, -2px);
}

.channel-chip.highlight-chip {
  color: var(--accent-primary);
  border-color: var(--badge-border);
  background-color: var(--badge-bg);
}

.channel-chip.highlight-chip:hover {
  background-color: var(--accent-primary);
  color: #0a0e17;
}

.channel-chip.highlight-chip:hover .chip-arrow {
  color: #0a0e17;
}

.channel-chip.location-chip {
  color: var(--text-muted);
  cursor: default;
  background-color: transparent;
  border-color: transparent;
}

.channel-chip.location-chip:hover {
  transform: none;
  background-color: transparent;
  border-color: transparent;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   09.5 EDUCATION & LANGUAGES STYLES
   -------------------------------------------------------------------------- */
/* Editorial Credentials Strip */
.about-credentials-row {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .about-credentials-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

.credential-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.credential-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-primary);
}

.credential-val {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
}

.credential-sub {
  font-size: 0.825rem;
  color: var(--text-muted);
  line-height: 1.4;
}



/* --------------------------------------------------------------------------
   10. FOOTER
   -------------------------------------------------------------------------- */
.site-footer {
  padding: 3rem 0;
  border-top: 1px solid var(--border-subtle);
  background-color: var(--bg-primary);
  margin-top: 4rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.footer-status .status-indicator {
  width: 8px;
  height: 8px;
}

.footer-status .pulse-dot {
  width: 8px;
  height: 8px;
}

.footer-copy {
  font-size: 0.825rem;
  color: var(--text-muted);
}

.back-to-top {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.825rem;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  transition: color var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}

.back-to-top:hover {
  color: var(--accent-primary);
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   10.5 SPOTLIGHT, COMMAND PALETTE & SCREENSHOT LIGHTBOX
   -------------------------------------------------------------------------- */
/* Cursor Spotlight Effect */
.spotlight-card {
  position: relative;
}

.spotlight-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: radial-gradient(
    260px circle at var(--mouse-x, -999px) var(--mouse-y, -999px),
    rgba(56, 189, 248, 0.22),
    transparent 65%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0;
  transition: opacity 250ms ease;
  z-index: 1;
}

html[data-theme="light"] .spotlight-card::before {
  background: radial-gradient(
    260px circle at var(--mouse-x, -999px) var(--mouse-y, -999px),
    rgba(2, 132, 199, 0.18),
    transparent 65%
  );
}

.spotlight-card:hover::before {
  opacity: 1;
}

/* Palette Trigger Button (Sticky Header) */
.palette-trigger-btn {
  display: none;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.4rem 0.75rem;
  color: var(--text-muted);
  font-size: 0.8rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

@media (min-width: 640px) {
  .palette-trigger-btn {
    display: inline-flex;
  }
}

.palette-trigger-btn:hover {
  border-color: var(--border-strong);
  color: var(--text-primary);
  background-color: var(--bg-card-hover);
}

.palette-kbd-chip {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

kbd {
  font-family: var(--font-mono);
  font-size: 0.725rem;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  padding: 0.15rem 0.35rem;
  color: var(--text-secondary);
}

/* Native Dialog Shared Styles */
dialog {
  padding: 0;
  border: none;
  background: transparent;
  color: var(--text-primary);
  max-width: 100vw;
  max-height: 100vh;
}

dialog::backdrop {
  background: rgba(10, 14, 23, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  animation: fadeIn 200ms ease forwards;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Command Palette Modal */
dialog#command-palette {
  margin: 10vh auto auto auto;
  outline: none;
  overflow: visible;
  max-width: min(600px, 94vw);
  width: 100%;
}

.palette-modal {
  width: 100%;
  background-color: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg), 0 0 45px rgba(56, 189, 248, 0.16);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.palette-search-wrapper {
  display: flex;
  align-items: center;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
  gap: 0.75rem;
}

.palette-search-icon {
  color: var(--accent-primary);
  flex-shrink: 0;
}

.palette-input {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  color: var(--text-primary);
}

.palette-input::placeholder {
  color: var(--text-muted);
}

.palette-results-list {
  max-height: 360px;
  overflow-y: auto;
  list-style: none;
  padding: 0.5rem;
}

.palette-category-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  padding: 0.6rem 0.85rem 0.35rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.palette-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 0.85rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.palette-item-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.925rem;
}

.palette-item-icon {
  color: var(--text-muted);
  display: flex;
  align-items: center;
}

.palette-item.is-selected,
.palette-item:hover {
  background-color: var(--bg-surface-elevated);
  color: var(--text-primary);
}

.palette-item.is-selected .palette-item-icon,
.palette-item:hover .palette-item-icon {
  color: var(--accent-primary);
}

.palette-item-tag {
  font-family: var(--font-mono);
  font-size: 0.725rem;
  color: var(--text-muted);
  background-color: var(--bg-secondary);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

.palette-empty-state {
  padding: 2.5rem 1rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.palette-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.25rem;
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  font-size: 0.775rem;
  color: var(--text-muted);
}

.palette-footer-keys {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Screenshot Lightbox Modal */
dialog#screenshot-modal {
  margin: auto;
  outline: none;
  overflow: visible;
  max-width: min(920px, 95vw);
  width: 100%;
}

.lightbox-dialog {
  width: 100%;
}

.lightbox-content {
  position: relative;
  background-color: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  max-height: 90vh;
  overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 50px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
}

.lightbox-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
}

.lightbox-header-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.lightbox-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
}

.lightbox-counter {
  font-size: 0.775rem;
  color: var(--accent-primary);
  background-color: var(--badge-bg);
  border: 1px solid var(--badge-border);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
}

.lightbox-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.4rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition-fast), background-color var(--transition-fast);
}

.lightbox-close-btn:hover {
  color: var(--text-primary);
  background-color: var(--bg-secondary);
}

.lightbox-body {
  position: relative;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-primary);
  min-height: 340px;
  overflow: hidden;
}

.lightbox-img-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  max-height: 65vh;
}

.lightbox-img {
  max-width: 100%;
  max-height: 65vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  transition: opacity 200ms ease, transform 200ms ease;
}

.lightbox-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(10, 14, 23, 0.75);
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all var(--transition-fast);
}

.lightbox-nav-btn.prev {
  left: 1rem;
}

.lightbox-nav-btn.next {
  right: 1rem;
}

.lightbox-nav-btn:hover {
  background-color: var(--accent-primary);
  color: #0a0e17;
  border-color: var(--accent-primary);
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.4);
}

.lightbox-footer {
  padding: 0.85rem 1.25rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  border-top: 1px solid var(--border-subtle);
  background-color: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.lightbox-desc {
  color: var(--text-secondary);
  line-height: 1.4;
}

/* --------------------------------------------------------------------------
   Production WebRTC SFU Architecture Showcase Card
   -------------------------------------------------------------------------- */
.webrtc-arch-card {
  margin-top: 2.5rem;
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition-base);
}

.webrtc-arch-card:hover {
  border-color: var(--border-strong);
}

.webrtc-arch-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.webrtc-arch-title-group {
  max-width: 620px;
}

.webrtc-arch-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-emerald);
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.6rem;
}

.webrtc-arch-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}

.webrtc-arch-sub {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.webrtc-arch-stats {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.webrtc-stat-pill {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.6rem 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 110px;
}

.webrtc-stat-value {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--accent-primary);
}

.webrtc-stat-label {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* Architecture Visual Topology Flow */
.webrtc-pipeline-diagram {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 0.75rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 1.75rem;
}

@media (max-width: 900px) {
  .webrtc-pipeline-diagram {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

.pipeline-node {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.pipeline-node.highlight-node {
  border-color: rgba(56, 189, 248, 0.4);
  background: rgba(56, 189, 248, 0.04);
}

.pipeline-node-icon {
  color: var(--accent-primary);
  flex-shrink: 0;
  margin-top: 2px;
}

.pipeline-node-body {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.pipeline-node-role {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--accent-primary);
}

.pipeline-node-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
}

.pipeline-node-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.35;
}

.pipeline-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  text-align: center;
  padding: 0 0.25rem;
}

.connector-line {
  width: 100%;
  height: 1px;
  background: var(--border-strong);
  opacity: 0.5;
}

@media (max-width: 900px) {
  .connector-line {
    width: 1px;
    height: 20px;
    margin: 0 auto;
  }
}

.connector-label {
  font-size: 0.68rem;
  color: var(--text-muted);
  white-space: nowrap;
}

@media (max-width: 900px) {
  .connector-label {
    white-space: normal;
  }
}

.webrtc-arch-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.webrtc-highlight-item {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
}

.webrtc-highlight-item strong {
  color: var(--text-primary);
  display: block;
  margin-bottom: 0.2rem;
}

/* --------------------------------------------------------------------------
   11. ACCESSIBILITY & PREFERS-REDUCED-MOTION
   -------------------------------------------------------------------------- */
@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;
  }
}

/* --------------------------------------------------------------------------
   12. GATEKHMER SHOWCASE & FIVERR INTEGRATION STYLES
   -------------------------------------------------------------------------- */
.project-media-wrapper {
  margin: 1.15rem 0 1.35rem 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background-color: #0b0f19;
  position: relative;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.project-media-container {
  position: relative;
  width: 100%;
  height: 280px;
  background-color: #0b0f19;
  overflow: hidden;
}

.project-featured-image {
  width: 100%;
  height: 100%;
  max-height: 280px;
  object-fit: cover;
  object-position: left top;
  display: block;
  transition: opacity 250ms ease, transform 400ms cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card:hover .project-featured-image {
  transform: scale(1.02);
}

.project-media-glass-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 0.85rem;
  background: rgba(10, 14, 23, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 20;
  transform: translateZ(20px);
  pointer-events: auto;
}

.media-tabs {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  z-index: 21;
}

.media-tab-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 0.28rem 0.65rem;
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-family: var(--font-mono);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all var(--transition-fast);
  position: relative;
  z-index: 22;
  pointer-events: auto;
  user-select: none;
}

.media-tab-btn * {
  pointer-events: none;
}

.media-tab-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
}

.media-tab-btn.active {
  background: rgba(56, 189, 248, 0.2);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  font-weight: 600;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.25);
}

.media-view-live {
  font-size: 0.75rem;
  color: var(--accent-emerald);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  transition: all var(--transition-fast);
}

.media-view-live:hover {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
}

/* Fiverr Link Styling */
.fiverr-social-link:hover {
  color: #1dbf73 !important;
  border-color: #1dbf73 !important;
}

.fiverr-badge {
  color: #1dbf73 !important;
  background: rgba(29, 191, 115, 0.12) !important;
  border-color: rgba(29, 191, 115, 0.3) !important;
}

.btn-fiverr {
  background-color: #1dbf73;
  color: #ffffff !important;
  border: 1px solid #1dbf73;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: all var(--transition-fast);
}

.btn-fiverr:hover {
  background-color: #19a463;
  border-color: #19a463;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(29, 191, 115, 0.35);
}

.fiverr-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #ffffff;
  box-shadow: 0 0 6px #ffffff;
  animation: pulse-signal 1.8s infinite;
}

.fiverr-chip {
  border-color: rgba(29, 191, 115, 0.35) !important;
  color: #1dbf73 !important;
}

.fiverr-chip:hover {
  background-color: rgba(29, 191, 115, 0.1) !important;
  border-color: #1dbf73 !important;
}

@media (max-width: 640px) {
  .project-media-container {
    height: 220px;
  }
  .project-featured-image {
    max-height: 220px;
  }
  .project-media-glass-bar {
    padding: 0.4rem 0.5rem;
  }
  .media-tab-btn {
    padding: 0.2rem 0.45rem;
    font-size: 0.7rem;
  }
}

/* --------------------------------------------------------------------------
   13. PROJECT QUANTIFIABLE IMPACT & ENGINEERING METRICS
   -------------------------------------------------------------------------- */
.project-impact-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0.5rem;
  margin: 0.95rem 0 1.25rem 0;
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius-md);
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid var(--border-subtle);
  position: relative;
  z-index: 2;
}

html[data-theme="light"] .project-impact-metrics {
  background: rgba(241, 245, 249, 0.85);
  border-color: rgba(0, 0, 0, 0.08);
}

.impact-metric-pill {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.45rem 0.6rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition-fast), background var(--transition-fast), transform var(--transition-fast);
}

html[data-theme="light"] .impact-metric-pill {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.06);
}

.impact-metric-pill:hover {
  border-color: rgba(56, 189, 248, 0.35);
  background: rgba(56, 189, 248, 0.05);
  transform: translateY(-1px);
}

.impact-metric-val {
  font-family: var(--font-mono);
  font-size: 0.825rem;
  font-weight: 700;
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.impact-metric-val svg {
  flex-shrink: 0;
  color: var(--accent-primary);
}

.impact-metric-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  line-height: 1.25;
  font-weight: 500;
}

/* FinTech Specific Metric Variations */
.impact-metric-pill.fintech-metric {
  border-color: rgba(16, 185, 129, 0.2);
  background: rgba(16, 185, 129, 0.04);
}

html[data-theme="light"] .impact-metric-pill.fintech-metric {
  background: rgba(16, 185, 129, 0.06);
  border-color: rgba(16, 185, 129, 0.25);
}

.impact-metric-pill.fintech-metric:hover {
  border-color: rgba(16, 185, 129, 0.45);
  background: rgba(16, 185, 129, 0.09);
}

.impact-metric-pill.fintech-metric .impact-metric-val {
  color: var(--accent-emerald);
}

.impact-metric-pill.fintech-metric .impact-metric-val svg {
  color: var(--accent-emerald);
}

/* --------------------------------------------------------------------------
   14. INLINE VIDEO & DYNAMIC MEDIA PREVIEWS
   -------------------------------------------------------------------------- */
.project-featured-video {
  width: 100%;
  height: 100%;
  max-height: 280px;
  object-fit: cover;
  object-position: center;
  display: block;
  background: #000000;
  transition: opacity 250ms ease;
}

@media (max-width: 640px) {
  .project-featured-video {
    max-height: 220px;
  }
}

.media-live-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.6rem;
  font-size: 0.68rem;
  font-weight: 600;
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #ffffff;
  background: rgba(10, 14, 23, 0.88);
  border: 1px solid rgba(56, 189, 248, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: var(--radius-full);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  z-index: 15;
  pointer-events: none;
  animation: fadeIn 200ms ease;
}

.media-live-badge .badge-pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #ef4444;
  box-shadow: 0 0 8px #ef4444;
  animation: pulseSignal 1.5s infinite;
}

.media-tab-video.active {
  border-color: rgba(239, 68, 68, 0.5) !important;
  background: rgba(239, 68, 68, 0.15) !important;
  color: #f87171 !important;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.25) !important;
}

.media-tab-video .video-tab-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #ef4444;
  display: inline-block;
}

.media-tab-video.active .video-tab-dot {
  box-shadow: 0 0 6px #ef4444;
  animation: pulseSignal 1.5s infinite;
}

.media-preview-tag {
  font-size: 0.725rem;
  color: var(--accent-emerald);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  margin-left: auto;
}

.media-control-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: rgba(10, 14, 23, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity var(--transition-fast), transform var(--transition-fast), background var(--transition-fast);
  z-index: 10;
  pointer-events: auto;
}

.project-media-container:hover .media-control-overlay.visible {
  opacity: 0.9;
}

.media-control-overlay:hover {
  background: var(--accent-primary);
  color: #0a0e17;
  transform: translate(-50%, -50%) scale(1.1);
}

/* --------------------------------------------------------------------------
   15. FINTECH, SECURITY & CORE ARCHITECTURE ELEVATION
   -------------------------------------------------------------------------- */
.fintech-tag-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.725rem;
  font-family: var(--font-mono);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-emerald);
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-sm);
  padding: 0.2rem 0.55rem;
  margin-bottom: 0.65rem;
  width: fit-content;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.12);
}

.fintech-tag-badge svg {
  flex-shrink: 0;
  color: var(--accent-emerald);
}

.role-highlight-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--accent-primary);
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: var(--radius-sm);
  padding: 0.2rem 0.6rem;
  margin-top: 0.35rem;
  margin-bottom: 0.65rem;
  width: fit-content;
}

.role-highlight-pill.fintech {
  color: var(--accent-emerald);
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.3);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.12);
}

.role-highlight-pill svg {
  flex-shrink: 0;
}

/* Strategic FinTech Architecture Highlight Banner Card */
.fintech-highlight-card {
  margin-top: 2.5rem;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.07) 0%, rgba(56, 189, 248, 0.05) 50%, rgba(139, 92, 246, 0.05) 100%), var(--bg-card);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2.5rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md), 0 0 30px rgba(16, 185, 129, 0.08);
  transition: border-color var(--transition-base), box-shadow var(--transition-base), transform var(--transition-fast);
}

.fintech-highlight-card:hover {
  border-color: rgba(16, 185, 129, 0.5);
  box-shadow: var(--shadow-lg), 0 0 40px rgba(16, 185, 129, 0.16);
  transform: translateY(-2px);
}

.fintech-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.fintech-card-title-group {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.fintech-shield-icon {
  width: 2.85rem;
  height: 2.85rem;
  border-radius: var(--radius-md);
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: var(--accent-emerald);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.25);
}

.fintech-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
}

.fintech-card-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.fintech-pillars-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .fintech-pillars-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .fintech-pillars-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.fintech-pillar-item {
  background: rgba(10, 14, 23, 0.55);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  transition: border-color var(--transition-fast), transform var(--transition-fast), background var(--transition-fast);
}

html[data-theme="light"] .fintech-pillar-item {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.08);
}

.fintech-pillar-item:hover {
  border-color: rgba(16, 185, 129, 0.4);
  background: rgba(16, 185, 129, 0.03);
  transform: translateY(-2px);
}

.fintech-pillar-top {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent-emerald);
}

.fintech-pillar-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
}

.fintech-pillar-desc {
  font-size: 0.825rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.fintech-pillar-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--accent-emerald);
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.22);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  width: fit-content;
  margin-top: auto;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* --------------------------------------------------------------------------
   11. COMMERCIAL SERVICES & TECHNICAL SOLUTIONS SECTION
   -------------------------------------------------------------------------- */
.services-section {
  position: relative;
  background: linear-gradient(180deg, transparent 0%, rgba(15, 23, 42, 0.4) 100%);
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

@media (min-width: 640px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base), background-color var(--transition-base);
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-card-hover);
  box-shadow: var(--shadow-lg), var(--accent-glow);
  background-color: var(--bg-card-hover);
}

.service-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.service-icon-box {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius-md);
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.28);
  color: var(--accent-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.service-card.green-accent .service-icon-box {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.3);
  color: var(--accent-emerald);
}

.service-card.purple-accent .service-icon-box {
  background: rgba(139, 92, 246, 0.12);
  border-color: rgba(139, 92, 246, 0.3);
  color: var(--accent-purple);
}

.service-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  background: var(--badge-bg);
  color: var(--badge-text);
  border: 1px solid var(--badge-border);
}

.service-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.65rem;
  line-height: 1.35;
}

.service-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.service-deliverables {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  flex-grow: 1;
}

.service-deliverables li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

.service-deliverables li svg {
  color: var(--accent-emerald);
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.service-footer {
  margin-top: auto;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.service-price-tag {
  display: flex;
  flex-direction: column;
}

.service-price-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--text-muted);
}

.service-price-amount {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
}

.service-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all var(--transition-fast);
}

/* Tier Navigation Tabs */
.service-tier-nav {
  display: flex;
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.25rem;
  gap: 0.25rem;
  margin-bottom: 1.25rem;
}

.tier-tab-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.35rem;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
  text-align: center;
}

.tier-tab-btn:hover {
  color: var(--text-primary);
  background-color: rgba(255, 255, 255, 0.04);
}

.tier-tab-btn.active {
  background-color: var(--bg-card);
  border-color: var(--border-focus);
  color: var(--text-primary);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.tier-tab-name {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  display: block;
}

.tier-tab-price {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 0.1rem;
}

.tier-tab-btn.active .tier-tab-name {
  color: var(--accent-primary);
}

.service-card.green-accent .tier-tab-btn.active .tier-tab-name {
  color: var(--accent-emerald);
}

.service-card.purple-accent .tier-tab-btn.active .tier-tab-name {
  color: var(--accent-purple);
}

.tier-popular-tag {
  font-size: 0.52rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.08rem 0.35rem;
  border-radius: var(--radius-full);
  background: rgba(56, 189, 248, 0.2);
  color: var(--accent-primary);
  border: 1px solid rgba(56, 189, 248, 0.35);
  position: absolute;
  top: -0.45rem;
  right: -0.2rem;
  line-height: 1;
}

.service-card.green-accent .tier-popular-tag {
  background: rgba(16, 185, 129, 0.2);
  color: var(--accent-emerald);
  border-color: rgba(16, 185, 129, 0.35);
}

.service-card.purple-accent .tier-popular-tag {
  background: rgba(139, 92, 246, 0.2);
  color: var(--accent-purple);
  border-color: rgba(139, 92, 246, 0.35);
}

/* Tier Content Panels */
.service-tier-panels {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.service-tier-panel {
  display: none;
  flex-direction: column;
  flex-grow: 1;
  animation: fadeIn 0.2s ease-in-out;
}

.service-tier-panel.active {
  display: flex;
}

.service-tier-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.45rem 0.65rem;
  margin-bottom: 1.1rem;
  gap: 0.4rem;
}

.tier-meta-item {
  display: flex;
  flex-direction: column;
}

.tier-meta-label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  text-transform: uppercase;
  color: var(--text-muted);
}

.tier-meta-value {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-primary);
}

.service-price-amount small {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-muted);
}

/* Engagement Models & Pricing FAQ Matrix */
.service-engagement-models {
  margin-top: 3.5rem;
  padding: 2.25rem 2rem;
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}


.engagement-models-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 2rem;
}

.engagement-models-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.engagement-models-subtitle {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.engagement-models-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .engagement-models-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .engagement-models-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.engagement-model-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base);
}

.engagement-model-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-md);
}

.engagement-model-badge {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-primary);
  margin-bottom: 0.5rem;
}

.engagement-model-rate {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.engagement-model-rate .rate-unit {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-muted);
}

.engagement-model-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.engagement-model-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 0.75rem;
  flex-grow: 1;
}

.engagement-model-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.engagement-model-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-full);
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   11b. DIGITAL PRODUCTS & STARTER KITS SECTION
   -------------------------------------------------------------------------- */
.boilerplates-section {
  position: relative;
  background: radial-gradient(ellipse 70% 35% at 50% 0%, rgba(16, 185, 129, 0.05), transparent 70%);
}

.boilerplates-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

@media (min-width: 900px) {
  .boilerplates-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.boilerplate-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base), background-color var(--transition-base);
}

.boilerplate-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-card-hover);
  box-shadow: var(--shadow-lg), 0 0 25px rgba(16, 185, 129, 0.15);
  background-color: var(--bg-card-hover);
}

.boilerplate-card-header {
  margin-bottom: 1.25rem;
}

.boilerplate-badge-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.boilerplate-version {
  font-size: 0.72rem;
  color: var(--text-muted);
  background: var(--bg-tertiary);
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
}

.boilerplate-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.65rem;
  line-height: 1.35;
}

.boilerplate-tagline {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 0;
}

.boilerplate-tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 1.25rem;
}

.bp-tech-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-sm);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
}

.boilerplate-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  flex-grow: 1;
}

.boilerplate-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.boilerplate-features li svg {
  color: var(--accent-emerald);
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.boilerplate-license-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 0.85rem;
  margin-bottom: 1.5rem;
}

.boilerplate-tier-nav {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 0.65rem;
}

.bp-tier-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.35rem;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
}

.bp-tier-btn:hover {
  color: var(--text-primary);
  border-color: var(--border-focus);
}

.bp-tier-btn.active {
  background-color: var(--bg-card);
  border-color: var(--accent-emerald);
  color: var(--text-primary);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.bp-tier-name {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
}

.bp-tier-price {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 0.1rem;
}

.bp-popular-tag {
  font-size: 0.52rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.08rem 0.35rem;
  border-radius: var(--radius-full);
  background: rgba(16, 185, 129, 0.2);
  color: var(--accent-emerald);
  border: 1px solid rgba(16, 185, 129, 0.4);
  position: absolute;
  top: -0.45rem;
  right: -0.2rem;
  line-height: 1;
}

.boilerplate-license-meta {
  text-align: center;
}

.bp-license-desc {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-family: var(--font-mono);
}

.boilerplate-footer {
  margin-top: auto;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.boilerplate-price-tag {
  display: flex;
  flex-direction: column;
}

.bp-price-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  color: var(--text-muted);
}

.bp-price-amount {
  font-family: var(--font-mono);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
}

.bp-price-amount small {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
}

.bp-buy-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.55rem 1.15rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border: none;
  color: #fff;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
  transition: all var(--transition-fast);
}

.bp-buy-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.45);
  background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
  color: #fff;
}

/* Telegram ABA KHQR payment button — Cambodian local payment option */
.bp-tg-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  background: linear-gradient(135deg, #2b6de6 0%, #1a4fc7 100%);
  border: none;
  color: #fff;
  box-shadow: 0 4px 14px rgba(43, 109, 230, 0.28);
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.bp-tg-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(43, 109, 230, 0.44);
  background: linear-gradient(135deg, #4b87f7 0%, #2b6de6 100%);
  color: #fff;
}

/* Stack both buy buttons in a column on the card */
.boilerplate-actions {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  align-items: stretch;
}

.boilerplate-guarantee {
  margin-top: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.boilerplate-guarantee svg {
  color: var(--accent-emerald);
}

.boilerplate-credit-banner {
  margin-top: 2.5rem;
  padding: 1.5rem;
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.credit-banner-content {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.credit-banner-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius-md);
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.28);
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.credit-banner-text {
  flex-grow: 1;
  min-width: 260px;
}

.credit-banner-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.credit-banner-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}

.credit-banner-btn {
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   12. PRODUCTION CASE STUDIES & BENCHMARKS SECTION
   -------------------------------------------------------------------------- */
.benchmarks-section {
  position: relative;
  background: radial-gradient(ellipse 70% 40% at 50% 0%, rgba(56, 189, 248, 0.05), transparent 70%);
}

.benchmarks-kpi-bar {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 2.5rem;
  box-shadow: var(--shadow-sm);
}

@media (min-width: 768px) {
  .benchmarks-kpi-bar {
    grid-template-columns: repeat(4, 1fr);
  }
}

.kpi-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0.75rem 0.5rem;
  position: relative;
}

.kpi-value {
  font-family: var(--font-mono);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--accent-primary);
  line-height: 1.1;
  margin-bottom: 0.35rem;
}

.kpi-value.emerald-val {
  color: var(--accent-emerald);
}

.kpi-value.purple-val {
  color: var(--accent-purple);
}

.kpi-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
}

.kpi-desc {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

.benchmarks-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
}

@media (min-width: 768px) {
  .benchmarks-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.benchmark-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base);
}

.benchmark-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-card-hover);
  box-shadow: var(--shadow-md), 0 0 30px rgba(56, 189, 248, 0.12);
}

.benchmark-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.benchmark-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 4px;
  background: rgba(56, 189, 248, 0.1);
  color: var(--accent-primary);
  border: 1px solid rgba(56, 189, 248, 0.25);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.benchmark-badge.success-badge {
  background: rgba(16, 185, 129, 0.1);
  color: var(--accent-emerald);
  border-color: rgba(16, 185, 129, 0.28);
}

.benchmark-repo-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.benchmark-app-name {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
  line-height: 1.3;
}

.benchmark-role-line {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-secondary);
  margin-bottom: 1.25rem;
}

.benchmark-breakdown-box {
  background: rgba(10, 14, 23, 0.5);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.15rem;
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

html[data-theme="light"] .benchmark-breakdown-box {
  background: rgba(241, 245, 249, 0.7);
  border-color: rgba(0, 0, 0, 0.08);
}

.benchmark-row {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.benchmark-row-header {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.benchmark-row-header.challenge-header {
  color: #f87171;
}

.benchmark-row-header.solution-header {
  color: var(--accent-emerald);
}

.benchmark-row-text {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.benchmark-outcomes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
}

.benchmark-outcome-pill {
  background: rgba(56, 189, 248, 0.06);
  border: 1px solid rgba(56, 189, 248, 0.18);
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.75rem;
  display: flex;
  flex-direction: column;
}

.benchmark-outcome-val {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.benchmark-outcome-val.emerald-val {
  color: var(--accent-emerald);
}

.benchmark-outcome-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

