/* ================== Base Reset & General Styles ================== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px; /* Base font size for rem units */
}

body {
  font-family: 'Montserrat', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f8f8f8;
  color: #333;
  line-height: 1.7;
  overflow-x: hidden; /* Prevent horizontal scroll */
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

ul,
ol {
  list-style: none;
}

/* ================== Typography ================== */
h1,
h2,
h3,
h4 {
  font-family: 'Lora', serif;
  color: #2d2d2d;
  margin-bottom: 0.7em;
  line-height: 1.3;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
}

h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
}

h3 {
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-weight: 600;
}

p {
  margin-bottom: 1.2em;
  color: #444;
  font-size: clamp(1rem, 2vw, 1.15rem);
}

/* ================== Layout & Structure ================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 70px 0 50px 0;
  background: #f8f8f8;
  transition: background 0.3s ease;
}

.section:nth-child(even) {
  background: #f3f7fa;
}

/* ================== Header & Navigation ================== */
.site-header {
  background: #222;
  color: #fff;
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: background 0.3s ease;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  position: relative;
}

.logo-container {
  display: flex;
  align-items: center;
}

.logo {
  height: 60px;
  width: auto;
  margin-right: 16px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.logo:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.site-title {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: #fff;
  transition: color 0.3s ease;
}

.main-nav {
  display: flex;
  align-items: center;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 32px;
}

.nav-links li a {
  color: #fff;
  font-weight: 500;
  font-size: 1.05rem;
  padding: 8px 0;
  transition: color 0.3s ease, transform 0.2s;
  position: relative;
}

.nav-links li a::before {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #6bb7ff;
  transition: width 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.nav-links li a:hover,
.nav-links li a.active {
  color: #a8d5ff;
  transform: translateY(-2px);
}

.nav-links li a:hover::before,
.nav-links li a.active::before {
  width: 100%;
}

.burger {
  display: none;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
  margin-left: 24px;
  background: none;
  border: none;
  transition: transform 0.3s ease;
}

.burger:hover {
  transform: rotate(90deg);
  color: #a8d5ff;
}

/* ================== Hero Section ================== */
.hero-section {
  background-size: cover;
  background-position: center;
  min-height: 75vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden; /* Clip the hero content */
}

.hero-overlay {
  background: rgba(30, 41, 59, 0.55);
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 0;
  opacity: 0;
  animation: fadeIn 1.5s forwards 0.5s; /* Fade in the overlay */
}

.hero-content {
  text-align: center;
  color: #fff;
  max-width: 700px;
  margin: 0 auto;
  opacity: 0;
  animation: fadeInUp 1.2s forwards 0.8s; /* Slide up the content */
}

.hero-content h1 {
  color: #fff;
  font-size: clamp(3rem, 6vw, 4rem);
  margin-bottom: 0.5em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

.hero-content p {
  color: #e0e7ef;
  font-size: clamp(1.2rem, 3vw, 1.4rem);
  margin-bottom: 1.5em;
}

/* ================== Buttons ================== */
.btn-primary {
  background: linear-gradient(90deg, #6bb7ff 0%, #4f8cff 100%);
  color: #fff;
  padding: 0.95em 2.4em;
  border: none;
  border-radius: 30px;
  font-size: 1.1rem;
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(75, 143, 255, 0.13);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.3s ease;
  text-decoration: none;
  display: inline-block;
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.15);
  opacity: 0;
  transform: translateX(-100%) rotate(45deg);
  transition: opacity 0.4s ease, transform 0.5s ease;
  z-index: 1;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(75, 143, 255, 0.2);
  background: linear-gradient(90deg, #4f8cff 0%, #6bb7ff 100%);
}

.btn-primary:hover::before {
  opacity: 1;
  transform: translateX(0) rotate(45deg);
}

.btn-secondary {
  background: #fff;
  color: #4f8cff;
  border: 2px solid #4f8cff;
  padding: 0.8em 2em;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 600;
  margin-top: 1em;
  transition: transform 0.2s, background 0.3s ease, color 0.3s ease, box-shadow 0.2s;
  text-decoration: none;
  display: inline-block;
  box-shadow: 0 2px 8px rgba(75, 143, 255, 0.08);
}

.btn-secondary:hover {
  background: #4f8cff;
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(75, 143, 255, 0.15);
}

/* ================== Content Sections ================== */
.about-content,
.contact-content {
  display: flex;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
}

.about-text,
.contact-details {
  flex: 1 1 320px;
  min-width: 280px;
  opacity: 0;
  transform: translateX(-30px);
  animation: fadeInUp 0.8s forwards 0.3s;
}

.about-image,
.contact-map {
  flex: 1 1 320px;
  min-width: 240px;
  opacity: 0;
  transform: translateX(30px);
  animation: fadeInUp 0.8s forwards 0.3s;
}

.content-img {
  width: 100%;
  max-width: 420px;
  border-radius: 16px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
  margin: 0 auto;
  display: block;
  transition: transform 0.3s, box-shadow 0.3s;
}

.content-img:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

/* ================== Core Values Grid ================== */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 32px;
  margin-top: 3rem;
}

.value-box {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  padding: 28px;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}

.value-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.value-box i {
  font-size: 2.5rem;
  color: #4f8cff;
  margin-bottom: 0.5em;
  transition: transform 0.3s ease, color 0.3s ease;
}

.value-box:hover i {
  transform: scale(1.2);
  color: #6bb7ff;
}

.value-box h3 {
  margin-bottom: 0.6em;
  font-size: 1.2rem;
}

.value-box p {
  font-size: 1rem;
  color: #555;
}

/* ================== Give Options ================== */
.give-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  margin-top: 3rem;
}

.give-box {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  padding: 28px;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}

.give-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.give-box i {
  font-size: 2.5rem;
  color: #4f8cff;
  margin-bottom: 0.5em;
}

.give-box h3 {
  margin-bottom: 0.6em;
  font-size: 1.2rem;
}

.give-box p {
  font-size: 1rem;
  color: #555;
}

/* ================== Testimonials ================== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  margin-top: 3rem;
}

.testimonial-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  padding: 28px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.testimonial-card p {
  font-style: italic;
  color: #555;
}

.testimonial-card h4 {
  margin-top: 1em;
  font-size: 1rem;
  color: #4f8cff;
}

/* ================== Contact Form ================== */
.contact-form {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
  padding: 28px 24px;
  margin-top: 1em;
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s forwards 0.5s;
}

.contact-form h3 {
  margin-bottom: 1em;
  color: #4f8cff;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  background: #f7fafc;
  transition: border 0.3s ease, box-shadow 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #6bb7ff;
  outline: none;
  box-shadow: 0 2px 6px rgba(75, 143, 255, 0.2);
}

.contact-form textarea {
  resize: vertical;
  min-height: 150px;
}

.contact-form button {
  width: 100%;
  margin-top: 0.5em;
}

.contact-form .form-note {
  text-align: center;
  color: #777;
  font-size: 0.9rem;
  opacity: 0;
  animation: fadeIn 0.5s forwards 1s;
}

/* ================== Footer ================== */
.site-footer {
  background: linear-gradient(90deg, #eaf6ff 0%, #f8f8f8 100%);
  color: #222;
  padding: 50px 0 20px 0;
  margin-top: 40px;
  position: relative;
  overflow: hidden;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
  align-items: flex-start;
}

.footer-column {
  flex: 1 1 220px;
  min-width: 180px;
  margin-bottom: 24px;
}

.footer-column h4 {
  color: #4f8cff;
  margin-bottom: 1em;
  font-size: 1.1rem;
  font-weight: 700;
  position: relative;
  padding-bottom: 0.4em;
}

.footer-column h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 30px;
  height: 3px;
  background-color: #6bb7ff;
  border-radius: 2px;
}

.footer-column ul {
  list-style: none;
  padding: 0;
}

.footer-column ul li {
  margin-bottom: 0.7em;
}

.footer-column ul li a {
  color: #222;
  text-decoration: none;
  transition: color 0.3s ease, transform 0.2s;
  display: inline-block;
}

.footer-column ul li a:hover {
  color: #6bb7ff;
  transform: translateX(4px);
}

.social-icons {
  display: flex;
  gap: 18px;
  margin-top: 0.5em;
}

.social-icons a {
  color: #4f8cff;
  font-size: 1.5rem;
  transition: color 0.3s ease, transform 0.2s;
  display: inline-block;
}

.social-icons a:hover {
  color: #222;
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid #dbeafe;
  padding-top: 18px;
  font-size: 0.98rem;
  color: #555;
  margin-top: 18px;
  position: relative;
  z-index: 1;
}

/* ================== Keyframe Animations ================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* ================== Media Queries for Responsiveness ================== */
/* 1. General adjustments for smaller screens */
@media (max-width: 1024px) {
  .container {
    padding: 0 12px;
  }

  .about-content,
  .contact-content,
  .donate-gallery,
  .footer-container {
    gap: 24px;
  }

  .values-grid,
  .give-options,
  .testimonials-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

/* 2. Stack columns on tablets and smaller */
@media (max-width: 900px) {
  .about-content,
  .contact-content,
  .footer-container {
    flex-direction: column;
    align-items: center;
  }

  .about-text,
  .about-image,
  .contact-details,
  .contact-map,
  .contact-form,
  .footer-column {
    min-width: 0;
    width: 100%;
    max-width: 600px;
  }
}

/* 3. Mobile navigation and layout */
@media (max-width: 768px) {
  .header-container {
    flex-direction: row;
    padding: 12px 0;
  }

  .main-nav {
    position: absolute;
    top: 70px;
    right: 0;
    background: #222;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    display: none;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.13);
    z-index: 999;
    padding: 24px 0;
    border-top: 2px solid #6bb7ff;
  }

  .main-nav.active {
    display: flex;
  }

  .nav-links {
    flex-direction: column;
    gap: 18px;
    width: 100%;
    padding-left: 24px;
  }

  .burger {
    display: block;
  }

  .hero-content h1 {
    font-size: 2.4rem;
  }

  .hero-content p {
    font-size: 1.1rem;
  }

  .section {
    padding: 50px 0 40px 0;
  }
}

/* 4. Small mobile optimizations */
@media (max-width: 600px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.6rem;
  }

  .container {
    padding: 0 10px;
  }

  .footer-column {
    padding: 0 10px;
  }

  .social-icons {
    flex-direction: column;
    align-items: center;
  }

  .social-icons a {
    margin-bottom: 10px;
  }
}

/* 5. Micro adjustments for tiny screens */
@media (max-width: 400px) {
  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .btn-primary,
  .btn-secondary {
    font-size: 0.9rem;
    padding: 0.8em 1.8em;
  }
}
.cta-banner {
  background: linear-gradient(90deg, #eaf6ff 0%, #f8f8f8 100%);
  text-align: center;
  padding: 60px 0 40px 0;
}

.cta-title {
  margin-bottom: 1.5em;
  font-size: 2rem;
  color: #2d2d2d;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.cta-buttons a {
  min-width: 150px;
  text-align: center;
}

/* Responsive: Stack buttons on small screens */
@media (max-width: 600px) {
  .cta-buttons {
    flex-direction: column;
    gap: 18px;
  }
}
