/* Animations for G⭑Nest Pre School */

/* Button Animations */
.btn {
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  background: rgba(255, 255, 255, 0.5);
  opacity: 0;
  border-radius: var(--radius-full);
  transform: translate(-50%, -50%);
  transition: width 0.5s, height 0.5s, opacity 0.5s;
}

.btn:active::after {
  width: 300px;
  height: 300px;
  opacity: 0.3;
  transition: 0s;
}

.stars-container {
  position: relative;
  width: 50%;
  height: 50px; /* Adjust based on your needs */
  margin: 20px 0;
  overflow: hidden;
}

.star {
  position: absolute;
  font-size: 50px;
  animation: twinkle 3s infinite ease-in-out;
  opacity: 0;
}
.emoji-img {
  width: 1.2em;
  height: 1.2em;
  vertical-align: middle;
}

@keyframes twinkle {
  0%, 100% { opacity: 0; transform: scale(0.5); }
  50% { opacity: 1; transform: scale(1); }
}

/* Star positions and animation delays */
.star:nth-child(1) { top: 130px; left: 650px; animation-delay: 0s; }
.star:nth-child(2) { top: 140px; right: 50px; animation-delay: 1s; }
.star:nth-child(3) { bottom: 80px; left: 50%; animation-delay: 2s; }
.star:nth-child(4) { top: 40%; left: 80%; animation-delay: 1.5s; }
.star:nth-child(5) { bottom: 70px; right: 90%; animation-delay: 3s; }
.star:nth-child(6) { top: 20%; left: 10%; animation-delay: 0.5s; }
.star:nth-child(7) { bottom: 10%; right: 10%; animation-delay: 2.5s; }
.star:nth-child(8) { top: 25%; left: 60%; animation-delay: 0.5s; }
.star:nth-child(9) { top: 45%; left: 40%; animation-delay: 1.0s; }
.star:nth-child(10) { top: 65%; left: 20%; animation-delay: 0.5s; }

/* Hero Section Animations */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(to bottom, #4babd1 0%, #5ddff0 100%);
}

.cloud {
  position: absolute;
  background-color: var(--white, #ffffff);
  border-radius: 50px;
  filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.7));
}

.cloud::before,
.cloud::after {
  content: '';
  position: absolute;
  background-color: var(--white, #ffffff);
  border-radius: 50%;
}

/* Cloud 1 - Large, slow moving left to right */
.cloud-1 {
  width: 150px;
  height: 50px;
  top: 250px;
  left: -30px;
  animation: floatCloud 24s linear infinite;
  opacity: 0.9;
}

.cloud-1::before {
  width: 60px;
  height: 60px;
  top: -30px;
  left: 25px;
}

.cloud-1::after {
  width: 50px;
  height: 50px;
  top: -20px;
  left: 75px;
}

/* Cloud 2 - Medium, fast moving right to left */
.cloud-2 {
  width: 120px;
  height: 40px;
  top: 150px;
  right: -30px;
  animation: floatCloudReverse 30s linear infinite;
  opacity: 0.85;
}

.cloud-2::before {
  width: 50px;
  height: 50px;
  top: -25px;
  left: 20px;
}

.cloud-2::after {
  width: 40px;
  height: 40px;
  top: -15px;
  left: 65px;
}

/* Cloud 3 - Small, medium speed left to right */
.cloud-3 {
  width: 100px;
  height: 35px;
  top: 450px;
  left: -30px;
  animation: floatCloud 35s linear infinite;
  opacity: 0.8;
}

.cloud-3::before {
  width: 45px;
  height: 45px;
  top: -22px;
  left: 15px;
}

.cloud-3::after {
  width: 35px;
  height: 35px;
  top: -12px;
  left: 55px;
}

/* Cloud 4 - Medium, slow diagonal movement */
.cloud-4 {
  width: 130px;
  height: 45px;
  top: 320px;
  left: 1500px;
  animation: floatCloudReverse 50s linear infinite;
  opacity: 0.9;
}

.cloud-4::before {
  width: 55px;
  height: 55px;
  top: -28px;
  left: 25px;
}

.cloud-4::after {
  width: 45px;
  height: 45px;
  top: -18px;
  left: 75px;
}

/* Cloud 5 - Small, fast right to left */
.cloud-5 {
  width: 90px;
  height: 30px;
  top: 160px;
  right: -30px;
  animation: floatCloudReverse 40s linear infinite;
  opacity: 0.75;
}

.cloud-5::before {
  width: 40px;
  height: 40px;
  top: -20px;
  left: 15px;
}

.cloud-5::after {
  width: 30px;
  height: 30px;
  top: -10px;
  left: 50px;
}

/* Cloud 6 - Large, very slow left to right */
.cloud-6 {
  width: 160px;
  height: 55px;
  top: 110px;
  left: -30px;
  animation: floatCloud 60s linear infinite;
  opacity: 0.95;
}

.cloud-6::before {
  width: 70px;
  height: 70px;
  top: -35px;
  left: 30px;
}

.cloud-6::after {
  width: 60px;
  height: 60px;
  top: -25px;
  left: 90px;
}

/* Cloud 7 - Medium, medium speed right to left */
.cloud-7 {
  width: 110px;
  height: 38px;
  top: 650px;
  right: -30px;
  animation: floatCloudReverse 45s linear infinite;
  opacity: 0.85;
}

.cloud-7::before {
  width: 48px;
  height: 48px;
  top: -24px;
  left: 18px;
}

.cloud-7::after {
  width: 38px;
  height: 38px;
  top: -14px;
  left: 60px;
}

/* Cloud 8 - Small, fast diagonal reverse */
.cloud-8 {
  width: 85px;
  height: 28px;
  top: 330px;
  right: 1500px;
 animation: floatCloud 30s linear infinite;
  opacity: 0.7;
}

.cloud-8::before {
  width: 38px;
  height: 38px;
  top: -19px;
  left: 14px;
}

.cloud-8::after {
  width: 28px;
  height: 28px;
  top: -9px;
  left: 45px;
}

/* Cloud 9 - Medium, slow right to left */
.cloud-9 {
  width: 150px;
  height: 50px;
  top: 550px;
  left: 1500px;
  animation: floatCloudReverse 40s linear infinite;
  opacity: 0.9;
}

.cloud-9::before {
  width: 60px;
  height: 60px;
  top: -30px;
  left: 25px;
}

.cloud-9::after {
  width: 50px;
  height: 50px;
  top: -20px;
  left: 75px;
}

/* Cloud 10 - Small, very fast left to right */
.cloud-10 {
  width: 70px;
  height: 25px;
  bottom: 50px;
  left: -30px;
  animation: floatCloud 30s linear infinite;
  opacity: 0.65;
}

.cloud-10::before {
  width: 32px;
  height: 32px;
  top: -16px;
  left: 10px;
}

.cloud-10::after {
  width: 25px;
  height: 25px;
  top: -8px;
  left: 35px;
}

/* Animation Keyframes for Zigzag Movement */
@keyframes floatCloud {
  0% {
    transform: translateX(0) translateY(0);
  }
  25% {
    transform: translateX(25vw) translateY(20px);
  }
  50% {
    transform: translateX(50vw) translateY(-20px);
  }
  75% {
    transform: translateX(75vw) translateY(20px);
  }
  100% {
    transform: translateX(100vw) translateY(0);
  }
}


@keyframes floatCloudReverse {
  0% {
    transform: translateX(0) translateY(0);
  }
  25% {
    transform: translateX(-25vw) translateY(-20px);
  }
  50% {
    transform: translateX(-50vw) translateY(20px);
  }
  75% {
    transform: translateX(-75vw) translateY(-20px);
  }
  100% {
    transform: translateX(-100vw) translateY(0);
  }
}
/* Enhanced Sun */
.sun {
  position: absolute;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle at center, #FFD700 0%, #FF8C00 70%);
  border-radius: 50%;
  top: 180px;
  right: 280px;
  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;
}

@keyframes rotateSun {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes pulseSun {
  0% {
    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);
    transform: scale(1);
  }
  100% {
    box-shadow: 
      0 0 80px rgba(255, 215, 0, 0.9),
      0 0 120px rgba(255, 140, 0, 0.7),
      0 0 160px rgba(255, 69, 0, 0.5);
    transform: scale(1.05);
  }
}
.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:  26%;
  animation: bouncee 3s ease-in-out infinite alternate;
}
.girl2 {
  right:  37%;
  bottom: 20%;
  animation: bouncee 3s ease-in-out infinite alternate-reverse;
}

@keyframes bouncee {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-55px);
  }
}

/* Feature Icons Animation */
.feature-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin: 0 auto var(--space-2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.feature-icon.book {
  background-color: var(--accent-yellow);
}

.feature-icon.heart {
  background-color: var(--secondary);
}

.feature-icon.starr {
  background-color: var(--accent-purple);
}

.feature:hover .feature-icon {
  transform: scale(1.1) rotate(5deg);
}

/* Program Cards Animation */
.program-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  
}

.program-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.program-icon {
  width: 80px;
  height: 80px;
  background-color: var(--primary-light);
  border-radius: 50%;
  margin: 0 auto var(--space-3);
  overflow: hidden;
  align-items: center;
  justify-content: center;
  transition: transform 0.5s ease;
}

.program-card:hover .program-icon {
  transform: rotate(360deg);
}

/* Gallery Items Animation */
.gallery-item {
  overflow: hidden;
  border-radius: var(--radius-lg);
  
}

.gallery-item img {
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

/* Testimonial Slider Animation */
.testimonial-slider {
  position: relative;
  overflow: hidden;
}

.testimonial {
  animation: slideTestimonials 20s linear infinite;
  animation-delay: calc(var(--i, 0) * -5s);
}


/* Social Icons Animation */
.social-icon {
  transition: transform 0.3s ease;
}

.social-icon:hover {
  transform: scale(1.2) rotate(10deg);
}

/* Form Elements Animation */
input:focus, 
select:focus, 
textarea:focus {
  animation: pulse 1s ease-in-out;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(77, 137, 255, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(77, 137, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(77, 137, 255, 0);
  }
}

/* Navigation Animation */
.nav-link:not(.highlight) {
  transition: color 0.3s ease;
}

.nav-link:not(.highlight):hover {
  animation: colorShift 1s infinite alternate;
}

@keyframes colorShift {
  0% {
    color: var(--primary);
  }
  33% {
    color: var(--secondary);
  }
  66% {
    color: var(--accent-yellow);
  }
  100% {
    color: var(--accent-green);
  }
}

/* Logo Animation */
.logo {
  transition: transform 0.5s ease;
}

.logo:hover {
  transform: rotate(10deg);
}