@import url("./assets/fonts/fonts.css");

*,
*:after,
*:before {
  margin: 0;
  padding: 0;
  border: 0;
  box-sizing: border-box;
  font-size: 10px;
}

:focus,
:active {
  outline: none;
}



/* Medium DPI screens (approximately 125% scaling) */
@media screen and (min-resolution: 120dpi) and (hover: hover) and (orientation: landscape) {
    * {
        font-size: 8px; /* Decrease base font size */
    }
}

/* High DPI screens (approximately 150% scaling) */
@media screen and (min-resolution: 144dpi) and (hover: hover) and (orientation: landscape) {
    * {
        font-size: 6.67px; /* Further decrease base font size */
    }
}

/* Very High DPI screens (approximately 175% scaling) */
@media screen and (min-resolution: 168dpi) and (hover: hover) and (orientation: landscape) {
    * {
        font-size: 5.71px; /* Further decrease base font size */
    }
}

/* Ultra High DPI screens (approximately 200% scaling) */
@media screen and (min-resolution: 192dpi) and (hover: hover) and (orientation: landscape) {
    * {
        font-size: 5px; /* Further decrease base font size */
    }
}


html,
body {
  height: 100%;
  scroll-behavior: smooth;
}

aside,
nav,
footer,
header,
section {
  display: block;
}

a {
  text-decoration: none;
  display: block;
  transition: 1s ease-in-out;
}

a:hover {
  color: #0577a8;
}

ul li {
  list-style: none;
}

img {
  vertical-align: top;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 400;
  color: #ffffff;
  font-family: "Nekst", sans-serif;
}

body {
  background-color: #08080c;

  font-family: "Nekst", sans-serif;
  font-size: 2.4rem;
  line-height: 1.5;
  font-weight: 400;
  color: #ffffff;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.background {
    position: fixed; /* Change this from 'relative' to 'fixed' */
    top: 0; /* Ensure it's always at the top */
    left: 0; /* Align to the left */
    width: 100%; /* Full width */
    height: 100vh; /* Full viewport height */
    overflow: hidden; /* Prevents any scrolling caused by overflow */
    z-index: -1; /* Ensures it stays behind other content */
}

.background__bottom {
	position: fixed;
	z-index: -2;
	bottom: 0;
    min-height: 40vh;
  left: 50%;
  transform: translateX(-50%);
  height: auto;
  max-width: 100vw;
}


.background__top {
    position: absolute;
    will-change: transform;
    transform: translateZ(0);
    top: 0;
	z-index: -3;
}


@keyframes moveBackground {
  0%, 100% { transform: translate(0, 0) scale(1.05); }
  25% { transform: translate(3%, -3%) scale(1.05); }
  50% { transform: translate(0%, -6%) scale(1.05); }
  75% { transform: translate(-3%, -3%) scale(1.05); }
}



.background__top {
  animation: moveBackground 60s linear infinite;
  position: relative;
  width: 100%; 
  height: auto;
  min-height: 100vh;
  backface-visibility: hidden; /* Encourage GPU acceleration */
  transform: translate3d(0,0,0); /* Encourage GPU acceleration */
}

.bg-noise {
  z-index: 1;
  position: fixed;
  width: 100vw;
  height: 100vh;
  background: url("./assets/images/bg-noise.webp");
  background-size: 300px 300px;
  animation: 500ms steps(10, end) 0s infinite alternate-reverse none running noise-animation;
  opacity: 0.175;
}

@keyframes noise-animation {
  0% { background-position: 0% 0%; }
  10% { background-position: -5% -5%; }
  20% { background-position: -10% 5%; }
  30% { background-position: 5% -10%; }
  40% { background-position: -5% 15%; }
  50% { background-position: -10% 5%; }
  60% { background-position: 5% 5%; }
  70% { background-position: 0% 10%; }
  80% { background-position: -5% -5%; }
  90% { background-position: 10% 5%; }
}

.container {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  max-width: 1920px;
  margin: 0 auto;
  padding: 0 3rem;

  min-height: 100%;
  overflow: hidden;
}

.header__logo {
  text-align: center;
}

.logo__image {
  margin: 4rem 0 0 0;
  width: 280px;
  max-width: 60vw;
}

.main {
  flex: 1 0 auto;
  max-width: 1200px;
  margin: 0 auto;
}

.main__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.content__title {
  text-transform: uppercase;
  font-weight: 800;
  font-size: 8rem;
  margin-bottom: 30px;
  line-height: 1.25;
  text-shadow: #0000007a 0 0 4rem;
  padding-top: 3rem;
}

.content__text {
  font-weight: 400;
  margin-bottom: 10px;
  font-size: 2.4rem;
  max-width:  90%;
  line-height: 1.4;
  text-shadow: #000000eb 0 0 2rem;
}

footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 0;
  text-align: center;
  padding: 6rem 0 1rem 0;
  text-align: center;
  width: 100vw;
  background: linear-gradient(0deg, rgba(2,14,26,1) 0%, rgba(2,14,26,0) 100%);
  bottom: 0;
  position: fixed;
  z-index: 99999;
}

.footer__text, .footer__link {
  font-size: 1.4rem;
  color: #777777;
}

.footer__link {
  color: #777777;
  display: inline-block;
}

@media only screen and (min-width: 680px) and (max-width: 1080px) {
  .background__top {
    min-width: 90vh;
  }
}

@media only screen and (max-width: 680px) {
  .container {
    padding: 0 2rem;
  }
  
  .background__bottom {
    position: fixed; /* Keeps the image fixed during scrolling */
    left: 50%; /* Start from the middle of the screen */
    transform: translateX(-50%); /* Shift it back by half its own width */
    bottom: 0; /* Adjust the vertical position as needed */
    height: 50vh;
    width: auto;
    max-width: unset;
  }

  .background__top {
    width: auto;
    height: auto;
    min-height: 70vh;
    left: 50%;
    transform: translateX(-50%);
    position: fixed;
    width: 250vh;
    
  }

  .background__top {
    animation: none;
  }
}

@media only screen and (max-width: 600px) {
  .container {
    padding: 0 1rem;
  }
}

@media only screen and (max-width: 480px) {
  .content__title {
    font-size: 4rem;
  }
  
  .content__text {
	  max-width: 100%;
  font-size: 1.6rem;
  padding: 0 1rem;
}

