/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800&display=swap');

/* CSS Variables for theming */
:root {
  --primary-pink: #FFB6C1;
  --primary-pink-hover: #ff9fb4;
  --sky-blue: #87CEFA;
  --pastel-yellow: #FFFACD;
  --pale-green: #98FB98;
  --text-color: #333333;
  --text-muted: #555555;
  --bg-color: #FDFAFF;
  --white: #FFFFFF;
  --border-radius: 20px;
  --transition: all 0.3s ease-in-out;
  --shadow: 0 10px 20px rgba(0,0,0,0.05);
  --shadow-hover: 0 15px 30px rgba(0,0,0,0.1);
}

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

body {
  font-family: 'Nunito', sans-serif;
  color: var(--text-color);
  background-color: var(--bg-color);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 800;
  margin-bottom: 1rem;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.75rem; }

p {
  margin-bottom: 1rem;
}

/* Utility Classes */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.text-center {
  text-align: center;
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  background-color: var(--primary-pink);
  color: var(--text-color);
  font-weight: 700;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 6px rgba(255, 182, 193, 0.4);
}

.btn:hover {
  background-color: var(--primary-pink-hover);
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(255, 182, 193, 0.6);
}

.btn-secondary {
  background-color: var(--sky-blue);
  box-shadow: 0 4px 6px rgba(135, 206, 250, 0.4);
}

.btn-secondary:hover {
  background-color: #6bbcf2;
  box-shadow: 0 6px 12px rgba(135, 206, 250, 0.6);
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Section Padding */
section {
  padding: 80px 0;
}

/* Header & Navbar */
.header {
  background-color: var(--white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 15px 0;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-color);
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-links ul {
  display: flex;
  gap: 15px;
}

.nav-links a {
  font-weight: 600;
  font-size: 0.95rem;
  padding: 5px 0;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background-color: var(--primary-pink);
  transition: var(--transition);
  border-radius: 2px;
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.mobile-menu-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-color);
}

/* Footer */
.footer {
  background-color: var(--white);
  padding: 80px 0 20px;
  margin-top: 60px;
  border-top: 5px solid var(--sky-blue);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col .logo {
  margin-bottom: 20px;
}

.footer-col h3 {
  font-size: 1.3rem;
  margin-bottom: 20px;
  color: var(--text-color);
  position: relative;
  display: inline-block;
}

.footer-col h3::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 40px;
  height: 3px;
  background-color: var(--pastel-yellow);
  border-radius: 2px;
}

.footer-col ul li {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
}

.footer-col ul li a:hover {
  color: var(--primary-pink);
  padding-left: 5px;
}

.footer-col ul li i {
  color: var(--pale-green);
  width: 20px;
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: var(--bg-color);
  border-radius: 50%;
  color: var(--text-color);
  transition: var(--transition);
}

.social-links a:hover {
  background-color: var(--sky-blue);
  color: var(--white);
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #eee;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Hero Section */
.hero {
  padding: 60px 0 100px;
  background-color: var(--bg-color);
  position: relative;
  overflow: hidden;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.hero-text .badge {
  display: inline-block;
  padding: 8px 15px;
  background-color: var(--pastel-yellow);
  color: var(--text-color);
  font-weight: 700;
  border-radius: 50px;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
}

.hero-text h1 {
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero-text h1 span {
  color: var(--primary-pink);
  position: relative;
}

.hero-text h1 span::after {
  content: '';
  position: absolute;
  bottom: 10px;
  left: 0;
  width: 100%;
  height: 15px;
  background-color: rgba(255, 182, 193, 0.4);
  z-index: -1;
  border-radius: 10px;
}

.hero-buttons {
  display: flex;
  gap: 15px;
  margin-top: 30px;
}

.hero-image img {
  transform: rotate(2deg);
  transition: var(--transition);
}

.hero-image:hover img {
  transform: rotate(0) scale(1.02);
}

/* Intro / Features Section */
.intro {
  background-color: var(--white);
  padding: 100px 0;
}

.section-title {
  margin-bottom: 60px;
}

.section-title p {
  color: var(--text-muted);
  font-size: 1.2rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.feature-card {
  background-color: var(--bg-color);
  padding: 40px 30px;
  border-radius: var(--border-radius);
  text-align: center;
  transition: var(--transition);
  border: 1px solid rgba(0,0,0,0.03);
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
  background-color: var(--white);
}

.feature-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--white);
  margin: 0 auto 20px;
}

/* Programs Preview Section */
.programs-preview {
  background-color: var(--white);
}

.programs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.program-card {
  background-color: var(--white);
  border-radius: var(--border-radius);
  padding: 40px 30px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid rgba(0,0,0,0.03);
  text-align: center;
}

.program-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
}

.program-color-bar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 8px;
}

.program-card h3 {
  margin-top: 10px;
}

.age-badge {
  display: inline-block;
  padding: 5px 12px;
  background-color: var(--bg-color);
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.program-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--primary-pink);
  font-weight: 700;
  margin-top: 15px;
}

.program-link:hover i {
  transform: translateX(5px);
}

.program-link i {
  transition: var(--transition);
}

/* Testimonials Section */
.testimonials {
  padding: 100px 0;
}

.testimonial-slider {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  background-color: var(--white);
  border-radius: var(--border-radius);
  padding: 50px;
  box-shadow: var(--shadow);
  text-align: center;
}

.testimonial-slide {
  display: none;
  animation: fadeEffect 0.5s ease-in-out;
}

.testimonial-slide.active {
  display: block;
}

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

.quote-icon {
  font-size: 3rem;
  margin-bottom: 20px;
  opacity: 0.2;
}

.quote-text {
  font-size: 1.25rem;
  font-style: italic;
  margin-bottom: 30px;
  color: var(--text-color);
}

.parent-info h4 {
  margin-bottom: 5px;
}

.parent-info span {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.slider-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

.slider-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}

.slider-btn:hover {
  color: var(--primary-pink);
}

.slider-dots {
  display: flex;
  gap: 10px;
}

.dot {
  width: 12px;
  height: 12px;
  background-color: #ddd;
  border-radius: 50%;
  cursor: pointer;
  transition: var(--transition);
}

.dot.active, .dot:hover {
  background-color: var(--primary-pink);
}

/* Gallery Preview Section */
.gallery-preview {
  background-color: var(--white);
  padding: 100px 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.gallery-item {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/3;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.placeholder-img {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: rgba(255,255,255,0.8);
  transition: transform 0.5s ease;
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}

.gallery-overlay i {
  color: var(--white);
  font-size: 2rem;
  transform: scale(0.5);
  transition: var(--transition);
}

.gallery-item:hover img,
.gallery-item:hover .placeholder-img {
  transform: scale(1.1);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-item:hover .gallery-overlay i {
  transform: scale(1);
}

/* Call to Action Section */
.cta-section {
  padding: 0 0 100px;
  background-color: var(--white);
}

/* Responsive elements */
@media (max-width: 1100px) {
  .nav-links {
    display: none; /* Will be toggled by JS */
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--white);
    padding: 20px;
    box-shadow: 0 10px 15px rgba(0,0,0,0.05);
  }
  
  .nav-links.active {
    display: block;
  }
  
  .nav-links ul {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
  
  .nav-actions .btn {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: block;
  }
  
  html {
    font-size: 90%;
  }
  
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .our-story .container, 
  .mission-vision .container, 
  .principal-message .message-card {
    grid-template-columns: 1fr !important;
  }
  
  .program-detail-card {
    flex-direction: column !important;
  }
  
  .program-img-placeholder {
    min-height: 200px !important;
  }
}
