/* ============ SCROLL ANIMATIONS & INTERACTIVE EFFECTS ============ */

/* Scroll-reveal */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* Floating elements */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
}
.float { animation: float 4s ease-in-out infinite; }
.float-delay-1 { animation-delay: 0.5s; }
.float-delay-2 { animation-delay: 1.5s; }
.float-delay-3 { animation-delay: 2.5s; }

/* Pulsing glow */
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(111,44,145,0.3); }
  50% { box-shadow: 0 0 20px 8px rgba(111,44,145,0.1); }
}
.pulse-glow { animation: pulse-glow 3s ease-in-out infinite; }

/* Cinematic parallax section */
.parallax-bg {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}
@media (max-width: 768px) {
  .parallax-bg { background-attachment: scroll; }
}

/* ===== INTERACTIVE CONFIGURATOR ===== */
.product-configurator {
  background: var(--color-white);
  border-radius: 20px;
  padding: 2.5rem;
  border: 1px solid var(--color-border);
  box-shadow: 0 4px 40px rgba(0,0,0,0.04);
  max-width: 700px;
  margin: 0 auto;
}

.config-step {
  display: none;
  animation: fadeSlideIn 0.4s ease;
}
.config-step.active { display: block; }

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

.config-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
  margin: 1.25rem 0;
}

.config-option {
  padding: 1rem;
  border: 2px solid var(--color-border);
  border-radius: 12px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  background: var(--color-white);
  font-weight: 500;
  font-size: 0.875rem;
}
.config-option:hover {
  border-color: var(--color-primary);
  background: var(--color-primary-light);
  transform: translateY(-2px);
}
.config-option.selected {
  border-color: var(--color-primary);
  background: var(--color-primary);
  color: var(--color-white);
}

.config-progress {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}
.config-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--color-border);
  transition: all 0.3s ease;
}
.config-dot.active { background: var(--color-primary); width: 24px; border-radius: 6px; }
.config-dot.done { background: var(--color-primary-light); }

/* ===== GLASS CARDS ===== */
.glass-card {
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(111,44,145,0.1);
  border-radius: 16px;
  box-shadow: 0 4px 30px rgba(0,0,0,0.04);
}

/* ===== HERO PARTICLES ===== */
.hero-particles {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  overflow: hidden;
  pointer-events: none;
}
.particle {
  position: absolute;
  border-radius: 50%;
  background: var(--color-primary);
  opacity: 0.06;
  animation: particleFloat linear infinite;
}
@keyframes particleFloat {
  0% { transform: translateY(100vh) scale(0); opacity: 0; }
  10% { opacity: 0.06; }
  90% { opacity: 0.06; }
  100% { transform: translateY(-10vh) scale(1); opacity: 0; }
}

/* ===== STAT COUNTER ===== */
.stat-number {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: var(--color-primary);
  transition: all 0.5s ease;
}

/* ===== INGREDIENT CARDS WITH DEPTH ===== */
.ingredient-card-3d {
  perspective: 800px;
}
.ingredient-card-3d .card-inner {
  transition: transform 0.3s ease;
  transform-style: preserve-3d;
}
.ingredient-card-3d:hover .card-inner {
  transform: rotateY(5deg) rotateX(-5deg) translateY(-5px);
}

/* ===== SMOOTH NAV INDICATOR ===== */
.section-nav-dot {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
@media (max-width: 768px) {
  .section-nav-dot { display: none; }
}
.section-nav-dot a {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--color-border);
  transition: all 0.3s ease;
  display: block;
}
.section-nav-dot a.active {
  background: var(--color-primary);
  transform: scale(1.4);
}

/* ===== VIBRANT GRADIENT SECTION DIVIDERS ===== */
.gradient-divider {
  height: 4px;
  background: linear-gradient(90deg, #6f2c91, #C4A260, #6f2c91);
  background-size: 200% 100%;
  animation: gradientShift 3s ease infinite;
  border-radius: 2px;
  border: none;
}
@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* ===== HOVER LIFT ===== */
.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}
