/* ===== GLOBAL ===== */
* { 
  margin: 0; 
  padding: 0; 
  box-sizing: border-box; 
  font-family: 'Roboto', sans-serif; 
  transition: all 0.3s ease; /* smooth hover & changes */
}

body { background: #021225; color: #fff; }
a { text-decoration: none; color: inherit; }

/* ===== HEADER ===== */
header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px;
  background: #020e1f;
  position: fixed;
  z-index: 1000;
  transition: background 0.3s ease;
}
header.scrolled { background: #010a17; } /* optional darken on scroll */

.logo a{padding: 10px; border-radius: 40px; background-color: #00ff8f; color: #000; font-family: fantasy; font-weight: 900; font-size: 24px; transition: transform 0.3s; }
.logo span { color: #fff; }

nav { display: flex; gap: 15px; }
nav a { font-size: 16px; color: #fff; transition: color 0.3s; }
nav a:hover { color: #ffffff; }
.nav-right {
  display: flex;
  gap: 10px;
  align-items: center;
  position: relative;
}
.nav-right input {
  padding: 6px 10px;
  background:  rgba(255, 255, 255, 0.1);
  border: 1px solid #fff;
  padding: 10px;
  color: #fff;
  width: 200px;
  border-radius: 20px;
  outline: none;
  transition: all 0.3s ease;
}
.nav-right input:focus { outline: 2px solid #00ff8f; }

.signin {
  padding: 6px 14px;
  border-radius: 20px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}
.signin:hover { background: #00ff8f; color: #000; }

.menu-btn {
  display: none;
  font-size: 22px;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  transition: transform 0.3s;
}
.menu-btn:hover { transform: scale(1.2); }

/* MOBILE ICONS */
.mobile-icon { 
  display: none; 
  font-size: 20px; 
  cursor: pointer; 
  transition: transform 0.3s; 
}
.mobile-icon:hover { transform: scale(1.2); }

/* SIDEBAR */
.sidebar {
  padding: 20px;
  position: fixed;
  top: 0; left: -260px;
  width: 260px;
  height: 100vh;
  background: #020e1f;
  padding: 60px 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: left 0.4s ease; /* smooth slide */
  z-index: 999;
}
.sidebar a {margin-bottom: 10px; gap: 20px; font-size: 18px; color: #fff; transition: color 0.6s; }
.sidebar a:hover { color: #00ff8f; }
.sidebar.active { left: 0; }

/* SEARCH & USER POPUPS */
.search-popup, .user-popup {
  display: none;
  position: absolute;
  top: 60px;
  right: 20px;
  background: #020e1f;
  padding: 10px;
  border-radius: 10px;
  z-index: 1001;
  flex-direction: column;
  gap: 10px;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s ease;
}
.search-popup input {
  padding: 5px 10px;
  border-radius: 20px;
  border: none;
  width: 100%;
  background-color: #021225;
  color: #fff;
  outline: none;
}
.search-popup.show, .user-popup.show {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}

/* ===== HERO ===== */
.hero {
  margin: 20px;
  border-radius: 20px;
  position: relative;
  height: 55vh; /* updated hero height */
  background-size: cover;
  background-position: center;
  transition: background-image 0.6s ease, opacity 0.6s ease;
}

.overlay {
  position: absolute;
  inset: 0; 
  background: linear-gradient(to right, #0f4c0a 20%, transparent 100%);
}

/* HERO CONTENT */
.hero-content { 
  margin: 0 auto; 
  position: relative; 
  max-width: 500px; 
  padding: 40px 20px; /* reduced padding for proportional layout */
  top: 10%; /* position content nicely */
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}
.hero-content.show {
  opacity: 1;
  transform: translateY(0);
}

.badge { 
  background: rgba(255,255,255,0.15); 
  padding: 6px 14px; 
  border-radius: 20px; 
  font-size: 12px; 
  display: inline-block; 
  margin-bottom: 10px; 
  opacity: 0; 
  transition: opacity 0.6s ease; 
}
.badge.show { opacity: 1; }

.hero-content h1 {
  font-size: 32px; /* smaller for proportional layout */
  margin-bottom: 10px;
  transition: all 0.6s ease;
}
.hero-content p { 
  line-height: 1.4; 
  font-size: 14px; /* adjusted for proportional look */
  opacity: 0.9; 
  transition: all 0.6s ease;
}

.dots { margin-top: 20px; }
.dots span {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #777;
  display: inline-block;
  margin-right: 6px;
  cursor: pointer;
  transition: background 0.3s;
}
.dots span.active { background: #fff; }

.hero-nav { position: absolute; bottom: 20px; right: 20px; }
.hero-nav button { 
  background: rgba(0,0,0,0.6); 
  color: #fff; 
  border: none; 
  font-size: 20px; 
  padding: 6px 12px; 
  cursor: pointer; 
  transition: background 0.3s, transform 0.3s;
}
.hero-nav button:hover { background: rgba(0,0,0,0.9); transform: scale(1.1); }

/* ===== LIVE SCHEDULE ===== */
.schedule { padding: 30px 20px; font-size: 16px;  }
.cards { margin: 10px; display: flex; gap: 14px; overflow-x: auto; padding: 20px 0; scrollbar-width: none; }
.cards::-webkit-scrollbar { display: none; }

.card { 
  min-width: 350px; 
  height: 200px; 
  border-radius: 10px; 
  position: relative; 
  flex-shrink: 0; 
  transition: transform 0.3s, box-shadow 0.3s, opacity 0.6s ease;
  opacity: 0; /* fade-in initially */
  transform: translateY(20px);
}
.card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.5); }

.time { 
  position: absolute; top: 10px; left: 10px; 
  background: #fff; color: #000; 
  padding: 4px 8px; border-radius: 12px; font-size: 12px; 
}

.red { background: #e53b2c; }
.green { background: #0f8f7a; }
.purple { background: #6a1634; }
.teal { background: #18b4a7; }
.blue { background: #0aa3c2; }
.black { border: 1px solid #fff; padding: 70px;}
.grey { background: #888; }

/* ===== ANIMATIONS ===== */
.hero-content.show { opacity: 1; transform: translateY(0); }
.badge.show { opacity: 1; transform: translateY(0); }
.cards .card.show { opacity: 1; transform: translateY(0); }
.hero.fade { opacity: 0; transition: opacity 0.8s ease; }
.hero.fade.show { opacity: 1; }
/* ===== PRELOADER ===== */

/* ===== FOOTER ===== */
footer {
  background: #020e1f;
  color: #fff;
  padding: 40px 20px;
  font-size: 14px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 25px;
  align-items: center;
}

.footer-logo img {
  width: 120px;
  filter: brightness(0) invert(1);
}

.footer-links-container {
  width: 100%;
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 20px;
  text-align: center;
}

.footer-links-container h4 {
  margin-bottom: 10px;
  color: #00ff8f;
  font-size: 16px;
}

.footer-menu a,
.footer-services a,
.footer-social a {
  display: block;
  margin-bottom: 6px;
  color: #fff;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-menu a:hover,
.footer-services a:hover,
.footer-social a:hover {
  color: #00ff8f;
}

.footer-social a {
  display: inline-block;
  margin: 0 6px;
  font-size: 18px;
}

/* Footer bottom */
.footer-bottom {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
  font-size: 13px;
  color: #aaa;
}

.footer-bottom a {
  color: #00ff8f;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-bottom a:hover { color: #fff; }

/* ===== BACK TO TOP ===== */
#backToTop {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  border: none;
  background: #00ff8f;
  color: #021225;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;

  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.4s ease;
  z-index: 999;
}

#backToTop.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#backToTop:hover {
  background: #fff;
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 255, 143, 0.4);
}

.login-btn{
  padding: 10px 14px;
  border-radius: 20px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  background-color: #00ff8f;
  color: #000;
  font-weight: 700;
}
.login-btn a{
  color: #000;
  font-weight: 700;
}
.login-btn:hover { background: #ffffff; padding: 11px 15px; color: #000; transition: all 0.9s ease; }

#preloader {
  position: fixed;
  inset: 0;
  background: #021225;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

#preloader p {
  color: #00ff8f;
  font-weight: 700;
  margin-top: 20px;
  font-size: 16px;
  text-align: center;
}

/* FOOTBALL DOTS */
.football {
  position: relative;
  width: 100px;
  height: 100px;
}

.dot {
  width: 15px;
  height: 15px;
  background: #00ff8f;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: bounce 1s infinite alternate;
}

/* Arrange dots to look like a football (hex/pent pattern) */
.dot1 { transform: translate(-50%, -50%) translate(-30px, -20px); animation-delay: 0s; }
.dot2 { transform: translate(-50%, -50%) translate(0px, -25px); animation-delay: 0.1s; }
.dot3 { transform: translate(-50%, -50%) translate(30px, -20px); animation-delay: 0.2s; }
.dot4 { transform: translate(-50%, -50%) translate(-20px, 0px); animation-delay: 0.3s; }
.dot5 { transform: translate(-50%, -50%) translate(20px, 0px); animation-delay: 0.4s; }
.dot6 { transform: translate(-50%, -50%) translate(-30px, 20px); animation-delay: 0.5s; }
.dot7 { transform: translate(-50%, -50%) translate(0px, 25px); animation-delay: 0.6s; }
.dot8 { transform: translate(-50%, -50%) translate(30px, 20px); animation-delay: 0.7s; }
.dot9 { transform: translate(-50%, -50%) translate(0px, 0px); animation-delay: 0.8s; }

@keyframes bounce {
  0% { transform: translate(-50%, -50%) translate(var(--x,0), var(--y,0)) scale(1); }
  50% { transform: translate(-50%, -50%) translate(var(--x,0), var(--y,0)) scale(1.3); }
  100% { transform: translate(-50%, -50%) translate(var(--x,0), var(--y,0)) scale(1); }
}

/* Responsive */
@media (max-width:768px){
  .football { width: 70px; height: 70px; }
  .dot { width: 10px; height: 10px; }
  #preloader p { font-size: 14px; }
}

/* ===== MOBILE ===== */
@media (max-width: 768px){
  nav { display: none; }
  .menu-btn { display: block; }
  .hero { height: 55vh; } 
  .hero-content h1 { font-size: 26px; }
  .hero-content p { font-size: 13px; }
  .nav-right input, .signin { display: none; }
  .mobile-icon { display: block; }
}
/* Responsive */
@media (max-width: 768px) {
  .footer-links-container {
    flex-direction: column;
    gap: 20px;
  }

  .footer-social a { font-size: 20px; }
  .footer-logo img { width: 100px; }
}
