/* =========================
   RESET
========================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  background: #ffffff;
  color: #111111;
  line-height: 1.7;
  overflow-x: hidden;

  transition:
    background 0.35s ease,
    color 0.35s ease;
}

/* =========================
   HEADER
========================= */

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;

  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 18px 8%;

  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);

  transition: 0.3s ease;
}

.header-shadow {
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo-area img {
  width: 62px;
  height: 62px;
  object-fit: contain;
}

.title {
  font-size: 24px;
  font-weight: 800;
  color: #c40000;
  letter-spacing: 1px;
}

/* =========================
   HEADER RIGHT
========================= */

.header-right {
  display: flex;
  align-items: center;
  gap: 18px;
}

/* =========================
   NAVIGATION
========================= */

nav {
  display: flex;
  gap: 30px;
}

nav a {
  text-decoration: none;
  color: #111111;
  font-weight: 500;
  transition: 0.25s ease;
}

nav a:hover,
.nav-active {
  color: #c40000;
}

/* =========================
   THEME TOGGLE
========================= */

.theme-toggle {
  width: 48px;
  height: 48px;

  border: none;
  border-radius: 50%;

  cursor: pointer;

  background: #f3f3f3;
  color: #111;

  font-size: 18px;

  display: flex;
  align-items: center;
  justify-content: center;

  transition: 0.25s ease;
}

.theme-toggle:hover {
  transform: translateY(-2px);
  background: #e9e9e9;
}

/* =========================
   HAMBURGER MENU
========================= */

.hamburger {
  display: none;

  background: transparent;
  border: none;

  font-size: 32px;
  cursor: pointer;

  user-select: none;

  color: #111111; /* IMPORTANT FIX */

  transition: 0.3s ease;
}

/* =========================
   HERO
========================= */

.hero {
  position: relative;
  min-height: 100vh;

  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;

  padding: 160px 8% 120px;

  background:
    linear-gradient(rgba(255,255,255,0.82), rgba(255,255,255,0.9)),
    url('https://images.unsplash.com/photo-1529156069898-49953e39b3ac?q=80&w=1600&auto=format&fit=crop')
    center/cover;
}

.hero-content {
  max-width: 900px;
}



/* =========================
   HERO TEXT
========================= */

.hero-tag {
  display: inline-block;

  padding: 10px 18px;
  border-radius: 999px;

  background: rgba(196,0,0,0.08);

  color: #c40000;

  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;

  margin-bottom: 25px;
}

.hero h1 {
  font-size: 72px;
  line-height: 1.1;
  margin-bottom: 25px;
}

.hero p {
  font-size: 20px;
  color: #444;
  max-width: 760px;
  margin: auto;
}

/* =========================
   BUTTONS
========================= */

.hero-buttons {
  margin-top: 35px;

  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;

  padding: 16px 34px;
  border-radius: 999px;

  text-decoration: none;
  font-weight: 600;

  transition: 0.25s ease;

  background: #c40000;
  border: 2px solid #c40000;
  color: white;

  box-shadow: 0 10px 25px rgba(196,0,0,0.18);
}

.btn:hover {
  transform: translateY(-5px);
}

.btn-outline {
  background: transparent;
  color: #111;
  border: 2px solid #111;
  box-shadow: none;
}

.btn-outline:hover {
  background: #111;
  color: white;
}

/* =========================
   SOCIAL BUTTONS
========================= */

.social-instagram {
  background: #E1306C;
  border-color: #E1306C;
}

.social-facebook {
  background: #1877F2;
  border-color: #1877F2;
}

/* =========================
   SECTIONS
========================= */

.section {
  padding: 110px 8%;
}

.section-top {
  margin-bottom: 25px;
}

.section-label {
  color: #c40000;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
}

.section-label.light {
  color: rgba(255,255,255,0.85);
}

.section h2,
.impact-section h2,
.cta-section h2 {
  font-size: 52px;
  margin-top: 10px;
}

.section-description {
  max-width: 850px;
  color: #555;
  font-size: 19px;
}

/* =========================
   CARDS
========================= */

.cards {
  margin-top: 55px;

  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));

  gap: 28px;
}

.card {
  background: white;

  padding: 40px;
  border-radius: 28px;

  box-shadow: 0 8px 35px rgba(0,0,0,0.06);

  border-top: 5px solid #c40000;

  transition: 0.3s ease;
}

.card:hover {
  transform: translateY(-8px);
}

.card-icon {
  font-size: 40px;
  margin-bottom: 18px;
}

.card h3 {
  color: #c40000;
  margin-bottom: 12px;
}

.card p {
  color: #555;
}

/* =========================
   IMPACT
========================= */

.impact-section {
  padding: 120px 8%;
  background: linear-gradient(135deg, #c40000, #850000);
  color: white;
}

.impact-grid {
  margin-top: 55px;

  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));

  gap: 25px;
}

.impact-box {
  background: rgba(255,255,255,0.08);
  padding: 35px;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(6px);
}

/* =========================
   CONTACT FORM (FORMSPREE)
========================= */

.contact-form {
  margin-top: 40px;

  display: flex;
  flex-direction: column;
  gap: 18px;

  max-width: 650px;
}

/* INPUTS + TEXTAREA */
.contact-form input,
.contact-form textarea {
  width: 100%;

  padding: 16px 18px;

  border-radius: 16px;
  border: 1px solid #e6e6e6;

  font-family: 'Poppins', sans-serif;
  font-size: 16px;

  outline: none;

  background: #ffffff;
  color: #111;

  transition: 0.25s ease;

  box-shadow: 0 6px 20px rgba(0,0,0,0.04);
}

/* FOCUS STATE */
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #c40000;
  box-shadow: 0 0 0 4px rgba(196,0,0,0.12);
  transform: translateY(-2px);
}

/* TEXTAREA HEIGHT */
.contact-form textarea {
  min-height: 160px;
  resize: vertical;
}

/* PLACEHOLDER */
.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #999;
}

/* SUBMIT BUTTON */
.contact-form .btn {
  align-self: flex-start;

  cursor: pointer;

  border: none;
}

/* =========================
   FORM HOVER POLISH
========================= */

.contact-form input:hover,
.contact-form textarea:hover {
  border-color: #c40000;
}

/* =========================
   DARK MODE SUPPORT
========================= */

body.dark .contact-form input,
body.dark .contact-form textarea {
  background: #1a1a1a;
  border-color: #333;
  color: #f1f1f1;
}

body.dark .contact-form input::placeholder,
body.dark .contact-form textarea::placeholder {
  color: #888;
}

body.dark .contact-form input:focus,
body.dark .contact-form textarea:focus {
  border-color: #ff4d4d;
  box-shadow: 0 0 0 4px rgba(255,77,77,0.15);
}

body.dark .hero {
  background:
    linear-gradient(rgba(0,0,0,0.75), rgba(0,0,0,0.85)),
    url('https://images.unsplash.com/photo-1529156069898-49953e39b3ac?q=80&w=1600&auto=format&fit=crop')
    center/cover !important;
}

/* =========================
   MOBILE FORM FIX
========================= */

@media (max-width: 700px) {
  .contact-form {
    max-width: 100%;
  }

  .contact-form .btn {
    width: 100%;
  }
}

/* =========================
   CONTACT BOX (UPDATED SUPPORT)
========================= */

.contact-box {
  margin-top: 40px;

  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.contact-item {
  background: white;

  padding: 30px;
  border-radius: 24px;

  border: 1px solid #eee;
  box-shadow: 0 8px 30px rgba(0,0,0,0.05);
}

.contact-item span {
  display: block;
  color: #c40000;
  font-weight: 700;
  margin-bottom: 10px;
}

.contact-item p {
  word-break: break-word;
  overflow-wrap: anywhere;
}

/* CONTACT LINKS */
.contact-link {
  text-decoration: none;
  color: inherit;
  transition: 0.25s ease;
}

.contact-link:hover {
  color: #c40000;
}

/* =========================
   CTA
========================= */

.cta-section {
  padding: 110px 8%;
  text-align: center;
  background: linear-gradient(135deg, #c40000, #850000);
  color: white;
}

.cta-section h2 {
  font-size: 52px;
  margin-bottom: 20px;
}

.cta-section p {
  max-width: 760px;
  margin: auto;
  font-size: 19px;
  opacity: 0.95;
}

.cta-section .btn {
  margin-top: 35px;

  background: white;
  color: #c40000;
  border-color: white;
}

/* =========================
   FOOTER
========================= */

footer {
  padding: 50px 20px;
  text-align: center;
  border-top: 1px solid #eee;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 25px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.footer-links a {
  text-decoration: none;
  color: #555;
  transition: 0.25s ease;
}

.footer-links a:hover {
  color: #c40000;
}

/* =========================
   REVEAL
========================= */

.reveal,
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: 0.8s ease;
}

.reveal.active,
.fade-up.active {
  opacity: 1;
  transform: translateY(0);
}

/* =========================
   DARK MODE
========================= */

body.dark {
  background: #0f0f0f;
  color: #f1f1f1;
}

body.dark header {
  background: rgba(15,15,15,0.92);
}

body.dark nav a {
  color: #f1f1f1;
}

body.dark nav a:hover,
body.dark .nav-active {
  color: #ff4d4d;
}

/* IMPORTANT FIX: hamburger visibility */
body.dark .hamburger {
  color: #ffffff;
}

body.dark .theme-toggle {
  background: #1f1f1f;
  color: #fff;
}

body.dark .hero p,
body.dark .section-description,
body.dark .card p {
  color: #cccccc;
}

body.dark .card,
body.dark .contact-item {
  background: #1a1a1a;
  border-color: #333;
}

body.dark .cta-section {
  background: linear-gradient(135deg, #850000, #400000);
}

/* =========================
   MOBILE
========================= */

@media (max-width: 900px) {

  .hamburger {
    display: block;
  }

  nav {
    position: absolute;
    top: 90px;
    right: 20px;

    flex-direction: column;
    gap: 18px;

    background: rgba(255,255,255,0.96);
    padding: 20px;
    border-radius: 16px;

    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);

    transition: 0.25s ease;
  }

  nav.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .hero h1 {
    font-size: 52px;
  }
}

@media (max-width: 700px) {

  header {
    padding: 18px 20px;
  }

  .hero {
    padding: 140px 20px 90px;
  }

  .hero h1 {
    font-size: 42px;
  }

  .btn {
    width: 100%;
  }
}
/* =========================
   🔥 FULL DARK MODE FIX PATCH
========================= */

/* page background */
body.dark {
  background: #0b0b0b;
  color: #f1f1f1;
}

/* make ALL white sections dark */
body.dark .section {
  background: transparent;
}

/* HEADER FIX */
body.dark header {
  background: rgba(10,10,10,0.92);
  backdrop-filter: blur(10px);
}

/* NAV DROPDOWN FIX */
body.dark nav {
  background: rgba(10,10,10,0.92);
}

body.dark nav a {
  color: #f1f1f1;
}

/* HERO IMAGE FIX (strong override so it NEVER stays light) */
body.dark .hero {
  background:
    linear-gradient(rgba(0,0,0,0.78), rgba(0,0,0,0.88)),
    url('https://images.unsplash.com/photo-1529156069898-49953e39b3ac?q=80&w=1600&auto=format&fit=crop')
    center/cover !important;
}

/* TEXT FIXES */
body.dark .hero p,
body.dark .section-description,
body.dark .card p {
  color: #cfcfcf;
}

/* CARDS + CONTACT BOX */
body.dark .card,
body.dark .contact-item {
  background: #151515;
  border-color: #2a2a2a;
  color: #fff;
}

/* FORM FIX */
body.dark .contact-form input,
body.dark .contact-form textarea {
  background: #151515;
  border: 1px solid #2a2a2a;
  color: #fff;
}

body.dark .contact-form input::placeholder,
body.dark .contact-form textarea::placeholder {
  color: #777;
}

/* FOCUS STATE */
body.dark .contact-form input:focus,
body.dark .contact-form textarea:focus {
  border-color: #ff4d4d;
  box-shadow: 0 0 0 4px rgba(255,77,77,0.15);
}

/* BUTTON FIX */
body.dark .btn-outline {
  color: #fff;
  border-color: #fff;
}

body.dark .btn-outline:hover {
  background: #fff;
  color: #111;
}

/* HAMBURGER */
body.dark .hamburger {
  color: #fff;
}

/* THEME BUTTON */
body.dark .theme-toggle {
  background: #1c1c1c;
  color: #fff;
}

/* CTA FIX */
body.dark .cta-section {
  background: linear-gradient(135deg, #6a0000, #2a0000);
}

/* FOOTER */
body.dark footer {
  border-top: 1px solid #2a2a2a;
}

/* =========================
   DONATE BUTTON
========================= */

.donate-wrapper {
  position: relative;
}

.donate-btn {
  padding: 10px 16px;
  border-radius: 999px;
  border: none;
  cursor: pointer;

  background: #c40000;
  color: white;

  font-weight: 600;
  transition: 0.25s ease;
}

.donate-btn:hover {
  transform: translateY(-2px);
  background: #a80000;
}

/* DROPDOWN */
.donate-dropdown {
  position: absolute;
  top: 55px;
  right: 0;

  background: white;
  border-radius: 14px;
  overflow: hidden;

  box-shadow: 0 10px 30px rgba(0,0,0,0.15);

  display: none;
  flex-direction: column;
  min-width: 160px;
}

.donate-dropdown a {
  padding: 12px 16px;
  text-decoration: none;
  color: #111;
  font-weight: 500;

  transition: 0.2s ease;
}

.donate-dropdown a:hover {
  background: #f3f3f3;
  color: #c40000;
}

/* SHOW STATE */
.donate-wrapper.active .donate-dropdown {
  display: flex;
}

/* DARK MODE */
body.dark .donate-dropdown {
  background: #1a1a1a;
}

body.dark .donate-dropdown a {
  color: #f1f1f1;
}

body.dark .donate-dropdown a:hover {
  background: #2a2a2a;
}


/* =========================
   MOBILE HEADER POLISH FIX
   (PUT AT VERY BOTTOM)
========================= */

@media (max-width: 900px) {

  .header-right {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  /* Better spacing + alignment */
  .theme-toggle {
    order: 1;
    width: 44px;
    height: 44px;
  }

  .hamburger {
    order: 2;
    font-size: 30px;
    margin: 0 6px;
  }

  /* If nav button/links ever appear as icons later */
  nav {
    order: 3;
  }
}

/* extra small screens cleanup */
@media (max-width: 480px) {

  .header-right {
    gap: 6px;
  }

  .theme-toggle,
  .hamburger {
    transform: scale(0.95);
  }
}
