@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700;900&family=Great+Vibes&family=Montserrat:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,700;1,400&display=swap');

:root {
  --bg-dark: #050510;
  --bg-deep: #0a0a20;
  --bg-card: rgba(13, 13, 35, 0.75);
  --bg-card-hover: rgba(22, 22, 55, 0.85);
  --gold-primary: #d4af37;
  --gold-light: #f3e5ab;
  --gold-dark: #aa7c11;
  --gold-gradient: linear-gradient(135deg, #ffe58f 0%, #d4af37 50%, #996515 100%);
  --gold-shine: linear-gradient(90deg, #d4af37 0%, #fff6d1 50%, #d4af37 100%);
  --purple-glow: rgba(120, 50, 255, 0.25);
  --text-main: #f0f3ff;
  --text-muted: #9aa0c0;
  --border-gold: rgba(212, 175, 55, 0.3);
  --border-gold-bright: rgba(212, 175, 55, 0.8);
  --shadow-gold: 0 0 25px rgba(212, 175, 55, 0.25);
  --font-serif: 'Cinzel', serif;
  --font-fancy: 'Great Vibes', cursive;
  --font-body: 'Montserrat', sans-serif;
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  color: var(--text-main);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  line-height: 1.6;
}

/* Canvas Background */
#starfield {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
  background: rgba(212, 175, 55, 0.4);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--gold-primary);
}

/* Typography Utilities */
.font-serif { font-family: var(--font-serif); }
.font-fancy { font-family: var(--font-fancy); }
.font-body { font-family: var(--font-body); }

.text-3xs {
  font-size: 0.65rem;
  line-height: 1.2;
}

.gold-text {
  color: var(--gold-primary);
}

.gold-gradient-text {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.shimmer-text {
  background: linear-gradient(90deg, #d4af37 0%, #ffffff 50%, #d4af37 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shine 4s linear infinite;
}

@keyframes shine {
  to { background-position: 200% center; }
}

/* Navigation Header */
.gala-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(5, 5, 16, 0.75);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-bottom: 1px solid rgba(212, 175, 55, 0.15);
  transition: all 0.3s ease;
}

.gala-header.scrolled {
  background: rgba(5, 5, 16, 0.95);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border-bottom-color: rgba(212, 175, 55, 0.3);
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-main);
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 2px;
}

.brand-logo svg {
  color: var(--gold-primary);
  filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.6));
  animation: pulseGlow 3s infinite ease-in-out;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
  list-style: none;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  position: relative;
  padding: 0.5rem 0;
  transition: color 0.3s ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--gold-light);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--gold-gradient);
  transition: all 0.3s ease;
  transform: translateX(-50%);
  border-radius: 2px;
}

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

.nav-cta-btn {
  padding: 0.6rem 1.4rem;
  border-radius: 50px;
  background: var(--gold-gradient);
  color: #050510;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
  transition: all 0.3s ease;
}

.nav-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(212, 175, 55, 0.5);
  background: linear-gradient(135deg, #ffffff 0%, #d4af37 100%);
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--gold-primary);
  cursor: pointer;
}

/* Audio Toggle Button */
.audio-control-btn {
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid var(--border-gold);
  color: var(--gold-primary);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.audio-control-btn:hover {
  background: rgba(212, 175, 55, 0.25);
  transform: scale(1.1);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
}

/* Glassmorphic Cards */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-gold);
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.1);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.glass-card:hover {
  border-color: var(--border-gold-bright);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7), 0 0 30px rgba(212, 175, 55, 0.15);
  transform: translateY(-4px);
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
  transition: 0.7s;
}

.glass-card:hover::before {
  left: 100%;
}

/* Buttons */
.btn-gold-primary {
  background: var(--gold-gradient);
  color: #050510;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.35);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-gold-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 35px rgba(212, 175, 55, 0.5);
  filter: brightness(1.1);
}

.btn-gold-outline {
  background: transparent;
  color: var(--gold-light);
  border: 1.5px solid var(--gold-primary);
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 0.9rem 2.2rem;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-gold-outline:hover {
  background: rgba(212, 175, 55, 0.15);
  border-color: var(--gold-light);
  color: #fff;
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
  transform: translateY(-2px);
}

/* Countdown Timer */
.countdown-box {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  max-width: 600px;
  margin: 0 auto;
}

.countdown-unit {
  background: rgba(10, 10, 30, 0.8);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 16px;
  padding: 1.25rem 0.75rem;
  text-align: center;
  position: relative;
  box-shadow: inset 0 0 15px rgba(212, 175, 55, 0.05);
}

.countdown-num {
  font-family: var(--font-serif);
  font-size: 2.75rem;
  font-weight: 700;
  line-height: 1;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.countdown-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

/* Timeline / Agenda */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, transparent 0%, var(--gold-primary) 15%, var(--gold-primary) 85%, transparent 100%);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
  width: 50%;
  padding-right: 2.5rem;
}

.timeline-item:nth-child(even) {
  margin-left: 50%;
  padding-right: 0;
  padding-left: 2.5rem;
}

.timeline-dot {
  position: absolute;
  right: -9px;
  top: 1.5rem;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--gold-primary);
  border: 4px solid var(--bg-dark);
  box-shadow: 0 0 15px var(--gold-primary);
  z-index: 2;
}

.timeline-item:nth-child(even) .timeline-dot {
  right: auto;
  left: -9px;
}

.timeline-content {
  padding: 1.5rem;
}

.timeline-time {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold-primary);
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

/* VIP Ticket Badge */
.ticket-wrapper {
  perspective: 1000px;
  max-width: 650px;
  margin: 2rem auto;
}

.vip-ticket {
  background: linear-gradient(135deg, #0e0e28 0%, #17153a 50%, #080718 100%);
  border: 2px solid var(--gold-primary);
  border-radius: 20px;
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 40px rgba(212, 175, 55, 0.3);
  display: flex;
  overflow: hidden;
}

.ticket-stub {
  padding: 2.5rem;
  flex: 1;
  position: relative;
}

.ticket-notch-top, .ticket-notch-bottom {
  width: 30px;
  height: 30px;
  background: var(--bg-dark);
  border-radius: 50%;
  position: absolute;
  right: 170px;
  z-index: 10;
  border: 1px solid var(--border-gold);
}

.ticket-notch-top { top: -15px; }
.ticket-notch-bottom { bottom: -15px; }

.ticket-sidebar {
  width: 185px;
  background: rgba(212, 175, 55, 0.08);
  border-left: 2px dashed rgba(212, 175, 55, 0.4);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.qr-code-box {
  background: #fff;
  padding: 0.5rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  width: 100px;
  height: 100px;
}

/* Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.gallery-item {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  height: 260px;
  cursor: pointer;
  border: 1px solid var(--border-gold);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(5, 5, 16, 0.9) 0%, rgba(5, 5, 16, 0.2) 60%, transparent 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  inset: 0;
  background: rgba(3, 3, 10, 0.95);
  backdrop-filter: blur(20px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 2rem;
}

.lightbox-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-content {
  max-width: 900px;
  max-height: 80vh;
  position: relative;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: 12px;
  border: 2px solid var(--gold-primary);
  box-shadow: 0 0 50px rgba(212, 175, 55, 0.3);
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
}

/* Form Styles */
.custom-input, .custom-select, .custom-textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-gold);
  border-radius: 12px;
  padding: 0.9rem 1.2rem;
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.custom-input:focus, .custom-select:focus, .custom-textarea:focus {
  outline: none;
  border-color: var(--gold-primary);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
  background: rgba(255, 255, 255, 0.08);
}

.custom-select option {
  background-color: #0c0b20;
  color: #f0f3ff;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 0.5rem;
}

/* Animations */
@keyframes pulseGlow {
  0%, 100% { filter: drop-shadow(0 0 5px rgba(212, 175, 55, 0.5)); transform: scale(1); }
  50% { filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.9)); transform: scale(1.05); }
}

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

.floating {
  animation: float 5s ease-in-out infinite;
}

.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Page Hero Section */
.hero-section {
  padding-top: 9rem;
  padding-bottom: 5rem;
  text-align: center;
  position: relative;
}

.hero-subtitle {
  font-family: var(--font-fancy);
  font-size: 3.5rem;
  color: var(--gold-primary);
  margin-bottom: 0.5rem;
  line-height: 1;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: 3.5rem;
  font-weight: 900;
  letter-spacing: 4px;
  text-transform: uppercase;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.hero-description {
  max-width: 680px;
  margin: 0 auto 2.5rem;
  font-size: 1.15rem;
  color: var(--text-muted);
  font-weight: 300;
}

/* Footer */
.gala-footer {
  border-top: 1px solid rgba(212, 175, 55, 0.2);
  background: rgba(3, 3, 10, 0.95);
  padding: 3rem 1.5rem 2rem;
  margin-top: 6rem;
  text-align: center;
}

.footer-logo {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold-primary);
  margin-bottom: 1rem;
  letter-spacing: 2px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
  list-style: none;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--gold-primary);
}

.footer-copyright {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.8rem;
}

/* Confetti Canvas overlay */
#confetti-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2000;
}

/* Mobile Responsive */
@media (max-width: 900px) {
  .hero-title { font-size: 2.5rem; }
  .hero-subtitle { font-size: 2.8rem; }
  .nav-links { display: none; }
  .nav-links.mobile-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(5, 5, 16, 0.98);
    backdrop-filter: blur(20px);
    padding: 2rem;
    border-bottom: 1px solid var(--border-gold);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
  }
  .mobile-menu-toggle { display: block; }
  .countdown-box { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .timeline::before { left: 20px; }
  .timeline-item { width: 100%; padding-left: 3rem; padding-right: 0; }
  .timeline-item:nth-child(even) { margin-left: 0; padding-left: 3rem; }
  .timeline-dot { left: 11px !important; }
  .vip-ticket { flex-direction: column; }
  .ticket-sidebar { width: 100%; border-left: none; border-top: 2px dashed rgba(212, 175, 55, 0.4); }
  .ticket-notch-top, .ticket-notch-bottom { display: none; }
}
