/* ===========================================================================
   Emmanuel Ahishakiye — Portfolio Style System
   Production-grade CSS with dark mode by default, flawless responsiveness,
   and senior-level polish. Every detail matters.
   =========================================================================== */

/* ---------------------------------------------------------------------------
   Design Tokens - Dark Mode by Default (No Override Needed)
   --------------------------------------------------------------------------- */
:root {
  color-scheme: dark;
  
  /* Colors - Dark Mode is Primary */
  --bg:;
  --fg: #f4f6f8;
  --muted: #9aa4ad;
  --panel: #0f1419;
  --panel-soft: #121820;
  --panel-tint: #131a22;
  --border: #1b2430;
  --border-soft: #222c38;
  
  /* Brand Colors */
  --teal: #0b8c8f;
  --teal-600: #0a7b7e;
  --teal-700: #095e60;
  --vio: #6d63ff;
  --vio-600: #5a51e6;
  --gold: #f3c623;
  --blue: #5aa4ff;
  --green: #22c55e;
  --red: #ef4444;
  --orange: #ff9500;
  
  /* Shadows for Dark Mode */
  --shadow: 0 12px 28px rgba(0, 0, 0, 0.32);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.44);
  --shadow-soft: 0 10px 24px rgba(0, 0, 0, 0.26);
  --shadow-xl: 0 32px 80px rgba(0, 0, 0, 0.52);
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.22);
  
  /* Layout */
  --radius: 18px;
  --radius-md: 14px;
  --radius-sm: 12px;
  --radius-xs: 10px;
  --maxw: 1200px;
  --maxw-wide: 1380px;
  --gutter: 20px;
  --header-h: 72px;
  
  /* Motion */
  --ease: cubic-bezier(0.22, 0.7, 0.26, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.32, 0, 0.67, 0);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Typography */
  --fs-xxl: clamp(32px, 4.8vw, 60px);
  --fs-xl: clamp(26px, 3.6vw, 44px);
  --fs-lg: clamp(18px, 2vw, 24px);
  --fs-md: 16px;
  --fs-sm: 14px;
  --fs-xs: 13px;
  
  /* Z-index Stack */
  --z-base: 1;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-modal-backdrop: 900;
  --z-modal: 1000;
  --z-nav-mobile: 1100;
  --z-toast: 1200;
}

/* ---------------------------------------------------------------------------
   Base & Reset - Bulletproof Fundamentals
   --------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-padding-top: calc(var(--header-h) + 24px);
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: var(--fs-md);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
  position: relative;
}

body.ready {
  opacity: 1;
}

body.nav-open {
  overflow: hidden;
}

img {
  max-width: 100%;
  display: block;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s var(--ease), opacity 0.2s var(--ease);
}

a:hover {
  opacity: 0.88;
}

button {
  font: inherit;
  color: inherit;
  background: transparent;
  border: 0;
  cursor: pointer;
  transition: all 0.2s var(--ease);
  -webkit-tap-highlight-color: transparent;
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

ul, ol {
  margin: 0;
  padding: 0;
}

svg {
  display: block;
  flex-shrink: 0;
}

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

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Container */
.container {
  width: min(100%, var(--maxw));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Section Spacing */
.section {
  padding: clamp(64px, 10vw, 120px) 0;
  position: relative;
}

.section-title {
  margin: 0 0 12px;
  text-align: center;
  font-weight: 900;
  font-size: var(--fs-xl);
  letter-spacing: 0.3px;
  animation: fadeInUp 0.6s var(--ease-out) backwards;
}

.section-sub {
  margin: 0 0 28px;
  text-align: center;
  color: var(--muted);
  font-size: var(--fs-lg);
  font-weight: 500;
  animation: fadeInUp 0.6s 0.1s var(--ease-out) backwards;
}

/* Skip Link for Accessibility */
.skip {
  position: absolute;
  left: -999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  z-index: 10000;
  background: var(--teal);
  color: #fff;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  box-shadow: var(--shadow-lg);
}

.skip:focus {
  left: 16px;
  top: 16px;
  width: auto;
  height: auto;
}

/* ---------------------------------------------------------------------------
   Header & Navigation - Production Ready
   --------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.3) blur(14px);
  -webkit-backdrop-filter: saturate(1.3) blur(14px);
  border-bottom: 1px solid var(--border);
  transition: 
    box-shadow 0.3s var(--ease),
    background 0.3s var(--ease),
    transform 0.3s var(--ease),
    border-color 0.3s var(--ease);
  animation: slideDown 0.6s var(--ease-out);
  will-change: transform;
}

body.has-scroll .site-header {
  box-shadow: var(--shadow-soft);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
}

.site-header.hide-header {
  transform: translateY(-100%);
}

.head-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  gap: clamp(12px, 2vw, 24px);
  min-height: var(--header-h);
}

/* Brand */
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  position: relative;
  z-index: var(--z-base);
  transition: transform 0.3s var(--ease);
}

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

.brand:focus-visible {
  outline-color: var(--teal);
}

.brand .dot {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: conic-gradient(from 220deg at 50% 50%, var(--teal), var(--vio), var(--gold), var(--teal));
  box-shadow: 
    0 0 20px rgba(11, 140, 143, 0.6),
    inset 0 0 10px rgba(255, 255, 255, 0.2);
  animation: spin 22s linear infinite;
  flex-shrink: 0;
}

.brand .brand-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.brand .name {
  font-weight: 900;
  font-size: clamp(16px, 2vw, 19px);
  background: linear-gradient(90deg, var(--teal), var(--vio), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 100%;
  animation: brandMove 14s var(--ease-out) infinite alternate;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand .tag {
  display: block;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.3;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Desktop Navigation */
.site-nav {
  display: flex;
}

.site-nav .nav-list {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  flex-wrap: wrap;
}

.site-nav .nav-list a {
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 600;
  font-size: var(--fs-sm);
  transition: 
    background 0.2s var(--ease),
    color 0.2s var(--ease),
    transform 0.2s var(--ease);
  position: relative;
  white-space: nowrap;
}

.site-nav .nav-list a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--teal);
  transform: translateY(-2px);
  opacity: 1;
}

.site-nav .nav-list a:active {
  transform: translateY(0);
}

.site-nav .nav-list a::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--teal);
  transform: translateX(-50%);
  transition: width 0.3s var(--ease-out);
  border-radius: 2px;
}

.site-nav .nav-list a:hover::after {
  width: 50%;
}

.site-nav .nav-list a[aria-current="true"] {
  color: var(--teal);
  background: rgba(11, 140, 143, 0.12);
}

.site-nav .nav-btn {
  background: var(--teal);
  color: #fff !important;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 800;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s var(--ease);
}

.site-nav .nav-btn::after {
  display: none;
}

.site-nav .nav-btn:hover {
  filter: brightness(1.12);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  background: var(--teal) !important;
}

.site-nav .nav-btn:active {
  transform: translateY(-1px);
}

.site-nav .nav-cta {
  color: var(--teal);
  font-weight: 700;
}

/* Mobile Toggle Button - Production Ready */
.nav-toggle {
  display: none;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--panel);
  box-shadow: var(--shadow-sm);
  transition: all 0.2s var(--ease);
  z-index: calc(var(--z-nav-mobile) + 1);
  position: relative;
}

.nav-toggle:hover {
  background: var(--panel-soft);
  transform: scale(1.05);
  box-shadow: var(--shadow);
  border-color: var(--border-soft);
}

.nav-toggle:active {
  transform: scale(0.96);
}

.nav-toggle .bars,
.nav-toggle .bars::before,
.nav-toggle .bars::after {
  content: '';
  display: block;
  width: 22px;
  height: 2.5px;
  background: var(--fg);
  position: relative;
  border-radius: 3px;
  transition: all 0.3s var(--ease);
}

.nav-toggle .bars::before {
  position: absolute;
  top: -7px;
  left: 0;
}

.nav-toggle .bars::after {
  position: absolute;
  top: 7px;
  left: 0;
}

/* Animated X when menu open */
body.nav-open .nav-toggle .bars {
  background: transparent;
}

body.nav-open .nav-toggle .bars::before {
  top: 0;
  transform: rotate(45deg);
}

body.nav-open .nav-toggle .bars::after {
  top: 0;
  transform: rotate(-45deg);
}

/* Mobile Navigation Sheet - Premium Implementation */
.mobile-sheet {
  position: fixed;
  inset: 0;
  background: var(--panel);
  z-index: var(--z-nav-mobile);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  opacity: 0;
  visibility: hidden;
  transition: 
    transform 0.35s var(--ease),
    opacity 0.35s var(--ease),
    visibility 0s linear 0.35s;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.mobile-sheet.show {
  transform: translateX(0);
  opacity: 1;
  visibility: visible;
  transition: 
    transform 0.35s var(--ease),
    opacity 0.35s var(--ease);
}

.mobile-inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 0;
  padding-bottom: env(safe-area-inset-bottom);
}

.mobile-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.mobile-brand {
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 0.3px;
  color: var(--fg);
}

.mobile-close {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--panel-soft);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.2s var(--ease);
}

.mobile-close:hover {
  transform: scale(1.05);
  background: var(--panel-tint);
  border-color: var(--border-soft);
}

.mobile-close:active {
  transform: scale(0.95);
}

.mobile-close svg {
  width: 22px;
  height: 22px;
  color: var(--fg);
}

.mobile-links {
  list-style: none;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.mobile-links li {
  animation: slideInRight 0.3s var(--ease-out) backwards;
}

.mobile-links li:nth-child(1) { animation-delay: 0.05s; }
.mobile-links li:nth-child(2) { animation-delay: 0.1s; }
.mobile-links li:nth-child(3) { animation-delay: 0.15s; }
.mobile-links li:nth-child(4) { animation-delay: 0.2s; }
.mobile-links li:nth-child(5) { animation-delay: 0.25s; }
.mobile-links li:nth-child(6) { animation-delay: 0.3s; }
.mobile-links li:nth-child(7) { animation-delay: 0.35s; }
.mobile-links li:nth-child(8) { animation-delay: 0.4s; }
.mobile-links li:nth-child(9) { animation-delay: 0.45s; }

.mobile-links a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 16px;
  border: 1px solid transparent;
  transition: all 0.2s var(--ease);
  color: var(--fg);
  background: transparent;
  position: relative;
  overflow: hidden;
}

.mobile-links a::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 0;
  background: var(--teal);
  border-radius: 0 4px 4px 0;
  transition: height 0.3s var(--ease);
}

.mobile-links a:hover,
.mobile-links a:focus {
  background: var(--panel-soft);
  border-color: var(--border);
  transform: translateX(6px);
}

.mobile-links a:hover::before,
.mobile-links a:focus::before {
  height: 70%;
}

.mobile-links a:active {
  transform: translateX(3px) scale(0.98);
}

.mobile-resume {
  margin-top: auto;
  background: var(--teal) !important;
  color: #fff !important;
  font-weight: 800;
  box-shadow: var(--shadow);
  border: 1px solid var(--teal) !important;
}

.mobile-resume:hover {
  background: var(--teal-600) !important;
  transform: translateX(0) !important;
  box-shadow: var(--shadow-lg);
}

/* Mobile Nav Overlay */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0s linear 0.3s;
  z-index: calc(var(--z-nav-mobile) - 1);
}

.nav-overlay.show {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  transition: opacity 0.3s var(--ease);
}

/* Scroll Progress Bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--vio), var(--gold));
  transform-origin: left;
  transform: scaleX(0);
  z-index: calc(var(--z-sticky) + 1);
  transition: transform 0.1s linear;
  pointer-events: none;
}

/* ---------------------------------------------------------------------------
   Hero Section - Masterpiece Design
   --------------------------------------------------------------------------- */
#home.hero {
  position: relative;
  min-height: clamp(600px, 95vh, 1080px);
  display: grid;
  place-items: center;
  text-align: center;
  overflow: hidden;
  background: 
    radial-gradient(1200px 600px at 20% 25%, rgba(11, 140, 143, 0.24), transparent 68%),
    radial-gradient(1200px 600px at 80% 75%, rgba(243, 198, 35, 0.24), transparent 68%),
    radial-gradient(1000px 500px at 50% 50%, rgba(109, 99, 255, 0.18), transparent 65%),
    var(--bg);
  padding: clamp(100px, 15vh, 140px) 0 clamp(70px, 10vh, 100px);
}

.hero .glow {
  position: absolute;
  inset: -30%;
  filter: blur(60px);
  opacity: 0.6;
  pointer-events: none;
  z-index: 0;
  animation: glowPulse 10s ease-in-out infinite;
  mix-blend-mode: screen;
}

.hero .glow i {
  position: absolute;
  width: 45vw;
  height: 45vw;
  border-radius: 999px;
  mix-blend-mode: screen;
}

.hero .glow i:nth-child(1) {
  left: -12%;
  top: -15%;
  background: radial-gradient(closest-side, rgba(11, 140, 143, 0.4), transparent 68%);
  animation: float 17s ease-in-out infinite;
}

.hero .glow i:nth-child(2) {
  right: -15%;
  bottom: -20%;
  background: radial-gradient(closest-side, rgba(243, 198, 35, 0.4), transparent 68%);
  animation: float 20s ease-in-out infinite reverse;
}

.hero .glow i:nth-child(3) {
  left: 32%;
  bottom: -25%;
  background: radial-gradient(closest-side, rgba(109, 99, 255, 0.32), transparent 68%);
  animation: float 14s ease-in-out infinite;
}

.hero-inner {
  position: relative;
  z-index: var(--z-base);
  max-width: 1000px;
  margin: 0 auto;
}

.hero-title {
  margin: 0 0 14px;
  line-height: 1.08;
  font-weight: 900;
  font-size: var(--fs-xxl);
  letter-spacing: 0.4px;
  animation: fadeInUp 0.8s var(--ease-out) backwards;
}

.hero-title .line {
  display: block;
  animation: fadeInUp 0.8s var(--ease-out) backwards;
}

.hero-title .line:nth-child(1) {
  animation-delay: 0.1s;
}

.hero-title .line:nth-child(2) {
  animation-delay: 0.2s;
  background: linear-gradient(135deg, var(--teal), var(--vio), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 100%;
  animation: fadeInUp 0.8s 0.2s var(--ease-out) backwards,
             brandMove 12s linear infinite alternate;
}

.hero-lead {
  margin: 0 auto 22px;
  max-width: 900px;
  color: var(--muted);
  font-size: var(--fs-lg);
  font-weight: 500;
  line-height: 1.65;
  animation: fadeInUp 0.8s 0.3s var(--ease-out) backwards;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 14px;
  animation: fadeInUp 0.8s 0.4s var(--ease-out) backwards;
}

/* Button Styles - Premium Quality */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 22px;
  border-radius: 999px;
  background: var(--teal);
  color: #fff;
  font-weight: 800;
  font-size: var(--fs-md);
  box-shadow: var(--shadow);
  transition: 
    transform 0.2s var(--ease),
    filter 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
  position: relative;
  overflow: hidden;
  border: 0;
  white-space: nowrap;
  cursor: pointer;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.2), 
    transparent 50%,
    rgba(255, 255, 255, 0.1));
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

.btn:hover::before {
  opacity: 1;
}

.btn:hover {
  transform: translateY(-3px);
  filter: brightness(1.12);
  box-shadow: var(--shadow-lg);
}

.btn:active {
  transform: translateY(-1px);
}

.btn.ghost {
  background: transparent;
  color: var(--teal);
  border: 2px solid var(--teal);
  box-shadow: none;
}

.btn.ghost:hover {
  background: var(--teal);
  color: #fff;
  box-shadow: var(--shadow);
}

.btn.call {
  background: var(--vio);
}

.btn.call:hover {
  background: var(--vio-600);
}

.btn.wide {
  width: 100%;
}

/* Ripple Effect */
.btn .r {
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.42);
  transform: translate(-50%, -50%) scale(0);
  animation: ripple 0.65s var(--ease-out);
  pointer-events: none;
}

/* Stats Chips */
.stat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin: 20px 0 0;
  animation: fadeInUp 0.8s 0.5s var(--ease-out) backwards;
}

.stat-chips li {
  list-style: none;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--panel);
  border: 1px solid var(--border);
  color: var(--muted);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s var(--ease);
  animation: fadeIn 0.6s var(--ease-out) backwards;
  font-size: var(--fs-sm);
}

.stat-chips li:nth-child(1) { animation-delay: 0.6s; }
.stat-chips li:nth-child(2) { animation-delay: 0.7s; }
.stat-chips li:nth-child(3) { animation-delay: 0.8s; }

.stat-chips li:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: var(--shadow);
  border-color: var(--border-soft);
}

.stat-chips strong {
  font-weight: 900;
  margin-right: 6px;
  color: var(--fg);
  font-size: 17px;
}

/* Logo Ribbon */
.logo-ribbon {
  margin-top: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel-soft);
  box-shadow: var(--shadow);
  overflow: hidden;
  animation: fadeInUp 0.8s 0.9s var(--ease-out) backwards;
}

.ribbon-track {
  display: flex;
  gap: 32px;
  align-items: center;
  justify-content: center;
  padding: 14px;
  animation: logos 45s linear infinite;
}

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

.ribbon-track img {
  height: 34px;
  filter: 
    drop-shadow(0 3px 8px rgba(0, 0, 0, 0.3))
    grayscale(0.3);
  transition: 
    transform 0.3s var(--ease),
    filter 0.3s var(--ease);
  opacity: 0.92;
}

.ribbon-track img:hover {
  transform: scale(1.12);
  filter: 
    drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4))
    grayscale(0);
  opacity: 1;
}

/* Hint */
.hint {
  margin-top: 32px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-weight: 600;
  animation: fadeIn 1s 1s var(--ease-out) backwards;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.wheel {
  width: 26px;
  height: 40px;
  border: 2.5px solid var(--muted);
  border-radius: 16px;
  position: relative;
}

.wheel::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 7px;
  width: 4px;
  height: 9px;
  background: var(--muted);
  border-radius: 2px;
  transform: translateX(-50%);
  animation: wheelScroll 1.6s ease-in-out infinite;
}

/* ---------------------------------------------------------------------------
   Filters & Projects - Enterprise Quality
   --------------------------------------------------------------------------- */
#projects .filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 0 0 28px;
}

#projects .chip {
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--muted);
  font-weight: 700;
  font-size: var(--fs-sm);
  transition: all 0.2s var(--ease);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

#projects .chip::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--teal), var(--vio));
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

#projects .chip:hover {
  color: var(--fg);
  border-color: var(--border-soft);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

#projects .chip:hover::before {
  opacity: 0.08;
}

#projects .chip.active {
  background: var(--teal);
  color: #fff;
  border-color: transparent;
  box-shadow: var(--shadow);
  transform: scale(1.05);
  position: relative;
}

#projects .chip.active::before {
  opacity: 0;
}

#projects .chip.active::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.2), 
    transparent 50%);
}

#project-grid.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
  gap: 20px;
}

/* Project Card - Premium Design */
.project-card {
  display: flex;
  flex-direction: column;
  min-height: 440px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: 
    transform 0.3s var(--ease),
    box-shadow 0.3s var(--ease),
    border-color 0.3s var(--ease);
  animation: fadeIn 0.5s var(--ease-out) backwards;
  will-change: transform;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--border-soft);
}

.project-card .cover {
  aspect-ratio: 16/9;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.22), transparent);
  display: grid;
  place-items: center;
  overflow: hidden;
  position: relative;
}

.project-card .cover::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, 
    transparent 0%, 
    rgba(0, 0, 0, 0.1) 50%,
    rgba(0, 0, 0, 0.3) 100%);
  pointer-events: none;
}

.project-card .cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.project-card:hover .cover img {
  transform: scale(1.08);
}

.project-card .body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.project-card h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.2px;
}

.project-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: var(--fs-sm);
}

.project-card .tag-row {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: var(--panel-soft);
  transition: all 0.2s var(--ease);
  color: var(--muted);
}

.tag::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--teal);
  animation: pulse 2.5s ease-in-out infinite;
}

.tag:hover {
  transform: scale(1.08);
  box-shadow: var(--shadow-sm);
  border-color: var(--teal);
  color: var(--fg);
}

.no-results {
  margin-top: 14px;
  text-align: center;
  color: var(--muted);
  font-style: italic;
  padding: 24px;
  background: var(--panel);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}

/* ---------------------------------------------------------------------------
   Experience & Skills - Professional Layout
   --------------------------------------------------------------------------- */
.grid {
  display: grid;
  gap: 18px;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
}

.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  transition: all 0.3s var(--ease);
  animation: fadeIn 0.6s var(--ease-out) backwards;
  position: relative;
  overflow: hidden;
}

.panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--teal), var(--vio), var(--gold));
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

.panel:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-soft);
}

.panel:hover::before {
  opacity: 1;
}

.xp-card .xp-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.xp-card .xp-head img {
  border-radius: 10px;
  background: var(--panel-soft);
  padding: 6px;
  border: 1px solid var(--border);
}

.xp-card h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.2px;
  line-height: 1.4;
}

.xp-mark {
  color: var(--teal);
  flex-shrink: 0;
}

.bullets {
  padding-left: 22px;
  list-style: none;
}

.bullets li {
  margin-bottom: 10px;
  position: relative;
  padding-left: 10px;
  line-height: 1.6;
  font-size: var(--fs-sm);
  color: var(--muted);
}

.bullets li::before {
  content: '→';
  position: absolute;
  left: -22px;
  color: var(--teal);
  font-weight: 800;
  font-size: 16px;
}

.bullets li:hover {
  color: var(--fg);
}

/* ---------------------------------------------------------------------------
   Skills Section
   --------------------------------------------------------------------------- */
#skills .skills {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
}

#skills .skill-box {
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
  transition: all 0.3s var(--ease);
  animation: fadeIn 0.6s var(--ease-out) backwards;
  position: relative;
  overflow: hidden;
}

#skills .skill-box::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(11, 140, 143, 0.15), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}

#skills .skill-box:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-soft);
}

#skills .skill-box:hover::before {
  opacity: 1;
}

#skills .skill-box strong {
  display: block;
  font-size: 16px;
  margin-bottom: 10px;
  color: var(--fg);
  font-weight: 800;
  letter-spacing: 0.2px;
  position: relative;
  z-index: 1;
}

#skills .skill-box p {
  margin: 0;
  color: var(--fg);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  position: relative;
  z-index: 1;
}

#skills .skill-box p span {
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--panel-soft);
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s var(--ease);
  color: var(--muted);
}

#skills .skill-box p span:hover {
  background: var(--teal);
  color: #fff;
  transform: scale(1.08);
  border-color: var(--teal);
  box-shadow: var(--shadow-sm);
}

/* ---------------------------------------------------------------------------
   ML Work & Other Sections
   --------------------------------------------------------------------------- */
#mlwork .panel,
#game .panel,
#independent .panel,
#honors .panel {
  display: grid;
  gap: 14px;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: all 0.3s var(--ease);
}

#mlwork .panel:hover,
#game .panel:hover,
#independent .panel:hover,
#honors .panel:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
  border-color: var(--border-soft);
}

#mlwork .panel p,
#game .panel p {
  margin: 0 0 14px 0;
  line-height: 1.75;
  color: var(--muted);
  font-size: var(--fs-md);
}

#mlwork .panel p:last-child,
#game .panel p:last-child {
  margin-bottom: 0;
}

/* ---------------------------------------------------------------------------
   Contact Section - Premium Design
   --------------------------------------------------------------------------- */
#contact {
  background: 
    radial-gradient(900px 600px at 25% 50%, rgba(11, 140, 143, 0.1), transparent 65%),
    radial-gradient(900px 600px at 75% 50%, rgba(243, 198, 35, 0.08), transparent 65%),
    var(--panel);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

#contact::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(11, 140, 143, 0.12) 0%,
    transparent 68%
  );
  pointer-events: none;
  animation: float 18s ease-in-out infinite;
}

.contact-wrap {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 28px;
  align-items: start;
  position: relative;
  z-index: var(--z-base);
}

.social-col {
  display: grid;
  gap: 12px;
  align-content: start;
  position: sticky;
  top: calc(var(--header-h) + 24px);
}

.social-col a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  transition: all 0.3s var(--ease);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.social-col a::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--teal);
  transform: scaleY(0);
  transition: transform 0.3s var(--ease);
}

.social-col a:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow);
  border-color: var(--teal);
  background: var(--panel-soft);
}

.social-col a:hover::before {
  transform: scaleY(1);
}

.social-col a:active {
  transform: translateX(3px);
}

.social-col svg {
  width: 24px;
  height: 24px;
  color: var(--teal);
  flex-shrink: 0;
  transition: transform 0.3s var(--ease);
}

.social-col a:hover svg {
  transform: scale(1.1) rotate(5deg);
}

.social-col a span {
  font-weight: 600;
  color: var(--fg);
  font-size: var(--fs-sm);
}

.contact-form {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 18px;
}

.contact-form label {
  display: block;
  font-weight: 700;
  color: var(--fg);
  font-size: var(--fs-sm);
  margin-bottom: 6px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  margin-top: 8px;
  padding: 13px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel-soft);
  color: var(--fg);
  font-family: inherit;
  font-size: var(--fs-md);
  transition: all 0.2s var(--ease);
}

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

.contact-form input:hover,
.contact-form textarea:hover {
  border-color: var(--border-soft);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--teal);
  background: var(--panel);
  box-shadow: 0 0 0 4px rgba(11, 140, 143, 0.12);
}

.contact-form textarea {
  resize: vertical;
  min-height: 140px;
  line-height: 1.6;
}

.contact-form .hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.contact-form .row {
  display: flex;
  gap: 14px;
  align-items: center;
}

.contact-form .row.tight {
  justify-content: space-between;
  margin-top: 8px;
  flex-wrap: wrap;
}

.contact-form .right {
  display: flex;
  gap: 10px;
  margin-left: auto;
}

.contact-form .err {
  color: var(--red);
  font-size: var(--fs-sm);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ---------------------------------------------------------------------------
   Footer - Premium Design
   --------------------------------------------------------------------------- */
.site-footer {
  background: var(--panel);
  border-top: 1px solid var(--border);
  padding: clamp(60px, 10vw, 100px) 0 clamp(32px, 5vw, 50px);
  position: relative;
  overflow: hidden;
  margin-top: clamp(48px, 8vw, 80px);
}

.footer-hero {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(
      900px 700px at 28% 45%,
      rgba(11, 140, 143, 0.14) 0%,
      transparent 68%
    ),
    radial-gradient(
      900px 700px at 72% 55%,
      rgba(243, 198, 35, 0.1) 0%,
      transparent 68%
    );
  pointer-events: none;
  opacity: 0.7;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: clamp(32px, 5vw, 48px);
  margin-bottom: clamp(32px, 5vw, 48px);
  position: relative;
  z-index: var(--z-base);
}

.foot-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.foot-head {
  font-size: 20px;
  font-weight: 800;
  margin: 0 0 8px;
  background: linear-gradient(90deg, var(--teal), var(--vio));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 0.3px;
}

.foot-col p {
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
  font-size: var(--fs-sm);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  background: var(--panel-soft);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  transition: all 0.2s var(--ease);
}

.chip:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  border-color: var(--teal);
  color: var(--fg);
}

.chip-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  animation: pulse 2.5s ease-in-out infinite;
}

.social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.social {
  padding: 11px 20px;
  background: var(--panel-soft);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-weight: 700;
  font-size: var(--fs-sm);
  transition: all 0.3s var(--ease);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.social:hover {
  background: var(--teal);
  color: #fff;
  border-color: var(--teal);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.foot-base {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  position: relative;
  z-index: var(--z-base);
  flex-wrap: wrap;
  gap: 14px;
}

.foot-base small {
  color: var(--muted);
  font-size: var(--fs-sm);
}

.foot-base a {
  color: var(--teal);
  font-weight: 600;
  font-size: var(--fs-sm);
  transition: all 0.2s var(--ease);
}

.foot-base a:hover {
  color: var(--teal-600);
  transform: translateY(-1px);
}

/* ---------------------------------------------------------------------------
   Toast Notifications - Premium UI
   --------------------------------------------------------------------------- */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: var(--z-toast);
  display: grid;
  gap: 10px;
  pointer-events: none;
  max-width: 400px;
}

.toast {
  background: var(--panel);
  color: var(--fg);
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  animation: slideInRight 0.3s var(--ease-out);
  pointer-events: auto;
  min-width: 240px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: var(--fs-sm);
  backdrop-filter: blur(10px);
}

.toast.hide {
  animation: slideOutRight 0.25s var(--ease) forwards;
}

.toast.success::before {
  content: '✓';
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-weight: 800;
  flex-shrink: 0;
}

.toast.error::before {
  content: '!';
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-weight: 800;
  flex-shrink: 0;
}

/* ---------------------------------------------------------------------------
   Modal System - Enterprise Grade
   --------------------------------------------------------------------------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: var(--z-modal);
  display: grid;
  place-items: center;
  padding: 20px;
  animation: fadeIn 0.25s var(--ease);
  overscroll-behavior: contain;
}

.modal-overlay.hide {
  animation: fadeOut 0.2s var(--ease) forwards;
}

.modal-sheet {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xl);
  max-width: min(92vw, 680px);
  max-height: 90vh;
  overflow: auto;
  padding: 28px;
  position: relative;
  animation: scaleIn 0.3s var(--ease-out);
}

.modal-x {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--panel-soft);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  transition: all 0.2s var(--ease);
  color: var(--muted);
}

.modal-x:hover {
  background: var(--panel-tint);
  color: var(--fg);
  transform: scale(1.08);
  box-shadow: var(--shadow-sm);
}

.modal-x:active {
  transform: scale(0.95);
}

/* Confetti Canvas */
#confetti {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
  z-index: var(--z-toast);
}

/* ---------------------------------------------------------------------------
   Animations - Professional Quality
   --------------------------------------------------------------------------- */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

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

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-100%);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOutRight {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

@keyframes scaleIn {
  from {
    transform: scale(0.94);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes ripple {
  to {
    transform: translate(-50%, -50%) scale(16);
    opacity: 0;
  }
}

@keyframes brandMove {
  to { background-position: 200% 0; }
}

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

@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  33% { transform: translate(15px, -18px); }
  66% { transform: translate(-12px, 14px); }
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 0.8; }
}

@keyframes wheelScroll {
  0%, 100% { 
    opacity: 1; 
    transform: translateX(-50%) translateY(0); 
  }
  50% { 
    opacity: 0.4; 
    transform: translateX(-50%) translateY(14px); 
  }
}

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

@keyframes pulse {
  0%, 100% { 
    opacity: 1; 
    transform: scale(1);
  }
  50% { 
    opacity: 0.5; 
    transform: scale(0.9);
  }
}

/* Reveal Animation for Scroll */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: 
    opacity 0.7s var(--ease-out),
    transform 0.7s var(--ease-out);
}

.reveal.show {
  opacity: 1;
  transform: translateY(0);
}

/* ---------------------------------------------------------------------------
   Responsive Design - Mobile First
   --------------------------------------------------------------------------- */
@media (max-width: 950px) {
  :root {
    --header-h: 64px;
    --gutter: 16px;
  }

  /* Hide desktop nav, show mobile toggle */
  .site-nav {
    display: none !important;
  }

  .nav-toggle {
    display: grid !important;
  }

  /* Hero adjustments */
  .hero {
    padding: clamp(80px, 12vh, 100px) 0 clamp(60px, 8vh, 80px);
  }

  .hero-title {
    font-size: clamp(28px, 8vw, 40px);
  }

  .hero-lead {
    font-size: clamp(15px, 4vw, 18px);
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
  }

  .hero-actions .btn {
    width: 100%;
  }

  /* Contact layout */
  .contact-wrap {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .social-col {
    position: static;
  }

  .contact-form {
    padding: 22px;
  }

  .contact-form .row {
    flex-direction: column;
    gap: 0;
  }

  .contact-form .row.tight {
    flex-direction: row;
  }

  .contact-form .right {
    width: 100%;
    margin-left: 0;
  }

  .contact-form .right .btn {
    flex: 1;
  }

  /* Footer adjustments */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .foot-base {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }

  /* Toast positioning */
  .toast-container {
    left: 16px;
    right: 16px;
    bottom: 16px;
    max-width: none;
  }

  /* Modal adjustments */
  .modal-sheet {
    padding: 22px;
    max-width: 95vw;
  }

  /* Project grid */
  #project-grid.project-grid {
    grid-template-columns: 1fr;
  }

  /* Stats chips */
  .stat-chips {
    font-size: 13px;
  }

  .stat-chips li {
    padding: 8px 12px;
  }
}

@media (max-width: 640px) {
  :root {
    --fs-xxl: clamp(26px, 9vw, 36px);
    --fs-xl: clamp(22px, 7vw, 32px);
    --fs-lg: clamp(16px, 4.5vw, 20px);
  }

  .section {
    padding: clamp(48px, 8vw, 80px) 0;
  }

  .brand .tag {
    display: none;
  }

  .hero-actions {
    gap: 10px;
  }

  .btn {
    padding: 12px 18px;
    font-size: 15px;
  }

  .stat-chips {
    gap: 8px;
  }

  .stat-chips strong {
    font-size: 15px;
  }

  #projects .filters {
    gap: 8px;
  }

  #projects .chip {
    padding: 8px 14px;
    font-size: 13px;
  }

  .panel {
    padding: 18px;
  }

  #skills .skills {
    grid-template-columns: 1fr;
  }

  .contact-form .row.tight {
    flex-direction: column;
  }

  .contact-form .right {
    flex-direction: column;
  }

  .contact-form .right .btn {
    width: 100%;
  }
}

/* ---------------------------------------------------------------------------
   Print Styles
   --------------------------------------------------------------------------- */
@media print {
  .site-header,
  .nav-toggle,
  .mobile-sheet,
  .nav-overlay,
  #scrollProgress,
  #confetti,
  .toast-container,
  .hero-actions,
  .footer-hero,
  .hint {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  * {
    animation: none !important;
    transition: none !important;
  }

  .section {
    page-break-inside: avoid;
  }
}

/* ---------------------------------------------------------------------------
   Accessibility - 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;
  }
}

/* ---------------------------------------------------------------------------
   High Contrast Mode Support
   --------------------------------------------------------------------------- */
@media (prefers-contrast: high) {
  :root {
    --border: #444;
    --border-soft: #555;
  }

  .btn {
    border: 2px solid currentColor;
  }
}

/* ---------------------------------------------------------------------------
   End of Stylesheet - Production Ready
   --------------------------------------------------------------------------- */






































   /* ---------------------------------------------------------------------------
   Design Tokens - Light Mode by Default
   --------------------------------------------------------------------------- */
:root {
  color-scheme: light;
  
  /* Colors - Light Mode is Primary */
  --bg: #ffffff;
  --fg: #0c0d0d;
  --muted: #6b7280;
  --panel: #f9fafb;
  --panel-soft: #f3f4f6;
  --panel-tint: #e5e7eb;
  --border: #e7e7e9;
  --border-soft: #d1d5db;
  
  /* Brand Colors */
  --teal: #0b8c8f;
  --teal-rgb: 11, 140, 143;
  --teal-600: #0a7b7e;
  --teal-700: #095e60;
  --vio: #6d63ff;
  --vio-rgb: 109, 99, 255;
  --vio-600: #5a51e6;
  --gold: #f3c623;
  --blue: #5aa4ff;
  --green: #22c55e;
  --red: #ef4444;
  --orange: #ff9500;
  
  /* Shadows for Light Mode */
  --shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.12);
  --shadow-soft: 0 10px 24px rgba(0, 0, 0, 0.06);
  --shadow-xl: 0 32px 80px rgba(0, 0, 0, 0.15);
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.04);}

  .site-header {
  /* Change this line: */
  background: rgba(255, 255, 255, 0.88);
  /* ... rest stays the same */
}

body.has-scroll .site-header {
  /* Change this line: */
  background: rgba(255, 255, 255, 0.95);
  /* ... rest stays the same */
}

.hero .glow {
  /* Change this line: */
  opacity: 0.3;
  /* Change this line: */
  mix-blend-mode: multiply;
  /* ... rest stays the same */
}