/* ---------- LOADING SCREEN ---------- */
/* Loading Screen */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #0a0a1a;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease-out;
}

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

.loading-planet {
  width: 80px;
  height: 80px;
  background: linear-gradient(145deg, #9a87ff, #6a5acd);
  border-radius: 50%;
  margin: 0 auto 30px;
  position: relative;
  box-shadow: 0 0 30px rgba(154, 135, 255, 0.5);
  animation: pulse 2s infinite ease-in-out;
}

.loading-orbit {
  width: 120px;
  height: 120px;
  border: 2px dashed rgba(154, 135, 255, 0.3);
  border-radius: 50%;
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  animation: spin 10s linear infinite;
}

.loading-text {
  color: #fff;
  font-family: 'Cinzel Decorative', cursive;
  font-size: 1.8rem;
  margin-top: 40px;
  letter-spacing: 3px;
  text-shadow: 0 0 15px rgba(154, 135, 255, 0.7);
  animation: glow 2s ease-in-out infinite alternate;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

@keyframes spin {
  from { transform: translateX(-50%) rotate(0deg); }
  to { transform: translateX(-50%) rotate(360deg); }
}

@keyframes glow {
  from { text-shadow: 0 0 10px rgba(154, 135, 255, 0.7); }
  to { text-shadow: 0 0 20px rgba(154, 135, 255, 0.9), 0 0 30px rgba(154, 135, 255, 0.5); }
}

/* Second Loading Screen */
.second-loading {
  background: #0a0a1a;
  z-index: 10000; /* Higher z-index to appear above first loading screen */
}

.second-loading .loading-content {
  animation: fadeIn 1s ease-out;
}

.loading-caption {
  color: #fff;
  font-family: 'Orbitron', sans-serif;
  font-size: 1.8rem;
  font-weight: 500;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 3px;
  line-height: 1.4;
  max-width: 80%;
  margin: 0 auto;
  text-shadow: 0 0 15px rgba(154, 135, 255, 0.7);
  animation: glow 2s ease-in-out infinite alternate;
  padding: 20px;
  border: 1px solid rgba(154, 135, 255, 0.3);
  border-radius: 8px;
  background: rgba(10, 10, 26, 0.7);
  box-shadow: 0 0 30px rgba(154, 135, 255, 0.2);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ---------- RESET & BASE ---------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  font-family: 'Roboto Mono', monospace;
  background: #0a0618;
  color: #f5f5f5;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

/* ---------- HEADER & NAVIGATION ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(20, 15, 45, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.site-header.scrolled {
  background: rgba(15, 10, 35, 0.98);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
}

/* Logo/Brand */
.brand {
  z-index: 1001;
}

.header-logo {
  height: 50px;
  transition: transform 0.3s ease;
}

.header-logo:hover {
  transform: scale(1.05);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none; /* Will be shown on mobile */
  background: linear-gradient(135deg, #8a2be2, #5f4dd1);
  border: none;
  border-radius: 8px;
  padding: 0.5rem;
  cursor: pointer;
  z-index: 1002;
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.mobile-menu-toggle .bar {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  margin: 5px auto;
  transition: all 0.3s ease;
  border-radius: 2px;
}

.mobile-menu-toggle[aria-expanded="true"] .bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-menu-toggle[aria-expanded="true"] .bar:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle[aria-expanded="true"] .bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Main Navigation */
.main-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

.nav-link {
  color: #e0e0ff;
  text-decoration: none;
  font-weight: 500;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  font-size: 0.95rem;
}

.nav-link:hover,
.nav-link:focus {
  color: #fff;
  background: rgba(154, 135, 255, 0.15);
}

/* Dropdown Menu */
.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: rgba(30, 25, 60, 0.98);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  min-width: 220px;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 1000;
  padding: 0.5rem 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 0.5rem;
}

.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu .nav-link {
  padding: 0.75rem 1.5rem;
  white-space: nowrap;
  border-radius: 0;
  display: flex;
  justify-content: space-between;
}

.dropdown-menu .nav-link:hover,
.dropdown-menu .nav-link:focus {
  background: rgba(154, 135, 255, 0.2);
  padding-left: 1.75rem;
}

.dropdown-icon {
  margin-left: 0.5rem;
  transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-icon {
  transform: rotate(180deg);
}

/* Register Button */
.nav-cta {
  margin-left: 0.5rem;
}

.nav-button {
  background: linear-gradient(135deg, #8a2be2, #5f4dd1);
  color: white !important;
  padding: 0.75rem 1.5rem !important;
  border-radius: 30px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(90, 72, 209, 0.3);
  display: inline-block;
  text-align: center;
}

.nav-button:hover,
.nav-button:focus {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(90, 72, 209, 0.4);
  background: linear-gradient(135deg, #9b4de0, #6a5acd);
}

/* Mobile Navigation */
@media (max-width: 992px) {
  /* Prevent body scroll when menu is open */
  body.nav-open {
    overflow: hidden;
    height: 100vh;
  }
  
  /* Mobile menu toggle button */
  .mobile-menu-toggle {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: fixed;
    top: 15px;
    right: 15px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #8a2be2, #5f4dd1);
    border: none;
    border-radius: 8px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 1002;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  }
  
  .mobile-menu-toggle .bar {
    display: block;
    width: 24px;
    height: 2px;
    background: white;
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
  }
  
  /* Header styles */
  .site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: rgba(20, 15, 45, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.4s ease;
  }
  
  /* When menu is open */
  .site-header.visible {
    height: 100vh;
    background: rgba(15, 10, 30, 0.99);
  }
  
  /* Main navigation */
  .main-nav {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    transform: translateY(-100%);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 2rem;
    overflow-y: auto;
    z-index: 1001;
    opacity: 0;
    display: none;
  }
  
  .site-header.visible .main-nav {
    transform: translateY(0);
    opacity: 1;
    display: block;
  }
  
  .nav-list {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 0;
  }
  
  .nav-link {
    font-size: 1.2rem;
    padding: 0.8rem 1rem;
    display: block;
    color: #fff;
    border-radius: 6px;
    transition: all 0.3s ease;
  }
  
  .nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
  }
  
  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    padding-left: 1rem;
    margin: 0.5rem 0 0 1rem;
    transform: none;
    display: none;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
  }
  
  .dropdown.active .dropdown-menu {
    display: block;
    animation: fadeIn 0.3s ease;
  }
  
  .dropdown-toggle::after {
    display: none;
  }
  
  @keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
  }
  
  /* Register button in mobile */
  .nav-cta {
    margin: 1rem 0 0;
    width: 100%;
  }
  
  .nav-button {
    display: block;
    width: 100%;
    text-align: center;
    border-radius: 6px;
  }

  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: rgba(0, 0, 0, 0.2);
    border: none;
    border-radius: 6px;
    padding: 0.5rem 0;
    margin: 0.5rem 0 0 1rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
  }

  .dropdown.active .dropdown-menu {
    max-height: 500px;
    margin-bottom: 1rem;
  }

  .dropdown-menu .nav-link {
    padding: 0.75rem 1.5rem 0.75rem 2.5rem;
  }

  .nav-cta {
    margin: 1rem 0 0;
  }

  .nav-button {
    display: block;
    width: 100%;
    padding: 1rem !important;
  }
}

/* Small devices */
@media (max-width: 480px) {
  .header-container {
    padding: 0.75rem 1.5rem;
  }

  .header-logo {
    height: 44px;
  }

  .main-nav {
    width: 90%;
    padding: 5rem 1.5rem 2rem;
  }
}

/* Body lock when menu is open */
body.nav-open {
  overflow: hidden;
}

/* Screen reader only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: #9a87ff;
  transition: width 0.3s ease, left 0.3s ease;
  transform: translateX(-50%);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link:hover {
  color: #fff;
}

.cta-button {
  background: linear-gradient(135deg, #5f4dd1, #8b78f7);
  padding: 0.6rem 1.4rem;
  border-radius: 8px;
  color: #fff;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.3s ease;
  will-change: transform, box-shadow;
}

.cta-button:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 20px rgba(139, 120, 247, 0.5);
}

/* ---------- MOBILE NAV ---------- */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  z-index: 1001;
}

.mobile-menu-toggle .bar {
  width: 24px;
  height: 3px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}

.main-nav.active {
  display: block;
  position: absolute;
  top: 70px;
  right: 0;
  width: 100%;
  background: rgba(40, 33, 73, 0.98);
  backdrop-filter: blur(10px);
  text-align: center;
  padding: 1.5rem 0;
  animation: slideDown 0.4s ease forwards;
}

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

/* ---------- HERO SECTION ---------- */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0a0618;
  overflow: hidden;
  isolation: isolate;
}

/* Background texture — VISIBLE, behind everything */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    url("https://www.transparenttextures.com/patterns/stardust.png") repeat,
    radial-gradient(circle at 50% 20%, rgba(57, 43, 125, 0.6) 0%, transparent 70%),
    radial-gradient(ellipse at bottom, #1b153a 0%, #0a0618 100%);
  opacity: 1;
  z-index: -2;
  pointer-events: none;
  background-size: cover, cover, cover;
}

/* Particles container — VISIBLE, above background */
.particles {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  transform: translateZ(0);
}

.hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-around;
  width: 100%;
  max-width: 1200px;
  padding: 0 2rem;
  z-index: 1;
  position: relative;
}

.hero-content {
  text-align: left;
  flex: 1;
  transform: translateZ(0);
}

.hero-content h1 {
  font-family: 'Cinzel Decorative', serif;
  font-size: clamp(2.8rem, 8vw, 4.8rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  letter-spacing: 1.5px;
  margin: 0;
  animation: titleGlow 3s ease-in-out infinite alternate;
  will-change: text-shadow;
}

.hero-content p {
  font-size: 1.15rem;
  color: #cfcfff;
  margin: 1.5rem 0 2.5rem;
  text-shadow: 0 0 10px rgba(130, 110, 255, 0.4);
  max-width: 90%;
}

@keyframes titleGlow {
  from { text-shadow: 0 0 15px #8b78f7, 0 0 25px #5f4dd1; }
  to { text-shadow: 0 0 25px #b597ff, 0 0 45px #8b78f7; }
}

.hero-image img {
  animation: float 2s ease-in-out infinite; /* Changed from 3s to 2s for faster floating */
}

@keyframes float {
  0%, 100% { 
    transform: translateY(0) rotate(0deg); 
  }
  50% { 
    transform: translateY(-15px) rotate(1deg); 
  }
}

/* ---------- GPU-ACCELERATED PARTICLES: 250+ PARTICLES ---------- */
.particle {
  position: absolute;
  border-radius: 50%;
  opacity: 0;
  will-change: transform, opacity;
  animation: rise 10s linear infinite, pulse 2.5s ease-in-out infinite;
  animation-delay: calc(var(--delay) * 1s);
  box-shadow: 0 0 6px #fff;
  transform: translateZ(0);
}

/* Dynamic size & glow variants */
.particle:nth-child(1n)  { width: 2px; height: 2px; animation-duration: 9s, 2.8s; }
.particle:nth-child(2n)  { width: 3px; height: 3px; animation-duration: 11s, 2.3s; }
.particle:nth-child(3n)  { width: 1.5px; height: 1.5px; animation-duration: 13s, 3s; }
.particle:nth-child(4n)  { width: 2.5px; height: 2.5px; animation-duration: 8s, 2.5s; box-shadow: 0 0 10px #fff, 0 0 16px rgba(150, 130, 255, 0.6); }
.particle:nth-child(5n)  { width: 4px; height: 4px; animation-duration: 12s, 2s; box-shadow: 0 0 12px #fff, 0 0 24px rgba(180, 100, 255, 0.8); }
.particle:nth-child(7n)  { width: 1.8px; height: 1.8px; animation-duration: 10s, 3.2s; }
.particle:nth-child(11n) { width: 3.5px; height: 3.5px; animation-duration: 14s, 1.8s; box-shadow: 0 0 14px #fff, 0 0 28px rgba(200, 120, 255, 0.9); }

/* Ultra-fast tiny sparkles */
.particle:nth-child(13n) { width: 1px; height: 1px; animation-duration: 6s, 1.5s; box-shadow: 0 0 8px #fff; }

/* Animation keyframes */
@keyframes rise {
  0% {
    transform: translateY(100vh) translateX(var(--x)) scale(0.5);
    opacity: 0;
  }
  10% { opacity: 0.95; }
  90% { opacity: 0.75; }
  100% {
    transform: translateY(-200px) translateX(calc(var(--x) + var(--drift))) scale(0.2);
    opacity: 0;
  }
}

@keyframes pulse {
  0%, 100% { opacity: 0.75; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.6); }
}

/* ---------- TIMELINE BUTTON ---------- */
.timeline-button-container {
  text-align: center;
  margin: 3rem auto;
  max-width: 1200px;
  padding: 0 2rem;
}

.timeline-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  background: linear-gradient(135deg, #9a87ff 0%, #6a5acd 100%);
  color: white;
  font-family: 'Orbitron', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  padding: 1rem 2rem;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(154, 135, 255, 0.3);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.timeline-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #6a5acd 0%, #9a87ff 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.timeline-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(154, 135, 255, 0.4);
}

.timeline-button:hover::before {
  opacity: 1;
}

.timeline-button i {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.timeline-button:hover i {
  transform: rotate(5deg);
}

/* Responsive adjustments for timeline button */
@media (max-width: 768px) {
  .timeline-button {
    font-size: 1rem;
    padding: 0.9rem 1.8rem;
  }
  
  .timeline-button i {
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .timeline-button {
    width: 100%;
    max-width: 280px;
  }
}

/* ---------- COUNTDOWN TIMER ---------- */
.countdown-container {
  max-width: 900px;
  margin: 0 auto 4rem;
  text-align: center;
  padding: 2rem;
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(40, 33, 73, 0.7), rgba(20, 15, 40, 0.7));
  backdrop-filter: blur(10px);
  border: 1px solid rgba(150, 130, 255, 0.2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.countdown-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.8rem;
  color: #9a87ff;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 0 0 10px rgba(154, 135, 255, 0.5);
}

.countdown-timer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 100px;
}

.countdown-item span:first-child {
  font-family: 'Orbitron', sans-serif;
  font-size: 3.5rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.countdown-label {
  font-size: 1rem;
  color: #d6d6ff;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
}

.countdown-separator {
  font-size: 2.5rem;
  color: #9a87ff;
  margin: 0 -0.5rem;
  font-weight: bold;
  line-height: 1;
  transform: translateY(-10px);
}

.countdown-date {
  font-size: 1.2rem;
  color: #d6d6ff;
  margin-top: 1rem;
  font-weight: 500;
}

.event-started {
  font-size: 2rem;
  color: #9a87ff;
  font-weight: bold;
  padding: 2rem 0;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { opacity: 1; }
  50% { opacity: 0.5; }
  100% { opacity: 1; }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .countdown-container {
    padding: 1.5rem;
    margin: 0 auto 3rem;
  }
  
  .countdown-title {
    font-size: 1.5rem;
  }
  
  .countdown-item {
    min-width: 70px;
  }
  
  .countdown-item span:first-child {
    font-size: 2.5rem;
  }
  
  .countdown-separator {
    font-size: 2rem;
    margin: 0 -0.3rem;
  }
  
  .countdown-date {
    font-size: 1rem;
  }
}

/* ---------- ROYAL TIMELINE ---------- */
.timeline-container {
  max-width: 1200px;
  margin: 0 auto 6rem;
  padding: 0 2rem;
}

.timeline-container .section-title {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  color: #d4af37;
  text-align: center;
  margin-bottom: 2rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.timeline-day {
  position: relative;
  margin-bottom: 4rem;
  background: rgba(30, 25, 55, 0.7);
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(154, 135, 255, 0.2);
  backdrop-filter: blur(10px);
}

.day-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid rgba(212, 175, 55, 0.3);
}

.day-header h3 {
  font-family: 'Cinzel', serif;
  font-size: 1.8rem;
  color: #d4af37;
  margin: 0;
  text-align: center;
}

.crown-icon {
  font-size: 1.8rem;
  color: #d4af37;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  width: 4px;
  background: linear-gradient(to bottom, #d4af37, #9a87ff);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -2px;
  border-radius: 10px;
}

.timeline-item {
  padding: 1.5rem 0;
  position: relative;
  width: 50%;
  box-sizing: border-box;
  margin-bottom: 1rem;
}

.timeline-item:nth-child(odd) {
  left: 0;
  padding-right: 3rem;
  text-align: right;
}

.timeline-item:nth-child(even) {
  left: 50%;
  padding-left: 3rem;
  text-align: left;
}

.time-slot {
  font-family: 'Cinzel', serif;
  font-weight: 600;
  color: #d4af37;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
  position: relative;
  display: inline-block;
  background: rgba(30, 25, 55, 0.9);
  padding: 0.3rem 1rem;
  border-radius: 20px;
  border: 1px solid #d4af37;
}

.timeline-content {
  background: rgba(40, 33, 73, 0.7);
  padding: 1.5rem;
  border-radius: 10px;
  border: 1px solid rgba(154, 135, 255, 0.2);
  position: relative;
  transition: all 0.3s ease;
}

.timeline-content:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.timeline-content h4 {
  font-family: 'Cinzel', serif;
  color: #fff;
  margin-top: 0;
  margin-bottom: 0.8rem;
  font-size: 1.3rem;
  position: relative;
  display: inline-block;
}

.timeline-content h4::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 50px;
  height: 2px;
  background: #d4af37;
}

.timeline-content p {
  color: #d6d6ff;
  margin: 0.5rem 0 0;
  line-height: 1.5;
}

.event-list {
  list-style: none;
  padding: 0;
  margin: 0.8rem 0 0;
}

.event-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  color: #d6d6ff;
  line-height: 1.4;
}

.event-list li::before {
  content: '⚜️';
  position: absolute;
  left: 0;
  top: 2px;
}

.royal-feast {
  background: rgba(40, 33, 73, 0.7) !important;
  border: 1px dashed #d4af37 !important;
}

.royal-feast h4 {
  color: #d4af37 !important;
}

.royal-closing {
  background: rgba(40, 33, 73, 0.7) !important;
  border: 2px solid #d4af37 !important;
  animation: pulse 2s infinite;
}

.royal-closing h4 {
  color: #d4af37 !important;
  font-size: 1.5rem !important;
}

.overnight {
  margin-top: 2rem !important;
}

.overnight .timeline-content {
  background: rgba(30, 25, 55, 0.8) !important;
  border: 1px solid #9a87ff !important;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .timeline::before {
    left: 40px;
  }
  
  .timeline-item {
    width: 100%;
    padding-left: 70px !important;
    padding-right: 25px !important;
    text-align: left !important;
  }
  
  .timeline-item:nth-child(even) {
    left: 0;
  }
  
  .day-header h3 {
    font-size: 1.5rem;
  }
  
  .timeline-content h4 {
    font-size: 1.2rem;
  }
  
  .time-slot {
    font-size: 1rem;
  }
}

@media (max-width: 576px) {
  .timeline-container {
    padding: 0 1rem;
  }
  
  .timeline-day {
    padding: 1.5rem 1rem;
  }
  
  .day-header h3 {
    font-size: 1.3rem;
  }
  
  .crown-icon {
    font-size: 1.5rem;
  }
  
  .timeline-content {
    padding: 1rem;
  }
  
  .timeline-content h4 {
    font-size: 1.1rem;
  }
  
  .event-list li {
    font-size: 0.9rem;
  }
}

/* ---------- EVENTS SECTION ---------- */
.featured-events {
  background: radial-gradient(circle at top left, #1b153a, #0a0618);
  padding: 6rem 2rem;
  text-align: center;
  position: relative;
  z-index: 1;
}

.events-header {
  position: relative;
  margin-bottom: 3rem;
}

.register-now {
  display: inline-block;
  background: linear-gradient(135deg, #ff6b6b, #f94d6a);
  color: #fff;
  padding: 0.7rem 1.8rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 0 20px rgba(255, 107, 107, 0.4);
  transition: all 0.3s ease;
}

.register-now:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 30px rgba(255, 107, 107, 0.6);
}

.section-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 2.8rem;
  color: #fff;
  text-shadow: 0 0 15px rgba(160, 120, 255, 0.5);
  margin-bottom: 1rem;
}

.title-underline {
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #6b5de7, #9a87ff);
  margin: 0 auto 2.5rem;
  border-radius: 2px;
  box-shadow: 0 0 12px rgba(139, 120, 247, 0.7);
}

.events-grid {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  max-width: 1300px;
  margin: 0 auto;
  padding: 2rem 0;
}

.day-section {
  width: 100%;
  margin-bottom: 3rem;
}

.day-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.8rem;
  color: #9a87ff;
  margin-bottom: 1.5rem;
  text-align: left;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid rgba(154, 135, 255, 0.3);
}

.day-events {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (max-width: 1024px) {
  .day-events {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .day-events {
    grid-template-columns: 1fr;
  }
}

.event-card {
  position: relative;
  background: rgba(30, 25, 55, 0.8);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(154, 135, 255, 0.2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transition: all 0.4s ease;
  backdrop-filter: blur(6px);
  will-change: transform, border-color, box-shadow;
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* Free Badge for Event Cards */
.free-badge {
  position: absolute;
  top: 15px;
  right: -30px;
  background: #d4b711;
  color: rgb(0, 0, 0);
  font-family: 'Roboto', sans-serif;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 40px;
  transform: rotate(45deg);
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  text-transform: uppercase;
  letter-spacing: 1px;
  pointer-events: none;
}

/* Ensure the badge stays on top of the image */
.event-image {
  position: relative;
  z-index: 1;
}

.event-card:hover {
  transform: translateY(-12px) scale(1.03);
  border-color: rgba(155, 120, 255, 0.7);
  box-shadow: 0 0 35px rgba(155, 120, 255, 0.35);
}

.event-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.event-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease, filter 0.6s ease;
  will-change: transform;
}

.event-card:hover .event-image img {
  transform: scale(1.1);
  filter: brightness(1.15);
}

.event-content {
  padding: 1.6rem 1.4rem;
  text-align: left;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.event-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.3rem;
  color: #fff;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.event-date {
  font-size: 0.88rem;
  color: #6b5de7;
  font-weight: 600;
  margin-bottom: 0.6rem;
}

.event-desc {
  font-size: 0.94rem;
  color: #dcdcfb;
  line-height: 1.6;
  margin-bottom: 1.4rem;
}

.event-actions {
  display: flex;
  gap: 0.8rem;
  margin-top: auto;
  padding-top: 1.2rem;
}

.btn {
  display: inline-block;
  padding: 0.55rem 1.2rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  will-change: transform, box-shadow;
  flex: 1;
  text-align: center;
}

.btn-info {
  background: #5f4dd1;
  color: #fff;
}

.btn-register {
  background: #9a87ff;
  color: #fff;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(150, 130, 255, 0.4);
}

/* ---------- FOOTER ---------- */
.site-footer {
  background: linear-gradient(180deg, #1b153a 0%, #0a0618 100%);
  color: #dcdcfb;
  padding: 4rem 1.5rem 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  position: relative;
  z-index: 1;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto 2rem;
  gap: 2rem;
}

.footer-logo img {
  width: 130px;
  filter: drop-shadow(0 0 12px rgba(150,130,255,0.5));
}

.footer-social {
  margin-top: 1rem;
  display: flex;
  gap: 1.3rem;
}

.footer-social a {
  color: #b9aefc;
  font-size: 1.3rem;
  transition: all 0.3s ease;
}

.footer-social a:hover {
  color: #fff;
  transform: translateY(-3px) scale(1.2);
}

.footer-nav ul,
.footer-partners ul {
  list-style: none;
}

.footer-nav h4,
.footer-partners h4 {
  color: #fff;
  font-size: 1.05rem;
  margin-bottom: 0.9rem;
  letter-spacing: 1px;
}

.footer-nav a,
.footer-partners a {
  color: #b9aefc;
  font-size: 0.92rem;
  line-height: 2;
  transition: color 0.3s ease;
}

.footer-nav a:hover,
.footer-partners a:hover {
  color: #fff;
}

.partners-logos img {
  height: 40px;
  filter: grayscale(0.7) brightness(1.2);
  transition: all 0.3s ease;
}

.partners-logos img:hover {
  filter: grayscale(0) brightness(1.5);
  transform: scale(1.1);
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.2rem;
  font-size: 0.82rem;
  color: #aaa;
}

/*/* FULL RESPONSIVE CSS – HEADER + HERO + EVENTS + FOOTER + PARTICLES */
/* Mobile-first, GPU-optimized, 60fps, 100px to 4K */
/* FINAL RESPONSIVE CSS – 100% FIXED & VERIFIED ON ALL DEVICES */
/* Hero Image PERFECT at 100px | Mobile Nav 100% HIDDEN | No Overflow */

@media (max-width: 1200px) {
  .header-container,
  .hero-inner,
  .events-grid,
  .footer-inner {
    max-width: 100%;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

/* TABLET */
@media (max-width: 1024px) {
  .header-container { padding: 0.9rem 1.8rem; }
  .site-title { font-size: 1.65rem; letter-spacing: 2px; }
  .main-nav .nav-list { gap: 1.8rem; }
  .nav-link { font-size: 0.94rem; }
  .cta-button { padding: 0.65rem 1.4rem; font-size: 0.9rem; }

  .hero-inner {
    flex-direction: column-reverse;
    text-align: center;
    padding: 6rem 2rem 4rem;
    gap: 2.8rem;
  }
  .hero-content h1 { font-size: clamp(2.8rem, 7.5vw, 4.2rem); }
  .hero-content p { 
    font-size: 1.12rem; 
    max-width: 88%; 
    margin: 1.4rem auto 2.4rem; 
    line-height: 1.6;
  }
  .hero-image {
    width: 100%;
    max-width: 100%;
    padding: 0 1rem;
  }
  .hero-image img { 
    width: 100% !important;
    max-width: 340px !important;
    height: auto !important;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    border-radius: 14px;
  }
}

/* MOBILE: FORCE HIDE NAVIGATION */
@media (max-width: 900px) {
  .main-nav,
  .main-nav *,
  .nav-link,
  .cta-button {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }

  .mobile-menu-toggle {
    display: flex !important;
    order: 3;
  }

  .header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
  }

  .brand { order: 1; }
  .site-title { font-size: 1.58rem; }

  .hero { 
    min-height: 78vh; 
    height: auto; 
    padding-top: 5rem;
  }
  .hero::before { background-size: 220px 220px, cover, cover; }

  .hero-image img { 
    max-width: 300px !important;
    width: 100% !important;
    height: auto !important;
    object-fit: contain;
    margin: 0 auto;
    display: block;
  }
}

/* MEDIUM MOBILE */
@media (max-width: 768px) {
  .header-container { padding: 0.85rem 1.4rem; }
  .site-title { font-size: 1.5rem; letter-spacing: 1.8px; }

  .hero-content h1 { font-size: clamp(2.6rem, 6.8vw, 3.6rem); }
  .hero-content p { font-size: 1.08rem; max-width: 92%; }
  .hero-image img { max-width: 280px !important; }
}

/* PARTICLE OPTIMIZATION */
@media (max-width: 640px) {
  .particle:nth-child(n+151) { display: none !important; }
  .particles { transform: translateZ(0) scale(0.92); }
}

/* SMALL MOBILE – FINAL FIX */
@media (max-width: 480px) {
  .header-container { 
    padding: 0.7rem 1.1rem; 
    flex-wrap: nowrap;
  }
  .site-title { font-size: 1.35rem; letter-spacing: 1.4px; }
  .header-logo { height: 46px; }
  .mobile-menu-toggle .bar { width: 22px; height: 2.5px; }

  .hero { 
    padding: 5rem 1rem 3rem; 
    min-height: 70vh;
  }
  .hero-content h1 { 
    font-size: clamp(2.3rem, 6.2vw, 3rem); 
    letter-spacing: 1.2px; 
    margin-bottom: 0.8rem;
  }
  .hero-content p { 
    font-size: 1rem; 
    max-width: 96%; 
    margin: 1rem auto 1.8rem; 
    line-height: 1.5;
  }

  .hero-image { 
    padding: 0 0.8rem; 
    width: 100%;
  }
  .hero-image img {
    width: 100% !important;
    max-width: 240px !important;
    height: auto !important;
    object-fit: contain !important;
    display: block !important;
    margin: 0 auto !important;
    border-radius: 12px;
    filter: drop-shadow(0 0 20px rgba(150, 130, 255, 0.3));
  }

  .hero::before { background-size: 160px 160px, cover, cover; }
}

/* EXTRA SMALL */
@media (max-width: 360px) {
  .hero-image img { max-width: 200px !important; }
  .hero-content h1 { font-size: clamp(2.1rem, 5.8vw, 2.7rem); }
  .site-title { font-size: 1.28rem; }
}

/* Mobile Navigation */
@media (max-width: 992px) {
  .main-nav .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-link {
    padding: 1rem 1.5rem !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: rgba(0, 0, 0, 0.1);
    border: none;
    border-radius: 0;
    padding: 0;
    display: none;
  }

  .dropdown-menu .nav-link {
    padding-left: 2.5rem !important;
    font-size: 0.95em;
    opacity: 0.9;
  }

  .dropdown.active .dropdown-menu {
    display: block;
  }

  .dropdown-toggle::after {
    margin-left: auto;
    transition: transform 0.3s ease;
  }

  .dropdown.active .dropdown-toggle::after {
    transform: rotate(180deg);
  }
}

/* ULTRA SMALL – 100px VIEWPORT (DEV TOOLS) */
@media (max-width: 200px) {
  .hero-image img {
    max-width: 90px !important;
    border-radius: 8px;
  }
  .hero-content h1 { 
    font-size: 1.4rem !important; 
    line-height: 1.1;
  }
  .hero-content p { 
    font-size: 0.75rem; 
    display: none !important; 
  }
  .site-title { font-size: 1rem; }
  .header-logo { height: 32px; }
  .mobile-menu-toggle .bar { width: 18px; height: 2px; }
}