/* Base styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Fredoka', sans-serif;
  background-color: #fffaf5;
  color: #333;
  scroll-behavior: smooth;
  line-height: 1.6;
}

/* Header */
header {
  background-color: #f9e4dc;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  cursor: default;
}

.menu-toggle {
  display: none;
  font-size: 2rem;
  background: none;
  border: none;
  cursor: pointer;
  color: #ff6f61;
  transition: transform 0.3s ease;
}

.menu-toggle:hover {
  transform: scale(1.2);
}

/* Navbar */
.navbar ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.navbar ul li a {
  text-decoration: none;
  color: #333;
  font-weight: 700;
  padding: 0.3rem 0.5rem;
  position: relative;
  transition: color 0.3s ease;
}

.navbar ul li a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  background: #ff6f61;
  left: 0;
  bottom: -4px;
  transition: width 0.3s ease;
}

.navbar ul li a:hover {
  color: #ff6f61;
}

.navbar ul li a:hover::after {
  width: 100%;
}

/* Hero Section */
.hero {
  height: 100vh;
  background: url('background.png') center/cover no-repeat;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  padding: 0 1rem;
}

.overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 1rem;
  backdrop-filter: blur(10px);
  animation: fadeInUp 1s ease forwards;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  line-height: 1.1;
}

.hero-content .highlight {
  color: #ff6f61;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  font-weight: 500;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.cta-button {
  background-color: #ff6f61;
  color: white;
  padding: 0.75rem 2rem;
  font-weight: 700;
  border-radius: 50px;
  text-decoration: none;
  display: inline-block;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.cta-button:hover {
  background-color: #e4574d;
  transform: scale(1.1);
  box-shadow: 0 6px 12px rgba(228, 87, 77, 0.6);
}

/* About Section */
.about-section {
  background-color: #fff0e6;
  padding: 3rem 1rem;
  text-align: center;
}

.about-section .container {
  max-width: 900px;
  margin: auto;
}

.about-section h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #ff6f61;
  animation: fadeInLeft 1s ease forwards;
}

.about-section p {
  font-size: 1.15rem;
  margin-bottom: 2rem;
  font-weight: 500;
  color: #444;
  animation: fadeInRight 1s ease forwards;
}

.about-section img {
  width: 100%;
  max-width: 800px;
  border-radius: 1rem;
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
  animation: fadeInUp 1.2s ease forwards;
}

/* Volunteer Form */
.form-section {
  background: #fffaf5;
  padding: 3rem 1rem;
  text-align: center;
}

.form-section h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: #ff6f61;
}

.volunteer-form {
  max-width: 400px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  animation: fadeInUp 1.3s ease forwards;
}

.volunteer-form input,
.volunteer-form select {
  padding: 0.8rem 1rem;
  font-size: 1rem;
  border-radius: 8px;
  border: 2px solid #ff6f61;
  transition: border-color 0.3s ease;
}

.volunteer-form input:focus,
.volunteer-form select:focus {
  border-color: #e4574d;
  outline: none;
  box-shadow: 0 0 8px #e4574d;
}

.volunteer-form button {
  padding: 0.85rem 1rem;
  background-color: #ff6f61;
  border: none;
  color: white;
  font-weight: 700;
  border-radius: 50px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.volunteer-form button:hover {
  background-color: #e4574d;
  transform: scale(1.05);
  box-shadow: 0 6px 12px rgba(228, 87, 77, 0.6);
}

/* Impact Stories */
.stories-section {
  background: #fff;
  padding: 3rem 1rem;
  text-align: center;
}

.stories-section h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: #ff6f61;
}

.stories {
  max-width: 1000px;
  margin: auto;
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.story-card {
  background-color: #fff0e6;
  border-radius: 1rem;
  box-shadow: 0 2px 10px rgba(255,111,97,0.15);
  width: 280px;
  padding: 1.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.story-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 25px rgba(255,111,97,0.3);
}

.story-card img {
  width: 100%;
  border-radius: 0.75rem;
  margin-bottom: 1rem;
  object-fit: cover;
  height: 160px;
}

.story-card h3 {
  color: #e4574d;
  margin-bottom: 0.5rem;
}

.story-card p {
  font-weight: 500;
  color: #555;
}

.contact-section {
  background-color: #fff0e6;
  padding: 3rem 2rem;
  text-align: center;
}

.contact-section h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.contact-section p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  color: #555;
}

.contact-form {
  max-width: 500px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form input,
.contact-form textarea {
  padding: 0.9rem;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 1rem;
  resize: vertical;
}

.contact-form button {
  background-color: #ff6f61;
  color: white;
  border: none;
  padding: 0.9rem;
  font-size: 1rem;
  border-radius: 50px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.contact-form button:hover {
  background-color: #e4574d;
  transform: scale(1.03);
}


/* Footer */
footer {
  background-color: #f9e4dc;
  text-align: center;
  padding: 1rem 1rem;
  font-size: 0.9rem;
  color: #444;
}

footer a {
  color: #ff6f61;
  text-decoration: none;
  font-weight: 700;
}

footer a:hover {
  text-decoration: underline;
}

/* Animations */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  0% {
    opacity: 0;
    transform: translateX(-40px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  0% {
    opacity: 0;
    transform: translateX(40px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .navbar ul {
    position: fixed;
    top: 65px;
    right: -100%;
    width: 60%;
    max-width: 300px;
    height: 100vh;
    background: #fffaf5;
    flex-direction: column;
    align-items: start;
    padding: 2rem 1.5rem;
    gap: 1.5rem;
    box-shadow: -2px 0 12px rgba(0, 0, 0, 0.15);
    transition: right 0.3s ease;
    z-index: 1001;
  }

  .navbar.active ul {
    right: 0;
  }

  .navbar ul li a {
    font-size: 1.2rem;
  }

  .menu-toggle {
    display: block;
  }

  .stories {
    flex-direction: column;
    padding: 0 1rem;
    align-items: center;
  }

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