/* General Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background: #111;
  /* Dark theme */
  color: #fff;
  overflow-x: hidden;
  height: 100vh;
  width: 100vw;
}

/* play pause button */

.play-pause-btn {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background: rgba(0, 0, 0, 0.3); /* More transparent */
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  color: white;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: background 0.3s, transform 0.3s;
  backdrop-filter: blur(5px); /* Soft blur behind the button */
}

.play-pause-btn:hover {
  background: rgba(0, 0, 0, 0.5); /* Slightly darker on hover */
  transform: scale(1.1); /* Slight zoom effect on hover */
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 1rem 2rem;
  background: transparent;
  z-index: 500;
  display: flex;
  align-items: center;
}

.navbar .logo {
  padding: 0.75rem 2rem;
  font-size: 1.5rem;
  font-weight: bold;
  color: white;
  transition: all 0.3s ease;
}

.navbar .nav-links {
  flex: 1;
  display: flex;
  justify-content: center;
  gap: 2rem;
}

.navbar .nav-links a {
  font-size: 1rem;
  font-weight: 500;
  color: white;
  text-decoration: none;
  transition: color 0.3s ease;
}

.navbar .nav-links a {
  position: relative;
  font-size: 1rem;
  font-weight: 500;
  color: white;
  text-decoration: none;
  transition: color 0.3s ease;
}

.navbar .nav-links a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  background: #4500b5; /* Underline color */
  left: 0;
  bottom: -5px;
  transition: width 0.3s ease;
}

.navbar .nav-links a:hover::after {
  width: 100%;
}

.navbar .login-btn {
  padding: 0.75rem 2rem;
  font-size: 1rem;
  font-weight: bold;
  color: #fff;
  background: #616161;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.navbar .login-btn:hover {
  background: #4500b5;
}

/* Fade-in animation keyframes */
@keyframes fadeInDown {
  0% {
    opacity: 0;
    transform: translateY(-20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Apply animation to navbar */
.navbar {
  animation: fadeInDown 0.8s ease forwards;
}

/* Hero Section */
.hero-section {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 5rem 2rem;
  height: 100vh;
  color: white;
  overflow: hidden;
  width: 100vw;
}

/* #hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  transform: translate(-50%, -50%);
  z-index: -1;
} */

#hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  transform: translate(-50%, -50%);
  z-index: -1;
  /* transform: translate(-50%, -50%) scale(1.3); */
}

.hero-content {
  display: flex;
  flex-direction: column;
  margin-left: 2rem;
  max-width: 50%;
  color: white;
  align-items: center;
  justify-content: center;
}

.hero-content h1 {
  font-size: 2.7rem;
  line-height: 1.2;
  font-weight: 700;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
  text-align: center;
  /* color: #4500b5; */

  /* #ffcc00 0%,  
  #ff9800 10%,  
  #8c43cf 25%,  
  #ff9800 50%,  
  #8a2be2 75%,  
  #8a2be2 100%   */
}

.highlight {
  background: linear-gradient(
    135deg,
    #ffcc00 0%,
    /* Bright Yellow */ #ff9800 25%,
    /* Smooth transition to Orange */ #ff6a00 40%,
    /* Deeper Orange */ #8c43cf 60%,
    /* Start blending with Violet */ #8a2be2 80%,
    /* Stronger Violet */ #6d23b6 100% /* Deep Violet */
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-content h1:hover {
  color: #a4a4a4;
}

.hero-content p {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  transition: all 0.3s ease;
  text-align: justify;
}

.hero-content .cta-btn {
  padding: 0.75rem 2rem;
  font-size: 1rem;
  font-weight: bold;
  color: #464646;
  background: #ffffff;
  /* color: #fff;
  background: #6200ea; */
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.hero-content .cta-btn:hover {
  background: #4500b5;
  color: #fff;
}

/* INFO CARDS */

/* School Section Container */
/* .schools-section {
  display: none;
  position: fixed;
  bottom: -100%;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.95); 
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  transition: bottom 0.5s ease;
  z-index: 999;
} */

.schools-section {
  visibility: hidden; /* Hide visually but reserve space */
  opacity: 0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.95);
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  z-index: 999;
  transition: opacity 0.4s ease;
}

.schools-section {
  backdrop-filter: blur(20px);
  background: linear-gradient(
    145deg,
    rgba(10, 10, 10, 0.7),
    /* rgba(30, 0, 60, 0.6) */
  );
  box-shadow: inset 0 0 50px rgba(255, 255, 255, 0.05);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.schools-section.active {
  visibility: visible;
  opacity: 1;
}
/* Show class to slide up */
/* .schools-section.show {
  display: flex; 
  bottom: 0; 
} */

/* Grid Layout for Cards */
.school-cards-container {
  display: grid;
  grid-template-columns: repeat(
    auto-fit,
    minmax(150px, 1fr)
  ); /* Adjust size dynamically */
  gap: 1.5rem;
  width: 100%;
  max-width: 1000px;
  padding: 1rem;
}

.school-cards-container a {
  text-decoration: none;
}

/* Individual School Card */
.school-card {
  height: 90vh;
  background: radial-gradient(
    circle at top center,
    rgba(255, 255, 255, 0.05),
    rgba(255, 255, 255, 0.02)
  );
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.school-card:hover {
  transform: scale(1.02);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
}

/* Card Content */
.card-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  height: 100%;
  padding-top: 20vh; /* shifts logo+name down into aligned zone */
  gap: 1rem;
  position: relative;
  z-index: 2;
}

/* School Logo */
.school-logo {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 16px;
  margin-bottom: 1rem;
  border: 2px solid rgba(255, 255, 255, 0.2);
  background-color: rgba(255, 255, 255, 0.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s ease;
}

.school-logo:hover {
  transform: scale(1.1);
}

/* School Name */
.school-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  min-height: 1.5em;
  text-align: center;
}

.school-card:hover::after {
  content: "";
  position: absolute;
  border-radius: 16px;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: radial-gradient(
    circle at center,
    rgba(255, 255, 255, 0.05),
    transparent 70%
  );
  z-index: 0;
}

/* Button Styling */
.cta-btn {
  padding: 0.75rem 2rem;
  background: #6200ea;
  color: #fff;
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
  z-index: 999;
}

.cta-btn:hover {
  background: #4500b5;
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  background-color: #ff5c5c;
  color: white;
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.close-btn:hover {
  background-color: #ff1c1c;
}

.school-card {
  position: relative;
  overflow: hidden;
}

.logo-overlay {
  position: absolute;
  top: 50%;
  right: -800px; /* Hidden off-screen */
  width: 500px; /* Much bigger now */
  height: 500px;
  border-radius: 50%;
  background-image: var(--logo-url);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.45; /* More visible now */
  transform: translateY(-50%);
  transition: right 0.5s ease, opacity 0.4s ease;
  z-index: 1;
  pointer-events: none;
}

.school-card:hover .logo-overlay {
  right: -300px;
  transform: translateY(-50%) scale(1.05);
}

.school-card:focus-within,
.school-card:hover {
  outline: 2px solid rgba(255, 255, 255, 0.2);
  outline-offset: 4px;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.08),
    0 0 20px rgba(255, 255, 255, 0.1);
}

.transition-layer {
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  pointer-events: none;
  z-index: 3000;
  display: none;
}

.transition-layer.active {
  display: block;
}

.transition-layer .layer {
  position: absolute;
  width: 100%;
  height: 100%;
  transform: translateY(100%);
}

.layer.translucent {
  background: rgba(138, 43, 226, 0.3);
  animation: slideUpTranslucent 0.6s cubic-bezier(0.55, 0.05, 0.675, 0.19)
    forwards;
}

.layer.solid {
  background: #6d23b6;
  animation: slideUpSolid 0.6s cubic-bezier(0.55, 0.05, 0.675, 0.19) forwards;
  animation-delay: 0.15s;
}
@keyframes slideUpTranslucent {
  0% {
    transform: translateY(100%);
  }
  30% {
    transform: translateY(90%);
  }
  100% {
    transform: translateY(-100%);
  }
}

@keyframes slideUpSolid {
  0% {
    transform: translateY(100%);
  }
  30% {
    transform: translateY(90%);
  }
  100% {
    transform: translateY(-100%);
  }
}

/* .school-card {
  opacity: 0;
  transform: translateY(15px);
  animation: revealFade 0.6s ease forwards;
} */

.school-card {
  opacity: 0;
  transform: translateY(20px);
}

.school-card.fade-in-card {
  animation: revealFade 0.6s ease forwards;
}

@keyframes revealFade {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.school-card.reveal-1 {
  animation-delay: 0.2s;
}
.school-card.reveal-2 {
  animation-delay: 0.4s;
}
.school-card.reveal-3 {
  animation-delay: 0.6s;
}
.school-card.reveal-4 {
  animation-delay: 0.8s;
}
.school-card.reveal-5 {
  animation-delay: 1s;
}
/* Add more reveal-X as needed */

/* Fade-in for school section */
.schools-section.fade-in {
  animation: fadeInSchools 1s ease-in-out;
}

@keyframes fadeInSchools {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .schools-section h2 {
    font-size: 1.5rem;
  }

  .school-cards-container {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  }

  .school-card {
    padding: 1rem;
    height: auto;
    max-height: 80vh;
  }
}

/* View Button */
/* .view-btn {
    padding: 0.5rem 1.2rem;
    font-size: 0.9rem;
    font-weight: bold;
    color: #fff;
    background: linear-gradient(135deg, #ff5722, #ff9800);
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3), 0 0 8px rgba(255, 87, 34, 0.5);
}

.view-btn:hover {
    background: linear-gradient(135deg, #e64a19, #ff5722);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.5), 0 0 12px rgba(255, 87, 34, 0.8);
} */

/* Responsive Design */
@media (max-width: 768px) {
  .navbar {
    padding: 1rem;
  }

  .hero-section {
    padding: 4rem 1rem;
    text-align: center;
  }

  .hero-content h1 {
    font-size: 1.5rem;
  }

  .hero-content p {
    font-size: 0.9rem;
  }

  .schools-section {
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.8rem;
    /* display: none; */
    height: 100vh;
    width: 100vw;
  }

  .school-card {
    height: auto;
    max-height: 80vh;
  }

  .school-cards-container {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  }
}

/* Fade-in Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* slide down */

@keyframes slideDownTranslucent {
  0% {
    transform: translateY(-100%);
  }
  30% {
    transform: translateY(-90%);
  }
  100% {
    transform: translateY(100%);
  }
}

@keyframes slideDownSolid {
  0% {
    transform: translateY(-100%);
  }
  30% {
    transform: translateY(-90%);
  }
  100% {
    transform: translateY(100%);
  }
}

.transition-layer.slide-down .layer.translucent {
  animation: slideDownTranslucent 0.6s cubic-bezier(0.55, 0.05, 0.675, 0.19)
    forwards;
}

.transition-layer.slide-down .layer.solid {
  animation: slideDownSolid 0.6s cubic-bezier(0.55, 0.05, 0.675, 0.19) forwards;
  animation-delay: 0.15s;
}

/* loader */

.loader-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  visibility: hidden;
  opacity: 0;
}

.loader-in-transition {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -150%);
  opacity: 0;
  z-index: 2000;
  animation: none;
  pointer-events: none;
}

.loader-in-transition.show {
  visibility: visible;
  opacity: 1;
  animation: slideDownLoader 0.6s cubic-bezier(0.55, 0.05, 0.675, 0.19) forwards;
}

@keyframes slideDownLoader {
  0% {
    transform: translate(-50%, -150%);
    opacity: 0;
  }
  60% {
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%);
    opacity: 1;
  }
}

.basketball-svg {
  width: 100px;
  height: 100px;
}

.seam {
  fill: none;
  stroke: orange;
  stroke-width: 2.5;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: seamFill 1.8s ease-in-out forwards infinite;
}

@keyframes seamFill {
  0% {
    stroke-dashoffset: 100;
  }
  100% {
    stroke-dashoffset: 0;
  }
}

.basketball-svg {
  width: 200px;
  height: 200px;
  animation: fillBasketball 2s ease-in-out forwards;
  stroke: orange;
  fill: transparent;
  stroke-width: 3px;
}

@keyframes fillBasketball {
  0% {
    stroke-dasharray: 0, 100;
    fill: transparent;
  }
  50% {
    stroke-dasharray: 100, 0;
    fill: transparent;
  }
  100% {
    stroke-dasharray: 100, 0;
    fill: orange;
  }
}

.basketball-line {
  stroke-linecap: round;
  fill: none;
  stroke: orange;
  /* stroke-width: 2.5; */
  stroke-width: 4;
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
}

.basketball-line.animate {
  animation: drawBasketball 3s cubic-bezier(0.7, 0.4, 0.1, 1) forwards;
}

@keyframes drawBasketball {
  to {
    stroke-dashoffset: 0;
  }
}

.loader-container {
  pointer-events: auto; /* allow blocking interaction */
}
.loader-container * {
  pointer-events: none; /* prevent inner SVG or content from being clickable */
}

/* .loader-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  visibility: hidden;
  opacity: 0;
}

.loader-in-transition {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -150%);
  opacity: 0;
  z-index: 2000;
  animation: none;
  pointer-events: none;
}

.loader-in-transition.show {
  visibility: visible;
  opacity: 1;
  animation: slideDownLoader 0.6s cubic-bezier(0.55, 0.05, 0.675, 0.19) forwards;
}

@keyframes slideDownLoader {
  0% {
    transform: translate(-50%, -150%);
    opacity: 0;
  }
  60% {
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%);
    opacity: 1;
  }
}

.basketball-loader {
  font-size: 60px;
  color: #ff9800;
  animation: bounceSpin 1s ease-in-out infinite;
}

@keyframes bounceSpin {
  0% {
    transform: scale(1) rotate(0deg);
  }
  50% {
    transform: scale(1.15) rotate(180deg);
  }
  100% {
    transform: scale(1) rotate(360deg);
  }
} */
