/* Basic Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', sans-serif;
}

body {
  background: linear-gradient(to bottom right, #4e705f, rgb(172, 197, 172), green, green, #003814);
  color: white;
  min-height: 100vh;
  overflow-x: hidden;
  animation: gradient-animation 15s ease infinite;
}

/* Balls Background */
.balls-background {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: -1;
}

.ball {
  position: absolute;
  border-radius: 50%;
  background: rgba(166, 218, 131, 0.7);
  filter: blur(20px);
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}

/* Responsive ball sizes and positions */
.ball1 {
  width: 15vw;
  height: 15vw;
  max-width: 200px;
  max-height: 200px;
  top: 10vh;
  left: -20vw;
  animation-name: moveRightLeft1;
  animation-duration: 25s;
}

.ball2 {
  width: 18vw;
  height: 18vw;
  max-width: 250px;
  max-height: 250px;
  top: 50vh;
  left: 100%;
  animation-name: moveLeftRight2;
  animation-duration: 15s;
  animation-delay: 5s;
}

.ball3 {
  width: 13vw;
  height: 13vw;
  max-width: 180px;
  max-height: 180px;
  top: 75vh;
  left: -18vw;
  animation-name: moveRightLeft3;
  animation-duration: 10s;
  animation-delay: 2s;
}

/* Ball Animations */
@keyframes moveRightLeft1 {
  0% { left: -20vw; }
  50% { left: 110%; }
  100% { left: -20vw; }
}

@keyframes moveLeftRight2 {
  0% { left: 100%; }
  50% { left: -25vw; }
  100% { left: 100%; }
}

@keyframes moveRightLeft3 {
  0% { left: -18vw; }
  50% { left: 110%; }
  100% { left: -18vw; }
}

/* Landing Section */
.landing {
  height: 100vh;
  text-align: center;
  padding: 20vh 10vw;
}

.landing h1 {
  font-size: 3.5rem;
  animation: slideDown 1.5s ease-out;

  background: linear-gradient(180deg, #03500a, #132b13, #00cc00);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}


.landing p {
  margin-top: 1rem;
  font-size: 1.2rem;
  color: #d0f5d0;
}

.landing button {
  margin-top: 2rem;
  padding: 1rem 2.5rem;
  font-size: 1.2rem;
  background-color: #ffffff;
  color: #006600;
  border: none;
  border-radius: 40px;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(0,255,0,0.7);
  transition: all 0.3s ease;
  animation: pulse 2s infinite;
}

.landing button:hover {
  background-color: #006600;
  color: white;
  transform: scale(1.05);
}
/* Balloon Decorations - 4 Corners */
.balloon {
  position: absolute;
  width: 220px;
  max-width: 25vw;
  z-index: 2;
  animation: float 4s ease-in-out infinite;
}

/* Top Left */
.balloon-top-left {
  top: 10px;
  left: 10px;
}

/* Top Right */
.balloon-top-right {
  top: 10px;
  right: 10px;
  transform: scaleX(-1); /* Mirror horizontally */
}

/* Bottom Left */
.balloon-bottom-left {
  bottom: 10px;
  left: 10px;
  transform: scaleY(-1); /* Mirror vertically */
}

/* Bottom Right */
.balloon-bottom-right {
  bottom: 10px;
  right: 10px;
  transform: scale(-1, -1); /* Mirror both directions */
}

/* Floating animation */
@keyframes float {
  0% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0); }
}

/* Celebration Section */
.celebration {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background-image: url(/image\ 2.jpg);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  color: white;
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  z-index: 999;
  animation: fadeIn 1.5s ease;
  padding: 20px;
}

.celebration.show {
  display: flex;
}


/* Text */
.celebration h2 {
  font-size: 3.5rem;
  animation: slideDown 1.5s ease-out;
  color: white;
  background: linear-gradient(180deg,rgb(193, 235, 198), #89ac89, #e1f5e1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.celebration p {
  font-size: 1.3rem;
  color: #1eda1e;
  animation: fadeInText 3s ease-in-out;
  max-width: 600px;
  margin: 0 auto;
}

/* Fireworks background */
.fireworks {
  position: absolute;
  width: 100%;
  height: 100%;
  background-image:
    radial-gradient(circle, #fff700 2%, transparent 2.5%),
    radial-gradient(circle, #00ff00 2%, transparent 2.5%),
    radial-gradient(circle, #ff0000 2%, transparent 2.5%);
  background-size: 50px 50px;
  opacity: 0.3;
  animation: fireworks 4s linear infinite;
  z-index: -1;
}

/* Animations */
@keyframes slideDown {
  from { transform: translateY(-40px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInText {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0% { box-shadow: 0 0 10px #00ff00; }
  50% { box-shadow: 0 0 30px #00ff00; }
  100% { box-shadow: 0 0 10px #00ff00; }
}

@keyframes wave {
  0% { transform: rotate(0deg); }
  50% { transform: rotate(4deg); }
  100% { transform: rotate(0deg); }
}

@keyframes fireworks {
  0% { background-position: 0 0, 50px 50px, 100px 100px; }
  100% { background-position: 200px 200px, 150px 150px, 100px 100px; }
}

/* Responsive Design */

/* Tablets */
@media (max-width: 768px) {
  .ball1, .ball2, .ball3 {
    max-width: 120px;
    max-height: 120px;
  }
  .ball1 {
    top: 12vh;
  }
  .ball2 {
    top: 52vh;
  }
  .ball3 {
    top: 78vh;
  }

  .landing h1 {
    font-size: 6vw;
  }

  .landing p {
    font-size: 1.1rem;
  }

  .landing button {
    padding: 12px 30px;
    font-size: 1.1rem;
  }

  .celebration h2 {
    font-size: 5vw;
  }

  .celebration p {
    font-size: 1.1rem;
  }

  .flag {
    max-width: 120px;
    max-height: 80px;
  }
}

/* Phones */
@media (max-width: 480px) {
  .ball1, .ball2, .ball3 {
    max-width: 90px;
    max-height: 90px;
  }
  .ball1 {
    top: 15vh;
  }
  .ball2 {
    top: 55vh;
  }
  .ball3 {
    top: 80vh;
  }

  .landing {
    padding: 15vh 5vw;
  }

  .landing h1 {
    font-size: 7vw;
  }

  .landing p {
    font-size: 1rem;
  }

  .landing button {
    font-size: 1rem;
    padding: 10px 25px;
  }

  .celebration h2 {
    font-size: 6vw;
  }

  .celebration p {
    font-size: 0.9rem;
  }

  .flag {
    max-width: 100px;
    max-height: 70px;
  }
}
