/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', system-ui, sans-serif; color: #1e293b; background: #f8fafc; line-height: 1.6; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ── Variables ── */
:root {
  --green: #16a34a; --green-dark: #15803d; --blue: #0ea5e9; --purple: #8b5cf6;
  --cyan: #06b6d4; --dark: #0f172a; --light: #f8fafc; --text: #1e293b; --muted: #64748b;
}

/* ── Navbar ── */
.navbar { position: fixed; top: 0; left: 0; right: 0; z-index: 100; padding: 1rem 2rem; transition: all 0.3s; }
.navbar.scrolled { background: rgba(15,23,42,0.95); backdrop-filter: blur(12px); box-shadow: 0 2px 20px rgba(0,0,0,0.3); padding: 0.6rem 2rem; }
.nav-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; }
.nav-logo { font-weight: 900; font-size: 1.25rem; color: #fff; }
.nav-links { display: flex; gap: 2rem; align-items: center; }
.nav-links a { color: rgba(255,255,255,0.8); font-size: 0.9rem; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: #fff; }
.nav-cta { background: var(--green); color: #fff !important; padding: 0.5rem 1.2rem; border-radius: 999px; font-weight: 600; }
.nav-cta:hover { background: var(--green-dark); }
.burger { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; }
.burger span { display: block; width: 24px; height: 2px; background: #fff; transition: 0.3s; }

@media (max-width: 768px) {
  .navbar { z-index: 10000; }
  .nav-links { display: none; position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: #0a0a14; flex-direction: column; justify-content: center; align-items: center; gap: 2.5rem; z-index: 9999; }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 1.5rem; color: rgba(255,255,255,0.9); }
  .nav-links a:hover, .nav-links a:active { color: #fff; }
  .nav-links .nav-cta { margin-top: 1rem; font-size: 1.2rem; padding: 0.8rem 2rem; }
  .burger { display: flex; z-index: 10001; }
  body.menu-open { overflow: hidden; }
}

/* ── Hero ── */
.hero { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; position: relative;
  background: linear-gradient(-45deg, #16a34a, #0ea5e9, #8b5cf6, #06b6d4); background-size: 400% 400%; animation: gradientShift 15s ease infinite; }
@keyframes gradientShift { 0%{background-position:0% 50%} 50%{background-position:100% 50%} 100%{background-position:0% 50%} }
.hero-content { position: relative; z-index: 2; padding: 0 1rem; }
.hero-title { font-size: clamp(2.5rem, 8vw, 5rem); font-weight: 900; color: #fff; letter-spacing: -0.02em; overflow: hidden; border-right: 3px solid rgba(255,255,255,0.7); white-space: nowrap;
  animation: typing 2.5s steps(18) forwards, blink 0.7s step-end infinite; width: 0; margin: 0 auto; }
@keyframes typing { from{width:0} to{width:100%} }
@keyframes blink { 50%{border-color:transparent} }
.hero-sub { color: rgba(255,255,255,0.9); font-size: clamp(1rem, 3vw, 1.5rem); margin-top: 1rem; opacity: 0; animation: fadeInUp 1s 2.5s forwards; }
@keyframes fadeInUp { to { opacity:1; transform:translateY(0) } from { opacity:0; transform:translateY(20px) } }

/* Particles */
.particles { position: absolute; inset: 0; overflow: hidden; z-index: 1; }
.particle { position: absolute; border-radius: 50%; background: rgba(255,255,255,0.08); animation: floatParticle var(--dur) var(--delay) infinite linear; }
@keyframes floatParticle { 0%{transform:translateY(100vh) rotate(0)} 100%{transform:translateY(-100px) rotate(720deg)} }

/* Scroll indicator */
.scroll-indicator { position: absolute; bottom: 2rem; z-index: 2; color: rgba(255,255,255,0.6); animation: bounce 2s infinite; }
@keyframes bounce { 0%,100%{transform:translateY(0)} 50%{transform:translateY(12px)} }

/* ── Buttons ── */
.btn-glow { display: inline-block; padding: 1rem 2.5rem; background: var(--green); color: #fff; font-weight: 700; font-size: 1.1rem; border-radius: 999px; margin-top: 2rem; position: relative; z-index: 2; transition: all 0.3s;
  animation: glow 2s ease-in-out infinite alternate; }
.btn-glow:hover { transform: scale(1.05); background: var(--green-dark); }
.btn-glow.big { padding: 1.2rem 3rem; font-size: 1.3rem; }
@keyframes glow { from{box-shadow:0 0 20px rgba(22,163,74,0.4)} to{box-shadow:0 0 40px rgba(22,163,74,0.7), 0 0 80px rgba(22,163,74,0.3)} }

/* ── Sections ── */
.section { padding: 6rem 1.5rem; }
.section-alt { background: #f1f5f9; }
.container { max-width: 1100px; margin: 0 auto; }
.section-title { font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 900; text-align: center; margin-bottom: 1rem; }
.section-desc { text-align: center; color: var(--muted); max-width: 600px; margin: 0 auto 3rem; font-size: 1.05rem; }

/* ── Reveal ── */
.reveal { opacity: 0; transform: translateY(60px); transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1); }
.reveal.active { opacity: 1; transform: translateY(0); }
.reveal.slide-left { transform: translateX(-60px); }
.reveal.slide-right { transform: translateX(60px); }
.reveal.slide-left.active, .reveal.slide-right.active { transform: translateX(0); }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } .hero-title { animation: none; width: 100%; border: none; } .particle { animation: none; display: none; } }

/* ── Cards ── */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; }
.card-3d { background: #fff; border-radius: 1.5rem; padding: 2.5rem 2rem; text-align: center; box-shadow: 0 4px 24px rgba(0,0,0,0.06); transition: transform 0.5s, box-shadow 0.5s; }
.card-3d:hover { transform: perspective(1000px) rotateY(8deg) rotateX(4deg) scale(1.04); box-shadow: 0 12px 40px rgba(0,0,0,0.12); }
.card-icon { font-size: 3rem; margin-bottom: 0.5rem; }
.counter { font-size: 3.5rem; font-weight: 900; color: var(--green); line-height: 1; }
.card-label { font-weight: 700; font-size: 1.1rem; color: var(--text); margin: 0.3rem 0 0.8rem; }
.card-text { color: var(--muted); font-size: 0.95rem; }

/* ── Schedule ── */
.schedule-grid { display: grid; gap: 1rem; max-width: 700px; margin: 0 auto; }
.schedule-card { display: flex; align-items: center; gap: 1.5rem; background: #fff; border-radius: 1rem; padding: 1.2rem 1.5rem; box-shadow: 0 2px 12px rgba(0,0,0,0.04); }
.sched-day { font-weight: 900; font-size: 1.3rem; color: var(--green); min-width: 3rem; text-align: center; }
.sched-time { font-size: 0.95rem; color: var(--text); flex: 1; line-height: 1.5; }
.sched-type { font-size: 0.85rem; color: var(--muted); }

/* ── Gallery ── */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 180px; gap: 1rem; }
.gallery-item { border-radius: 1rem; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #fff; font-weight: 600; transition: transform 0.4s, box-shadow 0.4s; cursor: pointer; position: relative; overflow: hidden; }
.gallery-item span { font-size: 3rem; margin-bottom: 0.5rem; transition: transform 0.4s; }
.gallery-item p { font-size: 0.85rem; opacity: 0.9; }
.gallery-item:hover { transform: scale(1.05); box-shadow: 0 12px 40px rgba(0,0,0,0.2); }
.gallery-item:hover span { transform: scale(1.2); }
.gi-1 { background: linear-gradient(135deg, #16a34a, #0ea5e9); grid-row: span 2; }
.gi-2 { background: linear-gradient(135deg, #0ea5e9, #06b6d4); }
.gi-3 { background: linear-gradient(135deg, #8b5cf6, #ec4899); }
.gi-4 { background: linear-gradient(135deg, #f59e0b, #ef4444); }
.gi-5 { background: linear-gradient(135deg, #06b6d4, #16a34a); grid-column: span 2; }
.gi-6 { background: linear-gradient(135deg, #ec4899, #8b5cf6); }
@media (max-width: 640px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; } .gi-1 { grid-row: span 1; } .gi-5 { grid-column: span 1; } }

/* ── Upcoming Games (live) ── */
.upcoming-games { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }
.upcoming-loading { text-align: center; color: var(--muted); padding: 2rem; }
.upcoming-empty { text-align: center; color: var(--muted); padding: 2rem; font-size: 0.95rem; }
.game-card { background: #fff; border-radius: 1rem; padding: 1.5rem; box-shadow: 0 2px 12px rgba(0,0,0,0.06); transition: transform 0.3s, box-shadow 0.3s; }
.game-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.1); }
.game-card-title { font-weight: 700; font-size: 1.05rem; margin-bottom: 0.5rem; display: flex; align-items: center; gap: 0.5rem; }
.game-card-info { display: flex; flex-direction: column; gap: 0.35rem; color: var(--muted); font-size: 0.85rem; margin-bottom: 0.75rem; }
.game-card-info span { display: flex; align-items: center; gap: 0.4rem; }
.game-card-bar { height: 4px; border-radius: 2px; background: #e2e8f0; overflow: hidden; margin-bottom: 0.75rem; }
.game-card-bar-fill { height: 100%; border-radius: 2px; background: var(--green); transition: width 0.5s; }
.game-card-bar-fill.full { background: #ef4444; }
.game-card-btn { display: block; text-align: center; background: var(--green); color: #fff; padding: 0.6rem; border-radius: 0.75rem; font-weight: 600; font-size: 0.85rem; transition: background 0.2s; text-decoration: none; }
.game-card-btn:hover { background: var(--green-dark); }

/* ── Court Card ── */
.court-card { background: #fff; border-radius: 1.5rem; overflow: hidden; box-shadow: 0 4px 24px rgba(0,0,0,0.08); max-width: 700px; margin: 0 auto; }
.court-info { padding: 2rem; }
.court-name { font-size: 1.3rem; font-weight: 700; margin-bottom: 0.75rem; }
.court-desc { color: var(--muted); font-size: 0.95rem; margin-bottom: 1rem; line-height: 1.6; }
.court-link { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--green); font-weight: 600; font-size: 0.95rem; transition: color 0.2s; }
.court-link:hover { color: var(--green-dark); }
.court-map { padding: 0 1rem 1rem; }
.hero-sub2 { color: rgba(255,255,255,0.6); font-size: clamp(0.9rem, 1.5vw, 1.1rem); margin-top: 0.5rem; font-weight: 400; letter-spacing: 0.05em; }

/* ── Levels Timeline ── */
.levels-timeline { position: relative; max-width: 700px; margin: 0 auto; padding-left: 3rem; }
.levels-timeline::before { content: ''; position: absolute; left: 1rem; top: 0; bottom: 0; width: 4px; background: #e2e8f0; border-radius: 2px; }
.level-progress { position: absolute; left: 1rem; top: 0; width: 4px; height: 0; background: linear-gradient(to bottom, var(--green), var(--blue)); border-radius: 2px; transition: height 1.5s cubic-bezier(0.4,0,0.2,1); }
.level-item { position: relative; padding: 1.5rem 0; }
.level-dot { position: absolute; left: -2.25rem; top: 1.8rem; width: 18px; height: 18px; border-radius: 50%; background: #e2e8f0; border: 3px solid #fff; box-shadow: 0 0 0 3px #e2e8f0; transition: all 0.5s; z-index: 2; }
.level-item.lit .level-dot { background: var(--green); box-shadow: 0 0 0 3px var(--green), 0 0 12px rgba(22,163,74,0.4); }
.level-range { font-weight: 900; font-size: 1.1rem; color: var(--green); }
.level-name { font-weight: 700; font-size: 1.2rem; margin: 0.2rem 0 0.3rem; }
.level-info p { color: var(--muted); font-size: 0.95rem; }

/* ── Reviews Slider ── */
.slider { overflow: hidden; position: relative; }
.slider-track { display: flex; transition: transform 0.6s cubic-bezier(0.4,0,0.2,1); }
.review-card { min-width: 100%; padding: 2rem; }
@media (min-width: 768px) { .review-card { min-width: 50%; } }
@media (min-width: 1024px) { .review-card { min-width: 33.333%; } }
.review-card > * { background: #fff; border-radius: 1.5rem; padding: 2rem; box-shadow: 0 4px 20px rgba(0,0,0,0.06); margin: 0 auto; max-width: 400px; }
.review-card { display: flex; flex-direction: column; align-items: stretch; }
.review-card > :first-child { flex: 1; }
.review-avatar { width: 56px; height: 56px; border-radius: 50%; background: linear-gradient(135deg, var(--green), var(--blue)); color: #fff; font-weight: 700; font-size: 1.3rem; display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; }
.review-stars { color: #f59e0b; font-size: 1.2rem; margin-bottom: 0.8rem; }
.review-text { color: var(--text); font-size: 0.95rem; line-height: 1.7; margin-bottom: 1rem; font-style: italic; }
.review-author { color: var(--muted); font-size: 0.85rem; font-weight: 600; }
.slider-dots { display: flex; justify-content: center; gap: 0.5rem; margin-top: 1.5rem; }
.slider-dot { width: 10px; height: 10px; border-radius: 50%; background: #cbd5e1; border: none; cursor: pointer; transition: all 0.3s; }
.slider-dot.active { background: var(--green); transform: scale(1.3); }

/* ── CTA Section ── */
.section-cta { padding: 6rem 1.5rem; text-align: center; background: linear-gradient(135deg, var(--dark) 0%, #1e3a5f 100%); color: #fff; position: relative; }
.cta-title { font-size: clamp(2rem, 5vw, 3rem); font-weight: 900; margin-bottom: 1rem; }
.cta-desc { color: rgba(255,255,255,0.7); font-size: 1.1rem; max-width: 550px; margin: 0 auto; }
.contacts { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem; margin-top: 3rem; }
.contact-item { display: flex; align-items: center; gap: 0.5rem; color: rgba(255,255,255,0.8); font-size: 0.95rem; }
.contact-item a { color: rgba(255,255,255,0.8); }
.contact-item a:hover { color: #fff; }

/* ── Footer ── */
.footer { background: var(--dark); color: rgba(255,255,255,0.6); position: relative; padding-top: 4rem; }
.wave { position: absolute; top: -1px; left: 0; width: 100%; height: 60px; color: var(--dark); transform: translateY(-99%); }
.footer-inner { max-width: 1100px; margin: 0 auto; padding: 2rem 1.5rem; display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.footer-logo { color: #fff; font-weight: 900; font-size: 1.2rem; }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { color: rgba(255,255,255,0.5); font-size: 0.9rem; transition: color 0.2s; }
.footer-links a:hover { color: #fff; }
.footer-copy { font-size: 0.8rem; }
