/* ================= THEME VARIABLES ================= */
:root[data-theme="light"] {
  --bg-main: #FAF8F5;
  --card-bg: #FFFFFF;
  --pill-bg: #F1ECE3;
  --border-color: #E4DDD2;
  --text-main: #1E1B18;
  --text-muted: #655C56;
  --input-bg: #FAF8F5;
}

:root[data-theme="dark"] {
  --bg-main: #111013;
  --card-bg: #1A181D;
  --pill-bg: #242128;
  --border-color: #2F2B35;
  --text-main: #F7F5F2;
  --text-muted: #A39B95;
  --input-bg: #141317;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  transition: background-color 0.35s ease, color 0.35s ease;
}

.font-serif {
  font-family: 'Playfair Display', serif;
}

.glass-header {
  background-color: color-mix(in srgb, var(--bg-main) 85%, transparent);
  backdrop-filter: blur(14px);
}

.form-input {
  background-color: var(--input-bg);
  color: var(--text-main);
}

/* Gradient Headline Accent */
.text-gradient {
  background: linear-gradient(135deg, #FF5A36 0%, #FF9F1C 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ================= AMBIENT FLOATING ORBS ================= */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.28;
  animation: floatOrb 14s ease-in-out infinite alternate;
}

.orb-1 {
  width: 380px;
  height: 380px;
  background: #FF5A36;
  top: -80px;
  right: -60px;
}

.orb-2 {
  width: 320px;
  height: 320px;
  background: #FF9F1C;
  bottom: 5%;
  left: -80px;
  animation-delay: -5s;
}

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-35px, 40px) scale(1.12); }
}

/* ================= AUDIO EQUALIZER ANIMATIONS ================= */
.eq-bars {
  display: flex;
  align-items: flex-end;
  gap: 2.5px;
  height: 16px;
}

.eq-bars span {
  width: 3px;
  background: #FFFFFF;
  border-radius: 2px;
  animation: eqPulse 0.9s ease-in-out infinite alternate;
}

.eq-bars span:nth-child(1) { height: 8px; animation-delay: 0.1s; }
.eq-bars span:nth-child(2) { height: 16px; animation-delay: 0.3s; }
.eq-bars span:nth-child(3) { height: 11px; animation-delay: 0.5s; }
.eq-bars span:nth-child(4) { height: 14px; animation-delay: 0.2s; }

@keyframes eqPulse {
  0% { height: 4px; }
  100% { height: 16px; }
}

.soundwave-strip {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 18px;
}

.soundwave-strip span {
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(to top, #FF5A36, #FF9F1C);
  animation: waveDance 1.1s ease-in-out infinite alternate;
}

.soundwave-strip span:nth-child(odd) { animation-duration: 0.85s; }
.soundwave-strip span:nth-child(3n) { animation-delay: 0.25s; }
.soundwave-strip span:nth-child(4n) { animation-delay: 0.45s; }

@keyframes waveDance {
  0% { height: 4px; opacity: 0.45; }
  100% { height: 18px; opacity: 1; }
}

/* ================= CARD & TAB CHOREOGRAPHY ================= */
.tab-btn {
  color: var(--text-muted);
}

.tab-btn:hover {
  color: var(--text-main);
}

.tab-btn.active {
  background-color: var(--card-bg);
  color: #FF5A36;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.mobile-tab {
  color: var(--text-muted);
}

.mobile-tab.active-mobile {
  color: #FF5A36;
  background-color: rgba(255, 90, 54, 0.1);
}

.hover-lift {
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px -12px rgba(255, 90, 54, 0.18);
  border-color: rgba(255, 90, 54, 0.45);
}

.magnetic-btn {
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s ease;
}

.magnetic-btn:hover {
  transform: translateY(-2px) scale(1.015);
}

.magnetic-btn:active {
  transform: scale(0.98);
}

/* Staggered Entrance Animations */
.stagger-1 {
  animation: slideUpFade 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.stagger-2 {
  opacity: 0;
  animation: slideUpFade 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.12s forwards;
}

@keyframes slideUpFade {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Gentle Floating Hero Cards */
.float-slow {
  animation: gentleFloat 6s ease-in-out infinite alternate;
}

.float-delayed {
  animation: gentleFloat 6s ease-in-out 2.5s infinite alternate;
}

@keyframes gentleFloat {
  0% { transform: translateY(0px); }
  100% { transform: translateY(-7px); }
}

/* Error Shake Animation */
@keyframes shakeError {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

.shake-box {
  animation: shakeError 0.4s ease-in-out;
}