/* Global */
html, body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  height: 100%;
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
  overflow-y: scroll;
  color: #fff;
  background-color: #000; /* homepage black background */
}

/* Header */
header {
  position: fixed;
  top: 0;
  width: 100%;
  height: 70px;
  display: flex;
  align-items: center;
  z-index: 1001;
  background: rgba(0,0,0,1);
  padding: 0 20px;
  box-sizing: border-box;
}

header img {
  height: 40px;
  margin-right: 20px; /* space between logo and nav */
}

header .nav-links {
  display: flex;
  gap: 30px;
  margin-left: auto; /* right-align nav links */
  margin-right: 20px;
  align-items: center;
}

header .nav-links a {
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

/* Sections */
section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  scroll-snap-align: start;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 0 20px;
}

section h2 {
  font-size: 36px;
  margin-bottom: 20px;
}

section p {
  font-size: 18px;
  max-width: 900px;
  line-height: 1.6;
  color: #fff;
}

/* Reusable Section Block */
.section-block {
  background-color: #000;
  color: #fff;
  font-weight: bold;
  padding: 20px 25px;
  border-radius: 10px;
  max-width: 800px;
  text-align: center;
  margin: 0 auto;
}

.section-block h2 { margin-bottom: 20px; }
.section-block p { margin-bottom: 10px; }

/* About Section */
#about {
  background-image: url('../images/about.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

#about .section-block {
  background-color: rgba(0,0,0,0.8);
  color: #fff;
  max-width: 700px;
  padding: 20px;
  text-align: center;
}

/* Donate Section */
#donate {
  background-image: url('../images/hero.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

#donate .section-block {
  background-color: rgba(0,0,0,0.8);
  color: #fff;
}

/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  background-color: #000;
}

.video-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  z-index: 0;
  opacity: 1;
}

.video-wrapper iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 120vw;
  height: 120vh;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.hero-overlay {
  display: none; /* hide overlay completely */
}

.hero-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  max-width: 900px;
  text-align: center;
  color: #fff;
  opacity: 1;
}

.hero-text p {
  font-size: 28px;
  line-height: 1.6;
}

/* Floating Donate Button */
.floating-donate {
  position: fixed;
  bottom: 60px; /* raised slightly so it doesn't cover footer */
  left: 50%;
  transform: translateX(-50%);
  background: #fef7ef;
  color: #000;
  padding: 15px 35px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid #000;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  z-index: 1002;
  cursor: pointer;
}

/* Contact Section */
#contact {
  background-color: #000;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  text-align: center;
  min-height: 100vh;
  padding: 50px 20px;
  box-sizing: border-box;
  position: relative;
}

#contact img {
  max-width: 250px;
  width: 70%;
  height: auto;
  margin: 20px 0;
}

/* Copyright pinned at bottom */
#contact-footer {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: #fff;
  font-size: 14px;
}

/* Donate Section Inputs */
#donate input {
  margin: 10px 0;
  padding: 10px;
  width: 100%;
  max-width: 400px;
  border-radius: 5px;
  border: 1px solid #fff;
  color: #000;
  box-sizing: border-box;
}

#donate input[type="number"] {
  max-width: 200px;
}

#donate-status {
  color: red;
  margin-top: 10px;
}

/* -------------------------
   MOBILE RESPONSIVE FIXES
--------------------------*/
@media (max-width: 768px) {

  /* Header adjustments */
  header {
    height: 60px;
    padding: 0 15px;
  }

  header img {
    height: 32px;
    margin-right: 15px; /* space between logo and nav links */
  }

  .nav-links {
    gap: 10px;
    margin-left: auto;
    margin-right: 0;
  }

  .nav-links a {
    font-size: 14px;
  }

  /* Hero Text adjustments for mobile */
  .hero-text {
    max-width: 90%;
    padding: 0 15px;
    font-size: 16px;
    line-height: 1.4;
    top: 50%;
  }

  .hero-text p {
    font-size: 14px;
    line-height: 1.5;
  }

  /* Hero Video */
  .video-wrapper iframe {
    width: 100vw;
    height: 100vh;
  }

  /* Section text adjustments */
  section p {
    font-size: 16px;
    max-width: 90%;
  }

  /* About Section scrollable */
  #about .section-block {
    padding: 10px;
    max-width: 95%;
    font-size: 12px;
    line-height: 1.3;
    max-height: 90vh;        /* fit viewport */
    overflow-y: auto;        /* scroll inside section */
    -webkit-overflow-scrolling: touch; /* smooth scrolling on iOS */
  }

  #about .section-block h2 {
    font-size: 18px;
    margin-bottom: 10px;
  }

  #about .section-block p {
    margin-bottom: 5px;
  }

  /* Donate Section adjustments */
  #donate .section-block {
    padding: 15px;
    max-width: 95%;
    font-size: 14px;
    line-height: 1.5;
  }

  /* Floating Donate Button */
  .floating-donate {
    padding: 12px 25px;
    font-size: 14px;
    bottom: 60px; /* slightly raised above footer */
  }
}

/* Extremely small phones */
@media (max-width: 480px) {
  .nav-links a {
    font-size: 12px;
  }

  .hero-text {
    font-size: 14px;
    top: 50%;
  }

  .floating-donate {
    padding: 10px 20px;
    font-size: 13px;
    bottom: 60px;
  }

  /* About Section further shrink for tiny phones */
  #about .section-block {
    font-size: 11px;
    line-height: 1.2;
    padding: 8px 12px;
  }

  #about .section-block h2 {
    font-size: 16px;
  }
}

/* Force mobile snap to visible viewport */
@media (max-width: 768px) {
  section {
    min-height: 100dvh;
  }
}
