/* ===== BASE ===== */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
}

::selection {
  background: #c084fc;
  color: #3b0764;
}

/* ===== SCROLL REVEAL ===== */
.scroll-reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

@media (prefers-reduced-motion: no-preference) {
  .scroll-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  }

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

  .stat-card {
    opacity: 1;
    transform: none;
    transition: opacity 0.5s ease, transform 0.5s ease, box-shadow 0.3s ease;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .scroll-reveal {
    opacity: 1;
    transform: none;
  }
}

/* ===== NAVBAR SCROLL ===== */
#navbar.scrolled {
  box-shadow: 0 4px 24px rgba(88, 28, 135, 0.08);
}

/* ===== MOBILE MENU ===== */
#mobile-menu {
  animation: slideDown 0.25s ease;
}

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

/* ===== BUTTONS ===== */
a:focus-visible, button:focus-visible {
  outline: 2px solid #fbbf24;
  outline-offset: 2px;
  border-radius: 4px;
}

/* ===== FORM ===== */
input, textarea, select {
  font-family: inherit;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: #9333ea;
  box-shadow: 0 0 0 3px rgba(147, 51, 234, 0.15);
}

/* ===== SMOOTH TRANSITIONS ===== */
.transition-all {
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 200ms;
}

/* ===== SUBTLE PATTERNS ===== */
.bg-plum-pattern {
  background-image: radial-gradient(circle at 1px 1px, rgba(147, 51, 234, 0.04) 1px, transparent 0);
  background-size: 24px 24px;
}
