/* ============================================
   THE SPRING NUTRITION — Custom Styles
   ============================================ */

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

/* Base body styles */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   GEOMETRIC SHAPES (Hero Background)
   ============================================ */
.geo-shape {
  position: absolute;
  opacity: 0.08;
  pointer-events: none;
}

.shape-circle-1 {
  width: 400px;
  height: 400px;
  border: 3px solid #fbbf24;
  border-radius: 50%;
  top: 10%;
  right: -100px;
  animation: float-slow 20s ease-in-out infinite;
}

.shape-circle-2 {
  width: 200px;
  height: 200px;
  background: #c084fc;
  border-radius: 50%;
  bottom: 15%;
  left: 5%;
  animation: float-slow 15s ease-in-out infinite reverse;
}

.shape-triangle {
  width: 0;
  height: 0;
  border-left: 80px solid transparent;
  border-right: 80px solid transparent;
  border-bottom: 140px solid #fbbf24;
  top: 25%;
  left: 8%;
  opacity: 0.06;
  animation: rotate-slow 25s linear infinite;
}

.shape-square {
  width: 120px;
  height: 120px;
  border: 3px solid #c084fc;
  right: 15%;
  bottom: 20%;
  opacity: 0.1;
  animation: rotate-slow 30s linear infinite reverse;
  border-radius: 12px;
}

.shape-dots {
  background-image: radial-gradient(circle, #fbbf24 1.5px, transparent 1.5px);
  background-size: 20px 20px;
  width: 160px;
  height: 160px;
  top: 60%;
  right: 5%;
  opacity: 0.15;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes float-slow {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-30px) rotate(5deg); }
}

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

@keyframes float-card {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

/* ============================================
   FLOATING STAT CARDS
   ============================================ */
.stat-card {
  background: rgba(76, 29, 149, 0.4);
  border: 1px solid rgba(192, 132, 252, 0.2);
  backdrop-filter: blur(10px);
  border-radius: 1rem;
  padding: 1rem 1.25rem;
  min-width: 110px;
}

.card-1 { animation: float-card 4s ease-in-out infinite; }
.card-2 { animation: float-card 4s ease-in-out infinite 0.5s; }
.card-3 { animation: float-card 4s ease-in-out infinite 1s; }

/* ============================================
   CARD HOVER EFFECTS
   ============================================ */
.card-hover {
  transform: translateY(0);
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

.card-hover:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* ============================================
   SCROLL REVEAL ANIMATIONS
   ============================================ */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Prefers reduced motion */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(30px);
  }
  
  .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   NAVBAR
   ============================================ */
#navbar {
  background: transparent;
}

#navbar.scrolled {
  background: rgba(26, 10, 62, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(192, 132, 252, 0.1);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* ============================================
   MOBILE MENU
   ============================================ */
#mobileMenu {
  animation: slideDown 0.3s ease;
}

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

.mobile-link {
  display: block;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(192, 132, 252, 0.1);
}

.mobile-link:last-child {
  border-bottom: none;
}

/* ============================================
   BUTTON HOVER GLOW
   ============================================ */
button:hover, a:hover {
  cursor: pointer;
}

/* ============================================
   INPUT FOCUS STYLES
   ============================================ */
input:focus, textarea:focus {
  box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.15);
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */
@media (max-width: 768px) {
  .shape-circle-1 {
    width: 200px;
    height: 200px;
  }
  
  .shape-triangle {
    display: none;
  }
  
  .shape-square {
    display: none;
  }

  .stat-card {
    min-width: 90px;
    padding: 0.75rem 1rem;
  }

  .stat-card .text-2xl {
    font-size: 1.5rem;
  }
}

@media (max-width: 640px) {
  #hero h1 {
    font-size: 2.5rem;
  }

  #hero h1 .text-4xl {
    font-size: 2rem;
  }
}

/* ============================================
   SELECTION COLOR
   ============================================ */
::selection {
  background: rgba(251, 191, 36, 0.3);
  color: #fff;
}

/* ============================================
   SCROLLBAR
   ============================================ */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #1a0a3e;
}

::-webkit-scrollbar-thumb {
  background: #4c1d95;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #7B2D8E;
}
