/* MARY WRENCH CHARITY - Custom CSS Styles */

/* CSS Custom Properties (Variables) */
:root {
  --primary-color: #1e3a8a;
  --secondary-color: #f59e0b;
  --accent-color: #3b82f6;
  --text-dark: #1f2937;
  --text-light: #6b7280;
  --background-light: #f8fafc;
  --background-white: #ffffff;
  --border-color: #e5e7eb;
  --shadow-light: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-medium: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-heavy: 0 10px 25px rgba(0, 0, 0, 0.15);
  --gradient-primary: linear-gradient(
    135deg,
    var(--primary-color),
    var(--accent-color)
  );
  --gradient-warm: linear-gradient(135deg, var(--secondary-color), #fbbf24);
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--background-white);
  overflow-x: hidden;
}

.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.25rem;
}
h3 {
  font-size: 1.875rem;
}
h4 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1rem;
  color: var(--text-light);
}

/* Button Styles */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #1f2937;
  box-shadow: 0 4px 15px rgba(251, 191, 36, 0.4);
  position: relative;
  overflow: hidden;
  font-weight: 600;
  border: 2px solid #fbbf24;
}

.btn-primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: var(--transition-smooth);
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 15px 35px rgba(251, 191, 36, 0.6);
  background: linear-gradient(135deg, #fcd34d, #fbbf24);
  border-color: #f59e0b;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 2px solid #ffffff;
  position: relative;
  overflow: hidden;
  font-weight: 600;
  backdrop-filter: blur(10px);
}

.btn-secondary::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: var(--gradient-primary);
  transition: var(--transition-smooth);
  z-index: -1;
}

.btn-secondary:hover::before {
  width: 100%;
}

.btn-secondary:hover {
  color: #1f2937;
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 15px 35px rgba(255, 255, 255, 0.3);
  border-color: #fbbf24;
}

/* Header with 3D Effect */
.header-3d {
  background: var(--background-white);
  box-shadow: var(--shadow-medium);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transform: perspective(1000px) rotateX(0deg);
  transition: var(--transition-smooth);
}

.header-3d::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-primary);
  opacity: 0.05;
  z-index: -1;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  position: relative;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.logo {
  width: 80px;
  height: 80px;
  object-fit: contain;
  transition: var(--transition-smooth);
}

.logo:hover {
  transform: scale(1.05);
}

.logo-text h1 {
  font-size: 1.75rem;
  color: var(--primary-color);
  margin-bottom: 0.25rem;
}

.tagline {
  font-size: 0.875rem;
  color: var(--text-light);
  margin: 0;
}

.main-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-link {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  transition: var(--transition-smooth);
  position: relative;
}

.nav-link::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: var(--transition-smooth);
  transform: translateX(-50%);
}

.nav-link:hover {
  color: var(--primary-color);
  background: rgba(30, 58, 138, 0.1);
}

.nav-link:hover::before {
  width: 80%;
}

.header-contact {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.contact-info {
  display: inline-flex;      /* 👈 关键 */
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-light);
}


.contact-info i {
  color: var(--primary-color);
  flex-shrink: 0;
}


/* Hero Section with Split Layout */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  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;
  filter: brightness(0.7) contrast(1.1);
  animation: heroImageZoom 20s ease-in-out infinite;
}

@keyframes heroImageZoom {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(30, 58, 138, 0.85),
    rgba(59, 130, 246, 0.7),
    rgba(245, 158, 11, 0.3)
  );
  z-index: -1;
}

.hero-overlay::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
      circle at 20% 80%,
      rgba(245, 158, 11, 0.2) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 20%,
      rgba(59, 130, 246, 0.3) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 40% 40%,
      rgba(30, 58, 138, 0.2) 0%,
      transparent 50%
    );
  animation: overlayShimmer 15s ease-in-out infinite;
}

.hero-overlay::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(
      2px 2px at 20px 30px,
      rgba(255, 255, 255, 0.3),
      transparent
    ),
    radial-gradient(2px 2px at 40px 70px, rgba(245, 158, 11, 0.4), transparent),
    radial-gradient(1px 1px at 90px 40px, rgba(255, 255, 255, 0.2), transparent),
    radial-gradient(1px 1px at 130px 80px, rgba(59, 130, 246, 0.3), transparent),
    radial-gradient(
      2px 2px at 160px 30px,
      rgba(255, 255, 255, 0.2),
      transparent
    );
  background-repeat: repeat;
  background-size: 200px 100px;
  animation: particleFloat 20s linear infinite;
}

@keyframes particleFloat {
  0% {
    transform: translateY(0) translateX(0);
  }
  100% {
    transform: translateY(-100px) translateX(50px);
  }
}

@keyframes overlayShimmer {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.8;
  }
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  width: 100%;
}

.hero-left {
  color: white;
  animation: slideInLeft 1s ease-out;
  padding-top: 4rem;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 1.5rem;
  line-height: 1.1;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  background: linear-gradient(45deg, #ffffff, #f59e0b, #ffffff);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: titleShimmer 3s ease-in-out infinite;
}

@keyframes titleShimmer {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 1;
  line-height: 1.6;
  animation: fadeInUp 1s ease-out 0.3s both;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  font-weight: 500;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  animation: fadeInUp 1s ease-out 0.6s both;
}

.hero-right {
  position: relative;
  animation: slideInRight 1s ease-out 0.5s both;
}

.hero-image-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-heavy);
  transform: perspective(1000px) rotateY(-5deg);
  transition: var(--transition-smooth);
  animation: cardFloat 6s ease-in-out infinite;
}

@keyframes cardFloat {
  0%,
  100% {
    transform: perspective(1000px) rotateY(-5deg) translateY(0px);
  }
  50% {
    transform: perspective(1000px) rotateY(-5deg) translateY(-10px);
  }
}

.hero-image-card:hover {
  transform: perspective(1000px) rotateY(0deg) scale(1.05);
  animation: none;
}

.hero-image {
  width: 100%;
  height: 400px;
  object-fit: cover;
  clip-path: inset(0% 0% 5% 5%);
  transition: var(--transition-smooth);
  filter: brightness(0.9) contrast(1.1);
}

.hero-image-card:hover .hero-image {
  filter: brightness(1) contrast(1.2);
  transform: scale(1.1);
}

.image-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.95));
  color: white;
  padding: 2rem;
  text-align: center;
  transform: translateY(100%);
  transition: var(--transition-smooth);
  backdrop-filter: blur(5px);
}

.hero-image-card:hover .image-overlay {
  transform: translateY(0);
}

.image-overlay h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  animation: textGlow 2s ease-in-out infinite;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
  font-weight: 700;
}

.image-overlay p {
  color: #fbbf24;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
  font-weight: 600;
}

@keyframes textGlow {
  0%,
  100% {
    text-shadow: 0 0 5px rgba(245, 158, 11, 0.5);
  }
  50% {
    text-shadow: 0 0 20px rgba(245, 158, 11, 0.8);
  }
}

/* Section Styles */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  color: var(--primary-color);
  margin-bottom: 1rem;
  position: relative;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--gradient-warm);
  border-radius: 2px;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

/* About Section */
.about-section {
  padding: 6rem 0;
  background: var(--background-light);
}

.about-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4rem;
  align-items: start;
}

.about-text {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.about-card {
  background: white;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: var(--shadow-light);
  transition: var(--transition-smooth);
  border-left: 4px solid var(--primary-color);
}

.about-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
}

.about-card h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.values-list {
  list-style: none;
  padding: 0;
}

.values-list li {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
  padding: 0.5rem 0;
}

.values-list i {
  color: var(--secondary-color);
  font-size: 1.25rem;
}

.about-image {
  position: relative;
}

.about-img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: var(--shadow-heavy);
  clip-path: inset(0% 0% 5% 5%);
  transition: var(--transition-smooth);
}

.about-img:hover {
  transform: scale(1.02);
}

/* Programs Section */
.programs-section {
  padding: 6rem 0;
  background: white;
}

.programs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.program-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-light);
  transition: var(--transition-smooth);
  position: relative;
}

.program-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-heavy);
}

.program-image {
  position: relative;
  height: 250px;
  overflow: hidden;
}

.program-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  clip-path: inset(0% 0% 5% 5%);
  transition: var(--transition-smooth);
}

.program-card:hover .program-img {
  transform: scale(1.1);
}

.program-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(30, 58, 138, 0.9);
  color: white;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  opacity: 0;
  transition: var(--transition-smooth);
}

.program-card:hover .program-overlay {
  opacity: 1;
}

.program-content {
  padding: 2rem;
}

.program-content h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.program-features {
  list-style: none;
  margin: 1.5rem 0;
}

.program-features li {
  padding: 0.5rem 0;
  position: relative;
  padding-left: 1.5rem;
}

.program-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--secondary-color);
  font-weight: bold;
}

.program-btn {
  display: inline-block;
  background: var(--gradient-primary);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition-smooth);
}

.program-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

/* Community Impact Section */
.impact-section {
  padding: 6rem 0;
  background: var(--background-light);
}

.impact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.impact-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.stat-card {
  background: white;
  padding: 2rem;
  border-radius: 16px;
  text-align: center;
  box-shadow: var(--shadow-light);
  transition: var(--transition-smooth);
  border-top: 4px solid var(--secondary-color);
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
}

.stat-icon {
  width: 60px;
  height: 60px;
  background: var(--gradient-warm);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.5rem;
  color: white;
}

.stat-info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-light);
  font-weight: 500;
}

.impact-stories {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.story-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-light);
  transition: var(--transition-smooth);
}

.story-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
}

.story-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  clip-path: inset(0% 0% 5% 5%);
}

.story-content {
  padding: 2rem;
}

.story-content h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.story-content p {
  font-style: italic;
  margin-bottom: 1rem;
  line-height: 1.7;
}

.story-author {
  font-weight: 600;
  color: var(--text-dark);
}

/* Subscribe Section */
.subscribe-section {
  padding: 4rem 0;
  background: var(--gradient-primary);
  color: white;
}

.subscribe-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.subscribe-text h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.subscribe-text p {
  font-size: 1.125rem;
  opacity: 0.9;
  margin: 0;
}

.newsletter-form {
  background: white;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: var(--shadow-heavy);
}

.form-group {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.email-input {
  flex: 1;
  padding: 1rem;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  font-size: 1rem;
  transition: var(--transition-smooth);
}

.email-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

.subscribe-btn {
  background: var(--gradient-primary);
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.subscribe-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.form-note {
  font-size: 0.875rem;
  color: var(--text-light);
  margin: 0;
}

/* Contact Section */
.contact-section {
  padding: 6rem 0;
  background: white;
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--background-light);
  border-radius: 12px;
  transition: var(--transition-smooth);
}

.contact-card:hover {
  background: white;
  box-shadow: var(--shadow-light);
  transform: translateX(5px);
}

.contact-icon {
  width: 50px;
  height: 50px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.contact-details h3 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}

.contact-details p {
  margin-bottom: 0.25rem;
  font-weight: 500;
}

.contact-details small {
  color: var(--text-light);
  font-size: 0.875rem;
}

.contact-map {
  position: relative;
}

.map-container {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-medium);
  height: 400px;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Footer */
.footer {
  background: var(--text-dark);
  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: var(--secondary-color);
  margin-bottom: 1rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.footer-logo-img {
  width: 65px;
  height: 65px;
  object-fit: contain;
  transition: var(--transition-smooth);
}

.footer-logo-img:hover {
  transform: scale(1.05);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: #d1d5db;
  text-decoration: none;
  transition: var(--transition-smooth);
}

.footer-links a:hover {
  color: var(--secondary-color);
}

.footer-contact p {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  color: #d1d5db;
}

.footer-contact i {
  color: var(--secondary-color);
  width: 16px;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--gradient-primary);
  color: white;
  border-radius: 50%;
  text-decoration: none;
  transition: var(--transition-smooth);
}

.social-link:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-medium);
}

.footer-bottom {
  border-top: 1px solid #374151;
  padding-top: 1rem;
  text-align: center;
  color: #9ca3af;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .hero-right {
    order: -1;
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contact-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .subscribe-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .impact-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    gap: 1rem;
  }

  .nav-list {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-stats {
    flex-direction: column;
    gap: 1rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .hero-image-card {
    animation: none;
    transform: perspective(1000px) rotateY(0deg);
  }

  .hero-image-card:hover {
    transform: perspective(1000px) rotateY(0deg) scale(1.02);
  }

  .image-overlay {
    transform: translateY(0);
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  }

  .programs-grid {
    grid-template-columns: 1fr;
  }

  .impact-stats {
    grid-template-columns: 1fr;
  }

  .form-group {
    flex-direction: column;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  /* Reduce animation intensity on mobile */
  .hero-bg-image {
    animation: none;
  }

  .hero-overlay::after {
    animation: none;
  }

  .stat-item {
    animation: none;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  .hero-title {
    font-size: 2rem;
  }

  .section-title {
    font-size: 1.875rem;
  }

  .about-card,
  .program-card,
  .contact-card {
    padding: 1.5rem;
  }
}

/* Animation Keyframes */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Apply animations to sections */
.about-section,
.programs-section,
.impact-section,
.contact-section {
  animation: fadeInUp 0.8s ease-out;
}

/* Smooth scrolling for anchor links */
html {
  scroll-padding-top: 100px;
}

/* Focus styles for accessibility */
.nav-link:focus,
.btn:focus,
.email-input:focus,
.subscribe-btn:focus {
  outline: 2px solid var(--secondary-color);
  outline-offset: 2px;
}

/* Respect user's motion preferences */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .hero-bg-image {
    animation: none;
  }

  .hero-overlay::before,
  .hero-overlay::after {
    animation: none;
  }

  .hero-image-card {
    animation: none;
  }

  .stat-item {
    animation: none;
  }
}

/* Print styles */
@media print {
  .header-3d,
  .footer {
    display: none;
  }

  .hero-section {
    margin-top: 0;
  }

  body {
    font-size: 12pt;
    line-height: 1.4;
  }

  * {
    animation: none !important;
    transition: none !important;
  }
}
