/* ==========================================================================
   Portfolio Styles - Modern Software Developer Website
   Agent 1: Foundation & Core Styles
   ========================================================================== */

/* ==========================================================================
   1. CSS Custom Properties (Variables)
   ========================================================================== */

:root {
  /* ========== Light Mode Colors (Default) ========== */
  --bg-primary: #FAFAFA;
  --bg-secondary: #FFFFFF;
  --bg-tertiary: #F3F4F6;
  
  --text-primary: #1A1A2E;
  --text-secondary: #6B7280;
  --text-muted: #9CA3AF;
  
  --accent-start: #6366F1;
  --accent-end: #8B5CF6;
  --accent-gradient: linear-gradient(135deg, var(--accent-start), var(--accent-end));
  
  --border-color: #E5E7EB;
  --border-light: #F3F4F6;
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  
  --card-bg: var(--bg-secondary);
  --card-border: var(--border-color);
  --card-shadow: var(--shadow-md);
  --card-shadow-hover: var(--shadow-xl);
  
  /* ========== Spacing Scale - Apple-Style (More Breathing Room) ========== */
  --space-xs: 0.25rem;   /* 4px */
  --space-sm: 0.5rem;    /* 8px */
  --space-md: 1rem;      /* 16px */
  --space-lg: 1.5rem;    /* 24px */
  --space-xl: 2rem;      /* 32px */
  --space-2xl: 3rem;     /* 48px */
  --space-3xl: 4rem;     /* 64px */
  --space-4xl: 6rem;     /* 96px */
  --space-5xl: 8rem;     /* 128px - Apple Section Gap */
  --space-6xl: 12rem;    /* 192px - Major Section Gap */
  
  /* ========== Typography - Apple-Style ========== */
  --font-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  --font-display: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', Consolas, Monaco, monospace;
  
  --text-xs: 0.75rem;    /* 12px */
  --text-sm: 0.875rem;   /* 14px */
  --text-base: 1rem;     /* 16px */
  --text-lg: 1.125rem;   /* 18px */
  --text-xl: 1.25rem;    /* 20px */
  --text-2xl: 1.5rem;    /* 24px */
  --text-3xl: 1.875rem;  /* 30px */
  --text-4xl: 2.25rem;   /* 36px */
  --text-5xl: 3rem;      /* 48px */
  --text-6xl: 3.75rem;   /* 60px */
  --text-7xl: 4.5rem;    /* 72px - Apple Hero */
  --text-8xl: 6rem;      /* 96px - Splash Headlines */
  
  --leading-none: 1.0;
  --leading-tight: 1.1;
  --leading-snug: 1.25;
  --leading-normal: 1.5;
  --leading-relaxed: 1.625;
  
  --tracking-tighter: -0.04em;
  --tracking-tight: -0.025em;
  --tracking-normal: 0;
  --tracking-wide: 0.025em;
  
  /* ========== Border Radius ========== */
  --radius-sm: 0.25rem;  /* 4px */
  --radius-md: 0.5rem;   /* 8px */
  --radius-lg: 0.75rem;  /* 12px */
  --radius-xl: 1rem;     /* 16px */
  --radius-2xl: 1.5rem;  /* 24px */
  --radius-full: 9999px;
  
  /* ========== Transitions ========== */
  --transition-fast: 150ms ease;
  --transition-base: 200ms ease;
  --transition-slow: 300ms ease;
  --transition-slower: 500ms ease;
  
  /* ========== Z-Index Scale ========== */
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-fixed: 300;
  --z-modal-backdrop: 400;
  --z-modal: 500;
  --z-popover: 600;
  --z-tooltip: 700;
  
  /* ========== Container ========== */
  --container-max: 1200px;
  --container-padding: var(--space-lg);
}

/* ==========================================================================
   2. Dark Mode Theme
   ========================================================================== */

[data-theme="dark"] {
  --bg-primary: #0F0F1A;
  --bg-secondary: #1A1A2E;
  --bg-tertiary: #252542;
  
  --text-primary: #F9FAFB;
  --text-secondary: #9CA3AF;
  --text-muted: #6B7280;
  
  --accent-start: #818CF8;
  --accent-end: #A78BFA;
  --accent-gradient: linear-gradient(135deg, var(--accent-start), var(--accent-end));
  
  --border-color: #374151;
  --border-light: #1F2937;
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.4), 0 10px 10px -5px rgba(0, 0, 0, 0.3);
  
  --card-bg: var(--bg-secondary);
  --card-border: var(--border-color);
  --card-shadow: var(--shadow-md);
  --card-shadow-hover: var(--shadow-xl);
}

/* ==========================================================================
   3. CSS Reset & Base Styles
   ========================================================================== */

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--text-primary);
  background-color: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color var(--transition-base), color var(--transition-base);
  overflow-x: hidden;
}

/* ==========================================================================
   4. Typography System
   ========================================================================== */

/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--text-primary);
}

h1 {
  font-size: var(--text-5xl);
  margin-bottom: var(--space-lg);
}

h2 {
  font-size: var(--text-4xl);
  margin-bottom: var(--space-md);
}

h3 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-md);
}

h4 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-sm);
}

h5 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-sm);
}

h6 {
  font-size: var(--text-base);
  margin-bottom: var(--space-xs);
}

/* Paragraph & Text */
p {
  margin-bottom: var(--space-md);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
}

.lead {
  font-size: var(--text-xl);
  line-height: var(--leading-relaxed);
  color: var(--text-secondary);
}

.small {
  font-size: var(--text-sm);
}

.muted {
  color: var(--text-muted);
}

/* Links */
a {
  color: var(--accent-start);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--accent-end);
}

/* Lists */
ul, ol {
  margin-bottom: var(--space-md);
  padding-left: var(--space-lg);
}

li {
  margin-bottom: var(--space-xs);
  color: var(--text-secondary);
}

/* Code & Monospace */
code, pre, kbd, samp {
  font-family: var(--font-mono);
  font-size: 0.9em;
}

code {
  background-color: var(--bg-tertiary);
  padding: 0.125rem 0.375rem;
  border-radius: var(--radius-sm);
  color: var(--accent-start);
}

pre {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  overflow-x: auto;
  margin-bottom: var(--space-md);
}

pre code {
  background: none;
  padding: 0;
  color: inherit;
}

/* ==========================================================================
   5. Utility Classes
   ========================================================================== */

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* Text Alignment */
.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }

/* Text Colors */
.text-primary { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }
.text-accent { 
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Font Weights */
.font-light { font-weight: 300; }
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

/* Display */
.hidden { display: none; }
.block { display: block; }
.inline { display: inline; }
.inline-block { display: inline-block; }
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }

/* Flexbox */
.flex-row { flex-direction: row; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-start { align-items: flex-start; }
.items-center { align-items: center; }
.items-end { align-items: flex-end; }
.justify-start { justify-content: flex-start; }
.justify-center { justify-content: center; }
.justify-end { justify-content: flex-end; }
.justify-between { justify-content: space-between; }
.gap-xs { gap: var(--space-xs); }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }
.gap-xl { gap: var(--space-xl); }

/* Spacing */
.m-0 { margin: 0; }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }
.my-md { margin-top: var(--space-md); margin-bottom: var(--space-md); }
.my-lg { margin-top: var(--space-lg); margin-bottom: var(--space-lg); }
.my-xl { margin-top: var(--space-xl); margin-bottom: var(--space-xl); }

.p-0 { padding: 0; }
.p-md { padding: var(--space-md); }
.p-lg { padding: var(--space-lg); }
.p-xl { padding: var(--space-xl); }
.py-md { padding-top: var(--space-md); padding-bottom: var(--space-md); }
.py-lg { padding-top: var(--space-lg); padding-bottom: var(--space-lg); }
.py-xl { padding-top: var(--space-xl); padding-bottom: var(--space-xl); }
.px-md { padding-left: var(--space-md); padding-right: var(--space-md); }
.px-lg { padding-left: var(--space-lg); padding-right: var(--space-lg); }

/* ==========================================================================
   6. Components - Theme Toggle Button
   ========================================================================== */

.theme-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  border-radius: var(--radius-lg);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-base);
}

.theme-toggle:hover {
  background-color: var(--bg-tertiary);
  color: var(--text-primary);
}

.theme-toggle:focus-visible {
  outline: 2px solid var(--accent-start);
  outline-offset: 2px;
}

.theme-toggle svg {
  width: 24px;
  height: 24px;
  transition: transform var(--transition-base);
}

.theme-toggle:hover svg {
  transform: rotate(15deg);
}

/* Sun icon - visible in dark mode */
.theme-toggle .sun-icon {
  display: none;
}

/* Moon icon - visible in light mode */
.theme-toggle .moon-icon {
  display: block;
}

[data-theme="dark"] .theme-toggle .sun-icon {
  display: block;
}

[data-theme="dark"] .theme-toggle .moon-icon {
  display: none;
}

/* ==========================================================================
   7. Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 0.75rem 1.5rem;
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-base);
}

.btn:focus-visible {
  outline: 2px solid var(--accent-start);
  outline-offset: 2px;
}

/* Primary Button - Gradient */
.btn-primary {
  background: var(--accent-gradient);
  color: white;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
  color: white;
}

.btn-primary:active {
  transform: translateY(0);
}

/* Secondary Button - Outlined */
.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 2px solid var(--border-color);
}

.btn-secondary:hover {
  border-color: var(--accent-start);
  color: var(--accent-start);
}

/* Ghost Button */
.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
}

.btn-ghost:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

/* ==========================================================================
   8. Cards
   ========================================================================== */

.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--card-shadow);
  overflow: hidden;
  transition: all var(--transition-slow);
}

.card:hover {
  box-shadow: var(--card-shadow-hover);
  transform: translateY(-4px);
}

.card-body {
  padding: var(--space-lg);
}

.card-title {
  font-size: var(--text-xl);
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.card-description {
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
}

/* ==========================================================================
   9. Tags
   ========================================================================== */

.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  font-size: var(--text-sm);
  font-weight: 500;
  border-radius: var(--radius-full);
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.tag:hover {
  background: var(--accent-start);
  color: white;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

/* ==========================================================================
   10. Responsive Typography
   ========================================================================== */

@media (max-width: 768px) {
  :root {
    --container-padding: var(--space-md);
  }
  
  h1 {
    font-size: var(--text-4xl);
  }
  
  h2 {
    font-size: var(--text-3xl);
  }
  
  h3 {
    font-size: var(--text-xl);
  }
  
  .lead {
    font-size: var(--text-lg);
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: var(--text-3xl);
  }
  
  h2 {
    font-size: var(--text-2xl);
  }
}

/* ==========================================================================
   11. Animations
   ========================================================================== */

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.animate-fade-in {
  animation: fadeIn var(--transition-slower) ease-out forwards;
}

.animate-slide-left {
  animation: slideInLeft var(--transition-slower) ease-out forwards;
}

.animate-slide-right {
  animation: slideInRight var(--transition-slower) ease-out forwards;
}

/* ==========================================================================
   12. Accessibility
   ========================================================================== */

/* Focus visible styles */
:focus-visible {
  outline: 2px solid var(--accent-start);
  outline-offset: 2px;
}

/* 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;
  }
}

/* Screen reader only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  padding: var(--space-md) var(--space-lg);
  background: var(--accent-gradient);
  color: white;
  border-radius: var(--radius-md);
  z-index: var(--z-tooltip);
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: var(--space-md);
}

/* ==========================================================================
   13. Navigation
   ========================================================================== */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-fixed);
  background: rgba(250, 250, 250, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  transition: all var(--transition-base);
}

[data-theme="dark"] .navbar {
  background: rgba(15, 15, 26, 0.85);
}

.navbar.scrolled {
  box-shadow: var(--shadow-md);
}

.navbar.hidden {
  transform: translateY(-100%);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  text-decoration: none;
  font-weight: 700;
  color: var(--text-primary);
}

.nav-logo .logo-text {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--accent-gradient);
  color: white;
  border-radius: var(--radius-md);
  font-size: var(--text-lg);
  font-weight: 700;
}

.nav-logo .logo-full {
  font-size: var(--text-lg);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu .nav-link {
  position: relative;
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: var(--text-base);
  padding: var(--space-sm) 0;
  transition: color var(--transition-fast);
}

.nav-menu .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-gradient);
  transition: width var(--transition-base);
}

.nav-menu .nav-link:hover {
  color: var(--text-primary);
}

.nav-menu .nav-link:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: var(--space-sm);
  background: transparent;
  border: none;
  cursor: pointer;
}

.hamburger-line {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: calc(var(--z-fixed) - 1);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.mobile-menu-overlay.active {
  display: block;
  opacity: 1;
}

/* ==========================================================================
   14. Hero Section
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(70px + var(--space-3xl)) 0 var(--space-3xl);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(99, 102, 241, 0.15), transparent),
    radial-gradient(ellipse 60% 40% at 80% 50%, rgba(139, 92, 246, 0.1), transparent);
}

[data-theme="dark"] .hero-gradient {
  background: 
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(129, 140, 248, 0.2), transparent),
    radial-gradient(ellipse 60% 40% at 80% 50%, rgba(167, 139, 250, 0.15), transparent);
}

.hero-pattern {
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(circle at 1px 1px, var(--border-color) 1px, transparent 0);
  background-size: 40px 40px;
  opacity: 0.5;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.hero-content {
  max-width: 600px;
}

.hero-greeting {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
  font-weight: 500;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, var(--text-6xl));
  margin-bottom: var(--space-md);
  line-height: 1.1;
}

.hero-subtitle {
  font-size: var(--text-2xl);
  color: var(--text-secondary);
  font-weight: 500;
  margin-bottom: var(--space-lg);
}

.hero-description {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
  line-height: var(--leading-relaxed);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
}

/* Hero Code Block */
.hero-visual {
  display: flex;
  justify-content: center;
}

.hero-code-block {
  width: 100%;
  max-width: 420px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
}

.code-header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md);
  background: var(--bg-tertiary);
  border-bottom: 1px solid var(--border-color);
}

.code-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.code-dot.red { background: #FF5F56; }
.code-dot.yellow { background: #FFBD2E; }
.code-dot.green { background: #27CA40; }

.code-filename {
  margin-left: var(--space-sm);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.code-content {
  padding: var(--space-lg);
  margin: 0;
  background: transparent;
  border: none;
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  line-height: 1.7;
  overflow-x: auto;
}

.code-content code {
  background: transparent;
  padding: 0;
  color: var(--text-primary);
}

.code-keyword { color: #C678DD; }
.code-variable { color: #E06C75; }
.code-property { color: #61AFEF; }
.code-string { color: #98C379; }

[data-theme="dark"] .code-keyword { color: #C678DD; }
[data-theme="dark"] .code-variable { color: #E5C07B; }
[data-theme="dark"] .code-property { color: #61AFEF; }
[data-theme="dark"] .code-string { color: #98C379; }

/* ==========================================================================
   14.5 Enhanced Hero Section
   ========================================================================== */

/* Floating Shapes Background */
.floating-shapes {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.6;
  filter: blur(60px);
}

.shape-1 {
  width: 400px;
  height: 400px;
  background: linear-gradient(135deg, var(--accent-start), var(--accent-end));
  top: -10%;
  right: -5%;
  animation: floatShape 20s ease-in-out infinite;
}

.shape-2 {
  width: 300px;
  height: 300px;
  background: linear-gradient(135deg, #06b6d4, #3b82f6);
  bottom: 10%;
  left: -5%;
  animation: floatShape 25s ease-in-out infinite reverse;
}

.shape-3 {
  width: 200px;
  height: 200px;
  background: linear-gradient(135deg, #f472b6, #a855f7);
  top: 40%;
  right: 20%;
  animation: floatShape 18s ease-in-out infinite;
  animation-delay: -5s;
}

.shape-4 {
  width: 150px;
  height: 150px;
  background: linear-gradient(135deg, #22c55e, #10b981);
  bottom: 20%;
  right: 10%;
  animation: floatShape 22s ease-in-out infinite reverse;
  animation-delay: -10s;
}

.shape-5 {
  width: 250px;
  height: 250px;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  top: 60%;
  left: 10%;
  animation: floatShape 28s ease-in-out infinite;
  animation-delay: -15s;
}

@keyframes floatShape {
  0%, 100% {
    transform: translate(0, 0) rotate(0deg);
  }
  25% {
    transform: translate(30px, -30px) rotate(90deg);
  }
  50% {
    transform: translate(0, 20px) rotate(180deg);
  }
  75% {
    transform: translate(-30px, -10px) rotate(270deg);
  }
}

/* Enhanced Hero Content */
.hero-enhanced {
  min-height: 100vh;
}

.hero-content-enhanced {
  animation: slideInFromLeft 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideInFromLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Greeting with Wave */
.hero-greeting-wrapper {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}

.hero-wave {
  font-size: var(--text-2xl);
  animation: wave 2.5s ease-in-out infinite;
  transform-origin: 70% 70%;
  display: inline-block;
}

@keyframes wave {
  0%, 100% { transform: rotate(0deg); }
  10% { transform: rotate(14deg); }
  20% { transform: rotate(-8deg); }
  30% { transform: rotate(14deg); }
  40% { transform: rotate(-4deg); }
  50% { transform: rotate(10deg); }
  60%, 100% { transform: rotate(0deg); }
}

/* Animated Title */
.hero-title-animated {
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Typing Cursor */
.typing-cursor {
  display: inline-block;
  color: var(--accent-start);
  animation: blink 1s step-end infinite;
  font-weight: 300;
  margin-left: 2px;
}

@keyframes blink {
  50% { opacity: 0; }
}

.role-dynamic {
  color: var(--accent-start);
  font-weight: 600;
}

/* Hero Stats */
.hero-stats {
  display: flex;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
  padding: var(--space-lg) 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.4s both;
}

.hero-stat {
  text-align: center;
}

.hero-stat-number {
  display: block;
  font-size: var(--text-3xl);
  font-weight: 700;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.hero-stat-suffix {
  font-size: var(--text-2xl);
  font-weight: 700;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-stat-label {
  font-size: var(--text-sm);
  color: var(--text-muted);
  font-weight: 500;
}

/* Glowing Button */
.btn-glow {
  position: relative;
  overflow: hidden;
}

.btn-glow::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: var(--accent-gradient);
  border-radius: inherit;
  z-index: -1;
  filter: blur(12px);
  opacity: 0.5;
  transition: opacity var(--transition-base);
}

.btn-glow:hover::before {
  opacity: 0.8;
}

/* Glass Button */
.btn-glass {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .btn-glass {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Hero Social Links */
.hero-social {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-xl);
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.6s both;
}

.hero-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-lg);
  color: var(--text-secondary);
  transition: all var(--transition-base);
}

.hero-social-link:hover {
  background: var(--accent-gradient);
  color: white;
  transform: translateY(-4px);
  box-shadow: 0 10px 20px -5px rgba(99, 102, 241, 0.4);
}

/* Enhanced Hero Visual */
.hero-visual-enhanced {
  position: relative;
  animation: slideInFromRight 1s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}

@keyframes slideInFromRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Profile Card 3D */
.profile-card-3d {
  perspective: 1000px;
}

.profile-card-inner {
  position: relative;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-2xl);
  padding: var(--space-xl);
  text-align: center;
  box-shadow: 
    0 25px 50px -12px rgba(0, 0, 0, 0.15),
    0 0 0 1px rgba(255, 255, 255, 0.1) inset;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: visible;
}

[data-theme="dark"] .profile-card-inner {
  background: rgba(26, 26, 46, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.profile-card-inner:hover {
  transform: rotateY(-5deg) rotateX(5deg) translateY(-10px);
}

.profile-card-glow {
  position: absolute;
  inset: -2px;
  background: var(--accent-gradient);
  border-radius: inherit;
  z-index: -2;
  opacity: 0;
  filter: blur(20px);
  transition: opacity var(--transition-slow);
  pointer-events: none;
}

.profile-card-inner:hover .profile-card-glow {
  opacity: 0.5;
}

/* Profile Image in Hero */
.profile-image-hero {
  position: relative;
  width: 180px;
  height: 180px;
  margin: 0 auto var(--space-lg);
  z-index: 1;
  padding: 0;
}

figure.profile-image-hero {
  margin: 0 auto var(--space-lg);
}

.profile-image-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid white;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.2);
  display: block;
  position: relative;
  z-index: 2;
}

.profile-ring {
  position: absolute;
  inset: -8px;
  border: 3px solid transparent;
  border-radius: 50%;
  background: linear-gradient(transparent, transparent) padding-box,
              var(--accent-gradient) border-box;
  animation: rotateRing 8s linear infinite;
  z-index: 1;
  pointer-events: none;
}

@keyframes rotateRing {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.profile-card-info h3 {
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: var(--space-xs);
  color: var(--text-primary);
}

.profile-card-info p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
}

.profile-card-tags {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.profile-card-tags span {
  background: var(--bg-tertiary);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  color: var(--text-secondary);
  font-weight: 500;
}

.profile-card-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid var(--border-light);
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.status-dot {
  width: 10px;
  height: 10px;
  background: #22c55e;
  border-radius: 50%;
  animation: pulse-status 2s ease-in-out infinite;
}

@keyframes pulse-status {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(34, 197, 94, 0);
  }
}

/* Floating Tech Icons */
.floating-tech-icons {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.tech-icon {
  position: absolute;
  font-size: 2rem;
  background: var(--bg-secondary);
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  animation: floatIcon 6s ease-in-out infinite;
}

.tech-icon-1 {
  top: 10%;
  left: -20px;
  animation-delay: 0s;
}

.tech-icon-2 {
  top: 30%;
  right: -20px;
  animation-delay: -1.5s;
}

.tech-icon-3 {
  bottom: 30%;
  left: -30px;
  animation-delay: -3s;
}

.tech-icon-4 {
  bottom: 10%;
  right: -10px;
  animation-delay: -4.5s;
}

@keyframes floatIcon {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-15px) rotate(5deg);
  }
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: var(--space-xl);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  color: var(--text-muted);
  font-size: var(--text-sm);
  font-weight: 500;
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 1s both;
}

.scroll-arrow {
  animation: bounceDown 2s ease-in-out infinite;
}

@keyframes bounceDown {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(8px);
  }
  60% {
    transform: translateY(4px);
  }
}

/* Hero Description Strong Tags */
.hero-description strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* ==========================================================================
   14.6 Hero Responsive Adjustments
   ========================================================================== */

@media (max-width: 768px) {
  .hero-enhanced .container {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }
  
  .hero-visual-enhanced {
    order: -1;
  }
  
  .hero-content-enhanced {
    text-align: center;
  }
  
  .hero-greeting-wrapper {
    justify-content: center;
  }
  
  .hero-stats {
    justify-content: center;
    gap: var(--space-lg);
  }
  
  .hero-cta {
    justify-content: center;
    flex-direction: column;
  }
  
  .hero-cta .btn {
    width: 100%;
    justify-content: center;
  }
  
  .hero-social {
    justify-content: center;
  }
  
  .profile-card-inner {
    padding: var(--space-lg);
  }
  
  .profile-image-hero {
    width: 140px;
    height: 140px;
  }
  
  .floating-tech-icons {
    display: none;
  }
  
  .floating-shapes .shape {
    opacity: 0.3;
  }
  
  .scroll-indicator {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero-stats {
    flex-direction: column;
    gap: var(--space-md);
  }
  
  .hero-stat-number {
    font-size: var(--text-2xl);
  }
  
  .profile-card-tags {
    flex-direction: column;
    gap: var(--space-xs);
  }
}

/* ==========================================================================
   15. Sections
   ========================================================================== */

.section {
  padding: var(--space-5xl) 0;
}

/* Apple-Style Section Variants */
.section-compact {
  padding: var(--space-4xl) 0;
}

.section-spacious {
  padding: var(--space-6xl) 0;
}

.section-light {
  background: var(--bg-primary);
}

.section-dark {
  background: var(--bg-secondary);
}

.section-accent {
  background: var(--accent-gradient);
  color: white;
}

.section-accent .section-title,
.section-accent .section-description {
  color: white;
}

.section-header {
  max-width: 700px;
  margin: 0 auto var(--space-3xl);
  text-align: center;
}

.section-title {
  font-size: var(--text-4xl);
  margin-bottom: var(--space-md);
}

.section-description {
  font-size: var(--text-lg);
  color: var(--text-secondary);
}

/* ==========================================================================
   16. Projects Grid
   ========================================================================== */

.projects-section {
  background: var(--bg-tertiary);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl);
}

.project-card {
  position: relative;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all var(--transition-slow);
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.project-card.featured {
  border-color: var(--accent-start);
}

.project-badge {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  z-index: 10;
  padding: var(--space-xs) var(--space-md);
  background: var(--accent-gradient);
  color: white;
  font-size: var(--text-sm);
  font-weight: 600;
  border-radius: var(--radius-full);
}

.project-image {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-tertiary);
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.project-card:hover .project-image img {
  transform: scale(1.05);
}

.project-image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
}

.placeholder-icon {
  color: var(--text-muted);
}

.project-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-overlay-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: white;
  color: var(--text-primary);
  border-radius: 50%;
  transform: scale(0.8);
  transition: transform var(--transition-base);
}

.project-card:hover .project-overlay-link {
  transform: scale(1);
}

.project-content {
  padding: var(--space-lg);
}

.project-content .project-tags {
  margin-bottom: var(--space-md);
}

.project-content .project-title {
  font-size: var(--text-xl);
  font-weight: 600;
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
}

.project-content .project-description {
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
  line-height: var(--leading-relaxed);
}

.project-content .project-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--accent-start);
  font-weight: 500;
  text-decoration: none;
  transition: gap var(--transition-fast);
}

.project-content .project-link:hover {
  gap: var(--space-md);
}

/* ==========================================================================
   17. Skills Section
   ========================================================================== */

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.skill-category {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  transition: all var(--transition-base);
}

.skill-category:hover {
  border-color: var(--accent-start);
  box-shadow: var(--shadow-lg);
}

.skill-category-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-lg);
  color: var(--accent-start);
  margin-bottom: var(--space-md);
}

.skill-category-title {
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--space-md);
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.skill-tag {
  padding: var(--space-xs) var(--space-sm);
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  font-size: var(--text-sm);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.skill-category:hover .skill-tag {
  background: rgba(99, 102, 241, 0.1);
  color: var(--accent-start);
}

/* ==========================================================================
   18. Contact Section
   ========================================================================== */

.contact-section {
  background: var(--bg-tertiary);
}

.contact-card {
  background: var(--accent-gradient);
  border-radius: var(--radius-2xl);
  padding: var(--space-3xl);
  text-align: center;
}

.contact-content {
  max-width: 600px;
  margin: 0 auto;
}

.contact-title {
  font-size: var(--text-3xl);
  color: white;
  margin-bottom: var(--space-md);
}

.contact-description {
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--space-xl);
}

.contact-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.contact-actions .btn-primary {
  background: white;
  color: var(--accent-start);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.contact-actions .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.contact-actions .btn-secondary {
  background: transparent;
  border-color: white;
  color: white;
}

.contact-actions .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: white;
  color: white;
}

/* ==========================================================================
   19. Footer
   ========================================================================== */

.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: var(--space-3xl) 0 var(--space-xl);
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--space-3xl);
  margin-bottom: var(--space-2xl);
}

.footer-brand {
  max-width: 300px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  text-decoration: none;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
}

.footer-logo .logo-text {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--accent-gradient);
  color: white;
  border-radius: var(--radius-md);
  font-size: var(--text-base);
  font-weight: 700;
}

.footer-tagline {
  color: var(--text-secondary);
  font-size: var(--text-sm);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.footer-heading {
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: var(--space-md);
}

.footer-nav {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-nav li {
  margin-bottom: var(--space-sm);
}

.footer-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: var(--text-sm);
  transition: color var(--transition-fast);
}

.footer-nav a:hover {
  color: var(--accent-start);
}

.footer-social {
  display: flex;
  gap: var(--space-md);
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.social-link:hover {
  background: var(--accent-gradient);
  color: white;
}

.footer-legal {
  display: flex;
  justify-content: center;
  gap: var(--space-xl);
  padding-bottom: var(--space-lg);
}

.footer-legal a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: var(--text-sm);
  transition: color var(--transition-fast);
}

.footer-legal a:hover {
  color: var(--accent-start);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-xl);
  border-top: 1px solid var(--border-color);
}

.footer-copyright,
.footer-credits {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin: 0;
}

/* ==========================================================================
   20. Responsive - Mobile Navigation
   ========================================================================== */

@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 70px;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: calc(100vh - 70px);
    background: var(--bg-secondary);
    flex-direction: column;
    align-items: flex-start;
    padding: var(--space-xl);
    gap: var(--space-md);
    border-left: 1px solid var(--border-color);
    box-shadow: var(--shadow-xl);
    transition: right var(--transition-slow);
    overflow-y: auto;
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-menu .nav-link {
    font-size: var(--text-lg);
    padding: var(--space-md) 0;
    width: 100%;
    border-bottom: 1px solid var(--border-light);
  }

  .nav-logo .logo-full {
    display: none;
  }

  /* Hero Mobile */
  .hero {
    min-height: auto;
    padding: calc(70px + var(--space-2xl)) 0 var(--space-2xl);
  }

  .hero .container {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .hero-content {
    text-align: center;
    max-width: none;
  }

  .hero-cta {
    justify-content: center;
  }

  .hero-visual {
    order: -1;
  }

  .hero-code-block {
    max-width: 100%;
  }

  /* Projects Grid Mobile */
  .projects-grid {
    grid-template-columns: 1fr;
  }

  /* Skills Grid Mobile */
  .skills-grid {
    grid-template-columns: 1fr;
  }

  /* Footer Mobile */
  .footer-content {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .footer-links {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-sm);
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: var(--text-4xl);
  }

  .hero-subtitle {
    font-size: var(--text-xl);
  }

  .section-title {
    font-size: var(--text-3xl);
  }

  .contact-card {
    padding: var(--space-2xl) var(--space-lg);
  }

  .contact-title {
    font-size: var(--text-2xl);
  }

  .footer-links {
    grid-template-columns: 1fr;
  }

  .code-content {
    font-size: var(--text-xs);
    padding: var(--space-md);
  }
}

/* ==========================================================================
   13. Scroll Animations (Agent 5)
   ========================================================================== */

/* Initial hidden state for animated elements */
.animate-hidden {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Visible state after scroll trigger */
.animate-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Different animation variations */
.fade-in-up.animate-hidden {
  transform: translateY(40px);
}

.fade-in-left.animate-hidden {
  transform: translateX(-40px);
}

.fade-in-right.animate-hidden {
  transform: translateX(40px);
}

.fade-in-scale.animate-hidden {
  transform: scale(0.9);
}

.fade-in-left.animate-visible,
.fade-in-right.animate-visible {
  transform: translateX(0);
}

.fade-in-scale.animate-visible {
  transform: scale(1);
}

/* Stagger delay utility classes */
.stagger-1 { transition-delay: 100ms; }
.stagger-2 { transition-delay: 200ms; }
.stagger-3 { transition-delay: 300ms; }
.stagger-4 { transition-delay: 400ms; }
.stagger-5 { transition-delay: 500ms; }

/* ==========================================================================
   14. Enhanced Card Hover Effects (Agent 5)
   ========================================================================== */

/* Base hover lift effect */
.hover-lift {
  transition: transform var(--transition-slow) cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow var(--transition-slow) cubic-bezier(0.34, 1.56, 0.64, 1);
  will-change: transform, box-shadow;
}

.hover-lift:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.25),
              0 8px 16px -8px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .hover-lift:hover {
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.5),
              0 8px 16px -8px rgba(0, 0, 0, 0.3),
              0 0 0 1px rgba(129, 140, 248, 0.2);
}

/* Gradient border effect on hover */
.gradient-border-hover {
  position: relative;
  background: var(--card-bg);
  z-index: 1;
}

.gradient-border-hover::before {
  content: '';
  position: absolute;
  inset: 0;
  padding: 2px;
  border-radius: inherit;
  background: var(--accent-gradient);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--transition-slow);
  z-index: -1;
}

.gradient-border-hover:hover::before {
  opacity: 1;
}

/* Shimmer effect on hover */
.card-shimmer {
  position: relative;
  overflow: hidden;
}

.card-shimmer::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  transition: left 0.5s ease;
}

.card-shimmer:hover::after {
  left: 100%;
}

/* Glow effect for cards */
.card-glow:hover {
  box-shadow: 
    var(--card-shadow-hover),
    0 0 30px -5px var(--accent-start);
}

/* Image zoom effect in cards */
.card-image-zoom {
  overflow: hidden;
}

.card-image-zoom img {
  transition: transform var(--transition-slow) cubic-bezier(0.34, 1.56, 0.64, 1);
}

.card-image-zoom:hover img {
  transform: scale(1.08);
}

/* ==========================================================================
   15. Parallax Effects (Agent 5)
   ========================================================================== */

.parallax-container {
  position: relative;
  overflow: hidden;
  --parallax-offset: 0px;
}

.parallax-container::before {
  content: '';
  position: absolute;
  inset: -50px;
  background: inherit;
  transform: translateY(var(--parallax-offset));
  z-index: -1;
}

.parallax-image {
  transition: transform 0.1s linear;
  will-change: transform;
}

/* Hero parallax background */
.hero-parallax {
  position: relative;
  overflow: hidden;
}

.hero-parallax-bg {
  position: absolute;
  inset: -20%;
  background-size: cover;
  background-position: center;
  transform: translateY(var(--parallax-offset, 0));
  will-change: transform;
}

/* ==========================================================================
   16. Lightbox Styles (Agent 5)
   ========================================================================== */

.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.lightbox-overlay.lightbox-active {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-image {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  opacity: 1;
  transform: scale(1);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.lightbox-image.lightbox-loading {
  opacity: 0;
  transform: scale(0.95);
}

.lightbox-image.lightbox-loaded {
  animation: lightboxFadeIn 0.3s ease forwards;
}

@keyframes lightboxFadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.lightbox-caption {
  color: #fff;
  text-align: center;
  padding: var(--space-md) var(--space-lg);
  max-width: 800px;
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  opacity: 0.9;
}

.lightbox-counter {
  position: absolute;
  top: var(--space-lg);
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: var(--text-sm);
  font-weight: 500;
  background: rgba(0, 0, 0, 0.5);
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-full);
}

/* Lightbox Navigation */
.lightbox-close {
  position: absolute;
  top: var(--space-lg);
  right: var(--space-lg);
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  z-index: 10;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  z-index: 10;
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
  left: var(--space-lg);
}

.lightbox-next {
  right: var(--space-lg);
}

/* Lightbox Thumbnails */
.lightbox-thumbnails {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-md);
  max-width: 90vw;
  overflow-x: auto;
  padding: var(--space-sm);
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

.lightbox-thumbnails::-webkit-scrollbar {
  height: 6px;
}

.lightbox-thumbnails::-webkit-scrollbar-track {
  background: transparent;
}

.lightbox-thumbnails::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
}

.lightbox-thumbnail {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  opacity: 0.6;
  transition: all var(--transition-fast);
  background: none;
}

.lightbox-thumbnail:hover {
  opacity: 0.9;
}

.lightbox-thumbnail.active {
  border-color: var(--accent-start);
  opacity: 1;
}

.lightbox-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Lightbox trigger cursor */
.lightbox-trigger {
  cursor: zoom-in;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.lightbox-trigger:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 25px -5px rgba(0, 0, 0, 0.3);
}

/* Lightbox Mobile Styles */
@media (max-width: 768px) {
  .lightbox-nav {
    width: 44px;
    height: 44px;
  }
  
  .lightbox-prev {
    left: var(--space-sm);
  }
  
  .lightbox-next {
    right: var(--space-sm);
  }
  
  .lightbox-close {
    top: var(--space-md);
    right: var(--space-md);
    width: 44px;
    height: 44px;
  }
  
  .lightbox-caption {
    font-size: var(--text-xs);
    padding: var(--space-sm) var(--space-md);
  }
  
  .lightbox-thumbnail {
    width: 50px;
    height: 50px;
  }
}

/* ==========================================================================
   16.5. Touch Optimization & Mobile Enhancements (Agent 6)
   ========================================================================== */

/* Ensure minimum touch targets of 44px */
.btn,
.btn-primary,
.btn-secondary,
.btn-ghost,
.tag,
.theme-toggle,
.social-link,
.nav-link,
.project-link,
.lightbox-trigger {
  min-height: 44px;
  min-width: 44px;
}

/* Small buttons/tags can have smaller visual size but larger touch area */
.tag {
  position: relative;
  min-height: auto;
  min-width: auto;
}

.tag::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 44px;
  min-width: 44px;
}

/* Touch-friendly spacing */
@media (max-width: 768px) {
  /* Buttons */
  .btn {
    padding: 0.875rem 1.5rem;
    font-size: var(--text-base);
  }
  
  .btn-primary,
  .btn-secondary {
    width: 100%;
    justify-content: center;
  }
  
  .hero-cta {
    flex-direction: column;
    width: 100%;
  }
  
  .hero-cta .btn {
    width: 100%;
  }
  
  /* Cards - larger touch targets */
  .project-card,
  .card,
  .skill-category,
  .feature-card,
  .gallery-item {
    cursor: pointer;
  }
  
  /* Disable hover transforms on touch devices */
  @media (hover: none) {
    .project-card:hover,
    .card:hover,
    .hover-lift:hover {
      transform: none;
    }
    
    .project-card:hover .project-image img {
      transform: none;
    }
    
    .project-card:active,
    .card:active {
      transform: scale(0.98);
    }
  }
  
  /* Better tap feedback */
  .btn:active {
    transform: scale(0.97);
  }
  
  .project-card:active {
    transform: scale(0.99);
  }
}

/* Mobile Menu Overlay */
.mobile-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  top: 60px;
  background: rgba(0, 0, 0, 0.5);
  z-index: calc(var(--z-fixed) - 1);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.mobile-nav-overlay.active {
  display: block;
  opacity: 1;
}

/* Prevent body scroll when mobile menu is open */
body.menu-open {
  overflow: hidden;
}

/* Swipe indicator for galleries on mobile */
@media (max-width: 768px) {
  .gallery-grid::after {
    content: '';
    position: absolute;
    bottom: var(--space-md);
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 4px;
    background: var(--border-color);
    border-radius: var(--radius-full);
    opacity: 0;
  }
  
  /* Scroll snap for horizontal galleries */
  .gallery-grid.horizontal-scroll {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: var(--space-md);
    padding-bottom: var(--space-md);
  }
  
  .gallery-grid.horizontal-scroll .gallery-item {
    flex: 0 0 85%;
    scroll-snap-align: center;
  }
  
  .gallery-grid.horizontal-scroll::after {
    opacity: 1;
  }
}

/* Safe area insets for notched devices */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  .navbar {
    padding-top: env(safe-area-inset-top);
  }
  
  .footer {
    padding-bottom: calc(var(--space-xl) + env(safe-area-inset-bottom));
  }
  
  .navbar-links {
    padding-bottom: env(safe-area-inset-bottom);
  }
}

/* Improved scrollbar for mobile */
@media (max-width: 768px) {
  ::-webkit-scrollbar {
    width: 4px;
    height: 4px;
  }
  
  ::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: var(--radius-full);
  }
  
  ::-webkit-scrollbar-track {
    background: transparent;
  }
}

/* ==========================================================================
   17. Additional Animation Utilities (Agent 5)
   ========================================================================== */

/* Bounce animation */
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

.animate-bounce {
  animation: bounce 2s infinite;
}

/* Pulse glow animation */
@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 5px var(--accent-start), 0 0 10px var(--accent-start);
  }
  50% {
    box-shadow: 0 0 20px var(--accent-start), 0 0 30px var(--accent-end);
  }
}

.animate-pulse-glow {
  animation: pulseGlow 2s ease-in-out infinite;
}

/* Float animation */
@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.animate-float {
  animation: float 3s ease-in-out infinite;
}

/* Rotate animation */
@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.animate-spin {
  animation: rotate 1s linear infinite;
}

.animate-spin-slow {
  animation: rotate 3s linear infinite;
}

/* Scale pulse animation */
@keyframes scalePulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.animate-scale-pulse {
  animation: scalePulse 2s ease-in-out infinite;
}

/* Text gradient animation */
@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.animate-gradient-text {
  background: linear-gradient(
    90deg,
    var(--accent-start),
    var(--accent-end),
    var(--accent-start)
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 3s ease infinite;
}

/* Loading skeleton animation */
@keyframes skeleton {
  0% {
    background-position: -200px 0;
  }
  100% {
    background-position: calc(200px + 100%) 0;
  }
}

.skeleton {
  background: linear-gradient(
    90deg,
    var(--bg-tertiary) 0px,
    var(--bg-secondary) 40px,
    var(--bg-tertiary) 80px
  );
  background-size: 200px 100%;
  animation: skeleton 1.5s ease-in-out infinite;
  border-radius: var(--radius-md);
}
/* ==========================================================================
   13. Navigation Component (Unified for all pages)
   ========================================================================== */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(250, 250, 250, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  z-index: var(--z-fixed);
  transition: background-color var(--transition-base), border-color var(--transition-base);
}

[data-theme="dark"] .navbar {
  background: rgba(15, 15, 26, 0.9);
}

.navbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--space-md) var(--container-padding);
  min-height: 60px;
}

.navbar-logo {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
  /* Touch-friendly size */
  min-height: 44px;
  display: flex;
  align-items: center;
}

.navbar-logo:hover {
  color: var(--accent-start);
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  list-style: none;
  margin: 0;
  padding: 0;
}

.navbar-links li {
  margin: 0;
}

.navbar-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition-fast);
  /* Touch-friendly padding */
  padding: var(--space-sm) var(--space-xs);
  min-height: 44px;
  display: flex;
  align-items: center;
}

.navbar-links a:hover,
.navbar-links a.active {
  color: var(--accent-start);
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

/* Mobile Hamburger for Project Pages */
.navbar-mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: var(--space-sm);
  background: transparent;
  border: none;
  cursor: pointer;
  border-radius: var(--radius-md);
  transition: background-color var(--transition-fast);
}

.navbar-mobile-toggle:hover {
  background: var(--bg-tertiary);
}

.navbar-mobile-toggle .bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
  transform-origin: center;
}

.navbar-mobile-toggle.active .bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.navbar-mobile-toggle.active .bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.navbar-mobile-toggle.active .bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Menu Slide-in for Project Pages */
@media (max-width: 768px) {
  .navbar-mobile-toggle {
    display: flex;
  }
  
  .navbar-links {
    position: fixed;
    top: 60px;
    right: -100%;
    width: 75%;
    max-width: 280px;
    height: calc(100vh - 60px);
    background: var(--bg-secondary);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--space-lg);
    border-left: 1px solid var(--border-color);
    box-shadow: var(--shadow-xl);
    transition: right var(--transition-slow) cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
  }
  
  .navbar-links.active {
    right: 0;
  }
  
  .navbar-links li {
    border-bottom: 1px solid var(--border-light);
  }
  
  .navbar-links li:last-child {
    border-bottom: none;
  }
  
  .navbar-links a {
    padding: var(--space-md);
    font-size: var(--text-lg);
    width: 100%;
    min-height: 52px;
  }
  
  .navbar-links a:hover {
    background: var(--bg-tertiary);
  }
}

/* ==========================================================================
   14. Project Page Template Styles
   ========================================================================== */

/* Project Hero Section */
.project-hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: flex-end;
  padding: var(--space-4xl) 0 var(--space-3xl);
  margin-top: 76px; /* navbar height */
  overflow: hidden;
}

.project-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--bg-primary) 0%, transparent 50%),
              linear-gradient(to top, var(--bg-primary) 0%, transparent 60%);
  z-index: 1;
}

.project-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.4;
  transition: transform 0.3s ease-out;
}

[data-theme="dark"] .project-hero-bg {
  opacity: 0.25;
}

.project-hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.project-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  background: var(--accent-gradient);
  color: white;
  font-size: var(--text-sm);
  font-weight: 600;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-lg);
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4);
}

.project-badge.award {
  background: linear-gradient(135deg, #f59e0b, #eab308);
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.4);
}

.project-hero h1 {
  font-size: var(--text-5xl);
  margin-bottom: var(--space-md);
  max-width: 800px;
}

.project-hero .lead {
  max-width: 600px;
  margin-bottom: var(--space-lg);
}

/* Project Content Sections */
.project-section {
  padding: var(--space-3xl) 0;
}

.project-section:nth-child(even) {
  background: var(--bg-tertiary);
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.section-header h2 {
  margin-bottom: var(--space-sm);
}

.section-header p {
  max-width: 600px;
  margin: 0 auto;
}

/* Description Card */
.description-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  box-shadow: var(--card-shadow);
}

.description-card h3 {
  margin-bottom: var(--space-md);
}

.description-card p {
  line-height: var(--leading-relaxed);
}

.highlight-text {
  color: var(--accent-start);
  font-weight: 600;
}

/* Project Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-lg);
}

.gallery-item {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: all var(--transition-slow);
  cursor: pointer;
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-shadow-hover);
}

.gallery-item img,
.gallery-item video {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
  transition: transform var(--transition-slow);
}

.gallery-item:hover img,
.gallery-item:hover video {
  transform: scale(1.05);
}

.gallery-item-content {
  padding: var(--space-lg);
}

.gallery-item-title {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
}

.gallery-item-caption {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
}

/* Technical Specs Grid */
.specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
}

.spec-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-xl);
  padding: var(--space-lg);
  box-shadow: var(--card-shadow);
  transition: all var(--transition-base);
}

.spec-card:hover {
  border-color: var(--accent-start);
}

.spec-card-header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.spec-icon {
  width: 40px;
  height: 40px;
  background: var(--accent-gradient);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-lg);
}

.spec-card-title {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--text-primary);
}

.spec-card-value {
  font-size: var(--text-lg);
  font-weight: 700;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Stats Cards */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-lg);
}

.stat-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  text-align: center;
  box-shadow: var(--card-shadow);
  transition: all var(--transition-base);
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-shadow-hover);
}

.stat-value {
  font-size: var(--text-4xl);
  font-weight: 700;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--space-xs);
}

.stat-card.award .stat-value {
  background: linear-gradient(135deg, #f59e0b, #eab308);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  font-weight: 500;
}

/* Timeline Component */
.timeline {
  position: relative;
  padding-left: var(--space-2xl);
  margin-left: var(--space-sm);
}

.timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border-color);
}

.timeline-item {
  position: relative;
  padding-bottom: var(--space-xl);
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-marker {
  position: absolute;
  left: calc(-1 * var(--space-2xl) - var(--space-sm) + 7px);
  top: 4px;
  width: 16px;
  height: 16px;
  background: var(--accent-gradient);
  border-radius: var(--radius-full);
  box-shadow: 0 0 0 4px var(--bg-primary);
  transform: translateX(-50%);
}

.timeline-content {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--card-shadow);
}

.timeline-title {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.timeline-description {
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
}

/* Feature/Upgrade Cards */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: var(--space-lg);
}

.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: all var(--transition-slow);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-shadow-hover);
  border-color: var(--accent-start);
}

.feature-card-header {
  background: var(--bg-tertiary);
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid var(--card-border);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.feature-card-icon {
  font-size: var(--text-xl);
}

.feature-card-label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
}

.feature-card-body {
  padding: var(--space-lg);
}

.feature-card-title {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.feature-card-description {
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-md);
}

.feature-card-highlight {
  background: var(--bg-tertiary);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  font-size: var(--text-sm);
}

.feature-card-highlight strong {
  color: var(--accent-start);
}

/* Comparison Table */
.comparison-table {
  width: 100%;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--card-shadow);
}

.comparison-table table {
  width: 100%;
  border-collapse: collapse;
}

.comparison-table th,
.comparison-table td {
  padding: var(--space-md) var(--space-lg);
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.comparison-table th {
  background: var(--bg-tertiary);
  font-weight: 600;
  color: var(--text-primary);
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

.comparison-table .stock {
  color: var(--text-muted);
}

.comparison-table .custom {
  color: var(--accent-start);
  font-weight: 600;
}

/* Code Block */
.code-block {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  overflow-x: auto;
  position: relative;
}

.code-block::before {
  content: attr(data-language);
  position: absolute;
  top: var(--space-sm);
  right: var(--space-md);
  font-size: var(--text-xs);
  color: var(--text-muted);
  text-transform: uppercase;
}

.code-block code {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--text-primary);
  line-height: 1.6;
}

.code-block .keyword { color: #c678dd; }
.code-block .string { color: #98c379; }
.code-block .comment { color: var(--text-muted); }
.code-block .function { color: #61afef; }

[data-theme="dark"] .code-block .keyword { color: #c792ea; }
[data-theme="dark"] .code-block .string { color: #c3e88d; }
[data-theme="dark"] .code-block .function { color: #82aaff; }

/* Project Navigation */
.project-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-2xl) 0;
  border-top: 1px solid var(--border-color);
  margin-top: var(--space-2xl);
}

.project-nav-item {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.project-nav-item:hover {
  transform: translateX(4px);
}

.project-nav-item.prev:hover {
  transform: translateX(-4px);
}

.project-nav-label {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.project-nav-title {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--text-primary);
}

.project-nav-item:hover .project-nav-title {
  color: var(--accent-start);
}

/* Footer */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: var(--space-2xl) 0;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.footer-text {
  color: var(--text-muted);
  font-size: var(--text-sm);
}

.footer-links {
  display: flex;
  gap: var(--space-lg);
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: var(--text-sm);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--accent-start);
}

/* ==========================================================================
   15. Project Page Responsive Styles (Agent 6 Enhanced)
   ========================================================================== */

@media (max-width: 768px) {
  /* Project Hero Mobile */
  .project-hero {
    min-height: 50vh;
    padding: var(--space-3xl) 0 var(--space-2xl);
    margin-top: 60px;
  }

  .project-hero h1 {
    font-size: var(--text-3xl);
    line-height: 1.2;
  }
  
  .project-hero .lead {
    font-size: var(--text-base);
  }
  
  .project-hero .tags {
    justify-content: flex-start;
  }
  
  .project-hero-content {
    padding: 0 var(--space-md);
  }

  /* Features Grid Mobile */
  .features-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
  
  .feature-card-body {
    padding: var(--space-md);
  }
  
  .feature-card-title {
    font-size: var(--text-base);
  }

  /* Gallery Grid Mobile */
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
  
  .gallery-item img,
  .gallery-item video {
    height: 200px;
  }
  
  .gallery-item-content {
    padding: var(--space-md);
  }

  /* Stats Grid Mobile */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
  }
  
  .stat-card {
    padding: var(--space-lg);
  }
  
  .stat-value {
    font-size: var(--text-3xl);
  }

  /* Specs Grid Mobile */
  .specs-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
  
  .spec-card {
    padding: var(--space-md);
  }

  /* Project Navigation Mobile */
  .project-nav {
    flex-direction: column;
    gap: var(--space-md);
    padding: var(--space-xl) 0;
  }

  .project-nav-item {
    width: 100%;
    text-align: center;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    /* Touch-friendly target */
    min-height: 60px;
  }
  
  .project-nav-item:hover {
    transform: none;
    border-color: var(--accent-start);
  }
  
  .project-nav-title {
    font-size: var(--text-base);
  }

  /* Footer Mobile */
  .footer-content {
    flex-direction: column;
    gap: var(--space-md);
    text-align: center;
  }
  
  .footer-links {
    flex-direction: column;
    gap: var(--space-sm);
  }
  
  .footer-links a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-sm) var(--space-md);
  }
  
  /* Timeline Mobile */
  .timeline {
    padding-left: var(--space-lg);
  }
  
  .timeline::before {
    left: 8px;
  }
  
  .timeline {
    padding-left: var(--space-xl);
    margin-left: var(--space-xs);
  }
  
  .timeline::before {
    left: 7px;
  }
  
  .timeline-item {
    padding-bottom: var(--space-lg);
  }
  
  .timeline-marker {
    left: calc(-1 * var(--space-xl) - var(--space-xs) + 7px);
  }
  
  .timeline-content {
    padding: var(--space-md);
  }
  
  .timeline-title {
    font-size: var(--text-base);
  }
  
  /* Description Card Mobile */
  .description-card {
    padding: var(--space-lg);
  }
  
  .description-card h3 {
    font-size: var(--text-xl);
  }
  
  /* Comparison Table Mobile */
  .comparison-table {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  .comparison-table table {
    min-width: 500px;
  }
  
  /* Code Block Mobile */
  .code-block {
    padding: var(--space-md);
    font-size: var(--text-xs);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  /* Section Header Mobile */
  .section-header {
    margin-bottom: var(--space-xl);
    padding: 0 var(--space-sm);
  }
  
  .section-header h2 {
    font-size: var(--text-2xl);
  }
  
  .section-header p {
    font-size: var(--text-base);
  }
  
  /* Project Section Mobile */
  .project-section {
    padding: var(--space-2xl) 0;
  }
}

@media (max-width: 480px) {
  /* Extra Small Mobile Adjustments */
  .project-hero {
    min-height: 45vh;
    padding: var(--space-2xl) 0;
  }
  
  .project-hero h1 {
    font-size: var(--text-2xl);
  }
  
  .project-hero .lead {
    font-size: var(--text-sm);
  }
  
  .project-badge {
    font-size: var(--text-xs);
    padding: var(--space-xs) var(--space-sm);
  }
  
  .tags {
    gap: var(--space-xs);
  }
  
  .tag {
    font-size: var(--text-xs);
    padding: 0.2rem 0.5rem;
  }

  /* Stats Grid Extra Small */
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .stat-value {
    font-size: var(--text-2xl);
  }

  /* Comparison Table Extra Small */
  .comparison-table th,
  .comparison-table td {
    padding: var(--space-sm) var(--space-md);
    font-size: var(--text-sm);
  }
  
  /* Feature Card Extra Small */
  .feature-card-header {
    padding: var(--space-sm) var(--space-md);
  }
  
  .feature-card-icon {
    font-size: var(--text-base);
  }
  
  .feature-card-highlight {
    font-size: var(--text-xs);
    padding: var(--space-sm);
  }
  
  /* Description Card Extra Small */
  .description-card {
    padding: var(--space-md);
  }
  
  .description-card h3 {
    font-size: var(--text-lg);
  }
  
  .description-card p {
    font-size: var(--text-sm);
  }
  
  /* Gallery Item Extra Small */
  .gallery-item img,
  .gallery-item video {
    height: 180px;
  }
  
  .gallery-item-title {
    font-size: var(--text-xs);
  }
  
  .gallery-item-caption {
    font-size: var(--text-xs);
  }
}

/* ==========================================================================
   21. Project Tabs & Panels
   ========================================================================== */

/* Tab Navigation */
.project-tabs {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
  padding: var(--space-sm);
  background: var(--bg-secondary);
  border-radius: var(--radius-xl);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  position: sticky;
  top: 80px;
  z-index: 50;
  backdrop-filter: blur(12px);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-md);
}

.project-tabs::-webkit-scrollbar {
  display: none;
}

.project-tab {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-lg);
  background: transparent;
  border: none;
  border-radius: var(--radius-lg);
  font-family: inherit;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
  flex-shrink: 0;
}

.project-tab:hover {
  color: var(--text-primary);
  background: var(--bg-tertiary);
}

.project-tab.active {
  background: var(--card-bg);
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}

/* Tab category colors on active */
.project-tab[data-category="commercial"].active {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(239, 68, 68, 0.1));
  color: #f59e0b;
}

.project-tab[data-category="research"].active {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.15), rgba(16, 185, 129, 0.1));
  color: #22c55e;
}

.project-tab[data-category="uni"].active {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(6, 182, 212, 0.1));
  color: #3b82f6;
}

.project-tab[data-category="hobby"].active {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(236, 72, 153, 0.1));
  color: #8b5cf6;
}

.project-tab svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Panel Container */
.project-panels {
  display: flex;
  flex-direction: column;
  gap: var(--space-3xl);
}

.project-panel {
  scroll-margin-top: 140px;
  opacity: 0.4;
  transform: scale(0.98);
  transition: all 0.4s ease-out;
}

.project-panel.active {
  opacity: 1;
  transform: scale(1);
}

/* Panel Header */
.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--card-border);
}

.panel-info h3 {
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
}

.panel-info p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin: 0;
}

.panel-count {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text-tertiary);
  padding: var(--space-xs) var(--space-sm);
  background: var(--bg-tertiary);
  border-radius: var(--radius-full);
  white-space: nowrap;
}

/* Featured Project Card */
.project-card.featured {
  border: 2px solid transparent;
  background: 
    linear-gradient(var(--card-bg), var(--card-bg)) padding-box,
    linear-gradient(135deg, #f59e0b, #ef4444) border-box;
}

.project-card.featured::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.03), transparent);
  border-radius: inherit;
  pointer-events: none;
}

/* Mobile Responsive Tabs */
@media (max-width: 768px) {
  .project-tabs {
    gap: var(--space-xs);
    padding: var(--space-xs);
    margin-left: calc(-1 * var(--space-lg));
    margin-right: calc(-1 * var(--space-lg));
    padding-left: var(--space-lg);
    padding-right: var(--space-lg);
    border-radius: 0;
    background: transparent;
  }
  
  .project-tab {
    padding: var(--space-sm) var(--space-md);
    font-size: var(--text-xs);
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
  }
  
  .project-tab span {
    display: none;
  }
  
  .project-tab.active span {
    display: inline;
  }
  
  .panel-header {
    flex-direction: column;
    gap: var(--space-sm);
  }
  
  .panel-count {
    align-self: flex-start;
  }
}

/* In Development Badge */
.project-status-badge {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  z-index: 10;
  padding: var(--space-xs) var(--space-sm);
  font-size: var(--text-xs);
  font-weight: 600;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.project-status-badge.in-development {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.project-status-badge .status-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  animation: pulse-status 2s ease-in-out infinite;
}

/* Project Badges Container (for hero sections) */
.project-badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.project-badge.in-dev {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.3);
  box-shadow: none;
}

/* Category Section Responsive */
@media (max-width: 768px) {
  .project-categories {
    gap: var(--space-2xl);
  }
  
  .category-header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-sm);
    padding-bottom: var(--space-sm);
  }
  
  .category-icon {
    width: 40px;
    height: 40px;
    font-size: var(--text-lg);
  }
  
  .category-title {
    font-size: var(--text-xl);
  }
  
  .category-subtitle {
    font-size: var(--text-xs);
  }
}

/* ==========================================================================
   22. Project Card with Placeholder (for projects without images)
   ========================================================================== */

.project-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--bg-tertiary);
  color: var(--text-muted);
  gap: var(--space-md);
}

.project-image-placeholder .placeholder-icon {
  font-size: 3rem;
  opacity: 0.6;
}

.project-image-placeholder .placeholder-text {
  font-size: var(--text-sm);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Tech Stack Tags in Project Card */
.project-tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-top: var(--space-sm);
}

.tech-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 0.2rem 0.5rem;
  font-size: var(--text-xs);
  font-weight: 500;
  border-radius: var(--radius-sm);
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  border: 1px solid var(--border-light);
}

.tech-tag svg {
  width: 12px;
  height: 12px;
}

/* Commercial Project Special Styling */
.project-card.commercial-highlight {
  border: 2px solid transparent;
  background: 
    linear-gradient(var(--card-bg), var(--card-bg)) padding-box,
    linear-gradient(135deg, #f59e0b, #ef4444) border-box;
}

.project-card.commercial-highlight:hover {
  box-shadow: 
    var(--shadow-xl),
    0 0 30px -10px rgba(245, 158, 11, 0.3);
}

/* ==========================================================================
   22b. Hero Tagline Large
   ========================================================================== */

.hero-tagline-large {
  font-family: var(--font-display);
  font-size: clamp(var(--text-2xl), 4vw, var(--text-4xl));
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
  letter-spacing: var(--tracking-tight);
  line-height: var(--leading-tight);
}

/* Hero Roles (Gründer • Softwareentwickler • Student • Maker) */
.hero-roles {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: var(--space-xs);
  font-size: clamp(var(--text-base), 2vw, var(--text-lg));
  margin-bottom: var(--space-xl);
}

.hero-roles .role {
  font-weight: 500;
  color: var(--text-primary);
  background: linear-gradient(135deg, var(--accent-start), var(--accent-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-roles .role-separator {
  color: var(--text-muted);
  font-weight: 300;
  margin: 0 var(--space-2xs);
}

@media (max-width: 768px) {
  .hero-roles {
    justify-content: center;
    font-size: var(--text-sm);
  }

  .hero-roles .role-separator {
    margin: 0 var(--space-3xs);
  }
}

.hero-profile-image {
  position: relative;
  width: 280px;
  height: 280px;
  border-radius: var(--radius-full);
  overflow: hidden;
  box-shadow: 
    0 25px 50px -12px rgba(0, 0, 0, 0.25),
    0 0 0 1px var(--border-light);
}

.hero-profile-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.hero-profile-image:hover img {
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .hero-profile-image {
    width: 200px;
    height: 200px;
  }
  
  .hero-tagline-large {
    font-size: var(--text-xl);
  }
}

/* ==========================================================================
   22c. Philosophy Section
   ========================================================================== */

.philosophy-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.philosophy-title {
  font-family: var(--font-display);
  font-size: clamp(var(--text-3xl), 5vw, var(--text-5xl));
  font-weight: 700;
  letter-spacing: var(--tracking-tight);
  line-height: var(--leading-tight);
  color: var(--text-primary);
  margin-bottom: var(--space-xl);
}

.philosophy-text {
  font-size: clamp(var(--text-lg), 2vw, var(--text-xl));
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
  font-weight: 400;
}

/* ==========================================================================
   23. Apple-Style Hero with Video Background
   ========================================================================== */

.hero-apple {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--bg-primary);
}

/* Video Background Container */
.hero-video-container {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-video-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
}

[data-theme="dark"] .hero-video-container video {
  opacity: 0.25;
}

.hero-video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(var(--bg-primary-rgb, 250, 250, 250), 0.3) 0%,
    rgba(var(--bg-primary-rgb, 250, 250, 250), 0.6) 50%,
    rgba(var(--bg-primary-rgb, 250, 250, 250), 0.95) 100%
  );
}

[data-theme="dark"] .hero-video-overlay {
  background: linear-gradient(
    to bottom,
    rgba(15, 15, 26, 0.3) 0%,
    rgba(15, 15, 26, 0.6) 50%,
    rgba(15, 15, 26, 0.95) 100%
  );
}

/* Centered Hero Content */
.hero-content-centered {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 900px;
  padding: 0 var(--container-padding);
}

.hero-apple .hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 8vw, var(--text-7xl));
  font-weight: 700;
  letter-spacing: var(--tracking-tighter);
  line-height: var(--leading-none);
  margin-bottom: var(--space-lg);
  color: var(--text-primary);
}

.hero-apple .hero-subtitle {
  font-size: clamp(var(--text-lg), 3vw, var(--text-2xl));
  color: var(--text-secondary);
  font-weight: 400;
  margin-bottom: var(--space-xl);
  line-height: var(--leading-snug);
}

.hero-apple .hero-tagline {
  font-size: var(--text-xl);
  font-weight: 600;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--space-2xl);
}

/* Hero CTA Buttons - Apple Style */
.hero-cta-apple {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.hero-cta-apple .btn {
  padding: 1rem 2rem;
  font-size: var(--text-lg);
  border-radius: var(--radius-full);
  font-weight: 500;
}

/* Apple-Style Scroll Indicator */
.scroll-indicator-apple {
  position: absolute;
  bottom: var(--space-2xl);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  color: var(--text-muted);
  font-size: var(--text-sm);
  animation: fadeInUp 1s ease 1.5s both;
}

.scroll-indicator-apple .scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--accent-start), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% {
    opacity: 1;
    transform: scaleY(1);
  }
  50% {
    opacity: 0.5;
    transform: scaleY(0.8);
  }
}

/* Hero Stats Bar */
.hero-stats-bar {
  display: flex;
  justify-content: center;
  gap: var(--space-3xl);
  margin-top: var(--space-3xl);
  padding-top: var(--space-2xl);
  border-top: 1px solid var(--border-light);
}

.hero-stat-apple {
  text-align: center;
}

.hero-stat-apple .stat-number {
  display: block;
  font-size: var(--text-4xl);
  font-weight: 700;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}

.hero-stat-apple .stat-label {
  font-size: var(--text-sm);
  color: var(--text-muted);
  font-weight: 500;
  margin-top: var(--space-xs);
}

/* Responsive Hero */
@media (max-width: 768px) {
  .hero-apple {
    min-height: 90vh;
    padding-top: 80px;
  }
  
  .hero-content-centered {
    padding: 0 var(--space-lg);
  }
  
  .hero-apple .hero-title {
    font-size: clamp(2rem, 10vw, 3rem);
  }
  
  .hero-stats-bar {
    flex-direction: column;
    gap: var(--space-lg);
    align-items: center;
  }
  
  .hero-cta-apple {
    flex-direction: column;
  }
  
  .hero-cta-apple .btn {
    width: 100%;
    justify-content: center;
  }
  
  .scroll-indicator-apple {
    display: none;
  }
}

/* ==========================================================================
   24. Apple-Style Project Showcases (Fullscreen Sections)
   ========================================================================== */

.project-showcase {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: var(--space-4xl) 0;
}

.project-showcase:nth-child(odd) {
  background: var(--bg-primary);
}

.project-showcase:nth-child(even) {
  background: var(--bg-secondary);
}

.showcase-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
  align-items: center;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.project-showcase:nth-child(even) .showcase-container {
  direction: rtl;
}

.project-showcase:nth-child(even) .showcase-container > * {
  direction: ltr;
}

/* Showcase Media */
.showcase-media {
  position: relative;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  aspect-ratio: 16 / 10;
}

.showcase-media video,
.showcase-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.showcase-media:hover video,
.showcase-media:hover img {
  transform: scale(1.03);
}

/* Video Play Button Overlay */
.showcase-media .play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.showcase-media:hover .play-overlay {
  opacity: 1;
}

.play-button {
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  transition: transform var(--transition-base);
}

.play-button:hover {
  transform: scale(1.1);
}

.play-button svg {
  width: 32px;
  height: 32px;
  margin-left: 4px;
  color: var(--accent-start);
}

/* Showcase Content */
.showcase-content {
  padding: var(--space-xl) 0;
}

.showcase-label {
  display: inline-block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--accent-start);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-md);
}

.showcase-title {
  font-family: var(--font-display);
  font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl));
  font-weight: 700;
  letter-spacing: var(--tracking-tight);
  line-height: var(--leading-tight);
  color: var(--text-primary);
  margin-bottom: var(--space-lg);
}

.showcase-tagline {
  font-size: var(--text-2xl);
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
  line-height: var(--leading-relaxed);
}

.showcase-description {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-xl);
}

/* Showcase Stats */
.showcase-stats {
  display: flex;
  gap: var(--space-2xl);
  margin-bottom: var(--space-xl);
  padding: var(--space-lg) 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.showcase-stat {
  text-align: left;
}

.showcase-stat .stat-value {
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
}

.showcase-stat .stat-label {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-top: var(--space-xs);
}

/* Showcase CTA */
.showcase-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--accent-start);
  text-decoration: none;
  transition: gap var(--transition-fast);
}

.showcase-cta:hover {
  gap: var(--space-md);
}

.showcase-cta svg {
  width: 20px;
  height: 20px;
  transition: transform var(--transition-fast);
}

.showcase-cta:hover svg {
  transform: translateX(4px);
}

/* Responsive Showcase */
@media (max-width: 968px) {
  .project-showcase {
    min-height: auto;
    padding: var(--space-3xl) 0;
  }
  
  .showcase-container {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }
  
  .project-showcase:nth-child(even) .showcase-container {
    direction: ltr;
  }
  
  .showcase-media {
    aspect-ratio: 16 / 9;
  }
  
  .showcase-stats {
    flex-wrap: wrap;
    gap: var(--space-lg);
  }
}

/* ==========================================================================
   25. Apple-Style Stats Display
   ========================================================================== */

.stats-apple {
  display: flex;
  justify-content: center;
  gap: var(--space-4xl);
  padding: var(--space-4xl) 0;
}

.stat-item-apple {
  text-align: center;
}

.stat-item-apple .stat-number {
  font-family: var(--font-display);
  font-size: clamp(var(--text-5xl), 8vw, var(--text-8xl));
  font-weight: 700;
  letter-spacing: var(--tracking-tighter);
  line-height: 1;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-item-apple .stat-unit {
  font-size: var(--text-2xl);
  font-weight: 500;
  color: var(--text-secondary);
  margin-left: var(--space-xs);
}

.stat-item-apple .stat-label {
  font-size: var(--text-base);
  color: var(--text-muted);
  margin-top: var(--space-sm);
  font-weight: 500;
}

@media (max-width: 768px) {
  .stats-apple {
    flex-direction: column;
    gap: var(--space-2xl);
    padding: var(--space-2xl) 0;
  }
  
  .stat-item-apple .stat-number {
    font-size: var(--text-5xl);
  }
}

/* ==========================================================================
   26. Apple-Style Animations & Keyframes
   ========================================================================== */

/* Showcase Slide-in Animation */
@keyframes showcaseSlideIn {
  from {
    opacity: 0;
    transform: translateY(60px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes showcaseFadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Initial hidden state for showcases */
.project-showcase .showcase-media,
.project-showcase .showcase-content {
  opacity: 0;
}

.project-showcase.showcase-visible .showcase-media,
.project-showcase.showcase-visible .showcase-content {
  opacity: 1;
}

.showcase-stat {
  opacity: 0;
}

/* Staggered reveal support */
[data-reveal-group] > * {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: calc(var(--stagger-index, 0) * 100ms);
}

[data-reveal-group].visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* Enhanced animate-hidden/visible states */
.animate-hidden {
  opacity: 0;
  transform: translateY(40px);
}

.animate-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Scale-up effect for hero elements */
.hero-apple .hero-content-centered {
  animation: heroFadeIn 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}

@keyframes heroFadeIn {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Hero stats animation */
.hero-stats-bar {
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.8s both;
}

.hero-stat-apple {
  opacity: 0;
  animation: showcaseFadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-stat-apple:nth-child(1) { animation-delay: 1s; }
.hero-stat-apple:nth-child(2) { animation-delay: 1.1s; }
.hero-stat-apple:nth-child(3) { animation-delay: 1.2s; }

/* CTA buttons animation */
.hero-cta-apple {
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 1.3s both;
}

/* Scroll indicator animation */
.scroll-indicator-apple {
  animation: fadeInUp 1s ease 1.8s both;
}

/* Smooth video loading */
.hero-video-container video {
  transition: opacity 0.5s ease;
}

/* ==========================================================================
   27. Sticky Scroll Sections
   ========================================================================== */

.sticky-showcase {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.sticky-content-track {
  position: relative;
  z-index: 1;
}

/* Sticky Section Navigation (for project pages) */
.project-section-nav {
  position: sticky;
  top: 80px;
  z-index: var(--z-sticky);
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-light);
  padding: var(--space-md) 0;
  margin-bottom: var(--space-2xl);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.project-section-nav-inner {
  display: flex;
  justify-content: center;
  gap: var(--space-lg);
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.project-section-nav-inner::-webkit-scrollbar {
  display: none;
}

.project-section-nav a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: var(--text-sm);
  font-weight: 500;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-full);
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.project-section-nav a:hover {
  color: var(--text-primary);
  background: var(--bg-tertiary);
}

.project-section-nav a.active {
  color: white;
  background: var(--accent-gradient);
}

@media (max-width: 768px) {
  .project-section-nav {
    top: 60px;
    padding: var(--space-sm) 0;
  }
  
  .project-section-nav-inner {
    gap: var(--space-sm);
    justify-content: flex-start;
    padding: 0 var(--space-md);
  }
  
  .project-section-nav a {
    font-size: var(--text-xs);
    padding: var(--space-xs) var(--space-sm);
  }
}

/* ==========================================================================
   28. Project Page Video Heroes
   ========================================================================== */

.project-hero-video {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  background: var(--bg-secondary);
}

.project-hero-video .hero-video-container {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.project-hero-video .hero-video-container video,
.project-hero-video .hero-video-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
}

[data-theme="dark"] .project-hero-video .hero-video-container video,
[data-theme="dark"] .project-hero-video .hero-video-container img {
  opacity: 0.35;
}

.project-hero-video .hero-video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(var(--bg-primary-rgb, 250, 250, 250), 0) 0%,
    rgba(var(--bg-primary-rgb, 250, 250, 250), 0.5) 60%,
    rgba(var(--bg-primary-rgb, 250, 250, 250), 1) 100%
  );
}

[data-theme="dark"] .project-hero-video .hero-video-overlay {
  background: linear-gradient(
    to bottom,
    rgba(15, 15, 26, 0) 0%,
    rgba(15, 15, 26, 0.5) 60%,
    rgba(15, 15, 26, 1) 100%
  );
}

.project-hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 900px;
  padding: var(--space-4xl) var(--container-padding);
}

.project-hero-label {
  display: inline-block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--accent-start);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-md);
  animation: fadeInUp 0.8s ease 0.2s both;
}

.project-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, var(--text-7xl));
  font-weight: 700;
  letter-spacing: var(--tracking-tighter);
  line-height: var(--leading-none);
  color: var(--text-primary);
  margin-bottom: var(--space-lg);
  animation: fadeInUp 0.8s ease 0.3s both;
}

.project-hero-tagline {
  font-size: clamp(var(--text-lg), 2.5vw, var(--text-2xl));
  color: var(--text-secondary);
  font-weight: 400;
  margin-bottom: var(--space-xl);
  animation: fadeInUp 0.8s ease 0.4s both;
}

.project-hero-stats {
  display: flex;
  justify-content: center;
  gap: var(--space-3xl);
  margin-top: var(--space-xl);
  animation: fadeInUp 0.8s ease 0.5s both;
}

.project-hero-stat {
  text-align: center;
}

.project-hero-stat .stat-value {
  display: block;
  font-size: var(--text-3xl);
  font-weight: 700;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}

.project-hero-stat .stat-label {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-top: var(--space-xs);
}

@media (max-width: 768px) {
  .project-hero-video {
    min-height: 60vh;
    padding-top: 80px;
  }
  
  .project-hero-content {
    padding: var(--space-2xl) var(--space-lg);
  }
  
  .project-hero-stats {
    flex-wrap: wrap;
    gap: var(--space-lg);
  }
  
  .project-hero-stat .stat-value {
    font-size: var(--text-2xl);
  }
}

/* ==========================================================================
   29. Enhanced Project Gallery
   ========================================================================== */

.gallery-enhanced {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-lg);
  margin: var(--space-2xl) 0;
}

.gallery-item-enhanced {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--bg-tertiary);
}

.gallery-item-enhanced img,
.gallery-item-enhanced video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.gallery-item-enhanced:hover img,
.gallery-item-enhanced:hover video {
  transform: scale(1.05);
}

.gallery-item-enhanced.featured {
  grid-column: span 2;
  aspect-ratio: 16 / 9;
}

.gallery-item-enhanced .play-button-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.gallery-item-enhanced:hover .play-button-overlay {
  opacity: 1;
}

.gallery-item-enhanced .play-button-overlay svg {
  width: 60px;
  height: 60px;
  color: white;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
}

@media (max-width: 768px) {
  .gallery-enhanced {
    grid-template-columns: 1fr;
  }
  
  .gallery-item-enhanced.featured {
    grid-column: span 1;
  }
}

/* ==========================================================================
   30. Page Transitions (View Transitions API)
   ========================================================================== */

/* Page transition animations */
@view-transition {
  navigation: auto;
}

::view-transition-old(root) {
  animation: fade-out 0.3s ease-out forwards;
}

::view-transition-new(root) {
  animation: fade-in 0.3s ease-in forwards;
}

@keyframes fade-out {
  from { opacity: 1; }
  to { opacity: 0; }
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Fallback transition for browsers without View Transitions API */
.page-transitioning {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.page-loaded {
  opacity: 1;
}

/* ==========================================================================
   31. Micro-Interactions
   ========================================================================== */

/* Button Glow Effect */
.btn-primary {
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: var(--accent-gradient);
  border-radius: inherit;
  opacity: 0;
  z-index: -1;
  filter: blur(15px);
  transition: opacity var(--transition-base);
}

.btn-primary:hover::before {
  opacity: 0.6;
}

/* Enhanced Link Underline Animation */
.showcase-cta,
.project-link {
  position: relative;
}

.showcase-cta::after,
.project-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-gradient);
  transition: width var(--transition-base);
}

.showcase-cta:hover::after,
.project-link:hover::after {
  width: 100%;
}

/* Smooth Focus States */
*:focus-visible {
  outline: 2px solid var(--accent-start);
  outline-offset: 4px;
  transition: outline-offset var(--transition-fast);
}

/* Card Shimmer Effect */
@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.project-card::after,
.showcase-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.1) 50%,
    transparent 100%
  );
  transform: translateX(-100%);
  pointer-events: none;
}

.project-card:hover::after,
.showcase-media:hover::after {
  animation: shimmer 0.8s ease forwards;
}

/* Smooth Image Loading */
img {
  transition: opacity var(--transition-base);
}

img[loading="lazy"] {
  opacity: 0;
}

img[loading="lazy"].loaded,
img:not([loading="lazy"]) {
  opacity: 1;
}

/* ==========================================================================
   32. Performance Optimizations
   ========================================================================== */

/* GPU acceleration for animated elements */
.showcase-media,
.hero-video-container video,
.project-card,
.btn,
.animate-hidden,
.animate-visible,
[data-parallax] {
  will-change: transform, opacity;
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* Reduce motion for performance and accessibility */
@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;
  }
  
  .hero-video-container video {
    display: none;
  }
  
  .showcase-media::after,
  .project-card::after {
    display: none;
  }
}

/* Video lazy loading styles */
video[data-lazy] {
  opacity: 0;
  transition: opacity var(--transition-slow);
}

video[data-lazy].loaded {
  opacity: 1;
}

/* Prevent layout shift for images */
.showcase-media,
.gallery-item-enhanced,
.project-image {
  background: var(--bg-tertiary);
  overflow: hidden;
}

/* Smooth font rendering */
body {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   33. Touch Feedback Enhancements
   ========================================================================== */

/* Touch feedback for mobile */
@media (hover: none) and (pointer: coarse) {
  .btn,
  .project-card,
  .showcase-cta {
    -webkit-tap-highlight-color: transparent;
  }
  
  .btn:active {
    transform: scale(0.98);
  }
  
  .project-card:active {
    transform: scale(0.99);
  }
}

/* Haptic-like visual feedback */
.showcase-cta:active,
.btn:active {
  transform: scale(0.97);
  transition: transform 0.1s ease;
}

