/* Modern Harvard House Montessori - Enhanced CSS with Advanced Animations */

/* CSS Variables */
:root {
  /* Colors */
  --primary-color: #87CEEB;
  --secondary-color: #FFB6C1; 
  --accent-color: #98FB98;
  --text-dark: #2c3e50;
  --text-light: #6c757d;
  --white: #ffffff;
  --off-white: #f8f9fa;
  --light-gray: #e9ecef;
  --dark-gray: #495057;
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  --gradient-secondary: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
  --gradient-text: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  --gradient-glow: radial-gradient(circle at center, rgba(135, 206, 235, 0.3), transparent);
  
  /* Shadows */
  --shadow-small: 0 2px 10px rgba(0, 0, 0, 0.1);
  --shadow-medium: 0 8px 25px rgba(0, 0, 0, 0.15);
  --shadow-large: 0 15px 35px rgba(0, 0, 0, 0.1);
  --shadow-glow: 0 0 20px rgba(135, 206, 235, 0.3);
  
  /* Borders */
  --border-radius: 16px;
  --border-radius-small: 8px;
  --border-radius-large: 24px;
  
  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  
  /* Spacing */
  --section-padding: clamp(3rem, 8vw, 6rem);
  --container-padding: clamp(1rem, 4vw, 2rem);
  
  /* Typography */
  --font-primary: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Baloo 2', cursive;
  --font-size-xs: clamp(0.75rem, 2vw, 0.875rem);
  --font-size-sm: clamp(0.875rem, 2.5vw, 1rem);
  --font-size-base: clamp(1rem, 3vw, 1.125rem);
  --font-size-lg: clamp(1.125rem, 3.5vw, 1.25rem);
  --font-size-xl: clamp(1.25rem, 4vw, 1.5rem);
  --font-size-2xl: clamp(1.5rem, 5vw, 2rem);
  --font-size-3xl: clamp(2rem, 6vw, 3rem);
  --font-size-4xl: clamp(2.5rem, 8vw, 4rem);
}

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

*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
}

body {
  font-family: var(--font-primary);
  font-size: var(--font-size-base);
  line-height: 1.7;
  color: var(--text-dark);
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

h1 { font-size: var(--font-size-4xl); }
h2 { font-size: var(--font-size-3xl); }
h3 { font-size: var(--font-size-2xl); }
h4 { font-size: var(--font-size-xl); }
h5 { font-size: var(--font-size-lg); }
h6 { font-size: var(--font-size-base); }

p {
  margin-bottom: 1rem;
  color: var(--text-light);
}

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

a:hover {
  color: var(--accent-color);
}

/* Gradient Text */
.gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.section {
  padding: var(--section-padding) 0;
  position: relative;
}

/* Glass Card Effect */
.glass-card {
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-medium);
  position: relative;
  overflow: hidden;
  transition: var(--transition-normal);
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-primary);
  opacity: 0.8;
}

.glass-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-large);
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  transition: var(--transition-normal);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-medium);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem var(--container-padding);
  max-width: 1200px;
  margin: 0 auto;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary-color);
  transition: var(--transition-normal);
}

.logo-img:hover {
  transform: scale(1.1) rotate(5deg);
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-family: var(--font-heading);
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: var(--text-dark);
}

.logo-subtitle {
  font-size: var(--font-size-xs);
  color: var(--text-light);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0;
}

.nav-link {
  position: relative;
  padding: 0.5rem 1rem;
  font-weight: 500;
  color: var(--text-dark);
  border-radius: var(--border-radius-small);
  transition: var(--transition-normal);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: var(--transition-normal);
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-color);
  background: rgba(135, 206, 235, 0.1);
}

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

/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 0.25rem;
  padding: 0.5rem;
  border-radius: var(--border-radius-small);
  transition: var(--transition-normal);
}

.hamburger span {
  display: block;
  height: 3px;
  width: 25px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: var(--transition-normal);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: var(--gradient-primary);
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, 
    rgba(135, 206, 235, 0.8) 0%, 
    rgba(255, 182, 193, 0.7) 50%, 
    rgba(152, 251, 152, 0.8) 100%);
}

.floating-elements {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 2;
}

.floating-icon {
  position: absolute;
  font-size: 2rem;
  opacity: 0.3;
  animation: float 6s ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}

.floating-icon:nth-child(1) { top: 10%; left: 10%; }
.floating-icon:nth-child(2) { top: 20%; right: 15%; }
.floating-icon:nth-child(3) { top: 40%; left: 5%; }
.floating-icon:nth-child(4) { top: 60%; right: 10%; }
.floating-icon:nth-child(5) { bottom: 30%; left: 15%; }
.floating-icon:nth-child(6) { bottom: 15%; right: 20%; }

@keyframes float {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(5deg);
  }
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero-title {
  font-size: var(--font-size-4xl);
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.hero-subtitle {
  font-size: var(--font-size-xl);
  margin-bottom: 2rem;
  color: var(--white);
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
}

.hero-features {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.feature-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
  border-radius: 50px;
  color: var(--white);
  font-weight: 600;
  font-size: var(--font-size-sm);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: var(--transition-normal);
}

.feature-badge:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.hero-cta {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  font-size: var(--font-size-base);
  font-weight: 600;
  border-radius: 50px;
  text-decoration: none;
  transition: var(--transition-bounce);
  position: relative;
  overflow: hidden;
}

.cta-button.primary {
  background: var(--gradient-primary);
  color: var(--white);
  box-shadow: var(--shadow-medium);
}

.cta-button.secondary {
  background: rgba(255, 255, 255, 0.25);
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
}

.cta-button:hover {
  transform: translateY(-3px) scale(1.05);
}

.cta-button.primary:hover {
  box-shadow: var(--shadow-large), var(--shadow-glow);
}

.cta-button::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: var(--transition-normal);
}

.cta-button:active::before {
  width: 300px;
  height: 300px;
}

/* Section Headers */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: var(--font-size-lg);
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

/* About Section */
.about-section {
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.8) 0%, 
    rgba(248, 249, 250, 0.9) 100%);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-text .glass-card {
  padding: 2.5rem;
}

.card-content h3 {
  color: var(--text-dark);
  margin-bottom: 1.5rem;
}

.card-content p {
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.card-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: var(--gradient-glow);
  opacity: 0;
  transition: var(--transition-slow);
  pointer-events: none;
}

.glass-card:hover .card-glow {
  opacity: 1;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.stat-card {
  background: var(--white);
  padding: 2rem 1.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-small);
  text-align: center;
  border: 1px solid rgba(135, 206, 235, 0.2);
  transition: var(--transition-normal);
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: var(--font-size-3xl);
  font-weight: 800;
  color: var(--primary-color);
  display: block;
}

.stat-label {
  font-size: var(--font-size-sm);
  color: var(--text-light);
  font-weight: 500;
  margin-top: 0.5rem;
}

/* Why Montessori Section */
.why-montessori {
  background: linear-gradient(135deg, 
    rgba(152, 251, 152, 0.1) 0%, 
    rgba(135, 206, 235, 0.1) 100%);
}

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

.benefit-card {
  background: var(--white);
  padding: 2.5rem 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-small);
  text-align: center;
  transition: var(--transition-normal);
  border: 1px solid rgba(135, 206, 235, 0.1);
  position: relative;
  overflow: hidden;
}

.benefit-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
}

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

.benefit-icon {
  width: 80px;
  height: 80px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2rem;
  color: var(--white);
  transition: var(--transition-normal);
}

.benefit-card:hover .benefit-icon {
  transform: scale(1.1) rotate(5deg);
}

.benefit-card h3 {
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.benefit-card p {
  line-height: 1.7;
}

/* Programs Section */
.programs-section {
  background: linear-gradient(135deg, 
    rgba(255, 182, 193, 0.1) 0%, 
    rgba(152, 251, 152, 0.1) 100%);
  position: relative;
}

.programs-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(circle at 25% 25%, rgba(135, 206, 235, 0.1) 0%, transparent 50%),
                    radial-gradient(circle at 75% 75%, rgba(255, 182, 193, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.programs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2.5rem;
  position: relative;
  z-index: 1;
}

.program-card {
  background: var(--white);
  border-radius: var(--border-radius-large);
  box-shadow: var(--shadow-medium);
  overflow: hidden;
  transition: var(--transition-normal);
  border: 1px solid rgba(135, 206, 235, 0.1);
}

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

.program-image {
  position: relative;
  height: 250px;
  overflow: hidden;
}

.program-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.program-card:hover .program-image img {
  transform: scale(1.05);
}

.program-overlay {
  position: absolute;
  top: 1rem;
  right: 1rem;
}

.program-age {
  background: var(--gradient-primary);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: var(--font-size-sm);
  font-weight: 600;
  box-shadow: var(--shadow-small);
}

.program-content {
  padding: 2rem;
}

.program-title {
  color: var(--text-dark);
  margin-bottom: 1rem;
  font-size: var(--font-size-2xl);
}

.program-description {
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.program-highlights {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.highlight-tag {
  background: rgba(135, 206, 235, 0.1);
  color: var(--primary-color);
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: var(--font-size-xs);
  font-weight: 600;
  border: 1px solid rgba(135, 206, 235, 0.2);
}

.program-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--gradient-primary);
  color: var(--white);
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition-normal);
}

.program-link:hover {
  transform: translateX(5px);
  box-shadow: var(--shadow-medium);
}

/* Testimonials Section */
.testimonials-section {
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.8) 0%, 
    rgba(248, 249, 250, 0.9) 100%);
}

.testimonials-container {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.testimonial-slide {
  display: none;
  opacity: 0;
  transform: translateY(20px);
  transition: var(--transition-normal);
}

.testimonial-slide.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.testimonial-card {
  background: var(--white);
  padding: 3rem 2.5rem;
  border-radius: var(--border-radius-large);
  box-shadow: var(--shadow-medium);
  text-align: center;
  border: 1px solid rgba(135, 206, 235, 0.1);
  position: relative;
}

.testimonial-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
  border-radius: var(--border-radius-large) var(--border-radius-large) 0 0;
}

.quote-icon {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  opacity: 0.7;
}

.testimonial-text {
  font-size: var(--font-size-lg);
  line-height: 1.8;
  margin-bottom: 2rem;
  font-style: italic;
  color: var(--text-dark);
}

.testimonial-footer {
  border-top: 1px solid var(--light-gray);
  padding-top: 1.5rem;
}

.testimonial-author {
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.testimonial-program {
  color: var(--text-light);
  font-size: var(--font-size-sm);
}

.testimonial-navigation {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.nav-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--light-gray);
  cursor: pointer;
  transition: var(--transition-normal);
}

.nav-dot.active,
.nav-dot:hover {
  background: var(--primary-color);
  transform: scale(1.2);
}

/* Contact Section */
.contact-section {
  background: linear-gradient(135deg, 
    rgba(135, 206, 235, 0.1) 0%, 
    rgba(255, 182, 193, 0.1) 100%);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-card,
.form-card {
  background: var(--white);
  padding: 2.5rem;
  border-radius: var(--border-radius-large);
  box-shadow: var(--shadow-medium);
  border: 1px solid rgba(135, 206, 235, 0.1);
}

.contact-header h3 {
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.contact-header p {
  margin-bottom: 2rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-icon {
  width: 50px;
  height: 50px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.25rem;
  flex-shrink: 0;
}

.contact-text h4 {
  color: var(--text-dark);
  margin-bottom: 0.5rem;
  font-size: var(--font-size-base);
}

.contact-text p {
  margin: 0;
  line-height: 1.6;
}

.contact-text a {
  color: var(--primary-color);
  font-weight: 600;
}

/* Form Styles */
.form-card h3 {
  color: var(--text-dark);
  margin-bottom: 2rem;
  text-align: center;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  position: relative;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 1rem 1rem 1rem 1rem;
  border: 2px solid var(--light-gray);
  border-radius: var(--border-radius);
  font-size: var(--font-size-base);
  font-family: inherit;
  background: var(--white);
  transition: var(--transition-normal);
  resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(135, 206, 235, 0.1);
}

.form-group label {
  position: absolute;
  top: 1rem;
  left: 1rem;
  color: var(--text-light);
  font-size: var(--font-size-base);
  pointer-events: none;
  transition: var(--transition-normal);
  background: var(--white);
  padding: 0 0.25rem;
}

.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group select:focus + label,
.form-group select:not([value=""]) + label,
.form-group textarea:focus + label,
.form-group textarea:not(:placeholder-shown) + label {
  top: -0.5rem;
  font-size: var(--font-size-sm);
  color: var(--primary-color);
}

.form-error {
  color: #dc3545;
  font-size: var(--font-size-sm);
  margin-top: 0.25rem;
  display: none;
}

.form-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background: var(--gradient-primary);
  color: var(--white);
  border: none;
  border-radius: 50px;
  font-size: var(--font-size-base);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-bounce);
  margin-top: 1rem;
}

.form-submit:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.form-submit:active {
  transform: translateY(0);
}

.form-success {
  display: none;
  text-align: center;
  padding: 2rem;
}

.form-success.show {
  display: block;
}

.success-icon {
  font-size: 3rem;
  color: var(--accent-color);
  margin-bottom: 1rem;
}

.form-success h3 {
  color: var(--text-dark);
  margin-bottom: 1rem;
}

/* Footer */
.footer {
  background: linear-gradient(135deg, var(--text-dark) 0%, #1a252f 100%);
  color: var(--white);
  padding: 3rem 0 1rem;
  margin-top: 0;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-main {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.footer-logo img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
}

.footer-title {
  font-family: var(--font-heading);
  font-size: var(--font-size-xl);
  font-weight: 700;
}

.footer-subtitle {
  font-size: var(--font-size-sm);
  color: rgba(255, 255, 255, 0.7);
}

.footer-description {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
  max-width: 500px;
}

.footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.footer-section h4 {
  color: var(--white);
  margin-bottom: 1rem;
  font-size: var(--font-size-lg);
}

.footer-section ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-section a {
  color: rgba(255, 255, 255, 0.8);
  transition: var(--transition-normal);
}

.footer-section a:hover {
  color: var(--primary-color);
}

.footer-section li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.8);
  font-size: var(--font-size-sm);
}

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

.footer-copyright p {
  color: rgba(255, 255, 255, 0.6);
  font-size: var(--font-size-sm);
}

/* Background Elements */
.background-leaves {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.leaf {
  position: absolute;
  opacity: 0.1;
  font-size: 2rem;
  animation: leafFloat 15s ease-in-out infinite;
}

.leaf:nth-child(odd) {
  animation-delay: -5s;
}

.leaf:nth-child(even) {
  animation-delay: -10s;
}

.leaf-1 { top: 10%; left: 5%; }
.leaf-2 { top: 20%; right: 10%; }
.leaf-3 { top: 40%; left: 15%; }
.leaf-4 { top: 60%; right: 20%; }
.leaf-5 { bottom: 30%; left: 10%; }
.leaf-6 { bottom: 10%; right: 15%; }
.leaf-7 { top: 30%; left: 80%; }
.leaf-8 { top: 70%; left: 3%; }
.leaf-9 { top: 50%; right: 5%; }
.leaf-10 { bottom: 40%; right: 30%; }
.leaf-11 { top: 15%; left: 40%; }
.leaf-12 { bottom: 20%; left: 60%; }

@keyframes leafFloat {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
    opacity: 0.1;
  }
  25% {
    transform: translateY(-10px) rotate(5deg);
    opacity: 0.2;
  }
  50% {
    transform: translateY(-5px) rotate(-3deg);
    opacity: 0.15;
  }
  75% {
    transform: translateY(-15px) rotate(8deg);
    opacity: 0.25;
  }
}

/* Responsive Design */

/* Tablet Styles */
@media (max-width: 1024px) {
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .programs-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .footer-links {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile Styles */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }
  
  .nav-menu {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    flex-direction: column;
    gap: 0;
    padding: 2rem 0;
    box-shadow: var(--shadow-medium);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-normal);
  }
  
  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  
  .nav-item {
    width: 100%;
  }
  
  .nav-link {
    display: block;
    padding: 1rem 2rem;
    border-radius: 0;
    border-bottom: 1px solid rgba(135, 206, 235, 0.1);
  }
  
  .hero {
    min-height: 80vh;
    padding: 2rem 0;
  }
  
  .hero-title {
    font-size: var(--font-size-3xl);
  }
  
  .hero-subtitle {
    font-size: var(--font-size-lg);
  }
  
  .hero-features {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
  
  .hero-cta {
    flex-direction: column;
    align-items: center;
  }
  
  .cta-button {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }
  
  .benefits-grid {
    grid-template-columns: 1fr;
  }
  
  .programs-grid {
    grid-template-columns: 1fr;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  
  .stat-card {
    padding: 1.5rem 1rem;
  }
  
  .contact-grid {
    gap: 1.5rem;
  }
  
  .footer-links {
    grid-template-columns: 1fr;
  }
  
  .floating-elements {
    display: none;
  }
  
  .background-leaves {
    display: none;
  }
  
  .logo-text {
    display: none;
  }
  
  .section {
    padding: clamp(2rem, 6vw, 4rem) 0;
  }
  
  .glass-card,
  .contact-card,
  .form-card {
    padding: 1.5rem;
  }
}

/* Very Small Mobile */
@media (max-width: 480px) {
  .hero-features {
    gap: 0.75rem;
  }
  
  .feature-badge {
    padding: 0.5rem 1rem;
    font-size: var(--font-size-xs);
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .stat-card {
    padding: 1.25rem 1rem;
  }
  
  .testimonial-card {
    padding: 2rem 1.5rem;
  }
  
  .program-content {
    padding: 1.5rem;
  }
  
  .benefit-card {
    padding: 2rem 1.5rem;
  }
}

/* Accessibility & Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .floating-elements,
  .background-leaves {
    display: none;
  }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .logo-img,
  .footer-logo img {
    image-rendering: -webkit-optimize-contrast;
  }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  :root {
    --text-dark: #ffffff;
    --text-light: #e2e8f0;
    --white: #1a202c;
    --off-white: #2d3748;
    --light-gray: #4a5568;
  }
}

/* Print Styles */
@media print {
  .navbar,
  .hamburger,
  .floating-elements,
  .background-leaves,
  .hero-cta,
  .form-card {
    display: none !important;
  }
  
  .hero {
    min-height: auto;
    padding: 2rem 0;
  }
  
  * {
    box-shadow: none !important;
    text-shadow: none !important;
  }
}