body {
      margin: 0;
      padding: 0;
      opacity: 0;
      overflow-x: hidden;
      animation: pageFadeIn 3s ease forwards;
      font-family: Arial, sans-serif;
    }
    @keyframes pageFadeIn {
      from {
        opacity: 0;
        transform: translateY(1.5rem);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    /* --- NAVBAR --- */
    nav {
      background: #000;
      color: white;
      display: flex;
      align-items: center;
      justify-content: center;
      position: sticky;
      top: 0;
      z-index: 1000;
      height: 5.3rem;
      border-bottom: 0.9rem solid #fdfdfd;
      border-image: linear-gradient(to right, white, black) 1;
      padding: 0 1rem;
    }

    .logo {
      position: absolute;
      left: 50%;
      transform: translateX(-50%);
      font-size: 1.5rem;
      font-weight: bold;
      cursor: default;
    }

    /* Dropdown */
    .dropdown {
      position: absolute;
      left: 1.5rem;
    }

    .dropbtn {
      background: none;
      border: none;
      color: white;
      font-size: 1.125rem;
      font-style: italic;
      font-weight: bold;
      cursor: pointer;
      display: flex;
      align-items: center;
      gap: 0.3rem;
    }
    .dropbtn:focus {
      outline: none;
    }

    .arrow {
      border: solid white;
      border-width: 0 0.1875rem 0.1875rem 0;
      display: inline-block;
      padding: 0.25rem;
      transform: rotate(45deg);
      margin-left: 0.2rem;
    }

    .dropdown-content {
      display: none;
      position: absolute;
      top: 100%;
      left: 0;
      background-color: #444;
      min-width: 10rem;
      box-shadow: 0 0.5625rem 1rem rgba(0, 0, 0, 0.2);
      z-index: 1000;
      border-radius: 0.25rem;
      margin-top: 0.25rem;
    }
    .dropdown-content a {
      color: white;
      padding: 0.875rem 1.25rem;
      text-decoration: none;
      display: block;
    }
    .dropdown-content a:hover {
      background-color: #555;
    }
    .show {
      display: block;
    }

    /* Hamburger menu */
    .hamburger {
      display: none;
      flex-direction: column;
      justify-content: space-around;
      width: 30px;
      height: 25px;
      cursor: pointer;
      z-index: 1100;
      position: absolute;
      left: 1.5rem;
      top: 1.5rem;
      background: none;
      border: none;
      padding: 0;
    }
    .hamburger div {
      width: 100%;
      height: 3px;
      background-color: white;
      border-radius: 2px;
      transition: all 0.3s ease;
    }
    .hamburger.active div:nth-child(1) {
      transform: rotate(45deg) translate(5px, 5px);
    }
    .hamburger.active div:nth-child(2) {
      opacity: 0;
    }
    .hamburger.active div:nth-child(3) {
      transform: rotate(-45deg) translate(5px, -5px);
    }

    /* Mobile menu (hidden by default) */
    .mobile-menu {
      display: none;
      position: fixed;
      top: 5.3rem; /* navbar height */
      left: 0;
      right: 0;
      background-color: #222;
      flex-direction: column;
      z-index: 1050;
      padding: 1rem 0;
    }
    .mobile-menu a {
      color: white;
      padding: 1rem 2rem;
      text-decoration: none;
      font-size: 1.1rem;
      border-bottom: 1px solid #444;
      display: block;
    }
    .mobile-menu a:hover {
      background-color: #555;
    }
    .mobile-menu.show {
      display: flex;
    }

main {
  background-color: #000; /* helsvart bakgrunn */
  padding: 100px 20px;
  text-align: center;
  color: #fff;
  animation: fadeIn 1s ease-in;
}

h1 {
  font-size: 3rem;
  margin-bottom: 30px;
  color: #fff;
  letter-spacing: 2px;
  text-transform: uppercase;
  animation: slideDown 0.8s ease-out;
  font-weight: bold;
  cursor: default;
}

p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #f9f7f7;
  margin-bottom: 20px;
  animation: fadeIn 1.5s ease;
  font-family: 'Times New Roman', Times, serif;
}

form {
  margin-top: 30px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

input[type="email"] {
  padding: 12px;
  font-size: 1rem;
  width: 300px;
  max-width: 80%;
  border: 1px solid #444;
  border-radius: 30px;
  background-color: #111;
  color: #fff;
  outline: none;
  transition: box-shadow 0.3s ease, border 0.3s ease;
}

input[type="email"]::placeholder {
  color: #888;
}

input[type="email"]:focus {
  border: 1px solid #fff;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.btn {
  padding: 12px 25px;
  font-size: 1rem;
  background-color: #fff;
  color: #000;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  font-weight: bold;
  text-transform: uppercase;
  transition: all 0.3s ease;
}

.btn:hover {
  background-color: #ccc;
  color: #000;
}

/* --- MEDIA QUERIES --- */
@media (max-width: 768px) {
  nav {
    height: 4.5rem;
    border-bottom-width: 0.5rem;
    justify-content: flex-start;
    padding: 0 1rem;
  }

  .hamburger {
    display: flex;
  }

  .dropdown {
    display: none; /* SKJUL desktop-dropdown på mobil */
  }

  /* mobilmeny */
  .mobile-menu {
    display: none;
    position: fixed;
    top: 4.5rem;
    left: 0;
    right: 0;
    background-color: #333;
    flex-direction: column;
    z-index: 1050;
    border-radius: 0;
    padding: 0;
  }
  .mobile-menu.show {
    display: flex;
  }
  .mobile-menu a {
    padding: 1rem;
    font-size: 1.1rem;
    border-bottom: 1px solid #444;
    color: white;
    text-align: left;
    background-color: #333;
  }
  .mobile-menu a:hover {
    background-color: #555;
  }

  .dropbtn {
    font-size: 0;
    padding: 0.5rem;
    width: 2.5rem;
    justify-content: center;
  }

  .arrow {
    margin: 0;
    transform: rotate(45deg);
    border-width: 0 3px 3px 0;
    padding: 5px;
  }

 .logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  width: 100%;
  font-size: 1.2rem;
}

  .Header {
    padding: 4rem 1rem;
  }

  .animated-heading {
    font-size: 2em;
    letter-spacing: 10px;
  }

  .Header p {
    font-size: 1.2rem;
    padding-bottom: 2rem;
  }
}

/* På desktop skjul mobilmeny */
@media (min-width: 769px) {
  .mobile-menu {
    display: none !important;
  }
}

footer {
  background-color: #000;
  border-top: 1.25rem solid #fdfdfd;
  border-image: linear-gradient(to right, #fff, #000) 1;
}

.footerContainer {
  width: 100%;
  padding: 4.375rem 1.875rem 1.25rem;
}

.socialIcons {
  display: flex;
  justify-content: center;
}

.socialIcons a {
  text-decoration: none;
  padding: 0.625rem;
  background-color: #000;
  margin: 0.9375rem;
  border-radius: 50%;
}

.socialIcons a i {
  font-size: 2em;
  color: #fff;
  opacity: 0.9;
}

.socialIcons a:hover {
  background-color: #111;
  transition: 0.5s;
}

.socialIcons a:hover i {
  color: white;
  transition: 0.5s;
}

.footerNav {
  margin: 1.875rem 0;
}

.footerNav ul {
  display: flex;
  justify-content: center;
  align-items: center;
  list-style: none;
  flex-wrap: wrap;
  padding: 0;
  margin: 0 auto;
  text-align: center;
}
.footerNav ul li {
  margin: 0.5rem 1rem;
}

.footerNav ul li a {
  color: white;
  margin: 1.25rem;
  text-decoration: none;
  font-size: 1.3rem;
  opacity: 0.7;
  transition: 0.5s;
}

.footerNav ul li a:hover {
  opacity: 1;
}

.footerBottom {
  background-color: #1a1a1a;
  color: #b0b0b0;
  padding: 1.25rem;
  text-align: center;
}

.footerBottom p {
  color: white;
}
@media (max-width: 768px) {
  .footerContainer {
    padding: 2rem 1rem;
  }

  .footerNav ul {
    flex-direction: column;
  }
}
