/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Outfit', 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: #333;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

p {
  margin-bottom: 1rem;
  font-size: 1.1rem;
  color: #64748b;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Header */
header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 0;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.8rem;
  font-weight: 700;
  color: #059669;
  text-decoration: none;
}

.logo-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-menu a {
  text-decoration: none;
  color: #64748b;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

.nav-menu a:hover {
  color: #059669;
}

.nav-menu a::after {
  content: '▼';
  font-size: 0.7rem;
  margin-left: 0.3rem;
  opacity: 0.7;
}

.cta-button {
  background: linear-gradient(135deg, #059669, #10b981);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(5, 150, 105, 0.3);
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(5, 150, 105, 0.4);
}

/* Hamburger Menu Button */
.hamburger-menu {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.hamburger-menu:hover {
  background: rgba(5, 150, 105, 0.1);
}

.hamburger-menu:focus {
  outline: 2px solid #059669;
  outline-offset: 2px;
}

.hamburger-line {
  display: block;
  width: 25px;
  height: 3px;
  background: #059669;
  margin: 5px auto;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 2px;
  position: relative;
}

.hamburger-menu.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
  background: #059669;
}

.hamburger-menu.active .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: translateX(-20px);
}

.hamburger-menu.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
  background: #059669;
}

/* Hover effects for hamburger lines */
.hamburger-menu:hover .hamburger-line {
  background: #047857;
}

.hamburger-menu.active:hover .hamburger-line {
  background: #047857;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding: 8rem 0 4rem;
  overflow: hidden;
}

.hero-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero h1 {
  color: #1e293b;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #059669, #f59e0b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.3rem;
  color: #64748b;
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.donate-button {
  background: linear-gradient(135deg, #f59e0b, #f97316);
  color: white;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}

.donate-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(245, 158, 11, 0.5);
}

.donate-button::before {
  content: '❤';
  font-size: 1.2rem;
}

/* Decorative Elements */
.hero::before {
  content: '';
  position: absolute;
  top: 10%;
  left: 5%;
  width: 120px;
  height: 120px;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  border-radius: 50%;
  opacity: 0.1;
  animation: float 6s ease-in-out infinite;
}

.hero::after {
  content: '';
  position: absolute;
  top: 20%;
  right: 10%;
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  border-radius: 50%;
  opacity: 0.1;
  animation: float 8s ease-in-out infinite reverse;
}

.floating-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.1;
  animation: float 10s ease-in-out infinite;
}

.shape-1 {
  top: 30%;
  left: 15%;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #10b981, #059669);
}

.shape-2 {
  top: 60%;
  right: 20%;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #f97316, #ea580c);
}

.shape-3 {
  bottom: 20%;
  left: 20%;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

/* Hero Images */
.hero-images {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 1;
}

.hero-image {
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid white;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.hero-image-1 {
  top: 15%;
  left: 10%;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 3rem;
}

.hero-image-2 {
  top: 25%;
  right: 15%;
  background: linear-gradient(135deg, #10b981, #059669);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2.5rem;
}

.hero-image-3 {
  bottom: 30%;
  left: 20%;
  background: linear-gradient(135deg, #f97316, #ea580c);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2.5rem;
}

.hero-image-4 {
  bottom: 20%;
  right: 25%;
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2rem;
}

/* Services Section */
.services {
  padding: 6rem 0;
  background: white;
  position: relative;
}

.services::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 70%);
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
  position: relative;
}

.section-badge {
  display: inline-block;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.section-title {
  color: #1e293b;
  margin-bottom: 1rem;
}

.section-subtitle {
  color: #64748b;
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.service-card {
  background: white;
  padding: 2.5rem;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(135deg, #10b981, #059669);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.service-icon {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #d1fae5, #a7f3d0);
  color: #059669;
}

.service-card:nth-child(2) .service-icon {
  background: linear-gradient(135deg, #fce7f3, #fbcfe8);
  color: #ec4899;
}

.service-card h3 {
  color: #1e293b;
  margin-bottom: 1rem;
}

.service-card p {
  color: #64748b;
  line-height: 1.7;
}

/* Navigation Arrows */
.nav-arrows {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 3rem;
}

.nav-arrow {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.nav-arrow.prev {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
}

.nav-arrow.next {
  background: white;
  color: #64748b;
  border: 2px solid #e2e8f0;
}

.nav-arrow:hover {
  transform: scale(1.1);
}

/* Footer */
footer {
  background: linear-gradient(135deg, #1e293b, #334155);
  color: white;
  padding: 4rem 0 2rem;
  text-align: center;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  color: white;
  margin-bottom: 1rem;
}

.footer-section p,
.footer-section a {
  color: #cbd5e1;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: #10b981;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10b981, #059669);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(16, 185, 129, 0.4);
}

.footer-bottom {
  border-top: 1px solid #475569;
  padding-top: 2rem;
  color: #94a3b8;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hamburger-menu {
    display: block;
    z-index: 1001;
  }
  
  .nav-menu {
    position: fixed;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    flex-direction: column;
    padding: 2rem 1.5rem;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    max-height: calc(100vh - 100%);
    overflow-y: auto;
    display: flex;
  }
  
  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  
  .nav-menu li {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    width: 100%;
    margin: 0;
  }
  
  .nav-menu.active li {
    opacity: 1;
    transform: translateY(0);
  }
  
  .nav-menu li:nth-child(1) { transition-delay: 0.1s; }
  .nav-menu li:nth-child(2) { transition-delay: 0.2s; }
  .nav-menu li:nth-child(3) { transition-delay: 0.3s; }
  .nav-menu li:nth-child(4) { transition-delay: 0.4s; }
  .nav-menu li:nth-child(5) { transition-delay: 0.5s; }
  .nav-menu li:nth-child(6) { transition-delay: 0.6s; }
  
  .nav-menu a {
    padding: 1rem 0;
    font-size: 1.1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    display: block;
    width: 100%;
    text-align: left;
    transition: all 0.2s ease;
  }
  
  .nav-menu a:hover {
    background: rgba(5, 150, 105, 0.05);
    padding-left: 0.5rem;
  }
  
  .nav-menu a::after {
    display: none;
  }
  
  .cta-button {
    margin-top: 1rem;
    width: 100%;
    text-align: center;
    padding: 1rem;
    border-radius: 8px;
  }
  
  .hero {
    padding: 6rem 0 2rem;
  }
  
  .hero-images {
    display: none;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .container {
    padding: 0 1rem;
  }
  
  .service-card {
    padding: 2rem;
  }
  
  /* Prevent body scroll when menu is open */
  body.menu-open {
    overflow: hidden;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  .hero p {
    font-size: 1.1rem;
  }
  
  .donate-button {
    padding: 0.875rem 2rem;
    font-size: 1rem;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Skip Link for Accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: #10b981;
  color: white;
  padding: 8px;
  text-decoration: none;
  border-radius: 4px;
  z-index: 1001;
  transition: top 0.3s ease;
}

.skip-link:focus {
  top: 6px;
}

/* About Section */
.about {
  padding: 6rem 0;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.about-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.about-content p {
  font-size: 1.2rem;
  line-height: 1.8;
  margin-bottom: 2rem;
  color: #64748b;
}

.about-cta {
  text-align: center;
  margin-top: 2rem;
}

/* Donate Section */
.donate {
  padding: 6rem 0;
  background: white;
}

.donate-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.donate-content p {
  font-size: 1.2rem;
  line-height: 1.8;
  margin-bottom: 2rem;
  color: #64748b;
}

.donate-options {
  background: linear-gradient(135deg, #f0fdf4, #dcfce7);
  padding: 2rem;
  border-radius: 20px;
  margin-top: 2rem;
  text-align: left;
}

.donate-options h3 {
  color: #059669;
  margin-bottom: 1rem;
}

.donate-options ul {
  list-style: none;
  padding: 0;
  margin-bottom: 1.5rem;
}

.donate-options li {
  padding: 0.5rem 0;
  color: #64748b;
  position: relative;
  padding-left: 1.5rem;
}

.donate-options li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #059669;
  font-weight: bold;
}

.donate-options p {
  margin: 0;
  text-align: center;
}

/* Screen Reader Only Content */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Keyboard Navigation Styles */
.keyboard-navigation a:focus,
.keyboard-navigation button:focus,
.keyboard-navigation .service-card:focus {
  outline: 3px solid #10b981;
  outline-offset: 2px;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.3);
}

/* Loading States */
body:not(.loaded) {
  opacity: 0;
  transition: opacity 0.3s ease;
}

body.loaded {
  opacity: 1;
}

/* Focus styles for accessibility */
a:focus,
button:focus {
  outline: 2px solid #10b981;
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .hero h1 {
    color: #000;
    -webkit-text-fill-color: #000;
  }
  
  .service-card {
    border: 2px solid #000;
  }
}

/* Donation Form Styles */
.donation-form-container {
  background: white;
  border-radius: 20px;
  padding: 3rem;
  margin-top: 3rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.donation-form-container h3 {
  color: #059669;
  font-size: 2rem;
  margin-bottom: 2rem;
  text-align: center;
}

.donation-form {
  max-width: 800px;
  margin: 0 auto;
}

.form-section {
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #e5e7eb;
}

.form-section:last-of-type {
  border-bottom: none;
  margin-bottom: 2rem;
}

.form-section h4 {
  color: #059669;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #374151;
  font-size: 1rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.3s ease;
  background: #f9fafb;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #059669;
  background: white;
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #9ca3af;
}

.amount-input {
  position: relative;
  display: flex;
  align-items: center;
}

.currency-symbol {
  position: absolute;
  left: 1rem;
  color: #6b7280;
  font-weight: 600;
  z-index: 1;
}

.amount-input input {
  padding-left: 2.5rem;
}

.form-actions {
  text-align: center;
  margin-top: 2rem;
}

.form-actions .donate-button {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  color: white;
  border: none;
  padding: 1rem 3rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(5, 150, 105, 0.3);
  position: relative;
  overflow: hidden;
}

.form-actions .donate-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(5, 150, 105, 0.4);
}

.form-actions .donate-button:active {
  transform: translateY(0);
}

/* Responsive Design for Form */
@media (max-width: 768px) {
  .donation-form-container {
    padding: 2rem 1.5rem;
    margin-top: 2rem;
    margin-left: 1rem;
    margin-right: 1rem;
  }
  
  .form-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .form-section {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
  }
  
  .donation-form-container h3 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
  }
  
  .form-section h4 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
  }
  
  .form-group {
    margin-bottom: 1.25rem;
  }
  
  .form-group label {
    font-size: 0.95rem;
    margin-bottom: 0.4rem;
  }
  
  .form-group input,
  .form-group select,
  .form-group textarea {
    padding: 0.875rem;
    font-size: 1rem;
    border-radius: 8px;
  }
  
  .form-actions {
    margin-top: 1.5rem;
  }
  
  .form-actions .donate-button {
    padding: 1rem 2rem;
    font-size: 1rem;
    width: 100%;
    border-radius: 25px;
  }
}

@media (max-width: 480px) {
  .donation-form-container {
    padding: 1.5rem 1rem;
    margin: 1rem 0.5rem;
    border-radius: 15px;
  }
  
  .donation-form-container h3 {
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
  }
  
  .form-section {
    margin-bottom: 1.5rem;
    padding-bottom: 1.25rem;
  }
  
  .form-section h4 {
    font-size: 1.1rem;
    margin-bottom: 0.875rem;
  }
  
  .form-group {
    margin-bottom: 1rem;
  }
  
  .form-group label {
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
  }
  
  .form-group input,
  .form-group select,
  .form-group textarea {
    padding: 0.75rem;
    font-size: 0.95rem;
    border-radius: 6px;
  }
  
  .form-group textarea {
    min-height: 80px;
  }
  
  .amount-input input {
    padding-left: 2rem;
  }
  
  .currency-symbol {
    left: 0.75rem;
    font-size: 0.9rem;
  }
  
  .form-actions {
    margin-top: 1.25rem;
  }
  
  .form-actions .donate-button {
    padding: 0.875rem 1.5rem;
    font-size: 0.95rem;
    width: 100%;
    border-radius: 20px;
  }
}

/* Mobile-specific touch improvements */
@media (max-width: 768px) {
  .form-group input,
  .form-group select,
  .form-group textarea {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
  }
  
  .form-group select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.75rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
  }
  
  /* Improve touch targets */
  .form-group input,
  .form-group select,
  .form-group textarea,
  .form-actions .donate-button {
    min-height: 44px;
  }
  
  /* Prevent zoom on iOS */
  .form-group input[type="email"],
  .form-group input[type="tel"],
  .form-group input[type="text"] {
    font-size: 16px;
  }
}
