/* -----------------------------------------------------------
           1. BRAND FOUNDATION & VARIABLES
        ----------------------------------------------------------- */
:root {
  /* Palette */
  --primary-blue: #3b6ecc;
  --friendly-green: #4cc48f;
  --pencil-yellow: #f7d774;
  --neutral-white: #ffffff;
  --chalk-gray: #f4f6f9;
  --gray-400: #b7bdc7;
  --gray-800: #33373d;

  /* Typography */
  --font-heading: "Poppins", sans-serif;
  --font-body: "Inter", sans-serif;

  /* Spacing */
  --container-width: 1100px;
  --radius-md: 12px;
  --radius-lg: 16px;

  /* Shadows */
  --shadow-soft: 0 4px 20px rgba(59, 110, 204, 0.08);
  --shadow-hover: 0 10px 25px rgba(59, 110, 204, 0.15);
}

/* -----------------------------------------------------------
           2. RESET & GLOBAL STYLES
        ----------------------------------------------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  color: var(--gray-800);
  line-height: 1.6;
  background-color: var(--neutral-white);
  overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  color: var(--gray-800);
  line-height: 1.2;
}

h1 {
  font-size: 3rem;
  font-weight: 700;
}

h2 {
  font-size: 2.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.5rem;
  font-weight: 600;
}

p {
  font-size: 1.125rem;
  color: #555;
}

a {
  text-decoration: none;
  color: inherit;
  transition: 0.3s;
}

ul {
  list-style: none;
}

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

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

/* -----------------------------------------------------------
           3. COMPONENT SYSTEM
        ----------------------------------------------------------- */

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  gap: 10px;
  font-size: 1rem;
}

.btn-primary {
  background-color: var(--primary-blue);
  color: white;
  border: 2px solid var(--primary-blue);
  box-shadow: 0 4px 12px rgba(59, 110, 204, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(59, 110, 204, 0.3);
}

.btn-secondary {
  background-color: white;
  color: var(--primary-blue);
  border: 2px solid var(--primary-blue);
}

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

/* Pulse Animation for Main CTA */
.btn-pulse {
  animation: pulse-animation 5s infinite;
}

@keyframes pulse-animation {
  0% {
    transform: scale(1);
  }

  5% {
    transform: scale(1.02);
  }

  10% {
    transform: scale(1);
  }

  100% {
    transform: scale(1);
  }
}

/* Badges */
.badge {
  display: inline-block;
  background-color: rgba(76, 196, 143, 0.1);
  color: #2e8b65;
  /* Darker green for text */
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-right: 10px;
  margin-bottom: 10px;
}

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

/* -----------------------------------------------------------
           4. NAVIGATION
        ----------------------------------------------------------- */
header {
  background: white;
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

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

.logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--primary-blue);
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo i {
  color: var(--pencil-yellow);
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-links a {
  font-weight: 500;
  color: var(--gray-800);
  font-size: 1rem;
}

.nav-links a:hover {
  color: var(--primary-blue);
}

.nav-cta {
  font-size: 0.9rem;
  padding: 8px 16px;
}

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

/* -----------------------------------------------------------
           5. HERO SECTION
        ----------------------------------------------------------- */
.hero {
  background-color: var(--chalk-gray);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: 85vh;
}

/* Decorative Background shapes */
.hero::before,
.hero::after {
  position: absolute;
  content: "";
  z-index: 0;
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
  will-change: transform;
}

/* Top-right circle */
.hero::before {
  top: -10%;
  right: -5%;
  width: 400px;
  height: 400px;
  background: rgba(76, 196, 143, 0.1);
  animation-duration: 7s;
  /* slightly different timing */
}

/* Bottom-left circle */
.hero::after {
  bottom: 10%;
  left: -5%;
  width: 200px;
  height: 200px;
  background: rgba(247, 215, 116, 0.2);
  animation-duration: 9s;
  /* different timing for variation */
}

/* Floating animation */
@keyframes float {
  0% {
    transform: translate(0, 0);
  }

  50% {
    transform: translate(15px, -15px);
  }

  100% {
    transform: translate(0, 0);
  }
}
.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-text h1 {
  margin-bottom: 24px;
  color: var(--gray-800);
}

.tagline {
  color: var(--primary-blue);
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 16px;
  display: block;
}

.hero-text p {
  margin-bottom: 32px;
  color: #666;
  font-size: 1.25rem;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.illustration-container {
  width: 100%;
  height: 400px;
  background: white;
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.illustration-icon {
  font-size: 8rem;
  color: var(--primary-blue);
}

/* -----------------------------------------------------------
           6. CLASSES SECTION
        ----------------------------------------------------------- */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}

.highlights-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 40px;
}

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

.class-card {
  background: white;
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  transition: all 0.4s ease;
  border: 1px solid transparent;
  position: relative;
  opacity: 0;
  /* For animation */
  transform: translateY(20px);
}

.class-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(59, 110, 204, 0.2);
}

.card-icon {
  width: 60px;
  height: 60px;
  background: var(--chalk-gray);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--primary-blue);
  margin-bottom: 24px;
  transition: 0.3s;
}

.class-card:hover .card-icon {
  background: var(--primary-blue);
  color: white;
}

.class-card h3 {
  margin-bottom: 16px;
  color: var(--gray-800);
}

.subject-list {
  margin-top: 20px;
}

.subject-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  color: #555;
  font-size: 1rem;
}

.subject-list li i {
  color: var(--friendly-green);
  font-size: 0.9rem;
}

/* -----------------------------------------------------------
           7. WHY CHOOSE US
        ----------------------------------------------------------- */
.features-section {
  background: var(--chalk-gray);
}

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

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

.feature-icon-wrapper {
  width: 80px;
  height: 80px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 2rem;
  color: var(--friendly-green);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.feature-item:hover .feature-icon-wrapper {
  background: var(--friendly-green);
  color: white;
}

.feature-item h4 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

/* -----------------------------------------------------------
           8. LOCATION SECTION
        ----------------------------------------------------------- */
.location-container {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 48px;
  align-items: center;
}

.address-box {
  background: white;
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.address-line {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}

.address-line i {
  color: var(--primary-blue);
  font-size: 1.5rem;
  margin-top: 5px;
}

.map-placeholder {
  width: 100%;
  height: 400px;
  background-color: #e5e3df;
  border-radius: var(--radius-lg);
  border: 4px solid white;
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.map-placeholder:hover {
  transform: scale(1.02);
}

/* Simulated Map Content */
.map-marker {
  text-align: center;
  color: #ea4335;
}

.map-marker i {
  font-size: 3rem;
  filter: drop-shadow(0 4px 4px rgba(0, 0, 0, 0.3));
}

/* -----------------------------------------------------------
           9. TESTIMONIALS
        ----------------------------------------------------------- */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

.testimonial-card {
  background: white;
  border: 1px solid #eee;
  padding: 32px;
  border-radius: var(--radius-md);
  position: relative;
}

.quote-icon {
  position: absolute;
  top: 24px;
  right: 24px;
  font-size: 2rem;
  color: rgba(247, 215, 116, 0.5);
  /* Soft yellow */
}

.testimonial-text {
  font-style: italic;
  font-size: 1.1rem;
  margin-bottom: 24px;
  color: #444;
}

.parent-info {
  font-weight: 600;
  color: var(--primary-blue);
  display: flex;
  align-items: center;
  gap: 10px;
}

.parent-avatar {
  width: 40px;
  height: 40px;
  background: var(--chalk-gray);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--gray-400);
}

/* -----------------------------------------------------------
           10. CONTACT SECTION
        ----------------------------------------------------------- */
.contact-section {
  background-color: var(--primary-blue);
  background: url("./blue.jpg");
  background-size: 100% 100%;
  background-attachment: fixed;
  color: white;
}

.contact-section h2,
.contact-section p {
  color: white;
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-info-list {
  margin-top: 32px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  font-size: 1.1rem;
}

.contact-item i {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-form {
  background: white;
  padding: 40px;
  border-radius: var(--radius-lg);
  color: var(--gray-800);
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  font-size: 0.9rem;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--gray-400);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: 0.3s;
}

.form-input:focus {
  outline: none;
  border-color: var(--friendly-green);
  box-shadow: 0 0 0 3px rgba(76, 196, 143, 0.2);
}

textarea.form-input {
  resize: vertical;
  min-height: 120px;
}

/* -----------------------------------------------------------
           11. FOOTER
        ----------------------------------------------------------- */
footer {
  background-color: var(--chalk-gray);
  padding: 60px 0 20px;
  border-top: 1px solid #eee;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand h4 {
  font-size: 1.5rem;
  color: var(--primary-blue);
  margin-bottom: 16px;
}

.footer-links h5 {
  margin-bottom: 16px;
  font-size: 1.1rem;
}

.footer-links ul li {
  margin-bottom: 10px;
}

.footer-links a:hover {
  color: var(--primary-blue);
  padding-left: 5px;
}

.copyright {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid var(--gray-400);
  color: #777;
  font-size: 0.9rem;
}

/* -----------------------------------------------------------
           12. RESPONSIVE MEDIA QUERIES
        ----------------------------------------------------------- */
@media (max-width: 900px) {
  h1 {
    font-size: 2.5rem;
  }

  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-text p {
    margin-left: auto;
    margin-right: auto;
    max-width: 600px;
  }

  .illustration-container {
    height: 300px;
    margin-top: 30px;
  }

  .location-container,
  .contact-wrapper {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links,
  .nav-cta {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

  section {
    padding: 60px 0;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  .class-card {
    padding: 30px 20px;
  }
}

/* -----------------------------------------------------------
           13. ANIMATION CLASSES (JS Triggered)
        ----------------------------------------------------------- */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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