/* -------------------- Base Mobile Styles -------------------- */
body {
  font-size: var(--font-size-base);
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  cursor: pointer;
  z-index: 1001;
  margin-right: 20px;
}

.bar {
  height: 4px;
  width: 100%;
  background-color: wheat;
  border-radius: var(--radius-full);
  transition: all 0.3s ease;
}

/* Toggle animation */
.mobile-menu-toggle.active .bar:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.mobile-menu-toggle.active .bar:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active .bar:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

@media (max-width: 409px) {
  .main-nav {
    position: fixed;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100vh;
    /* Full viewport height */
    background-color: #17317a;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
    transition: left 0.3s ease-in-out;
    z-index: 1000;
    padding: 80px 20px 20px;
    overflow-y: auto;
    margin: 0;
  }

  .hero-image {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    overflow: hidden;
  }

  .main-nav.active {
    left: 0;
  }

  .sun {
    position: absolute;
    width: 70px;
    height: 70px;
    background: radial-gradient(circle at center, #FFD700 0%, #FF8C00 70%);
    border-radius: 50%;
    top: 180px;
    right: 180px;
    box-shadow:
      0 0 60px rgba(255, 215, 0, 0.8),
      0 0 100px rgba(255, 140, 0, 0.6),
      0 0 140px rgba(255, 69, 0, 0.4);
    animation:
      rotateSun 30s linear infinite,
      pulseSun 5s ease-in-out infinite alternate;
    filter: brightness(1.1);
    z-index: 1;
  }

  .emoji-img {
    width: 55px;
    height: 55px;
    vertical-align: middle;
  }

  .main-nav .nav-list {
    display: flex;
    flex-direction: column;
    align-items: end;
  }

  .nav-item {
    margin: var(--space-2) 0;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .header .container1 {
    position: relative;
    display: flex;
    justify-content: space-evenly;
  }

  .logo,
  .subtitle1,
  .subtitle2 {
    font-size: 1rem;
  }

  .title {
    font-size: 1rem;
    width: 55px;
  }

  .subtitle {
    font-size: small;
    margin-top: 35px;
    margin-left: -20px;
  }

  .section-title {
    font-size: 2rem;
  }

  .character {
    position: absolute;
    width: 150px;
    min-height: 200px;
    bottom: 0;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: bottom center;
  }

  .boy1 {
    right: 4%;
    animation: bouncee 3s ease-in-out infinite alternate;
  }

  .boy2 {
    right: 10%;
    bottom: 20%;
    animation: bouncee 3s ease-in-out infinite alternate-reverse;
  }

  .girl1 {
    right: 50%;
    animation: bouncee 3s ease-in-out infinite alternate;
  }

  .girl2 {
    right: 55%;
    bottom: 20%;
    animation: bouncee 3s ease-in-out infinite alternate-reverse;
  }

  .hero-title,
  .hero-subtitle {
    font-size: var(--font-size-xl);
    margin-bottom: 0px;
    text-align: center;
    padding: 10px;
  }

  .hero-content p {
    margin-bottom: 200px;
    font-size: var(--font-size-lg);
  }

  .container {
    padding: 10px;
  }

  .about-content {
    display: inline;
  }

  .about-image {
    margin-top: 20px;
    display: inline;
  }

  .about-text {
    font-size: 0.8rem;
    text-align: justify;
  }

  .about-features {
    gap: 15px;
  }

  .about-features h3 {
    font-size: medium;
  }

  .development-list {
    font-size: var(--font-size-xs);

  }

  .co-text {
    text-align: justify;
  }

  .development-text {
    text-align: justify;
  }

  .development-content {
    text-align: center;
    margin-right: 10px;
  }

  .development-list li {
    justify-content: space-around
  }

  .pedagogy-content {
    display: inline;
    text-align: justify;
  }

  .testimonial-slider {
    height: 400px;
  }

  .testimonial {
    text-align: justify;
  }

  .author {
    text-align: center;
  }

  .contact-content {
    flex-direction: column;
    gap: var(--space-4);
  }

  .footer-content {
    flex-wrap: wrap;
  }

  .form-group {
    overflow: hidden;
    position: relative;
    z-index: 1;
  }

}

/* -------------------- Mobile Styles (410px-768px) -------------------- */
@media (min-width: 410px) and (max-width: 768px) {
  .main-nav {
    position: fixed;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100vh;
    /* Full viewport height */
    background-color: #17317a;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
    transition: left 0.3s ease-in-out;
    z-index: 1000;
    padding: 80px 20px 20px;
    overflow-y: auto;
    margin: 0;
  }

  .main-nav.active {
    left: 0;
  }

  .sun {
    position: absolute;
    width: 70px;
    height: 70px;
    background: radial-gradient(circle at center, #FFD700 0%, #FF8C00 70%);
    border-radius: 50%;
    top: 220px;
    right: 230px;
    box-shadow:
      0 0 60px rgba(255, 215, 0, 0.8),
      0 0 100px rgba(255, 140, 0, 0.6),
      0 0 140px rgba(255, 69, 0, 0.4);
    animation:
      rotateSun 30s linear infinite,
      pulseSun 5s ease-in-out infinite alternate;
    filter: brightness(1.1);
    z-index: 1;
  }

  .emoji-img {
    width: 55px;
    height: 55px;
    vertical-align: middle;
  }

  .main-nav .nav-list {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .nav-item {
    margin: var(--space-2) 0;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .header .container1 {
    position: relative;
    display: flex;
    justify-content: space-between;
  }

  .logo,
  .title,
  .subtitle1,
  .subtitle2 {
    font-size: var(--font-size-xl);
    margin-left: 0;
  }

  .subtitle {
    font-size: small;
    margin-top: 35px;
    margin-left: -20px;
  }

  .section-title {
    font-size: 2rem;
  }

  .character {
    position: absolute;
    width: 160px;
    min-height: 200px;
    bottom: 0;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: bottom center;
  }

  .boy1 {
    right: 4%;
    animation: bouncee 3s ease-in-out infinite alternate;
  }

  .boy2 {
    right: 15%;
    bottom: 20%;
    animation: bouncee 3s ease-in-out infinite alternate-reverse;
  }

  .girl1 {
    right: 45%;
    animation: bouncee 3s ease-in-out infinite alternate;
  }

  .girl2 {
    right: 53%;
    bottom: 20%;
    animation: bouncee 3s ease-in-out infinite alternate-reverse;
  }

  .hero-title,
  .hero-subtitle {
    font-size: var(--font-size-2xl);
    margin-bottom: 0px;
  }

  .hero-content p {
    margin-bottom: 200px;
  }

  .container {
    padding: 10px;
  }

  .about-content {
    display: inline;
  }

  .about-image {
    margin-top: 20px;
    display: inline;
  }

  .about-text {
    font-size: 0.8rem;
    text-align: justify;
  }

  .about-features {
    gap: 20px;
  }

  .development-list {
    font-size: var(--font-size-sm);

  }

  .co-text {
    text-align: justify;
  }

  .development-text {
    text-align: justify;
  }

  .development-content {
    text-align: center;
    margin-right: 10px;
  }

  .development-list li {
    justify-content: space-around
  }

  .pedagogy-content {
    display: inline;
    text-align: justify;
  }

  .testimonial-slider {
    height: 400px;
  }

  .testimonial {
    text-align: justify;
  }

  .author {
    text-align: center;
  }

  .contact-content {
    flex-direction: column;
    gap: var(--space-4);
  }

  .footer-content {
    flex-wrap: wrap;
  }

  .form-group {
    overflow: hidden;
    position: relative;
    z-index: 1;
  }
}

/* -------------------- Larger Tablet to Small Desktop (769px - 1100px) -------------------- */
@media (min-width: 769px) and (max-width: 999px) {
  .main-nav {
    position: fixed;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100vh;
    /* Full viewport height */
    background-color: #17317a;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
    transition: left 0.3s ease-in-out;
    z-index: 1000;
    padding: 80px 20px 20px;
    overflow-y: auto;
    margin: 0;
  }

  .main-nav.active {
    left: 0;
  }

  .main-nav .nav-list {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .nav-item {
    margin: var(--space-2) 0;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .header .container1 {
    position: relative;
    display: flex;
    justify-content: space-between;

  }

  .logo,
  .title,
  .subtitle1,
  .subtitle2 {
    font-size: var(--font-size-3xl);
    margin-left: 0;
  }

  .subtitle {
    font-size: var(--font-size-2xl);
    margin-top: 40px;
    margin-left: -20px;
  }

  .character {
    position: absolute;
    width: 180px;
    min-height: 200px;
    bottom: 0;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: bottom center;
  }

  .boy1 {
    right: 4%;
    animation: bouncee 3s ease-in-out infinite alternate;
  }

  .boy2 {
    right: 15%;
    bottom: 21%;
    animation: bouncee 3s ease-in-out infinite alternate-reverse;
  }

  .girl1 {
    right: 45%;
    animation: bouncee 3s ease-in-out infinite alternate;
  }

  .girl2 {
    right: 53%;
    bottom: 21%;
    animation: bouncee 3s ease-in-out infinite alternate-reverse;
  }

  .hero-title,
  .hero-subtitle {
    font-size: var(--font-size-3xl);
    margin-bottom: 0px;
  }

  .hero-content p {
    margin-bottom: 150px;
  }

  .container {
    padding: 10px;
  }

  .about-features {
    gap: 10px;
  }

  .pedagogy-text {
    font-size: 0.8rem;
    text-align: justify;
  }

  .gallery-grid,
  .programs-grid {
    grid-template-columns: repeat(2, 1fr);
  }


}


/* -------------------- Desktop (1101px and 1500px) -------------------- */
@media (min-width: 1001px) and (max-width: 1500px){
  .header .container1 {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .logo-container{
    justify-content: center;
  }

  .hero {
    min-height: 100vh;
  }

  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .pedagogy-text {
    font-size: 1.1rem;
    text-align: justify;
  }
}

/* -------------------- Desktop (1501px and above) -------------------- */
@media (min-width: 1501px) {
  .header .container1 {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
  }

  .hero {
    min-height: 100vh;
  }

  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .pedagogy-text {
    font-size: 1.1rem;
    text-align: justify;
  }
}

/* -------------------- Mobile Nav Toggle Logic -------------------- */
@media (max-width: 768px) {
  .header .container {
    position: relative;
  }

  .mobile-menu-toggle {
    cursor: pointer;
  }

  .mobile-menu-toggle:active+.main-nav,
  .mobile-menu-toggle:focus+.main-nav {
    display: block;
    animation: slideDown 0.3s ease forwards;
  }

  @keyframes slideDown {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}