/*
==================================================
DOOP STUDIO - MINIMAL DESIGN SYSTEM
==================================================
A clean, professional design system with:
- 5 total colors (warm neutrals + teal + indigo)
- Single font family (Inter)
- Generous spacing
- Minimal shadows
- No gradients
==================================================
*/

/* ============================================
   1. CSS RESET & BASE STYLES
   ============================================ */

:root {
  /* Color Palette - Light Mode (Default) */
  --color-bg-primary: #FAF8F5;        /* Warm beige background */
  --color-bg-secondary: #F5F3F0;      /* Soft gray background */
  --color-bg-white: #FFFFFF;          /* Pure white for cards */

  --color-text-primary: #2B2B2B;      /* Charcoal for body text */
  --color-text-secondary: #6B6B6B;    /* Medium gray for secondary text */
  --color-text-muted: #9B9B9B;        /* Light gray for muted text */

  --color-accent-primary: #0D9488;    /* Professional teal */
  --color-accent-primary-hover: #0F766E; /* Darker teal on hover */
  --color-accent-secondary: #4F46E5;  /* Deep indigo for CTAs */
  --color-accent-secondary-hover: #4338CA; /* Darker indigo on hover */

  --color-border: #E5E3DF;            /* Subtle border color */
  --color-divider: #D1CFC9;           /* Divider lines */

  /* Typography */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --font-size-xs: 0.75rem;      /* 12px */
  --font-size-sm: 0.875rem;     /* 14px */
  --font-size-base: 1rem;       /* 16px */
  --font-size-lg: 1.125rem;     /* 18px */
  --font-size-xl: 1.25rem;      /* 20px */
  --font-size-2xl: 1.5rem;      /* 24px */
  --font-size-3xl: 1.875rem;    /* 30px */
  --font-size-4xl: 2.25rem;     /* 36px */
  --font-size-5xl: 3rem;        /* 48px */
  --font-size-6xl: 3.75rem;     /* 60px */

  --font-weight-normal: 400;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  --line-height-tight: 1.25;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.75;

  /* Spacing Scale (generous white space) */
  --space-1: 0.25rem;   /* 4px */
  --space-2: 0.5rem;    /* 8px */
  --space-3: 0.75rem;   /* 12px */
  --space-4: 1rem;      /* 16px */
  --space-5: 1.25rem;   /* 20px */
  --space-6: 1.5rem;    /* 24px */
  --space-8: 2rem;      /* 32px */
  --space-10: 2.5rem;   /* 40px */
  --space-12: 3rem;     /* 48px */
  --space-16: 4rem;     /* 64px */
  --space-20: 5rem;     /* 80px */
  --space-24: 6rem;     /* 96px */
  --space-32: 8rem;     /* 128px */

  /* Shadows (minimal, only 2 levels) */
  --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);

  /* Border Radius */
  --radius-sm: 0.25rem;   /* 4px */
  --radius-md: 0.5rem;    /* 8px */
  --radius-lg: 0.75rem;   /* 12px */
  --radius-xl: 1rem;      /* 16px */
  --radius-full: 9999px;  /* Fully rounded */

  /* Container */
  --container-max-width: 1200px;
  --container-padding: var(--space-6);

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);

  /* Animation Timings */
  --animation-fast: 200ms;
  --animation-medium: 400ms;
  --animation-slow: 600ms;
  --animation-counter: 1500ms;

  /* Premium Easing Functions */
  --ease-smooth: cubic-bezier(0.45, 0, 0.15, 1);
  --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
  --ease-elastic: cubic-bezier(0.68, -0.15, 0.265, 1.15);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out-smooth: cubic-bezier(0.65, 0, 0.35, 1);

  /* Stagger Delays */
  --stagger-delay: 100ms;
  --stagger-delay-fast: 50ms;
  --stagger-delay-slow: 150ms;
}

/* Dark Mode Colors */
.dark {
  --color-bg-primary: #1A1A1A;
  --color-bg-secondary: #242424;
  --color-bg-white: #2E2E2E;

  --color-text-primary: #F5F3F0;
  --color-text-secondary: #B8B6B0;
  --color-text-muted: #8B8981;

  --color-accent-primary: #14B8A6;
  --color-accent-primary-hover: #0D9488;
  --color-accent-secondary: #6366F1;
  --color-accent-secondary-hover: #4F46E5;

  --color-border: #3A3A3A;
  --color-divider: #4A4A4A;

  --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);
}

/* ============================================
   2. BASE STYLES
   ============================================ */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-normal);
  line-height: var(--line-height-normal);
  color: var(--color-text-primary);
  background-color: var(--color-bg-primary);
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

/* ============================================
   3. TYPOGRAPHY
   ============================================ */

h1, h2, h3, h4, h5, h6 {
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  color: var(--color-text-primary);
  margin-bottom: var(--space-4);
}

h1 {
  font-size: var(--font-size-5xl);
  margin-bottom: var(--space-6);
}

h2 {
  font-size: var(--font-size-4xl);
  margin-bottom: var(--space-5);
}

h3 {
  font-size: var(--font-size-3xl);
}

h4 {
  font-size: var(--font-size-2xl);
}

h5 {
  font-size: var(--font-size-xl);
}

h6 {
  font-size: var(--font-size-lg);
}

p {
  margin-bottom: var(--space-4);
  line-height: var(--line-height-relaxed);
}

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

a:hover {
  color: var(--color-accent-primary-hover);
}

strong, b {
  font-weight: var(--font-weight-semibold);
}

small {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

/* Responsive Typography */
@media (max-width: 768px) {
  h1 { font-size: var(--font-size-4xl); }
  h2 { font-size: var(--font-size-3xl); }
  h3 { font-size: var(--font-size-2xl); }
  h4 { font-size: var(--font-size-xl); }
}

/* ============================================
   4. LAYOUT COMPONENTS
   ============================================ */

.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

.section {
  padding-top: var(--space-20);
  padding-bottom: var(--space-20);
}

/* Reduced spacing for sections following app hero */
.section.section-reduced-top {
  padding-top: var(--space-12);
}

@media (max-width: 768px) {
  .section {
    padding-top: var(--space-16);
    padding-bottom: var(--space-16);
  }
}

/* ============================================
   5. BUTTONS
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-3) var(--space-6);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  line-height: 1;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-normal);
  text-decoration: none;
}

.btn-primary {
  background-color: var(--color-accent-secondary);
  color: white;
}

.btn-primary:hover {
  background-color: var(--color-bg-white);
  color: var(--color-accent-secondary);
  border: 2px solid var(--color-accent-secondary);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-accent-primary);
  border: 2px solid var(--color-accent-primary);
}

.btn-secondary:hover {
  background-color: var(--color-accent-primary);
  color: white;
  transform: translateY(-1px);
}

.btn-large {
  padding: var(--space-4) var(--space-8);
  font-size: var(--font-size-lg);
}

.btn:active {
  transform: translateY(0);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ============================================
   6. CARDS
   ============================================ */

.card {
  background-color: var(--color-bg-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: all var(--transition-normal);
}

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

.card-title {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--space-3);
  color: var(--color-text-primary);
}

.card-description {
  font-size: var(--font-size-base);
  color: var(--color-text-secondary);
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--space-4);
}

/* ============================================
   7. NAVIGATION
   ============================================ */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: var(--color-bg-white);
  border-bottom: 1px solid var(--color-border);
  transition: all var(--transition-normal);
}

.navbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.navbar-logo {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-text-primary);
  text-decoration: none;
}

.navbar-menu {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  list-style: none;
}

.navbar-link {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-normal);
  color: var(--color-text-secondary);
  text-decoration: none;
  position: relative;
  padding-bottom: var(--space-1);
  transition: color var(--transition-fast);
}

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

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

.navbar-link:hover::after {
  width: 100%;
}

.navbar-link.active {
  color: var(--color-text-primary);
}

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

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-2);
}

.mobile-menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-text-primary);
  margin: 5px 0;
  transition: all var(--transition-fast);
}

@media (max-width: 768px) {
  .navbar-menu {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background-color: var(--color-bg-white);
    flex-direction: column;
    align-items: flex-start;
    padding: var(--space-6);
    border-bottom: 1px solid var(--color-border);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
  }

  .navbar-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .mobile-menu-toggle {
    display: block;
  }
}

/* Dark Mode Toggle */
.dark-mode-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-2);
  color: var(--color-text-secondary);
  transition: color var(--transition-fast);
}

.dark-mode-toggle:hover {
  color: var(--color-text-primary);
}

/* ============================================
   8. HERO SECTION
   ============================================ */

.hero {
  padding-top: calc(72px + var(--space-24));
  padding-bottom: var(--space-24);
  min-height: 80vh;
  display: flex;
  align-items: center;
}

/* App-specific hero section with minimal spacing */
.hero.hero-app {
  padding-top: calc(72px + var(--space-12));
  padding-bottom: var(--space-8);
  min-height: auto;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

.hero-text h1 {
  font-size: var(--font-size-6xl);
  line-height: var(--line-height-tight);
  margin-bottom: var(--space-6);
}

.hero-text p {
  font-size: var(--font-size-xl);
  color: var(--color-text-secondary);
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--space-8);
}

.hero-image {
  width: 100%;
  height: auto;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
}

.hero-image.hero-image-flat {
  box-shadow: none;
  border: none;
}

.hero-image.hero-image-flat img {
  box-shadow: none;
}

@media (max-width: 768px) {
  .hero {
    padding-top: calc(72px + var(--space-16));
    padding-bottom: var(--space-16);
    min-height: auto;
  }

  .hero.hero-app {
    padding-top: calc(72px + var(--space-8));
    padding-bottom: var(--space-6);
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .hero-text h1 {
    font-size: var(--font-size-4xl);
  }

  .hero-text p {
    font-size: var(--font-size-lg);
  }

  .section.section-reduced-top {
    padding-top: var(--space-8);
  }
}

/* ============================================
   9. STATISTICS SECTION
   ============================================ */

.stats-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-8);
  padding: var(--space-12) 0;
}

.stat-item {
  text-align: center;
  padding: var(--space-6);
  border-right: 1px solid var(--color-divider);
}

.stat-item:last-child {
  border-right: none;
}

.stat-number {
  font-size: var(--font-size-5xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-accent-primary);
  line-height: 1;
  margin-bottom: var(--space-2);
}

.stat-label {
  font-size: var(--font-size-base);
  color: var(--color-text-secondary);
  font-weight: var(--font-weight-normal);
}

@media (max-width: 768px) {
  .stats-container {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
  }

  .stat-item {
    border-right: none;
    border-bottom: 1px solid var(--color-divider);
    padding: var(--space-4);
  }

  .stat-item:nth-child(n+3) {
    border-bottom: none;
  }
}

/* ============================================
   10. GRID LAYOUTS
   ============================================ */

.grid {
  display: grid;
  gap: var(--space-8);
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

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

@media (max-width: 768px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   11. FOOTER
   ============================================ */

.footer {
  background-color: var(--color-bg-primary);
  border-top: 1px solid var(--color-border);
  padding: var(--space-16) 0 var(--space-8) 0;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-12);
  margin-bottom: var(--space-12);
}

.footer-section h3 {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--space-4);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: var(--space-3);
}

.footer-links a {
  color: var(--color-text-secondary);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--color-accent-primary);
}

.footer-bottom {
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-divider);
  text-align: center;
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
}

@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
}

/* ============================================
   12. UTILITY CLASSES
   ============================================ */

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

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

.mb-2 { margin-bottom: var(--space-2); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }
.mb-12 { margin-bottom: var(--space-12); }

.mt-2 { margin-top: var(--space-2); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mt-12 { margin-top: var(--space-12); }

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }

/* ============================================
   13. PROFESSIONAL ANIMATIONS
   ============================================ */

/* Core Animation Keyframes */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

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

@keyframes drawLine {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

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

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

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

@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

/* Hero Section Animations */
.hero-animate-title {
  animation: fadeInUp var(--animation-medium) var(--ease-out-expo) forwards;
  opacity: 0;
}

.hero-animate-subtitle {
  animation: fadeInUp var(--animation-medium) var(--ease-out-expo) forwards;
  animation-delay: 100ms;
  opacity: 0;
}

.hero-animate-buttons {
  animation: fadeInUp var(--animation-medium) var(--ease-out-expo) forwards;
  animation-delay: 200ms;
  opacity: 0;
}

.hero-animate-image {
  animation: fadeInScale var(--animation-slow) var(--ease-out-expo) forwards;
  animation-delay: 300ms;
  opacity: 0;
}

/* Scroll Reveal Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--animation-medium) var(--ease-out-expo),
              transform var(--animation-medium) var(--ease-out-expo);
}

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

/* Stagger Animation Classes */
.stagger-item {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--animation-medium) var(--ease-out-expo),
              transform var(--animation-medium) var(--ease-out-expo);
}

.stagger-item.animated {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays for grid items */
.stagger-item:nth-child(1) { transition-delay: 0ms; }
.stagger-item:nth-child(2) { transition-delay: 100ms; }
.stagger-item:nth-child(3) { transition-delay: 200ms; }
.stagger-item:nth-child(4) { transition-delay: 300ms; }
.stagger-item:nth-child(5) { transition-delay: 400ms; }
.stagger-item:nth-child(6) { transition-delay: 500ms; }
.stagger-item:nth-child(7) { transition-delay: 600ms; }
.stagger-item:nth-child(8) { transition-delay: 700ms; }

/* Enhanced Card Hover Effects */
.card {
  transition: all var(--animation-medium) var(--ease-out-expo);
}

.card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 24px -8px rgba(0, 0, 0, 0.15);
}

/* Button Ripple Effect */
.btn {
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:active::before {
  width: 300px;
  height: 300px;
}

/* Enhanced Button Hover */
.btn-primary:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 8px 16px -4px rgba(79, 70, 229, 0.4);
}

.btn-secondary:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 8px 16px -4px rgba(13, 148, 136, 0.3);
}

/* Loading Animation */
.loading {
  position: relative;
  pointer-events: none;
}

.loading::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.1) 50%,
    transparent 100%
  );
  animation: shimmer 2s infinite;
}

/* Counter Animation */
.stat-number {
  transition: transform var(--animation-fast) var(--ease-smooth);
}

.stat-number.counting {
  animation: pulse var(--animation-fast) ease-in-out;
}

/* Parallax Transform */
.parallax {
  transition: transform 0.1s linear;
  will-change: transform;
}

/* Scroll Progress Bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-accent-primary), var(--color-accent-secondary));
  z-index: 9999;
  transition: width 0.1s linear;
}

/* Fade Classes */
.fade-in {
  animation: fadeIn var(--animation-medium) var(--ease-out-expo);
}

.fade-in-up {
  animation: fadeInUp var(--animation-medium) var(--ease-out-expo);
}

.fade-in-scale {
  animation: fadeInScale var(--animation-medium) var(--ease-out-expo);
}

/* Icon Animations */
.animate-icon {
  transition: transform var(--animation-fast) var(--ease-smooth);
}

.animate-icon:hover {
  transform: scale(1.1) rotate(5deg);
}

/* Link Underline Animation */
a.animated-link {
  position: relative;
}

a.animated-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: currentColor;
  transition: width var(--animation-fast) var(--ease-smooth);
}

a.animated-link:hover::after {
  width: 100%;
}

/* Smooth Scroll Behavior */
html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

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

  .parallax {
    transform: none !important;
  }
}

/* Focus States for Accessibility */
*:focus-visible {
  outline: 2px solid var(--color-accent-primary);
  outline-offset: 2px;
  transition: outline-offset var(--animation-fast);
}

button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--color-accent-primary);
  outline-offset: 2px;
}

/* GPU Acceleration for Smooth Animations */
.hero,
.card,
.btn,
.stagger-item,
.reveal,
.parallax {
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* Testimonial Animations */
.testimonial-card {
  transition: all var(--animation-medium) var(--ease-out-expo);
}

.testimonial-card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 16px 32px -8px rgba(0, 0, 0, 0.2);
}

/* Star Rating Animation */
@keyframes fillStar {
  from {
    transform: scale(0);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.star-animated {
  display: inline-block;
  animation: fillStar 0.3s var(--ease-bounce) forwards;
}

.star-animated:nth-child(1) { animation-delay: 0ms; }
.star-animated:nth-child(2) { animation-delay: 100ms; }
.star-animated:nth-child(3) { animation-delay: 200ms; }
.star-animated:nth-child(4) { animation-delay: 300ms; }
.star-animated:nth-child(5) { animation-delay: 400ms; }

/* Dark Mode Toggle Animation */
.dark-mode-toggle {
  transition: all var(--animation-fast) var(--ease-smooth);
}

.dark-mode-toggle:hover {
  transform: scale(1.1);
}

.dark-mode-toggle svg {
  transition: transform var(--animation-medium) var(--ease-smooth);
}

.dark .dark-mode-toggle svg {
  transform: rotate(180deg);
}

/* Logo Pulse Animation */
@keyframes logoPulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.navbar-logo {
  transition: transform var(--animation-fast) var(--ease-smooth);
}

.navbar-logo:hover {
  animation: logoPulse 1s ease-in-out;
}

/* Mobile Menu Animation */
.navbar-menu.active {
  animation: slideInDown var(--animation-medium) var(--ease-out-expo);
}

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

/* Scroll to Top Button */
.scroll-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  background-color: var(--color-accent-secondary);
  color: white;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--animation-medium) var(--ease-out-expo);
  z-index: 999;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-to-top:hover {
  transform: translateY(-4px) scale(1.1);
  box-shadow: 0 8px 20px rgba(79, 70, 229, 0.4);
}

.scroll-to-top:active {
  animation: bounce 0.3s ease-in-out;
}

/* ============================================
   14. SECTION-SPECIFIC STYLES
   ============================================ */

.section-header {
  text-align: center;
  margin-bottom: var(--space-16);
}

.section-title {
  font-size: var(--font-size-4xl);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-4);
}

.section-subtitle {
  font-size: var(--font-size-lg);
  color: var(--color-text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: var(--line-height-relaxed);
}

/* ============================================
   15. IMAGE STYLES
   ============================================ */

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

.app-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-4);
  box-shadow: none;
  border: none;
  padding: 0;
  object-fit: cover;
}

/* Dark Mode Image Adjustments */
.dark img {
  opacity: 0.98;
}

/* SVG images handled by JavaScript swapping */

/* App icons in dark mode */
.dark .app-icon {
  background-color: var(--color-bg-white);
  padding: var(--space-2);
  border: 1px solid var(--color-border);
  box-shadow: none;
  opacity: 0.95;
}

/* Don't invert app icon PNGs, just adjust them */
.dark .app-icon[src*=".png"],
.dark .app-icon[src*=".jpg"] {
  filter: brightness(0.95) contrast(1.05);
}

.dark .hero-image img {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.6);
  border: 1px solid var(--color-border);
}

/* Developer photo - no filter needed */
.dark .hero-image img[src*=".jpg"],
.dark .hero-image img[src*=".jpeg"] {
  filter: none;
  opacity: 1;
}

/* Remove excessive shadows in dark mode */
.dark img[style*="box-shadow"] {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.4) !important;
}

/* Fix app icon spacing on app pages */
.dark [style*="display: flex"] .app-icon {
  margin: 0 !important;
}

/* Developer photo improvements */
.hero-image img {
  object-fit: cover;
  width: 100%;
  height: auto;
}

/* ============================================
   16. LOADING & TRANSITIONS
   ============================================ */

.page-transition {
  transition: opacity var(--transition-normal);
}

.page-transition.loading {
  opacity: 0.6;
  pointer-events: none;
}

/* ============================================
   END OF MINIMAL DESIGN SYSTEM
   ============================================ */
