/* =========================
   SCROLL ENGAGEMENT STYLES
   Visual enhancements for scrolling experience
   ========================= */

/* === FLOATING ACCENTS === */
.floating-accent {
  will-change: transform;
}

/* Hide accents on mobile for performance */
@media (max-width: 768px) {
  .floating-accent {
    display: none;
  }
}

/* === SECTION TRANSITIONS === */
section {
  transition: transform 0.3s ease-out;
}

section.section-in-view {
  animation: sectionReveal 0.6s ease-out forwards;
}

@keyframes sectionReveal {
  from {
    opacity: 0.95;
  }
  to {
    opacity: 1;
  }
}

/* === ENHANCED CARD ANIMATIONS === */
.card {
  transition: all var(--duration-smooth, 0.3s) var(--ease-gentle, ease);
}

.card-revealed {
  animation: cardReveal 0.5s ease-out forwards;
}

@keyframes cardReveal {
  from {
    transform: translateY(10px) scale(0.98);
    opacity: 0.9;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

/* Enhanced hover - disabled */
.card:hover {
  /* hover animation disabled */
}

/* === STAGGERED LIST ANIMATIONS === */
.card ul li {
  opacity: 0;
  transform: translateX(-8px);
  animation: listItemReveal 0.4s ease-out forwards;
}

.card-revealed ul li:nth-child(1) { animation-delay: 0.05s; }
.card-revealed ul li:nth-child(2) { animation-delay: 0.1s; }
.card-revealed ul li:nth-child(3) { animation-delay: 0.15s; }
.card-revealed ul li:nth-child(4) { animation-delay: 0.2s; }
.card-revealed ul li:nth-child(5) { animation-delay: 0.25s; }
.card-revealed ul li:nth-child(6) { animation-delay: 0.3s; }

@keyframes listItemReveal {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* === ENHANCED BUTTON INTERACTIONS === */
.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 ease-out, height 0.6s ease-out;
}

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

/* === SMOOTH SECTION BACKGROUND TRANSITIONS === */
section[class*="bg-"] {
  position: relative;
  transition: background-color 0.6s ease-out;
}

/* === PARALLAX OPTIMIZATION === */
@media (prefers-reduced-motion: reduce) {
  .floating-accent,
  section::after {
    display: none;
  }
  
  section,
  .card,
  .card ul li {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* === SCROLL HINT FOR LONG PAGES === */
.scroll-hint {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: var(--z-elevated, 100);
  animation: scrollHintBounce 2s ease-in-out infinite;
  opacity: 0.6;
  pointer-events: none;
  transition: opacity 0.3s ease-out;
}

.scroll-hint.hidden {
  opacity: 0;
}

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

/* === DYNAMIC HEADER SHADOW ON SCROLL === */
nav {
  transition: box-shadow 0.3s ease-out;
}

body.scrolled nav {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
