/* The smallest content width - you can change it the way you like */
body,
section,
.fullscreen-bg,
.header,
.nav,
.popup,
.inner {
  min-width: 320px;
}

.inner {
  display: flex;
  align-items: center;
}

/* Navigation text overlap hidden on mobile (some old mobile browsers doesn't support "overflow: hidden" property, so the overlapping it happening. We stopped to support this feature about a year ago) */
.navigation li a .link-hover {
  display: none;
}

@media only screen and (min-width: 768px) {
  .navigation li a .link-hover {
    display: block;
  }
}

/* New menu link animation */
.nav.animate-in .navigation li:nth-of-type(5) {
  -webkit-transition: opacity 0.2s 1.5s, -webkit-transform 0.2s 1.5s cubic-bezier(0.06, 0.71, 0.71, 1.25);
  transition: opacity 0.2s 1.5s, -webkit-transform 0.2s 1.5s cubic-bezier(0.06, 0.71, 0.71, 1.25);
  -o-transition: opacity 0.2s 1.5s, transform 0.2s 1.5s cubic-bezier(0.06, 0.71, 0.71, 1.25);
  -moz-transition: opacity 0.2s 1.5s, transform 0.2s 1.5s cubic-bezier(0.06, 0.71, 0.71, 1.25), -moz-transform 0.2s 1.5s cubic-bezier(0.06, 0.71, 0.71, 1.25);
  transition: opacity 0.2s 1.5s, transform 0.2s 1.5s cubic-bezier(0.06, 0.71, 0.71, 1.25);
  transition: opacity 0.2s 1.5s, transform 0.2s 1.5s cubic-bezier(0.06, 0.71, 0.71, 1.25), -webkit-transform 0.2s 1.5s cubic-bezier(0.06, 0.71, 0.71, 1.25), -moz-transform 0.2s 1.5s cubic-bezier(0.06, 0.71, 0.71, 1.25);
}

@media (min-width: 767px) {
  .logo {
    display: flex;
    align-items: center;
  }
}

@media (max-width: 767px) {
  .navigation li::after {
    content: "";
  }

  .navigation li {
    display: block;
  }

  .logo a {
    width: auto;
    display: block;
    position: relative;
    left: 0;
    top: 50%;
    bottom: auto;
    -webkit-transform: translateY(-50%);
    -moz-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
  }
}

.logo img {
  width: 17%;
}

@media (max-width: 355px){
  .logo{
    left: 1.3rem;
  }
}

/* Back to Top Button Styles */
.back-to-top {
  position: fixed;
  bottom: 60px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: rgba(255, 255, 255, 0.9);
  color: #0c0c0c;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 9999;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.back-to-top:hover {
  background-color: #fff;
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

@media (max-width: 767px) {
  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    font-size: 18px;
  }
}

/* Responsive utility class - hide on mobile, show on desktop */
.desktop-only {
  display: none;
}

@media only screen and (min-width: 1200px) {
  .desktop-only {
    display: inline;
  }
}

/* Remove fade-in animations on page load */
.main.animate-in:after {
  animation: none !important;
}

.main.animate-in .main__media,
.main.animate-in .footer-mobile,
.main.animate-in .intro__background,
.main.animate-in .fullscreen-bg {
  animation: none !important;
  opacity: 1 !important;
}

.main.animate-in .headline__subtitle,
.main.animate-in .headline__title,
.main.animate-in .headline__btnholder,
.main.animate-in .media__countdown {
  opacity: 1 !important;
  transform: translateY(0) !important;
  transition: none !important;
}


h1 {
  margin-bottom: 2.3rem;
}

/* Fix mobile scrolling issues on iPhone/Safari */
@media only screen and (max-width: 1199px) {
  /* Ensure body can scroll properly */
  html, body {
    overflow-y: auto !important;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    height: auto;
    min-height: 100%;
  }
  
  /* Fix fullscreen-wrapper to allow content below to scroll */
  .main.full .fullscreen-wrapper {
    min-height: 100vh;
    height: auto;
  }
  
  /* Fix main content height constraints */
  .main.full .main__content {
    min-height: 100vh;
    height: auto;
  }
  
  /* Prevent fullheight-mobile from blocking scroll */
  .fullheight-mobile {
    height: auto !important;
    min-height: 100vh;
  }
  
  /* Fix header height on mobile */
  .header.full .fullheight-mobile {
    height: auto !important;
    min-height: auto !important;
  }
  
  /* Ensure sections after hero are visible and scrollable */
  .inner {
    position: relative !important;
    min-height: auto;
  }

  .hide-on-mobile {
    display: none;
  }
}

@media only screen and (min-width: 1200px) {
  .inner {
    height: auto;
    padding: 75px 0;
  }
}

@media only screen and (min-width: 1400px) {
  p {
    font-size: 2rem;
  }
}