/* RESET */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Poppins', sans-serif; background: #020617; color: #fff; overflow-x: hidden; }
html { scroll-behavior: smooth; }

/* LIGHTBOX */
.lightbox { display: none; position: fixed; z-index: 9999; left: 0; top: 0; width: 100%; height: 100%; overflow: hidden; background-color: rgba(0,0,0,0.95); justify-content: center; align-items: center; }
.lightbox-content { display: block; max-width: 90%; max-height: 90vh; object-fit: contain; }
.close-lightbox { position: absolute; top: 20px; right: 40px; color: #fff; font-size: 50px; cursor: pointer; z-index: 10000; }

/* HEADER */
.site-header { position: fixed; top: 0; width: 100%; height: 70px; background: rgba(0,0,0,0.9); z-index: 999; border-bottom: 1px solid #333; display: flex; align-items: center; justify-content: center; transition: background 0.3s; }
.site-header-inner { width: 95%; max-width: 1400px; display: flex; justify-content: space-between; align-items: center; }
.header-brand { display: flex; align-items: center; gap: 10px; }
.header-logo { height: 45px; background: #fff; padding: 2px; border-radius: 50%; }
.header-text { line-height: 1.1; }
.brand-title { color: #facc15; font-weight: 800; display: block; }
.brand-subtitle { font-size: 0.75rem; color: #ccc; }
.nav-link { background: none; border: none; color: #ddd; font-weight: 500; cursor: pointer; margin-left: 15px; font-size: 0.9rem; text-decoration: none; padding: 5px 0; border-bottom: 2px solid transparent; transition: 0.3s; }
.nav-link:hover { color: #facc15; }
.nav-highlight { color: #facc15 !important; font-weight: 700; }
.active-link { color: #facc15 !important; border-bottom: 2px solid #facc15; }

/* HERO */
.hero { height: 100vh; width: 100%; position: relative; background: #000; }
.hero-slider { position: absolute; inset: 0; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1s; }
.hero-slide.active { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: contain; object-position: center; }

.hero-overlay-buttons { position: absolute; bottom: 8vh; left: 50%; transform: translateX(-50%); display: flex; flex-direction: row; justify-content: center; align-items: center; gap: 20px; z-index: 5; width: 100%; flex-wrap: nowrap; }

.hero-btn { padding: 12px 45px; border-radius: 50px; text-decoration: none; font-weight: 700; font-size: 1rem; transition: transform 0.2s; box-shadow: 0 5px 15px rgba(0,0,0,0.5); white-space: nowrap; display: inline-block; }
.hero-btn:hover { transform: scale(1.05); }
.btn-yellow { background: #ffd700; color: #000; border: 2px solid #ffd700; }
.btn-white { background: #fff; color: #000; border: 2px solid #fff; }
.btn-red { background: #ff0000; color: #fff; border: 2px solid #ff0000; }

/* INDEX / SELECTOR PAGE */
.section-index { padding: 50px 5%; background: #fff; min-height: 80vh; display: flex; align-items: center; }
.index-container { max-width: 1300px; margin: 0 auto; display: flex; width: 100%; gap: 40px; }
.index-left { flex: 0.8; display: flex; flex-direction: column; justify-content: center; }
.index-logo { width: 100px; margin-bottom: 20px; }
.index-title { font-size: 4rem; color: #0f172a; font-weight: 800; line-height: 1; margin-bottom: 10px; }
.stars { font-size: 1.5rem; color: #facc15; vertical-align: middle; margin-left: 10px; }
.index-event { font-size: 1.2rem; font-weight: 600; color: #334155; margin-bottom: 5px; }
.index-tagline { color: #64748b; font-style: italic; }
.index-right { flex: 1.2; }
.index-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }

/* GRID CARD */
.grid-card { height: 120px; border-radius: 15px; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; cursor: pointer; padding: 15px; position: relative; font-weight: 600; color: #1e293b; transition: transform 0.2s; box-shadow: 0 4px 10px rgba(0,0,0,0.1); text-decoration: none; }
.grid-card:hover { transform: translateY(-5px); }
.grid-card span { z-index: 2; font-size: 0.9rem; }

.c1 { background: #fef9c3; border: 1px solid #facc15; }
.c2 { background: #e0f2fe; border: 1px solid #38bdf8; }
.c3 { background: #dcfce7; border: 1px solid #4ade80; }
.c4 { background: #fae8ff; border: 1px solid #e879f9; }
.c5 { background: #ffedd5; border: 1px solid #fb923c; }
.c6 { background: #f1f5f9; border: 1px solid #94a3b8; }
.badge { position: absolute; top: 8px; right: 8px; font-size: 0.6rem; background: #ef4444; color: #fff; padding: 2px 6px; border-radius: 4px; }

/* PAGE SECTIONS */
.page-section { position: relative; min-height: 100vh; overflow: hidden; display: flex; align-items: center; }
.bg-layer { position: absolute; inset: 0; z-index: 0; }
.bg-layer img { width: 100%; height: 100%; object-fit: cover; opacity: 0.5; }
.bg-contain img { object-fit: contain; object-position: center; opacity: 0.3; }
.flipped-bg img { transform: scaleX(-1); }
.section-padded { padding-bottom: 80px; }
.content-layer { position: relative; z-index: 2; width: 100%; padding: 0 5%; pointer-events: none; display: flex; }
.align-right .content-layer { justify-content: flex-end; }
.align-left .content-layer { justify-content: flex-start; }
.align-center .content-layer { justify-content: center; }
.align-bottom .content-layer { align-items: flex-end; justify-content: center; padding-bottom: 50px; }
.content-box { pointer-events: auto; max-width: 500px; display: flex; flex-direction: column; gap: 20px; }
.section-title { font-size: 2.5rem; text-shadow: 0 2px 10px #000; margin-bottom: 10px; }
.main-btn { background: #facc15; color: #000; padding: 12px 20px; text-decoration: none; font-weight: 700; border-radius: 8px; text-align: center; display: inline-block; width: fit-content; }

/* COMPETITION GRID (3x2) */
.full-width-layer { width: 100%; flex-direction: column; align-items: center; pointer-events: auto; padding-top: 80px; padding-bottom: 50px; }
.centered-header { text-align: center; margin-bottom: 30px; }
.comp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 1200px; margin: 0 auto; width: 100%; }
.comp-tile { min-height: 200px; }

/* QR CODE TILE FIX */
.qr-tile { 
  display: flex; 
  flex-direction: column; 
  align-items: center; 
  justify-content: center; 
  text-align: center; 
}

.qr-img { width: 140px; margin-top: 10px; transition: transform 0.2s; cursor: pointer; }
.qr-img:hover { transform: scale(1.1); }

/* TILES */
.tile { background: rgba(255,255,255,0.95); color: #000; padding: 20px; border-radius: 12px; border-left: 5px solid #facc15; pointer-events: auto; }
.highlight-tile { border-left: 5px solid #ef4444; background: #fff; }
.tile h3 { color: #b45309; margin-bottom: 8px; font-size: 1.1rem; }
.clean-list { list-style: none; padding-left: 0; margin-bottom: 0; }
.clean-list li { margin-bottom: 6px; font-size: 0.9rem; line-height: 1.4; position: relative; padding-left: 15px; }
.clean-list li::before { content: "•"; color: #facc15; position: absolute; left: 0; font-weight: bold; }
.text-clamp { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: 0.9rem; line-height: 1.5; margin-bottom: 5px; }
.text-clamp.show { -webkit-line-clamp: unset; }
.read-more { background: none; border: none; color: #2563eb; font-weight: 600; cursor: pointer; font-size: 0.85rem; }
.btn-row { margin-top: 10px; display: flex; gap: 10px; }
.btn-sm { font-size: 0.8rem; color: #dc2626; text-decoration: none; font-weight: 600; border: 1px solid #dc2626; padding: 4px 8px; border-radius: 4px; }
.pdf-container { display: flex; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.btn-pdf { background: #3b82f6; color: #fff; padding: 8px 12px; border-radius: 6px; text-decoration: none; font-size: 0.9rem; font-weight: 600; display: inline-flex; align-items: center; gap: 5px; transition: 0.3s; }
.btn-pdf:hover { background: #1d4ed8; }

/* SPONSORS */
.relative-layer { position: relative; width: 100%; height: 100vh; overflow: hidden; max-width: 1400px; margin: 0 auto; }
.big-sponsor-label { position: absolute; top: 10%; right: 5%; font-size: 4rem; color: rgba(255,255,255,0.8); z-index: 1; margin: 0; text-transform: uppercase; font-weight: 900; }
.sponsor-stack-right { position: absolute; bottom: 5%; right: 5%; width: 340px; display: flex; flex-direction: column; gap: 15px; z-index: 10; }
.spon-tile { width: 100%; min-height: 150px; }

/* MEMORIES */
.pointer-passthrough { pointer-events: none; }
.mem-corner { position: absolute; width: 320px; height: auto; max-height: 42vh; overflow-y: auto; background: rgba(0,0,0,0.85); border: 1px solid #444; border-radius: 12px; padding: 20px; color: #fff; z-index: 20; display: flex; flex-direction: column; pointer-events: auto; }
.mem-corner h3 { color: #facc15; font-size: 1.2rem; }
.top-left { top: 10px; left: 10px; }
.top-right { top: 10px; right: 10px; }
.bottom-left { bottom: 10px; left: 10px; }
.bottom-right { bottom: 10px; right: 10px; }
.mem-mid-bottom { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 25; width: 300px; pointer-events: auto; }
.text-center { text-align: center; }
.single-img-slider { position: relative; display: flex; align-items: center; background: #000; padding: 5px; border-radius: 5px; margin-top: 10px; overflow: hidden; }
.slider-track { display: flex; width: 100%; overflow-x: auto; scroll-behavior: smooth; }
.slider-track::-webkit-scrollbar { display: none; }
.slider-track img { min-width: 100%; height: 200px; object-fit: cover; border-radius: 4px; flex-shrink: 0; cursor: pointer; }
.slide-btn { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,0.5); border: none; color: #fff; cursor: pointer; padding: 10px; font-size: 1.5rem; z-index: 25; }
.slide-btn.prev { left: 0; }
.slide-btn.next { right: 0; }
.yt-link-tile { display: block; background: #FF0000; color: #fff; text-align: center; padding: 8px; font-size: 0.9rem; font-weight: 700; text-decoration: none; margin-top: 10px; border-radius: 4px; z-index: 30; position: relative; }

/* FAQ SCROLL */
.faq-row { display: flex; gap: 30px; justify-content: center; width: 100%; max-width: 1000px; align-items: flex-end; margin-top: 150px; }
.faq-tile { flex: 1; }
/* Added scroll-content class for long lists */
.scroll-content { max-height: 250px; overflow-y: auto; padding-right: 10px; }
.scroll-content p { margin-bottom: 12px; font-size: 0.9rem; line-height: 1.4; border-bottom: 1px solid #ddd; padding-bottom: 8px; }
.scroll-content p:last-child { border-bottom: none; }
/* Custom Scrollbar */
.scroll-content::-webkit-scrollbar { width: 6px; }
.scroll-content::-webkit-scrollbar-track { background: #f1f1f1; border-radius: 4px; }
.scroll-content::-webkit-scrollbar-thumb { background: #facc15; border-radius: 4px; }

.form-btn-block { margin-top: 20px; border-top: 1px solid #ddd; padding-top: 15px; }

/* CONTACT */
.center-box { display: flex; justify-content: center; align-items: center; height: 100%; width: 100%; }
.contact-wrapper { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; max-width: 600px; z-index: 10; }
.logos-row-center { display: flex; gap: 30px; margin-bottom: 25px; }
.logos-row-center img { height: 90px; background: #fff; padding: 8px; border-radius: 12px; box-shadow: 0 5px 15px rgba(0,0,0,0.3); }
.contact-tile { text-align: center; width: 100%; }
.contact-title { font-size: 2rem; margin-bottom: 15px; color: #000; }
.social-row { display: flex; gap: 15px; margin-top: 20px; justify-content: center; }
.soc-btn { flex: 1; padding: 12px; color: #fff; text-decoration: none; border-radius: 8px; font-weight: 600; }
.wa { background: #25D366; } .yt { background: #FF0000; } .ig { background: linear-gradient(45deg, #f09433, #bc1888); }

/* MOBILE */
@media (max-width: 1024px) {
  .index-container { flex-direction: column; }
  .index-grid { grid-template-columns: 1fr; }
  .comp-grid { grid-template-columns: 1fr; }
  .faq-row { flex-direction: column; margin-top: 50px; }
  .relative-layer { height: auto; display: flex; flex-direction: column; gap: 20px; padding: 100px 20px 50px; }
  .sponsor-stack-right { position: relative; bottom: auto; right: auto; width: 100%; }
  .mem-corner { position: relative; width: 100%; top: auto; left: auto; right: auto; bottom: auto; max-height: none; }
  .mem-mid-bottom { position: relative; width: 100%; bottom: auto; left: auto; transform: none; }
  .align-right .content-layer, .align-left .content-layer { justify-content: center; }
  .header-nav { display: none; }
  .hero-overlay-buttons { flex-direction: column; width: 80%; }
}