/* ===============================
   Hero Section
=============================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  background-color: #f5f5f5;
  overflow-x: hidden;
}

/* ===== HERO CONTAINER ===== */
.hero {
  position: relative;
  height: 100vh;
  background: url('/Court_Hive/CourtHive/images/2.png') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  color: #f5f5f5;
  padding: 80px 8% 0;
  overflow: hidden;
}

/* ===== Wave Bottom Shadow ===== */
.hero-wave {
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  line-height: 0;
  overflow: hidden;
  background: transparent;
}

.hero-wave svg {
  position: relative;
  display: block;
  width: calc(120% + 1.3px);
  height: 150px;
  transform: translateX(-1px);
  filter: drop-shadow(0 -6px 12px rgba(0, 0, 0, 0.6));
}

.hero-wave path {
  fill: #f8f9fa;
}

/* ===== Hero Text Content ===== */
.hero-content {
  max-width: 600px;
  opacity: 0;
  transform: translate(-50px, 50px);
  animation: fadeUpFromLeft 1s ease forwards 0.6s;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1rem;
  text-shadow: 3px 3px 5px rgba(0,0,0,0.5);
  opacity: 0;
  transform: translate(-50px, 40px);
  animation: fadeUpFromLeft 1s ease forwards 0.8s;
}

.hero h1 span {
  color: #f7a600;
  text-shadow: 3px 3px 5px rgba(0,0,0,0.5);
}

.hero p {
  font-size: 1.3rem;
  margin-bottom: 3rem;
  color: #f5f5f5;
  opacity: 0;
  transform: translate(-50px, 40px);
  animation: fadeUpFromLeft 1s ease forwards 1s;
}

/* ===== Hero Button ===== */
.hero .btn {
  position: relative;
  background-color: #f7a600;
  color: #fff;
  border: none;
  padding: 18px 25px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 1.2rem;
  cursor: pointer;
  overflow: hidden;
  text-decoration: none !important;
  box-shadow: 0 6px 12px rgba(0,0,0,0.3);
  opacity: 0;
  transform: translate(-50px, 40px);
  animation: fadeUpFromLeft  1s ease forwards 1s;
}

.reservebutton,
.hero .reservebutton,
#reserveBtn {
  border-radius: 50px;
  padding: 10px 22px;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  background-clip: padding-box;
}

.reservebutton:hover,
#reserveBtn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.10);
}

.reservebutton.btn,
#reserveBtn.btn {
  border-radius: 50px !important;
}

.hero .btn:hover {
  background-color: #e29100;
  transform: scale(1.05) translateY(-2px);
  overflow: visible;
}

/* ===== Animated Ball ===== */
.ball {
  position: absolute;
  left: -25px;
  top: 50%;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: #f7d600;
  opacity: 0;
  pointer-events: none;
}

.hero .btn:hover .ball {
  opacity: 1;
  animation: ballBounce 1.2s ease-in-out infinite;
}

/* ===== Animations ===== */
@keyframes fadeUpFromLeft {
  0% { opacity: 0; transform: translate(-50px, 50px); }
  100% { opacity: 1; transform: translate(0,0); }
}

@keyframes ballBounce {
  0% { left: -25px; top: 50%; transform: translateY(-50%) scale(1); }
  20% { left: 20%; top: 35%; transform: translateY(-50%) scale(1.1); }
  40% { left: 45%; top: 60%; transform: translateY(-50%) scale(0.9); }
  60% { left: 70%; top: 40%; transform: translateY(-50%) scale(1.05); }
  80% { left: 90%; top: 55%; transform: translateY(-50%) scale(0.95); }
  100% { left: 110%; top: 50%; transform: translateY(-50%) scale(1); opacity: 0; }
}

/* ===============================
   RESPONSIVE BREAKPOINTS
=============================== */

/* Tablet */
@media (max-width: 992px) {
  .hero {
    justify-content: center;
    text-align: center;
    padding: 60px 5% 0;
  }

   .hero-wave {
    bottom: -20px; /* Default = -5px → move it more downward */
  }


  .hero-content {
    max-width: 500px;
  }

  .hero h1 {
    font-size: 3rem;
  }

  .hero p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
  }

  .btn {
    font-size: 1rem;
    padding: 14px 22px;
  }
}

/* Mobile */
@media (max-width: 480px) {
  .hero {
    padding: 50px 5% 0;
    height: auto;
    height: auto; /* Let height be determined by content */
    padding-bottom: 120px; /* Add padding to ensure content is visible */
  }

  .hero-content {
    max-width: 100%;
  }

  .hero h1 {
    font-size: 2.2rem;
    line-height: 1.2;
  }

  .hero p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }

  .btn {
    font-size: 0.95rem;
    padding: 12px 18px;
  }
}
