/* ═══════════════════════════════════════════════════════════════
   💕 Gulabo's Birthday — Ultra Premium Shared Styles
   GPU-accelerated, mobile-optimized, stunning animations
   ═══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@400;600;700&family=Playfair+Display:ital,wght@0,500;0,700;1,500&family=Poppins:wght@300;400;500;600&family=Great+Vibes&display=swap');

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Poppins', sans-serif;
  min-height: 100vh; overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
  color: #fff;
}

.page-wrap {
  min-height: 100vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 30px 20px; position: relative; overflow: hidden;
  text-align: center;
}

/* ═══════ PAGE TRANSITION ═══════ */
body { animation: pageIn 1s cubic-bezier(0.16, 1, 0.3, 1); }
@keyframes pageIn {
  from { opacity: 0; transform: translateY(30px) scale(0.97); filter: blur(8px); }
  to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

/* ═══════ AURORA BACKGROUND BLOBS ═══════ */
.aurora {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
}
.aurora-blob {
  position: absolute; border-radius: 50%;
  filter: blur(80px); opacity: 0.15;
  will-change: transform;
}
.aurora-blob:nth-child(1) {
  width: 350px; height: 350px; top: -10%; left: -10%;
  background: var(--aurora-1, #ff6b9d);
  animation: auroraMove1 15s ease-in-out infinite alternate;
}
.aurora-blob:nth-child(2) {
  width: 300px; height: 300px; bottom: -10%; right: -10%;
  background: var(--aurora-2, #7c4dff);
  animation: auroraMove2 18s ease-in-out infinite alternate;
}
.aurora-blob:nth-child(3) {
  width: 250px; height: 250px; top: 40%; left: 50%;
  background: var(--aurora-3, #ffd700);
  animation: auroraMove3 12s ease-in-out infinite alternate;
}
@keyframes auroraMove1 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(15vw, 20vh) scale(1.3); }
}
@keyframes auroraMove2 {
  0% { transform: translate(0, 0) scale(1.2); }
  100% { transform: translate(-20vw, -15vh) scale(0.9); }
}
@keyframes auroraMove3 {
  0% { transform: translate(-50%, 0) scale(0.8); }
  100% { transform: translate(-30%, -30vh) scale(1.1); }
}

/* ═══════ ANIMATED GRADIENT BORDER ═══════ */
.glow-border {
  position: relative;
}
.glow-border::before {
  content: ''; position: absolute; inset: -2px;
  border-radius: inherit; z-index: -1;
  background: conic-gradient(from var(--angle, 0deg), var(--glow-1, #ff6b9d), var(--glow-2, #7c4dff), var(--glow-3, #ffd700), var(--glow-1, #ff6b9d));
  animation: rotateBorder 4s linear infinite;
  opacity: 0.6;
}
@keyframes rotateBorder {
  to { --angle: 360deg; }
}
@property --angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

/* ═══════ NEXT BUTTON — Premium ═══════ */
.next-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 44px; border-radius: 60px;
  font-family: 'Poppins', sans-serif; font-size: 1rem;
  font-weight: 500; text-decoration: none; color: #fff;
  border: none; cursor: pointer; z-index: 10;
  margin-top: 35px; position: relative; overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}
.next-btn:hover { transform: translateY(-3px) scale(1.05); }
.next-btn::after {
  content: ''; position: absolute; top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: linear-gradient(45deg, transparent 40%, rgba(255,255,255,0.12) 50%, transparent 60%);
  animation: btnShimmer 3s infinite;
}
@keyframes btnShimmer {
  from { transform: translateX(-100%) rotate(25deg); }
  to { transform: translateX(100%) rotate(25deg); }
}

/* ═══════ FLOATING EMOJIS ═══════ */
.float-emoji {
  position: fixed; font-size: 1.2rem; opacity: 0;
  pointer-events: none; z-index: 1;
  animation: floatUp var(--dur, 8s) var(--delay, 0s) infinite ease-in-out;
  will-change: transform, opacity;
}
@keyframes floatUp {
  0% { opacity: 0; transform: translateY(100vh) rotate(0deg) scale(0.5); }
  10% { opacity: 0.7; }
  90% { opacity: 0.4; }
  100% { opacity: 0; transform: translateY(-10vh) rotate(360deg) scale(1.1); }
}

/* ═══════ SPARKLE DOTS ═══════ */
.sparkle {
  position: fixed; width: 3px; height: 3px;
  border-radius: 50%; pointer-events: none; z-index: 1;
  animation: sparkleAnim var(--dur, 3s) var(--delay, 0s) infinite ease-in-out;
  will-change: opacity, transform;
}
@keyframes sparkleAnim {
  0%, 100% { opacity: 0; transform: scale(0.3); }
  50% { opacity: var(--max-o, 0.8); transform: scale(1.5); }
}

/* ═══════ PULSE GLOW ═══════ */
.pulse-glow { animation: pulseGlow 3s ease-in-out infinite; }
@keyframes pulseGlow {
  0%, 100% { filter: drop-shadow(0 0 8px var(--glow, rgba(255,107,157,0.3))); }
  50% { filter: drop-shadow(0 0 25px var(--glow, rgba(255,107,157,0.7))); }
}

/* ═══════ BREATHING SCALE ═══════ */
.breathe { animation: breathe 4s ease-in-out infinite; }
@keyframes breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* ═══════ ORBIT DECORATION ═══════ */
.orbit-ring {
  position: absolute; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.06);
  animation: orbitSpin var(--orbit-dur, 20s) linear infinite;
  pointer-events: none;
}
.orbit-ring::after {
  content: var(--orbit-emoji, '✨');
  position: absolute; top: -8px; left: 50%;
  transform: translateX(-50%);
  font-size: 0.9rem;
}
@keyframes orbitSpin { to { transform: rotate(360deg); } }

/* ═══════ SIMPLE FADE IN (transition-based, no conflict) ═══════ */
.fade-in {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1), transform 0.7s cubic-bezier(0.16,1,0.3,1);
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════ TEXT REVEAL ═══════ */
.text-reveal {
  opacity: 0; 
  animation: textReveal 0.8s var(--reveal-delay, 0s) cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes textReveal {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ═══════ NEON TEXT ═══════ */
.neon-text {
  text-shadow:
    0 0 7px var(--neon, #ff6b9d),
    0 0 15px var(--neon, #ff6b9d),
    0 0 30px var(--neon, #ff6b9d);
  animation: neonFlicker 3s ease-in-out infinite;
}
@keyframes neonFlicker {
  0%, 100% { opacity: 1; }
  92% { opacity: 1; }
  93% { opacity: 0.7; }
  94% { opacity: 1; }
  96% { opacity: 0.8; }
  97% { opacity: 1; }
}

/* ═══════ SECTION HEADERS ═══════ */
.section-icon { font-size: 2.5rem; margin-bottom: 12px; display: block; }
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  font-weight: 700; margin-bottom: 8px; line-height: 1.3;
}
.section-subtitle {
  font-size: clamp(0.85rem, 2.5vw, 1rem);
  opacity: 0.6; margin-bottom: 30px; font-weight: 300;
}

/* ═══════ GLASS CARD ═══════ */
.glass-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px; padding: 28px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s;
}
.glass-card:hover {
  border-color: rgba(255,255,255,0.18);
  transform: translateY(-4px);
}

/* ═══════ STAGGER FADE ═══════ */
.stagger-item {
  opacity: 0; transform: translateY(25px) scale(0.95);
  animation: staggerIn 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: var(--delay, 0s);
}
@keyframes staggerIn {
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ═══════ RIPPLE ON TAP ═══════ */
.ripple {
  position: relative; overflow: hidden;
}
.ripple::before {
  content: ''; position: absolute;
  width: 100px; height: 100px; border-radius: 50%;
  background: rgba(255,255,255,0.15);
  transform: scale(0); opacity: 0;
  pointer-events: none;
}
.ripple:active::before {
  animation: rippleAnim 0.6s ease-out;
}
@keyframes rippleAnim {
  0% { transform: scale(0); opacity: 0.5; }
  100% { transform: scale(4); opacity: 0; }
}

/* ═══════ RESPONSIVE ═══════ */
@media (max-width: 480px) {
  .page-wrap { padding: 24px 16px; }
  .next-btn { padding: 14px 36px; font-size: 0.9rem; }
  .glass-card { padding: 20px; border-radius: 16px; }
  .aurora-blob { filter: blur(60px); opacity: 0.1; }
}

/* ═══════ REDUCED MOTION ═══════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
