/* Header Styles */
.main-header {
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.5) 0%,
    rgba(0, 0, 0, 0) 100%
  );
  transition: background 0.3s ease;
}

.main-header.scrolled {
  background: rgba(0, 0, 0, 0.9);
}

.nav-container {
  margin: 0 auto;
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo a {
  text-decoration: none;
  display: block;
}

.logo-img {
  height: 40px;
  width: auto;
  display: block;
  filter: drop-shadow(1px 1px 2px rgba(0, 0, 0, 0.3));
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  font-size: 1.25rem;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #ddd;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  padding: 10px;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background-color: white;
  transition: all 0.3s ease-in-out;
  box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.mobile-menu-content {
  display: none;
}

/* Tablet breakpoint */
@media (max-width: 1024px) {
  .nav-container {
    padding: 1.5rem 1.5rem;
  }

  .nav-links {
    gap: 1.5rem;
  }

  .nav-links a {
    font-size: 1.1rem;
  }
}

@media (max-width: 900px) {
  .nav-container {
    padding: 1.5rem 1rem;
  }

  .nav-links {
    gap: 1rem;
  }

  .nav-links a {
    font-size: 1rem;
  }
}

/* Mobile Navigation */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #000000;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 4rem 2rem 2rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }

  .nav-links.active {
    display: flex;
    opacity: 1;
    visibility: visible;
  }

  .nav-links li {
    width: 100%;
    text-align: left;
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }

  .nav-links.active li {
    transform: translateY(0);
    opacity: 1;
  }

  .nav-links li:nth-child(1) {
    transition-delay: 0.1s;
  }
  .nav-links li:nth-child(2) {
    transition-delay: 0.2s;
  }
  .nav-links li:nth-child(3) {
    transition-delay: 0.3s;
  }
  .nav-links li:nth-child(4) {
    transition-delay: 0.4s;
  }

  .nav-links a {
    font-family: "Integral CF", sans-serif;
    font-size: 1.6rem;
    text-transform: uppercase;
    display: block;
    padding: 4px 0;
  }

  .mobile-menu-info {
    color: white;
    font-family: "Albert Sans", sans-serif;
    font-size: 1.25rem;
    line-height: 1.5;
    margin: 1.5rem 0;
    text-align: center;
  }

  .mobile-menu-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
  }

  .mobile-menu-button {
    font-family: "Albert Sans", sans-serif;
    font-size: 1rem;
    text-transform: uppercase;
    color: white;
    background: transparent;
    position: relative;
    /* border: 2px solid transparent; */
    border-radius: 8px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    text-align: center;
    text-decoration: none;
  }

  /* .mobile-menu-button::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 2px solid transparent;
    background: linear-gradient(
      45deg,
      #f09433 0%,
      #e6683c 25%,
      #dc2743 50%,
      #cc2366 75%,
      #bc1888 100%
    );
    -webkit-mask: linear-gradient(#fff 0 0) padding-box,
      linear-gradient(#fff 0 0) border-box;
    mask: linear-gradient(#fff 0 0) padding-box,
      linear-gradient(#fff 0 0) border-box;
    -webkit-mask-composite: destination-out;
    mask-composite: exclude;
    border-radius: 8px;
  } */

  .mobile-menu-button:hover {
    background: rgba(255, 255, 255, 0.1);
  }

  .mobile-menu-button.instagram-button {
    border: none;
    background: linear-gradient(
      45deg,
      #f09433 0%,
      #e6683c 25%,
      #dc2743 50%,
      #cc2366 75%,
      #bc1888 100%
    );
  }

  .mobile-menu-button.instagram-button::before {
    display: none;
  }

  .mobile-menu-button.instagram-button:hover {
    opacity: 0.9;
    background: linear-gradient(
      45deg,
      #f09433 0%,
      #e6683c 25%,
      #dc2743 50%,
      #cc2366 75%,
      #bc1888 100%
    );
  }

  /* .mobile-menu-button[href^="https://donate.stripe.com"]
  {
    background: #007aff;
    border: none;
  }

  .mobile-menu-button[href^="https://donate.stripe.com"]::before
  {
    display: none;
  }

  .mobile-menu-button[href^="https://donate.stripe.com"]:hover
  {
    background: #0056b3;
    color: white;
  } */

  /* Hamburger menu animation */
  .nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
  }

  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }

  .logo-img {
    height: 32px;
  }

  .mobile-menu-content {
    display: block;
    position: fixed;
    left: 2rem;
    right: 2rem;
    bottom: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }

  .nav-links.active + .mobile-menu-content {
    opacity: 1;
    visibility: visible;
  }

  .nav-links {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .mobile-menu-content {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: #000000;
    z-index: 1000;
  }
}

body.mobile-menu-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
}
