/* ==========================================================================
   ALEXIS VANCE — ULTRA PREMIUM PORTFOLIO DESIGN SYSTEM
   Theme: Obsidian Cyber Luxury & Glassmorphic Precision
   ========================================================================== */

/* 1. ROOT VARIABLES & THEME TOKENS */
:root {
  --font-display: 'Syne', sans-serif;
  --font-body: 'Outfit', sans-serif;
  --font-heading: 'Plus Jakarta Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Default Obsidian Cyan Palette */
  --bg-primary: #07080d;
  --bg-surface: #0e111a;
  --bg-card: rgba(18, 22, 34, 0.7);
  --bg-glass: rgba(255, 255, 255, 0.03);
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-glass-hover: rgba(6, 182, 212, 0.4);

  --accent-primary: #00f0ff;
  --accent-primary-rgb: 0, 240, 255;
  --accent-secondary: #8b5cf6;
  --accent-secondary-rgb: 139, 92, 246;
  --accent-glow: rgba(0, 240, 255, 0.35);

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

/* THEME VARIATIONS */
body.theme-violet {
  --accent-primary: #a855f7;
  --accent-primary-rgb: 168, 85, 247;
  --accent-secondary: #ec4899;
  --accent-secondary-rgb: 236, 72, 153;
  --accent-glow: rgba(168, 85, 247, 0.4);
  --border-glass-hover: rgba(168, 85, 247, 0.5);
}

body.theme-emerald {
  --accent-primary: #10b981;
  --accent-primary-rgb: 16, 185, 129;
  --accent-secondary: #06b6d4;
  --accent-secondary-rgb: 6, 182, 212;
  --accent-glow: rgba(16, 185, 129, 0.4);
  --border-glass-hover: rgba(16, 185, 129, 0.5);
}

body.theme-amber {
  --accent-primary: #f59e0b;
  --accent-primary-rgb: 245, 158, 11;
  --accent-secondary: #ef4444;
  --accent-secondary-rgb: 239, 68, 68;
  --accent-glow: rgba(245, 158, 11, 0.4);
  --border-glass-hover: rgba(245, 158, 11, 0.5);
}

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

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-main);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
  position: relative;
}

/* CUSTOM SCROLLBAR */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #07080d;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 9999px;
  border: 2px solid #07080d;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-primary);
}

/* NOISE OVERLAY FOR ORGANIC DEPTH */
.noise-overlay {
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 0);
  background-size: 24px 24px;
  pointer-events: none;
  z-index: 1;
  opacity: 0.6;
}

/* AMBIENT GLOW ORBS */
.ambient-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
  transition: all 1.2s ease;
}

.glow-1 {
  width: 550px;
  height: 550px;
  top: -150px;
  left: -100px;
  background: radial-gradient(circle, var(--accent-primary) 0%, rgba(var(--accent-primary-rgb), 0) 70%);
  animation: driftSlow 18s ease-in-out infinite alternate;
}

.glow-2 {
  width: 600px;
  height: 600px;
  top: 40%;
  right: -150px;
  background: radial-gradient(circle, var(--accent-secondary) 0%, rgba(var(--accent-secondary-rgb), 0) 70%);
  animation: driftSlow 22s ease-in-out infinite alternate-reverse;
}

.glow-3 {
  width: 500px;
  height: 500px;
  bottom: -100px;
  left: 20%;
  background: radial-gradient(circle, rgba(var(--accent-primary-rgb), 0.8) 0%, transparent 70%);
  animation: driftSlow 26s ease-in-out infinite alternate;
}

@keyframes driftSlow {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(60px, 40px) scale(1.1); }
  100% { transform: translate(-40px, 80px) scale(0.95); }
}

/* SCROLL PROGRESS BAR */
.scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
  width: 0%;
  z-index: 100;
  box-shadow: 0 0 12px var(--accent-glow);
  transition: width 0.1s ease-out;
}

/* 3. CUSTOM INTERACTIVE CURSOR */
.custom-cursor {
  pointer-events: none;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.08s ease-out;
}

.cursor-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-primary);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-primary);
  transition: transform 0.15s ease, background-color 0.3s ease;
}

.cursor-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  transform: translate(-50%, -50%);
  border: 1.5px solid rgba(var(--accent-primary-rgb), 0.5);
  border-radius: 50%;
  box-shadow: 0 0 16px rgba(var(--accent-primary-rgb), 0.3);
  transition: width 0.25s ease, height 0.25s ease, border-color 0.3s ease;
}

body.cursor-hover .cursor-dot {
  transform: scale(2);
  background: #ffffff;
}

body.cursor-hover .cursor-glow {
  width: 60px;
  height: 60px;
  border-color: rgba(var(--accent-primary-rgb), 0.9);
  background: rgba(var(--accent-primary-rgb), 0.1);
}

/* 4. GLASSMORPHISM & CONTAINER STYLES */
.container {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.glass-panel {
  background: rgba(14, 18, 28, 0.65);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.glass-panel-luxury {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%), rgba(11, 14, 23, 0.75);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid var(--border-glass);
  box-shadow: 0 24px 60px -12px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.glass-panel-luxury:hover {
  border-color: var(--border-glass-hover);
  box-shadow: 0 30px 70px -15px rgba(0, 0, 0, 0.8), 0 0 30px rgba(var(--accent-primary-rgb), 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.glass-card {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(16px);
  transition: all 0.3s ease;
}

.glass-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.15);
}

/* 5. TOP ANNOUNCEMENT & HEADER NAVIGATION */
.top-announcement {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(7, 8, 13, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  z-index: 50;
}

.status-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 10px #10b981;
  display: inline-block;
  animation: pulseGreen 2s infinite;
}

@keyframes pulseGreen {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.nav-glass-container {
  background: rgba(11, 14, 23, 0.75);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}

.logo-box {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(var(--accent-primary-rgb), 0.2), rgba(var(--accent-secondary-rgb), 0.2));
  border: 1px solid rgba(var(--accent-primary-rgb), 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary);
  font-size: 1.1rem;
  box-shadow: 0 0 15px rgba(var(--accent-primary-rgb), 0.3);
  transition: transform 0.3s ease;
}

.brand-logo:hover .logo-box {
  transform: rotate(15deg) scale(1.05);
}

.nav-links-pill {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-link {
  padding: 0.4rem 0.85rem;
  font-size: 0.825rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: 9999px;
  transition: all 0.25s ease;
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.badge-mini {
  font-size: 9px;
  font-family: var(--font-mono);
  background: rgba(var(--accent-primary-rgb), 0.2);
  color: var(--accent-primary);
  padding: 1px 5px;
  border-radius: 9999px;
  border: 1px solid rgba(var(--accent-primary-rgb), 0.4);
}

.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
}

.icon-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

/* THEME DROPDOWN */
.theme-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 170px;
  background: rgba(14, 18, 28, 0.95);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7);
  overflow: hidden;
  z-index: 60;
}

.theme-option {
  width: 100%;
  padding: 8px 12px;
  text-align: left;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.theme-option:hover, .theme-option.active {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.theme-swatch {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

/* MOBILE NAV */
.mobile-nav-drawer {
  background: rgba(7, 8, 13, 0.96);
  backdrop-filter: blur(28px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav-link {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  padding: 8px;
  transition: color 0.2s ease;
}

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

/* 6. BUTTONS & INTERACTION STYLES */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.35rem;
  background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
  color: #07080d;
  font-weight: 700;
  font-family: var(--font-heading);
  text-decoration: none;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 20px var(--accent-glow);
  transition: transform 0.25s var(--ease-spring), box-shadow 0.25s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--accent-glow);
  color: #000;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  background: rgba(255, 255, 255, 0.04);
  color: #ffffff;
  font-weight: 600;
  font-family: var(--font-heading);
  text-decoration: none;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.15rem;
  background: transparent;
  color: var(--text-muted);
  font-weight: 600;
  text-decoration: none;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-ghost:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
}

/* 7. TYPOGRAPHY & HERO STYLING */
.hero-title {
  font-family: var(--font-display);
}

.gradient-text {
  background: linear-gradient(135deg, #ffffff 20%, var(--accent-primary) 70%, var(--accent-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-glow-accent {
  color: var(--accent-primary);
  text-shadow: 0 0 30px rgba(var(--accent-primary-rgb), 0.6);
}

.hero-badge {
  background: rgba(var(--accent-primary-rgb), 0.08);
  border: 1px solid rgba(var(--accent-primary-rgb), 0.25);
  box-shadow: 0 0 20px rgba(var(--accent-primary-rgb), 0.1);
}

.badge-tag {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 0.7rem;
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cursor-blinker {
  animation: blink 1s infinite;
  color: var(--accent-primary);
  font-weight: 300;
}

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

.social-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9999px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.75rem;
  transition: all 0.25s ease;
}

.social-chip:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-color: var(--accent-primary);
  transform: translateY(-1px);
}

/* 8. 3D TILT CARD & HUD GRAPHICS */
.tilt-card-wrapper {
  perspective: 1200px;
}

.tilt-card {
  transform-style: preserve-3d;
  transition: transform 0.15s ease-out, box-shadow 0.3s ease;
  will-change: transform;
}

.card-specular-light {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 255, 0.12) 0%, transparent 60%);
  pointer-events: none;
  z-index: 5;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.tilt-card:hover .card-specular-light {
  opacity: 1;
}

/* HUD BRACKETS */
.hud-bracket {
  position: absolute;
  width: 14px;
  height: 14px;
  border-color: var(--accent-primary);
  pointer-events: none;
  opacity: 0.7;
}

.hud-tl { top: 8px; left: 8px; border-top: 2px solid; border-left: 2px solid; }
.hud-tr { top: 8px; right: 8px; border-top: 2px solid; border-right: 2px solid; }
.hud-bl { bottom: 8px; left: 8px; border-bottom: 2px solid; border-left: 2px solid; }
.hud-br { bottom: 8px; right: 8px; border-bottom: 2px solid; border-right: 2px solid; }

.stat-icon-circle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

/* 9. KPI METRICS COUNTER STRIP */
.kpi-card {
  background: rgba(14, 18, 28, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
}

/* 10. PILLARS & RADAR METRICS */
.pillar-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.progress-fill {
  height: 100%;
  border-radius: 9999px;
  transition: width 1.2s var(--ease-spring);
}

/* 11. TECH ARSENAL MATRIX */
.stack-filter-btn {
  padding: 0.45rem 1rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  font-size: 0.75rem;
  font-family: var(--font-mono);
  cursor: pointer;
  transition: all 0.25s ease;
}

.stack-filter-btn:hover, .stack-filter-btn.active {
  background: rgba(var(--accent-primary-rgb), 0.15);
  color: var(--accent-primary);
  border-color: rgba(var(--accent-primary-rgb), 0.4);
}

.tech-card {
  background: rgba(14, 18, 28, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  padding: 1.25rem 1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all 0.3s var(--ease-spring);
  backdrop-filter: blur(12px);
}

.tech-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border-glass-hover);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(var(--accent-primary-rgb), 0.1);
}

.tech-icon {
  font-size: 1.85rem;
  margin-bottom: 0.75rem;
}

.tech-name {
  font-weight: 700;
  font-size: 0.9rem;
  color: #ffffff;
  margin-bottom: 0.2rem;
}

.tech-level {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--accent-primary);
  margin-bottom: 0.25rem;
}

.tech-desc {
  font-size: 0.7rem;
  color: var(--text-dim);
}

/* 12. PROJECT SHOWCASE & CARDS */
.project-filter-bar .proj-tab {
  padding: 0.45rem 1rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}

.project-filter-bar .proj-tab:hover, .project-filter-bar .proj-tab.active {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-color: var(--accent-primary);
}

.badge-featured {
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 0.65rem;
  font-family: var(--font-mono);
  font-weight: 700;
  background: rgba(var(--accent-primary-rgb), 0.2);
  color: var(--accent-primary);
  border: 1px solid rgba(var(--accent-primary-rgb), 0.4);
  backdrop-filter: blur(10px);
}

.thumb-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 8, 13, 0.1) 0%, rgba(7, 8, 13, 0.8) 100%);
  pointer-events: none;
}

.thumb-action-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.thumb-action-btn:hover {
  background: var(--accent-primary);
  color: #07080d;
  transform: scale(1.1);
}

.tech-chip {
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
}

/* 13. TIMELINE */
.timeline-wrapper {
  position: relative;
}

.timeline-line {
  position: absolute;
  top: 15px;
  bottom: 15px;
  left: 20px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent-primary) 0%, var(--accent-secondary) 50%, rgba(255, 255, 255, 0.05) 100%);
}

.timeline-item {
  padding-left: 28px;
}

.timeline-node {
  position: absolute;
  left: 8px;
  top: 24px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #0e111a;
  border: 2px solid currentColor;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px currentColor;
  z-index: 5;
}

/* 14. FORMS & INPUTS */
.form-label {
  display: block;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: all 0.25s ease;
  outline: none;
}

.form-input:focus {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--accent-primary);
  box-shadow: 0 0 20px rgba(var(--accent-primary-rgb), 0.25);
}

.form-input option {
  background-color: #0e111a;
  color: #ffffff;
}

/* 15. MODAL SYSTEM */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 7, 11, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  animation: modalFadeIn 0.3s ease;
}

.modal-container {
  animation: modalSlideUp 0.3s var(--ease-spring);
}

.modal-close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  transform: rotate(90deg);
}

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

@keyframes modalSlideUp {
  from { transform: translateY(30px) scale(0.97); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

/* 16. PRINT STYLES FOR CV / RESUME */
@media print {
  body {
    background: #ffffff !important;
    color: #000000 !important;
  }
  #bg-canvas, .ambient-glow, .noise-overlay, .custom-cursor, #main-header, footer, .top-announcement {
    display: none !important;
  }
  .modal-overlay {
    position: static !important;
    background: transparent !important;
    padding: 0 !important;
  }
  .modal-container {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    max-height: none !important;
    color: #000000 !important;
  }
  .modal-close-btn, .btn-primary, .btn-secondary {
    display: none !important;
  }
}

/* 17. TAILWIND-COMPATIBLE UTILITIES FALLBACK FOR PURE VANILLA */
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.hidden { display: none !important; }
.grid { display: grid; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.z-0 { z-index: 0; }
.z-10 { z-index: 10; }
.z-50 { z-index: 50; }
.pointer-events-none { pointer-events: none; }
.w-full { width: 100%; }
.h-full { height: 100%; }
.max-w-6xl { max-width: 72rem; }
.max-w-5xl { max-width: 64rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-xl { max-width: 36rem; }
.max-w-md { max-width: 28rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-3xl { border-radius: 1.5rem; }
.rounded-full { border-radius: 9999px; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-12 { gap: 3rem; }
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.space-y-8 > * + * { margin-top: 2rem; }
.space-y-12 > * + * { margin-top: 3rem; }
.font-mono { font-family: var(--font-mono); }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }
.font-semibold { font-weight: 600; }
.uppercase { text-transform: uppercase; }
.tracking-tight { letter-spacing: -0.025em; }
.tracking-wider { letter-spacing: 0.05em; }
.tracking-widest { letter-spacing: 0.1em; }
.leading-relaxed { line-height: 1.625; }
.leading-snug { line-height: 1.375; }
.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }
.text-5xl { font-size: 3rem; }
.text-6xl { font-size: 3.75rem; }
.text-7xl { font-size: 4.5rem; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-white { color: #ffffff; }
.text-slate-200 { color: #e2e8f0; }
.text-slate-300 { color: #cbd5e1; }
.text-slate-400 { color: #94a3b8; }
.text-slate-600 { color: #475569; }
.text-cyan-300 { color: #67e8f9; }
.text-cyan-400 { color: #22d3ee; }
.text-purple-300 { color: #d8b4fe; }
.text-purple-400 { color: #c084fc; }
.text-emerald-300 { color: #6ee7b7; }
.text-emerald-400 { color: #34d399; }
.text-amber-300 { color: #fcd34d; }
.text-amber-400 { color: #fbbf24; }
.text-pink-400 { color: #f472b6; }
.bg-cyan-400 { background-color: #22d3ee; }
.bg-purple-500 { background-color: #a855f7; }
.bg-emerald-400 { background-color: #34d399; }
.bg-amber-400 { background-color: #fbbf24; }
.bg-slate-900 { background-color: #0f172a; }
.bg-slate-950 { background-color: #020617; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-24 { padding-top: 6rem; padding-bottom: 6rem; }
.pt-2 { padding-top: 0.5rem; }
.pt-3 { padding-top: 0.75rem; }
.pt-4 { padding-top: 1rem; }
.pt-6 { padding-top: 1.5rem; }
.pt-8 { padding-top: 2rem; }
.pt-28 { padding-top: 7rem; }
.pb-6 { padding-bottom: 1.5rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.25rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-14 { margin-bottom: 3.5rem; }
.mb-16 { margin-bottom: 4rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-12 { margin-top: 3rem; }
.mt-16 { margin-top: 4rem; }
.mr-1 { margin-right: 0.25rem; }
.mr-1\.5 { margin-right: 0.375rem; }
.mr-2 { margin-right: 0.5rem; }
.ml-1 { margin-left: 0.25rem; }
.ml-2 { margin-left: 0.5rem; }
.border { border-width: 1px; }
.border-t { border-top-width: 1px; }
.border-b { border-bottom-width: 1px; }
.border-white\/5 { border-color: rgba(255, 255, 255, 0.05); }
.border-white\/10 { border-color: rgba(255, 255, 255, 0.1); }
.border-white\/20 { border-color: rgba(255, 255, 255, 0.2); }
.border-cyan-400\/60 { border-color: rgba(34, 211, 238, 0.6); }
.border-cyan-500\/30 { border-color: rgba(6, 182, 212, 0.3); }
.border-cyan-500\/40 { border-color: rgba(6, 182, 212, 0.4); }
.border-purple-500\/30 { border-color: rgba(168, 85, 247, 0.3); }
.border-purple-500\/40 { border-color: rgba(168, 85, 247, 0.4); }
.border-emerald-500\/40 { border-color: rgba(16, 185, 129, 0.4); }
.border-amber-500\/40 { border-color: rgba(245, 158, 11, 0.4); }
.overflow-hidden { overflow: hidden; }
.overflow-y-auto { overflow-y: auto; }
.aspect-square { aspect-ratio: 1 / 1; }
.aspect-video { aspect-ratio: 16 / 9; }
.object-cover { object-fit: cover; }
.object-center { object-position: center; }

/* RESPONSIVE GRID LAYOUTS */
@media (min-width: 640px) {
  .sm\:flex { display: flex; }
  .sm\:inline-flex { display: inline-flex; }
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sm\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sm\:p-8 { padding: 2rem; }
  .sm\:p-10 { padding: 2.5rem; }
  .sm\:text-sm { font-size: 0.875rem; }
  .sm\:text-base { font-size: 1rem; }
  .sm\:text-2xl { font-size: 1.5rem; }
  .sm\:text-3xl { font-size: 1.875rem; }
  .sm\:text-4xl { font-size: 2.25rem; }
  .sm\:text-5xl { font-size: 3rem; }
  .sm\:text-6xl { font-size: 3.75rem; }
}

@media (min-width: 768px) {
  .md\:block { display: block; }
  .md\:flex-row { flex-direction: row; }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  .lg\:flex { display: flex; }
  .lg\:hidden { display: none !important; }
  .lg\:col-span-4 { grid-column: span 4 / span 4; }
  .lg\:col-span-5 { grid-column: span 5 / span 5; }
  .lg\:col-span-7 { grid-column: span 7 / span 7; }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lg\:grid-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .lg\:grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
}

@media (min-width: 1280px) {
  .xl\:text-7xl { font-size: 4.5rem; }
}
