.festival-timeline {
  max-width: 820px;
  margin: 3rem auto;
  position: relative;
  padding-left: 2.5rem;
}

.festival-timeline::before {
  content: "";
  position: absolute;
  left: 0.75rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--primary), var(--accent));
  opacity: 0.5;
}

.timeline-item {
  position: relative;
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

.timeline-marker {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid rgba(243, 229, 168, 0.6);
  position: absolute;
  left: -2rem;
  top: 0.35rem;
  box-shadow: 0 0 12px rgba(243, 229, 168, 0.6);
}

.timeline-body {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 1rem 1.4rem;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: baseline;
  gap: 1.4rem;
  flex-wrap: wrap;
}

.timeline-label {
  display: flex;
  gap: 0.75rem;
  align-items: baseline;
  margin: 0;
  flex-wrap: wrap;
}

.timeline-year {
  font-size: 1.2rem;
  font-weight: 800;
  color: rgba(243, 229, 168, 0.95);
  letter-spacing: 1px;
}

.timeline-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fefefe;
}

.timeline-body p {
  color: var(--muted-contrast);
  margin: 0;
  flex: 1;
}

@media (max-width: 640px) {
  .timeline-body {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
  }
  .timeline-body p {
    width: 100%;
  }
}
/* NUV_Yuva.css — Final combined stylesheet
    Complete file: base, hero, components, committee pyramid, footer, toast
  */

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

/* ---------------- Theme variables ---------------- */
:root {
  /* Enchanted Forest theme variables */
  --forest-deep: #2f6e6a; /* Deep Teal Green */
  --moss: #62775b; /* Muted Sage Green */
  --berry: #cc604b; /* Soft Terracotta */
  --sunlit: #f3e5a8; /* Pastel Cream Yellow */
  --mauve: #95586a; /* Dusty Mauve */
  --mist: #e3e1d7; /* Warm Pale Grey */
  --bg-dark: #0d1a17; /* Forest canopy background */
  --glass-alpha: 0.16;

  /* mapped legacy variables used across the site */
  --primary: var(--forest-deep);
  --secondary: var(--moss);
  --accent: var(--berry);
  --background: var(--bg-dark);
  --foreground: var(--mist);
  --muted: rgba(227, 225, 215, 0.72);
  --muted-contrast: rgba(227, 225, 215, 0.82);
  --border: rgba(98, 119, 91, 0.22);
  --gradient: linear-gradient(135deg, var(--primary), var(--accent));

  /* layout values */
  --nav-height: 64px;
  --nuv-toast-bottom-offset: 1rem; /* JS will override to account for footer */
}

/* HTML - Smooth Scrolling */
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 1rem);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(98, 119, 91, 0.5) transparent;
}

/* Smooth scrollbar styling for webkit browsers */
html::-webkit-scrollbar {
  width: 10px;
}

html::-webkit-scrollbar-track {
  background: rgba(13, 26, 23, 0.5);
}

html::-webkit-scrollbar-thumb {
  background: linear-gradient(
    180deg,
    rgba(47, 110, 106, 0.8),
    rgba(149, 88, 106, 0.6)
  );
  border-radius: 10px;
  border: 2px solid rgba(13, 26, 23, 0.5);
}

html::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(
    180deg,
    rgba(47, 110, 106, 1),
    rgba(149, 88, 106, 0.8)
  );
}

/* Body */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, sans-serif;
  background-color: var(--background);
  background-image: radial-gradient(
      circle at 20% 15%,
      rgba(47, 110, 106, 0.25),
      transparent 55%
    ),
    radial-gradient(circle at 78% 8%, rgba(149, 88, 106, 0.18), transparent 45%),
    radial-gradient(
      circle at 50% 85%,
      rgba(243, 229, 168, 0.12),
      transparent 60%
    );
  color: var(--foreground);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  overscroll-behavior-y: smooth;
  overscroll-behavior-x: contain;
}

/* Enhanced scroll performance for scrollable containers */
.scrollable,
[class*="scroll"],
.container {
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: -20%;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(
    circle at var(--glow-x, 30%) var(--glow-y, 10%),
    rgba(243, 229, 168, 0.12),
    transparent 55%
  );
  mix-blend-mode: screen;
  /* filter: blur(40px); Removed for performance - using solid color instead */
  opacity: 0.7;
  animation: forestGlowDrift 28s ease-in-out infinite alternate;
}

body::after {
  --glow-x: 70%;
  --glow-y: 85%;
  background: radial-gradient(
    circle at var(--glow-x) var(--glow-y),
    rgba(149, 88, 106, 0.18),
    transparent 50%
  );
  animation-duration: 36s;
  opacity: 0.5;
}

/* Hide body content while loading */
body.loading {
  overflow: hidden;
}

/* ---------------- Loading Screen ---------------- */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
      circle at 20% 20%,
      rgba(47, 110, 106, 0.35),
      transparent 55%
    ),
    radial-gradient(
      circle at 80% 15%,
      rgba(149, 88, 106, 0.28),
      transparent 50%
    ),
    linear-gradient(135deg, #08130f 0%, #0f1f1a 50%, #08130f 100%);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.3s ease-out, visibility 0.3s ease-out;
  visibility: visible;
}

.loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loading-content {
  text-align: center;
  position: relative;
  z-index: 10;
}

.loading-logo {
  margin-bottom: 1.5rem;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: logoSlideIn 0.4s ease-out;
}

.loading-logo img {
  max-width: 300px;
  width: clamp(200px, 40vw, 400px);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 20px rgba(0, 0, 0, 0.8)) drop-shadow(0 4px 12px rgba(0, 0, 0, 0.6)) brightness(1.1) contrast(1.1);
  position: relative;
  z-index: 1;
}

.logo-text {
  font-size: clamp(3rem, 10vw, 6rem);
  font-weight: 900;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin: 0.2rem 0;
  animation: logoSlideIn 0.4s ease-out;
  text-shadow: 0 0 40px rgba(243, 229, 168, 0.35);
}

.logo-text:nth-child(2) {
  animation-delay: 0.2s;
  animation-fill-mode: both;
}

@keyframes logoSlideIn {
  from {
    opacity: 0;
    transform: translateY(-30px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.loading-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  color: rgba(243, 229, 168, 0.85);
  margin-bottom: 2.5rem;
  animation: fadeInUp 0.4s ease-out 0.2s both;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.loading-progress {
  max-width: 300px;
  margin: 0 auto;
  animation: fadeInUp 0.4s ease-out 0.2s both;
}

.loading-bar {
  width: 100%;
  height: 4px;
  background: rgba(243, 229, 168, 0.2);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 1rem;
  position: relative;
}

.loading-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #2f6e6a, #cc604b);
  border-radius: 10px;
  width: 0%;
  transition: width 0.3s ease;
  box-shadow: 0 0 22px rgba(243, 229, 168, 0.45);
  position: relative;
  overflow: hidden;
}

.loading-bar-fill::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

.loading-percentage {
  font-size: 1rem;
  color: #d6cb96;
  font-weight: 600;
  text-align: center;
}

.loading-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: #d6cb96;
  border-radius: 50%;
  opacity: 0.6;
  animation: float 3s ease-in-out infinite;
  box-shadow: 0 0 12px rgba(243, 229, 168, 0.5);
}

.particle:nth-child(1) {
  left: 20%;
  animation-delay: 0s;
  animation-duration: 4s;
}

.particle:nth-child(2) {
  left: 40%;
  animation-delay: 0.5s;
  animation-duration: 3.5s;
}

.particle:nth-child(3) {
  left: 60%;
  animation-delay: 1s;
  animation-duration: 4.5s;
}

.particle:nth-child(4) {
  left: 80%;
  animation-delay: 1.5s;
  animation-duration: 3s;
}

.particle:nth-child(5) {
  left: 50%;
  animation-delay: 2s;
  animation-duration: 4s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(100vh) translateX(0) scale(0);
    opacity: 0;
  }
  10% {
    opacity: 0.6;
  }
  50% {
    transform: translateY(50vh) translateX(20px) scale(1);
    opacity: 0.8;
  }
  90% {
    opacity: 0.6;
  }
  100% {
    transform: translateY(-10vh) translateX(-20px) scale(0);
    opacity: 0;
  }
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* ---------------- Navbar ---------------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  min-height: var(--nav-height);
  background: linear-gradient(
    180deg,
    rgba(5, 17, 16, 0.85),
    rgba(5, 17, 16, 0.45)
  );
  /* backdrop-filter: blur(8px); Removed for performance */
  border-bottom: 1px solid rgba(243, 229, 168, 0.08);
  z-index: 1200;
  padding: 0;
  display: flex;
  align-items: center;
  transition: background 0.2s, opacity 0.3s ease-out;
}
.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  height: 100%;
  padding: 0.85rem 0;
}
.logo {
  display: flex;
  align-items: center;
  height: 100%;
}
.logo a {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.logo img {
  height: 45px;
  width: auto;
  object-fit: contain;
  transition: transform 0.3s ease, filter 0.3s ease;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.7)) drop-shadow(0 0 4px rgba(0, 0, 0, 0.5)) brightness(1.15) contrast(1.15);
  position: relative;
  z-index: 1;
}
.logo img:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.8)) drop-shadow(0 0 8px rgba(0, 0, 0, 0.6)) brightness(1.2) contrast(1.2);
}
.nav-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}
.nav-links a {
  color: var(--foreground);
  text-decoration: none;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  transition: color 0.18s, background 0.18s;
}

.navbar .btn {
  padding: 0.65rem 1.4rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.08);
  color: #fdfbf5;
  /* backdrop-filter: blur(16px) saturate(150%); Removed for performance */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.navbar .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}
.nav-links a:hover {
  color: var(--sunlit);
  background: rgba(47, 110, 106, 0.18);
}
.btn {
  padding: 0.75rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
  color: #fdfbf5;
  /* backdrop-filter: blur(18px) saturate(140%); Removed for performance */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease, opacity 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

/* Ensure anchor tags styled as buttons work properly */
a.btn {
  text-decoration: none;
  border: none;
}
.btn:hover,
.btn:focus-visible {
  transform: translateY(-3px);
  box-shadow: inset 0 0 28px rgba(255, 255, 255, 0.24),
    0 18px 36px rgba(149, 88, 106, 0.28);
  border-color: rgba(255, 255, 255, 0.55);
}

.btn:focus-visible {
  outline: 2px solid rgba(243, 229, 168, 0.6);
  outline-offset: 4px;
}

.btn-primary {
  background: linear-gradient(
      125deg,
      rgba(47, 110, 106, 0.45),
      rgba(149, 88, 106, 0.38),
      rgba(243, 229, 168, 0.4)
    ),
    rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.45);
}

.btn-secondary {
  background: linear-gradient(
      135deg,
      rgba(98, 119, 91, 0.35),
      rgba(47, 110, 106, 0.18)
    ),
    rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #f4f2ea;
}
.mobile-menu {
  display: none;
  background: none;
  border: 0;
  color: var(--foreground);
  font-size: 1.25rem;
  cursor: pointer;
}

/* mobile nav */
#mobileNav {
  display: none;
  position: absolute;
  top: 60px;
  right: 10px;
  width: 220px;
  background: rgba(5, 17, 16, 0.95);
  border-radius: 10px;
  padding: 0.5rem;
  z-index: 1300;
}
#mobileNav a {
  color: var(--mist);
  display: block;
  padding: 0.6rem;
  text-decoration: none;
  border-radius: 6px;
}
#mobileNav a:hover {
  background: rgba(98, 119, 91, 0.25);
}

/* When JS toggles `.active`, show the mobile nav */
#mobileNav.active {
  display: block;
}

/* navbar scrolled state */
.navbar.nuv-scrolled {
  background: linear-gradient(
    180deg,
    rgba(5, 20, 17, 0.95),
    rgba(5, 20, 17, 0.75)
  );
  box-shadow: 0 12px 26px rgba(5, 10, 9, 0.65),
    0 0 30px rgba(47, 110, 106, 0.24);
  height: var(--nav-height);
  min-height: var(--nav-height);
}

/* ---------------- Hero ---------------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-top: var(--nav-height);
  background-image: linear-gradient(
      180deg,
      rgba(13, 30, 28, 0.66),
      rgba(13, 30, 28, 0.46)
    ),
    url("yuva.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  overflow: hidden;
  /* Use a separate blurred/dimmed background layer via ::before. Keep built-in hero image unfiltered so text remains sharp. */
  filter: none;
}
.hero::before {
  /* Blurred + desaturated copy of the background placed above the base image.
      This allows the center hole (mask) to reveal the original image below
      while dimming/blurred parts remain everywhere else. */
  content: "";
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;

  /* Mirror the hero background here and apply the blur/dim */
  background-image: linear-gradient(
      180deg,
      rgba(13, 30, 28, 0.66),
      rgba(13, 30, 28, 0.46)
    ),
    url("yuva.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  /* filter: blur(10px) saturate(0.5) brightness(0.5); Removed for performance */
  opacity: 0.6;

  /* Mask cuts a transparent hole where the spotlight is centered; that shows the original (unblurred) hero under the hole. */
  --spot-size: 320px;
  --spot-darkness: 0.9;
  -webkit-mask-image: radial-gradient(
    circle var(--spot-size) at var(--spotlight-x, 50%) var(--spotlight-y, 50%),
    transparent 0%,
    rgba(0, 0, 0, var(--spot-darkness)) 70%
  );
  mask-image: radial-gradient(
    circle var(--spot-size) at var(--spotlight-x, 50%) var(--spotlight-y, 50%),
    transparent 0%,
    black 60%
  );
}

/* Subtle white highlight to increase perceived brightness of the spotlight center */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
  --spotlight-brightness: 0; /* controlled by JS */
  background: radial-gradient(
    circle var(--spot-size) at var(--spotlight-x, 50%) var(--spotlight-y, 50%),
    rgba(255, 255, 255, var(--spotlight-brightness)) 0%,
    rgba(255, 255, 255, 0) 40%
  );
  mix-blend-mode: screen;
  opacity: 1;
  transition: --spotlight-brightness 0.12s ease, opacity 0.12s ease;
  will-change: opacity, transform;
}
.hero-content {
  text-align: center;
  z-index: 10;
  position: relative;
  max-width: 920px;
  margin: 2rem auto;
  padding: 1rem;
  color: var(--foreground);
  text-shadow: 0 6px 18px rgba(0, 0, 0, 0.6);
  /* Ensure text stays sharp and crisp - no blur applied */
  filter: blur(0);
  backdrop-filter: none;
}
.badge {
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(47, 110, 106, 0.45),
    rgba(149, 88, 106, 0.18)
  );

  /* nothing extra here - hero ::after is defined above */
  border: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--sunlit);
  font-weight: 700;
  margin-bottom: 1.25rem;
}
.hero h1 {
  font-size: clamp(3rem, 8vw, 5rem);
  line-height: 1.02;
  margin-bottom: 0.6rem;
  -webkit-text-stroke: 0.35px rgba(0, 0, 0, 0.45);
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-logo {
  max-width: 500px;
  width: clamp(250px, 50vw, 600px);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 30px rgba(0, 0, 0, 0.9)) drop-shadow(0 8px 20px rgba(0, 0, 0, 0.7)) drop-shadow(0 0 12px rgba(0, 0, 0, 0.5)) brightness(1.15) contrast(1.15);
  position: relative;
  z-index: 11;
}
.text-gradient {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
  text-align: center;
  margin: 0 auto;
}
.hero .text-gradient {
  background: none !important;
  color: #d6cb96 !important;
  -webkit-text-fill-color: #d6cb96 !important;
  text-shadow: 0 10px 28px rgba(0, 0, 0, 0.65);
}
.subtitle {
  font-size: clamp(1.3rem, 3.6vw, 1.9rem);
  color: rgba(250, 250, 250, 0.94);
  margin-bottom: 1rem;
}
.hero p {
  color: var(--muted-contrast);
  max-width: 700px;
  margin: 0 auto 1.6rem;
}

/* hero glow (inserted by JS) */
.hero-glow {
  position: absolute;
  inset: -10% -20% auto -20%;
  height: 60%;
  z-index: 6;
  /* filter: blur(40px) saturate(1.02); Removed for performance */
  opacity: 0.6;
  pointer-events: none;
  background: radial-gradient(
    closest-side,
    rgba(243, 229, 168, 0.18),
    rgba(47, 110, 106, 0.12),
    transparent 60%
  );
  transform: translateY(-8%);
  animation: slowFloat 8s ease-in-out infinite;
}

/* ================= Registration Color Splash ================= */
.color-splash {
  --rs-size: 300px; /* radius of splash */
  --rs-opacity: 0; /* 0=hidden, 1=visible */
  --rs-color: rgba(47, 110, 106, 0.28); /* default color */
  --rs-color2: rgba(149, 88, 106, 0.22);
  --rs-color3: rgba(243, 229, 168, 0.18);
  --rs-x: 50%;
  --rs-y: 50%;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: linear-gradient(
    180deg,
    rgba(6, 12, 12, 0.12),
    rgba(6, 12, 12, 0.04)
  );
}

.color-splash::before {
  /* Background color / image layer already present; this pseudo-element produces the animated color splash */
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background-image: radial-gradient(
      circle var(--rs-size) at var(--rs-x) var(--rs-y),
      var(--rs-color) 0%,
      transparent 40%
    ),
    radial-gradient(
      circle calc(var(--rs-size) * 0.6) at calc(var(--rs-x) + 40px)
        calc(var(--rs-y) - 30px),
      var(--rs-color2) 0%,
      transparent 40%
    ),
    radial-gradient(
      circle calc(var(--rs-size) * 0.4) at calc(var(--rs-x) - 40px)
        calc(var(--rs-y) + 20px),
      var(--rs-color3) 0%,
      transparent 40%
    );
  mix-blend-mode: screen;
  opacity: var(--rs-opacity);
  transition: opacity 0.2s linear, transform 0.2s linear;
  will-change: opacity, transform;
}

/* Keep .color-splash content readable above the splash */
.color-splash > .container {
  z-index: 2;
  position: relative;
}

/* Hover state -> show splash */
.color-splash.splash-active::before {
  opacity: 1;
}

/* Prefers reduced motion: show static centered splash on hover instead of tracking */
@media (prefers-reduced-motion: reduce) {
  .color-splash::before {
    transition: none;
  }
  .color-splash.splash-active::before {
    --rs-x: 50%;
    --rs-y: 50%;
  }
}

/* event details + countdown */
.event-details {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  align-items: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.event-detail {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  color: rgba(250, 250, 250, 0.86);
}
.countdown {
  display: flex;
  gap: 1.25rem;
  justify-content: center;
  margin: 2rem 0;
  flex-wrap: wrap;
}
.countdown-item {
  text-align: center;
  padding: 1.2rem;
  background: rgba(47, 110, 106, 0.22);
  border: 1px solid rgba(243, 229, 168, 0.12);
  border-radius: 12px;
  min-width: 92px;
}
.countdown-value {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary);
}
.countdown-label {
  font-size: 0.78rem;
  color: var(--sunlit);
  text-transform: uppercase;
}

/* btn group */
.btn-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  margin-top: 1.6rem;
  flex-wrap: wrap;
}

/* ripple element (added by JS) */
.ripple {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  opacity: 0.95;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.18);
  transition: transform 0.42s cubic-bezier(0.2, 0.9, 0.3, 1);
}
/* ================= Button enhancement applied to original liquid buttons ================= */
.liquid-btn.with-splash {
  --btn-x: 50%;
  --btn-y: 50%;
  --btn-splash-size: 160px;
  --btn-splash-length: 260px;
  --btn-splash-thickness: 36px;
  --btn-splash-opacity: 0;
  --btn-color-1: rgba(47, 110, 106, 0.22); /* forest-deep tint */
  --btn-color-2: rgba(98, 119, 91, 0.18); /* moss tint */
  --btn-color-3: rgba(243, 229, 168, 0.16); /* sunlit tint */
  --shimmer-offset: -120%;
  position: relative;
  isolation: isolate;
}
.liquid-btn.with-splash .liquid-content {
  position: relative;
  z-index: 3;
  pointer-events: none;
}

/* pointer-following color splash */
.liquid-btn.with-splash::before {
  /* elongated streak anchored at pointer position and rotated by --rot */
  content: "";
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--btn-splash-length);
  height: var(--btn-splash-thickness);
  transform: translate(-50%, -50%) rotate(var(--rot, 0deg));
  border-radius: 999px;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    var(--btn-color-1) 0%,
    var(--btn-color-2) 55%,
    rgba(0, 0, 0, 0) 100%
  );
  opacity: var(--btn-splash-opacity);
  transition: opacity 160ms linear, transform 220ms linear;
  will-change: opacity, transform;
  mix-blend-mode: normal; /* dark streak should be clearly visible */
}

/* shimmer sweep */
.liquid-btn.with-splash::after {
  content: "";
  position: absolute;
  z-index: 2;
  left: 0;
  top: 0;
  bottom: 0;
  width: 28%;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(243, 229, 159, 0.04),
    rgba(233, 233, 228, 0.12),
    rgba(243, 229, 159, 0.04)
  );
  transform: translateX(var(--shimmer-offset));
  filter: blur(8px);
  opacity: 0.9;
}
.liquid-btn.with-splash:hover::after,
.liquid-btn.with-splash:focus::after {
  animation: fancy-shimmer 900ms ease-in-out forwards;
}

@keyframes fancy-shimmer {
  0% {
    transform: translateX(-120%);
  }
  60% {
    transform: translateX(120%);
  }
  100% {
    transform: translateX(120%);
  }
}

/* particle elements generated by JS */
.liquid-btn-particle {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  z-index: 4;
  pointer-events: none;
  will-change: transform, opacity;
  background: var(--accent);
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  transition: transform 520ms cubic-bezier(0.2, 0.9, 0.3, 1), opacity 520ms ease;
}

/* active state to show splash */
.liquid-btn.with-splash.splash-active::before {
  opacity: 1;
}

/* Transparent glass button baseline */
.liquid-btn.with-splash {
  background: rgba(255, 255, 255, var(--glass-alpha));
  border: 1px solid var(--border);
  /* backdrop-filter: blur(8px) saturate(1.08); Removed for performance */
  color: inherit;
}

.liquid-btn.with-splash .liquid-content {
  position: relative;
  z-index: 4;
}

/* Reduced motion safety */
@media (prefers-reduced-motion: reduce) {
  .liquid-btn.with-splash::after {
    animation: none;
    transform: none;
    opacity: 0.4;
  }
  .liquid-btn-particle {
    transition: none;
    opacity: 0;
  }
  .liquid-btn.with-splash {
    transition: none;
  }
}

/* ---------------- Sections ---------------- */
section {
  padding: 5rem 0;
}
.section-title {
  font-size: clamp(2rem, 4.2vw, 3rem);
  text-align: center;
  margin-bottom: 0.6rem;
  -webkit-text-stroke: 0.4px rgba(0, 0, 0, 0.55);
  text-shadow: 0 8px 20px rgba(0, 0, 0, 0.65);
  color: #d6cb96;
}

/* Center all headings */
h1,
h2,
h3,
h4,
h5,
h6 {
  text-align: center !important;
  display: block !important;
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Fix text-gradient to work with centered headings - parent h2 centers it */
h2 .text-gradient,
h3 .text-gradient,
h1 .text-gradient {
  display: inline-block;
}
.section-subtitle {
  text-align: center;
  color: var(--muted-contrast);
  max-width: 680px;
  margin: 0 auto 2rem;
}

/* ---------------- Events grid ---------------- */
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.6rem;
  margin-top: 2rem;
}
.event-card {
  background: linear-gradient(
    180deg,
    rgba(5, 15, 14, 0.45),
    rgba(8, 18, 16, 0.55)
  );
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 1.6rem;
  transition: transform 0.2s ease, opacity 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  position: relative;
  overflow: visible;
  will-change: transform;
}
.event-icon {
  width: 54px;
  height: 54px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    135deg,
    rgba(47, 110, 106, 0.75),
    rgba(149, 88, 106, 0.65),
    rgba(243, 229, 168, 0.7)
  );
  font-size: 1.35rem;
  margin-bottom: 1rem;
  transition: transform 0.2s ease;
  filter: brightness(1.15) contrast(1.1);
  box-shadow: 0 4px 12px rgba(243, 229, 168, 0.25);
}
.event-card:hover .event-icon {
  transform: translateY(-6px) rotate(-6deg);
}
.event-title {
  font-size: 1.2rem;
  margin-bottom: 0.45rem;
  font-weight: 700;
  text-align: left !important;
}

.section-title.text-gradient {
  background: none !important;
  -webkit-background-clip: initial !important;
  -webkit-text-fill-color: #d6cb96 !important;
  color: #d6cb96 !important;
}
.event-description {
  color: var(--muted-contrast);
  margin-bottom: 0.9rem;
}

/* categories tags */
.categories {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}
.category-tag {
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(243, 229, 168, 0.85);
  color: #1c2a26;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.4px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

/* ---------------- Gallery ---------------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  margin-top: 1.8rem;
}
.gallery-item {
  height: 200px;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  background: linear-gradient(
    135deg,
    rgba(47, 110, 106, 0.25),
    rgba(149, 88, 106, 0.18)
  );
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.2s ease-out, opacity 0.2s ease-out;
}
.gallery-item:hover img {
  transform: scale(1.05);
  /* filter: brightness(1.1); Removed for performance */
}
.gallery-item {
  transition: transform 0.2s ease-out;
}
.gallery-item:hover {
  transform: translateY(-5px);
}
/* Clickable gallery item link */
.gallery-item-link {
  text-decoration: none;
  display: block;
  cursor: pointer;
  position: relative;
}

/* Text overlay for gallery items - text in front */
.gallery-item-link::after,
.gallery-item::after {
  content: attr(data-title);
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.8) 100%);
  color: var(--foreground);
  font-weight: 700;
  font-size: 1.1rem;
  z-index: 3;
  pointer-events: none;
  text-align: center;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

/* Gradient overlay for gallery items */
.gallery-item-link::before,
.gallery-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.45));
  z-index: 2;
  pointer-events: none;
}

/* Removed "View Gallery" hover text - images in background, text in front */

.gallery-item-link:hover {
  transform: translateY(-8px);
  box-shadow: 0 6px 16px rgba(47, 110, 106, 0.25);
}

/* ---------------- Registration Form ---------------- */
.form-container {
  max-width: 640px;
  margin: 0 auto;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.02),
    rgba(10, 10, 10, 0.18)
  );
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.form-container:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(47, 110, 106, 0.28);
  border-color: rgba(243, 229, 168, 0.25);
}
.form-group {
  margin-bottom: 1.25rem;
}
label {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--foreground);
  font-weight: 600;
}
input,
select,
textarea {
  width: 100%;
  padding: 0.72rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--foreground);
  font-size: 1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
input:focus,
select:focus,
textarea:focus {
  outline: none;
  box-shadow: 0 0 0 4px rgba(243, 229, 168, 0.15);
  border-color: var(--accent);
  transform: translateY(-2px);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
input::placeholder,
textarea::placeholder {
  color: rgba(255, 255, 255, 0.56);
}

/* Select dropdown options styling - Enhanced visibility */
select {
  color: #fafafa !important;
  background-color: rgba(10, 10, 10, 0.95) !important;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23fafafa' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2.5rem;
}

/* Style dropdown options - Note: Some browsers have limited option styling support */
select option {
  background-color: #0a0a0a !important;
  color: #fafafa !important;
  padding: 0.75rem !important;
  font-size: 1rem !important;
}

/* Selected option */
select option:checked {
  background: linear-gradient(
    135deg,
    rgba(47, 110, 106, 0.4),
    rgba(149, 88, 106, 0.25)
  ) !important;
  color: #fff !important;
}

/* Hover state (limited browser support) */
select option:hover {
  background-color: rgba(47, 110, 106, 0.3) !important;
  color: #fff !important;
}

/* ---------------- Committee Section ---------------- */
.committee-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  margin-top: 1.8rem;
  opacity: 1;
  visibility: visible;
}
.committee-grid > * {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.member-card {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.02),
    rgba(10, 10, 10, 0.12)
  );
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  padding: 1rem;
  text-align: left;
  display: flex;
  gap: 1rem;
  align-items: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  transition: transform 0.28s ease, box-shadow 0.28s ease,
    border-color 0.28s ease;
  opacity: 1;
  visibility: visible;
}
.member-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 16px 40px rgba(47, 110, 106, 0.28);
  border-color: rgba(243, 229, 168, 0.25);
}
.member-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient);
  color: #fff;
  font-weight: 800;
  font-size: 1.05rem;
  flex-shrink: 0;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.45);
}
.member-name {
  font-weight: 700;
  color: var(--foreground);
}
.member-role {
  color: var(--muted-contrast);
  font-size: 0.92rem;
}

/* ---------------- Committee Pyramid Frames (JS generated) ---------------- */
.committee-pyramid {
  display: none;
  flex-direction: column;
  gap: 1.6rem;
  align-items: center;
  margin-top: 2rem;
  padding: 0 1rem;
}
.pyramid-row {
  display: flex;
  gap: 1.25rem;
  justify-content: center;
  align-items: flex-start;
  width: 100%;
  position: relative;
  padding-top: 1rem;
  padding-bottom: 0.5rem;
}
.pyramid-row::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 0.1rem;
  width: 2px;
  height: 0.6rem;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.06),
    rgba(255, 255, 255, 0.02)
  );
  opacity: 0.9;
  pointer-events: none;
}
.pyramid-row.top::after {
  display: none;
}

/* committee frame base */
.committee-frame {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.02),
    rgba(10, 10, 10, 0.16)
  );
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 14px;
  padding: 1rem;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  min-height: 110px;
  transition: transform 0.28s cubic-bezier(0.2, 0.9, 0.3, 1), box-shadow 0.28s;
  max-width: 600px;
  margin: 0 auto;
}
.committee-frame:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.55);
}
.committee-role {
  font-size: 1.05rem;
  font-weight: 800;
  padding: 0.45rem 0.7rem;
  border-radius: 10px;
  display: inline-block;
  background: linear-gradient(
    90deg,
    rgba(47, 110, 106, 0.22),
    rgba(149, 88, 106, 0.12)
  );
  -webkit-text-stroke: 0.2px rgba(0, 0, 0, 0.35);
}
.committee-role.crown::before {
  content: "👑";
  margin-right: 0.5rem;
  display: inline-block;
  transform: translateY(-1px);
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.35));
}
.committee-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-top: 0.25rem;
}
.committee-person {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  padding: 0.28rem 0.35rem;
  border-radius: 8px;
  transition: background 0.18s;
}
.committee-person:hover {
  background: rgba(255, 255, 255, 0.02);
}
.person-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45);
  flex-shrink: 0;
}
.person-name {
  font-weight: 700;
  color: var(--foreground);
  font-size: 0.95rem;
}

/* sizing per pyramid level — JS will apply level-* classes */
.pyramid-row.level-0 .committee-frame {
  max-width: 420px;
  width: 420px;
}
.pyramid-row.level-1 .committee-frame {
  width: 48%;
  min-width: 260px;
}
.pyramid-row.level-2 .committee-frame {
  width: 34%;
  min-width: 220px;
}
.pyramid-row.level-3 .committee-frame {
  width: 28%;
  min-width: 200px;
}
.pyramid-row.level-4 .committee-frame {
  width: 22%;
  min-width: 180px;
}
.pyramid-row.level-5 .committee-frame {
  width: 18%;
  min-width: 160px;
}
.pyramid-row > .committee-frame:only-child {
  width: auto;
  max-width: 520px;
}

/* collapsed (desktop only - disabled on mobile) */
.committee-frame.collapsed .committee-list {
  max-height: 0;
  overflow: hidden;
  pointer-events: none;
  transition: max-height 0.36s cubic-bezier(0.2, 0.9, 0.3, 1);
  padding-top: 0;
}

/* Desktop > 860px:
   Only hide list + show pyramid if JS added the "committee-pyramid-ready" flag on body */
@media (min-width: 861px) {
  body.committee-pyramid-ready .committee-grid {
    display: none !important;
  }

  body.committee-pyramid-ready .committee-pyramid {
    display: flex !important;
    width: 100%;
    flex-direction: column;
    gap: 1.8rem;
  }
}

/* Mobile: Show pyramid but style as vertical list */
@media (max-width: 860px) {
  .committee-grid {
    display: none !important;
  }

  .committee-pyramid {
    display: flex !important;
    width: 100%;
    flex-direction: column;
    gap: 1rem;
    padding: 0 1rem;
  }

  .pyramid-row {
    flex-direction: column;
    width: 100% !important;
    max-width: none !important;
    gap: 1rem;
  }

  .committee-frame {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 0 !important;
    min-height: auto;
  }

  /* Reduce detailed styling for mobile performance */
  .committee-frame:hover {
    transform: none;
  }
}

/* reveal animation shim */
.committee-frame.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 520ms cubic-bezier(0.2, 0.9, 0.3, 1), transform 520ms;
}
.committee-frame.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ---------------- Sponsors Section ---------------- */
#sponsors {
  padding: 4rem 0;
  overflow: hidden;
}
.sponsors-subsection {
  margin-top: 3rem;
}
.sponsors-subsection:first-of-type {
  margin-top: 2rem;
}
.sponsors-subtitle {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--foreground);
  text-align: center;
  margin-bottom: 2rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
/* Static sponsors layout for Title Sponsors */
.sponsors-static {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  flex-wrap: wrap;
  padding: 2rem 0;
}
.sponsor-item-title {
  min-width: 280px;
  height: 160px;
  flex: 0 0 auto;
}
.sponsors-slider-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 2rem 0;
}
.sponsors-slider {
  width: 100%;
  overflow: hidden;
}
.sponsors-track {
  display: flex;
  gap: 2rem;
  width: fit-content;
  animation: slideSponsors 15s linear infinite;
}
.sponsors-slider-past .sponsors-track {
  animation: slideSponsorsReverse 18s linear infinite;
}
.sponsor-item {
  flex-shrink: 0;
  min-width: 200px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.03),
    rgba(10, 10, 10, 0.15)
  );
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  overflow: hidden;
}
.sponsor-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  filter: brightness(0.9) contrast(1.1);
  transition: filter 0.3s ease, transform 0.3s ease;
}
.sponsor-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(47, 110, 106, 0.25);
  border-color: rgba(243, 229, 168, 0.2);
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.05),
    rgba(10, 10, 10, 0.2)
  );
}
.sponsor-item:hover img {
  filter: brightness(1) contrast(1.15);
  transform: scale(1.05);
}
@keyframes slideSponsors {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}
@keyframes slideSponsorsReverse {
  0% {
    transform: translateX(-50%);
  }
  100% {
    transform: translateX(0);
  }
}
/* Pause animation on hover */
.sponsors-slider-wrapper:hover .sponsors-track {
  animation-play-state: paused;
}
@media (max-width: 768px) {
  .sponsor-item {
    min-width: 150px;
    height: 100px;
    padding: 0.75rem;
  }
  .sponsor-item-title {
    min-width: 200px;
    height: 120px;
  }
  .sponsors-static {
    gap: 2rem;
  }
  .sponsors-track {
    gap: 1.5rem;
  }
  .sponsors-subtitle {
    font-size: 1.25rem;
  }
}

/* ---------------- Footer + Toast (full styling) ---------------- */
footer {
  background: linear-gradient(
    135deg,
    rgba(6, 15, 14, 0.96),
    rgba(18, 9, 11, 0.9)
  );
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  padding: 3rem 0 1.5rem;
  margin-top: 3rem;
  position: relative;
  z-index: 1;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}
.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.4rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}
.footer-section h3,
.footer-section h4 {
  margin-bottom: 0.6rem;
}
footer a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  transition: color 0.18s ease, text-decoration 0.18s ease;
}
footer a:hover {
  color: var(--primary);
  text-decoration: underline;
}
.social-links {
  display: flex;
  gap: 0.8rem;
  margin-top: 1rem;
}
.social-link {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
}
.footer-bottom {
  text-align: center;
  margin-top: 2rem;
  color: rgba(255, 255, 255, 0.55);
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
}

/* ---------- Registration toast (visuals) ---------- */
/* bottom offset is controlled by JS via --nuv-toast-bottom-offset */
.nuv-register-toast {
  position: fixed;
  left: 1rem;
  bottom: 1rem;
  display: flex;
  gap: 1rem;
  align-items: center;
  background: linear-gradient(
    90deg,
    rgba(18, 18, 20, 0.98),
    rgba(10, 10, 12, 0.98)
  );
  padding: 0.6rem 0.75rem;
  border-radius: 12px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.6);
  z-index: 2147483647;
  transform: translateY(6px);
  opacity: 0;
  transition: transform 0.28s ease, opacity 0.28s ease;
  min-width: 260px;
  max-width: calc(100% - 3rem);
}
.nuv-register-toast.show {
  transform: translateY(0);
  opacity: 1;
}
.nuv-register-toast .toast-avatar {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.05rem;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45);
  flex-shrink: 0;
}
.nuv-register-toast .toast-body {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  color: var(--foreground);
  flex: 1 1 auto;
  min-width: 0;
}
.nuv-register-toast .toast-title {
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
}
.nuv-register-toast .toast-sub {
  font-size: 0.92rem;
  color: var(--muted-contrast);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nuv-register-toast .toast-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-left: 0.25rem;
}
.nuv-register-toast .toast-actions .btn {
  padding: 0.6rem 1rem;
  font-size: 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.08);
  color: #fdfbf5;
  box-shadow: inset 0 0 18px rgba(255, 255, 255, 0.18),
    0 8px 20px rgba(0, 0, 0, 0.25);
}
.nuv-register-toast .maybe-btn {
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted-contrast);
}
.nuv-register-toast .register-btn {
  background: linear-gradient(
      120deg,
      rgba(47, 110, 106, 0.7),
      rgba(149, 88, 106, 0.6)
    ),
    rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.5);
}

/* small toast (non-blocking) */
.nuv-toast {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  background: rgba(20, 20, 20, 0.95);
  color: #fff;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
  z-index: 4000;
  opacity: 0;
  transform: translateY(12px);
  transition: all 0.28s;
}
.nuv-toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* ---------------- Utilities & Animations ---------------- */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.fade-in {
  animation: fadeIn 0.3s ease-out;
}

/* Enhanced entrance animations */
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes rotateIn {
  from {
    opacity: 0;
    transform: rotate(-10deg) scale(0.9);
  }
  to {
    opacity: 1;
    transform: rotate(0deg) scale(1);
  }
}

/* Animation classes for page elements */
.animate-on-scroll {
  opacity: 0;
  transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}

.animate-on-scroll.animated {
  opacity: 1;
}

.slide-in-left {
  transform: translateX(-50px);
}

.slide-in-left.animated {
  transform: translateX(0);
}

.slide-in-right {
  transform: translateX(50px);
}

.slide-in-right.animated {
  transform: translateX(0);
}

.scale-in {
  transform: scale(0.8);
}

.scale-in.animated {
  transform: scale(1);
}

.fade-in-up {
  transform: translateY(30px);
}

.fade-in-up.animated {
  transform: translateY(0);
}

/* Stagger animation for grid items */
.events-grid > *,
.gallery > * {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}

.events-grid > *.animated,
.gallery > *.animated {
  opacity: 1;
  transform: translateY(0);
}

@keyframes slowFloat {
  0% {
    transform: translateY(-10%) scale(1);
    opacity: 0.7;
  }
  50% {
    transform: translateY(0%) scale(1.03);
    opacity: 0.85;
  }
  100% {
    transform: translateY(-10%) scale(1);
    opacity: 0.7;
  }
}
.pulse {
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

@keyframes forestGlowDrift {
  0% {
    transform: translate3d(-5%, -3%, 0) scale(1);
  }
  50% {
    transform: translate3d(5%, 4%, 0) scale(1.05);
  }
  100% {
    transform: translate3d(-4%, 2%, 0) scale(0.98);
  }
}

@keyframes forestSparklePulse {
  0% {
    opacity: 0;
    transform: scale(0.4);
  }
  40% {
    opacity: 0.9;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(0.2);
  }
}

.text-strong {
  color: #fff !important;
  text-shadow: 0 6px 18px rgba(0, 0, 0, 0.7);
  -webkit-text-stroke: 0.5px rgba(0, 0, 0, 0.5);
}

/* sparkles from JS */
.sparkle {
  position: absolute;
  background: linear-gradient(90deg, #fff, #fff);
  opacity: 0.06;
  border-radius: 100%;
  transform: translate3d(0, 0, 0);
}

.forest-sparkles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 20;
  overflow: hidden;
  mix-blend-mode: screen;
}

.forest-sparkle {
  position: absolute;
  width: var(--sparkle-size, 4px);
  height: var(--sparkle-size, 4px);
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(243, 229, 168, 0.95),
    rgba(243, 229, 168, 0)
  );
  box-shadow: 0 0 12px rgba(243, 229, 168, 0.8);
  animation: forestSparklePulse var(--sparkle-duration, 6s) ease-in-out infinite;
  opacity: 0;
}

/* respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------------- Responsive ---------------- */
@media (max-width: 1200px) {
  .gallery {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 860px) {
  .nav-links {
    display: none;
  }
  .mobile-menu {
    display: block;
  }
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .gallery {
    grid-template-columns: 1fr;
  }
  .hero {
    background-attachment: scroll !important;
    background-image: linear-gradient(
        180deg,
        rgba(6, 6, 10, 0.78),
        rgba(6, 6, 10, 0.6)
      ),
      url("yuva.jpg");
  }
  .hero::before {
    background: linear-gradient(
      180deg,
      rgba(10, 10, 10, 0.78),
      rgba(10, 10, 10, 0.6)
    );
  }
  .countdown-item {
    min-width: 80px;
    padding: 0.9rem;
  }
  .countdown-value {
    font-size: 1.45rem;
  }

  /* committee pyramid becomes stacked (if pyramid was shown) */
  .pyramid-row {
    display: block;
    padding: 0;
  }
  .pyramid-row::after {
    display: none;
  }
  .pyramid-row .committee-frame {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 0.75rem 0;
  }
  .committee-frame {
    padding: 0.9rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.38);
  }
  .person-avatar {
    width: 36px;
    height: 36px;
    font-size: 0.85rem;
  }
  .person-name {
    font-size: 0.92rem;
  }
  .committee-frame:hover {
    transform: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.38);
  }
  /* All committee members always visible on mobile - no dropdown/collapse */
  .committee-frame.collapsed .committee-list {
    max-height: none !important;
    padding-top: 0.75rem !important;
    overflow: visible !important;
  }
  /* Hide toggle buttons on mobile since they're not needed */
  .committee-toggle {
    display: none !important;
  }
  /* Ensure committee lists are always visible */
  .committee-list {
    max-height: none !important;
    overflow: visible !important;
  }
}

/* further tiny adjustments for very small viewports */
@media (max-width: 420px) {
  .person-avatar {
    width: 34px;
    height: 34px;
    font-size: 0.78rem;
  }
  .committee-role {
    font-size: 0.98rem;
    padding: 0.45rem 0.5rem;
  }
  .committee-frame {
    padding: 0.75rem;
  }
  .nuv-register-toast {
    left: 0.5rem;
    right: 0.5rem;
    bottom: var(--nuv-toast-bottom-offset);
  }
  .hero h1 {
    font-size: clamp(2.2rem, 9.5vw, 3rem);
  }
}

/* ================= Color Splash Follow (opt-in) ================= */
.liquid-btn.with-splash.splash-follow {
  --x: 50%;
  --y: 50%;
  --dx: 0;
  --dy: 0;
  --splash-size: 140px;
  position: relative;
  overflow: visible;
}

.liquid-btn.with-splash.splash-follow::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1; /* behind .liquid-content which typically has higher z-index */
  pointer-events: none;
  background: radial-gradient(
    circle var(--splash-size) at var(--x) var(--y),
    rgba(47, 110, 106, 0.32) 0%,
    rgba(149, 88, 106, 0.2) 32%,
    rgba(243, 229, 168, 0.16) 58%,
    transparent 72%
  );
  mix-blend-mode: screen;
  opacity: 0;
  transform: translate(calc(var(--dx) * 0.6px), calc(var(--dy) * 0.6px));
  transition: opacity 210ms cubic-bezier(0.2, 0.9, 0.3, 1),
    transform 160ms linear;
  will-change: opacity, transform;
}

.liquid-btn.with-splash.splash-follow:hover::before,
.liquid-btn.with-splash.splash-follow:focus::before {
  opacity: 1;
  transition-duration: 140ms;
}

@media (prefers-reduced-motion: reduce) {
  .liquid-btn.with-splash.splash-follow::before {
    transition: none;
    opacity: 0.16 !important;
    transform: translate(0, 0) !important;
  }
}

/* ================= Registration: white background variant ================= */
section#registration.enchanted-register {
  position: relative;
  overflow: hidden;
  padding: 5rem 0;
  text-align: center;
  color: #2b2418;
  background: radial-gradient(
      circle at 25% 20%,
      rgba(243, 229, 168, 0.6),
      rgba(243, 229, 168, 0)
    ),
    radial-gradient(circle at 80% 0%, rgba(149, 88, 106, 0.2), transparent 55%),
    linear-gradient(
      180deg,
      rgba(238, 231, 203, 0.92),
      rgba(236, 223, 176, 0.85)
    );
}

.enchanted-register__wash {
  position: absolute;
  inset: -20% -10% -30% -10%;
  background: radial-gradient(
    circle,
    rgba(47, 110, 106, 0.35),
    rgba(149, 88, 106, 0.15),
    transparent 70%
  );
  filter: blur(48px);
  opacity: 0.5;
  z-index: 1;
  pointer-events: none;
  animation: forestGlowDrift 18s ease-in-out infinite alternate;
}

#registration #registration-ribbon {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
  mix-blend-mode: normal;
  opacity: 0.85;
}

@media (prefers-reduced-motion: reduce) {
  #registration #registration-ribbon {
    display: none;
  }
}

#registration .container {
  position: relative;
  z-index: 3;
  text-align: center;
}

#registration .section-title {
  color: #293835 !important;
  -webkit-text-fill-color: #293835 !important;
  text-shadow: none;
}

#registration .section-subtitle,
#registration p {
  color: #293835;
  text-shadow: none;
}

.cta-btn-wrap {
  margin-top: 2rem;
}

.enchanted-glass-btn {
  position: relative;
  padding: 0.95rem 3rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: linear-gradient(
      140deg,
      rgba(255, 255, 255, 0.8),
      rgba(243, 229, 168, 0.55)
    ),
    rgba(255, 255, 255, 0.35);
  color: #1f1d19;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  /* backdrop-filter: blur(20px) saturate(180%); Removed for performance */
  box-shadow: 0 8px 20px rgba(47, 110, 106, 0.2);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  overflow: hidden;
}

.enchanted-glass-btn::before {
  content: "";
  position: absolute;
  inset: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  filter: blur(18px);
  opacity: 0.45;
  pointer-events: none;
}

.enchanted-glass-btn:hover,
.enchanted-glass-btn:focus-visible {
  transform: translateY(-4px);
  box-shadow: inset 0 0 34px rgba(255, 255, 255, 0.7),
    0 25px 50px rgba(149, 88, 106, 0.35);
}

.enchanted-glass-btn:focus-visible {
  outline: 2px solid rgba(47, 110, 106, 0.5);
  outline-offset: 4px;
}
