
:root {
  /* Paleta Vibrant Wonderland */
  --color-magenta: #ff007f;
  --color-magenta-glow: rgba(255, 0, 127, 0.6);
  --color-turquoise: #00f0ff;
  --color-turquoise-glow: rgba(0, 240, 255, 0.6);
  --color-emerald: #00ff66;
  --color-emerald-glow: rgba(0, 255, 102, 0.6);
  --color-gold: #ffd700;
  --color-gold-glow: rgba(255, 215, 0, 0.6);
  
  --color-bg-base: #0f0518; /* Dark violet base */
  --color-text-light: #ffffff;
  
  --font-title: 'Cinzel', serif;
  --font-body: 'Montserrat', sans-serif;
  
  --transition-smooth: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

body {
  font-family: var(--font-body);
  background-color: var(--color-bg-base);
  color: var(--color-text-light);
  overflow-x: hidden;
  position: relative;
  /* Animating gradient background for extra vibrance */
  background: linear-gradient(135deg, #0f0518 0%, #2b0536 50%, #051923 100%);
  background-size: 200% 200%;
  animation: bgPulse 15s ease infinite;
}

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

/* Glassmorphism Utilities */
.glass {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-card {
  background: rgba(20, 5, 30, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 15px;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
  padding: 1.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.7);
}

.glowing-border {
  border: 1px solid var(--color-gold);
  box-shadow: 0 0 15px var(--color-gold-glow), inset 0 0 10px var(--color-gold-glow);
}

.outline-emerald {
  border: 1px solid var(--color-emerald);
  box-shadow: 0 0 15px var(--color-emerald-glow);
}

/* Typography Colors */
h1, h2, h3 { font-family: var(--font-title); font-weight: 700; }
.text-magenta { color: var(--color-magenta); text-shadow: 0 0 10px var(--color-magenta-glow); }
.text-turquoise { color: var(--color-turquoise); text-shadow: 0 0 10px var(--color-turquoise-glow); }
.text-emerald { color: var(--color-emerald); text-shadow: 0 0 10px var(--color-emerald-glow); }
.text-gold { color: var(--color-gold); text-shadow: 0 0 10px var(--color-gold-glow); }

a { text-decoration: none; color: var(--color-text-light); }

/* Particles Container */
#particles-container {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
}

.particle {
  position: absolute;
  font-size: 2rem;
  opacity: 0.6;
  text-shadow: 0 0 10px rgba(255,255,255,0.5);
  animation: floatParticle 10s linear infinite;
}

@keyframes floatParticle {
  0% { transform: translateY(110vh) rotate(0deg); opacity: 0; }
  10% { opacity: 0.8; }
  90% { opacity: 0.8; }
  100% { transform: translateY(-10vh) rotate(360deg); opacity: 0; }
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0; width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 1rem;
  z-index: 100;
  transition: var(--transition-smooth);
}

.logo-container { display: flex; align-items: center; cursor: pointer; }
.logo-container .logo { height: 35px; width: auto; }
.nav-links { display: flex; gap: 1rem; align-items: center; }
.nav-links a {
  font-family: var(--font-title);
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 1px;
  position: relative;
  transition: color 0.3s ease;
}
.nav-links a:hover { color: var(--color-turquoise); }
.nav-links a::after {
  content: ''; position: absolute;
  width: 0%; height: 2px;
  bottom: -4px; left: 0;
  background-color: var(--color-turquoise);
  transition: width 0.3s ease;
}
.nav-links a:hover::after { width: 100%; }

/* Hero Section */
.hero-section {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  z-index: 1;
}

.parallax-bg {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100vh;
  background-image: url('./assets/vibrant_hero_1779761871153.webp');
  background-size: cover;
  background-position: center center;
  z-index: -1;
  filter: saturate(1.3) brightness(0.85);
}

.hero-content {
  text-align: center;
  z-index: 2;
  padding: 1.5rem 1rem;
  max-width: 800px;
  margin: 60px 15px 0 15px; /* Push down on mobile to reveal background */
}

.hero-title {
  font-size: clamp(2rem, 8vw, 3.5rem);
  color: var(--color-gold);
  text-shadow: 0 4px 20px rgba(255, 215, 0, 0.8);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero-title span {
  display: inline-block;
  opacity: 0;
}

.hero-subtitle {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-turquoise);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 1rem;
  text-shadow: 0 2px 10px rgba(0, 240, 255, 0.8);
}

.hero-desc { font-size: 1rem; opacity: 0.95; }

/* Scroll Indicator */
.scroll-indicator {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  animation: bounce 2s infinite;
}
.scroll-indicator span { font-size: 0.8rem; font-family: var(--font-title); letter-spacing: 1px; color: var(--color-gold); }
.mouse {
  width: 24px; height: 36px;
  border: 2px solid var(--color-gold);
  border-radius: 12px; position: relative;
}
.mouse::before {
  content: ''; position: absolute;
  top: 6px; left: 50%; transform: translateX(-50%);
  width: 4px; height: 6px;
  background-color: var(--color-turquoise);
  border-radius: 2px;
  animation: scrollWheel 1.5s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-10px); }
  60% { transform: translateY(-5px); }
}
@keyframes scrollWheel {
  0% { transform: translate(-50%, 0); opacity: 1; }
  100% { transform: translate(-50%, 15px); opacity: 0; }
}

/* Content Sections (Story & Effort) */
.content-section {
  padding: 4rem 1rem;
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
}

.container {
  max-width: 900px;
  text-align: center;
  width: 100%;
}

.section-title {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
}

.body-text {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  color: #e0e0e0;
}

.body-text strong {
  color: var(--color-gold);
  font-weight: 600;
}

/* Event Section */
.event-section { padding: 3rem 1rem; position: relative; z-index: 2; }
.event-section .container { margin: 0 auto; text-align: center; }

/* Running Rabbit */
.rabbit-track {
  width: 100%;
  height: 100px;
  position: relative;
  overflow: hidden;
  margin-bottom: 1rem;
}
.white-rabbit {
  position: absolute;
  top: 0;
  left: -150px;
  filter: drop-shadow(0 0 10px var(--color-turquoise-glow));
}
.white-rabbit-img {
  height: 88px;
  width: auto;
  mix-blend-mode: screen; /* Removes black background */
  object-fit: contain;
}

/* Pocket Watch Countdown */
.countdown-wrapper { display: flex; justify-content: center; margin-bottom: 2.5rem; }
.pocket-watch {
  display: flex; gap: 1rem;
  padding: 1rem 1rem;
  border-radius: 50px;
  flex-wrap: wrap;
  justify-content: center;
}
.time-box { display: flex; flex-direction: column; align-items: center; min-width: 60px; }
.time-box span {
  font-family: var(--font-title);
  font-size: 2rem;
  color: var(--color-turquoise);
  text-shadow: 0 0 15px var(--color-turquoise-glow);
}
.time-box label { font-size: 0.8rem; text-transform: uppercase; color: var(--color-gold); letter-spacing: 1px; }

.event-info {
  display: flex; flex-direction: column; gap: 1rem;
  margin: 0 auto 3rem auto;
  max-width: 500px;
}
.event-info p { font-size: 1.2rem; font-family: var(--font-title); letter-spacing: 1px; }
.event-info .time { font-size: 1.8rem; font-weight: bold; }

.cta-container { max-width: 600px; margin: 0 auto; padding: 1.5rem; }
.presale-announcement { font-size: 1.1rem; color: var(--color-gold); font-weight: 700; margin-bottom: 0.5rem; }
.small-text { font-size: 0.9rem; opacity: 0.8; }

/* Gallery Section */
.gallery-section { padding: 5rem 0; text-align: center; position: relative; z-index: 2; }
.gallery-desc { margin-bottom: 2rem; font-style: italic; opacity: 0.8; font-size: 1.1rem; }

.character-swiper { width: 100%; padding: 2rem 0 4rem 0; }
.swiper-slide {
  width: 280px; height: 420px;
  transition: transform 0.3s ease;
}
.swiper-slide-active { transform: scale(1.05); }

.character-card {
  width: 100%; height: 100%;
  padding: 0; overflow: hidden;
  position: relative;
}
.card-img-wrapper { width: 100%; height: 100%; }
.card-img-wrapper img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.character-card:hover .card-img-wrapper img { transform: scale(1.1); }
.character-card h3 {
  position: absolute; bottom: 40px; left: 0; width: 100%;
  text-align: center; font-size: 1.6rem; z-index: 2;
}
.character-card p {
  position: absolute; bottom: 15px; left: 0; width: 100%;
  text-align: center; color: var(--color-gold); font-size: 0.9rem;
  text-transform: uppercase; z-index: 2; letter-spacing: 1px;
  font-weight: 600;
}
.character-card::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 100%; height: 60%;
  background: linear-gradient(to top, rgba(15, 5, 24, 0.95), transparent); z-index: 1;
}

.swiper-button-next, .swiper-button-prev { 
  color: var(--color-magenta) !important; 
  text-shadow: 0 0 10px var(--color-magenta-glow); 
}
.swiper-button-next::after {
  content: '❯' !important;
  font-family: sans-serif !important;
  font-weight: bold;
}
.swiper-button-prev::after {
  content: '❮' !important;
  font-family: sans-serif !important;
  font-weight: bold;
}
.swiper-pagination-bullet-active { background: var(--color-turquoise) !important; box-shadow: 0 0 10px var(--color-turquoise-glow); }

/* Closing Text */
.closing-text {
  margin: 2rem auto 0 auto;
  max-width: 800px;
  padding: 2rem 1rem;
}
.closing-text h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
}
.closing-text .body-text {
  margin-bottom: 0;
  font-size: 1.2rem;
}

/* Magical Closing Effect */
.magical-closing {
  padding: 4rem 2rem 8rem 2rem;
  text-align: center;
  position: relative;
  z-index: 2;
  opacity: 0; /* Animated via GSAP */
}
.cheshire-smile-svg {
  width: 250px;
  height: auto;
  margin: 0 auto 1.5rem auto;
  display: block;
  animation: floatSmile 8s ease-in-out infinite;
}
@keyframes floatSmile {
  0%   { transform: translateY(0) scale(1); opacity: 0; filter: drop-shadow(0 0 0px #fff); }
  20%  { transform: translateY(-5px) scale(1.05); opacity: 1; filter: drop-shadow(0 0 15px #fff); }
  50%  { transform: translateY(-10px) scale(1.02); opacity: 1; filter: drop-shadow(0 0 20px #fff); }
  80%  { transform: translateY(0) scale(1); opacity: 0; filter: drop-shadow(0 0 0px #fff); }
  100% { transform: translateY(0) scale(1); opacity: 0; filter: drop-shadow(0 0 0px #fff); }
}

/* Call to Action Button */
.cta-button {
  background-color: var(--color-magenta);
  color: var(--color-text-light);
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.1rem;
  padding: 12px 35px;
  border-radius: 30px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  display: inline-block;
  box-shadow: 0 4px 15px var(--color-magenta-glow);
  transition: var(--transition-smooth);
  border: 1px solid rgba(255, 0, 127, 0.5);
  text-decoration: none;
}
.cta-button:hover {
  background-color: transparent;
  color: var(--color-magenta);
  box-shadow: 0 0 25px var(--color-magenta-glow);
  transform: translateY(-3px);
}

.pulse-glow { animation: pulseGlow 2s infinite; }
@keyframes pulseGlow {
  0% { box-shadow: 0 0 0 0 rgba(255, 0, 127, 0.7); }
  70% { box-shadow: 0 0 0 15px rgba(255, 0, 127, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 0, 127, 0); }
}

/* Payment Section */
.payment-section { padding: 4rem 1rem; text-align: center; position: relative; z-index: 2; }
.payment-card {
  max-width: 800px; margin: 0 auto; padding: 2.5rem;
  background: rgba(10, 5, 20, 0.6);
}
.payment-form { display: flex; flex-direction: column; gap: 1.5rem; text-align: left; }
.input-row { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.input-group { flex: 1; min-width: 250px; display: flex; flex-direction: column; gap: 0.5rem; }
.input-group label { color: var(--color-text-light); font-weight: 600; font-size: 0.95rem; }
.input-group input {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff; padding: 12px 15px; border-radius: 8px;
  font-family: var(--font-body); font-size: 1rem;
  transition: var(--transition-smooth);
}
.input-group input:focus {
  outline: none; border-color: var(--color-emerald);
  box-shadow: 0 0 10px rgba(0, 255, 170, 0.3);
  background: rgba(255, 255, 255, 0.15);
}

.total-box {
  background: rgba(0, 0, 0, 0.4); border: 1px solid var(--color-gold);
  border-radius: 8px; padding: 1.2rem; display: flex; justify-content: space-between;
  align-items: center; margin-top: 0.5rem;
}
.total-label { font-size: 1.2rem; font-weight: 600; color: #fff; }
.total-amount { font-size: 1.8rem; font-weight: 700; text-shadow: 0 0 10px rgba(255, 215, 0, 0.5); }

.upload-area {
  border: 2px dashed rgba(255, 255, 255, 0.3);
  border-radius: 12px; padding: 2rem; text-align: center;
  position: relative; cursor: pointer; transition: var(--transition-smooth);
  background: rgba(0, 0, 0, 0.2); margin-top: 1rem;
}
.upload-area:hover, .upload-area.dragover {
  border-color: var(--color-magenta); background: rgba(255, 0, 127, 0.1);
}
.upload-area input[type="file"] {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  opacity: 0; cursor: pointer; z-index: 10;
}
.upload-content { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; pointer-events: none; }
.upload-icon { font-size: 2.5rem; }
.upload-text { font-weight: 600; color: #fff; }
.upload-hint { font-size: 0.85rem; color: rgba(255,255,255,0.6); }

.submit-btn { width: 100%; margin-top: 1rem; cursor: pointer; font-size: 1.2rem; }

.success-message {
  text-align: center; padding: 2rem 1rem;
  animation: fadeIn 0.5s ease forwards;
}
.success-icon { font-size: 4rem; margin-bottom: 1rem; }

@media (max-width: 600px) {
  .input-row { flex-direction: column; gap: 1rem; }
  .total-box { flex-direction: column; gap: 0.5rem; text-align: center; }
  .payment-card { padding: 1.5rem; }
}

/* Location Section */
.location-section { padding: 4rem 1rem; text-align: center; position: relative; z-index: 2; }
.map-container {
  max-width: 800px; margin: 0 auto; padding: 2rem;
  background: rgba(10, 5, 20, 0.6);
  border: 1px solid var(--color-magenta);
}
.map-wrapper {
  border-radius: 10px; overflow: hidden;
  box-shadow: 0 0 20px rgba(0, 255, 170, 0.2);
}

/* Elegant Footer */
.elegant-footer {
  background: linear-gradient(to top, rgba(10, 5, 20, 0.95), rgba(10, 5, 20, 0.4));
  border-top: 2px solid rgba(255, 0, 127, 0.3);
  padding: 6rem 1rem 1rem 1rem;
  margin-top: 4rem;
  text-align: center;
}
.elegant-footer .footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 0 auto 2rem auto;
  text-align: center;
  width: 100%;
}
.footer-edition, .footer-logo-wrapper, .footer-social {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}
.footer-logo {
  max-width: 220px;
  filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.2));
  transition: var(--transition-smooth);
}
.footer-logo:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 0 25px rgba(255, 255, 255, 0.5));
}
.social-icons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  width: 100%;
}
.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  color: #fff;
  transition: var(--transition-smooth);
  border: 2px solid rgba(255, 255, 255, 0.15);
}
.facebook-btn { background: #1877F2; }
.instagram-btn { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }

.social-btn:hover {
  transform: translateY(-5px) scale(1.1);
  border-color: #fff;
}
.facebook-btn:hover { box-shadow: 0 0 30px rgba(24, 119, 242, 0.8); }
.instagram-btn:hover { box-shadow: 0 0 30px rgba(220, 39, 67, 0.8); }

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 2rem;
  margin-top: 4rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.9rem;
  opacity: 0.7;
}

.author-link { color: var(--color-turquoise); font-weight: 600; transition: color 0.3s ease; text-shadow: 0 0 5px var(--color-turquoise-glow); }
.author-link:hover { color: var(--color-magenta); text-shadow: 0 0 5px var(--color-magenta-glow); }

.privacy-link {
  color: var(--color-gold);
  text-decoration: underline;
  font-size: 0.95rem;
  font-weight: 600;
  transition: var(--transition-smooth);
}
.privacy-link:hover {
  color: #fff;
  text-shadow: 0 0 10px var(--color-gold);
}

/* Modals */
.modal-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(5px);
}
.modal-overlay.active { opacity: 1; pointer-events: auto; }
.modal-content {
  background: rgba(15, 5, 25, 0.95);
  max-width: 600px; width: 90%;
  padding: 2.5rem; border-radius: 15px;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s ease;
  max-height: 80vh;
  overflow-y: auto;
}
.modal-overlay.active .modal-content { transform: translateY(0); }
.close-modal {
  position: absolute; top: 15px; right: 20px;
  font-size: 2rem; color: #fff; cursor: pointer;
  transition: color 0.3s ease;
}
.close-modal:hover { color: var(--color-magenta); text-shadow: 0 0 10px var(--color-magenta-glow); }
.modal-body p { font-size: 0.95rem; line-height: 1.6; color: var(--color-text-light); }

/* Invited Academies */
.academies-section { position: relative; z-index: 2; padding: 4rem 1rem; }
.academies-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
}
.academy-card {
  width: 100%;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 1.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.academy-card.outline-gold { border: 1px solid var(--color-gold); box-shadow: 0 0 15px var(--color-gold-glow); }
.academy-card.outline-magenta { border: 1px solid var(--color-magenta); box-shadow: 0 0 15px var(--color-magenta-glow); }
.academy-logo-wrapper {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 1.5rem;
  box-shadow: inset 0 0 10px rgba(255,255,255,0.1);
}
.academy-logo {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.4));
  transition: transform 0.5s ease;
}
.academy-card:hover .academy-logo {
  transform: scale(1.1) rotate(3deg);
}

/* Media Queries (Mobile First -> Desktop) */
@media (min-width: 768px) {
  .navbar { padding: 1rem 2rem; }
  .logo-container .logo { height: 50px; }
  .hero-content { padding: 3rem 2rem; margin: 0 20px; margin-top: 0; }
  .glass-card { padding: 2rem; border-radius: 20px; }
  .content-section { padding: 6rem 2rem; }
  .event-section { padding: 4rem 2rem; }
  .cta-container { padding: 2rem; }
  .closing-text { margin: 4rem auto 0 auto; padding: 3rem 2rem; }
  
  .hero-title { font-size: clamp(3.5rem, 6vw, 4.5rem); }
  .hero-subtitle { font-size: 1.5rem; }
  .hero-desc { font-size: 1.1rem; }
  .nav-links { gap: 2rem; }
  .parallax-bg {
    height: 120%;
    background-attachment: fixed;
  }
  .section-title { font-size: 3rem; }
  .presale-announcement { font-size: 1.2rem; }
  
  .event-info { flex-direction: row; justify-content: center; gap: 3rem; max-width: 800px; }
  .pocket-watch { gap: 2.5rem; padding: 2rem 4rem; flex-wrap: nowrap; }
  .time-box span { font-size: 4rem; }
  .body-text { font-size: 1.25rem; }
  .swiper-slide { width: 350px; height: 500px; }
}
