@import url("https://fonts.googleapis.com/css2?family=Lexend:wght@400;500;600;700&display=swap");
html,
body {
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  width: 100%;
  overflow: hidden;
  font-family: "Lexend", sans-serif;
}

.container-fluid {
  position: relative;
  height: 100vh;
  z-index: 1; /* Ensures the container's contents (text, buttons, etc.) are in front of the video */
  margin: 0;
  padding: 0;
  text-align: center;
  background-color: black;
  /* background-color: rgba(65, 13, 187, 0.516); */

  /* Background image */
  /* background-image: url("./image's/pexels-pixabay-87651.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed; */

  /* Optional: Background overlay for better readability of text */
  /* background-color: rgba(0, 0, 0, 0.5);
  background-blend-mode: overlay; */
}

.img-fluid {
  max-width: 150%;
  height: 100%;
  margin-left: 15%;
}

.Text_1 {
  margin-top: 5vh;
  padding-left: 5%;
  text-align: left;
}

h2 {
  color: #fff;
  font-family: "Lexend";
  font-size: 1.5em;
  font-style: normal;
  font-weight: 400;
  line-height: 40%;
  letter-spacing: 0.1005em;
  text-align: left;
  position: relative;
}

.animated-words {
  /* background-image: linear-gradient(#e9cbff 0%, #9296f0 58%, #9747ff 100%);

  -webkit-background-clip: text; */

  position: relative;
  font-size: 1.2em;
  font-family: "Lexend";
  letter-spacing: 0.09094em;
  color: white; /* White color */
  font-style: normal;
  font-weight: 400;
  text-align: left;
}

.word {
  background-image: linear-gradient(
    45deg,
    #e9cbff 0%,
    #9296f0 58%,
    #9747ff 100%
  );

  -webkit-background-clip: text;
  opacity: 0;
  animation: fadeInOut 12s infinite; /* Total time for full cycle */
  color: transparent;
  position: absolute;
}

.word:nth-child(1) {
  animation-delay: 0s; /* Start with "Sustainable future" */
}

.word:nth-child(2) {
  animation-delay: 3s; /* Show "Propel" after 3 seconds */
}

.word:nth-child(3) {
  animation-delay: 6s; /* Show "Humankind" after 6 seconds */
}

.word:nth-child(4) {
  animation-delay: 9s; /* Show "Towards" after 
.word:nth-child(4) {
  animation-delay: 9s; /* Show "Towards" after 9 seconds */
}

@keyframes fadeInOut {
  0%,
  25%,
  100% {
    opacity: 0;
  } /* Start and end with hidden */
  10%,
  20% {
    opacity: 1;
  } /* Show the text in the middle of its animation */
}

h1 {
  text-align: center;
  font-style: normal;
  font-family: "Lexend";
  font-size: 4em;
  font-weight: 400;
  line-height: normal;

  background: linear-gradient(90deg, #cbccff 31.68%, #9296f0 94.68%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.Text_2 {
  margin-top: 20vh;
}

.Text_2 p {
  color: #fff;
  text-align: center;
  font-family: Lexend;
  font-size: 1em;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}

.button_row {
  /* position: absolute; */
  width: 100%;
  /* bottom: 5rem; */
  bottom: 14vh;
  justify-content: left;
  text-align: center;
  display: flex;
}

button {
  padding: 0.4em 0.5em;
  font-size: 1em;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.4) 0%,
    rgba(255, 255, 255, 0.2) 100%
  );
  color: #fff;
  border: 1px solid #9da0f3;
  border-radius: 1.875em;
  cursor: pointer;
}

button:hover {
  background-color: #a99fe7;
}

.back-video {
  margin: auto;
  width: 150vw;
  position: absolute;
  top: 0;
  bottom: 0;
  height: 150vh;
  z-index: -1;
  object-fit: cover;
}

.img-fluid,
.Text_2,
.button_row {
  z-index: 2; /* Place text and button on top of everything else */
}

footer {
  width: 100%;
  position: absolute;
  bottom: 0;
  color: #fff;

  font-size: 1vw;
  line-height: 1vh;
}

.footer_row {
}

hr {
  width: 90%;
  border: 0;
  border-bottom: 2.5px solid #ccc;
  margin: 20px auto;
}

.copyright {
  color: white;
  text-align: center;
}

/* Modal (Pop-up) Styles */
.modal {
  display: none; /* Hidden by default */
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.6); /* Black w/ opacity */
}

.modal-content {
  background-color: rgba(
    255,
    255,
    255,
    0.1
  ); /* Slightly transparent background */
  backdrop-filter: blur(10px); /* Blurring background */
  margin: 8% auto;
  padding: 1.5%;
  border: 1px solid #888;
  width: 80%;
  max-width: 500px;
  border-radius: 10px;
  box-shadow: 0px 0px 10px 2px rgba(255, 255, 255, 0.1);
  color: #fff;
  text-align: center;
}

.modal-content h2 {
  font-size: 20px;
  margin-bottom: 5%;
  text-align: center;
}

.modal-content label {
  display: block;
  text-align: left;
  margin-bottom: 3%;
}
.modal-content input[type="text"],
.modal-content input[type="email"],
.modal-content textarea {
  width: 100%;
  padding: 2.5%;
  margin-bottom: 10px;
  border: none;
  border-radius: 5px;
  background-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.modal-content button {
  background-color: #d4c5f9;
  color: #000;
  padding: 10px 20px;
  border: none;
  /* border-radius: 5px; */
  cursor: pointer;
  font-size: 1em;
}

.modal-content button:hover {
  background-color: #a99fe7;
}

.close {
  margin-left: 92%;
  color: #aaa;
  float: right;
  font-size: 1.5em;
  font-weight: lighter;
  cursor: pointer;
}

.close:hover,
.close:focus {
  color: #fff;
  text-decoration: none;
  cursor: pointer;
}

@media screen and (max-width: 576px) {
  .logo_cl {
    width: 25%;
  }
  .Text_1 {
    margin-top: 2vh !important;
    margin-left: 0.2% !important;
  }

  .Text_1_cl {
    margin-top: 3vh !important;
  }
  h2 {
    font-size: 1.6em;
    line-height: 100%;
  }
  .animated-words {
    position: relative;
    font-size: 1.4em;
    font-family: "Lexend";
    letter-spacing: 0.09094em;
    color: white;
    font-style: normal;
    font-weight: 700;
    text-align: left;
  }

  .Text_2_cl {
    margin-top: 0 !important;
  }

  /* .Text_2_cl h1 {
    text-align: center;
    font-style: normal;
    font-family: "Lexend";
    font-size: 15vw;
    font-weight: 400;
    line-height: normal;
    background: linear-gradient(90deg, #cbccff 31.68%, #9296f0 94.68%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  } */
  .Text_2_cl p {
    font-size: 1em;
  }

  /* .button_row {
    font-size: 4vw;
    margin-top: 5%;
    padding: 1rem 3rem;
  } */

  .container-fluid {
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Ensures proper spacing between elements */
    height: 100vh; /* Ensure full viewport height usage */
  }

  .Text_2_cl h1 {
    text-align: center;
    font-style: normal;
    font-family: "Lexend";
    font-size: 3.2em;
    font-weight: 400;
    line-height: normal;
    background: linear-gradient(90deg, #cbccff 31.68%, #9296f0 94.68%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }

  .Text_2 {
    margin-top: auto; /* Pushes it to the bottom */
    margin-bottom: 21vh; /* Adds some space between Text_2 and the button */
    text-align: center;
  }

  .button_row {
    position: absolute;
    margin-top: auto; /* Automatically positions it at the bottom of its container */
    /* margin-bottom: 5%; Adds spacing between the button and the footer */
    /* padding: 1rem 3rem; */
    text-align: center;
  }

  .button {
    font-size: 1.2em;
  }

  footer {
    width: 100%;
    position: absolute;
    bottom: 0;
    color: #fff;
    padding: 0;
    font-size: 3vw;
    line-height: 1vh;
  }

  .back-video {
    height: 100vh;
    /* margin: auto;
    width: 150vw;
    position: absolute;
    top: 0;
    bottom: 0;
    height: 150vh;
    z-index: -1;
    object-fit: cover; */
  }
}

/* Success popup styling */
#successPopup {
  display: none; /* Hidden by default */
  position: fixed;
  z-index: 9999;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(32, 37, 34, 0.9); /* Semi-transparent green */
  color: white;
  padding: 20px 30px;
  border-radius: 10px;
  box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.2);
  font-size: 1.5rem;
  text-align: center;
  opacity: 0;
  animation: fadeInOutPopup 4s ease-in-out forwards;
}

@keyframes fadeInOutPopup {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.9);
  }
  10% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  90% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.9);
  }
}

@media screen and (max-width: 768px) and (min-width: 577px) {
  .logo_cl {
    width: 25%;
  }

  .Text_1 {
    margin-top: 2vh !important;
    margin-left: 0.2% !important;
  }

  .Text_1_cl {
    margin-top: 3vh !important;
  }
  h2 {
    font-size: 1.5em;
    line-height: 3vh;
  }
  .animated-words {
    position: relative;
    font-size: 1.2em;
    font-family: "Lexend";
    letter-spacing: 0.09094em;
    color: white;
    font-style: normal;
    font-weight: 700;
    text-align: left;
  }

  .Text_2_cl {
    margin-top: 0 !important;
  }

  /* .Text_2_cl h1 {
    text-align: center;
    font-style: normal;
    font-family: "Lexend";
    font-size: 15vw;
    font-weight: 400;
    line-height: normal;
    background: linear-gradient(90deg, #cbccff 31.68%, #9296f0 94.68%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  } */
  .Text_2_cl p {
    font-size: 1em;
  }

  /* .button_row {
    font-size: 4vw;
    margin-top: 5%;
    padding: 1rem 3rem;
  } */

  .container-fluid {
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Ensures proper spacing between elements */
    height: 100vh; /* Ensure full viewport height usage */
  }

  .Text_2_cl h1 {
    text-align: center;
    font-style: normal;
    font-family: "Lexend";
    font-size: 3em;
    font-weight: 400;
    line-height: normal;
    background: linear-gradient(90deg, #cbccff 31.68%, #9296f0 94.68%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }

  .Text_2 {
    margin-top: auto; /* Pushes it to the bottom */
    margin-bottom: 21vh; /* Adds some space between Text_2 and the button */
    text-align: center;
  }

  .button_row {
    position: absolute;
    margin-top: auto; /* Automatically positions it at the bottom of its container */
    /* margin-bottom: 5%; Adds spacing between the button and the footer */
    /* padding: 1rem 3rem; */
    text-align: center;
  }

  .button {
    font-size: 1em;
  }

  footer {
    width: 100%;
    position: absolute;
    bottom: 0;
    color: #fff;
    padding: 0;
    font-size: 1rem;
    line-height: 1vh;
  }

  .back-video {
    height: 100vh;
    /* margin: auto;
    width: 150vw;
    position: absolute;
    top: 0;
    bottom: 0;
    height: 150vh;
    z-index: -1;
    object-fit: cover; */
  }
}

@media screen and (max-width: 991px) and (min-width: 769px) {
  .Text_1 {
    margin-top: 2vh !important;
    margin-left: 0.2% !important;
  }

  .Text_1_cl {
    margin-top: 3vh !important;
  }
  h2 {
    font-size: 2em;
    line-height: 3vh;
  }
  .animated-words {
    position: relative;
    font-size: 1.4em;
    font-family: "Lexend";
    letter-spacing: 0.09094em;
    color: white;
    font-style: normal;
    font-weight: 700;
    text-align: left;
  }

  .Text_2_cl {
    margin-top: 0 !important;
  }

  .Text_2_cl p {
    font-size: 1.2em;
  }

  /* .button_row {
    font-size: 4vw;
    margin-top: 5%;
    padding: 1rem 3rem;
  } */

  .container-fluid {
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Ensures proper spacing between elements */
    height: 100vh; /* Ensure full viewport height usage */
  }

  .Text_2_cl h1 {
    text-align: center;
    font-style: normal;
    font-family: "Lexend";
    font-size: 4.2em;
    font-weight: 400;
    line-height: normal;
    background: linear-gradient(90deg, #cbccff 31.68%, #9296f0 94.68%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }

  .Text_2 {
    margin-top: auto; /* Pushes it to the bottom */
    margin-bottom: 21vh; /* Adds some space between Text_2 and the button */
    text-align: center;
  }

  .button_row {
    position: absolute;
    margin-top: auto; /* Automatically positions it at the bottom of its container */
    /* margin-bottom: 5%; Adds spacing between the button and the footer */
    /* padding: 1rem 3rem; */
    text-align: center;
  }

  .button {
    font-size: 1.2em;
  }

  footer {
    width: 100%;
    position: absolute;
    bottom: 0;
    color: #fff;
    padding: 0;
    font-size: 1rem;
    line-height: 1vh;
  }

  .back-video {
    height: 100vh;
    /* margin: auto;
    width: 150vw;
    position: absolute;
    top: 0;
    bottom: 0;
    height: 150vh;
    z-index: -1;
    object-fit: cover; */
  }
}
