/* Base Styles */
body {
  margin: 0;
  font-family: 'Open Sans', sans-serif;
  background-color: #FFF8F2;
  color: #444;
  scroll-behavior: smooth;
}

h1, h2 {
  font-family: 'Baloo 2', cursive;
  font-size: 2.2rem;
  background: linear-gradient(to right, #00CFFF, #7CFF7A);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-align: center;
}

.container {
  max-width: 1200px;
  margin: auto;
  padding: 3rem 1.5rem;
}

/* HERO Section */
.hero {
  position: relative;
  height: 100vh;
  background: url('../../assets/img/nanaville-background.jpg') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 0;
}
.hero-overlay {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero h1 {
  font-size: 2.8rem;
  margin-bottom: 1.5rem;
  color: white;
}
.hero h1, .hero .btn {
  opacity: 0;
  transform: scale(0.8);
}
.hero h1.zoom-in, .hero .btn.zoom-in {
  animation: zoomIn 1s ease forwards;
}
.hero .btn.zoom-in {
  animation-delay: 0.4s;
}

@keyframes zoomIn {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Buttons */
.btn {
  background: linear-gradient(to right, #00CFFF, #7CFF7A);
  color: white;
  padding: 0.8rem 2rem;
  border: none;
  border-radius: 50px;
  font-weight: bold;
  font-size: 14px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, background 0.3s ease;
  margin-top: 1rem;
}
.btn:hover {
  transform: scale(1.05);
}
.btn::after {
  content: "";
  background: rgba(255, 255, 255, 0.2);
  position: absolute;
  width: 100px;
  height: 100px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  border-radius: 50%;
  opacity: 0;
  transition: transform 0.6s, opacity 1s;
}
.btn:active::after {
  transform: translate(-50%, -50%) scale(2);
  opacity: 1;
}

/* Section Animation */
section {
  padding: 4rem 2rem;
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease-out;
}
section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Programs */
.programs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  padding: 2rem 0;
  max-width: 1000px;
  margin: auto;
}
.program-card {
  position: relative;
  background-size: cover;
  background-position: center;
  height: 200px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}
.program-card:hover {
  transform: scale(1.03);
}
.program-card .overlay {
  position: absolute;
  bottom: 0;
  background: rgba(255, 255, 255, 0.8);
  color: #333;
  width: 100%;
  padding: 1rem;
  text-align: center;
  font-weight: bold;
  font-size: 1rem;
}

/* Carousel */
.carousel {
  max-width: 1000px;
  margin: 2rem auto;
  overflow: hidden;
  position: relative;
  border-radius: 12px;
}
.slides {
  display: flex;
  width: 120%;
  animation: galleryScroll 18s infinite;
  justify-content: center;
}
.card {
  flex: 0 0 33.3333%;
  box-sizing: border-box;
  padding: 1rem;
  display: flex;
  justify-content: center;
}
.card img {
  width: 100%;
  max-width: 280px;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

@keyframes galleryScroll {
  0%   { transform: translateX(0); }
  25%  { transform: translateX(-33.3333%); }
  50%  { transform: translateX(-66.6666%); }
  75%  { transform: translateX(-100%); }
  100% { transform: translateX(0); }
}

@media (max-width: 768px) {
  .card {
    flex: 0 0 100%;
    padding: 0.5rem;
  }

  .slides {
    width: 600%;
  }

  @keyframes galleryScroll {
    0%   { transform: translateX(0); }
    25%  { transform: translateX(-100%); }
    50%  { transform: translateX(-200%); }
    75%  { transform: translateX(-300%); }
    100% { transform: translateX(0); }
  }
}

/* Partners */
#partners {
  padding: 4rem 2rem;
  background-color: #f7f7f7;
  text-align: center;
}
.partners-slider {
  overflow: hidden;
  position: relative;
}
.partner-track {
  display: flex;
  gap: 2rem;
  padding: 1rem 0;
  animation: scrollRightToLeft 40s linear infinite;
  will-change: transform;
}
.partner-logo {
  width: 140px;
  height: auto;
  opacity: 0.6;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.partner-logo.pulse {
  animation: pulse 2s infinite;
  opacity: 1 !important;
}
@keyframes scrollRightToLeft {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.1); opacity: 0.9; }
}
