/* Font import */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap");

/* General reset */
* {
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Background & fade-in */
html {
  height: 100%;
  width: 100%;
  overflow: hidden;
}

body {
  height: 100%;
  width: 100%;
  background: linear-gradient(to bottom,
      rgba(23, 23, 23, 1) 0%,
      rgba(13, 13, 13, 1) 99%);
  background-size: cover;
  background-attachment: fixed;
  margin: 0;
  padding: 0;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: black;
  z-index: 9999;
  pointer-events: none;
  animation: fadeOut 1s ease-out forwards;
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
  }
}

/* Particle containers */
#stars,
#shapes,
#bubbles,
#snow,
#particles-js {
  position: fixed;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 1;
  transition: opacity 0.6s ease;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: max-content;
  padding: 20px;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  backdrop-filter: blur(2.5px);
  border-bottom: 2px solid rgba(239, 239, 136, 0.5);
  z-index: 100;
}

.header::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
      transparent,
      rgba(255, 255, 255, 0.4),
      transparent);
  transition: 0.75s;
}

.header:hover::before {
  left: 100%;
}

/* Brand logo and name */
.brand-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-small {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.brand {
  color: #fff;
  background: linear-gradient(90deg,
      rgba(180, 132, 65, 1) 0%,
      rgba(239, 239, 136, 1) 50%,
      rgba(186, 138, 79, 1) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 40px;
  font-weight: 500;
  cursor: default;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

/* Nav buttons */
.navbar {
  display: flex;
  gap: 20px;
  padding-right: 10px;
  align-items: center;
  white-space: nowrap;
  overflow: hidden;
}

.nav-button {
  color: #efef88;
  font-size: 25px;
  background: transparent;
  border: none;
  margin-left: 35px;
  transition: all 0.5s ease;
  border-radius: 35px;
  cursor: pointer;
  text-decoration: none;
}

.nav-button:hover {
  color: #000;
  font-size: 30px;
  background: linear-gradient(90deg,
      rgba(180, 132, 65, 1) 0%,
      rgba(239, 239, 136, 1) 50%,
      rgba(186, 138, 79, 1) 100%);
  border-radius: 25px;
  padding: 1%;
}

/* Hamburger / Menu Toggle Button */
.menu-toggle {
  position: absolute;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  width: 32px;
  /* smaller width */
  height: 24px;
  /* smaller height */
  cursor: pointer;
  display: none;
  z-index: 300;
}

.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  content: '';
  position: absolute;
  width: 32px;
  /* match button width */
  height: 4px;
  /* thinner bars */
  border-radius: 2px;
  background: linear-gradient(90deg,
      rgba(180, 132, 65, 1) 0%,
      rgba(239, 239, 136, 1) 50%,
      rgba(186, 138, 79, 1) 100%);
  margin-top: 10px;
  /* center middle bar */
  transform: rotate(180deg);
  transition: 0.5s ease-in-out;
}

.menu-toggle span::before {
  margin-top: -8px;
  /* top bar */
}

.menu-toggle span::after {
  margin-top: 8px;
  /* bottom bar */
}

.menu-toggle.active span {
  background: transparent;
}

.menu-toggle.active span::before {
  margin-top: 0;
  transform: rotate(45deg);
}

.menu-toggle.active span::after {
  margin-top: 0;
  transform: rotate(-45deg);
}

/* Mobile display for hamburger */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .navbar {
    position: fixed;
    top: 0;
    right: -35vw;
    width: 35vw;
    height: 100vh;
    flex-direction: column;
    gap: 20px;
    background-color: rgba(0, 0, 0, 0.95);
    padding: 50px 20px;
    align-items: flex-start;
    transition: right 0.4s ease;
    display: flex;
    z-index: 200;
    /* below toggle */
  }

  .navbar.active {
    right: 0;
  }

  .nav-button {
    margin: 10px 0;
    font-size: 20px;
  }
}

/* Video Container Overlay */
#video-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 200;
}

#video-wrapper {
  position: relative;
  width: 75%;
  height: 75%;
  background: #000;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(239, 239, 136, 0.3);
  overflow: hidden;
}

#video-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 12px;
}

#close-video-x {
  position: absolute;
  top: 10px;
  right: 15px;
  color: #efef88;
  font-size: 32px;
  font-weight: bold;
  cursor: pointer;
  z-index: 250;
  transition: color 0.3s ease;
}

#close-video-x:hover {
  color: #fff;
}