@font-face {
  font-family: "Super Kindly";
  src: url("../fonts/Super Kindly.woff2") format("woff2"),
    url("../fonts/Super Kindly.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}

:root {
  --accent-1: #ffd84a; /* yellow */
  --accent-2: #ff7aad; /* pink */
  --accent-3: #6fe2a6; /* green */
  --accent-4: #6fb6ff; /* blue */
  --accent-5: #ff7a7a; /* red */
  --glass: rgba(255, 255, 255, 0.06);
  --ease: cubic-bezier(0.2, 0.9, 0.25, 1);
}

body {
  overflow-x: hidden;
}
.bubble-heading {
  font-family: "Super Kindly", cursive;
  text-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);

  /* gradient text */
  background: linear-gradient(
    90deg,
    var(--accent-2),
    var(--accent-4),
    var(--accent-1)
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 200% 200%;
  animation: strokeShift 6s linear infinite, bubbleFloat 6s ease-in-out infinite;
}

@keyframes strokeShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes bubbleFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}
#mascot-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background: white;
  z-index: 9999;
  transition: background 1s ease;
}

.mascot-loader {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

#mascot-video {
  max-width: 160px;
  border-radius: 12px;
  border: none;
  outline: none;
  background: transparent;
  z-index: 2;
}

.loader-ring {
  position: absolute;
  width: 200px;
  height: 200px;
  border: 4px solid #ef476f;
  border-top: 4px solid transparent;
  border-radius: 50%;
  animation: spin 1.2s linear infinite;
  z-index: 1;
}

@keyframes spin {
  100% {
    transform: rotate(360deg);
  }
}

#mascot-png {
  position: fixed;
  bottom: 50%;
  right: 50%;
  transform: translate(50%, 50%);
  width: 100px;
  opacity: 0;
  z-index: 9998;
  transition: all 1.8s ease-in-out;
}

#mascot-png.corner {
  bottom: 20px;
  right: 20px;
  transform: translate(0, 0);
  opacity: 1;
}
.whatsapp-header i {
  font-size: 32px; /* desktop size */
  color: #25d366; /* official WhatsApp green */
  transition: transform 0.2s ease;
}

.whatsapp-header i:hover {
  transform: scale(1.1);
}

@media (max-width: 768px) {
  .whatsapp-header i {
    font-size: 28px; /* smaller on mobile */
  }
}

/* header transition states */
#site-header {
  transition: background-color 0.36s var(--ease), padding 0.32s var(--ease),
    box-shadow 0.36s var(--ease), transform 0.28s var(--ease);
}
#site-header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  padding-top: 0.8rem;
  padding-bottom: 0.8rem;
  box-shadow: 0 8px 30px rgba(6, 10, 26, 0.12);
  backdrop-filter: blur(6px) saturate(120%);
  -webkit-backdrop-filter: blur(6px) saturate(120%);
}
#site-header.transparent {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.06),
    rgba(255, 255, 255, 0.01)
  );
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

/* header compact hide */
#site-header.hidden {
  transform: translateY(-120%);
}

/* logo micro animation */
.logo-badge {
  transition: transform 0.5s var(--ease);
}
.logo-badge:hover {
  transform: rotate(-6deg) scale(1.02);
}

/* hero */
.hero-creative-title {
  letter-spacing: -0.6px;
  line-height: 1.02;
  transition: transform 0.6s var(--ease), opacity 0.6s var(--ease);
}

.hero-figure {
  transform-origin: center;
  transition: transform 0.6s var(--ease);
  will-change: transform;
}

.floating-circle {
  position: absolute;
  border-radius: 50%;
  opacity: 0.6;
}

.floating-circle.up {
  animation: floatUp 8s ease-in-out forwards;
}

.floating-circle.down {
  animation: floatDown 10s ease-in-out forwards;
}

@keyframes floatUp {
  0% {
    transform: translateY(100%);
    opacity: 0;
  }
  50% {
    opacity: 0.8;
  }
  100% {
    transform: translateY(-20%);
    opacity: 0;
  }
}

@keyframes floatDown {
  0% {
    transform: translateY(-20%);
    opacity: 0;
  }
  50% {
    opacity: 0.8;
  }
  100% {
    transform: translateY(100%);
    opacity: 0;
  }
}

/* Mobile tweaks */
@media (max-width: 768px) {
  .floating-circle {
    opacity: 0.5;
  }
}

.grid {
  gap: 0; /* no gaps between images */
}
.looping-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.25; /* adjustable opacity */
  transition: opacity 0.8s ease-in-out;
}

/* Timeline cards */
.timeline-card {
  position: relative;
  padding-top: 4rem;
  z-index: 10;
  transition: all 0.6s ease-out;
}

/* Mascot video */
.timeline-card video {
  position: absolute;
  width: 3.5rem;
  height: 3.5rem;
  top: 0.25rem;
  z-index: 20;
}

@media (min-width: 768px) {
  .timeline-card video {
    width: 5rem;
    height: 5rem;
    top: -2rem; /* lift above text */
  }
}

/* Timeline pink line */
#timeline-line {
  height: 100%;
  width: 4px;
  background: #fbb6ce;
  transform-origin: top;
  transform: scaleY(0);
  z-index: 0;
}

@media (min-width: 768px) {
  #timeline-line {
    width: 6px;
  }
}

/* reveal utility */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 768px) {
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ============================
   ABOUT INTRO SECTION
   ============================ */

/* Gradient animation across the entire section */
@keyframes gradient-x {
  0% {
    transform: translateX(0) translateY(0) rotate(0deg);
  }
  50% {
    transform: translateX(-20%) translateY(10%) rotate(10deg);
  }
  100% {
    transform: translateX(0) translateY(0) rotate(0deg);
  }
}

@keyframes gradient-x-reverse {
  0% {
    transform: translateX(0) translateY(0) rotate(0deg);
  }
  50% {
    transform: translateX(20%) translateY(-10%) rotate(-10deg);
  }
  100% {
    transform: translateX(0) translateY(0) rotate(0deg);
  }
}

.animate-gradient-x {
  animation: gradient-x 15s ease-in-out infinite;
}

.animate-gradient-x-reverse {
  animation: gradient-x-reverse 20s ease-in-out infinite;
}

/* ============================
   PLAY ZONE SECTION
   ============================ */
.confetti {
  position: absolute;
  transform: rotate(0deg);
  animation: floatConfetti linear infinite;
  border-radius: 10%; /* makes some shapes slightly rounded */
}

@keyframes floatConfetti {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 0.8;
  }
  50% {
    transform: translateY(50vh) rotate(180deg);
    opacity: 1;
  }
  100% {
    transform: translateY(100vh) rotate(360deg);
    opacity: 0.8;
  }
}

/* Add random duration and delay to each confetti */
.confetti:nth-child(1) {
  animation-duration: 6s;
  animation-delay: 0s;
}
.confetti:nth-child(2) {
  animation-duration: 8s;
  animation-delay: 1s;
}
.confetti:nth-child(3) {
  animation-duration: 7s;
  animation-delay: 2s;
}
.confetti:nth-child(4) {
  animation-duration: 9s;
  animation-delay: 0.5s;
}
.confetti:nth-child(5) {
  animation-duration: 6.5s;
  animation-delay: 1.5s;
}
.confetti:nth-child(6) {
  animation-duration: 8.5s;
  animation-delay: 0.3s;
}
.confetti:nth-child(7) {
  animation-duration: 7.5s;
  animation-delay: 2.3s;
}
.confetti:nth-child(8) {
  animation-duration: 9.2s;
  animation-delay: 1.1s;
}
.confetti:nth-child(9) {
  animation-duration: 6.8s;
  animation-delay: 0.7s;
}
.confetti:nth-child(10) {
  animation-duration: 8.8s;
  animation-delay: 1.9s;
}
.confetti:nth-child(11) {
  animation-duration: 7.3s;
  animation-delay: 0.4s;
}
.confetti:nth-child(12) {
  animation-duration: 9.5s;
  animation-delay: 1.2s;
}
.confetti:nth-child(13) {
  animation-duration: 6.2s;
  animation-delay: 0.8s;
}
.confetti:nth-child(14) {
  animation-duration: 8.1s;
  animation-delay: 1.7s;
}
.confetti:nth-child(15) {
  animation-duration: 7.7s;
  animation-delay: 0.9s;
}
.confetti:nth-child(16) {
  animation-duration: 9.3s;
  animation-delay: 1.4s;
}
.confetti:nth-child(17) {
  animation-duration: 6.6s;
  animation-delay: 0.2s;
}
.confetti:nth-child(18) {
  animation-duration: 8.6s;
  animation-delay: 2s;
}
.confetti:nth-child(19) {
  animation-duration: 7.1s;
  animation-delay: 0.6s;
}
.confetti:nth-child(20) {
  animation-duration: 9.1s;
  animation-delay: 1.8s;
}

/* ============================
   SERVICES SECTION
   ============================ */
.animate-spin-slow {
  animation: spin 20s linear infinite;
}
.animate-bounce-slow {
  animation: bounce 5s ease-in-out infinite;
}
@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-15px);
  }
}

/* Keep characters behind service cards */
#character-left,
#character-right,
#character-middle,
#character-top-right {
  z-index: 0; /* behind */
}

.service-card {
  position: relative;
  z-index: 10; /* above characters */
}

/* Shrink service card Lotties + characters on desktop */
@media (min-width: 1024px) {
  /* Service card circular lotties */
  .service-card .lottie-card {
    transform: scale(0.8);
  }

  /* Bottom left + right walkers */
  #character-left,
  #character-right,
  #character-top-right {
    transform: scale(0.85);
  }

  /* Don't shrink top-middle character */
  #character-top-middle {
    transform: none !important;
  }
}
/* Shrink character Lotties on laptops/desktops */
@media (min-width: 1024px) {
  
  #character-right,
  #character-top-right {
    width: 210px !important;
    height: 210px !important;
  }

  #character-left{
    width: 240px !important;
    height: 240px !important;
  }
}

/* ============================
   FUN ACTIVITIES SECTION
   ============================ */

/* Transition for all slides */
#fun-activities .swiper-slide {
  transition: all 0.4s ease;
  border-radius: 1rem; /* softer rounded corners */
  overflow: hidden;
}

/* Desktop / Default styles */
#fun-activities .swiper-slide.scale-90.opacity-60 {
  filter: blur(4px);
  opacity: 0.6;
  transform: scale(0.9);
}
#fun-activities .swiper-slide.scale-110.opacity-100 {
  filter: blur(0);
  opacity: 1;
  transform: scale(1.1);
}

#fun-activities {
  overflow-x: hidden;
}

#fun-activities .swiper {
  padding: 0 1rem; /* small padding so scaled slides don’t push page */
}

/* Tablet adjustments (≥640px and <1024px) */
@media (min-width: 640px) and (max-width: 1023px) {
  #fun-activities .swiper-slide {
    max-width: 60%;
    margin: 0 auto;
  }
  #fun-activities .swiper-slide img {
    height: 160px;
    object-fit: cover;
  }
  #fun-activities .swiper-slide h3 {
    font-size: 1rem;
    margin-top: 0.5rem;
    margin-bottom: 0.75rem;
  }
}

/* Mobile adjustments (<640px) */
@media (max-width: 639px) {
  #fun-activities .swiper-slide {
    max-width: 80%; /* narrower so it doesn’t stretch edge-to-edge */
    margin: 0 auto; /* keep it centered */
  }

  #fun-activities .swiper-slide img {
    height: 110px; /* shorter image for smaller cards */
    object-fit: cover;
  }

  #fun-activities .swiper-slide h3 {
    font-size: 0.9rem;
    margin-top: 0.4rem;
    margin-bottom: 0.6rem;
  }

  /* Mobile blur effect (lighter than desktop) */
  #fun-activities .swiper-slide.scale-90.opacity-60 {
    filter: blur(2px);
    opacity: 0.8;
  }
}

/* service circle hover */
.service-circle {
  transition: transform 0.36s var(--ease), box-shadow 0.36s var(--ease);
}
.service-circle:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 16px 50px rgba(111, 122, 255, 0.08);
}

.gallery-item {
  display: block;
  overflow: hidden;
  border-radius: 16px;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
  position: relative;
}

.gallery-item img {
  transition: transform 0.6s var(--ease), filter 0.4s var(--ease);
  will-change: transform, filter;
}

/* fun hover effect */
.gallery-item:hover {
  transform: translateY(-8px) scale(1.06) rotate(-2deg);
  box-shadow: 0 18px 40px rgba(255, 122, 173, 0.25),
    0 6px 15px rgba(111, 182, 255, 0.18);
}

.gallery-item:hover img {
  transform: scale(1.15) rotate(2deg);
  filter: brightness(1.15) saturate(1.3) contrast(1.05);
}

/* playful shimmer overlay */
.gallery-item::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(255, 255, 255, 0.3) 50%,
    transparent 100%
  );
  transform: skewX(-20deg);
}

.gallery-item:hover::after {
  animation: shimmer 0.8s forwards;
}

@keyframes shimmer {
  100% {
    left: 200%;
  }
}

/* modal */
.modal-bg {
  background: rgba(4, 6, 12, 0.7);
  backdrop-filter: blur(4px);
}

.sparkle {
  position: absolute;
  width: 6px;
  height: 6px;
  background: radial-gradient(circle, #fef3c7 0%, #fbbf24 80%);
  border-radius: 50%;
  pointer-events: none;
  opacity: 1;
  transform: scale(0.5) rotate(0deg);
  animation: sparkleAnim 1s forwards;
}

@keyframes sparkleAnim {
  0% {
    opacity: 1;
    transform: scale(0.5) translate(0, 0) rotate(0deg);
  }
  50% {
    opacity: 0.8;
    transform: scale(1) translate(-5px, -10px) rotate(45deg);
  }
  100% {
    opacity: 0;
    transform: scale(0) translate(-10px, -20px) rotate(90deg);
  }
}

#magic-card:hover {
  cursor: url("https://cdn-icons-png.flaticon.com/512/616/616408.png"), auto;
}

/* shimmer CTA */
.cta-shimmer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.06),
    rgba(255, 255, 255, 0.12),
    rgba(255, 255, 255, 0.06)
  );
  transform: translateX(-120%);
  transition: transform 0.9s var(--ease);
}
.btn-primary:hover .cta-shimmer {
  transform: translateX(120%);
}

.anim-fade {
  opacity: 0;
  transform: translateY(18px);
}
.anim-in {
  opacity: 1 !important;
  transform: none !important;
  transition: all 0.7s var(--ease) !important;
}

.user-tabbed :focus {
  outline: 3px solid rgba(255, 122, 137, 0.18);
  outline-offset: 3px;
  border-radius: 6px;
}

/* lightbox animation helpers */
.lb-enter {
  opacity: 0;
  transform: scale(0.92);
}
.lb-enter-active {
  opacity: 1;
  transform: scale(1);
  transition: all 0.36s cubic-bezier(0.2, 0.9, 0.25, 1);
}

/* footer */
footer {
  transition: transform 0.8s var(--ease), opacity 0.8s var(--ease);
  opacity: 0;
  transform: translateY(30px);
}
footer.visible {
  opacity: 1;
  transform: none;
}

.btn-primary {
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 14px 40px rgba(255, 122, 137, 0.25);
}

.btn-primary:active {
  transform: scale(0.95);
  transition: transform 0.1s ease;
}

/* respect reduce motion */
@media (prefers-reduced-motion: reduce) {
  .reveal,
  .hero-figure,
  .service-circle,
  .gallery-item img,
  .cta-shimmer,
  .anim-fade,
  .anim-in,
  .lb-enter,
  .lb-enter-active,
  footer {
    animation: none !important;
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}
