* {
  box-sizing: border-box;
}

body {
  font-family: 'Baloo 2', cursive;
  margin: 0;
  background: linear-gradient(#fff7ff, #ffeef6);
  color: #24164b;
}

main {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
}

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

a {
  color: #1d7fd9;
  font-weight: 700;
}

a:hover {
  text-decoration: underline;
}

.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #ffe7ff, #fff4d6);
  border-bottom: 6px solid #ffb3ec;
  padding: 70px 20px 90px;
}

.hero__inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 36px;
  position: relative;
  z-index: 2;
}

.hero__text {
  flex: 1 1 320px;
}

.hero__tag {
  display: inline-block;
  background: #ffffff;
  border: 4px solid #ffa0e6;
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 1.1rem;
  animation: wiggle 4s ease-in-out infinite;
}

.hero__text h1 {
  font-size: 2.8rem;
  margin: 14px 0;
}

.hero__text p {
  font-family: 'Nunito', sans-serif;
  margin-bottom: 18px;
}

.hero__buddy {
  flex: 1 1 240px;
  text-align: center;
  position: relative;
}

.hero__buddy img {
  max-width: 260px;
  margin: 0 auto;
  animation: float 5s ease-in-out infinite;
}

.hero__bubble {
  position: absolute;
  bottom: -24px;
  right: 20px;
  background: #fffacd;
  border: 3px solid #f7c948;
  border-radius: 30px;
  padding: 12px 18px;
  font-size: 1.1rem;
  animation: pop 3s ease-in-out infinite;
}

.hero__cloud {
  position: absolute;
  background: rgba(255, 255, 255, 0.85);
  border: 3px solid #ffd1fa;
  border-radius: 50px;
  width: 160px;
  height: 90px;
  animation: float 6s ease-in-out infinite;
  z-index: 1;
}

.hero__cloud--one {
  top: 24px;
  left: 12%;
}

.hero__cloud--two {
  bottom: 18px;
  right: 10%;
  animation-delay: 2s;
}

.button {
  display: inline-block;
  background: linear-gradient(90deg, #37cfff, #7af7ff);
  border: 4px solid #1a9ed2;
  border-radius: 30px;
  color: #083a57;
  padding: 12px 24px;
  box-shadow: 5px 5px 0 #1a9ed2;
  text-decoration: none;
  transition: transform 0.2s ease-in-out;
}

.button:hover {
  transform: translate(-3px, -3px);
}

.section {
  padding: 60px 20px;
}

.section--sunny {
  background: #fffaf1;
  border-top: 6px dashed #ffe280;
  border-bottom: 6px dashed #ffe280;
}

.section--mint {
  background: #f1fffa;
  border-top: 6px dashed #8de5d1;
  border-bottom: 6px dashed #8de5d1;
}

.section__inner {
  max-width: 960px;
  margin: 0 auto;
}

.section__title {
  font-size: 2.2rem;
  margin-bottom: 10px;
}

.section__intro {
  font-family: 'Nunito', sans-serif;
  margin-bottom: 30px;
}

.bubble-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.bubble {
  --tilt: -1.5deg;
  background: #ffffff;
  border: 4px solid #ffd1fa;
  border-radius: 40px;
  padding: 24px;
  box-shadow: 6px 6px 0 rgba(240, 132, 208, 0.45);
  transform: rotate(var(--tilt));
  animation: bounce 6s ease-in-out infinite;
}

.bubble:nth-child(2n) {
  --tilt: 1.5deg;
  background: #fff9d6;
  border-color: #ffe280;
  box-shadow: 6px 6px 0 rgba(255, 204, 102, 0.45);
}

.bubble:nth-child(3n) {
  background: #e9fffb;
  border-color: #8de5d1;
  box-shadow: 6px 6px 0 rgba(110, 220, 195, 0.35);
}

.bubble__icon {
  display: inline-block;
  font-size: 2rem;
  margin-bottom: 12px;
}

.bubble h3 {
  margin: 0 0 10px;
  font-size: 1.5rem;
}

.bubble p {
  font-family: 'Nunito', sans-serif;
  margin: 0;
}

.bubble-list {
  font-family: 'Nunito', sans-serif;
  padding-left: 22px;
  margin: 0;
}

.bubble-list li {
  margin-bottom: 6px;
}

.subject-bubbles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.subject-bubble {
  --tilt: -1deg;
  background: #ffffff;
  border: 4px solid #b8a9ff;
  border-radius: 40px;
  padding: 24px;
  box-shadow: 6px 6px 0 rgba(149, 128, 255, 0.35);
  transform: rotate(var(--tilt));
  animation: bounce 5.5s ease-in-out infinite;
}

.subject-bubble:nth-child(2n) {
  --tilt: 1deg;
  background: #f2f0ff;
}

.subject-bubble h3 {
  margin: 0 0 12px;
  font-size: 1.5rem;
}

.subject-bubble ul {
  padding-left: 20px;
  font-family: 'Nunito', sans-serif;
  margin: 0;
}

.reward-cloud {
  max-width: 620px;
  margin: 0 auto;
  background: #e9f2ff;
  border: 4px solid #94b8ff;
  border-radius: 50px;
  padding: 30px;
  text-align: center;
  box-shadow: 6px 6px 0 rgba(125, 161, 255, 0.4);
  animation: bob 5s ease-in-out infinite;
}

.reward-cloud h3 {
  margin-top: 0;
  font-size: 1.7rem;
}

.reward-cloud p {
  font-family: 'Nunito', sans-serif;
  margin-bottom: 16px;
}

.reward-cloud ul {
  display: inline-block;
  text-align: left;
  padding-left: 20px;
  font-family: 'Nunito', sans-serif;
  margin: 0;
}

.tutor-card {
  background: #ffffff;
  border: 4px solid #ffd1fa;
  border-radius: 40px;
  padding: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  align-items: center;
  box-shadow: 6px 6px 0 rgba(240, 132, 208, 0.45);
}

.tutor-card img {
  width: 220px;
  border: 4px solid #94b8ff;
  border-radius: 30px;
  background: #ffffff;
  padding: 10px;
}

.tutor-card p {
  font-family: 'Nunito', sans-serif;
  margin: 0 0 12px;
}

.form-box {
  background: #ffffff;
  border: 4px solid #94b8ff;
  border-radius: 36px;
  padding: 26px;
  font-family: 'Nunito', sans-serif;
  box-shadow: 6px 6px 0 rgba(125, 161, 255, 0.35);
}

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 18px;
}

label {
  font-weight: 700;
  margin-bottom: 6px;
}

input,
select,
textarea {
  padding: 12px;
  border: 2px solid #c3d5ff;
  border-radius: 16px;
  font-family: 'Nunito', sans-serif;
  background: #f6f9ff;
}

textarea {
  resize: vertical;
}

.form-message {
  display: none;
  margin-top: 12px;
  font-weight: 700;
  color: #0b7a75;
}

.footer {
  background: #2d2255;
  color: #ffffff;
  padding: 24px;
  text-align: center;
  font-family: 'Nunito', sans-serif;
}

.footer a {
  color: #7af7ff;
  margin: 0 6px;
}

@keyframes float {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0);
  }
}

@keyframes wiggle {
  0% {
    transform: rotate(-2deg);
  }
  50% {
    transform: rotate(2deg);
  }
  100% {
    transform: rotate(-2deg);
  }
}

@keyframes pop {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0) rotate(var(--tilt, 0deg));
  }
  50% {
    transform: translateY(-6px) rotate(var(--tilt, 0deg));
  }
}

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

@media (max-width: 720px) {
  .hero__text h1 {
    font-size: 2.2rem;
  }

  .hero__buddy img {
    max-width: 200px;
  }

  .hero__bubble {
    position: static;
    display: inline-block;
    margin-top: 14px;
  }

  .tutor-card {
    text-align: center;
    justify-content: center;
  }

  .tutor-card img {
    margin: 0 auto;
  }
}
