/* Variabel Warna */
:root {
  --primary: #FF6B00;
  --text: #121212;
  --bg: #FFFFFF;
  --bg-alt: #F8F8F8;
  --border: #E0E0E0;
  --card-bg: #FFFFFF;
  --shadow: rgba(0, 0, 0, 0.1);
}

/* Dark Mode */
[data-theme="dark"] {
  --text: #E0E0E0;
  --bg: #121212;
  --bg-alt: #1E1E1E;
  --card-bg: #1e1e1e;
  --border: #444;
  --shadow: rgba(0, 0, 0, 0.3);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Montserrat', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 0;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 5%;
  background-color: var(--bg);
  box-shadow: 0 2px 10px var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--primary);
}

.navbar nav a {
  margin-left: 1.5rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
}

.btn {
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: white;
}

.btn-primary {
  background-color: var(--primary);
  color: white;
}

.btn-primary:hover {
  background-color: #e55e00;
  transform: translateY(-2px);
}

.btn-lg {
  font-size: 1rem;
  padding: 0.8rem 1.5rem;
}

/* Hero */
.hero {
  height: 80vh;
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('https://www.playgroundequipment.com/storage/image-gallery/cms-images/_badminton_1428046_1280.jpg') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Section Umum */
.section {
  padding: 60px 0;
  background-color: var(--bg);
}

.section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
  color: var(--primary);
}

/* Lapangan Grid */
.court-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.court-card {
  background: var(--card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px var(--shadow);
  text-align: center;
  transition: transform 0.3s ease;
}

.court-card:hover {
  transform: translateY(-5px);
}

.court-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.court-card h3 {
  margin: 1rem 0 0.5rem;
}

.price {
  color: var(--primary);
  font-weight: 600;
}

.status {
  background: #00ff00;
  color: #ffffff;
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  display: inline-block;
  margin: 0.5rem 0;
  font-size: 0.9rem;
}

/* Form Booking */
.booking-form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.booking-form input,
.booking-form select,
.booking-form textarea {
  padding: 0.8rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background-color: var(--card-bg);
  color: var(--text);
}

.booking-form textarea {
  resize: vertical;
  min-height: 80px;
}

.time-group {
  display: flex;
  gap: 1rem;
}

.time-group input {
  flex: 1;
}

.btn-block {
  width: 100%;
}

/* Testimoni */
.testi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.testi-card {
  background: var(--card-bg);
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px var(--shadow);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease forwards;
}

.testi-card:nth-child(1) { animation-delay: 0.1s; }
.testi-card:nth-child(2) { animation-delay: 0.2s; }
.testi-card:nth-child(3) { animation-delay: 0.3s; }
.testi-card:nth-child(4) { animation-delay: 0.4s; }
.testi-card:nth-child(5) { animation-delay: 0.5s; }
.testi-card:nth-child(6) { animation-delay: 0.6s; }
.testi-card:nth-child(7) { animation-delay: 0.7s; }
.testi-card:nth-child(8) { animation-delay: 0.8s; }

.testi-card .stars {
  color: #FFD700;
  margin-bottom: 0.8rem;
  font-size: 1.2rem;
}

.testi-card p {
  margin-bottom: 1rem;
  line-height: 1.6;
}

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

/* Hover effect biar interaktif */
.testi-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
  transition: all 0.3s ease;
}

/* Footer */
.footer {
  background-color: var(--primary);
  color: white;
  padding: 2rem 5% 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.footer-brand h3 {
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}

.footer-brand p {
  line-height: 1.5;
}

.footer-slogan {
  margin-top: 0.8rem;
  font-weight: 500;
  color: #ffe5b4;
}

.footer-contact h4,
.footer-links h4 {
  margin-bottom: 0.6rem;
  font-size: 1.2rem;
}

.footer-links a {
  display: block;
  color: white;
  text-decoration: none;
  margin-bottom: 0.4rem;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #ffe5b4;
}

.footer-bottom {
  text-align: center;
  font-size: 0.9rem;
  border-top: 1px solid rgba(255,255,255,0.2);
  padding-top: 0.8rem;
}


/* Responsif */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    gap: 1rem;
  }

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

  .time-group {
    flex-direction: column;
  }
}

