/* ============================================
   GABI BIRTHDAY SITE - 2000s AESTHETIC 💜
   ============================================ */

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

:root {
  --pink: #FF69B4;
  --hot-pink: #FF1493;
  --purple: #9400D3;
  --electric-blue: #00BFFF;
  --gold: #FFD700;
  --lime: #39FF14;
  --bg-dark: #0a0010;
  --neon-pink: #FF007F;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg-dark);
  color: #fff;
  font-family: 'Press Start 2P', 'Comic Sans MS', cursive;
  overflow-x: hidden;
  cursor: crosshair;
}

/* ---- MUSIC BUTTON ---- */
#musicBtn {
  position: fixed;
  top: 12px;
  right: 12px;
  z-index: 9999;
  background: var(--hot-pink);
  border: 3px solid var(--gold);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 0 12px var(--hot-pink);
  transition: transform 0.2s;
}
#musicBtn:hover { transform: scale(1.2); }

/* ---- SPARKLE CANVAS ---- */
#sparkleCanvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 8888;
}


/* ---- STARS OVERLAY ---- */
#starsOverlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 10;
  overflow: hidden;
}

/* ---- MARQUEE ---- */
.marquee-wrap {
  position: absolute;
  left: 0; right: 0;
  z-index: 200;
  background: linear-gradient(90deg, var(--hot-pink), var(--purple), var(--electric-blue), var(--hot-pink));
  background-size: 300%;
  animation: gradientShift 4s linear infinite;
  padding: 6px 0;
  font-size: 12px;
  font-family: 'Press Start 2P', cursive;
  letter-spacing: 1px;
  color: #fff;
  text-shadow: 1px 1px 2px #000;
  border-top: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
}
.top-marquee { top: 0; }
.bottom-marquee { bottom: 0; }

@media (max-width: 600px) {
  .marquee-wrap { font-size: 9px; }
}

/* ---- HERO SECTION ---- */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden; /* keeps marquees clipped */
}

/* ---- BACKGROUND CAROUSEL (full site, lateral scroll) ---- */
#bgCarousel {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

#carouselTrack {
  display: flex;
  height: 100%;
  align-items: stretch;
  gap: 4px;
  will-change: transform;
}

.carousel-img {
  height: 100%;
  width: 280px;
  flex-shrink: 0;
  object-fit: cover;
  object-position: center;
  opacity: 0.75;
  pointer-events: none;
  user-select: none;
  display: block;
}

#carouselOverlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  background: radial-gradient(
    ellipse at center,
    rgba(10,0,16,0.25) 0%,
    rgba(10,0,16,0.45) 100%
  );
  pointer-events: none;
}

/* ---- HERO BOX ---- */
.hero-box {
  position: relative;
  z-index: 50;
  text-align: center;
  padding: 60px 24px 80px;
  max-width: 760px;
  width: 100%;
}

/* ---- GLITTER TITLE ---- */
.main-title {
  font-family: 'Press Start 2P', cursive;
  font-size: clamp(22px, 5vw, 52px);
  line-height: 1.5;
  text-transform: uppercase;
  letter-spacing: 2px;
  position: relative;
  display: inline-block;
}

.glitter-text {
  background: linear-gradient(
    90deg,
    #FF69B4, #FF1493, #FFD700, #FF69B4, #9400D3, #00BFFF, #FF69B4
  );
  background-size: 400%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 2.5s linear infinite;
  filter: drop-shadow(0 0 18px rgba(255, 105, 180, 0.9));
}

/* Glitter sparkle pseudo-elements */
.glitter-text::before {
  content: attr(data-text);
  position: absolute;
  top: 0; left: 0;
  background: linear-gradient(
    120deg,
    transparent 20%,
    rgba(255,255,255,0.85) 50%,
    transparent 80%
  );
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: glitterShine 1.8s linear infinite;
  pointer-events: none;
}

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

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  100% { background-position: 400% 50%; }
}

/* ---- STAR ROW ---- */
.star-row {
  color: var(--gold);
  font-size: 14px;
  margin: 16px 0;
  animation: starPulse 1.5s ease-in-out infinite;
  text-shadow: 0 0 10px var(--gold);
}
@keyframes starPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.97); }
}

/* ---- CENTER PHOTO ---- */
.center-photo {
  width: min(260px, 70vw);
  height: min(260px, 70vw);
  object-fit: cover;
  border-radius: 50%;
  border: 5px solid var(--gold);
  box-shadow:
    0 0 0 3px var(--hot-pink),
    0 0 30px var(--hot-pink),
    0 0 60px rgba(255, 20, 147, 0.4);
  display: block;
  margin: 20px auto 24px;
  animation: photoPulse 3s ease-in-out infinite;
}

@keyframes photoPulse {
  0%, 100% { box-shadow: 0 0 0 3px var(--hot-pink), 0 0 30px var(--hot-pink), 0 0 60px rgba(255,20,147,0.4); }
  50%       { box-shadow: 0 0 0 3px var(--gold),     0 0 40px var(--gold),     0 0 80px rgba(255,215,0,0.5); }
}

/* ---- SECONDARY TEXTS ---- */
.secondary-texts {
  margin: 24px 0 20px;
}

.msg {
  font-family: 'VT323', 'Comic Sans MS', cursive;
  font-size: clamp(26px, 5vw, 42px);
  line-height: 1.6;
  margin: 8px 0;
  text-shadow: 2px 2px 0 #000, 0 0 12px currentColor;
}
.msg1 { color: var(--hot-pink); animation: wobble 2s ease-in-out infinite; }
.msg2 { color: var(--electric-blue); animation: wobble 2.4s ease-in-out infinite reverse; }
.msg3 { color: var(--gold); animation: wobble 1.8s ease-in-out infinite; }

@keyframes wobble {
  0%, 100% { transform: rotate(-1deg) scale(1); }
  50% { transform: rotate(1deg) scale(1.04); }
}

/* ---- COUNTER BOX ---- */
.counter-box {
  margin-top: 20px;
  padding: 10px 20px;
  border: 3px dashed var(--gold);
  display: inline-block;
  background: rgba(0,0,0,0.5);
  font-size: 11px;
  color: var(--gold);
}

/* ---- BLINK ---- */
.blink-text {
  animation: blink 0.9s step-start infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* ---- RAINBOW TEXT ---- */
.rainbow-text {
  background: linear-gradient(90deg, #FF0000, #FF7F00, #FFFF00, #00FF00, #0000FF, #8B00FF, #FF0000);
  background-size: 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 1.5s linear infinite;
}

/* ---- SCROLL HINT ---- */
.scroll-hint {
  position: absolute;
  bottom: 52px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  font-size: 10px;
  color: var(--gold);
  text-shadow: 0 0 8px var(--gold);
}

/* ============================================
   PRESENT SECTION
   ============================================ */
#presentSection {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    repeating-linear-gradient(
      45deg,
      rgba(148, 0, 211, 0.06) 0px,
      rgba(148, 0, 211, 0.06) 2px,
      transparent 2px,
      transparent 20px
    ),
    radial-gradient(ellipse at 20% 80%, rgba(255, 20, 147, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(0, 191, 255, 0.08) 0%, transparent 60%);
  position: relative;
  overflow: hidden;
}

.present-wrapper {
  text-align: center;
  padding: 40px 24px;
  max-width: 520px;
  width: 100%;
  z-index: 10;
}

.scam-header {
  font-size: clamp(16px, 4vw, 28px);
  color: var(--hot-pink);
  text-shadow: 0 0 20px var(--hot-pink), 0 0 40px var(--hot-pink);
  margin-bottom: 24px;
}

.present-gif {
  width: min(240px, 70vw);
  height: auto;
  filter: drop-shadow(0 0 20px var(--gold));
  margin: 0 auto 24px;
  display: block;
}

.bounce {
  animation: bounce 0.7s ease-in-out infinite alternate;
}
@keyframes bounce {
  from { transform: translateY(0) scale(1); }
  to   { transform: translateY(-16px) scale(1.05); }
}

.scam-text {
  font-family: 'Press Start 2P', cursive;
  font-size: clamp(12px, 3vw, 20px);
  line-height: 1.8;
  color: #fff;
  text-shadow: 2px 2px 0 #000;
  margin-bottom: 28px;
}

.btn-2000s {
  display: inline-block;
  padding: 14px 28px;
  font-family: 'Press Start 2P', cursive;
  font-size: clamp(12px, 2.5vw, 16px);
  cursor: pointer;
  border: none;
  background: linear-gradient(135deg, var(--hot-pink), var(--purple));
  color: #fff;
  text-shadow: 1px 1px 0 #000;
  box-shadow:
    0 0 0 3px var(--gold),
    0 0 0 5px var(--hot-pink),
    0 0 20px var(--hot-pink),
    4px 4px 0 #000;
  border-radius: 4px;
  transition: transform 0.15s, box-shadow 0.15s;
  text-decoration: none;
  animation: btnPulse 1.2s ease-in-out infinite alternate;
}

.btn-2000s:hover {
  transform: scale(1.08) rotate(-1deg);
  box-shadow:
    0 0 0 3px var(--gold),
    0 0 0 5px var(--hot-pink),
    0 0 35px var(--hot-pink),
    4px 4px 0 #000;
}

@keyframes btnPulse {
  from { box-shadow: 0 0 0 3px var(--gold), 0 0 0 5px var(--hot-pink), 0 0 14px var(--hot-pink), 4px 4px 0 #000; }
  to   { box-shadow: 0 0 0 3px var(--gold), 0 0 0 5px var(--hot-pink), 0 0 32px var(--hot-pink), 4px 4px 0 #000; }
}

.small-print {
  font-size: 8px;
  color: rgba(255,255,255,0.4);
  margin-top: 14px;
  font-family: Arial, sans-serif;
}

/* ============================================
   MODAL
   ============================================ */
#modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 16px;
  overflow-y: auto;
}
#modal.hidden { display: none; }

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(4px);
}

.modal-box {
  position: relative;
  z-index: 1;
  background: linear-gradient(145deg, #1a0030, #0d001a);
  border: 4px solid var(--gold);
  box-shadow:
    0 0 0 2px var(--hot-pink),
    0 0 40px var(--hot-pink),
    inset 0 0 30px rgba(148,0,211,0.3);
  border-radius: 8px;
  padding: 32px 24px;
  text-align: center;
  max-width: 440px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  animation: modalPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modalPop {
  from { transform: scale(0.4) rotate(-8deg); opacity: 0; }
  to   { transform: scale(1) rotate(0deg); opacity: 1; }
}

.modal-stars {
  font-size: 18px;
  margin: 8px 0 16px;
  letter-spacing: 4px;
}

.modal-gif {
  width: min(160px, 50vw);
  height: auto;
  margin: 0 auto 16px;
  display: block;
  border-radius: 8px;
  border: 3px solid var(--hot-pink);
}

.modal-photo {
  width: min(200px, 65vw);
  height: auto;
  display: block;
  margin: 0 auto 16px;
  border-radius: 12px;
  border: 4px solid var(--gold);
  box-shadow: 0 0 20px var(--hot-pink), 0 0 40px rgba(255,20,147,0.3);
}

.modal-title {
  font-family: 'Press Start 2P', cursive;
  font-size: clamp(18px, 5vw, 30px);
  color: var(--gold);
  text-shadow: 0 0 16px var(--gold);
  margin-bottom: 16px;
}

.modal-text {
  font-family: 'Press Start 2P', cursive;
  font-size: clamp(11px, 2.5vw, 16px);
  line-height: 2;
  color: #fff;
  margin-bottom: 20px;
}

.insta-link {
  display: inline-block;
  color: var(--hot-pink);
  text-decoration: none;
  font-size: clamp(14px, 3vw, 22px);
  text-shadow: 0 0 14px var(--hot-pink);
  border-bottom: 2px solid var(--hot-pink);
  animation: wobble 1.5s ease-in-out infinite;
}
.insta-link:hover {
  color: var(--gold);
  text-shadow: 0 0 14px var(--gold);
  border-color: var(--gold);
}

.btn-close {
  background: linear-gradient(135deg, #333, #111);
  margin-top: 8px;
  font-size: 12px;
}

/* ============================================
   RESPONSIVE TWEAKS
   ============================================ */
@media (max-width: 480px) {
  .float-gif { display: none; }
  .hero-box { padding: 50px 16px 70px; }
  .modal-box { padding: 24px 16px; }
}
