:root {
  --bg: #0b1220;
  --card: #0f172a;
  --muted: #94a3b8;
  --accent: #ff073a;
  --accent-hover: #e00633;
  --text: #f1f5f9;
  --text-bright: #ffffff;
  --border: rgba(255, 255, 255, 0.1);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.6);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.7);
  --radius: 16px;
  --spacing-xs: 8px;
  --spacing-sm: 16px;
  --spacing-md: 24px;
  --spacing-lg: 32px;
  --spacing-xl: 48px;
  --spacing-2xl: 64px;
  --spacing-3xl: 96px;
}

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

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: 'Bricolage Grotesque', 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

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

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1200px, 92%);
  margin: 0 auto;
}

/* ===== NAVBAR ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(11, 18, 32, 0.85);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--spacing-md) 0;
  gap: var(--spacing-md);
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  font-weight: 700;
  letter-spacing: 0.3px;
  transition: transform 0.3s ease;
}

.brand:hover {
  transform: scale(1.02);
}

.brand img {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}

.brand-text {
  display: block;
  color: var(--accent);
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1.2;
}

.brand-subtitle {
  color: var(--muted);
  font-size: 13px;
  margin-top: 2px;
  font-weight: 500;
}

.nav-links {
  display: flex;
  gap: var(--spacing-xs);
  align-items: center;
  flex-wrap: wrap;
}

.nav-links a {
  padding: 12px 20px;
  border-radius: 12px;
  color: var(--text);
  transition: all 0.3s ease;
  font-weight: 500;
  font-size: 15px;
}

.nav-links a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-bright);
  transform: translateY(-1px);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-xs);
  padding: 12px 24px;
  border-radius: 12px;
  background: var(--accent);
  color: var(--text-bright);
  font-weight: 700;
  box-shadow: var(--shadow-md);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
}

.btn:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.mobile-menu-btn {
  display: none;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border);
  padding: 12px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.mobile-menu-btn:hover {
  background: rgba(255, 255, 255, 0.12);
}

.mobile-menu-btn svg {
  width: 24px;
  height: 24px;
  fill: var(--text);
}

/* ===== HERO ===== */
.hero {
  position: relative;
  padding: clamp(72px, 8vw, 120px) 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--spacing-xl);
  align-items: center;
}

.eyebrow {
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--accent);
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: var(--spacing-sm);
  font-weight: 600;
}

.h1 {
  font-family: 'Bricolage Grotesque', Georgia, serif;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.1;
  margin: 0 0 var(--spacing-md);
  color: var(--text-bright);
  font-weight: 700;
}

.lead {
  color: var(--muted);
  font-size: clamp(16px, 1.8vw, 18px);
  margin-bottom: var(--spacing-lg);
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
  align-items: center;
  margin-bottom: var(--spacing-md);
}

.subtle {
  padding: 12px 20px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
  font-size: 14px;
}

.hero-card {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xl);
}

.hero-card img {
  aspect-ratio: 16/10;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.chips {
  display: flex;
  gap: var(--spacing-xs);
  flex-wrap: wrap;
  margin-top: var(--spacing-md);
}

.chip {
  font-size: 12px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-weight: 500;
}

/* ===== SECTIONS ===== */
section {
  padding: var(--spacing-2xl) 0;
}

.section-title {
  font-size: clamp(28px, 4vw, 42px);
  margin: 0 0 var(--spacing-sm);
  color: var(--text-bright);
  font-weight: 700;
  line-height: 1.2;
}

.section-title.center {
  text-align: center;
}

.section-lead {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
  margin: 0 0 var(--spacing-lg);
}

.section-lead.center {
  margin: 0 auto;
  max-width: 800px;
  text-align: center;
}

.section-lead.about-content {
  margin: 0;
  max-width: 100%;
  margin-bottom: var(--spacing-lg);
}

.section-lead.center {
  text-align: center;
}

/* ===== EVENTS ===== */
.events-grid-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
}

.event-card {
  cursor: pointer;
  max-width: 380px;
  text-align: center;
}

.event-card img {
  border-radius: 12px;
  width: 100%;
  height: auto;
}

.event-card:hover {
  transform: translateY(-4px);
}

/* Override livestream section inline styles */
#livestreamSection.card {
  margin-top: 60px;
  padding: 40px;
  text-align: center;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow-xl);
}

#livestreamSection h2 {
  color: var(--text-bright);
  font-size: 2rem;
  margin-bottom: 14px;
  font-weight: 700;
}

#liveCountdownMain {
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 20px;
  font-size: 1.1rem;
}

#livePlayerMain {
  display: none;
  margin-bottom: 24px;
}

#livePlayerFrame {
  width: 100%;
  height: 480px;
  border-radius: 14px;
  border: none;
}

#liveJoinMain {
  display: none;
  padding: 14px 24px;
  background: var(--accent);
  color: var(--text-bright);
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  font-size: 1rem;
  transition: all 0.3s ease;
}

#liveJoinMain:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-md);
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--spacing-lg);
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card h3 {
  margin: var(--spacing-sm) 0 var(--spacing-xs);
  font-size: 20px;
  color: var(--text-bright);
  font-weight: 700;
}

.card img {
  border-radius: 12px;
  width: 100%;
  height: auto;
}

.meta {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

/* ===== GALLERY ===== */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-md);
  align-items: stretch;
}

.gallery img {
  width: 100%;
  height: 280px;
  border-radius: var(--radius);
  object-fit: cover;
  display: block;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
}

.gallery img:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-lg);
}

.testimonial {
  font-style: italic;
  color: var(--text);
  border-left: 3px solid var(--accent);
  padding-left: var(--spacing-md);
  margin: var(--spacing-lg) 0;
}

/* ===== CONTACT ===== */
.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-lg);
}

.contact-map {
  height: 240px;
  border-radius: 12px;
  overflow: hidden;
  margin-top: 10px;
  border: 1px solid var(--border);
}

.contact-map iframe {
  width: 100%;
  height: 100%;
}

.field {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
  margin-bottom: var(--spacing-md);
}

.field label {
  color: var(--text);
  font-weight: 600;
  font-size: 14px;
}

.input,
.textarea {
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  outline: none;
  font-family: inherit;
  font-size: 15px;
  transition: all 0.3s ease;
}

.input:focus,
.textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 7, 58, 0.1);
  background: rgba(255, 255, 255, 0.04);
}

.textarea {
  min-height: 140px;
  resize: vertical;
}

/* ===== FOOTER ===== */
footer {
  border-top: 1px solid var(--border);
  background: var(--card);
  padding-top: var(--spacing-xl);
  box-shadow: var(--shadow-lg);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: var(--spacing-xl);
  padding: var(--spacing-xl) 0;
  margin-bottom: var(--spacing-lg);
}

.footer-grid h4 {
  font-size: 16px;
  margin-bottom: var(--spacing-md);
  font-weight: 700;
  color: var(--accent);
}

.footer-grid p {
  line-height: 1.7;
  max-width: 360px;
}

.footer-description {
  margin-top: 16px;
  line-height: 1.6;
  max-width: 320px;
}

.footer-grid ul {
  list-style: none;
  padding: 0;
  margin: var(--spacing-sm) 0 0;
}

.footer-grid ul li {
  margin-bottom: var(--spacing-sm);
  transition: transform 0.3s ease;
}

.footer-grid ul li:hover {
  transform: translateX(4px);
}

.footer-grid ul li a {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  transition: color 0.3s ease;
  color: var(--muted);
  text-decoration: none;
}

.footer-grid ul li a:hover {
  color: var(--text-bright);
}

.footer-social-links {
  list-style: none;
  padding: 0;
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.muted {
  color: var(--muted);
}

.copyright {
  text-align: center;
  padding: var(--spacing-lg) 0 var(--spacing-xl);
  color: var(--muted);
  font-size: 14px;
  border-top: 1px solid var(--border);
  margin-top: var(--spacing-md);
}

.copyright .heart {
  color: var(--accent);
}

/* ===== LIVESTREAM ===== */
#livestreamSection.card {
  margin-top: 60px;
  padding: 40px;
  text-align: center;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow-xl);
}

#livestreamSection h2 {
  color: var(--text-bright);
  font-size: 2rem;
  margin-bottom: 14px;
  font-weight: 700;
}

#liveCountdownMain {
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 20px;
  font-size: 1.1rem;
}

#livePlayerMain {
  display: none;
  margin-bottom: 24px;
}

#livePlayerFrame {
  width: 100%;
  height: 480px;
  border-radius: 14px;
  border: none;
}

#liveJoinMain {
  display: none;
  padding: 14px 24px;
  background: var(--accent);
  color: var(--text-bright);
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  font-size: 1rem;
  transition: all 0.3s ease;
}

#liveJoinMain:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* ===== LIVESTREAM MODAL ===== */
#livestreamModal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  justify-content: center;
  align-items: center;
  z-index: 9999;
  padding: var(--spacing-md);
}

#livestreamModal>div {
  background: var(--card);
  padding: var(--spacing-xl);
  max-width: 640px;
  width: 100%;
  border-radius: 20px;
  text-align: center;
  color: var(--text-bright);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border);
  animation: modalSlideIn 0.4s ease;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-30px) scale(0.95);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

#livestreamModal h2 {
  color: var(--text-bright);
  margin-bottom: var(--spacing-sm);
  font-weight: 700;
  font-size: 1.75rem;
}

#countdownText {
  color: var(--muted);
  margin-bottom: var(--spacing-lg);
  font-size: 1.05rem;
}

#playerContainer {
  display: none;
  margin-bottom: var(--spacing-lg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

#livestreamPlayer {
  width: 100%;
  height: 360px;
  border-radius: var(--radius);
  border: none;
}

#livestreamLink {
  display: none;
  padding: 12px 24px;
  background: var(--accent);
  color: var(--text-bright);
  text-decoration: none;
  border-radius: 12px;
  font-weight: 600;
  transition: all 0.3s ease;
  margin-bottom: var(--spacing-md);
}

#livestreamLink:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

#livestreamModal button {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 10px 24px;
  border-radius: 12px;
  cursor: pointer;
  margin-top: var(--spacing-md);
  font-size: 14px;
  transition: all 0.3s ease;
  font-family: inherit;
}

#livestreamModal button:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-bright);
  border-color: rgba(255, 255, 255, 0.2);
}

/* ===== ANIMATIONS ===== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fade 0.8s ease forwards;
}

.fade-in-2 {
  animation-delay: 0.15s;
}

.fade-in-3 {
  animation-delay: 0.3s;
}

@keyframes fade {
  to {
    opacity: 1;
    transform: none;
  }
}

/* ===== RESPONSIVE ===== */
.hide-sm {
  display: block;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .grid-3 {
    grid-template-columns: 1fr;
  }

  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
    text-align: center;
  }

  .footer-grid .brand {
    justify-content: center;
  }

  .footer-grid p {
    max-width: 100%;
  }

  .hide-sm {
    display: none;
  }

  .nav-links {
    position: fixed;
    top: 88px;
    left: 0;
    right: 0;
    background: rgba(11, 18, 32, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    flex-direction: column;
    padding: var(--spacing-lg);
    gap: var(--spacing-xs);
    box-shadow: var(--shadow-xl);
    border-bottom: 1px solid var(--border);
    transform: translateY(-120%);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
  }

  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
  }

  .nav-links a {
    width: 100%;
    text-align: center;
    padding: 16px;
    font-size: 16px;
  }

  .mobile-menu-btn {
    display: block;
  }

  .nav-inner {
    padding: var(--spacing-sm) 0;
  }

  .brand img {
    width: 48px;
    height: 48px;
  }

  #livestreamSection {
    padding: var(--spacing-lg);
  }
}

@media (max-width: 600px) {
  .gallery {
    grid-template-columns: 1fr;
  }

  .chips {
    justify-content: center;
  }

  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .btn,
  .subtle {
    text-align: center;
    justify-content: center;
  }

  section {
    padding: var(--spacing-xl) 0;
  }

  #livestreamSection h2 {
    font-size: 1.5rem;
  }
}