/* ===== CSS RESET & BASE STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Open Sans", sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f8f9fa;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== TYPOGRAPHY ===== */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Playfair Display", serif;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.5rem;
}
h2 {
  font-size: 2.2rem;
}
h3 {
  font-size: 1.8rem;
}
h4 {
  font-size: 1.4rem;
}

p {
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 12px 30px;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  text-align: center;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  cursor: pointer;
  font-size: 1rem;
}

.btn-primary {
  background: linear-gradient(135deg, #2d5016, #4a7c59);
  color: white;
  box-shadow: 0 4px 15px rgba(45, 80, 22, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(45, 80, 22, 0.4);
}

.btn-secondary {
  background: transparent;
  color: #2d5016;
  border-color: #2d5016;
}

.btn-secondary:hover {
  background: #2d5016;
  color: white;
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: #8b4513;
  border-color: #8b4513;
}

.btn-outline:hover {
  background: #8b4513;
  color: white;
}

/* ===== 3D HEADER EFFECT - INNOVATION #1 ===== */
.header-3d {
  background: linear-gradient(135deg, #2d5016 0%, #4a7c59 50%, #6b8e23 100%);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transform: perspective(1000px) rotateX(0deg);
  transition: all 0.3s ease;
}

.header-3d::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.5),
    transparent
  );
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.1) rotate(5deg);
}

.logo-text h1 {
  color: white;
  font-size: 1.8rem;
  margin: 0;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.tagline {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
  margin: 0;
  font-style: italic;
}

.main-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-link {
  color: white;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 25px;
  transition: all 0.3s ease;
  position: relative;
  font-weight: 500;
}

.nav-link::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 25px;
  transform: scale(0);
  transition: transform 0.3s ease;
}

.nav-link:hover::before,
.nav-link.active::before {
  transform: scale(1);
}

.nav-link:hover,
.nav-link.active {
  color: white;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  color: white;
  font-size: 0.9rem;
}

.contact-row {
  display: flex;
  align-items: center;   /* 图标和文字垂直居中 */
}

.contact-row i {
  margin-right: 0.5rem;
  color: #ffd700;
}


/* ===== HERO SECTION ===== */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  margin-top: 80px;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}

.hero-bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(45, 80, 22, 0.7) 0%,
    rgba(74, 124, 89, 0.5) 100%
  );
  z-index: -1;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  z-index: 1;
}

.hero-text {
  color: white;
}

.hero-title {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  opacity: 0.95;
  animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-stats {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
  animation: fadeInUp 1s ease-out 0.4s both;
}

.stat-item {
  text-align: center;
  background: rgba(255, 255, 255, 0.1);
  padding: 1rem;
  border-radius: 15px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-item i {
  font-size: 2rem;
  color: #ffd700;
  margin-bottom: 0.5rem;
  display: block;
}

.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: bold;
  color: white;
}

.stat-label {
  font-size: 0.9rem;
  opacity: 0.9;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  animation: fadeInUp 1s ease-out 0.6s both;
}

.hero-image {
  position: relative;
  animation: fadeInRight 1s ease-out 0.8s both;
  border-radius: 20px;   /* 四个角圆角 */
  overflow: hidden;      /* 关键：裁剪内部 img */
}

.hero-main-image {
  width: 100%;
  height: 100%;
  display: block;        /* 去掉 img 默认的 inline 间隙 */
  object-fit: cover;     /* 保持比例填充 */
}


.hero-main-image:hover {
  transform: scale(1.05);
}

/* ===== ALLOTMENT GRID CARDS - INNOVATION #2 ===== */
.programs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.program-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
  border: 2px solid transparent;
}

.program-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #2d5016, #4a7c59);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.program-card:hover::before {
  opacity: 0.05;
}

.program-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  border-color: #2d5016;
}

.program-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.program-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  clip-path: inset(0% 0% 5% 5%);
}

.program-card:hover .program-img {
  transform: scale(1.1);
}

.program-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(45, 80, 22, 0.8);
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  opacity: 0;
  transition: all 0.3s ease;
}

.program-card:hover .program-overlay {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.1);
}

.program-content {
  padding: 2rem;
  position: relative;
  z-index: 2;
}

.program-content h3 {
  color: #2d5016;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.program-features {
  list-style: none;
  margin-top: 1rem;
}

.program-features li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  color: #666;
}

.program-features i {
  color: #2d5016;
  font-size: 0.9rem;
}

/* ===== GROWTH ANIMATIONS - INNOVATION #3 ===== */
@keyframes growPlant {
  0% {
    transform: scaleY(0) rotate(-5deg);
    opacity: 0;
  }
  50% {
    transform: scaleY(0.5) rotate(-2deg);
    opacity: 0.7;
  }
  100% {
    transform: scaleY(1) rotate(0deg);
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.growth-animation {
  animation: growPlant 2s ease-out;
}

/* ===== LAYERED BACKGROUND - INNOVATION #4 ===== */
.about-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  position: relative;
  padding: 5rem 0;
}

.about-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
      circle at 20% 80%,
      rgba(45, 80, 22, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 20%,
      rgba(74, 124, 89, 0.1) 0%,
      transparent 50%
    );
  z-index: 0;
}

.about-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4rem;
  align-items: start;
  position: relative;
  z-index: 1;
}

.about-team-image {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  clip-path: inset(0% 0% 5% 5%);
  transition: transform 0.3s ease;
}

.about-team-image:hover {
  transform: scale(1.05);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.value-item {
  text-align: center;
  padding: 1.5rem;
  background: white;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.value-item:hover {
  transform: translateY(-5px);
}

.value-item i {
  font-size: 2.5rem;
  color: #2d5016;
  margin-bottom: 1rem;
  display: block;
}

/* ===== HAND-DRAWN STYLE ICONS - INNOVATION #5 ===== */
.story-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: linear-gradient(135deg, #ffd700, #ffed4e);
  color: #2d5016;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: bold;
  font-size: 0.9rem;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
  transform: rotate(5deg);
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: rotate(5deg) translateY(0px);
  }
  50% {
    transform: rotate(5deg) translateY(-10px);
  }
}

/* ===== SUCCESS STORIES SECTION ===== */
.stories-section {
  background: linear-gradient(135deg, #2d5016 0%, #4a7c59 100%);
  color: white;
  padding: 5rem 0;
  position: relative;
}

.stories-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
  z-index: 0;
}

.stories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
  position: relative;
  z-index: 1;
}

.story-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: transform 0.3s ease;
}

.story-card:hover {
  transform: translateY(-5px);
}

.story-image {
  position: relative;
  height: 250px;
  overflow: hidden;
}

.story-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  clip-path: inset(0% 0% 5% 5%);
  transition: transform 0.3s ease;
}

.story-card:hover .story-img {
  transform: scale(1.05);
}

.story-content {
  padding: 2rem;
}

.story-content h3 {
  color: #ffd700;
  margin-bottom: 1rem;
}

.story-quote {
  font-style: italic;
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.story-details {
  display: flex;
  gap: 2rem;
}

.story-stat {
  text-align: center;
}

.story-stat .stat-number {
  display: block;
  font-size: 1.8rem;
  font-weight: bold;
  color: #ffd700;
}

.story-stat .stat-label {
  font-size: 0.9rem;
  opacity: 0.9;
}

/* ===== SUBSCRIBE SECTION ===== */
.subscribe-section {
  background: #f8f9fa;
  padding: 5rem 0;
}

.subscribe-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.subscribe-card {
  background: white;
  padding: 2.5rem;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  border: 2px solid transparent;
}

.subscribe-card:hover {
  transform: translateY(-10px);
  border-color: #2d5016;
}

.card-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #2d5016, #4a7c59);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: white;
  font-size: 2rem;
}

.volunteer-opportunities {
  list-style: none;
  text-align: left;
  margin: 1.5rem 0;
}

.volunteer-opportunities li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #eee;
  position: relative;
  padding-left: 1.5rem;
}

.volunteer-opportunities li::before {
  content: "🌱";
  position: absolute;
  left: 0;
}

.donation-amounts {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 1.5rem 0;
  flex-wrap: wrap;
}

.amount {
  padding: 0.5rem 1rem;
  background: #f0f0f0;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
}

.amount:hover {
  background: #2d5016;
  color: white;
}

.newsletter-form{
  display: grid;
  grid-template-columns: 1fr;
  row-gap: 12px;
}

.newsletter-form input {
  flex: 1;
  padding: 0.75rem;
  border: 2px solid #ddd;
  border-radius: 25px;
  font-size: 1rem;
}

.newsletter-form input:focus {
  outline: none;
  border-color: #2d5016;
}



/* ===== CONTACT SECTION ===== */
.contact-section {
  background: white;
  padding: 5rem 0;
}

.contact-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4rem;
  margin-top: 3rem;
}




.contact-details {
  display: flex;
  flex-direction: column;
  gap: 0rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
  color: #666;
  border-radius: 15px;
  transition: transform 0.3s ease;
}

.contact-item:hover {
  transform: translateX(10px);
}

.contact-item i {
  font-size: 1.5rem;
  color: #2d5016;
  margin-top: 0.25rem;
}

.contact-item h4 {
  color: #2d5016;
  margin-bottom: 0.5rem;
}

.contact-form {
  background: #f8f9fa;
  padding: 2rem;
  border-radius: 20px;
  width: 100%;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid #ddd;
  border-radius: 10px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #2d5016;
}

.map-container {
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* ===== FOOTER ===== */
.footer {
  background: #1a1a1a;
  color: white;
  padding: 3rem 0 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
  color: #ffd700;
  margin-bottom: 1rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section ul li a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section ul li a:hover {
  color: #ffd700;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: #2d5016;
  color: white;
  border-radius: 50%;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-link:hover {
  background: #ffd700;
  color: #2d5016;
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid #333;
  padding-top: 1rem;
  text-align: center;
  color: #999;
}

/* ===== SECTION HEADERS ===== */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title {
  color: #2d5016;
  position: relative;
  display: inline-block;
}
.section-title1 {
  color: #ffffff;
  position: relative;
  display: inline-block;
}

.section-title2 {
  color: #ffffff;
  font-size: 1.2rem;
  margin-top: 1rem;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(135deg, #2d5016, #4a7c59);
  border-radius: 2px;
}

.section-subtitle {
  color: #666;
  font-size: 1.2rem;
  margin-top: 1rem;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }

  .main-nav {
    order: 3;
    width: 100%;
  }

  .nav-list {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }

  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-stats {
    justify-content: center;
    flex-wrap: wrap;
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contact-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .programs-grid,
  .stories-grid,
  .subscribe-options {
    grid-template-columns: 1fr;
  }

  .donation-amounts {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-stats {
    flex-direction: column;
    gap: 1rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 300px;
  }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus styles for keyboard navigation */
.nav-link:focus,
.btn:focus,
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid #ffd700;
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .hero-overlay {
    background: rgba(0, 0, 0, 0.8);
  }

  .btn-primary {
    background: #000;
    color: #fff;
  }

  .btn-secondary {
    border-color: #000;
    color: #000;
  }
}
