/* Additional styles for new home page sections */
/* Quick Impact Section */
.quick-impact {
  padding: 4rem 0;
  background: white;
}

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

.impact-card {
  text-align: center;
  padding: 2rem 1rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, var(--blue-50), var(--teal-50));
  transition: all 0.3s ease;
  border: 1px solid var(--blue-100);
}

.impact-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  background: linear-gradient(135deg, var(--blue-100), var(--teal-100));
}

.impact-icon {
  width: 4rem;
  height: 4rem;
  background: linear-gradient(135deg, var(--blue-500), var(--teal-600));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: white;
  font-size: 1.5rem;
}

.impact-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 0.5rem;
}

.impact-card p {
  color: var(--gray-600);
  font-size: 0.95rem;
}

/* NGO Collage Section */
/* Futuristic Animated Background Effects */
.ngo-collage-section {
  padding: 6rem 0;
  background: linear-gradient(135deg, #fdf2f8 0%, #f3e8ff 50%, #fdf2f8 100%);
  position: relative;
  overflow: hidden;
}

/* Animated Floating Particles */
.ngo-collage-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 80%, rgba(236, 72, 153, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(147, 51, 234, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(59, 130, 246, 0.2) 0%, transparent 50%);
  animation: particleFloat 8s ease-in-out infinite;
  pointer-events: none;
}

/* Animated Grid Overlay */
.ngo-collage-section::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: linear-gradient(rgba(236, 72, 153, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(236, 72, 153, 0.1) 1px, transparent 1px);
  background-size: 50px 50px;
  animation: gridPulse 4s ease-in-out infinite;
  pointer-events: none;
  opacity: 0.3;
}

@keyframes particleFloat {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
    opacity: 0.3;
  }
  33% {
    transform: translateY(-20px) rotate(120deg);
    opacity: 0.6;
  }
  66% {
    transform: translateY(-10px) rotate(240deg);
    opacity: 0.4;
  }
}

@keyframes gridPulse {
  0%,
  100% {
    opacity: 0.2;
    transform: scale(1);
  }
  50% {
    opacity: 0.4;
    transform: scale(1.02);
  }
}

/* Futuristic Collage Container */
.collage-container {
  position: relative;
  margin: 4rem 0;
}

/* Add holographic border effect */
.collage-container::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, #ec4899, #9333ea, #3b82f6, #10b981, #f59e0b, #ec4899);
  background-size: 400% 400%;
  border-radius: 20px;
  z-index: -1;
  animation: holographicBorder 6s ease-in-out infinite;
  opacity: 0.6;
  filter: blur(2px);
}

@keyframes holographicBorder {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

/* Reverted Collage Grid to fixed layout */
.collage-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr); /* Fixed 8 columns as per your original CSS */
  grid-template-rows: repeat(6, 1fr); /* Fixed 6 rows as per your original CSS */
  gap: 12px;
  max-width: 1200px;
  margin: 0 auto;
  perspective: 1000px;
  transform-style: preserve-3d;
  height: 700px; /* Fixed height for the grid container */
}

/* Futuristic Collage Items */
.collage-item {
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(236, 72, 153, 0.1);
  cursor: pointer;
  transform-style: preserve-3d;
  width: 100%;
  height: 100%; /* Ensure items fill their grid cells */
}

/* Ensure images fill the dynamic frames properly */
.collage-item img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* This will crop images to fit perfectly */
  object-position: center; /* Center the image within the frame */
  transition: transform 0.4s ease;
  display: block;
}

/* Neon Glow Effect */
.collage-item::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, transparent, rgba(236, 72, 153, 0.5), transparent);
  border-radius: 18px;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
  animation: neonPulse 3s ease-in-out infinite;
}

.collage-item:hover::before {
  opacity: 1;
}

@keyframes neonPulse {
  0%,
  100% {
    box-shadow: 0 0 5px rgba(236, 72, 153, 0.5);
  }
  50% {
    box-shadow: 0 0 20px rgba(236, 72, 153, 0.8), 0 0 30px rgba(147, 51, 234, 0.6);
  }
}

/* Holographic Overlay Effect */
.collage-item::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.6s ease;
  z-index: 2;
}

.collage-item:hover::after {
  left: 100%;
}

/* Enhanced Hover Effects */
.collage-item:hover {
  transform: translateY(-10px) rotateX(5deg) rotateY(5deg) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2), 0 0 20px rgba(236, 72, 153, 0.4), 0 0 40px rgba(147, 51, 234, 0.2);
  z-index: 10;
}

.collage-item:hover img {
  transform: scale(1.1) rotateZ(2deg);
  filter: brightness(1.1) contrast(1.1) saturate(1.2);
}

/* Floating Animation for Individual Items */
.collage-item:nth-child(odd) {
  animation: floatUp 4s ease-in-out infinite;
}

.collage-item:nth-child(even) {
  animation: floatDown 4s ease-in-out infinite;
  animation-delay: -2s;
}

.collage-item:nth-child(3n) {
  animation: floatSide 5s ease-in-out infinite;
  animation-delay: -1s;
}

@keyframes floatUp {
  0%,
  100% {
    transform: translateY(0px) rotateZ(0deg);
  }
  50% {
    transform: translateY(-8px) rotateZ(1deg);
  }
}

@keyframes floatDown {
  0%,
  100% {
    transform: translateY(0px) rotateZ(0deg);
  }
  50% {
    transform: translateY(8px) rotateZ(-1deg);
  }
}

@keyframes floatSide {
  0%,
  100% {
    transform: translateX(0px) rotateZ(0deg);
  }
  50% {
    transform: translateX(5px) rotateZ(0.5deg);
  }
}

/* Enhanced Overlay with Futuristic Design */
.collage-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8), rgba(236, 72, 153, 0.2));
  color: white;
  padding: 1rem;
  transform: translateY(100%);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 3;
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.collage-item:hover .collage-overlay {
  transform: translateY(0);
  box-shadow: 0 -10px 20px rgba(236, 72, 153, 0.3);
}

.collage-content h4 {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  text-shadow: 0 0 10px rgba(236, 72, 153, 0.5);
}

.collage-content p {
  font-size: 0.75rem;
  opacity: 0.9;
  line-height: 1.3;
  text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

/* Specific positioning for organic layout - RE-ADDED */
.collage-item-1 {
  grid-column: 1 / 3;
  grid-row: 1 / 3;
}
.collage-item-2 {
  grid-column: 3 / 5;
  grid-row: 1 / 2;
}
.collage-item-3 {
  grid-column: 5 / 7;
  grid-row: 1 / 3;
}
.collage-item-4 {
  grid-column: 7 / 9;
  grid-row: 1 / 2;
}
.collage-item-5 {
  grid-column: 3 / 4;
  grid-row: 2 / 3;
}
.collage-item-6 {
  grid-column: 4 / 5;
  grid-row: 2 / 4;
}
.collage-item-7 {
  grid-column: 7 / 9;
  grid-row: 2 / 3;
}
.collage-item-8 {
  grid-column: 1 / 2;
  grid-row: 3 / 5;
}
.collage-item-9 {
  grid-column: 2 / 3;
  grid-row: 3 / 4;
}
.collage-item-10 {
  grid-column: 3 / 4;
  grid-row: 3 / 5;
}
.collage-item-11 {
  grid-column: 5 / 7;
  grid-row: 3 / 4;
}
.collage-item-12 {
  grid-column: 7 / 8;
  grid-row: 3 / 5;
}
.collage-item-13 {
  grid-column: 8 / 9;
  grid-row: 3 / 4;
}
.collage-item-14 {
  grid-column: 2 / 3;
  grid-row: 4 / 6;
}
.collage-item-15 {
  grid-column: 4 / 6;
  grid-row: 4 / 5;
}
.collage-item-16 {
  grid-column: 6 / 7;
  grid-row: 4 / 6;
}
.collage-item-17 {
  grid-column: 8 / 9;
  grid-row: 4 / 6;
}
.collage-item-18 {
  grid-column: 1 / 2;
  grid-row: 5 / 7;
}
.collage-item-19 {
  grid-column: 4 / 5;
  grid-row: 5 / 6;
}
.collage-item-20 {
  grid-column: 5 / 6;
  grid-row: 5 / 7;
}
.collage-item-21 {
  grid-column: 3 / 4;
  grid-row: 5 / 7;
}
.collage-item-22 {
  grid-column: 7 / 8;
  grid-row: 5 / 7;
}
.collage-item-23 {
  grid-column: 4 / 5;
  grid-row: 6 / 7;
}
.collage-item-24 {
  grid-column: 2 / 3;
  grid-row: 6 / 7;
}
.collage-item-25 {
  grid-column: 6 / 7;
  grid-row: 6 / 7;
}

/* Futuristic Stats Section */
.collage-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 4rem;
  background: linear-gradient(135deg, #ec4899, #9333ea, #3b82f6);
  background-size: 200% 200%;
  animation: gradientShift 8s ease-in-out infinite;
  padding: 3rem 2rem;
  border-radius: 2rem;
  color: white;
  text-align: center;
  box-shadow: 0 20px 40px rgba(236, 72, 153, 0.3), 0 0 60px rgba(147, 51, 234, 0.2);
  position: relative;
  overflow: hidden;
}

/* Animated Background Pattern for Stats */
.collage-stats::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
  animation: statsPattern 6s ease-in-out infinite;
  pointer-events: none;
}

@keyframes gradientShift {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@keyframes statsPattern {
  0%,
  100% {
    transform: rotate(0deg) scale(1);
    opacity: 0.3;
  }
  50% {
    transform: rotate(180deg) scale(1.1);
    opacity: 0.6;
  }
}

.collage-stats .stat-item {
  padding: 1rem;
  position: relative;
  transition: transform 0.3s ease;
}

.collage-stats .stat-item:hover {
  transform: translateY(-5px) scale(1.05);
}

.collage-stats .stat-number {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2), 0 0 20px rgba(255, 255, 255, 0.3);
  animation: numberGlow 2s ease-in-out infinite alternate;
}

@keyframes numberGlow {
  0% {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2), 0 0 20px rgba(255, 255, 255, 0.3);
  }
  100% {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2), 0 0 30px rgba(255, 255, 255, 0.6), 0 0 40px rgba(236, 72, 153, 0.4);
  }
}

.collage-stats .stat-label {
  font-size: 1rem;
  opacity: 0.9;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Scroll-triggered Reveal Animation - FIXED */
.collage-item {
  opacity: 1; /* Changed from 0 to 1 to make items visible by default */
  transform: translateY(0px) rotateX(0deg); /* Reset transform to normal position */
  transition: all 0.3s ease; /* Add smooth transitions for hover effects */
}

/* Optional: Add reveal animation that triggers on scroll */
.collage-item.animate-in {
  animation: revealItem 0.8s ease-out forwards;
}

.collage-item:nth-child(1) {
  animation-delay: 0.1s;
}
.collage-item:nth-child(2) {
  animation-delay: 0.15s;
}
.collage-item:nth-child(3) {
  animation-delay: 0.2s;
}
.collage-item:nth-child(4) {
  animation-delay: 0.25s;
}
.collage-item:nth-child(5) {
  animation-delay: 0.3s;
}
.collage-item:nth-child(6) {
  animation-delay: 0.35s;
}
.collage-item:nth-child(7) {
  animation-delay: 0.4s;
}
.collage-item:nth-child(8) {
  animation-delay: 0.45s;
}
.collage-item:nth-child(9) {
  animation-delay: 0.5s;
}
.collage-item:nth-child(10) {
  animation-delay: 0.55s;
}
.collage-item:nth-child(11) {
  animation-delay: 0.6s;
}
.collage-item:nth-child(12) {
  animation-delay: 0.65s;
}
.collage-item:nth-child(13) {
  animation-delay: 0.7s;
}
.collage-item:nth-child(14) {
  animation-delay: 0.75s;
}
.collage-item:nth-child(15) {
  animation-delay: 0.8s;
}
.collage-item:nth-child(16) {
  animation-delay: 0.85s;
}
.collage-item:nth-child(17) {
  animation-delay: 0.9s;
}
.collage-item:nth-child(18) {
  animation-delay: 0.95s;
}
.collage-item:nth-child(19) {
  animation-delay: 1s;
}
.collage-item:nth-child(20) {
  animation-delay: 1.05s;
}
.collage-item:nth-child(21) {
  animation-delay: 1.1s;
}
.collage-item:nth-child(22) {
  animation-delay: 1.15s;
}
.collage-item:nth-child(23) {
  animation-delay: 1.2s;
}
.collage-item:nth-child(24) {
  animation-delay: 1.25s;
}
.collage-item:nth-child(25) {
  animation-delay: 1.3s;
}

@keyframes revealItem {
  to {
    opacity: 1;
    transform: translateY(0) rotateX(0deg);
  }
}

/* Cursor Interaction Effect */
.collage-grid {
  cursor: none;
}

.collage-grid::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 20px;
  height: 20px;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.8), transparent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transition: transform 0.1s ease;
  opacity: 0;
}

.collage-grid:hover::before {
  opacity: 1;
}

.collage-stats .stat-item {
  padding: 1rem;
}

.collage-stats .stat-number {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.collage-stats .stat-label {
  font-size: 1rem;
  opacity: 0.9;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
}

/* Badge styles */
.badge.pink {
  background: linear-gradient(135deg, #fce7f3, #f3e8ff);
  color: #be185d;
  border: 1px solid #f9a8d4;
}

/* Enhanced Hero Section (removed collage background) */
.hero {
  position: relative;
  padding: 8rem 0 5rem;
  overflow: hidden;
  min-height: 80vh;
  display: flex;
  align-items: center;
}

.hero .container {
  position: relative;
  z-index: 3;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-text {
  position: relative;
  z-index: 4;
}

/* NGO Logo Container */
.ngo-logo-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 4;
}

.logo-backdrop {
  position: absolute;
  width: 400px;
  height: 400px;
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.1), rgba(147, 51, 234, 0.1));
  border-radius: 50%;
  filter: blur(20px);
  z-index: 1;
}

.ngo-main-logo {
  position: relative;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  object-fit: cover;
  border: 8px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(236, 72, 153, 0.1);
  z-index: 3;
  transition: all 0.3s ease;
}

.ngo-main-logo:hover {
  transform: scale(1.05);
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.2), 0 0 0 2px rgba(236, 72, 153, 0.2);
}

.logo-glow {
  position: absolute;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.2), rgba(147, 51, 234, 0.2));
  filter: blur(30px);
  z-index: 2;
  animation: logoGlow 3s ease-in-out infinite alternate;
}

@keyframes logoGlow {
  0% {
    opacity: 0.3;
    transform: scale(1);
  }
  100% {
    opacity: 0.6;
    transform: scale(1.1);
  }
}

/* Upcoming Events Section */
.upcoming-events {
  padding: 5rem 0;
  background: linear-gradient(135deg, var(--blue-50), var(--teal-50));
}

.events-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

.event-card {
  background: white;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 0;
}

.event-card.featured-event {
  grid-column: 1 / -1;
  border: 2px solid var(--blue-300);
}

.event-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.event-image {
  position: relative;
  overflow: hidden;
}

.event-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.event-card:hover .event-image img {
  transform: scale(1.05);
}

.event-date {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: linear-gradient(135deg, var(--blue-500), var(--teal-600));
  color: white;
  padding: 0.5rem;
  border-radius: 0.5rem;
  text-align: center;
  min-width: 60px;
}

.event-date .day {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
}

.event-date .month {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.event-status {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  animation: pulse 2s infinite;
}

.event-content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.event-category {
  display: inline-block;
  background: var(--teal-100);
  color: var(--teal-700);
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
  width: fit-content;
}

.event-content h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: 1rem;
}

.event-content p {
  color: var(--gray-600);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.event-details {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.event-detail {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--gray-600);
}

.event-detail i {
  color: var(--blue-500);
  width: 16px;
}

/* Recent Work Gallery Section */
.recent-work {
  padding: 5rem 0;
  background: white;
}

.work-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.gallery-item {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  height: 300px;
}

.gallery-item.large {
  grid-column: span 2;
  height: 400px;
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

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

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

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: white;
  padding: 2rem;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
  transform: translateY(0);
}

.gallery-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.gallery-content p {
  font-size: 0.9rem;
  opacity: 0.9;
  margin-bottom: 0.5rem;
}

.gallery-date {
  font-size: 0.75rem;
  opacity: 0.7;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.gallery-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  background: linear-gradient(135deg, var(--blue-500), var(--teal-600));
  padding: 3rem 2rem;
  border-radius: 1rem;
  color: white;
  text-align: center;
}

.gallery-stats .stat-item {
  padding: 0;
}

.gallery-stats .stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: white;
}

.gallery-stats .stat-label {
  font-size: 0.9rem;
  opacity: 0.9;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Add fallback background color for images that might not load */
.collage-item {
  background: linear-gradient(135deg, #f3e8ff, #fdf2f8);
  min-height: 120px; /* Ensure minimum height even if image doesn't load */
}

/* Additional utility classes */
.badge.blue {
  background: var(--blue-100);
  color: var(--blue-700);
}

.badge.teal {
  background: var(--teal-100);
  color: var(--teal-700);
}

.stat-number.blue {
  color: var(--blue-600);
}

.stat-number.teal {
  color: var(--teal-600);
}

.highlight {
  color: var(--blue-400);
  font-weight: 600;
}

.footer {
  background: var(--gray-800);
  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-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.footer-logo-icon {
  width: 2.5rem;
  height: 2.5rem;
  background: linear-gradient(135deg, var(--pink-400), var(--purple-500));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.25rem;
}

.footer-logo-text h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.footer-logo-text p {
  font-size: 0.875rem;
  color: #9ca3af;
}

.footer-description {
  color: #9ca3af;
  line-height: 1.6;
}

.footer-section h4 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: #9ca3af;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--pink-400);
}

.footer-contact p {
  color: #9ca3af;
  margin-bottom: 0.25rem;
}

.footer-bottom {
  border-top: 1px solid #374151;
  padding-top: 2rem;
  text-align: center;
  color: #9ca3af;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero {
    padding: 6rem 0 4rem;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .ngo-main-logo {
    width: 250px;
    height: 250px;
  }

  .logo-backdrop,
  .logo-glow {
    width: 280px;
    height: 280px;
  }

  .collage-grid {
    grid-template-columns: repeat(4, 1fr); /* Adjusted for smaller screens */
    grid-template-rows: repeat(8, 1fr); /* Adjusted for smaller screens */
    height: 400px;
    gap: 8px;
  }

  .collage-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .events-grid {
    grid-template-columns: 1fr;
  }

  .event-card,
  .event-card.featured-event {
    grid-template-columns: 1fr;
  }

  .event-image {
    height: 200px;
  }

  .gallery-item.large {
    grid-column: span 1;
    height: 300px;
  }

  .work-gallery {
    grid-template-columns: 1fr;
  }

  .gallery-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .impact-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 4rem 0 3rem;
  }

  .ngo-main-logo {
    width: 200px;
    height: 200px;
  }

  .logo-backdrop,
  .logo-glow {
    width: 230px;
    height: 230px;
  }

  .collage-grid {
    grid-template-columns: repeat(3, 1fr); /* Adjusted for even smaller screens */
    grid-template-rows: repeat(10, 1fr); /* Adjusted for even smaller screens */
    gap: 6px;
    height: 350px;
  }

  .collage-stats {
    grid-template-columns: 1fr;
  }

  .impact-grid {
    grid-template-columns: 1fr;
  }

  .gallery-stats {
    grid-template-columns: 1fr;
  }

  .ngo-collage-section {
    padding: 4rem 0;
  }
}

/* Animation keyframes */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Quick Impact Section Styles */
.quick-impact {
  padding: 4rem 0;
  background: linear-gradient(135deg, #fff0f5, #f8fafc);
}

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

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

.impact-card {
  background: white;
  border-radius: 1rem;
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
}

.impact-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(135deg, #ec4899, #9333ea);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.impact-card:hover::before {
  transform: scaleX(1);
}

.impact-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border-color: #f472b6;
}

.impact-icon {
  width: 4rem;
  height: 4rem;
  background: linear-gradient(135deg, #ec4899, #9333ea);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  margin: 0 auto 1.5rem;
  box-shadow: 0 8px 20px rgba(236, 72, 153, 0.3);
  transition: all 0.3s ease;
}

.impact-card:hover .impact-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 12px 30px rgba(236, 72, 153, 0.4);
}

.impact-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 1rem;
  transition: color 0.3s ease;
}

.impact-card:hover h3 {
  color: #ec4899;
}

.impact-card p {
  color: #4b5563;
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
}

/* Animation for cards */
.impact-card {
  animation: fadeInUp 0.6s ease-out;
  animation-fill-mode: both;
}

.impact-card:nth-child(1) {
  animation-delay: 0.1s;
}
.impact-card:nth-child(2) {
  animation-delay: 0.2s;
}
.impact-card:nth-child(3) {
  animation-delay: 0.3s;
}
.impact-card:nth-child(4) {
  animation-delay: 0.4s;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Pulse animation for icons */
.impact-icon {
  animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
  0%,
  100% {
    box-shadow: 0 8px 20px rgba(236, 72, 153, 0.3);
  }
  50% {
    box-shadow: 0 8px 20px rgba(236, 72, 153, 0.5), 0 0 0 10px rgba(236, 72, 153, 0.1);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .quick-impact {
    padding: 3rem 0;
  }

  .impact-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .impact-card {
    padding: 2rem 1.5rem;
  }

  .impact-icon {
    width: 3.5rem;
    height: 3.5rem;
    font-size: 1.25rem;
  }

  .impact-card h3 {
    font-size: 1.25rem;
  }

  .impact-card p {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .impact-card {
    padding: 1.5rem 1rem;
  }

  .impact-icon {
    width: 3rem;
    height: 3rem;
    font-size: 1.1rem;
  }
}
