* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Color Variables */
:root {
  --primary: #1b5e3f;
  --primary-light: #2a7d52;
  --primary-dark: #0d3d26;
  --secondary: #f0f8f4;
  --accent: #d4af37;
  --text: #1a1a1a;
  --text-light: #666;
  --background: #ffffff;
  --card-bg: #f8f8f8;
  --border: #e0e0e0;
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

:root.dark {
  --background: #0a0e0a;
  --card-bg: #131813;
  --text: #f5f5f5;
  --text-light: #b0b0b0;
  --border: #2a2a2a;
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background-color: var(--background);
  color: var(--text);
  line-height: 1.6;
  transition: background-color 0.4s cubic-bezier(0.4, 0, 0.2, 1), color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

/* Navigation */
.navbar {
  position: sticky;
  top: 0;
  background-color: var(--background);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  transition: background-color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
  gap: 30px;
}

.nav-logo {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 2px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
}

.nav-logo:hover {
  transform: scale(1.05);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 35px;
  margin: 0;
  flex: 1;
  justify-content: center;
}

.nav-link {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  font-size: 14px;
  transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  cursor: pointer;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover {
  color: var(--primary);
}

.nav-link:hover::after {
  width: 100%;
}

.theme-toggle {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 8px;
}

.theme-toggle:hover {
  transform: rotate(20deg) scale(1.1);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--text);
}

/* Hero Section */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 100px 20px;
  max-width: 1200px;
  margin: 0 auto;
  min-height: 600px;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.hero-title {
  font-size: 56px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--primary);
}

.hero-subtitle {
  font-size: 20px;
  color: var(--text-light);
  max-width: 500px;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.hero-image {
  width: 100%;
  height: 400px;
  border-radius: 16px;
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow);
  animation: slideInRight 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Buttons */
.btn {
  padding: 14px 32px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
}

.btn-primary {
  background-color: var(--primary);
  color: white;
  box-shadow: 0 4px 15px rgba(27, 94, 63, 0.2);
}

.btn-primary:hover {
  background-color: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(27, 94, 63, 0.3);
}

.btn-secondary {
  background-color: var(--card-bg);
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-secondary:hover {
  background-color: var(--primary);
  color: white;
  transform: translateY(-2px);
}

/* Sections */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-title {
  font-size: 42px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 60px;
  color: var(--primary);
}

.page-header {
  text-align: center;
  padding: 80px 20px 40px;
  background: linear-gradient(135deg, rgba(27, 94, 63, 0.1) 0%, rgba(212, 175, 55, 0.05) 100%);
}

.page-title {
  font-size: 48px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 10px;
}

.page-subtitle {
  font-size: 18px;
  color: var(--text-light);
  max-width: 500px;
  margin: 0 auto;
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 80px;
}

.stat-card {
  background-color: var(--card-bg);
  padding: 40px;
  border-radius: 12px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s;
}

.stat-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
}

.stat-number {
  font-size: 48px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 10px;
}

.stat-label {
  font-size: 16px;
  color: var(--text-light);
  font-weight: 500;
}

/* Learn More Section */
.learn-more-section {
  padding: 100px 20px;
  background-color: var(--card-bg);
}

.learn-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 40px;
}

.learn-card {
  background-color: var(--background);
  padding: 40px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  position: relative;
  min-height: 350px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.learn-card-overlay {
  background: linear-gradient(135deg, rgba(27, 94, 63, 0.95) 0%, rgba(27, 94, 63, 0.88) 100%);
  padding: 30px;
  border-radius: 8px;
  width: 100%;
  color: white;
}

.learn-card-overlay h3 {
  font-size: 24px;
  color: white;
  margin-bottom: 15px;
  font-weight: 700;
}

.learn-card-overlay p {
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.8;
}

/* About Grid */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  padding: 80px 0;
}

.about-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  min-height: 450px;
  background-size: cover;
  background-position: center;
  border-radius: 12px;
  overflow: hidden;
}

.about-text-overlay {
  background: linear-gradient(135deg, rgba(13, 61, 38, 0.93) 0%, rgba(27, 94, 63, 0.88) 100%);
  padding: 40px;
  border-radius: 8px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about-text-overlay h2 {
  font-size: 32px;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 15px;
}

.about-text-overlay p {
  color: rgba(245, 245, 245, 0.95);
  line-height: 1.8;
  font-size: 16px;
  margin-bottom: 10px;
}

/* Location Section */
.location-section {
  padding: 80px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: 60px 0;
}

.location-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.location-info {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.location-info h3 {
  font-size: 24px;
  color: var(--primary);
  font-weight: 700;
}

.location-info p {
  color: var(--text-light);
  line-height: 1.8;
}

.link-primary {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s;
}

.link-primary:hover {
  color: var(--primary-light);
  text-decoration: underline;
}

.location-map {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

/* Events Grid */
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
  padding: 60px 0;
}

.event-card {
  background-color: var(--card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s;
  cursor: pointer;
}

.event-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
}

.event-image {
  width: 100%;
  height: 200px;
  background-size: cover;
  background-position: center;
}

.event-content {
  padding: 25px;
}

.event-date {
  font-size: 12px;
  color: var(--primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.event-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin: 10px 0;
}

.event-desc {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 15px;
}

.event-location {
  font-size: 12px;
  color: var(--text-light);
  display: flex;
  gap: 5px;
  align-items: center;
}

/* Charities Grid */
.charities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
  padding: 60px 0;
}

.charity-card {
  background-color: var(--card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s;
  display: flex;
  flex-direction: column;
}

.charity-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
}

.charity-image {
  width: 100%;
  height: 200px;
  background-size: cover;
  background-position: center;
}

.charity-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.charity-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
}

.charity-desc {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.6;
  flex-grow: 1;
  margin-bottom: 15px;
}

.charity-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s;
}

.charity-link:hover {
  color: var(--primary-light);
}

/* GOSH Hero Banner */
.gosh-hero-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: white;
  padding: 60px 20px;
  text-align: center;
  border-radius: 16px;
  margin: 60px 0;
  box-shadow: var(--shadow);
}

.gosh-banner-content h2 {
  font-size: 36px;
  margin-bottom: 15px;
}

.gosh-banner-content p {
  font-size: 18px;
  margin-bottom: 30px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.gosh-banner-content .btn {
  background-color: var(--accent);
  color: var(--primary);
}

.gosh-banner-content .btn:hover {
  background-color: white;
}

/* Involvement Grid */
.involvement-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding: 60px 0;
}

.involvement-card {
  background-color: var(--card-bg);
  padding: 40px;
  border-radius: 12px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.3s;
}

.involvement-card:hover {
  transform: translateY(-8px);
}

.involvement-card h3 {
  font-size: 28px;
  color: var(--primary);
  margin-bottom: 15px;
  font-weight: 700;
}

.involvement-card p {
  color: var(--text-light);
  margin-bottom: 25px;
  line-height: 1.8;
}

/* Donation Section */
.donations-section {
  padding: 100px 20px;
  background-color: var(--card-bg);
}

.donate-content {
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.donation-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.donation-card {
  background-color: var(--background);
  padding: 40px;
  border-radius: 12px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.3s;
}

.donation-card:hover {
  transform: translateY(-8px);
}

.donation-card h3 {
  font-size: 24px;
  color: var(--primary);
  margin-bottom: 15px;
  font-weight: 700;
}

.donation-card p {
  color: var(--text-light);
  margin-bottom: 20px;
}

/* Video Section */
.video-section {
  background-color: var(--background);
  padding: 60px;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.video-section h2 {
  font-size: 32px;
  color: var(--primary);
  margin-bottom: 30px;
  text-align: center;
  font-weight: 700;
}

.video-container {
  margin-bottom: 30px;
  border-radius: 12px;
  overflow: hidden;
}

.video-section > p {
  text-align: center;
  color: var(--text-light);
  font-size: 16px;
  line-height: 1.8;
}

/* Forms */
.form-container {
  background-color: var(--card-bg);
  padding: 40px;
  border-radius: 12px;
  margin: 40px 0;
  box-shadow: var(--shadow);
  animation: scaleIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

form h3 {
  font-size: 24px;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 10px;
}

form input,
form textarea {
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  background-color: var(--background);
  color: var(--text);
  font-family: inherit;
  transition: border-color 0.3s;
}

form input:focus,
form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(27, 94, 63, 0.1);
}

/* Contact Grid */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  padding: 60px 0;
}

.contact-form-section,
.contact-info-section {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.contact-form-section h2,
.contact-info-section h2 {
  font-size: 28px;
  color: var(--primary);
  font-weight: 700;
}

.contact-block {
  background-color: var(--card-bg);
  padding: 25px;
  border-radius: 12px;
  transition: transform 0.3s;
}

.contact-block:hover {
  transform: translateY(-4px);
}

.contact-block h3 {
  font-size: 18px;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 12px;
}

.contact-block p {
  color: var(--text-light);
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 8px;
}

.contact-block a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s;
}

.contact-block a:hover {
  color: var(--primary-light);
  text-decoration: underline;
}

/* Footer */
.footer {
  background-color: var(--card-bg);
  border-top: 1px solid var(--border);
  padding: 60px 20px 30px;
  margin-top: 100px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.footer-section h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 15px;
}

.footer-section p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.8;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 10px;
}

.footer-section a {
  color: var(--text-light);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s;
}

.footer-section a:hover {
  color: var(--primary);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  color: var(--text-light);
  font-size: 14px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@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);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.animate-fade-in {
  animation: fadeIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.animate-slide-in-left {
  animation: slideInLeft 0.7s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.animate-slide-in-right {
  animation: slideInRight 0.7s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.animate-scale-in {
  animation: scaleIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.animate-delay-0 {
  animation-delay: 0s;
}
.animate-delay-100 {
  animation-delay: 0.1s;
}
.animate-delay-200 {
  animation-delay: 0.2s;
}
.animate-delay-300 {
  animation-delay: 0.3s;
}
.animate-delay-400 {
  animation-delay: 0.4s;
}
.animate-delay-500 {
  animation-delay: 0.5s;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-menu {
    gap: 15px;
    flex-wrap: wrap;
  }

  .nav-link {
    font-size: 12px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 60px 20px;
    min-height: auto;
  }

  .hero-title {
    font-size: 36px;
  }

  .hero-image {
    height: 300px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .location-grid {
    grid-template-columns: 1fr;
  }

  .donation-options {
    grid-template-columns: 1fr;
  }

  .involvement-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .page-title {
    font-size: 36px;
  }

  .section-title {
    font-size: 28px;
  }

  .about-content {
    min-height: 350px;
  }

  .about-text-overlay {
    padding: 25px;
  }

  .learn-card-overlay {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .nav-container {
    height: auto;
    padding: 10px 20px;
    gap: 10px;
  }

  .nav-menu {
    gap: 10px;
  }

  .nav-link {
    font-size: 11px;
  }

  .hero-title {
    font-size: 28px;
  }

  .hero-subtitle {
    font-size: 16px;
  }

  .hero-buttons {
    gap: 10px;
  }

  .btn {
    padding: 12px 24px;
    font-size: 14px;
  }

  .page-title {
    font-size: 28px;
  }

  .section-title {
    font-size: 22px;
    margin-bottom: 40px;
  }

  .form-container {
    padding: 20px;
  }
}

.location-image {
  width: 100%;
  height: 300px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.location-image:hover {
  transform: scale(1.02);
}
