/* ============================================================
   MAYANK RATHOD BIRTHDAY WEBSITE — CYBER NEON STYLE
   ============================================================ */

:root {
  --neon-blue: #00d4ff;
  --neon-purple: #b400ff;
  --neon-gold: #ffd700;
  --neon-pink: #ff00aa;
  --dark-bg: #030010;
  --darker-bg: #000008;
  --card-bg: rgba(0,0,30,0.85);
  --glow-blue: 0 0 10px #00d4ff, 0 0 30px #00d4ff, 0 0 60px #00d4ff44;
  --glow-purple: 0 0 10px #b400ff, 0 0 30px #b400ff, 0 0 60px #b400ff44;
  --glow-gold: 0 0 10px #ffd700, 0 0 30px #ffd700, 0 0 60px #ffd70044;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--dark-bg);
  color: #fff;
  font-family: 'Rajdhani', sans-serif;
  overflow-x: hidden;
  cursor: none;
}

/* ---- CURSOR ---- */
#cursor-glow {
  position: fixed;
  width: 30px; height: 30px;
  background: radial-gradient(circle, rgba(0,212,255,0.8) 0%, rgba(180,0,255,0.3) 50%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%,-50%);
  transition: transform 0.05s linear;
  mix-blend-mode: screen;
}

/* ---- PARTICLES ---- */
#particles-canvas {
  position: fixed; top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}

#confetti-canvas {
  position: fixed; top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 9998;
}

/* ---- AUDIO CONTROL ---- */
#audio-control {
  position: fixed; top: 20px; right: 20px;
  z-index: 9999;
}
#mute-btn {
  background: rgba(0,0,30,0.8);
  border: 1px solid var(--neon-blue);
  color: #fff;
  font-size: 1.4rem;
  padding: 8px 14px;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: var(--glow-blue);
  transition: all 0.3s;
}
#mute-btn:hover { box-shadow: var(--glow-purple); border-color: var(--neon-purple); }

/* ---- FLOATING EMOJIS ---- */
#floating-emojis {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 1;
  overflow: hidden;
}
.floating-emoji {
  position: absolute;
  font-size: clamp(1.2rem, 3vw, 2rem);
  animation: floatEmoji linear infinite;
  opacity: 0.7;
  filter: drop-shadow(0 0 8px rgba(255,215,0,0.8));
}
@keyframes floatEmoji {
  0% { transform: translateY(110vh) rotate(0deg); opacity: 0; }
  10% { opacity: 0.8; }
  90% { opacity: 0.8; }
  100% { transform: translateY(-20px) rotate(720deg); opacity: 0; }
}

/* ===============================================================
   SECTION 1: ENTRY SCREEN
   =============================================================== */
#entry-screen {
  position: fixed; top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 1000;
  background: var(--darker-bg);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}

#entry-particles {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  z-index: 0;
}

.scanlines {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,0,0,0.15) 2px,
    rgba(0,0,0,0.15) 4px
  );
  pointer-events: none; z-index: 2;
  animation: scanMove 8s linear infinite;
}
@keyframes scanMove {
  0% { background-position: 0 0; }
  100% { background-position: 0 100px; }
}

.entry-content {
  position: relative; z-index: 10;
  text-align: center;
  padding: 20px;
}

.type-text {
  font-family: 'Orbitron', monospace;
  font-size: clamp(1rem, 3vw, 1.8rem);
  color: var(--neon-blue);
  text-shadow: var(--glow-blue);
  letter-spacing: 4px;
  min-height: 2.5em;
  margin-bottom: 10px;
}

.type-text-big {
  font-size: clamp(1.4rem, 4vw, 2.6rem);
  color: var(--neon-gold);
  text-shadow: var(--glow-gold);
}

#entry-btn-wrap {
  margin-top: 40px;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.34,1.56,0.64,1);
}
#entry-btn-wrap.visible { opacity: 1; transform: translateY(0); }

#enter-btn {
  position: relative;
  font-family: 'Orbitron', monospace;
  font-size: clamp(0.9rem, 2vw, 1.2rem);
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #000;
  background: linear-gradient(135deg, var(--neon-gold), var(--neon-blue));
  border: none;
  padding: 18px 50px;
  border-radius: 4px;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.3s;
  box-shadow: 0 0 20px rgba(255,215,0,0.5), 0 0 50px rgba(0,212,255,0.3);
}
#enter-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 40px rgba(255,215,0,0.8), 0 0 80px rgba(0,212,255,0.5);
}
#enter-btn::before {
  content: '';
  position: absolute; top: -50%; left: -60%;
  width: 30%; height: 200%;
  background: rgba(255,255,255,0.3);
  transform: skewX(-20deg);
  animation: btnShine 2.5s infinite;
}
@keyframes btnShine {
  0% { left: -60%; }
  100% { left: 130%; }
}

.btn-glow {
  position: absolute; inset: -2px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--neon-gold), var(--neon-blue), var(--neon-purple));
  z-index: -1;
  filter: blur(8px);
  opacity: 0.7;
  animation: glowPulse 2s ease-in-out infinite;
}
@keyframes glowPulse { 0%,100% { opacity: 0.5; } 50% { opacity: 1; } }

/* ===============================================================
   HIDDEN SECTIONS
   =============================================================== */
.hidden-section {
  display: none;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.hidden-section.revealed {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* ===============================================================
   SECTION 2: HERO BLAST
   =============================================================== */
#hero-blast {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse at center, #0a002a 0%, #000008 70%);
}

.hero-bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(0,212,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,212,255,0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: gridPulse 4s ease-in-out infinite;
}
@keyframes gridPulse { 0%,100% { opacity: 0.5; } 50% { opacity: 1; } }

.hero-content {
  position: relative; z-index: 10;
  text-align: center;
  padding: 60px 20px;
}

.neon-badge {
  display: inline-block;
  font-family: 'Orbitron', monospace;
  font-size: clamp(0.7rem, 2vw, 1rem);
  letter-spacing: 8px;
  color: var(--neon-blue);
  border: 1px solid var(--neon-blue);
  padding: 8px 24px;
  border-radius: 100px;
  margin-bottom: 30px;
  box-shadow: var(--glow-blue);
  animation: badgePulse 2s ease-in-out infinite;
}
@keyframes badgePulse { 0%,100% { box-shadow: var(--glow-blue); } 50% { box-shadow: 0 0 20px var(--neon-blue), 0 0 60px var(--neon-blue); } }

.hero-title {
  font-family: 'Orbitron', monospace;
  font-size: clamp(2.5rem, 8vw, 7rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -2px;
  text-transform: uppercase;
}

.hero-title .word {
  display: block;
  color: #fff;
  text-shadow: 0 0 20px rgba(255,255,255,0.3);
  animation: wordReveal 0.8s ease backwards;
}
.hero-title .word:nth-child(1) { animation-delay: 0.2s; }
.hero-title .word:nth-child(2) { animation-delay: 0.4s; color: var(--neon-blue); text-shadow: var(--glow-blue); }
.hero-title .word.gold { color: var(--neon-gold); text-shadow: var(--glow-gold); animation-delay: 0.6s; }

@keyframes wordReveal {
  from { opacity: 0; transform: translateY(60px) skewY(5deg); }
  to { opacity: 1; transform: translateY(0) skewY(0); }
}

.hero-subtitle {
  font-family: 'Rajdhani', sans-serif;
  font-size: clamp(0.9rem, 2.5vw, 1.4rem);
  letter-spacing: 6px;
  color: var(--neon-purple);
  text-transform: uppercase;
  margin-top: 20px;
  text-shadow: var(--glow-purple);
}

.from-tag {
  font-family: 'Space Mono', monospace;
  font-size: clamp(0.8rem, 1.5vw, 1rem);
  color: rgba(255,215,0,0.7);
  margin-top: 16px;
  letter-spacing: 3px;
}

#floating-photos-hero {
  position: absolute; inset: 0; z-index: 5; pointer-events: none;
  overflow: hidden;
}

.hero-float-photo {
  position: absolute;
  width: clamp(80px, 12vw, 160px);
  height: clamp(80px, 12vw, 160px);
  object-fit: cover;
  border-radius: 4px;
  border: 2px solid var(--neon-blue);
  box-shadow: var(--glow-blue);
  animation: floatPhoto linear infinite;
  opacity: 0.6;
  background: linear-gradient(135deg, #0a002a, #000820);
}
@keyframes floatPhoto {
  0% { transform: translateY(0) rotate(var(--rot)) scale(1); }
  25% { transform: translateY(-30px) rotate(calc(var(--rot) + 3deg)) scale(1.05); }
  50% { transform: translateY(0) rotate(var(--rot)) scale(1); }
  75% { transform: translateY(20px) rotate(calc(var(--rot) - 3deg)) scale(0.97); }
  100% { transform: translateY(0) rotate(var(--rot)) scale(1); }
}

/* ===============================================================
   SECTION SHARED HEADER
   =============================================================== */
.section-header {
  text-align: center;
  padding: 60px 20px 30px;
}
.section-title {
  font-family: 'Orbitron', monospace;
  font-size: clamp(1.5rem, 4vw, 3rem);
  font-weight: 900;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--neon-blue);
  text-shadow: var(--glow-blue);
}
.section-line {
  width: 80px; height: 3px;
  background: linear-gradient(90deg, transparent, var(--neon-gold), transparent);
  margin: 16px auto 0;
  animation: lineGlow 2s ease-in-out infinite;
}
@keyframes lineGlow { 0%,100% { opacity: 0.5; } 50% { opacity: 1; } }

/* ===============================================================
   SECTION 3: MEMORY ALBUM
   =============================================================== */
#memory-album {
  min-height: 100vh;
  background: linear-gradient(180deg, #000008 0%, #0a0020 50%, #000008 100%);
  padding: 0 0 80px;
}

#flipbook {
  display: flex; flex-direction: column; align-items: center;
  gap: 30px;
  padding: 0 20px;
}

.flip-page {
  width: min(500px, 90vw);
  height: min(400px, 70vw);
  position: relative;
  perspective: 1200px;
  cursor: pointer;
}

.flip-front, .flip-back {
  position: absolute; inset: 0;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid var(--neon-purple);
  box-shadow: var(--glow-purple);
  backface-visibility: hidden;
  background: #0a0020;
  display: flex; flex-direction: column;
}
.flip-front img, .flip-back img {
  width: 100%; flex: 1;
  object-fit: cover;
}
.flip-caption {
  font-family: 'Orbitron', monospace;
  font-size: clamp(0.7rem, 1.5vw, 0.95rem);
  letter-spacing: 3px;
  color: var(--neon-gold);
  text-align: center;
  padding: 12px;
  background: rgba(0,0,20,0.9);
  text-transform: uppercase;
  text-shadow: var(--glow-gold);
}

.flip-back {
  transform: rotateY(180deg);
}

.flip-page.flipping .flip-front {
  animation: flipOut 0.5s ease-in forwards;
}
.flip-page.flipping .flip-back {
  animation: flipIn 0.5s ease-out 0.3s forwards;
}

@keyframes flipOut {
  from { transform: rotateY(0); }
  to { transform: rotateY(-180deg); }
}
@keyframes flipIn {
  from { transform: rotateY(180deg); }
  to { transform: rotateY(0); }
}

.flip-controls {
  display: flex; align-items: center; gap: 20px;
}
.flip-btn {
  font-family: 'Orbitron', monospace;
  font-size: 0.8rem;
  letter-spacing: 2px;
  color: var(--neon-blue);
  background: transparent;
  border: 1px solid var(--neon-blue);
  padding: 10px 24px;
  cursor: pointer;
  transition: all 0.3s;
  text-transform: uppercase;
}
.flip-btn:hover {
  background: var(--neon-blue);
  color: #000;
  box-shadow: var(--glow-blue);
}
#flip-counter {
  font-family: 'Space Mono', monospace;
  color: rgba(255,255,255,0.5);
  font-size: 0.85rem;
}

/* ===============================================================
   SECTION 4: CRAZY GALLERY
   =============================================================== */
#crazy-gallery {
  min-height: 100vh;
  background: #000008;
  padding: 0 20px 80px;
}

#polaroid-grid {
  position: relative;
  min-height: 700px;
  max-width: 1100px;
  margin: 0 auto;
}

.polaroid {
  position: absolute;
  background: #fff;
  padding: 10px 10px 40px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.6);
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.3s;
  animation: polaroidFloat linear infinite;
}
.polaroid img {
  display: block;
  width: 100%; height: 160px;
  object-fit: cover;
  background: #111;
}
.polaroid-label {
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  color: #222;
  text-align: center;
  margin-top: 6px;
  letter-spacing: 1px;
}
.polaroid:hover {
  transform: rotate(0deg) scale(1.2) !important;
  box-shadow: 0 0 30px var(--neon-blue), 0 0 60px var(--neon-purple);
  z-index: 100;
}
@keyframes polaroidFloat {
  0%,100% { margin-top: 0; }
  50% { margin-top: -8px; }
}

/* ===============================================================
   SECTION 5: BRO MESSAGE
   =============================================================== */
#bro-message {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(ellipse at center, #0f0020 0%, #000008 70%);
  padding: 60px 20px;
}

.message-container {
  position: relative;
  max-width: 700px;
  width: 100%;
}
.message-glow-ring {
  position: absolute; inset: -30px;
  border-radius: 16px;
  background: transparent;
  border: 1px solid rgba(180,0,255,0.2);
  box-shadow: 0 0 60px rgba(180,0,255,0.1), inset 0 0 60px rgba(180,0,255,0.05);
  animation: ringPulse 3s ease-in-out infinite;
}
@keyframes ringPulse { 0%,100% { opacity: 0.5; } 50% { opacity: 1; } }

.message-inner {
  background: linear-gradient(135deg, rgba(10,0,30,0.95), rgba(0,8,30,0.95));
  border: 1px solid rgba(180,0,255,0.3);
  border-radius: 12px;
  padding: clamp(30px, 5vw, 60px);
  position: relative;
  overflow: hidden;
}
.message-inner::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--neon-purple), transparent);
}

.msg-emoji {
  font-size: 3rem;
  text-align: center;
  margin-bottom: 24px;
  animation: emojiPulse 1.5s ease-in-out infinite;
}
@keyframes emojiPulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.2); } }

.msg-to {
  font-family: 'Orbitron', monospace;
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  font-weight: 900;
  color: var(--neon-blue);
  text-shadow: var(--glow-blue);
  margin-bottom: 20px;
}

.msg-body { margin-bottom: 30px; }

.msg-line {
  font-family: 'Rajdhani', sans-serif;
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  margin-bottom: 10px;
  letter-spacing: 1px;
  opacity: 0;
  transform: translateX(-20px);
  transition: all 0.6s ease;
}
.msg-line.visible { opacity: 1; transform: translateX(0); }

.msg-big {
  font-size: clamp(1.4rem, 3.5vw, 2rem) !important;
  color: var(--neon-gold) !important;
  text-shadow: var(--glow-gold);
  margin-top: 16px;
}

.msg-signature {
  font-family: 'Space Mono', monospace;
  font-size: clamp(0.85rem, 2vw, 1.1rem);
  color: var(--neon-purple);
  text-shadow: var(--glow-purple);
  text-align: right;
  letter-spacing: 2px;
}

/* ===============================================================
   SECTION 6: FINAL BOMB
   =============================================================== */
#final-bomb {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: var(--darker-bg);
}

#fireworks-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
}

.final-content {
  position: relative; z-index: 10;
  text-align: center;
  padding: 40px 20px;
}

.final-text-wrap {
  display: flex; flex-direction: column; align-items: center; gap: 24px;
}

.final-quote {
  font-family: 'Orbitron', monospace;
  font-size: clamp(1.5rem, 4vw, 3.5rem);
  font-weight: 900;
  color: var(--neon-gold);
  text-shadow: var(--glow-gold);
  letter-spacing: 2px;
  max-width: 800px;
  line-height: 1.3;
  text-transform: uppercase;
}

.final-name {
  font-family: 'Orbitron', monospace;
  font-size: clamp(1.2rem, 3vw, 2rem);
  letter-spacing: 10px;
  color: var(--neon-blue);
  text-shadow: var(--glow-blue);
  animation: namePulse 2s ease-in-out infinite;
}
@keyframes namePulse { 0%,100% { letter-spacing: 10px; } 50% { letter-spacing: 14px; } }

.replay-btn {
  font-family: 'Orbitron', monospace;
  font-size: clamp(0.8rem, 1.5vw, 1rem);
  letter-spacing: 3px;
  color: #000;
  background: linear-gradient(135deg, var(--neon-gold), var(--neon-blue));
  border: none;
  padding: 16px 40px;
  border-radius: 4px;
  cursor: pointer;
  text-transform: uppercase;
  font-weight: 700;
  transition: all 0.3s;
  box-shadow: 0 0 20px rgba(255,215,0,0.4);
  margin-top: 20px;
}
.replay-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 40px rgba(255,215,0,0.8);
}

/* ===============================================================
   FOOTER
   =============================================================== */
#site-footer {
  background: #000008;
  border-top: 1px solid rgba(0,212,255,0.1);
  padding: 30px 20px;
  text-align: center;
}
.footer-text {
  font-family: 'Space Mono', monospace;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
  letter-spacing: 2px;
}
.footer-name {
  color: var(--neon-purple);
  text-shadow: var(--glow-purple);
}

/* ===============================================================
   CAMERA SHAKE
   =============================================================== */
.shake {
  animation: cameraShake 0.3s ease;
}
@keyframes cameraShake {
  0% { transform: translate(0,0); }
  20% { transform: translate(-3px,2px); }
  40% { transform: translate(3px,-1px); }
  60% { transform: translate(-2px,2px); }
  80% { transform: translate(2px,-2px); }
  100% { transform: translate(0,0); }
}

/* ===============================================================
   GLITCH TEXT
   =============================================================== */
.glitch {
  animation: glitch 0.3s linear;
}
@keyframes glitch {
  0% { filter: none; transform: none; }
  25% { filter: hue-rotate(90deg); transform: translateX(-3px); }
  50% { filter: invert(1); transform: translateX(3px) skewX(3deg); }
  75% { filter: hue-rotate(270deg); transform: translateX(-1px); }
  100% { filter: none; transform: none; }
}

/* ===============================================================
   SCROLL BAR
   =============================================================== */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: #000; }
::-webkit-scrollbar-thumb { background: var(--neon-blue); border-radius: 2px; }

/* ===============================================================
   MOBILE
   =============================================================== */
@media (max-width: 768px) {
  .hero-title { font-size: clamp(2rem, 10vw, 4rem); }
  #polaroid-grid { min-height: 1000px; }
  .polaroid img { height: 120px; }
  .flip-page { width: 90vw; height: 65vw; }
}

/* ===============================================================
   NEON FLICKER ANIMATION
   =============================================================== */
@keyframes neonFlicker {
  0%,19%,21%,23%,25%,54%,56%,100% { opacity: 1; }
  20%,24%,55% { opacity: 0.4; }
}

/* ===============================================================
   BEAT DROP EFFECT
   =============================================================== */
.beat-pulse {
  animation: beatPulse 0.3s ease;
}
@keyframes beatPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.06); }
  100% { transform: scale(1); }
}

/* ===============================================================
   ENTRY EXIT TRANSITION
   =============================================================== */
#entry-screen.exit {
  animation: entryExit 1s ease forwards;
}
@keyframes entryExit {
  0% { opacity: 1; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); filter: brightness(3); }
  100% { opacity: 0; transform: scale(1.2); pointer-events: none; }
}

/* ===============================================================
   SECTION TRANSITIONS
   =============================================================== */
section {
  position: relative;
  z-index: 2;
}
