* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  overflow: hidden;
  font-family: Arial, sans-serif;
}

.container {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
}

.video-background {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  object-fit: cover;
  z-index: -1;
}

.top-bar {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: 20px;
}

.hamburger {
  cursor: pointer;
  z-index: 100;
}

.hamburger div {
  width: 30px;
  height: 4px;
  background-color: white;
  margin: 5px 0;
}

.nav-menu {
  position: absolute;
  top: 60px;
  left: 20px;
  background: rgba(0, 0, 0, 0.85);
  padding: 15px;
  border-radius: 8px;
  display: none;
  z-index: 99;
}

.nav-menu a {
  display: block;
  color: white;
  text-decoration: none;
  margin: 8px 0;
  font-size: 16px;
}

.nav-menu a:hover {
  text-decoration: underline;
}

.center-content {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  padding: 20px;
}

.center-content h1 {
  font-size: 2.5rem;
}

.bottom-section {
  display: flex;
  flex-direction: column;
  padding: 10px 20px;
}

.button-row {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
  overflow-x: auto; /* Allow horizontal scroll */
  flex-wrap: nowrap; /* Prevent wrapping */
  scroll-snap-type: x mandatory; /* For smooth scrolling */
  -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
}

.project-button {
  flex: none; /* Prevent flex-grow/shrink */
  width: calc(100% / 5 - 10px); /* Default behavior: show up to 5 buttons on desktop */
  scroll-snap-align: start; /* Buttons will snap to the left */
  background-color: white;
  color: black;
  border: none;
  padding: 15px 10px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  text-transform: uppercase;
  transition: 0.3s ease;
  text-align: center;
  min-width: 160px;
}

.project-button:hover {
  background-color: black;
  color: white;
  border: 2px solid white;
}

.donate-button {
  background-color: #FFD700; /* golden yellow */
  color: black;
  font-weight: bold;
  padding: 15px 25px;
  border-radius: 999px; /* makes it oval/pill shaped */
  border: none;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 1rem;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
  min-width: 160px;
}

.donate-button:hover {
  background-color: black;
  color: #FFD700;
}

.contact-button {
  background-color: #4CAF50;
  color: white;
  font-weight: 600;
  padding: 5px 10px; /* reduced for tight fit */
  font-size: 0.7rem; /* small but still readable */
  min-width: auto; /* removes fixed width */
  border-radius: 999px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
  border: none;
}

.contact-button:hover {
  background-color: white;
  color: #4CAF50;
  border: 1px solid #4CAF50;
}

/* Media Queries for Mobile (max-width: 768px) */
@media (max-width: 768px) {

  .button-row {
    padding-bottom: 10px; /* Optional: Space under buttons */
    gap: 10px;
    overflow-x: auto; /* Enable horizontal scroll */
    flex-wrap: nowrap; /* Prevent wrapping on mobile */
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
  }

  /* For mobile, only one button visible at a time */
  .project-button {
    width: 100%; /* Ensure only one button is visible at a time */
    scroll-snap-align: start; /* Snap to the left */
  }

  .center-content h1 {
    font-size: 1.8rem; /* Slightly smaller heading on mobile */
  }

  /* Scrollbar styling */
  .button-row::-webkit-scrollbar {
    height: 8px;
  }

  .button-row::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
  }

  .button-row::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
  }

  /* Mobile-specific Hamburger Scroll Fix */
  .nav-menu {
    max-height: 80vh;  /* Limit max height of menu to 80% of the viewport */
    overflow-y: auto;  /* Enable scrolling */
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
  }

  .nav-menu a {
    font-size: 14px; /* Adjust font size for mobile */
  }

  /* Ensure Hamburger Menu works properly */
  .hamburger {
    z-index: 100;
  }
}

/* Ensure Hamburger is static for desktop */
@media (min-width: 769px) {
  .nav-menu {
    display: block; /* Display menu normally on desktop */
    max-height: none; /* Remove max-height */
    overflow-y: visible; /* Make sure it's fully visible */
  }
}
