/* Base Styles */
:root {
  --color-primary: #0284c7;
  --color-primary-dark: #0369a1;
  --color-primary-light: #38bdf8;
  --color-secondary: #f97316;
  --color-secondary-dark: #ea580c;
  --color-secondary-light: #fb923c;
  --color-accent: #facc15;
  --color-accent-dark: #eab308;
  --color-accent-light: #fde047;
  --color-text: #1f2937;
  --color-text-light: #4b5563;
  --color-text-lighter: #9ca3af;
  --color-background: #ffffff;
  --color-background-soft: #f9fafb;
  --color-background-muted: #f3f4f6;
  --color-border: #e5e7eb;
  --color-border-light: #f3f4f6;
  --font-family: 'Outfit', sans-serif;
  --transition-fast: 0.3s ease;
  --transition-medium: 0.5s ease;
  --transition-slow: 0.8s ease;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  color: var(--color-text);
  line-height: 1.6;
  background-color: var(--color-background);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

ul, ol {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Utility Classes */
.gradient-text {
  background: linear-gradient(to right, var(--color-primary), var(--color-secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  position: relative;
}

.section-title.light {
  color: white;
}

.section-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: rgba(2, 132, 199, 0.1);
  color: var(--color-primary);
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.section-description {
  max-width: 800px;
  margin: 0 auto 2rem;
  color: var(--color-text-light);
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 0.375rem;
  font-weight: 600;
  text-align: center;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.btn-primary {
  background-color: var(--color-primary);
  color: white;
}

.btn-primary:hover {
  background-color: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background-color: var(--color-secondary);
  color: white;
}

.btn-secondary:hover {
  background-color: var(--color-secondary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid white;
  color: white;
}

.btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.btn-gradient {
  background: linear-gradient(to right, var(--color-primary), var(--color-secondary));
  color: white;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.btn-gradient:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, var(--color-primary-dark), var(--color-secondary-dark));
  z-index: -1;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.btn-gradient:hover:before {
  opacity: 1;
}

.btn-gradient:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Header Styles */
/* Header Styles - Updated to match Next.js version */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  transition: all 0.3s ease;
  overflow: hidden;
  height: auto;
}

/* Main background with glass effect */
.header-bg-glass {
  position: absolute;
  inset: 0;
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Cool animated gradient background */
.header-bg-gradient {
  position: absolute;
  inset: 0;
  opacity: 0.1;
}

.header-gradient-animation {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--color-primary), var(--color-secondary), var(--color-primary));
  background-size: 200% 100%;
  animation: gradient-x 15s ease infinite;
}

/* Decorative elements */
.header-decorative-elements {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.decorative-blob {
  position: absolute;
  border-radius: 50%;
}

.blob-1 {
  top: -24px;
  left: -24px;
  width: 64px;
  height: 64px;
  background-color: rgba(2, 132, 199, 0.1);
  filter: blur(24px);
}

.blob-2 {
  top: -12px;
  right: 25%;
  width: 48px;
  height: 48px;
  background-color: rgba(249, 115, 22, 0.1);
  filter: blur(24px);
}

.blob-3 {
  top: 8px;
  right: 33%;
  width: 16px;
  height: 16px;
  background-color: rgba(250, 204, 21, 0.15);
  filter: blur(8px);
}

/* Geometric accents */
.header-geometric-accent {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 0.5px;
  background: linear-gradient(to right, 
      rgba(2, 132, 199, 0.4), 
      rgba(249, 115, 22, 0.4), 
      rgba(2, 132, 199, 0.4));
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  position: relative;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: -0.5rem;
}

@media (min-width: 768px) {
  .logo {
      margin-left: -2rem;
  }
}

@media (min-width: 1024px) {
  .logo {
      margin-left: -4rem;
  }
}

.logo-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 0.375rem;
  transition: transform 0.3s ease;
}

.logo:hover .logo-wrapper {
  transform: scale(1.05);
}

.logo-img {
  width: 50px;
  height: auto;
  border-radius: 0.375rem;
  object-fit: cover;
}

@media (min-width: 768px) {
  .logo-img {
      width: 80px;
  }
}

.logo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top right, rgba(2, 132, 199, 0.2), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.logo:hover .logo-overlay {
  opacity: 1;
}

.logo-text {
  font-weight: 700;
  font-size: 0.875rem;
  background: linear-gradient(to right, var(--color-primary), var(--color-secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: none;
}

@media (min-width: 640px) {
  .logo-text {
      display: inline;
      font-size: 1rem;
  }
}

@media (min-width: 768px) {
  .logo-text {
      font-size: 1.25rem;
  }
}

/* Desktop Navigation */
.desktop-nav {
  display: none;
}

@media (min-width: 768px) {
  .desktop-nav {
      display: flex;
      gap: 2rem;
  }
}

.nav-link {
  position: relative;
  font-weight: 500;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-text);
  transition: color 0.5s ease;
}

.nav-text {
  position: relative;
  display: inline-block;
  transition: all 0.7s ease-in-out;
  background-position: bottom;
  background-repeat: no-repeat;
}

.nav-link:hover {
  color: var(--color-primary);
}

.nav-link.active .nav-text {
  color: var(--color-primary);
  background-image: linear-gradient(to right, var(--color-primary), var(--color-primary));
  background-size: 100% 1px;
}

.nav-link:not(.active) .nav-text {
  background-image: linear-gradient(to right, var(--color-text), var(--color-text));
  background-size: 0% 1px;
}

.nav-link:hover .nav-text {
  background-size: 100% 1px;
}

.nav-underline {
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(to right, var(--color-primary), var(--color-secondary), var(--color-primary));
  border-radius: 9999px;
  opacity: 0;
  transition: opacity 0.7s ease-in-out;
}

.nav-link.active .nav-underline {
  opacity: 1;
}

.nav-dot {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  top: -12px;
  opacity: 0;
  transition: all 0.7s ease-in-out;
}

.nav-dot-center {
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--color-secondary);
}

.nav-dot-right {
  right: 0;
  background-color: var(--color-primary);
  transition-delay: 0.3s;
}

.nav-dot-left {
  left: 0;
  background-color: var(--color-accent);
  transition-delay: 0.7s;
}

.nav-link.active .nav-dot {
  opacity: 0.75;
  animation: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes ping {
  75%, 100% {
      transform: scale(2);
      opacity: 0;
  }
}

.donate-btn {
  display: none;
  background: linear-gradient(to right, var(--color-secondary), var(--color-secondary-dark));
  color: white;
  padding: 0.5rem 1.5rem;
  border-radius: 0.375rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

@media (min-width: 768px) {
  .donate-btn {
      display: block;
  }
}

.donate-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Mobile Navigation Fix */
.mobile-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: white;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  border-radius: 0 0 0.75rem 0.75rem;
  padding: 1rem;
  z-index: 99;
  transition: all 0.3s ease;
  overflow: hidden;
  max-height: 0;
}

.mobile-nav.active {
  display: block;
  max-height: 500px; /* Adjust as needed */
  padding: 1rem;
}

.mobile-nav-link {
  display: block;
  padding: 0.75rem 0;
  font-weight: 500;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border);
  transition: color 0.3s ease;
}

.mobile-nav-link:last-child {
  border-bottom: none;
}

.mobile-nav-link:hover {
  color: var(--color-primary);
}

.mobile-nav-link.active {
  color: var(--color-primary);
}

.mobile-nav-indicator {
  position: relative;
  height: 3px;
  width: 50px;
  margin-top: 4px;
  overflow: hidden;
  border-radius: 9999px;
  background-color: rgba(0, 0, 0, 0.1);
}

.mobile-nav-indicator-inner {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--color-primary), var(--color-secondary), var(--color-primary));
  background-size: 200% 100%;
  opacity: 0;
  transition: opacity 0.7s ease-in-out;
}

.mobile-nav-link.active .mobile-nav-indicator-inner {
  opacity: 1;
  animation: gradient-x 15s ease infinite;
}

.mobile-donate-btn {
  display: block;
  background: linear-gradient(to right, var(--color-secondary), var(--color-secondary-dark));
  color: white;
  padding: 0.75rem 0;
  border-radius: 0.375rem;
  font-weight: 600;
  text-align: center;
  margin-top: 1rem;
  transition: all 0.3s ease;
}

.mobile-donate-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Body class when mobile menu is open */
body.mobile-menu-open {
  overflow: hidden;
}

/* Ensure header has proper overflow handling */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  transition: all 0.3s ease;
  overflow: visible; /* Changed from hidden to visible */
  height: auto;
}


/* Add this to your existing animations */
@keyframes gradient-x {
  0% {
      background-position: 0% 50%;
  }
  50% {
      background-position: 100% 50%;
  }
  100% {
      background-position: 0% 50%;
  }
}


.logo-text {
  font-size: 1.75rem;
  font-weight: 700;
  /* color: white; */
}



/* Mobile Footer Styles */
/* Compact Mobile Footer Styles */
.site-footer {
  background-color: #1a1d23;
  color: #fff;
  padding: 1rem 1rem 0; /* Reduced padding */
  font-family: "Outfit", sans-serif;
}

.footer-container {
  max-width: 100%;
}

/* Logo and Social Media Section - More compact */
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem; /* Reduced margin */
}

.footer-logo-container {
  display: flex;
  align-items: center;
}

.footer-logo {
  width: 36px; /* Smaller logo */
  height: 36px;
  border-radius: 6px;
  border: 1px solid #1e88e5; /* Thinner border */
  padding: 2px;
  background-color: #fff;
}

.footer-logo-text {
  font-size: 22px; /* Smaller font */
  font-weight: 700;
  margin-left: 8px; /* Less spacing */
  color: #fff;
}

.footer-social {
  display: flex;
  gap: 15px; /* Less spacing between icons */
}

.social-icon {
  color: #8a8d93;
  transition: color 0.3s ease;
}

.social-icon svg {
  width: 20px; /* Smaller icons */
  height: 20px;
}

/* Tagline - More compact */
.footer-tagline {
  margin-bottom: 0.75rem; /* Reduced margin */
}

.footer-tagline p {
  font-size: 14px; /* Smaller font */
  line-height: 1.4; /* Tighter line height */
  color: #fff;
}

/* Dropdown Sections - More compact */
.footer-dropdown {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 0.5rem; /* Reduced margin */
}

.footer-heading {
  font-size: 16px; /* Smaller font */
  font-weight: 600;
  padding: 0.5rem 0; /* Less padding */
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.dropdown-arrow {
  transition: transform 0.3s ease;
}

.footer-dropdown.active .dropdown-arrow {
  transform: rotate(180deg);
}

.dropdown-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.footer-dropdown.active .dropdown-content {
  max-height: 200px; /* Smaller max height */
}

.dropdown-content ul {
  list-style: none;
  padding: 0;
  margin: 0 0 0.5rem 0; /* Reduced margin */
}

.dropdown-content ul li {
  margin-bottom: 0.5rem; /* Less spacing */
}

.dropdown-content ul li a,
.dropdown-content ul li address {
  color: #8a8d93;
  text-decoration: none;
  font-style: normal;
  font-size: 13px; /* Smaller font */
  transition: color 0.3s ease;
}

/* Copyright Section - More compact */
.footer-copyright {
  background: linear-gradient(
    90deg,
    rgba(30, 136, 229, 0.2) 0%,
    rgba(23, 33, 43, 0.8) 50%,
    rgba(245, 112, 59, 0.2) 100%
  );
  text-align: center;
  padding: 0.75rem 0.5rem; /* Less padding */
  margin: 1rem -1rem 0; /* Reduced margin */
  border-radius: 8px 8px 0 0; /* Smaller radius */
}

.footer-copyright p {
  margin: 3px 0; /* Less margin */
  font-size: 12px; /* Smaller font */
  color: #8a8d93;
}

.footer-credit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px; /* Less spacing */
}

.heart {
  color: #f5703b;
  font-size: 10px; /* Smaller heart */
}

.credit-name {
  background: linear-gradient(90deg, #1e88e5, #f5703b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 600;
  font-size: 12px; /* Smaller font */
}

/* Media query to ensure this only applies to mobile */
@media (min-width: 768px) {
  .site-footer {
    /* Add desktop styles here if needed */
    padding: 2rem 1.5rem 0; /* Restore padding for desktop */
  }

  /* Restore sizes for desktop */
  .footer-logo {
    width: 50px;
    height: 50px;
  }

  .footer-logo-text {
    font-size: 28px;
  }

  .social-icon svg {
    width: 24px;
    height: 24px;
  }

  .footer-tagline p {
    font-size: 16px;
    line-height: 1.5;
  }

  .footer-heading {
    font-size: 20px;
    padding: 1rem 0;
  }

  .dropdown-content ul li a,
  .dropdown-content ul li address {
    font-size: 14px;
  }

  .footer-copyright {
    padding: 1.5rem 1rem;
  }

  .footer-copyright p {
    font-size: 14px;
  }

  .heart {
    font-size: 14px;
  }

  .credit-name {
    font-size: 14px;
  }
}

@media (min-width: 768px) {
  .desktop-nav {
      display: flex;
      gap: 2rem;
  }
  
  .donate-btn {
      display: block;
  }
  
  .mobile-menu-btn {
      display: none;
  }
  
  .slide-title {
      font-size: 3.5rem;
  }
  
  .slide-description {
      font-size: 1.5rem;
  }
  
  .impact-counters {
      grid-template-columns: repeat(4, 1fr);
  }
  
  .programs-grid {
      grid-template-columns: repeat(3, 1fr);
  }
  
  .testimonials-grid {
      grid-template-columns: repeat(3, 1fr);
  }
  
  .footer-grid {
      grid-template-columns: repeat(3, 1fr);
  }
}