/* Google Fonts */
@import url("https://fonts.googleapis.com/css2?family=Anton&display=swap");
@import url('https://fonts.googleapis.com/css2?family=Archivo+Black&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Ubuntu:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&display=swap');


/* Reset & Global styles */
html,
body {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
  font-family: "Ubuntu", sans-serif;
  background-color: #e2dede;
  scroll-snap-type: y proximity;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

*::-webkit-scrollbar {
  display: none;
}


/* Header styles */
header {
  font-size: 0;
  /* TO REMOVE EXCESS FROM 'a' TAG */
  overflow: hidden;
  position: absolute;
  margin: 0 10px;
  padding: 10px 0;
  top: 10px;
  left: 22px;
  right: 22px;
}

header img {
  width: 175px;
}


/* Section styles */
.section {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  font-size: 30px;
  scroll-snap-align: start;
  position: relative;
}

#animation {
  position: absolute;
  margin: auto;
  width: 100vw;
  height: 38vh;
  top: 0;
  bottom: 0;
  filter: url(#threshold) blur(0.6px);
}

#text1,
#text2 {
  position: absolute;
  width: 100%;
  display: inline-block;
  font-size: 180pt;
  font-family: "Archivo Black", sans-serif;
  /* Changes Coming Soon Animation font */
  font-weight: bold;
  font-style: normal;
  text-align: center;
  user-select: none;
}


/* Scroll arrow styles */
#scroll-arrow {
  position: absolute;
  left: 50%;
  top: 25px;
  display: block;
  text-align: center;
  font-size: 20px;
  z-index: 100;
  text-decoration: none;
  text-shadow: 0;
  width: 43px;
  height: 43px;
  border-bottom: 4px solid #c20808;
  border-right: 4px solid #c20808;
  z-index: 9;

  transform: translate(-50%, 0%) rotate(45deg);
  animation: fade_move_down 2s ease-in-out infinite;
  transition: transform 0.3s ease;
  /* Added transition for smooth rotation */
  position: sticky;
}

#scroll-arrow.flipped {
  transform: translate(-50%, 0%) rotate(225deg);
}

@keyframes fade_move_down {

  0%,
  100% {
    bottom: 30px;
  }

  50% {
    bottom: 20px;
  }
}


/* Section 2 Styles */
#section2 {
  position: relative;
  width: 100%;
}

#section2::after {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  content: '';
  background-image: linear-gradient(rgba(255, 0, 0, 0), black);
}

#bg-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  z-index: 0;
}

.email-box {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  max-width: 75%;
  margin: 150px;
  z-index: 1;
  padding: 80px 30px;
  text-align: center;

  /* Glassmorphism card effect */
  backdrop-filter: blur(18px) saturate(200%);
  -webkit-backdrop-filter: blur(18px) saturate(200%);
  background-color: rgba(255, 255, 255, 0.4);
  border-radius: 12px;
  border: 1px solid rgba(209, 213, 219, 0.3);
  box-shadow: 0 8px 32px 0 #0000006c;
}

.email-box h1 {
  max-width: 75%;
  width: 70%;
  margin: auto;
  font-family: "Archivo Black", sans-serif;
  font-size: 60px;
  color: #fff;
}

.email-box p {
  font-size: 15px;
  max-width: 70%;
  width: 65%;
  color: rgba(255, 255, 255, 0.393);
  margin-bottom: 90px;
}

.button-container {
  text-align: center;
}


/* Form Styles */
.form {
  display: flex;
  flex-direction: row;
  justify-content: center;
}

.input-container {
  display: flex;
  align-items: center;
  position: relative;
}

.form input[type="email"] {
  width: 400px;
  height: 20px;
  padding: 11px;
  font-size: 15px;
  z-index: 0;

  /* Glassmorphism effect */
  background: rgba(215, 215, 215, 0.25);
  backdrop-filter: blur(0.05px);
  -webkit-backdrop-filter: blur(0.05px);
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.form input[type="email"]:focus {
  outline: none;
}

.form button[type="submit"] {
  margin-left: -109px;
  /* Adjust the negative margin to move the button over the input */
  padding: 9px 14px;
  background-color: #000;
  color: #fff;
  border: none;
  border-radius: 50px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s;
  z-index: 0;
}

.form button[type="submit"]:hover {
  background-color: #910606;
}


/* Footer styles */
footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: "Anton", sans-serif;
  font-weight: 400;
  font-size: 30px;
  position: fixed;
  bottom: 10px;
  left: 22px;
  right: 22px;
}

footer a {
  text-decoration: none;
  color: #c20808;
  margin: 0 10px;
  transition: color 0.3s;
}

footer a:hover {
  color: #910606;
}


/* Media Styles */
@media(max-width: 480px) {
  /* Styles for screens up to 480px wide */
  #bg-video {
    object-fit: cover;
    height: 100%;
  }

  .section {
    overflow: hidden;
    position: relative;
  }

  /* Hide default video controls */
  #bg-video::-webkit-media-controls,
  #bg-video::-webkit-media-controls-enclosure,
  #bg-video::-webkit-media-controls-panel,
  #bg-video::-webkit-media-text-track-container,
  #bg-video::-webkit-media-text-track-display {
    display: none !important;
  }

  #animation {
    position: absolute;
    left: 50%;
    top: 60%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 500px;
    height: auto;
    filter: url(#threshold) blur(0.6px);
  }

  #text1,
  #text2 {
    position: absolute;
    width: 100%;
    display: inline-block;
    font-size: 17vw;
    font-family: "Archivo Black", sans-serif;
    font-weight: bold;
    font-style: normal;
    text-align: center;
    user-select: none;
  }

  .email-box {
    width: 70%;
    height: auto;
    padding: 60px 40px;
    margin: auto;
  }

  .email-box h1 {
    width: 100%;
    max-width: 300px;
    font-size: 45px;
    margin: 0;
    user-select: none;
  }

  .email-box p {
    font-size: 17px;
    max-width: 275px;
    width: 100%;
    color: rgba(255, 255, 255, 0.393);
    margin-bottom: 60px;
  }

  .form input[type="email"] {
    width: 70vw;
    height: 20px;
  }

  .form button[type="submit"] {
    text-indent: -9999px; /* Hide text content */
    overflow: hidden;
    white-space: nowrap;
    background-image: url('media/send.png');
    background-size: cover;
    width: 10px;
    height: 10px;
    border-radius: 50px;
    margin-left: -41px;
    padding: 14px 14px;
  }

  #scroll-arrow {
    width: 38px;
    height: 38px;
    border-bottom: 5px solid #c20808;
    border-right: 5px solid #c20808;
  }

  footer a {
    margin: 0;
  }
}