/* ===== SUGARSPIN ANIMATIONS & INTERACTIVE EFFECTS ===== */
/* Shared across all pages - Dark theme with gold accents */

:root {
  --gold: #E8A838;
  --gold-light: #F2C46D;
  --gold-dark: #C48A20;
  --gold-glow: rgba(232, 168, 56, 0.25);
  --gold-bright: rgba(232, 168, 56, 0.5);
  --bg-primary: #0A0A0A;
  --bg-secondary: #111111;
  --bg-card: #161616;
  --bg-card-hover: #1E1E1E;
  --text-primary: #F5F5F5;
  --text-secondary: #AAAAAA;
  --text-muted: #666666;
  --border: #222222;
  --border-light: #333333;
}

/* ===== FLOATING MUSIC NOTES ANIMATION ===== */
.music-notes-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.music-note {
  position: absolute;
  color: var(--gold);
  opacity: 0;
  font-size: 20px;
  animation: floatNote 15s linear infinite;
  text-shadow: 0 0 10px var(--gold-glow);
  will-change: transform;
}

.music-note:nth-child(1) { left: 10%; animation-delay: 0s; }
.music-note:nth-child(2) { left: 30%; animation-delay: 3s; }
.music-note:nth-child(3) { left: 50%; animation-delay: 6s; }
.music-note:nth-child(4) { left: 70%; animation-delay: 9s; }
.music-note:nth-child(5) { left: 90%; animation-delay: 12s; }
.music-note:nth-child(6) { display: none; }
.music-note:nth-child(7) { display: none; }
.music-note:nth-child(8) { display: none; }
.music-note:nth-child(9) { display: none; }
.music-note:nth-child(10) { display: none; }

@keyframes floatNote {
  0% {
    transform: translateY(100vh);
    opacity: 0;
  }
  10% {
    opacity: 0.2;
  }
  90% {
    opacity: 0.2;
  }
  100% {
    transform: translateY(-100px);
    opacity: 0;
  }
}

/* ===== VINYL RECORD SCROLL SPIN ===== */
.vinyl-wrapper {
  animation: spin-slow 8s linear infinite;
}

.vinyl-wrapper.scroll-spin {
  animation: spin-fast 2s linear infinite;
}

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

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

/* ===== SCROLL REVEAL ANIMATIONS ===== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.reveal-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}

/* Staggered reveal for lists */
.stagger-reveal > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.stagger-reveal.visible > *:nth-child(1) { transition-delay: 0s; opacity: 1; transform: translateY(0); }
.stagger-reveal.visible > *:nth-child(2) { transition-delay: 0.1s; opacity: 1; transform: translateY(0); }
.stagger-reveal.visible > *:nth-child(3) { transition-delay: 0.2s; opacity: 1; transform: translateY(0); }
.stagger-reveal.visible > *:nth-child(4) { transition-delay: 0.3s; opacity: 1; transform: translateY(0); }
.stagger-reveal.visible > *:nth-child(5) { transition-delay: 0.4s; opacity: 1; transform: translateY(0); }
.stagger-reveal.visible > *:nth-child(6) { transition-delay: 0.5s; opacity: 1; transform: translateY(0); }
.stagger-reveal.visible > *:nth-child(7) { transition-delay: 0.6s; opacity: 1; transform: translateY(0); }
.stagger-reveal.visible > *:nth-child(8) { transition-delay: 0.7s; opacity: 1; transform: translateY(0); }

/* ===== HOVER EFFECTS ON CARDS ===== */
.feature-card,
.testimonial-card,
.pricing-card,
.faq-item,
.step-card,
.about-card,
.contact-form,
.legal-section {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.3s ease,
              border-color 0.3s ease;
}

.feature-card:hover,
.testimonial-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(232, 168, 56, 0.15),
              0 0 60px rgba(232, 168, 56, 0.1);
  border-color: var(--gold);
}

.pricing-card:hover {
  transform: translateY(-12px) scale(1.03);
  box-shadow: 0 30px 60px rgba(232, 168, 56, 0.2),
              0 0 80px rgba(232, 168, 56, 0.15);
}

.pricing-card.featured:hover {
  transform: translateY(-16px) scale(1.05);
  box-shadow: 0 40px 80px rgba(232, 168, 56, 0.3),
              0 0 100px rgba(232, 168, 56, 0.2);
}

.faq-item:hover {
  transform: translateX(8px);
  box-shadow: -4px 0 20px rgba(232, 168, 56, 0.1);
}

.step-card:hover .step-number {
  transform: scale(1.1);
  box-shadow: 0 0 40px var(--gold-glow);
}

/* ===== BUTTON RIPPLE EFFECT ===== */
.btn,
.btn-primary,
.btn-secondary,
.btn-submit,
.pricing-btn,
.email-btn {
  position: relative;
  overflow: hidden;
}

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

.btn:active::after,
.btn-primary:active::after,
.btn-secondary:active::after {
  width: 300px;
  height: 300px;
}

/* Pulse animation for primary buttons */
@keyframes btnPulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(232, 168, 56, 0.25); }
  50% { box-shadow: 0 4px 30px rgba(232, 168, 56, 0.5), 0 0 40px rgba(232, 168, 56, 0.3); }
}

.btn-primary {
  animation: btnPulse 2s ease-in-out infinite;
}

.btn-primary:hover {
  animation: none;
  box-shadow: 0 8px 40px rgba(232, 168, 56, 0.5), 0 0 60px rgba(232, 168, 56, 0.3);
}

/* ===== PARALLAX HERO EFFECTS ===== */
.hero {
  position: relative;
  overflow: hidden;
}

.hero-bg-parallax {
  position: absolute;
  inset: -20%;
  background: 
    radial-gradient(ellipse 80% 60% at 70% 40%, rgba(232, 168, 56, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 20% 80%, rgba(232, 168, 56, 0.05) 0%, transparent 50%);
  will-change: transform;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-visual {
  position: relative;
  z-index: 2;
  will-change: transform;
}

/* ===== MUSIC VISUALIZER BACKGROUND ===== */
.visualizer-bg {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 150px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.02;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 8px;
  padding: 0 20px;
}

.visualizer-bar {
  width: 6px;
  background: linear-gradient(to top, var(--gold), transparent);
  border-radius: 4px 4px 0 0;
  animation: visualizer 3s ease-in-out infinite;
  will-change: transform;
}

.visualizer-bar:nth-child(1) { height: 30%; animation-delay: 0s; }
.visualizer-bar:nth-child(2) { height: 50%; animation-delay: 0.3s; }
.visualizer-bar:nth-child(3) { height: 70%; animation-delay: 0.6s; }
.visualizer-bar:nth-child(4) { height: 40%; animation-delay: 0.9s; }
.visualizer-bar:nth-child(5) { height: 60%; animation-delay: 1.2s; }
.visualizer-bar:nth-child(6) { height: 80%; animation-delay: 1.5s; }
.visualizer-bar:nth-child(7) { height: 45%; animation-delay: 1.8s; }
.visualizer-bar:nth-child(8) { height: 65%; animation-delay: 2.1s; }
.visualizer-bar:nth-child(9) { height: 55%; animation-delay: 2.4s; }
.visualizer-bar:nth-child(10) { height: 75%; animation-delay: 2.7s; }
.visualizer-bar:nth-child(11) { display: none; }
.visualizer-bar:nth-child(12) { display: none; }
.visualizer-bar:nth-child(13) { display: none; }
.visualizer-bar:nth-child(14) { display: none; }
.visualizer-bar:nth-child(15) { display: none; }
.visualizer-bar:nth-child(16) { display: none; }
.visualizer-bar:nth-child(17) { display: none; }
.visualizer-bar:nth-child(18) { display: none; }
.visualizer-bar:nth-child(19) { display: none; }
.visualizer-bar:nth-child(20) { display: none; }

@keyframes visualizer {
  0%, 100% { transform: scaleY(1); opacity: 0.3; }
  50% { transform: scaleY(1.2); opacity: 0.6; }
}

/* ===== CURSOR FOLLOWER (TONEARM) - DISABLED ===== */
/* Removed for performance and user preference */

/* ===== GLOW EFFECTS ===== */
.glow-text {
  text-shadow: 0 0 20px var(--gold-glow), 0 0 40px var(--gold-glow);
}

.glow-box {
  box-shadow: 0 0 30px var(--gold-glow), 0 0 60px rgba(232, 168, 56, 0.1);
}

/* ===== SHIMMER EFFECT ===== */
.shimmer {
  background: linear-gradient(
    90deg,
    var(--gold) 0%,
    var(--gold-light) 50%,
    var(--gold) 100%
  );
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 2s linear infinite;
}

@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

/* ===== FLOATING ANIMATION ===== */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.float-animation {
  animation: float 4s ease-in-out infinite;
}

/* ===== PULSE GLOW ===== */
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(232, 168, 56, 0.15); }
  50% { box-shadow: 0 0 40px rgba(232, 168, 56, 0.4); }
}

.pulse-glow {
  animation: pulse-glow 3s infinite;
}

/* ===== TONEARM DROP ANIMATION ===== */
@keyframes tonearm-drop {
  0% { transform: rotate(-35deg); }
  100% { transform: rotate(-12deg); }
}

.tonearm-img {
  animation: tonearm-drop 2s ease-out forwards;
}

/* ===== ALBUM COVER FLOAT ===== */
.album-cover {
  animation: float 4s ease-in-out infinite;
}

/* ===== SECTION LABEL ANIMATION ===== */
.section-label {
  position: relative;
  display: inline-block;
}

.section-label::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.5s ease;
}

.section-label.visible::after {
  width: 60%;
}

/* ===== FORMAT BADGE HOVER ===== */
.format-badge {
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.format-badge:hover {
  transform: translateY(-4px) scale(1.1);
  box-shadow: 0 10px 30px rgba(232, 168, 56, 0.3);
}

/* ===== NAS LOGO HOVER ===== */
.nas-logo {
  transition: all 0.3s ease;
}

.nas-logo:hover {
  transform: scale(1.1);
  text-shadow: 0 0 20px var(--gold-glow);
}

/* ===== SCREENSHOT TAB ANIMATION ===== */
.screenshot-tab {
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.screenshot-tab:hover {
  transform: translateY(-2px);
}

.screenshot-tab.active {
  transform: scale(1.05);
  box-shadow: 0 4px 20px rgba(232, 168, 56, 0.4);
}

/* ===== FEATURE ICON ANIMATION ===== */
.feature-icon {
  transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 0 30px var(--gold-glow);
}

/* ===== TESTIMONIAL STARS SPARKLE ===== */
.testimonial-stars svg {
  transition: all 0.3s ease;
}

.testimonial-card:hover .testimonial-stars svg {
  animation: starSparkle 0.5s ease-in-out;
}

.testimonial-card:hover .testimonial-stars svg:nth-child(2) { animation-delay: 0.1s; }
.testimonial-card:hover .testimonial-stars svg:nth-child(3) { animation-delay: 0.2s; }
.testimonial-card:hover .testimonial-stars svg:nth-child(4) { animation-delay: 0.3s; }
.testimonial-card:hover .testimonial-stars svg:nth-child(5) { animation-delay: 0.4s; }

@keyframes starSparkle {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.3); filter: drop-shadow(0 0 10px var(--gold)); }
}

/* ===== AVATAR HOVER ===== */
.testimonial-avatar {
  transition: all 0.3s ease;
}

.testimonial-card:hover .testimonial-avatar {
  transform: scale(1.1);
  box-shadow: 0 0 20px var(--gold-glow);
}

/* ===== FOOTER LINK ANIMATION ===== */
.footer-col a {
  position: relative;
  transition: color 0.2s ease;
}

.footer-col a::before {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.3s ease;
}

.footer-col a:hover::before {
  width: 100%;
}

/* ===== INPUT FOCUS GLOW ===== */
input:focus,
select:focus,
textarea:focus {
  box-shadow: 0 0 0 3px rgba(232, 168, 56, 0.2), 0 0 20px rgba(232, 168, 56, 0.1) !important;
}

/* ===== FAQ ACCORDION SMOOTH ===== */
.faq-answer {
  transition: max-height 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.faq-item.open .faq-question {
  color: var(--gold);
}

/* ===== COMPARISON TABLE ROW HOVER ===== */
.compare-table tbody tr {
  transition: background 0.3s ease;
}

.compare-table tbody tr:hover {
  background: rgba(232, 168, 56, 0.05);
}

/* ===== SECTION NAV PILL ANIMATION ===== */
.section-nav a {
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.section-nav a:hover {
  transform: translateY(-2px) scale(1.05);
}

/* ===== HERO BADGE PULSE ===== */
.hero-badge .dot {
  animation: pulse-glow 2s infinite;
}

/* ===== SMOOTH SCROLL BEHAVIOR ===== */
html {
  scroll-behavior: smooth;
}

/* ===== LOADING SPINNER ===== */
@keyframes spinner {
  to { transform: rotate(360deg); }
}

.loading-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(0,0,0,0.2);
  border-top-color: #000;
  border-radius: 50%;
  animation: spinner 0.6s linear infinite;
}

/* ===== SUCCESS MESSAGE ANIMATION ===== */
.email-success {
  animation: fadeInUp 0.4s ease;
}

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

/* ===== HERO STATS COUNTER ANIMATION ===== */
.hero-stat {
  transition: transform 0.3s ease;
}

.hero-stat:hover {
  transform: translateY(-4px);
}

.hero-stat-value {
  transition: all 0.3s ease;
}

.hero-stat:hover .hero-stat-value {
  text-shadow: 0 0 20px var(--gold-glow);
}

/* ===== PRICING FEATURES CHECK ANIMATION ===== */
.pricing-features li {
  transition: transform 0.2s ease;
}

.pricing-features li:hover {
  transform: translateX(4px);
}

/* ===== STEP NUMBER ANIMATION ===== */
.step-number {
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ===== VINYL GLOW PULSE ===== */
.vinyl-glow {
  animation: pulse-glow 3s infinite;
}

/* ===== HERO GRID PARALLAX ===== */
.hero-grid {
  will-change: transform;
}

/* ===== BROWSER CHROME SHINE ===== */
.browser-chrome {
  position: relative;
  overflow: hidden;
}

.browser-chrome::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05), transparent);
  animation: chromeShine 5s infinite;
}

@keyframes chromeShine {
  0% { left: -100%; }
  50%, 100% { left: 200%; }
}

/* ===== MOBILE MENU ANIMATION ===== */
@media (max-width: 640px) {
  .header-nav.open {
    animation: slideDown 0.3s ease;
  }
  
  @keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
  }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .music-notes-container,
  .visualizer-bg,
  .cursor-follower {
    display: none;
  }
}
