@media screen and (min-width: 600px) {
body {
  overflow-x: hidden;
}

body,
html {

  height: 100%;
  margin: 0;
  padding: 0;
  background-color: #F2FF42;
  font-family: 'Poppins', sans-serif;
}

.parallax {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  background-image: url("images/loooppback.png");
  background-color: black;
  width: 100%;
  min-height: 100%;
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.confetti {
  position: absolute;
  width: 200px;
  /* Adjust as needed */
  opacity: 0.8;
  transition: transform 0.1s ease-out;
}

.confetti-left {
  left: 0%;
  top: 50%;
  transform: translateY(-50%);
  -webkit-transform: scaleX(-1);
  transform: scaleX(-1);
}

.confetti-right {
  right: 0%;
  top: 50%;
  transform: translateY(-50%);
  -webkit-transform: scaleX(1);
  transform: scaleX(1);
}

.textbox {
  transform: translateX(50%);
  background-color: #F2FF42;
  padding: 40px;
  max-width: 700px;
  text-align: center;
}

.divider-top {
  width: 50%;
  height: 2px;
  background-color: black;
  margin: 20px 0;
}

.divider-bottom {
  width: 50%;
  height: 2px;
  background-color: black;
  margin: 20px 0 0 auto;
}

.scroll {
  position: absolute;
  bottom: 10%;
  left: 50%;
  transform: translateX(-50%);

  background-color: rgb(255, 242, 0);
  color: black;
  border: none;
  padding: 10px 20px;
  font-size: 18px;
  cursor: pointer;
  font-weight: bold;
  border-radius: 25px;

  transition: background-color 0.3s;
  animation: bounce 1s infinite ease-in-out;
}

@keyframes bounce {

  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  50% {
    transform: translateX(-50%) translateY(-10px);
  }
}

.scroll:hover {
  background-color: gold;
}


.fade-in {
  opacity: 0;

  transition: opacity 1.8s ease-out, transform 1.8s ease-out;
}

.fade-in.visible {
  opacity: 1;

}


.teambox {
  padding: 50px;
  /* padding-top: 25px; */
  height: auto;
  background-color: black;
  text-align: center;
}

.card-body {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.card-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  width: 100%;
}

.profile-image {
  width: 360px;
  height: 360px;
  object-fit: cover;
  border-radius: 15px;
  border: 3px solid #000;
}

.card-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.divider {
  width: 100%;
  height: 2px;
  background-color: black;
  margin: 10px 0;
}

:root {
  --cards: 4;
  --cardHeight: 70vh;
  --cardTopPadding: 0.3em;
  /* --cardMargin: 2vw; */
}

.container {
  width: 90%;
  margin: 0 auto;
}

#cards {
  list-style: none;
  padding-left: 0;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: repeat(var(--cards), var(--cardHeight));
  gap: var(--cardMargin);
  padding-bottom: calc(var(--cards) * var(--cardTopPadding));
  margin-bottom: var(--cardMargin);
}

#card1 {
  --index: 1;
}

#card2 {
  --index: 2;
}

#card3 {
  --index: 3;
}

#card4 {
  --index: 4;
}

#card5 {
  --index: 5;
}

.card {
  position: sticky;
  top: 0;
  padding-top: calc(var(--index) * var(--cardTopPadding));
}

#card1 .card-body {
  background-color: #F2FF42;
}

#card2 .card-body {
  background-color: #F2FF42;
}

#card3 .card-body {
  background-color: #F2FF42;
}

#card4 .card-body {
  background-color: #F2FF42;
}

#card5 .card-body {
  background-color: #F2FF42;
}

.card-body {
  box-sizing: border-box;
  padding: 40px;
  border-radius: 50px;
  box-shadow: 0 0 30px 0 rgba(0, 0, 0, 0.3);
  height: var(--cardHeight);
  /* display: flex; */
  justify-content: center;
  align-items: center;
}

.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 40px;
  background-color: black;
  color: white;
  font-family: 'Poppins', sans-serif;
  position: relative;
  overflow: hidden;
}

.contact {
  max-width: 200px;
}

.contact h2 {
  font-size: 32px;
  margin-bottom: 10px;
}

.contact p {
  font-size: 18px;
  margin: 5px 0;
}

.stars {
  position: relative;
  width: 60%;
  height: 100px;
}

.star {
  position: absolute;
  width: 30px;
  height: 30px;
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  animation: float 5s infinite ease-in-out;
}

.yellow {
  background-color: yellow;
}

.white {
  background-color: white;
}

.purple {
  background-color: purple;
}

.green {
  background-color: lime;
}

.star:nth-child(1) {
  left: 10%;
  top: 20%;
  animation-duration: 6s;
}

.star:nth-child(2) {
  left: 25%;
  top: 50%;
  animation-duration: 4s;
}

.star:nth-child(3) {
  left: 40%;
  top: 10%;
  animation-duration: 5s;
}

.star:nth-child(4) {
  left: 55%;
  top: 60%;
  animation-duration: 6s;
}

.star:nth-child(5) {
  left: 70%;
  top: 30%;
  animation-duration: 4.5s;
}

.star:nth-child(6) {
  left: 85%;
  top: 70%;
  animation-duration: 5.5s;
}

.star:nth-child(7) {
  left: 95%;
  top: 40%;
  animation-duration: 6.5s;
}

@keyframes float {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-20px);
  }

  100% {
    transform: translateY(0);
  }
}

.animated-star {
  animation: tilt 2s ease-in-out infinite alternate;
}

@keyframes tilt {
  0% {
    transform: translateY(0) rotate(-10deg);
  }

  50% {
    transform: translateY(-20px);
  }

  100% {
    transform: translateY(0) rotate(10deg);
  }
}
}
@media screen and (max-width: 600px) {

  /* General Styles */
  body {
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    background-color: #F2FF42;
    font-family: 'Poppins', sans-serif;
  }

  html {
    height: 100%;
  }

  /* Parallax Section */
  .parallax {
    /* position: relative;
    display: flex;
    justify-content: center; */
    align-items: center;
    background-image: url("images/loooppback.png");
    background-color: black;
    width: 100%;
    min-height: 100vh; 
    /* background-attachment: fixed;*/
    background-position: center; 
    background-repeat: no-repeat;
    background-size: contain; 
  }

  .parallax img {}

  .confetti {
    position: absolute;
    width: 150px;
    opacity: 0.8;
    transition: transform 0.1s ease-out;
  }

  .confetti-left {
    left: 0;
    top: 80%;
    transform: translateY(-50%) scaleX(-1);
  }

  .confetti-right {
    right: 0;
    top: 80%;
    transform: translateY(-50%);
  }

  .scroll {
    position: absolute;
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgb(255, 242, 0);
    color: black;
    border: none;
    padding: 10px 20px;
    font-size: 18px;
    cursor: pointer;
    font-weight: bold;
    border-radius: 25px;
    transition: background-color 0.3s;
    animation: bounce 1s infinite ease-in-out;
  }

  @keyframes bounce {

    0%,
    100% {
      transform: translateX(-50%) translateY(0);
    }

    50% {
      transform: translateX(-50%) translateY(-10px);
    }
  }

  .scroll:hover {
    background-color: gold;
  }

  /* Textbox Section */
  .textbox {
    background-color: #F2FF42;
    padding: 20px;
    max-width: 90%;
    margin: 0 auto;
    text-align: center;
    transform: translateX(0);
  }

  .divider-top,
  .divider-bottom {
    width: 50%;
    height: 2px;
    background-color: black;
    margin: 20px auto;
  }

  .fade-in {
    opacity: 0;
    transition: opacity 1.8s ease-out, transform 1.8s ease-out;
  }

  .fade-in.visible {
    opacity: 1;
  }


  .teambox {
    padding: 20px;
    background-color: black;
    text-align: center;
  }

  .containers {
    width: 100%;
    margin: 0 auto;
  }

  #cards {
    list-style: none;
    padding-left: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .card {
    background-color: #F2FF42;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.3);
  }

  .card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .profile-image {
    width: 100%;
    max-width: 360px;
    height: auto;
    border-radius: 15px;
    border: 3px solid #000;
  }

  .card-text {
    text-align: center;
  }

  .divider {
    width: 100%;
    height: 2px;
    background-color: black;
    margin: 10px 0;
  }

  .footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background-color: black;
    color: white;
    font-family: 'Poppins', sans-serif;
    position: relative;
    overflow: hidden;
  }

  .contact {
    text-align: center;
    margin-bottom: 20px;
  }

  .contact h2 {
    font-size: 24px;
    margin-bottom: 10px;
  }

  .contact p {
    font-size: 16px;
    margin: 5px 0;
  }

  .stars {
    left: -5%;
    position: relative;
    width: 100%;
    height: 100px;
  }

  .star {
    position: absolute;
    width: 20px;
    height: 20px;
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    animation: float 5s infinite ease-in-out;
  }

  .yellow {
    background-color: yellow;
  }

  .white {
    background-color: white;
  }

  .purple {
    background-color: purple;
  }

  .green {
    background-color: lime;
  }

  .star:nth-child(1) {
    left: 10%;
    top: 20%;
    animation-duration: 6s;
  }

  .star:nth-child(2) {
    left: 25%;
    top: 50%;
    animation-duration: 4s;
  }

  .star:nth-child(3) {
    left: 40%;
    top: 10%;
    animation-duration: 5s;
  }

  .star:nth-child(4) {
    left: 55%;
    top: 60%;
    animation-duration: 6s;
  }

  .star:nth-child(5) {
    left: 70%;
    top: 30%;
    animation-duration: 4.5s;
  }

  .star:nth-child(6) {
    left: 85%;
    top: 70%;
    animation-duration: 5.5s;
  }

  .star:nth-child(7) {
    left: 95%;
    top: 40%;
    animation-duration: 6.5s;
  }

  @keyframes float {
    0% {
      transform: translateY(0);
    }

    50% {
      transform: translateY(-20px);
    }

    100% {
      transform: translateY(0);
    }
  }

  .animated-star {
    animation: tilt 2s ease-in-out infinite alternate;
  }

  @keyframes tilt {
    0% {
      transform: translateY(0) rotate(-10deg);
    }

    50% {
      transform: translateY(-20px);
    }

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

  @media (max-width: 768px) {
    .textbox {
      padding: 10px;
    }

    .card-content {
      flex-direction: column;
    }

    .profile-image {
      width: 100%;
      max-width: 200px;
    }

    .footer {
      flex-direction: column;
      text-align: center;
    }

    .stars {
      width: 100%;
      height: 80px;
    }

    .star {
      width: 15px;
      height: 15px;
    }
  }

  @media (max-width: 480px) {
    .scroll {
      font-size: 16px;
      padding: 8px 16px;
    }

    .textbox h2 {
      font-size: 1.5em;
    }

    .textbox p {
      font-size: 1em;
    }

    .teambox h2 {
      font-size: 1.5em;
    }

    .card-text h2 {
      font-size: 1.2em;
    }

    .card-text p {
      font-size: 0.9em;
    }

    .contact h2 {
      font-size: 1.5em;
    }

    .contact p {
      font-size: 0.9em;
    }
  }
}