/* --- Industrial Standard Modern Styles --- */
:root {
  --primary: #2c3e50;
  --accent: #0077b6;
  --background: #f8f9fa;
  --surface: #fff;
  --text: #222831;
  --text-secondary: #6c757d;
  --success: #43aa8b;
  --error: #e63946;
  --radius: 0.75rem;
  --shadow: 0 2px 8px rgba(44,62,80,0.08);
  --gradient-primary: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
  --gradient-accent: linear-gradient(135deg, #0077b6 0%, #005a8b 100%);
}

/* Organization Name Styling */
.org-name {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  background: var(--gradient-primary);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 0.8px;
  line-height: 1.3;
  text-transform: uppercase;
  white-space: nowrap;
  margin: 0;
  position: relative;
  padding: 0.5rem 0;
  animation: slideLeftRight 8s ease-in-out infinite;
  overflow: hidden;
}

.org-name::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gradient-accent);
  border-radius: 1px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.org-name:hover::before {
  transform: scaleX(1);
}

.org-name-footer {
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  background: var(--gradient-primary);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 0.6px;
  line-height: 1.4;
  text-transform: uppercase;
  margin: 0;
  text-align: center;
  animation: slideLeftRight 10s ease-in-out infinite;
  overflow: hidden;
}

.org-name-copyright {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  color: #b2dafa;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  margin: 0;
  animation: slideLeftRight 12s ease-in-out infinite;
  overflow: hidden;
}

/* Animation Keyframes */
@keyframes slideLeftRight {
  0% {
    transform: translateX(-20px);
    opacity: 0.8;
  }
  25% {
    transform: translateX(0px);
    opacity: 1;
  }
  50% {
    transform: translateX(20px);
    opacity: 0.8;
  }
  75% {
    transform: translateX(0px);
    opacity: 1;
  }
  100% {
    transform: translateX(-20px);
    opacity: 0.8;
  }
}

/* Alternative animation for variety */
@keyframes slideRightLeft {
  0% {
    transform: translateX(20px);
    opacity: 0.8;
  }
  25% {
    transform: translateX(0px);
    opacity: 1;
  }
  50% {
    transform: translateX(-20px);
    opacity: 0.8;
  }
  75% {
    transform: translateX(0px);
    opacity: 1;
  }
  100% {
    transform: translateX(20px);
    opacity: 0.8;
  }
}

body {
  font-family: 'Inter', Arial, sans-serif;
  background: var(--background);
  color: var(--text);
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

.navbar {
  background: var(--surface);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.5rem 2rem;
}
.nav-logo h2 {
  /* Updated styling now uses .org-name class */
}
.nav-menu {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  transition: color 0.2s;
  position: relative;
}
.nav-link.active,
.nav-link:hover {
  color: var(--accent);
}
.nav-link.active::after,
.nav-link:hover::after {
  content: '';
  display: block;
  height: 2px;
  background: var(--accent);
  width: 100%;
  position: absolute;
  left: 0;
  bottom: -4px;
  border-radius: 2px;
}
.lang-toggle {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  padding: 0.4rem 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.lang-toggle:hover {
  background: var(--primary);
}
.hamburger {
  display: none;
}

/* Hero Section */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 3.5rem 3rem 2.5rem 3rem;
  background: linear-gradient(120deg, #f8f9fa 60%, #e3f2fd 100%);
  min-height: 500px;
  gap: 2.5rem;
}
.hero-content {
  max-width: 900px;
  flex: 1 1 0;
  padding-right: 1.5rem;
  width: 100%;
}
.hero-content h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 1rem;
}
.hero-content p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}
.hero-buttons {
  display: flex;
  gap: 1rem;
}
.btn {
  padding: 0.7rem 1.5rem;
  border-radius: var(--radius);
  border: none;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  box-shadow: 0 1px 4px rgba(44,62,80,0.07);
  text-decoration: none;
  display: inline-block;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--primary);
}
.btn-secondary {
  background: var(--surface);
  color: var(--accent);
  border: 1.5px solid var(--accent);
}
.btn-secondary:hover {
  background: var(--accent);
  color: #fff;
}
.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: #fff;
}

/* Carousel Styles */
.hero-image {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 500px;
  min-width: 400px;
  max-width: 550px;
  height: 450px;
}
.carousel {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(44,62,80,0.10);
  background: #fff;
}
.carousel-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  position: absolute;
  left: 0;
  top: 0;
  transition: opacity 0.7s;
}
.carousel-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}
.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #b2dafa;
  opacity: 0.7;
  cursor: pointer;
  transition: background 0.2s, opacity 0.2s;
}
.carousel-dot.active {
  background: var(--accent);
  opacity: 1;
}

/* Hero Circular Carousel */
.hero-circle-carousel {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  max-width: 260px;
  margin-right: 1.5rem;
}
.circle-carousel {
  position: relative;
  width: 200px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.circle-carousel-image {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 4px 16px rgba(44,62,80,0.15);
  position: absolute;
  left: 0;
  top: 0;
  transition: opacity 0.7s, transform 0.7s;
  opacity: 1;
  background: #fff;
}
.circle-carousel-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}
.circle-carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #b2dafa;
  opacity: 0.7;
  cursor: pointer;
  transition: background 0.2s, opacity 0.2s;
}
.circle-carousel-dot.active {
  background: var(--accent);
  opacity: 1;
}

/* Mission & Programs */
section {
  padding: 3rem 2rem;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
}
.mission, .programs-preview, .cta {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 2rem;
}
.mission h2, .programs-preview h2, .cta h2 {
  font-family: 'Playfair Display', serif;
  color: var(--primary);
  font-size: 2rem;
  margin-bottom: 1rem;
}
.impact-stats {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
}
.stat {
  background: #f1f3f4;
  border-radius: var(--radius);
  padding: 1.5rem 2rem;
  text-align: center;
  box-shadow: 0 1px 4px rgba(44,62,80,0.05);
}
.stat h3 {
  color: var(--accent);
  font-size: 2rem;
  margin: 0 0 0.5rem 0;
}
.stat p {
  color: var(--text-secondary);
  margin: 0;
}
.programs-grid {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}
.program-card {
  background: #f1f3f4;
  border-radius: var(--radius);
  box-shadow: 0 1px 4px rgba(44,62,80,0.05);
  padding: 2rem 1.5rem;
  flex: 1 1 250px;
  min-width: 250px;
  max-width: 350px;
  margin-bottom: 1rem;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}
.program-card:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 4px 16px rgba(44,62,80,0.12);
}
.program-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}
.program-card h3 {
  font-size: 1.25rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}
.program-card p {
  color: var(--text-secondary);
  font-size: 1rem;
}

/* Program Sections */
.program-section {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin: 2rem 0;
  padding: 2rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.program-section:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(44,62,80,0.12);
}

.program-title {
  font-family: 'Playfair Display', serif;
  color: var(--primary);
  font-size: 1.8rem;
  margin-bottom: 1rem;
  text-align: center;
  position: relative;
}

.program-title::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--gradient-accent);
  border-radius: 2px;
}

.program-description {
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1.6;
  text-align: center;
  margin-bottom: 2rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.program-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  margin-top: 2rem;
}

.gallery-loading {
  text-align: center;
  color: var(--text-secondary);
  padding: 2rem;
  font-style: italic;
}

.gallery-item {
  background: #f8f9fa;
  border-radius: var(--radius);
  box-shadow: 0 1px 4px rgba(44,62,80,0.07);
  overflow: hidden;
  width: 280px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 16px rgba(44,62,80,0.15);
}

.gallery-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item-caption {
  padding: 1rem;
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.4;
}

/* CTA Section */
.cta-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

/* Footer */
.footer {
  background: var(--primary);
  color: #fff;
  padding: 2rem 0 1rem 0;
  margin-top: 2rem;
}
.footer-content {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto 1rem auto;
}
.footer-section {
  flex: 1 1 200px;
  min-width: 200px;
}
.footer-section h3, .footer-section h4 {
  font-family: 'Playfair Display', serif;
  color: #fff;
  margin-bottom: 0.5rem;
}
.footer-section p, .footer-section ul, .footer-section li {
  color: #e0e0e0;
  font-size: 1rem;
  margin: 0;
  list-style: none;
  padding: 0;
}
.footer-section ul {
  margin-top: 0.5rem;
}
.footer-section a {
  color: #b2dafa;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-section a:hover {
  color: #fff;
}
.footer-bottom {
  text-align: center;
  color: #b2dafa;
  font-size: 0.95rem;
  margin-top: 1rem;
}

/* Team Grid */
.team-grid {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: stretch;
  gap: 2.5rem;
  flex-wrap: wrap;
}
.team-member {
  background: #fff;
  padding: 2rem 1.5rem;
  border-radius: 0.75rem;
  box-shadow: 0 2px 8px rgba(44,62,80,0.08);
  text-align: center;
  min-width: 240px;
  max-width: 300px;
  flex: 1 1 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Donation Modal Styles */
.donation-modal {
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  overflow: auto;
  background: rgba(44,62,80,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.donation-modal-content {
  background: #fff;
  margin: auto;
  padding: 2.5rem 2rem 2rem 2rem;
  border-radius: 1.2rem;
  box-shadow: 0 4px 32px rgba(44,62,80,0.18);
  max-width: 350px;
  width: 90vw;
  position: relative;
  text-align: center;
  animation: modalFadeIn 0.3s;
}
.donation-modal-close {
  position: absolute;
  top: 1rem;
  right: 1.2rem;
  font-size: 2rem;
  color: #0077b6;
  cursor: pointer;
  font-weight: 700;
  transition: color 0.2s;
}
.donation-modal-close:hover {
  color: #e63946;
}
@keyframes modalFadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

/* Responsive Design */
@media (max-width: 900px) {
  .nav-container, .container, .footer-content {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .hero {
    flex-direction: column;
    text-align: center;
    padding: 2rem 1rem 1.5rem 1rem;
    gap: 2rem;
    min-height: unset;
  }
  .hero-image {
    width: 100%;
    max-width: 400px;
    min-width: 0;
    height: 220px;
    margin: 0 auto;
  }
  .hero-circle-carousel {
    margin: 0 auto 1.5rem auto;
    max-width: 180px;
  }
  .circle-carousel, .circle-carousel-image {
    width: 140px;
    height: 140px;
  }
  .carousel {
    height: 100%;
  }
  .programs-grid, .impact-stats, .footer-content {
    flex-direction: column;
    gap: 1rem;
  }
  .team-grid {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }
}
@media (max-width: 600px) {
  .nav-menu {
    gap: 1rem;
  }
  .hero-content h1 {
    font-size: 1.5rem;
  }
  .mission h2, .programs-preview h2, .cta h2 {
    font-size: 1.3rem;
  }
  section {
    padding: 1.5rem 0.5rem;
  }
  .footer {
    padding: 1rem 0 0.5rem 0;
  }
  .hero-image {
    max-width: 100%;
    height: 160px;
  }
  .carousel {
    height: 100%;
  }
}