/* =========================================
   CATERPILLARS PLAYSCHOOL THEME CSS
   Magical Garden Theme 🌈🦋🍄
========================================= */

/* =========================
   RESET
========================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

:root {
  --pink: #ff5b93;
  --orange: #ff9838;
  --yellow: #ffd84d;
  --green: #7ac943;
  --light-green: #dff6c8;
  --blue: #66d1ff;
  --purple: #b46cff;
  --brown: #4b2d1f;
  --cream: #fffbe9;
  --white: #ffffff;
}

body {
  font-family: "Nunito", sans-serif;

  color: var(--brown);

  background: linear-gradient(to bottom, #bde8ff 0%, #fff7d6 30%, #f5ffd9 100%);

  overflow-x: hidden;

  position: relative;
}

/* =========================================
   BACKGROUND FLOWERS
========================================= */

body::before {
  content: "";

  position: fixed;

  inset: 0;

  background-image:
    radial-gradient(circle at 20px 20px, #ffd84d 4px, transparent 5px),
    radial-gradient(circle at 80px 80px, #ff8eb3 5px, transparent 6px),
    radial-gradient(circle at 140px 40px, #8ce46b 4px, transparent 5px),
    radial-gradient(circle at 200px 120px, #8ad5ff 5px, transparent 6px);

  background-size: 250px 250px;

  opacity: 0.08;

  pointer-events: none;

  z-index: -1;
}

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

a {
  text-decoration: none;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: auto;
}

section {
  padding: 90px 20px;
}

h1,
h2,
h3 {
  font-family: "Baloo 2", cursive;
}

/* =========================================
   SECTION TITLES
========================================= */

.section-title {
  text-align: center;

  margin-bottom: 60px;
}

.section-title h2 {
  font-size: 3.4rem;

  color: var(--brown);

  position: relative;

  display: inline-block;
}

.section-title h2::before,
.section-title h2::after {
  content: "🌿";

  position: absolute;

  top: 50%;

  transform: translateY(-50%);

  font-size: 2rem;
}

.section-title h2::before {
  left: -55px;
}

.section-title h2::after {
  right: -55px;
}

.section-title p {
  margin-top: 18px;

  font-size: 1.1rem;

  color: #6e5649;
}

/* =========================================
   NAVBAR
========================================= */

.navbar {
  position: fixed;

  top: 0;
  left: 0;

  width: 100%;

  z-index: 999;

  background: rgba(255, 255, 255, 0.9);

  backdrop-filter: blur(10px);

  border-bottom: 5px scalloped white;

  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.nav-wrapper {
  max-width: 1200px;

  margin: auto;

  padding: 14px 20px;

  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo img {
  width: 90px;

  border-radius: 50%;
}

.logo span {
  font-size: 2rem;

  font-family: "Baloo 2", cursive;

  color: var(--pink);

  font-weight: 700;
}

.nav-links {
  display: flex;
  gap: 35px;
}

.nav-links a {
  font-weight: 800;

  color: var(--brown);

  position: relative;
}

.nav-links a::after {
  content: "";

  position: absolute;

  left: 0;
  bottom: -8px;

  width: 0%;
  height: 4px;

  background: var(--orange);

  border-radius: 50px;

  transition: 0.3s;
}

.nav-links a:hover::after {
  width: 100%;
}

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

/* =========================================
   HERO SECTION
========================================= */

.hero {
  min-height: 100vh;

  position: relative;

  overflow: hidden;

  padding-top: 150px;

  background:
    linear-gradient(rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.1)),
    url("../images/logo.png");

  background-size: cover;
  background-position: center;
}

/* MAGIC OVERLAY */

/* MAGIC OVERLAY */

.hero::before {
  content: "";

  position: absolute;

  inset: 0;

  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.02),
    rgba(255, 255, 255, 0.15),
    rgba(255, 255, 255, 0.55)
  );

  z-index: 1;
}

/* =========================================
   MAGICAL FLOATING CLOUDS
========================================= */

.cloud {
  position: absolute;

  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 1),
    rgba(255, 255, 255, 0.95)
  );

  border-radius: 100px;

  opacity: 1;

  z-index: 2;

  box-shadow:
    0 20px 40px rgba(255, 255, 255, 0.95),
    0 10px 25px rgba(255, 255, 255, 0.8);
}

/* CLOUD SHAPES */

.cloud::before,
.cloud::after {
  content: "";

  position: absolute;

  background: white;

  border-radius: 50%;
}

/* =========================================
   BIG CLOUD 1
========================================= */

.cloud1 {
  width: 380px;
  height: 130px;

  top: 110px;
  left: -420px;

  animation: cloudMove 28s linear infinite;
}

.cloud1::before {
  width: 160px;
  height: 160px;

  top: -65px;
  left: 45px;
}

.cloud1::after {
  width: 190px;
  height: 190px;

  top: -85px;
  right: 45px;
}

/* =========================================
   BIG CLOUD 2
========================================= */

.cloud2 {
  width: 460px;
  height: 150px;

  bottom: 120px;
  right: -500px;

  animation: cloudMove2 34s linear infinite;
}

.cloud2::before {
  width: 180px;
  height: 180px;

  top: -75px;
  left: 45px;
}

.cloud2::after {
  width: 220px;
  height: 220px;

  top: -100px;
  right: 45px;
}

/* =========================================
   SMALL CLOUD
========================================= */

.cloud3 {
  width: 260px;
  height: 90px;

  top: 300px;
  left: -280px;

  opacity: 0.92;

  animation: cloudMove 40s linear infinite;
}

.cloud3::before {
  width: 100px;
  height: 100px;

  top: -40px;
  left: 25px;
}

.cloud3::after {
  width: 120px;
  height: 120px;

  top: -50px;
  right: 25px;
}

/* =========================================
   FLOATING CLOUD ANIMATION
========================================= */

@keyframes cloudMove {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(120vw);
  }
}

@keyframes cloudMove2 {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-120vw);
  }
}

/* =========================================
   FLOATING MAGIC OBJECTS
========================================= */

.hero-decoration {
  position: absolute;

  z-index: 3;

  pointer-events: none;

  animation: floaty 5s ease-in-out infinite;

  filter: drop-shadow(0 8px 15px rgba(0, 0, 0, 0.15));
}

/* =========================================
   BUTTERFLIES
========================================= */

.butterfly1 {
  top: 170px;
  right: 16%;

  font-size: 4rem;

  animation-delay: 0s;
}

.butterfly2 {
  bottom: 160px;
  left: 8%;

  font-size: 4rem;

  animation-delay: 0s;
}

/* =========================================
   SPARKLES
========================================= */

.sparkle1 {
  top: 230px;
  left: 16%;

  font-size: 2.5rem;

  animation-delay: 1s;
}

.sparkle2 {
  bottom: 120px;
  right: 12%;

  font-size: 2.8rem;

  animation-delay: 0s;
}

/* =========================================
   RAINBOW
========================================= */

.rainbow-float {
  top: 90px;
  right: 28%;

  font-size: 4.5rem;

  animation-delay: 1.5s;
}

/* =========================================
   FLOATING EFFECT
========================================= */

@keyframes floaty {
  0% {
    transform: translateY(0px) rotate(0deg);
  }

  50% {
    transform: translateY(-14px) rotate(4deg);
  }

  100% {
    transform: translateY(0px) rotate(0deg);
  }
}

/* =========================================
   MOBILE ADJUSTMENTS
========================================= */

@media (max-width: 768px) {
  .cloud1 {
    width: 240px;
    height: 85px;
  }

  .cloud2 {
    width: 280px;
    height: 95px;
  }

  .cloud3 {
    width: 170px;
    height: 60px;
  }

  .butterfly1 {
    font-size: 2.8rem;

    right: 5%;
  }

  .butterfly2 {
    font-size: 2.4rem;
  }

  .sparkle1,
  .sparkle2 {
    font-size: 1.8rem;
  }

  .rainbow-float {
    font-size: 3rem;
  }
}

/* FLOATING EFFECT */

@keyframes floaty {
  0% {
    transform: translateY(0px) rotate(0deg);
  }

  50% {
    transform: translateY(-12px) rotate(3deg);
  }

  100% {
    transform: translateY(0px) rotate(0deg);
  }
}

/* HERO CARD */

.hero-wrapper {
  position: relative;

  z-index: 2;

  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 40px;

  align-items: center;

  background: rgba(255, 255, 255, 0.78);

  backdrop-filter: blur(10px);

  border-radius: 40px;

  padding: 45px;

  border: 8px solid white;

  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.hero-image img {
  border-radius: 30px;

  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

/* ADMISSION BADGE */

.admission-badge {
  display: inline-block;

  padding: 12px 24px;

  border-radius: 50px;

  background: linear-gradient(to right, var(--pink), var(--orange));

  color: white;

  font-weight: 800;

  margin-bottom: 25px;

  box-shadow: 0 10px 20px rgba(255, 91, 147, 0.3);
}

.hero-content h1 {
  font-size: 4.3rem;

  line-height: 1;

  color: var(--brown);
}

.hero-content h1 span {
  background: linear-gradient(
    to right,
    #ff5b93,
    #ff9838,
    #ffd84d,
    #7ac943,
    #66d1ff,
    #b46cff
  );

  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-content p {
  margin-top: 25px;

  line-height: 1.9;

  font-size: 1.15rem;

  color: #5d4a3d;
}

/* BUTTONS */

.hero-buttons {
  display: flex;
  gap: 18px;

  margin-top: 35px;

  flex-wrap: wrap;
}

.btn {
  padding: 15px 28px;

  border-radius: 50px;

  font-weight: 800;

  transition: 0.3s;

  display: inline-block;
}

.btn-primary {
  background: linear-gradient(to right, var(--pink), var(--orange));

  color: white;

  box-shadow: 0 12px 20px rgba(255, 91, 147, 0.3);
}

.btn-primary:hover {
  transform: translateY(-5px);
}

.btn-secondary {
  background: linear-gradient(to right, #67c94c, #5ab03e);

  color: white;

  box-shadow: 0 12px 20px rgba(103, 201, 76, 0.3);
}

.btn-secondary:hover {
  transform: translateY(-5px);
}

/* TRUST BADGES */

.trust-badges {
  display: flex;
  flex-wrap: wrap;

  gap: 12px;

  margin-top: 30px;
}

.trust-badges div {
  background: white;

  padding: 12px 18px;

  border-radius: 50px;

  font-weight: 800;

  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

/* =========================================
   FEATURE CARDS
========================================= */

.features {
  background: linear-gradient(to bottom, #fffce9, #f4ffe1);
}

.feature-grid {
  display: grid;

  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));

  gap: 25px;
}

.feature-card {
  background: white;

  padding: 35px 30px;

  border-radius: 35px;

  text-align: center;

  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.08);

  transition: 0.3s;

  position: relative;
}

.feature-card:hover {
  transform: translateY(-10px);
}

.feature-card::after {
  /* content: "🌸"; */

  position: absolute;

  bottom: 10px;
  left: 50%;

  transform: translateX(-50%);

  font-size: 1.3rem;
}

.feature-icon {
  font-size: 3.2rem;

  margin-bottom: 18px;
}

.feature-card h3 {
  font-size: 1.8rem;

  margin-bottom: 12px;
}

.feature-card p {
  line-height: 1.8;
}

/* =========================================
   ACTIVITIES
========================================= */

.activities {
  background: linear-gradient(to bottom, #f9ffe7, #ffffff);
}

.activities-grid {
  display: grid;

  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));

  gap: 20px;
}

.activity {
  background: white;

  border-radius: 50%;

  aspect-ratio: 1/1;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  text-align: center;

  padding: 20px;

  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);

  transition: 0.3s;

  border: 5px solid #f7f1d7;
}

.activity:hover {
  transform: translateY(-10px);
}

.activity span {
  font-size: 3rem;

  margin-bottom: 12px;
}

.activity {
  font-weight: 800;
}

/* =========================================
   GALLERY
========================================= */

/* .gallery{

  background:
  linear-gradient(to bottom,#f7ffe2,#ffffff);

}

.gallery-grid{

  display:grid;

  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));

  gap:18px;

}

.gallery-item{

  overflow:hidden;

  border-radius:25px;

  border:6px solid white;

  box-shadow:0 12px 25px rgba(0,0,0,0.12);

}

.gallery-item img{

  height:100%;

  object-fit:cover;

  transition:0.4s;

}

.gallery-item:hover img{

  transform:scale(1.08);

} */

/* =========================================
   BEAUTIFUL ACTIVITY GALLERY
========================================= */

.gallery {
  background: linear-gradient(to bottom, #f7ffe2, #ffffff);

  position: relative;
}

.gallery::before {
  /* content: "🌸"; */

  position: absolute;

  left: 30px;
  top: 30px;

  font-size: 2rem;
}

.gallery::after {
  /* content: "🦋"; */

  position: absolute;

  right: 40px;
  bottom: 40px;

  font-size: 2rem;
}

/* MASONRY STYLE */

.gallery-grid {
  column-count: 3;
  column-gap: 20px;
}

.gallery-item {
  position: relative;

  margin-bottom: 20px;

  break-inside: avoid;

  background: white;

  border-radius: 28px;

  overflow: hidden;

  padding: 8px;

  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);

  transition: 0.35s ease;

  cursor: pointer;
}

.gallery-item:hover {
  transform: translateY(-8px) rotate(-1deg);
}

/* IMPORTANT PART */

.gallery-item img {
  width: 100%;

  height: auto;

  object-fit: contain;

  border-radius: 22px;

  display: block;
}

/* Cute overlay */

.gallery-item::after {
  content: "✨ Tap to View";

  position: absolute;

  bottom: 18px;
  left: 50%;

  transform: translateX(-50%);

  background: rgba(255, 255, 255, 0.92);

  padding: 8px 16px;

  border-radius: 50px;

  font-size: 0.85rem;

  font-weight: 800;

  color: var(--brown);

  opacity: 0;

  transition: 0.3s;

  pointer-events: none; /* IMPORTANT FIX */
}

.gallery-item:hover::after {
  opacity: 1;
}

/* RESPONSIVE */

@media (max-width: 950px) {
  .gallery-grid {
    column-count: 2;
  }
}

@media (max-width: 600px) {
  .gallery-grid {
    column-count: 1;
  }
}

/* =========================================
   LIGHTBOX
========================================= */

.lightbox {
  position: fixed;

  inset: 0;

  background: rgba(0, 0, 0, 0.82);

  display: none;

  align-items: center;
  justify-content: center;

  z-index: 9999;

  padding: 20px;
}

.lightbox.active {
  display: flex;
}

.lightbox-image {
  width: auto;
  height: auto;

  max-width: 50vw;
  max-height: 75vh;

  object-fit: contain;

  border-radius: 28px;

  border: 6px solid white;

  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);

  animation: zoomIn 0.3s ease;

  background: white;
}

@media (max-width: 768px) {
  .lightbox-image {
    max-width: 95%;
    max-height: 85vh;
  }
}

@keyframes zoomIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

.close-lightbox {
  position: absolute;

  top: 20px;
  right: 30px;

  font-size: 3rem;

  color: white;

  cursor: pointer;

  font-weight: bold;
}

/* =========================================
   INSTAGRAM CTA
========================================= */

.insta {
  background: linear-gradient(to right, #ffe5ef, #fff6d5);
}

.insta-box {
  max-width: 900px;

  margin: auto;

  background: white;

  padding: 50px 30px;

  border-radius: 40px;

  text-align: center;

  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

.insta-box h2 {
  font-size: 3rem;

  color: var(--brown);
}

.insta-box p {
  margin: 20px auto 30px;

  max-width: 650px;

  line-height: 1.9;
}

/* =========================================
   CONTACT
========================================= */

.contact {
  background: linear-gradient(to bottom, #f3ffd7, #fff8e0);
}

.contact-wrapper {
  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 30px;
}

.contact-card {
  background: white;

  padding: 10px 30px 10px 30px;

  border-radius: 35px;

  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}

.contact-card h3 {
  font-size: 2.3rem;

  margin-bottom: 25px;
}

.contact-item {
  margin-bottom: 22px;

  line-height: 1.8;

  font-weight: 700;
}

.contact-item strong {
  display: block;

  color: var(--pink);

  margin-bottom: 4px;
}

/* =========================================
   CUTE MAP STYLING
========================================= */

.contact-map {
  position: relative;

  background: white;

  padding: 14px;

  border-radius: 35px;

  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);

  border: 6px solid #fff8e8;

  overflow: hidden;
}

/* Decorative flower */

.contact-map::before {
  content: "🌸";

  position: absolute;

  top: 12px;
  left: 16px;

  font-size: 1.5rem;

  z-index: 2;
}

/* Decorative butterfly */

.contact-map::after {
  /* content: "🦋"; */

  position: absolute;

  bottom: 12px;
  right: 16px;

  font-size: 1.5rem;

  z-index: 2;
}

.contact-map iframe {
  width: 100%;

  height: 550px;

  border: none;

  border-radius: 25px;

  display: block;
}

/* MOBILE */

@media (max-width: 768px) {
  .contact-map iframe {
    height: 320px;
  }
}

/* =========================================
   DIRECTIONS BUTTON
========================================= */

.directions-btn {
  display: flex;

  align-items: center;
  justify-content: center;

  margin-top: 32px;

  padding: 16px 20px;

  border-radius: 50px;

  background: linear-gradient(to right, #ff5b93, #ff9838);

  color: white;

  font-weight: 800;

  box-shadow: 0 10px 20px rgba(255, 91, 147, 0.25);

  transition: 0.3s;
}

.directions-btn:hover {
  transform: translateY(-4px);
}

/* =========================================
   FOOTER
========================================= */

footer {
  background: linear-gradient(to right, #4f8c1f, #2d6610);

  color: white;

  text-align: center;

  padding: 28px 20px;

  font-weight: 700;
}

/* =========================================
   WHATSAPP
========================================= */

.whatsapp {
  position: fixed;

  bottom: 20px;
  right: 20px;

  width: 70px;
  height: 70px;

  background: #25d366;

  color: white;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;

  font-size: 2.1rem;

  z-index: 999;

  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.2);

  transition: 0.3s;
}

.whatsapp:hover {
  transform: scale(1.1);
}

/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 950px) {
  .hero-wrapper {
    grid-template-columns: 1fr;

    text-align: center;
  }

  .hero-content h1 {
    font-size: 3rem;
  }

  .hero-buttons,
  .trust-badges {
    justify-content: center;
  }

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

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

  .section-title h2 {
    font-size: 2.4rem;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }

  .hero-wrapper {
    padding: 35px 22px;
  }

  .btn {
    width: 100%;

    text-align: center;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .activity {
    border-radius: 30px;

    aspect-ratio: auto;

    padding: 30px 20px;
  }
}

/* =========================================
   RAINBOW LOGO TEXT
========================================= */

/* =========================================
   MODERN RAINBOW LOGO TEXT
========================================= */

.rainbow-text {
  font-family: "Baloo 2", cursive;

  font-size: 2.3rem;

  font-weight: 800;

  line-height: 1;

  background: linear-gradient(
    90deg,
    #ff5f8f 0%,
    #ff9448 18%,
    #ffcf3f 35%,
    #8ecb3f 52%,
    #5ccf8f 65%,
    #67c8ff 82%,
    #9a6bff 100%
  );

  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;

  background-clip: text;

  letter-spacing: 1px;
}

/* =========================================
   FIX MOBILE HORIZONTAL SCROLL
========================================= */

html,
body {
  width: 100%;
  overflow-x: hidden;
}

/* Prevent animated elements from creating overflow */

.hero,
.gallery,
.contact,
.features,
.activities,
.insta {
  overflow: hidden;
}

/* Fix decorative heading overflow on mobile */

@media (max-width: 768px) {
  .section-title h2::before,
  .section-title h2::after {
    display: none;
  }
}
