/* Root Variables - Airtel Red Theme */
:root {
  --primary-red: #e61e24;
  --dark-red: #b71c1c;
  --light-gray: #f5f5f5;
  --dark-gray: #333;
  --white: #ffffff;
  --text-gray: #666;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--dark-gray);
  background-color: var(--white);
}

body.menu-open {
  overflow: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header & Navigation */
.header {
  background-color: var(--primary-red);
  color: var(--white);
  padding: 20px 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo h1 {
  font-size: 28px;
  font-weight: bold;
}

.logo p {
  font-size: 12px;
  opacity: 0.9;
}

.navbar {
  flex: 1;
  display: flex;
  justify-content: center;
}

.navbar .nav-list {
  list-style: none;
  display: flex;
  gap: 30px;
  align-items: center;
}

.nav-link {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.3s ease;
}

.nav-link:hover {
  opacity: 0.8;
}

/* JOIN Button */
.nav-join-btn {
  display: inline-block !important;
  padding: 9px 24px !important;
  background-color: #7a0000 !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  font-size: 13px !important;
  text-decoration: none !important;
  border-radius: 50px !important;
  letter-spacing: 1px !important;
  text-transform: uppercase !important;
  transition: all 0.3s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35) !important;
  white-space: nowrap;
  border: 2px solid rgba(255, 255, 255, 0.4) !important;
  flex-shrink: 0;
}

.nav-join-btn:hover {
  background-color: #5a0000 !important;
  color: #ffffff !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.7) !important;
}

.mobile-only-li {
  display: none !important;
}


/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.mobile-menu-toggle span {
  width: 100%;
  height: 3px;
  background-color: var(--white);
  border-radius: 10px;
  transition: all 0.3s linear;
  position: relative;
  transform-origin: 1px;
}

.mobile-menu-toggle.active span:first-child {
  transform: rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: translateX(20px);
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg);
}

.hero {
  position: relative;
  height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #000 url('../../images/stadium_background.webp') center/cover no-repeat;
}

.hero-video-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 56.25vw;
  /* 16:9 aspect ratio */
  min-height: 100vh;
  min-width: 177.77vh;
  /* 16:9 aspect ratio */
  transform: translate(-50%, -50%) scale(1.3); /* Scaled up to hide edges/controls */
  opacity: 0;
  transition: opacity 0.8s ease; /* Slightly longer fade for smoother transition */
  pointer-events: none;
}

.hero-video iframe {
  pointer-events: none !important;
  user-select: none !important;
}

.hero-video.video-playing {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(230, 30, 36, 0.3) 0%, rgba(183, 28, 28, 0.35) 100%);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  color: var(--white);
  text-shadow: 2px 2px 12px rgba(0, 0, 0, 0.8);
  max-width: 900px;
  padding: 0 20px;
  width: 100%;
  animation: heroFadeUp 1s ease-out forwards;
}

@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-title {
  font-size: 56px;
  font-weight: bold;
  margin-bottom: 20px;
  letter-spacing: 2px;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 22px;
  margin-bottom: 40px;
  opacity: 0.95;
  letter-spacing: 0.5px;
  font-weight: 300;
  line-height: 1.6;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.hero-btn {
  padding: 15px 40px;
  font-size: 18px;
  background-color: var(--white);
  color: var(--primary-red);
  border: none;
  border-radius: 50px;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
  background-color: var(--light-gray);
}

/* Overview Section */
.overview {
  padding: 60px 0;
  background-color: var(--light-gray);
}

.overview h2 {
  text-align: center;
  font-size: 36px;
  margin-bottom: 40px;
  color: var(--primary-red);
}

.overview-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.card {
  background-color: var(--white);
  padding: 30px;
  text-align: center;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
}

.card h3 {
  color: var(--primary-red);
  margin-bottom: 10px;
  font-size: 18px;
}

.card p {
  font-size: 32px;
  font-weight: bold;
  color: var(--dark-gray);
}

/* News Section */
.latest-news {
  padding: 60px 0;
}

.latest-news h2 {
  font-size: 36px;
  color: var(--primary-red);
  margin-bottom: 40px;
  text-align: center;
}

.news-grid {
  display: flex;
  gap: 30px;
  overflow: hidden;
  max-width: 100%;
  position: relative;
  height: 400px;
}

@keyframes fadeInOut {

  0%,
  30.33% {
    opacity: 0;
    visibility: hidden;
  }

  33.33%,
  63.33% {
    opacity: 1;
    visibility: visible;
  }

  66.33%,
  100% {
    opacity: 0;
    visibility: hidden;
  }
}

.news-card {
  flex: 0 0 100%;
  min-width: 100%;
  background-color: var(--light-gray);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  animation: fadeInOut 24s linear infinite;
  opacity: 0;
}

.news-card:nth-child(1) {
  animation-delay: 0s;
}

.news-card:nth-child(2) {
  animation-delay: 8s;
}

.news-card:nth-child(3) {
  animation-delay: 16s;
}

.news-grid:hover .news-card {
  animation-play-state: paused;
}

.news-card img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.news-card-content {
  padding: 15px;
}

/* Events Section */
.upcoming-events {
  padding: 60px 0;
  background-color: var(--light-gray);
}

.upcoming-events h2 {
  font-size: 36px;
  color: var(--primary-red);
  margin-bottom: 40px;
  text-align: center;
}

.events-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.event-item {
  background-color: var(--white);
  padding: 20px;
  border-radius: 8px;
  display: flex;
  gap: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.event-date {
  background-color: var(--primary-red);
  color: var(--white);
  padding: 15px;
  border-radius: 5px;
  text-align: center;
  min-width: 80px;
  font-weight: bold;
}

/* Footer Content */
.footer {
  background-color: var(--dark-gray);
  color: var(--white);
  padding: 40px 0 20px;
  margin-top: 0;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 30px;
}

.footer-section h3 {
  color: var(--primary-red);
  margin-bottom: 15px;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 10px;
}

.footer-section a {
  color: var(--white);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: var(--primary-red);
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-links a {
  display: inline-block;
  width: 40px;
  height: 40px;
  background-color: var(--primary-red);
  border-radius: 50%;
  text-align: center;
  line-height: 40px;
  font-size: 16px;
  color: var(--white);
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid #555;
  padding-top: 20px;
  color: #999;
}

/* Responsive Design */
@media (max-width: 768px) {
  .header {
    padding: 15px 0;
  }

  .desktop-join-btn {
    display: none !important;
  }

  .mobile-only-li {
    display: block !important;
    width: 100%;
    margin-top: 20px;
    text-align: center;
  }

  .mobile-join-btn {
    display: block !important;
    width: 100%;
    margin: 0 auto;
    padding: 12px 20px !important;
    font-size: 14px !important;
    background-color: #ffffff !important;
    color: var(--primary-red) !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .navbar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background-color: var(--dark-red);
    display: flex;
    flex-direction: column;
    padding: 80px 30px;
    transition: right 0.3s ease-in-out;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.3);
    z-index: 1000;
  }

  .navbar.active {
    right: 0;
  }

  .navbar .nav-list {
    flex-direction: column;
    gap: 0;
    width: 100%;
  }

  .nav-link {
    font-size: 18px;
    display: block;
    padding: 15px 0;
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav-list li:last-child .nav-link {
    border-bottom: none;
  }

  .hero {
    height: 400px;
  }

  .hero-title,
  .players-hero h1,
  .leadership-section h2,
  .values-sync-section h2,
  .journey-sync-section h2 {
    font-size: 28px !important;
    letter-spacing: 1px !important;
    margin-bottom: 15px !important;
  }

  .hero-subtitle {
    font-size: 18px;
  }

  .overview h2 {
    font-size: 28px;
    margin-bottom: 30px;
  }

  .overview-cards,
  .filter-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .players-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }

  .about-grid,
  .news-events-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .logo h1 {
    font-size: 20px;
  }

  .hero {
    height: 350px;
  }

  .hero-title {
    font-size: 24px;
    letter-spacing: 1px;
  }

  .hero-subtitle {
    font-size: 14px;
    margin-bottom: 30px;
  }

  .hero-btn {
    padding: 12px 30px;
    font-size: 16px;
  }

  .overview-cards,
  .filter-cards {
    grid-template-columns: 1fr;
  }

  .players-grid {
    grid-template-columns: 1fr;
  }
}

/* Menu Backdrop */
.menu-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
}

.menu-backdrop.active {
  opacity: 1;
  visibility: visible;
}

/* Smooth Scroll */
html {
  scroll-behavior: smooth;
}

/* Premium Journey & Bulletin Buttons */
.btn-premium-journey,
.btn-bulletins {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 45px;
  background-color: var(--white);
  color: var(--primary-red);
  border: 3px solid var(--primary-red);
  border-radius: 50px;
  font-size: 16px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  box-shadow: 0 10px 25px rgba(230, 30, 36, 0.15);
  margin: 20px auto;
  width: fit-content;
}

.btn-premium-journey:hover,
.btn-bulletins:hover {
  background-color: var(--primary-red);
  color: var(--white);
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(230, 30, 36, 0.35);
}

/* Join Modal Styles */
.join-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  animation: fadeIn 0.3s ease;
}

.join-modal-content {
  background: var(--white);
  width: 90%;
  max-width: 450px;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
  position: relative;
  text-align: center;
  animation: slideUp 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.join-modal-close {
  position: absolute;
  top: 20px;
  right: 25px;
  font-size: 28px;
  cursor: pointer;
  color: #999;
  transition: 0.3s;
}

.join-modal-close:hover {
  color: var(--primary-red);
}

.join-modal-title {
  color: var(--primary-red);
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.join-modal-input {
  width: 100%;
  padding: 15px 25px;
  border: 2px solid #eee;
  border-radius: 50px;
  font-size: 16px;
  margin-bottom: 25px;
  transition: 0.3s;
}

.join-modal-input:focus {
  border-color: var(--primary-red);
  outline: none;
}

.join-modal-submit {
  width: 100%;
  padding: 15px;
  background: var(--primary-red);
  color: var(--white);
  border: none;
  border-radius: 50px;
  font-weight: 800;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(230, 30, 36, 0.3);
  transition: 0.3s;
}

.join-modal-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(230, 30, 36, 0.4);
}

.join-success-message {
  display: none;
  animation: fadeIn 0.5s ease;
}

.join-success-message span {
  font-size: 50px;
  display: block;
  margin-bottom: 15px;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Scroll to Top Button */
.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: var(--primary-red);
  color: var(--white);
  border: none;
  border-radius: 50%;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 9999;
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-to-top:hover {
  background-color: #a00000;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  transform: translateY(-5px) scale(1.05);
}