@font-face {
  font-family: 'CoreRhino';
  src: url('../font/CoreRhino65Bold.otf') format('opentype');
  font-weight: 700; /* Bold */
  font-style: normal;
}

@font-face {
  font-family: 'CoreRhino';
  src: url('../font/CoreRhino45Regular.otf') format('opentype');
  font-weight: 400; /* Regular */
  font-style: normal;
}



* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #001F47;
  font-family: korolev, sans-serif;
}



.logo {
  width: 10rem;
}

.button {
  padding: 0.5rem 1rem;
  background-color: #2CF6A5;
  color: #001F47;
  border: none;
  font-family: korolev, sans-serif;
  font-weight: 800; /* 800 is the font-weight for ExtraBold */
  border-radius: 99rem;
  font-size: 1rem;
  cursor: pointer;
}

/* Hero Section */
.hero-section {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 95svh; /* Adjust the height as needed */
  display: flex;
  justify-content: center;
  align-items: top;
}

.hero-section video {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: 100%;
  z-index: 1;
}

.hero-section::before {
  content: ''; /* Necessary for pseudo-elements */
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.2); /* Adjust the alpha value (0.5) to control the darkness */
  z-index: 1; /* Ensure it's above the video but below the content */
}

/* Hero Content */
.hero-content {
  position: absolute;
  top: 10%; /* Adjust as needed */
  width: 100%;
  text-align: center;
  z-index: 2; /* Ensure it's above the video */
}

/* H1 i hero-sektionen (CoreRhino65 - Bold) */
.hero-section h1 {
  font-family: 'CoreRhino', sans-serif;
  font-weight: 700; /* Bruger CoreRhino65 */
  font-size: 6.5rem;
  color: #fff;
  text-align: center;
  margin-bottom: 0.5rem;
  line-height: 7.5rem;
  margin-top: 0px !important;
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3); /* Subtil skygge */
}

/* H2 i hero-sektionen (CoreRhino45 - Regular) */
.hero-section h2 {
  font-family: 'CoreRhino', sans-serif;
  font-weight: 700; /* Bruger CoreRhino45 */
  font-size: 3rem;
  color: #fff;
  text-align: center;
  line-height: 4rem;
 text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3); /* Subtil skygge */
}



.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 5rem;
  height: 5rem;
  background-color: #2CF5A4;
  background-image: url(../assets/icon-play.svg);
  background-size: 40%;
  background-repeat: no-repeat;
  background-position: 55% center;
  cursor: pointer;
  border-radius: 50%;
  z-index: 3; /* Ensure the play button is on top */
  
  /* Pulse Animation */
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0% {
      transform: translate(-50%, -50%) scale(1); /* Normal size */
  }
  30% {
      transform: translate(-50%, -50%) scale(1.15); /* Larger size */
  }
  50% {
      transform: translate(-50%, -50%) scale(1.05); /* Slightly smaller */
  }
  70% {
      transform: translate(-50%, -50%) scale(1.1); /* Slightly larger again */
  }
  100% {
      transform: translate(-50%, -50%) scale(1); /* Back to normal */
  }
}

.subheading-content {
  position: absolute;
  top: 60%; /* Position below the play button */
  width: 100%;
  text-align: center;
  z-index: 2; /* Ensure it's above the video */
}



/* Video Overlay for YouTube */
.video-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
  z-index: 3;
}

/* Scroll Icon */
.scroll-icon_wrapper {
  position: relative;
}

.scroll-down-icon {
  position: absolute;
  top: -2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background-color: #1657F6;
  background-image: url(../assets/chevron.svg);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 50%;
  cursor: pointer;
  z-index: 5;
}

/* Hide mobile video by default and only show it on smaller screens */
.desktop-video {
  display: block;
  object-fit: cover;
}

.mobile-video {
  display: none;
}

/* Desktop YouTube Video */
@media (min-width: 769px) {
  #youtube-video {
      height: 450px;
      width: 900px;
  }
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .desktop-video {
      display: none;
  }

  .mobile-video {
      display: block;
      width: 100% !important;
      height: auto !important; /* Maintain the video aspect ratio */
  }

  .hero-section {
      height: 87svh;
  }

  .hero-content {
      top: 10%; /* Adjust as needed */
  }

  .hero-section h1 {
      font-size: 2.5rem;
      line-height: 3.5rem;
      margin-top: 0; /* Keep this consistent */
  }

  .play-button {
      top: 45%; /* Slightly adjust for mobile layout */
      width: 4rem;
      height: 4rem;
      background-size: 35%; /* Adjust button size */
  }

  .subheading-content {
      top: 70%; /* Position the subheading accordingly for mobile */
  }

  .hero-section h2 {
      font-size: 1.5rem; /* Smaller subheading font */
      line-height: 2rem;
  }
}

