/* GOOGLE FONT */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
  --primary-navy: #040d1a;
  --secondary-navy: #0b1a2e;
  --gold: #d4af37;
  --accent-orange: #f89cc1;
  --primary-green: #008000;
  --gold-glow: rgba(212, 175, 55, 0.5);
  --gold-gradient: linear-gradient(135deg, #d4af37 0%, #f9e29c 100%);
  --white: #ffffff;
  --bg-dark: linear-gradient(180deg, #061f0c 0%, #031408 100%);
  --bg-light: #f8faff;
  --text-dark: #1a1a1a;
  --text-muted: #555555;
  --glass: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);
  --shadow-premium: 0 20px 40px rgba(0, 0, 0, 0.15);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  background: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.7;
  overflow-x: hidden;
}

/* ================= UTILITIES ================= */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ================= NAVBAR ================= */
.nav-bar {
  background: var(--primary-green);
  padding: 10px 8%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(15px);
  border-bottom: 1px solid var(--glass-border);
}

.logo {
  width: 85px;
  border-radius: 50%;
  border: 4px solid var(--gold);
  padding: 2px;
  background: #fff;
  box-shadow: 0 0 15px var(--gold-glow);
}

.nav-headers {
  list-style: none;
  display: flex;
  gap: 40px;
}

.nav-headers a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: 0.3s;
}

.nav-headers a:hover,
.nav-headers a.active-link {
  color: var(--gold);
  text-shadow: 0 0 10px var(--gold-glow);
}

/* ================= HERO ================= */
.hero {
  height: 95vh;
  position: relative;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slides {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  display: none;
  filter: brightness(0.5);
  animation: zoomEffect 15s infinite alternate;
}

@keyframes zoomEffect {
  from {
    transform: scale(1);
  }

  to {
    transform: scale(1.15);
  }
}

.hero-content {
  text-align: center;
  color: var(--white);
  z-index: 2;
  padding: 0 20px;
}

.hero-content h1 {
  font-size: 5rem;
  line-height: 1.1;
  margin-bottom: 25px;
  font-weight: 800;
}

.hero-content .logo-name {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block;
}

.button {
  background: var(--gold-gradient);
  color: #040d1a !important;
  padding: 18px 45px;
  border-radius: 4px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
  transition: 0.4s;
  border: none;
}

.button:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(212, 175, 55, 0.5);
  letter-spacing: 3px;
}

/* ================= SECTIONS ================= */
.content-section {
  padding: 120px 10%;
}

/* Ensure anchored sections sit below the sticky navbar */
.content-section {
  scroll-margin-top: 90px;
}

.content-section h2 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 4px;
}

/* PROGRAMS OVERHAUL */
section.programs {
  background: var(--bg-dark);
  color: var(--white);
}

/* Background video for programs section */
section.programs {
  position: relative;
  overflow: hidden;
  min-height: auto;
  height: auto;
  padding: 40px 8%;
}

/* Fullscreen background video */

.programs {
  /* kept for backward-compat */
}

section.programs .video-wrap {
  display: flex;
  gap: 20px;
  align-items: stretch;
  justify-content: center;
  margin-bottom: 30px;
}

/* Full programs area embedded on homepage (shown by default) */
.programs-full {
  display: block;
  margin: 18px 0 10px;
}

/* Slightly smaller cards when embedded on homepage */
.programs-full .program-card { padding: 28px 22px; }


/* overlay shown when autoplay is blocked */
.video-play-overlay {
  position: absolute;
  left: 50%;
  top: 40%;
  transform: translate(-50%, -50%);
  background: rgba(0,0,0,0.6);
  color: #fff;
  padding: 12px 18px;
  border-radius: 6px;
  z-index: 10;
  display: none;
  cursor: pointer;
  font-weight: 600;
}
.video-play-overlay.show { display: block; }

.section-programs .bg-video {}
section.programs .bg-video {
  width: 48%;
  height: 40vh;
  object-fit: contain;
  background: #000;
  border-radius: 6px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

section.programs h2, section.programs .intro, section.programs .summary-content { text-align: center; }

section.programs > * {
  position: relative;
  z-index: 2;
}

.programs .video-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(0,0,0,0.45);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 3;
  border: 1px solid rgba(255,255,255,0.08);
}

/* Video navigation arrows */
section.programs .video-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(0,0,0,0.45);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 3;
  border: 1px solid rgba(255,255,255,0.08);
}

section.programs .video-nav:hover { background: rgba(0,0,0,0.6); }
section.programs .video-nav.prev { left: 18px; }
section.programs .video-nav.next { right: 18px; }

@media (max-width: 768px) {
  section.programs { height: auto; min-height: auto; padding: 20px 5%; }
  /* Stack videos and make them responsive on mobile */
  section.programs .video-wrap { flex-direction: column; gap: 12px; }
  section.programs .bg-video { width: 100%; height: 220px; max-height: 45vh; object-fit: contain; }
  /* Hide arrow nav on small screens (touch swipe/click is sufficient) */
  section.programs .video-nav { display: none; }
  /* Ensure overlay centers correctly */
  .video-play-overlay { top: 50%; transform: translate(-50%, -50%); }

  /* Prevent floating buttons and scroll-top from overlapping the footer/content */
  /* reduce bottom padding to avoid excessive gap while keeping space for floating controls */
  body { padding-bottom: 100px; }
  .floating-buttons { bottom: 88px; left: 16px; }
  .scroll-top { bottom: 88px; right: 16px; }

  /* Make footer more compact and readable on small screens */
  footer { padding: 18px 6%; font-size: 0.95rem; }

  /* Ensure about section content has room above the footer and floating buttons */
  section.about .about-summary { margin-bottom: 18px; }
  section.about .founder-info { margin-bottom: 28px; }
}

.section-programs h2 {}
section.programs h2 {
  color: var(--gold);
}

/* Teaser (partial preview) for sections on homepage */
.teaser {
  max-height: 160px;
  overflow: hidden;
  position: relative;
  padding-bottom: 10px;
}
.teaser::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 60px;
  background: linear-gradient(180deg, rgba(248,250,255,0) 0%, rgba(248,250,255,1) 90%);
  pointer-events: none;
}
.teaser-button {
  display: inline-block;
  margin: 16px auto 0;
  text-align: center;
}

@media (max-width: 768px) {
  .teaser { max-height: 120px; }
  .teaser::after { height: 50px; }
}

/* Attractive About section background */
section.about {
  background: linear-gradient(135deg, #042017 0%, #062816 60%), repeating-linear-gradient(45deg, rgba(255,255,255,0.02) 0 2px, rgba(0,0,0,0) 2px 8px);
  color: #f6f6f6;
  padding: 60px 8%;
}

section.about .summary-content {
  max-width: 1100px;
  margin: 0 auto;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.04);
  padding: 28px 30px;
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.45);
}

/* Smaller heading for the homepage About teaser so it matches other section headers */
section.about .summary-content.teaser h2 {
  font-size: 2rem;
  margin-bottom: 12px;
  text-transform: none;
  letter-spacing: 1px;
  line-height: 1.15;
  color: var(--gold);
}

/* Dark fade for teaser in about section */
section.about .teaser::after {
  background: linear-gradient(180deg, rgba(4,32,23,0) 0%, rgba(4,32,23,1) 90%);
}

/* Ensure button stands out on dark background */
.teaser-button.button {
  background: var(--gold-gradient);
  color: #040d1a !important;
  padding: 12px 28px;
  display: inline-block;
  border-radius: 6px;
}

@media (max-width: 768px) {
  section.about { padding: 36px 6%; }
  section.about .summary-content { padding: 18px; }
}

.program-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  margin-top: 60px;
}

.program-card {
  background: var(--glass);
  padding: 50px 40px;
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
  border-radius: 5px;
  transition: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.program-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--gold);
  transform: translateY(-20px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.program-card h3 {
  color: var(--gold);
  font-size: 1.8rem;
  margin-bottom: 20px;
}

/* ================= ABOUT SECTION ================= */
.founder-info {
  display: flex;
  gap: 80px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.founder-img {
  width: 450px;
  height: 550px;
  object-fit: cover;
  border-radius: 5px;
  box-shadow: 30px 30px 0 var(--gold);
}

.founder-name h3 {
  font-size: 2.5rem;
  color: var(--gold);
  margin-top: 40px;
}

.founder-right p {
  font-size: 1.15rem;
  color: #ccc;
  margin-bottom: 30px;
}

.h-item {
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 1.1rem;
}

.h-item i {
  color: var(--gold);
  font-size: 1.4rem;
}

/* ================= CONTACT SECTION ================= */
.contact {
  background: var(--accent-orange);
  color: var(--text-dark);
  text-align: center;
}

/* Adjust header colors for Contact / Location */
.contact h2 { color: var(--white); }
.location h2 { color: var(--primary-navy); }

.contact-items {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 60px;
  margin: 50px 0;
  flex-wrap: wrap;
}

.contact-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.contact-box i {
  font-size: 2.5rem;
  color: var(--gold);
}

.social-links {
  display: flex;
  gap: 30px;
}

.social-icon {
  width: 60px;
  height: 60px;
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.4s;
}

.social-icon img {
  height: 30px;
  filter: grayscale(1) brightness(2);
  transition: 0.4s;
}

.social-icon:hover {
  background: var(--gold);
  border-color: var(--gold);
  transform: translateY(-10px);
}

.social-icon:hover img {
  filter: none;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 1024px) {
  .hero-content h1 {
    font-size: 3.5rem;
  }

  .founder-info {
    flex-direction: column;
    text-align: center;
  }

  .founder-img {
    width: 100%;
    height: 400px;
    box-shadow: 15px 15px 0 var(--gold);
  }
}

@media (max-width: 768px) {
  .nav-headers {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(4, 13, 26, 0.97);
    padding: 20px 0;
    gap: 0;
    border-top: 1px solid var(--glass-border);
  }

  .nav-headers.show {
    display: flex;
  }

  .nav-headers li {
    text-align: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--glass-border);
  }

  .menu-toggle {
    display: block;
    cursor: pointer;
    color: var(--gold);
    font-size: 1.5rem;
  }

  .nav-bar {
    padding: 10px 5%;
  }

  .hero-content h1 {
    font-size: 2.2rem;
  }

  .content-section h2 {
    font-size: 2rem;
  }
  .content-section { scroll-margin-top: 70px; }
}

/* Additional responsive refinements for better alignment and spacing across devices */
@media (max-width: 900px) {
  .content-section { padding: 60px 6%; }
  .summary-content { padding: 18px; }
  .programs-full .program-card, .program-card { padding: 20px 16px; }
  .program-grid { gap: 20px; }
  .program-grid { grid-template-columns: 1fr; }
  section.programs .video-wrap { flex-direction: column; gap: 14px; }
  section.programs .bg-video { width: 100%; height: 220px; max-height: 40vh; }
  .teaser { max-height: 120px; }
}

@media (max-width: 480px) {
  .hero { height: auto; padding: 40px 6%; }
  .hero-content h1 { font-size: 1.8rem; }
  .hero-content p { font-size: 0.95rem; }
  .content-section { padding: 40px 5%; }
  .summary-content { padding: 14px; }
  .programs-full .program-card, .program-card { padding: 16px 12px; }
  .program-card h3 { font-size: 1.1rem; }
  .floating-buttons { bottom: 78px; left: 12px; }
  .scroll-top { bottom: 78px; right: 12px; }
  footer { padding: 14px 6%; font-size: 0.9rem; }
  .teaser::after { height: 48px; }
  .map-box iframe { height: 320px; }
}

/* Hide menu toggle on desktop */
@media (min-width: 769px) {
  .menu-toggle {
    display: none;
  }
}

/* ================= LOCATION / MAP ================= */
.location {
  padding: 80px 10%;
  background: var(--primary-navy);
  color: white;
  text-align: center;
}

.location h2 {
  color: var(--gold);
  font-size: 3rem;
  text-transform: uppercase;
  letter-spacing: 4px;
  margin-bottom: 40px;
}

.map-box {
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid var(--glass-border);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.map-box iframe {
  display: block;
}

/* ================= CONTACT IMAGES ================= */
.insta-logo,
.youtube-logo {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--glass-border);
  transition: 0.4s;
}

.insta-logo:hover,
.youtube-logo:hover {
  border-color: var(--gold);
  transform: scale(1.15);
  box-shadow: 0 0 15px var(--gold-glow);
}

/* ================= FOOTER ================= */
footer {
  background: var(--accent-orange);
  color: var(--text-dark);
  text-align: center;
  padding: 30px 10%;
  font-size: 0.9rem;
  letter-spacing: 1px;
  border-top: 3px solid var(--gold);
  position: relative;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 3px;
  background: var(--gold-gradient);
  border-radius: 0 0 4px 4px;
}

/* ================= FLOATING BUTTONS ================= */
.floating-buttons {
  position: fixed;
  bottom: 30px;
  left: 25px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 999;
}

.floating-buttons a {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.4rem;
  text-decoration: none;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  transition: 0.4s;
}

.floating-buttons a:hover {
  transform: scale(1.15) translateY(-5px);
}

.call-btn {
  background: linear-gradient(135deg, #d4af37, #b8960c);
}

.whatsapp {
  background: linear-gradient(135deg, #25d366, #128c7e);
}

/* ================= SCROLL TO TOP ================= */
.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 25px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--gold-gradient);
  color: var(--primary-navy);
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.3);
  transition: 0.4s;
}

.scroll-top.show {
  display: flex;
}

.scroll-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(212, 175, 55, 0.5);
}

/* ================= ABOUT PAGE (sub-page) ================= */
.about h2 {
  color: var(--gold);
}


/* ---------------- About Subpage Overrides ---------------- */
/* Make About subpage match other subpages (dark, premium background) */
body.about-page {
  background: var(--bg-dark);
  color: var(--white);
}

/* Let the about section blend into the page background */
body.about-page section.about {
  background: transparent;
  color: var(--white);
  padding: 60px 8%;
}

/* Keep the content card slightly translucent on dark background */
body.about-page section.about .summary-content {
  background: rgba(255,255,255,0.03);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.04);
  box-shadow: 0 10px 30px rgba(0,0,0,0.45);
  padding: 28px 30px;
}

body.about-page .founder-right p,
body.about-page .founder-right .h-item {
  color: rgba(255,255,255,0.9);
}

/* ---------------- Homepage (use programs background across homepage) ---------------- */
body.home-page {
  background: var(--bg-dark);
  color: var(--white);
}

/* Ensure homepage content sections inherit readable light text */
body.home-page .content-section {
  color: var(--white);
}

/* Headings on homepage use gold for contrast */
body.home-page .content-section h2 {
  color: var(--gold);
}

/* Ensure Contact header stays white on the homepage (override homepage gold) */
body.home-page .contact h2 {
  color: var(--white);
}

/* Keep teaser fade suitable for dark homepage */
body.home-page .teaser::after {
  background: linear-gradient(180deg, rgba(4,32,23,0) 0%, rgba(4,32,23,1) 90%);
}

/* Make Location section on homepage use the same dark programs background */
body.home-page .location {
  background: var(--bg-dark);
  color: var(--white);
}

/* Quick Links bar for subpages */
.quick-links {
  max-width: 1200px;
  margin: 18px auto;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.04);
  padding: 10px 14px;
  border-radius: 8px;
}
.quick-links a {
  color: var(--gold);
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 4px;
  background: rgba(0,0,0,0.06);
  text-decoration: none;
}
@media (max-width: 768px) {
  .quick-links { padding: 8px 10px; margin: 12px 6%; }
}


/* ================= TOURNAMENTS / FACILITIES ================= */
.tournaments {
  background: var(--bg-dark);
  color: var(--white);
}

.tournaments h2 {
  color: var(--gold);
}

.tournament-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  margin-top: 40px;
}

/* ================= LINKS ================= */
a {
  text-decoration: none;
  color: inherit;
}

/* Footer simplified styling (no quick-links/logo) */
.footer-copyright {
  color: rgba(255,255,255,0.65);
  font-size: 0.95rem;
  text-align: center;
}

@media (max-width: 768px) {
  .footer-copyright { padding: 12px 6%; }
}