:root {
  --primary: #0B5ED7;
  --secondary: #00AEEF;
  --white: #ffffff;
  --light-blue: #e8f5ff;
  --soft-yellow: #ffd84d;
  --text-dark: #16355f;
  --shadow-soft: 0 10px 30px rgba(11, 94, 215, 0.15);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Nunito", sans-serif;
  color: var(--text-dark);
  background: linear-gradient(120deg, #f7fcff 0%, #eef8ff 50%, #fffdf2 100%);
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Baloo 2", cursive;
  letter-spacing: 0.02em;
}

#loader {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  gap: 1rem;
  background: radial-gradient(circle at 30% 20%, #dff4ff 0%, #b8e7ff 45%, #0b5ed7 120%);
  color: #ffffff;
  text-align: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

#loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-logo {
  width: clamp(70px, 12vw, 112px);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 10px 16px rgba(0, 33, 86, 0.22));
  animation: logoPulse 2.2s infinite ease-in-out;
}

@keyframes logoPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

.loader-book {
  display: flex;
  gap: 0.3rem;
}

.loader-book span {
  display: block;
  width: 12px;
  height: 48px;
  border-radius: 4px;
  background: var(--soft-yellow);
  animation: flip 1.1s infinite ease-in-out;
}

.loader-book span:nth-child(2) {
  animation-delay: 0.12s;
}

.loader-book span:nth-child(3) {
  animation-delay: 0.24s;
}

@keyframes flip {
  0%,
  100% { transform: scaleY(0.5); opacity: 0.45; }
  50% { transform: scaleY(1); opacity: 1; }
}

.bg-scene {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.gradient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  opacity: 0.35;
  animation: drift 12s infinite ease-in-out alternate;
}

.orb-1 {
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, #9edcff 0%, transparent 70%);
  top: -110px;
  left: -80px;
}

.orb-2 {
  width: 340px;
  height: 340px;
  background: radial-gradient(circle, #ffeeb2 0%, transparent 72%);
  right: -70px;
  top: 120px;
  animation-delay: 2s;
}

.orb-3 {
  width: 430px;
  height: 430px;
  background: radial-gradient(circle, #8cc5ff 0%, transparent 72%);
  left: 25%;
  bottom: -180px;
  animation-delay: 4s;
}

@keyframes drift {
  from { transform: translateY(0) translateX(0) scale(1); }
  to { transform: translateY(-20px) translateX(16px) scale(1.08); }
}

.float-icon {
  position: absolute;
  color: rgba(11, 94, 215, 0.2);
  animation: floatIcon 8s infinite ease-in-out;
}

.fi-book { left: 6%; top: 22%; font-size: 2.3rem; }
.fi-cap { right: 10%; top: 20%; font-size: 2.1rem; animation-delay: 1s; }
.fi-pencil { left: 14%; bottom: 24%; font-size: 2.4rem; animation-delay: 2s; }
.fi-bus { right: 18%; bottom: 18%; font-size: 2rem; animation: busMove 20s linear infinite; }
.fi-globe { left: 44%; top: 12%; font-size: 2.2rem; animation-delay: 1.5s; }
.fi-abc { right: 32%; top: 36%; font-size: 1.8rem; animation-delay: 2.6s; }
.fi-notebook { left: 50%; bottom: 20%; font-size: 2rem; animation-delay: 0.5s; }

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

@keyframes busMove {
  0% { transform: translateX(0); }
  50% { transform: translateX(-22px); }
  100% { transform: translateX(0); }
}

.cloud {
  position: absolute;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 22px 4px 0 rgba(255, 255, 255, 0.8), -22px 6px 0 rgba(255, 255, 255, 0.8);
  animation: cloudMove 45s linear infinite;
}

.cloud-1 { width: 90px; height: 32px; top: 11%; left: -120px; }
.cloud-2 { width: 130px; height: 38px; top: 23%; left: -170px; animation-duration: 58s; }
.cloud-3 { width: 105px; height: 34px; top: 33%; left: -140px; animation-duration: 50s; }

@keyframes cloudMove {
  from { transform: translateX(0); }
  to { transform: translateX(calc(100vw + 300px)); }
}

.bird {
  position: absolute;
  color: rgba(11, 94, 215, 0.4);
  animation: birdFly 16s linear infinite;
}

.bird-1 { top: 18%; left: -50px; }
.bird-2 { top: 28%; left: -80px; animation-delay: 3.5s; animation-duration: 20s; }

@keyframes birdFly {
  0% { transform: translateX(0) translateY(0); }
  50% { transform: translateX(52vw) translateY(-16px); }
  100% { transform: translateX(110vw) translateY(0); }
}

.balloon {
  position: absolute;
  width: 22px;
  height: 28px;
  border-radius: 50% 50% 46% 46%;
  background: var(--secondary);
  animation: balloonRise 11s infinite ease-in-out;
}

.balloon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  width: 1.5px;
  height: 30px;
  background: rgba(11, 94, 215, 0.35);
}

.b-1 { left: 76%; bottom: -36px; animation-delay: 0s; }
.b-2 { left: 82%; bottom: -30px; background: #ffcb3d; animation-delay: 2s; }
.b-3 { left: 68%; bottom: -32px; background: #5fc2ff; animation-delay: 4s; }

@keyframes balloonRise {
  0% { transform: translateY(0) translateX(0); opacity: 0.7; }
  70% { opacity: 1; }
  100% { transform: translateY(-88vh) translateX(12px); opacity: 0; }
}

.school-silhouette {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0.12;
}

.school-silhouette path {
  fill: #0b5ed7;
}

#particles-wrap {
  position: absolute;
  inset: 0;
}

.particle {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(0, 174, 239, 0.35);
  animation: particleFloat linear infinite;
}

@keyframes particleFloat {
  0% { transform: translateY(0) scale(1); opacity: 0; }
  25% { opacity: 1; }
  100% { transform: translateY(-105vh) scale(0.3); opacity: 0; }
}

.hero-section,
main,
.site-footer {
  position: relative;
  z-index: 2;
}

.top-brand-bar {
  position: relative;
  z-index: 3;
  padding-top: 1rem;
}

.top-brand-inner {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(11, 94, 215, 0.18);
  box-shadow: 0 10px 24px rgba(11, 94, 215, 0.16);
  border-radius: 999px;
  padding: 0.35rem 0.85rem 0.35rem 0.4rem;
}

.top-logo {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(11, 94, 215, 0.16);
  background: #ffffff;
}

.top-brand-text {
  display: grid;
  line-height: 1.02;
}

.top-brand-text strong {
  font-family: "Baloo 2", cursive;
  font-size: 1.12rem;
  color: #0d4f92;
}

.top-brand-text span {
  color: #2c70ad;
  font-size: 0.82rem;
  font-weight: 700;
}

.glass-card {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 24px;
}

.hero-content {
  padding: clamp(1.25rem, 3vw, 2rem);
}

.brand-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(11, 94, 215, 0.15);
  box-shadow: 0 6px 16px rgba(11, 94, 215, 0.12);
}

.brand-logo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  background: #ffffff;
  border: 2px solid rgba(11, 94, 215, 0.14);
}

.brand-chip-text {
  display: grid;
  line-height: 1.05;
}

.brand-chip-text strong {
  color: #0f4f93;
  font-size: 0.98rem;
}

.brand-chip-text span {
  color: #1e74bc;
  font-size: 0.78rem;
  font-weight: 700;
}

.tagline {
  font-weight: 700;
  color: var(--primary);
}

.hero-sub {
  color: var(--secondary);
  font-weight: 800;
}

.hero-main {
  font-size: clamp(1.3rem, 2.4vw, 2rem);
  color: #194f93;
}

.hero-btn {
  border-radius: 999px;
  padding: 0.75rem 1.4rem;
  font-weight: 700;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0.9rem rgba(0, 174, 239, 0.45);
}

.ghost-btn {
  border-width: 2px;
  color: var(--primary);
  border-color: rgba(11, 94, 215, 0.45);
}

.ghost-btn:hover {
  color: #ffffff;
  background: linear-gradient(120deg, var(--primary), var(--secondary));
  border-color: transparent;
}

.illustration-card {
  padding: 0.7rem;
}

.school-illustration {
  width: 100%;
  display: block;
  border-radius: 18px;
}

.book-open {
  transform-origin: center;
  animation: openBook 4.4s infinite ease-in-out;
}

@keyframes openBook {
  0%, 100% { transform: rotateY(0deg); }
  50% { transform: rotateY(8deg); }
}

.teacher-arm {
  transform-origin: right center;
  animation: wave 1.6s infinite ease-in-out;
}

.child-wave {
  transform-origin: right center;
  animation: wave 1.3s infinite ease-in-out;
}

@keyframes wave {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(-28deg); }
}

.section-title {
  font-size: clamp(1.5rem, 2.4vw, 2.2rem);
  color: #124b8d;
  margin-bottom: 0.2rem;
}

.section-sub {
  color: #2c5c90;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.info-card {
  padding: clamp(1rem, 2.5vw, 1.8rem);
}

.info-block {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(11, 94, 215, 0.1);
  border-radius: 18px;
  padding: 1rem;
  box-shadow: 0 6px 18px rgba(0, 60, 146, 0.08);
  height: 100%;
}

.info-block h5 {
  margin-bottom: 0.4rem;
  color: var(--primary);
}

.info-block a {
  color: #124b8d;
  text-decoration: none;
}

.class-card,
.feature-card,
.count-box {
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 10px 22px rgba(11, 94, 215, 0.12);
}

.class-card,
.feature-card {
  min-height: 110px;
  display: grid;
  place-content: center;
  text-align: center;
  gap: 0.4rem;
  font-weight: 800;
  color: #1b4f85;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.class-card i,
.feature-card i {
  font-size: 1.45rem;
  color: var(--secondary);
}

.class-card:hover,
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 28px rgba(0, 123, 255, 0.24);
}

.class-card {
  animation: bob 3.2s infinite ease-in-out;
}

.class-card:nth-child(even) {
  animation-delay: 0.45s;
}

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.countdown-card {
  padding: clamp(1.2rem, 3vw, 2rem);
}

.count-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
}

.count-box {
  padding: 1rem 0.6rem;
}

.count-box strong {
  display: block;
  font-size: clamp(1.6rem, 3.6vw, 2.8rem);
  color: var(--primary);
  line-height: 1;
}

.count-box span {
  font-weight: 700;
  color: #306191;
}

.site-footer {
  background: rgba(9, 70, 158, 0.9);
  color: #eaf6ff;
}

.footer-brand {
  flex-wrap: wrap;
  justify-content: center;
}

.footer-logo {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.55);
  background: #ffffff;
}

.social-links a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  text-decoration: none;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  transition: transform 0.25s ease, background 0.25s ease;
}

.social-links a:hover {
  transform: translateY(-3px);
  background: var(--secondary);
}

@media (max-width: 992px) {
  .top-brand-inner {
    margin-left: auto;
    margin-right: auto;
    display: flex;
    width: fit-content;
  }

  .hero-section {
    padding-top: 2rem;
  }

  .count-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fi-abc,
  .fi-notebook,
  .bird {
    display: none;
  }
}

@media (max-width: 576px) {
  .top-brand-bar {
    padding-top: 0.85rem;
  }

  .top-logo {
    width: 46px;
    height: 46px;
  }

  .top-brand-inner {
    gap: 0.5rem;
    padding-right: 0.72rem;
  }

  .top-brand-text strong {
    font-size: 1rem;
  }

  .top-brand-text span {
    font-size: 0.75rem;
  }

  .hero-content,
  .info-card,
  .countdown-card {
    border-radius: 18px;
  }

  .class-card,
  .feature-card {
    min-height: 94px;
    font-size: 0.92rem;
  }

  .social-links a {
    width: 36px;
    height: 36px;
  }

  .brand-logo {
    width: 42px;
    height: 42px;
  }

  .brand-chip {
    gap: 0.55rem;
    padding: 0.4rem 0.7rem;
  }
}
