/* Global Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Saira", sans-serif;
}

body {
  background: #0d0d0d;
  color: #ffffff;
  scroll-behavior: smooth;
}

/* Header & Navigation */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(6px);
  background: rgba(13, 13, 13, 0.8);
}

.logo {
  font-size: 2rem;
  font-weight: 800;
  color: #fffb00;
  text-shadow: 0 0 10px #ffa500;
}

.header-logo {
  height: 38px;
  width: 38px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 30px;
}

.nav-links a {
  text-decoration: none;
  color: #ffffff;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #ff6200;
}

/* Hamburger Menu for Mobile - Hidden on Desktop */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  z-index: 1001;
}

.menu-toggle span {
  height: 3px;
  width: 25px;
  background: #fff;
  margin-bottom: 5px;
  border-radius: 5px;
}

/* Hero Section */
.hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 90vh;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero .main-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, #a00909, hsl(52, 89%, 48%), hwb(220 10% 2%));
  background-size: 400% 400%;
  animation: gradientMove 10s ease infinite;
  z-index: 0;
}

@keyframes gradientMove {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* ACADEMY POSTER */
.academy-poster {
  position: relative;
  overflow: hidden;
}

.academy-poster img {
  width: 100%;
  height: auto;
  display: block;
}


/* ACADEMY – TWO BLOCK STACK */
.academy-about {
  padding: 4rem 2rem;
  background: #111;
  text-align: center;
}
.about-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
}
.about-content img {
  width: 400px;
  max-width: 100%;
  border-radius: 8px;
}
.about-content p {
  max-width: 600px;
  font-size: 1.1rem;
  text-align: left;
}

/* TOURNAMENT CARDS on index.html */
.home-tournaments {
  background: #000;
  padding: 4rem 2rem;
  color: #fff;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.section-header h2 {
  font-size: 2rem;
  color: #fff;
  border-bottom: 3px solid red;
  display: inline-block;
  padding-bottom: 0.3rem;
}

.view-all-btn {
  color: red;
  text-decoration: none;
  font-size: 1rem;
  transition: 0.3s;
}
.view-all-btn:hover {
  text-shadow: 0 0 8px red;
}

.tournament-card-wrapper {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.tournament-card {
  background: #111;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 10px rgba(255, 0, 0, 0.3);
  transition: 0.3s;
}
.tournament-card:hover {
  transform: scale(1.03);
  box-shadow: 0 0 20px red;
}

.tournament-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card-content {
  padding: 1rem;
}

.card-content h3 {
  margin-top: 0;
  font-size: 1.3rem;
  color: white;
}

.card-content p {
  font-size: 0.9rem;
  margin: 0.3rem 0;
  color: #ccc;
}

.btn-cta {
  margin-top: 1rem;
  display: inline-block;
  background: red;
  color: white;
  padding: 0.7rem 1.5rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s;
}
.btn-cta:hover {
  box-shadow: 0 0 10px red;
}

/* GALLERY SLIDER on index.html */
.home-gallery {
  background: #111;
  padding: 4rem 2rem;
  color: #fff;
}
.gallery-slider-wrapper {
  margin-top: 2rem;
}
.gallery-slider {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  gap: 1rem;
}
.gallery-slider::-webkit-scrollbar {
  display: none;
}
.gallery-slider img {
  max-width: 340px;
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  scroll-snap-align: start;
}

/* GALLERY PAGE */
.gallery-page {
  padding: 4rem 2rem;
  background: #000;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}
.gallery-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  transition: transform 0.3s;
}
.gallery-item img:hover {
  transform: scale(1.05);
}


/* TESTIMONIALS SLIDER */
.testimonial-wrapper {
  padding: 2rem 1rem;
  text-align: center;
  background: #000;
}
.carousel-container {
  position: relative;
  width: 100%;
  max-width: 600px;
  height: auto;
  min-height: 250px;
  margin: auto;
  perspective: 1000px;
}
.testimonial-card {
  position: absolute;
  width: 100%;
  background: #1a1a1a;
  color: #fff;
  padding: 1.5rem;
  border-radius: 20px;
  box-shadow: 0 0 25px rgba(255, 0, 0, 0.3);
  opacity: 0;
  transform: scale(0.95) translateY(20px) rotateX(15deg);
  transition: all 0.7s ease;
  z-index: 0;
  top: 0;
  left: 0;
}
.testimonial-card.active {
  opacity: 1;
  transform: scale(1) translateY(0px) rotateX(0deg);
  z-index: 1;
}
.quote {
  font-size: 1rem;
  margin-bottom: 1rem;
  color: #eee;
}
.profile {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.profile img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}
.name {
  font-weight: bold;
  color: #fff;
}
.role {
  font-size: 0.8rem;
  color: #aaa;
}
.nav-buttons {
  margin-top: 4rem;
  text-align: center;
}
.nav-buttons button {
  background: #000;
  color: #fff;
  border: none;
  padding: 10px 16px;
  margin: 0 5px;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s ease;
  box-shadow: 0 0 10px red;
}
.nav-buttons button:hover {
  background: #222;
}

/* NEWSLETTER SIGN-UP */
.newsletter {
  text-align: center;
  padding: 4rem 2rem;
  background: #1a1a1a;
}
.newsletter h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}
.newsletter input {
  padding: 0.8rem;
  border: none;
  border-radius: 6px;
  background: #333;
  color: #fff;
  width: 100%;
  max-width: 400px;
  margin-right: 10px;
}
.newsletter .btn {
  background: red;
  color: white;
  padding: 0.8rem 1.5rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.3s;
}
.newsletter .btn:hover {
  background: #e60000;
}

/* Footer */
.footer {
  background: #000;
  color: #fff;
  padding: 60px 40px 30px;
  position: relative;
  font-family: "Saira", sans-serif;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 30px;
}

.footer-left,
.footer-links,
.footer-contact {
  flex: 1 1 250px;
}

.footer-logo {
  width: 60px;
  margin-bottom: 10px;
  border-radius: 8px;
}

.footer h2 {
  font-size: 1.5rem;
  color: #ff0000;
  margin-bottom: 10px;
}

.footer h3 {
  font-size: 1.2rem;
  color: #ffcc00;
  margin-bottom: 15px;
}

.footer p,
.footer a {
  font-size: 0.9rem;
  color: #aaa;
  margin: 5px 0;
  text-decoration: none;
  transition: 0.3s;
}

.footer a:hover {
  color: #fff;
  text-shadow: 0 0 10px red;
}

.social-links {
  margin-top: 15px;
  display: flex;
  gap: 15px;
  justify-content: center;
}

.social-links a img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  transition: transform 0.3s;
}

.social-links a:hover img {
  transform: scale(1.1);
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid #333;
  padding-top: 20px;
  font-size: 0.85rem;
  color: #777;
}

.footer-bottom a {
  color: #aaa;
  margin: 0 10px;
}

.footer-bottom a:hover {
  color: #fff;
  text-shadow: 0 0 8px #f00;
}

/* Floating Social Media Buttons Container */
.social-float-container {
    position: fixed;
    right: 25px;
    bottom: 25px;
    display: flex;
    flex-direction: column;
    gap: 15px; /* Adjust spacing between buttons */
    z-index: 999;
}

.social-float-container a {
    display: block;
    width: 30px; /* Adjust size of buttons */
    height: 30px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    overflow: hidden;
    transition: transform 0.3s;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}

.social-float-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.social-float-container a:hover {
    transform: scale(1.1);
}

/* ACADEMY PAGE */
.academy-poster {
  position: relative;
  overflow: hidden;
}

.academy-poster img {
  width: 100%;
  height: auto;
  display: block;
}

.academy-branches {
  padding: 4rem 2rem;
  background: #000;
}
.academy-cards {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(3, 1fr);
}
.academy-card {
  background: #111;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(255, 0, 0, 0.3);
  overflow: hidden;
  max-width: 100%;
  margin: 0;
}
.slider {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}
.slider img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  scroll-snap-align: start;
}
.card-details {
  padding: 1.5rem;
  text-align: center;
}
.card-details h3 {
  margin: 0.5rem 0;
}
.card-details a {
  color: red;
  text-decoration: underline;
}

/* Why Choose Us Section */
.why-choose {
  padding: 4rem 2rem;
  background: #111;
}
.why-choose .section-title {
  text-align: center;
  font-size: 2.2rem;
  color: #fff;
  margin: 3rem 0 1.5rem;
  letter-spacing: 1px;
}
.reasons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
  justify-content: center;
}
.reason {
  background: #1a1a1a;
  padding: 1rem;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 0 10px rgba(255, 0, 0, 0.2);
}
.reason img {
  width: 300px;
  height: 300px;
  object-fit: contain;
  margin-bottom: 0.5rem;
}
.reason p {
  font-size: 1rem;
}

/* Registration Form */
.academy-register {
  padding: 4rem 2rem;
  text-align: center;
  background: #000;
}
#regForm {
  display: grid;
  gap: 1rem;
  max-width: 500px;
  margin: 2rem auto 0;
}
#regForm input,
#regForm select,
#regForm textarea {
  padding: 0.8rem;
  border: none;
  background: #1a1a1a;
  color: #fff;
  border-radius: 6px;
  font-family: 'Saira', sans-serif;
}
#regForm button {
  background: red;
  color: white;
  padding: 1rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.3s;
}
#regForm button:hover {
  background: #e60000;
  box-shadow: 0 0 10px red;
}

/* TOURNAMENT PAGE */
.tournament-hero {
  height: 75vh;
  background: url('images/banner.png') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.tournament-hero .overlay {
  background: rgba(0, 0, 0, 0.7);
  padding: 3rem 4rem;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 0 20px rgba(255, 0, 0, 0.4);
}
.tournament-hero h1 {
  font-size: 3rem;
  color: #fff;
}
.tournament-list .cards {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  padding: 2rem;
}
.tournament-card {
  background: #111;
  border-radius: 10px;
  box-shadow: 0 0 12px rgba(255, 0, 0, 0.25);
  overflow: hidden;
}
.tournament-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.tournament-card .info {
  padding: 1rem;
  text-align: center;
}
.tournament-register {
  padding: 4rem 2rem;
  background: #111;
}
#tourForm {
  display: grid;
  gap: 1.2rem;
  max-width: 550px;
  margin: 0 auto;
}
#tourForm input,
#tourForm select,
#tourForm textarea {
  padding: 1rem;
  border: none;
  border-radius: 6px;
  background: #1a1a1a;
  color: #fff;
}
#tourForm button {
  padding: 1rem;
  background: red;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.3s;
}
#tourForm button:hover {
  background: #e60000;
  box-shadow: 0 0 10px red;}


/* PRIVACY & TERMS PAGES */
.dark-theme {
  background-color: #000;
  color: #eee;
  padding: 40px 20px;
}

.page-container {
  max-width: 800px;
  margin: auto;
}

.page-container h1 {
  color: #ffcc00;
  font-size: 2.2rem;
  margin-bottom: 30px;
}

.page-container h2 {
  color: #ff6600;
  font-size: 1.5rem;
  margin-top: 30px;
}

/* CONTACT PAGE */
.contact {
  padding: 60px 40px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.contact-form {
  background: #1a1a1a;
  padding: 40px;
  border-radius: 12px;
  width: 100%;
  max-width: 600px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.contact-form h2 {
  margin-bottom: 20px;
  text-align: center;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 15px;
  margin-bottom: 20px;
  border: none;
  border-radius: 8px;
  background: #262626;
  color: #ffffff;
}

.contact-form button {
  display: block;
  margin: 0 auto;
  padding: 15px 40px;
  background: #ff6200;
  color: #ffffff;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.3s ease;
}

.contact-form button:hover {
  background: #ff7f00;
}


/* ----- MEDIA QUERIES FOR RESPONSIVENESS ----- */

/* Tablets (768px to 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
  header {
    padding: 20px;
  }
  .nav-links {
    gap: 20px;
  }
  .hero h1 {
    font-size: 3rem;
  }
  .hero p {
    font-size: 1rem;
  }
  .about-content {
    flex-direction: column;
    text-align: center;
  }
  .about-content img {
    width: 100%;
  }
  .about-content p {
    text-align: center;
  }
  .why-choose .reasons {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile Devices (up to 767px) */
@media (max-width: 767px) {
  header {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
  }
  .menu-toggle {
    display: flex;
  }
  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    position: absolute;
    top: 68px;
    left: 0;
    background: rgba(13, 13, 13, 0.9);
    padding: 20px 0;
  }
  .nav-links.active {
    display: flex;
  }
  .nav-links li {
    text-align: center;
    margin: 10px 0;
  }
  .hero h1 {
    font-size: 2.5rem;
  }
  .hero p {
    font-size: 0.9rem;
  }
  .about-content, .about-content.reverse {
    flex-direction: column;
    text-align: center;
  }
  .about-content img {
    width: 100%;
  }
  .about-content p {
    text-align: center;
  }
  .tournament-card-wrapper {
    grid-template-columns: 1fr;
  }
  .testimonial-wrapper .nav-buttons {
    margin-top: 2rem;
  }
  .newsletter input {
    margin-right: 0;
    margin-bottom: 10px;
  }
  .newsletter .btn {
    width: 100%;
  }
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
  .footer-links a {
    display: block;
  }
  .social-links {
    justify-content: center;
  }
  .why-choose .reasons {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .academy-cards {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .academy-card {
    max-width: 100%;
    margin: 0;
  }
  .card-details {
    text-align: center;
  }
  .slider img {
    height: 200px;
  }
  .tournament-hero .overlay {
    padding: 2rem 1rem;
  }
  .tournament-hero h1 {
    font-size: 2rem;
  }
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  .gallery-item img {
    height: 400px;
    width: 400px;
  }
}

/* Pop-up Modal Styling */
.status-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(0, 0, 0, 0.85);
  color: #fff;
  padding: 20px 40px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
  z-index: 2000;
  display: none; /* Hidden by default */
  text-align: center;
  font-size: 1.2rem;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: opacity 0.5s ease;
  opacity: 0;
}

.status-popup.show {
  display: block;
  opacity: 1;
}

.popup-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}