/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background: #f4f4f4;
  color: #333;
  line-height: 1.6;
}

h1, h2, h3 {
  margin-bottom: 0.5rem;
  text-align: center;
}

/* Header */
header {
  background: #111;
  color: white;
  padding: 20px 40px;
  text-align: center;
  font-size: 24px;
  font-weight: bold;
  position: relative;
}

nav {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 10px;
  flex-wrap: wrap;
}

nav a {
  color: #f39c12;
  font-weight: bold;
  text-decoration: none;
  font-size: 16px;
  transition: color 0.3s;
}

nav a:hover,
nav a.active {
  color: #ffdd57;
}

#hamburger {
  display: none;
  color: white;
  font-size: 28px;
  position: absolute;
  top: 25px;
  right: 40px;
  cursor: pointer;
}

@media (max-width: 768px) {
  nav {
    flex-direction: column;
    align-items: center;
    background: #111;
    position: absolute;
    top: 70px;
    width: 100%;
    display: none;
  }

  nav.show {
    display: flex;
  }

  #hamburger {
    display: block;
  }
}

/* Hero */
#hero {
  position: relative;
  text-align: center;
  color: white;
}

.hero-image {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
}

.hero-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.6);
  padding: 2rem;
  border-radius: 10px;
}

.btn-primary {
  display: inline-block;
  margin-top: 1rem;
  padding: 12px 24px;
  background-color: #f39c12;
  color: white;
  border-radius: 8px;
  font-weight: bold;
  transition: background-color 0.3s;
}

.btn-primary:hover {
  background-color: #e67e22;
}

/* Sections */
section {
  padding: 3rem 1rem;
  max-width: 1200px;
  margin: auto;
}

.about-text {
  max-width: 800px;
  margin: auto;
  font-size: 1.1rem;
  text-align: center;
  color: #555;
}

/* Grid Utilities */
.grid, .card-grid, .membership-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 600px) {
  .grid, .card-grid, .membership-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

/* Cards (Facilities & Services) */
.card, .facility-card, .service-card {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  transition: transform 0.2s ease;
  text-align: center;
}

.card:hover, .facility-card:hover, .service-card:hover {
  transform: translateY(-5px);
}

.card img, .facility-card img, .service-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 10px;
}

/* Membership Plans */
.plan-card {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  text-align: left;
}

.plan-card h3 {
  color: #0077cc;
}

.price {
  font-size: 1.3rem;
  font-weight: bold;
  margin: 0.5rem 0;
}

.plan-card ul {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0;
}

.plan-card ul li {
  margin-bottom: 0.5rem;
}

.btn-join {
  display: inline-block;
  margin-top: 1rem;
  background-color: #0077cc;
  color: white;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: bold;
  transition: background-color 0.3s;
  text-align: center;
}

.btn-join:hover {
  background-color: #005fa3;
}

.popular {
  border: 2px solid #0077cc;
}

/* Footer */
footer {
  text-align: center;
  padding: 1rem;
  background-color: #222;
  color: white;
}
/* Animation Keyframes */
@keyframes fadeSlideUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes zoomIn {
  0% {
    opacity: 0;
    transform: scale(0.9);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Animate Hero Text */
.hero-text h1,
.hero-text p,
.hero-text .btn-primary {
  opacity: 0;
  animation: fadeSlideUp 1s ease-out forwards;
}

.hero-text h1 {
  animation-delay: 0.2s;
}

.hero-text p {
  animation-delay: 0.4s;
}

.hero-text .btn-primary {
  animation-delay: 0.6s;
}

/* Animate Sections on Load */
section h2 {
  opacity: 0;
  animation: fadeSlideUp 1s ease-out forwards;
  animation-delay: 0.3s;
}

/* Animate Cards (Facilities, Services, Membership) */
.card,
.facility-card,
.service-card,
.plan-card {
  opacity: 0;
  animation: zoomIn 0.6s ease-out forwards;
}

/* Animation Staggering */
.card:nth-child(1),
.facility-card:nth-child(1),
.service-card:nth-child(1),
.plan-card:nth-child(1) {
  animation-delay: 0.2s;
}
.card:nth-child(2),
.facility-card:nth-child(2),
.service-card:nth-child(2),
.plan-card:nth-child(2) {
  animation-delay: 0.4s;
}
.card:nth-child(3),
.facility-card:nth-child(3),
.service-card:nth-child(3),
.plan-card:nth-child(3) {
  animation-delay: 0.6s;
}
.card:nth-child(4),
.facility-card:nth-child(4) {
  animation-delay: 0.8s;
}
