/* Reset/defaults */

/* Make the page take up the full height */
html,
body {
  height: 100%;
}

/* Background */
body {
  background-image: url("../images/index-img-final.webp");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  font-family: "Roboto Condensed", sans-serif;
  color: var(--Text-Color);
  overflow: hidden;
}

/* Full-screen hero wrapper */
.hero {
  height: 100vh;
  display: flex;
  align-items: center; /* vertical center */
  /* keep content on the left */
}

/* Content wrapper */
.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-left: 20%;
  margin-bottom: -5%;
  position: relative;
  left: 13%;
  top: 1%;
}

/* =============== PULSATING BUTTON =============== */

.pulse-button {
  position: relative;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.15) 0%,
    rgba(255, 255, 255, 0.03) 60%,
    transparent 100%
  );
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.15), 0 0 30px rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  overflow: visible;
}

/* Faint label in the middle */
.pulse-label {
  font-size: 0.8rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: rgba(241, 239, 236, 0.7);
  text-indent: 0.35em;
}

/* Expanding rings */
.pulse-button::before,
.pulse-button::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.5);
  opacity: 0;
  transform: scale(1);
  pointer-events: none;
}

.pulse-button::before {
  animation: pulse-ring 2.4s ease-out infinite;
}

.pulse-button::after {
  animation: pulse-ring 2.4s ease-out infinite;
  animation-delay: 1.2s; /* offset for staggered pulses */
}

/* Hover: slightly stronger base circle */
.pulse-button:hover {
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.25) 0%,
    rgba(255, 255, 255, 0.06) 60%,
    transparent 100%
  );
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.25), 0 0 40px rgba(0, 0, 0, 0.7);
}

/* Pulsing outward, fading away */
@keyframes pulse-ring {
  0% {
    transform: scale(1);
    opacity: 0.45;
  }
  70% {
    transform: scale(2.3);
    opacity: 0;
  }
  100% {
    transform: scale(2.5);
    opacity: 0;
  }
}

/* Animate.css timing */
.animate__animated.animate__fadeIn {
  --animate-duration: 3s;
}

/* =============== MOBILE PORTRAIT =============== */

@media screen and (max-width: 768px) {
  html {
    overflow: hidden;
  }

  .hero {
    height: 100vh;
    width: 100vw;
    padding-left: 8vw;

    overflow: hidden;
  }

  .hero .hero-content {
    position: fixed;
    top: 45%;
    left: 30%;
    margin-left: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: start;
    gap: 1.5rem;
    transform: translateX(-5%);
  }

  .pulse-button {
    width: 80px;
    height: 80px;
  }

  .pulse-label {
    font-size: 0.7rem;
  }

  body {
    background-size: cover;
    overflow: hidden;
    background-attachment: fixed;

    margin: 0;
    padding: 0;
    height: 100vh;
  }
}

/* =============== MOBILE LANDSCAPE =============== */

@media screen and (max-width: 900px) and (orientation: landscape) {
  .hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-left: 6vw;
  }

  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 1rem;
    margin-left: 0;
    margin-bottom: 0;
  }

  .pulse-button {
    width: 80px;
    height: 80px;
  }

  body {
    background-size: cover;
    background-position: center;
  }
}

/* View transitions */
@view-transition {
  navigation: auto;
}

::view-transition-group(*) {
  animation-duration: 1s;
}
