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

:root {
  --bg-main: #080f0c;
  --bg-card: rgba(16, 28, 23, 0.75);
  --bg-glass: rgba(18, 33, 27, 0.65);
  --border-glass: rgba(255, 255, 255, 0.12);
  --border-glow: rgba(230, 197, 135, 0.4);
  
  --text-primary: #ffffff;
  --text-secondary: #d6e2db;
  --text-muted: #96a99f;
  
  --accent-gold: #f3cf8a;
  --accent-gold-hover: #fae4b5;
  --accent-emerald: #10b981;
  --accent-rose: #f7a8b8;
  
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  
  --shadow-subtle: 0 10px 30px -10px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 45px -10px rgba(230, 197, 135, 0.3);
  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* Background canvas for floating petals */
#petal-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.85;
}

/* Ambient glows */
.ambient-glow {
  position: fixed;
  width: 650px;
  height: 650px;
  border-radius: 50%;
  filter: blur(150px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.18;
}
.glow-1 { top: -200px; left: -200px; background: #2d6a4f; }
.glow-2 { top: 40%; right: -200px; background: #e6c587; }
.glow-3 { bottom: 0; left: 20%; background: #52b788; }

/* Navigation Header */
.site-header {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 40px);
  max-width: 1240px;
  background: var(--bg-glass);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-glass);
  border-radius: 9999px;
  padding: 12px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 100;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  transition: var(--transition);
}

.site-header.scrolled {
  top: 10px;
  background: rgba(8, 15, 12, 0.92);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--text-primary);
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-gold), #967635);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.15rem;
  color: #0c1812;
  box-shadow: 0 4px 18px rgba(243, 207, 138, 0.45);
}

.brand-title {
  display: flex;
  flex-direction: column;
}
.brand-title strong {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  letter-spacing: 0.02em;
}
.brand-title small {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.92rem;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}
.nav a:hover {
  color: var(--accent-gold);
}
.nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-gold);
  transition: var(--transition);
}
.nav a:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 28px;
  border-radius: 9999px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-gold), #c49d47);
  color: #09140e;
  box-shadow: 0 6px 24px rgba(243, 207, 138, 0.4);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--accent-gold-hover), var(--accent-gold));
  transform: translateY(-2px);
  box-shadow: 0 10px 35px rgba(243, 207, 138, 0.55);
}

.btn-glass {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
}
.btn-glass:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 140px 20px 80px;
  overflow: hidden;
  z-index: 2;
}

.hero-video-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -2;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.6) contrast(1.15);
  transform: scale(1.04);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(8, 15, 12, 0.45) 0%,
    rgba(8, 15, 12, 0.72) 55%,
    var(--bg-main) 100%
  );
  z-index: -1;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 840px;
  padding: 40px;
  border-radius: var(--radius-xl);
  background: radial-gradient(circle at top left, rgba(16, 28, 23, 0.5), transparent 75%);
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 18px;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 600;
  background: rgba(16, 28, 23, 0.75);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-glass);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.35);
}
.badge-gold {
  color: var(--accent-gold);
  border-color: rgba(243, 207, 138, 0.4);
  background: rgba(243, 207, 138, 0.12);
}
.badge-live::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 14px #10b981;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(1.35); }
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 5.8vw, 5.4rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -0.01em;
  text-shadow: 0 4px 25px rgba(0, 0, 0, 0.9), 0 2px 4px rgba(0, 0, 0, 0.95);
}

.hero-title em {
  font-style: italic;
  font-weight: 400;
  color: #f3cf8a;
  text-shadow: 0 0 25px rgba(243, 207, 138, 0.5), 0 2px 8px rgba(0, 0, 0, 0.9);
  display: inline-block;
  padding-right: 8px;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 40px;
  max-width: 720px;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.95);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 50px;
}

/* Video Control & Ambient Sound bar */
.hero-controls {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 22px;
  border-radius: 9999px;
  background: rgba(14, 25, 20, 0.8);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  width: fit-content;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}
.ctrl-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  font-weight: 600;
  transition: var(--transition);
}
.ctrl-btn:hover {
  color: var(--accent-gold);
}
.soundwave {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 14px;
}
.soundwave span {
  width: 2px;
  height: 100%;
  background: var(--accent-gold);
  border-radius: 2px;
  animation: wave 1.2s infinite ease-in-out;
}
.soundwave span:nth-child(1) { animation-delay: 0.1s; }
.soundwave span:nth-child(2) { animation-delay: 0.3s; }
.soundwave span:nth-child(3) { animation-delay: 0.5s; }
.soundwave span:nth-child(4) { animation-delay: 0.2s; }

@keyframes wave {
  0%, 100% { height: 4px; }
  50% { height: 14px; }
}

/* Stats Counter Grid */
.stats-banner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
  margin: -30px auto 100px;
  position: relative;
  z-index: 10;
}

.stat-box {
  background: var(--bg-card);
  backdrop-filter: blur(24px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: var(--transition);
  box-shadow: var(--shadow-subtle);
}
.stat-box:hover {
  transform: translateY(-6px);
  border-color: var(--border-glow);
  box-shadow: var(--shadow-glow);
}
.stat-number {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent-gold), #fff 70%, var(--accent-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block;
  line-height: 1;
  margin-bottom: 10px;
}
.stat-label {
  font-size: 1.05rem;
  color: var(--text-primary);
  font-weight: 600;
}
.stat-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 6px;
  line-height: 1.5;
}

/* Section Headings */
.section {
  padding: 110px 20px;
  position: relative;
  z-index: 2;
}

.section-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 65px;
}

.eyebrow {
  text-transform: uppercase;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--accent-gold);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2.3rem, 4.2vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 18px;
}

.section-lead {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* Pavilions Showcase Grid */
.pavilion-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 28px;
}

.pavilion-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-subtle);
  cursor: pointer;
}

.pavilion-card:hover {
  transform: translateY(-8px);
  border-color: rgba(243, 207, 138, 0.45);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7);
}

.card-span-8 { grid-column: span 8; }
.card-span-4 { grid-column: span 4; }
.card-span-6 { grid-column: span 6; }

.card-img-wrap {
  position: relative;
  width: 100%;
  height: 380px;
  overflow: hidden;
  background: #0f1c16;
}
.card-span-8 .card-img-wrap {
  height: 460px;
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.pavilion-card:hover .card-img {
  transform: scale(1.06);
}

.card-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  background: rgba(8, 15, 12, 0.8);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-glass);
  border-radius: 9999px;
  padding: 7px 16px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-gold);
  z-index: 2;
}

.card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(8, 15, 12, 0.98) 100%);
  z-index: 1;
}

.card-body {
  padding: 34px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--accent-gold);
  margin-bottom: 12px;
  font-weight: 600;
}

.card-title {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  margin-bottom: 14px;
  color: var(--text-primary);
}

.card-desc {
  color: var(--text-secondary);
  font-size: 0.98rem;
  line-height: 1.65;
  margin-bottom: 24px;
  flex-grow: 1;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 22px;
}

.view-btn {
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}
.view-btn:hover {
  color: var(--accent-gold);
  gap: 12px;
}

/* Interactive Filter Gallery */
.gallery-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 45px;
}

.filter-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  padding: 11px 24px;
  border-radius: 9999px;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}
.filter-btn:hover, .filter-btn.active {
  background: var(--accent-gold);
  color: #0c1812;
  border-color: var(--accent-gold);
  box-shadow: 0 4px 20px rgba(243, 207, 138, 0.4);
}

.masonry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 26px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 380px;
  cursor: pointer;
  border: 1px solid var(--border-glass);
  background: #0f1c16;
  transition: var(--transition);
}
.gallery-item:hover {
  transform: translateY(-6px);
  border-color: var(--border-glow);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.7);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-item-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 26px;
  background: linear-gradient(0deg, rgba(8, 15, 12, 0.96) 0%, transparent 100%);
  transform: translateY(8px);
  opacity: 0.92;
  transition: var(--transition);
}
.gallery-item:hover .gallery-item-info {
  transform: translateY(0);
  opacity: 1;
}

.gallery-item-info h4 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  margin-bottom: 4px;
}
.gallery-item-info span {
  font-size: 0.85rem;
  color: var(--accent-gold);
  font-weight: 500;
}

/* Program Schedule Section */
.schedule-tabs {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 45px;
}

.tab-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
  padding: 14px 30px;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}
.tab-btn.active {
  background: var(--bg-card);
  border-color: var(--accent-gold);
  color: var(--accent-gold);
  box-shadow: var(--shadow-glow);
}

.schedule-timeline {
  max-width: 940px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.timeline-item {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 28px 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  transition: var(--transition);
}
.timeline-item:hover {
  border-color: var(--border-glow);
  transform: translateX(8px);
  box-shadow: var(--shadow-glow);
}

.time-slot {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--accent-gold);
  font-weight: 700;
  min-width: 150px;
}

.timeline-body {
  flex-grow: 1;
}

.timeline-tag {
  display: inline-block;
  padding: 3px 10px;
  background: rgba(243, 207, 138, 0.12);
  border: 1px solid rgba(243, 207, 138, 0.3);
  border-radius: 9999px;
  color: var(--accent-gold);
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.timeline-body h4 {
  font-size: 1.25rem;
  margin-bottom: 6px;
}
.timeline-body p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.55;
}

/* Lightbox Modal */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(4, 8, 6, 0.94);
  backdrop-filter: blur(24px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 40px;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.modal.open {
  display: flex;
  opacity: 1;
}

.modal-content {
  position: relative;
  max-width: 1100px;
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.95);
  animation: modal-pop 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modal-pop {
  0% { transform: scale(0.95); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid var(--border-glass);
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: var(--transition);
}
.modal-close:hover {
  background: var(--accent-gold);
  color: #000;
}

.modal-media {
  max-height: 65vh;
  overflow: hidden;
  background: #000;
}
.modal-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.modal-desc {
  padding: 30px;
}
.modal-desc h3 {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  margin-bottom: 8px;
}
.modal-desc p {
  color: var(--text-secondary);
}

/* Toast Notification */
.toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: rgba(16, 28, 23, 0.96);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-glow);
  padding: 16px 28px;
  border-radius: 9999px;
  box-shadow: var(--shadow-glow);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 2000;
  transform: translateY(100px);
  opacity: 0;
  transition: var(--transition);
}
.toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border-glass);
  background: rgba(6, 12, 9, 0.95);
  padding: 85px 20px 45px;
  position: relative;
  z-index: 2;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 45px;
  margin-bottom: 60px;
}

.footer-col h4 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  margin-bottom: 20px;
  color: var(--accent-gold);
}

.footer-col p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.92rem;
  transition: var(--transition);
}
.footer-links a:hover {
  color: var(--accent-gold);
  padding-left: 6px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Responsive */
@media (max-width: 992px) {
  .card-span-8, .card-span-4, .card-span-6 { grid-column: span 12; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .site-header { padding: 12px 20px; }
  .nav { display: none; }
}

@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 120px; }
  .hero-content { padding: 20px; }
  .timeline-item { flex-direction: column; align-items: flex-start; }
}
