/* css/styles.css */

/* 1) Override Bootstrap primary color (optional) */
:root {
  --bs-primary: #2c3e50;   /* Dark‐blue for NGO branding */
  --bs-secondary: #18bc9c; /* Teal accent */
}
/* Default for desktop */
.social-fixed {
            position: fixed;
            top: 50%;
            right: 0;
            transform: translateY(-50%);
            display: flex;
            flex-direction: column;
            gap: 0.5rem;
            z-index: 9999; /* Increased z-index */
        }

        /* Icon style */
        .social-icon {
            background: #fff;
            color: #333;
            width: 3rem;
            height: 3rem;
            border-radius: 0 0.5rem 0.5rem 0;
            display: flex;
            align-items: center;
            justify-content: center;
            text-decoration: none;
            box-shadow: 0 4px 8px rgba(0,0,0,0.2);
            transition: all 0.3s ease;
            font-size: 1.2rem;
        }

        /* Hover styles */
        .social-icon:hover {
            transform: scale(1.1);
            box-shadow: 0 6px 12px rgba(0,0,0,0.3);
        }

        .social-icon.fb {
            background: #3b5998;
            color: #fff;
        }

        .social-icon.fb:hover {
            background: #2d4373;
        }

        .social-icon.ig {
            background: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%);
            color: #fff;
        }

        .social-icon.ig:hover {
            background: linear-gradient(45deg, #e08429 0%,#d55a32 25%,#c21e39 50%,#b31b5c 75%,#a1147e 100%);
        }

        /* Mobile responsiveness - Fixed issues */
        @media (max-width: 768px) {
            .social-fixed {
                position: fixed !important; /* Force fixed positioning */
                top: auto !important;
                bottom: 20px !important; /* Moved higher from bottom */
                right: 20px !important;
                left: auto !important;
                transform: none !important;
                flex-direction: row !important;
                gap: 0.75rem !important;
                z-index: 9999 !important;
            }

            .social-icon {
                width: 3rem !important; /* Kept larger for better touch targets */
                height: 3rem !important;
                border-radius: 50% !important;
                font-size: 1.1rem !important;
                min-width: 3rem; /* Prevent shrinking */
                min-height: 3rem;
            }
        }

        /* Extra small devices */
        @media (max-width: 480px) {
            .social-fixed {
                bottom: 15px !important;
                right: 15px !important;
                gap: 0.5rem !important;
            }

            .social-icon {
                width: 2.8rem !important;
                height: 2.8rem !important;
                font-size: 1rem !important;
                min-width: 2.8rem;
                min-height: 2.8rem;
            }
        }

        /* YouTube */
.social-icon.yt {
  background: #FF0000;
  color: #fff;
}

.social-icon.yt:hover {
  background: #cc0000;
}

/* WhatsApp */
.social-icon.wa {
  background: #25D366;
  color: #fff;
}

.social-icon.wa:hover {
  background: #1ebe57;
}

/* 2) Hero Section Styling */
.hero {
  position: relative;
  /* background: url("../images/hero.jpg") center center / cover no-repeat; */
  /* height: 70vh; */
  /* display: flex; */
  /* align-items: center; */
  /* justify-content: center; */
  /* color: #ffffff; */
}

hero {
            position: relative;
            height: 100vh;
            min-height: 600px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            display: flex;
            align-items: center;
            overflow:auto;
        }

        .hero::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: 
                radial-gradient(circle at 20% 50%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(255, 118, 117, 0.3) 0%, transparent 50%),
                radial-gradient(circle at 40% 80%, rgba(24, 188, 156, 0.3) 0%, transparent 50%);
            animation: backgroundPulse 8s ease-in-out infinite;
        }

        @keyframes backgroundPulse {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.8; }
        }

        .hero-content {
            position: relative;
            z-index: 2;
            color: black;
            /* text-align: center; */
            padding: 2rem;
            padding-left: 0rem;
        }

        .hero-title {
            font-size: clamp(2.5rem, 8vw, 4.5rem);
            font-weight: 800;
            margin-bottom: 1.5rem;
            text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
            background: linear-gradient(45deg, black);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            animation: titleGlow 3s ease-in-out infinite alternate;
        }

        @keyframes titleGlow {
            from { text-shadow: 0 0 20px rgba(255,255,255,0.5); }
            to { text-shadow: 0 0 30px rgba(255,255,255,0.8); }
        }

        .hero-subtitle {
            font-size: clamp(1.1rem, 3vw, 1.4rem);
            margin-bottom: 2rem;
            opacity: 0.95;
            line-height: 1.6;
            max-width: 600px;
            margin-left: 0; /* Changed from auto to 0 for better mobile alignment */
            margin-right: 0; /* Changed from auto to 0 for better mobile alignment */
            animation: fadeInUp 1s ease-out 0.5s both;
        }

        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .hero-buttons {
            display: flex;
            gap: 1.5rem;
            justify-content: flex-start; /* Changed from center to flex-start for better mobile alignment */
            flex-wrap: wrap;
            animation: fadeInUp 1s ease-out 1s both;
        }

        .btn-hero {
            padding: 1rem 2.5rem;
            font-size: 1.1rem;
            font-weight: 600;
            border-radius: 50px;
            text-decoration: none;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
            min-width: 180px;
        }

        .btn-hero::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
            transition: left 0.5s;
        }

        .btn-hero:hover::before {
            left: 100%;
        }

        .btn-donate {
            background: linear-gradient(135deg, #ff6b6b, #ee5a52);
            color: white;
            border: none;
            box-shadow: 0 8px 25px rgba(238, 90, 82, 0.3);
        }

        .btn-donate:hover {
            transform: translateY(-3px);
            box-shadow: 0 12px 35px rgba(238, 90, 82, 0.4);
            color: white;
        }

        .btn-volunteer {
            background: transparent;
            color: black;
            border: 2px solid gray;
            backdrop-filter: blur(10px);
        }

        .btn-volunteer:hover {
            background: white;
            color: #667eea;
            transform: translateY(-3px);
            box-shadow: 0 12px 35px rgba(255, 255, 255, 0.3);
        }

.hero-flex {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 2rem; /*  Reduced from 3rem to 1.5rem */
  padding-left: 0; /* Reduced from 1rem to 0 */
  padding-right: 0; /* Remove right padding */
  flex-wrap: wrap;
}

/* Override Bootstrap container padding for hero section */
.hero .container {
  padding-left: 0.5rem !important; /* Minimal padding instead of Bootstrap's default */
  padding-right: 0.5rem !important; /* Minimal padding instead of Bootstrap's default */
}

.hero-logo img {
  max-width: 200px;
  height: auto;
  margin-left: 0; /* Ensure no additional left margin on logo */
}

.hero-content {
  text-align: left; /* override center */
  margin-right: 0; /* Ensure no additional right margin on content */
  flex: 1;
}

/* 3) Footer Background */
footer {
  background-color: #2c3e50;
  color: #ffffff;
}

/* 4) Custom Button (Donate) */
.btn-donate {
  background-color: #e74c3c;
  color: #ffffff;
}
.btn-donate:hover {
  background-color: #c0392b;
  color: #ffffff;
}

/* 5) "Program Card" Icons (font-size) */
.program-icon {
  font-size: 2.5rem;
}

/* 6) Gallery Image Hover */
.gallery-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.gallery-item img {
  transition: transform 0.3s ease;
}
.gallery-item img:hover {
  transform: scale(1.05);
}

/* 7) Mobile-First Responsive Design */

/* Tablet styles */
@media (max-width: 992px) {
  .hero-flex {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }
  
  .hero-content {
    text-align: center;
  }
  
  .hero-logo img {
    max-width: 250px;
  }
  
  .hero-title {
    font-size: clamp(2rem, 6vw, 3.5rem);
  }
  
  .hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    margin-left: 0;
    margin-right: 0;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .btn-hero {
    width: 100%;
    max-width: 280px;
  }
}

/* Mobile styles */
@media (max-width: 768px) {
  .hero { 
    height: auto;
    min-height: 70vh;
    padding: 2rem 0;
  }
  
  .program-icon { 
    font-size: 2rem; 
  }
  
  /* Tighter spacing on mobile */
  .hero-flex {
    gap: 1.5rem;
    padding: 1rem 0;
  }
  
  /* Minimal container padding on mobile */
  .hero .container {
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
  }
  
  .hero-logo img {
    max-width: 200px;
  }
  
  .hero-title {
    font-size: clamp(1.8rem, 8vw, 2.8rem);
    margin-bottom: 1rem;
  }
  
  .hero-subtitle {
    font-size: clamp(0.95rem, 4vw, 1.1rem);
    margin-bottom: 1.5rem;
    padding: 0 0.5rem;
  }
  
  .btn-hero {
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    min-width: 160px;
  }
  
  /* Social icons adjustment for mobile */
  .social-fixed {
    display: none; /* Hide on mobile to avoid clutter */
  }
  
  /* Navbar improvements */
  .navbar-brand span {
    font-size: 16px !important;
  }
  
  /* Card improvements */
  .card-body {
    padding: 1rem;
  }
  
  .card-title {
    font-size: 1.1rem;
  }
  
  .card-text {
    font-size: 0.9rem;
  }
}

/* Small mobile styles */
@media (max-width: 576px) {
  .hero {
    min-height: 60vh;
    padding: 1.5rem 0;
  }
  
  .hero .container {
    padding-left: 0.25rem !important;
    padding-right: 0.25rem !important;
  }
  
  .hero-flex {
    gap: 1rem;
  }
  
  .hero-logo img {
    max-width: 150px;
  }
  
  .hero-title {
    font-size: clamp(1.5rem, 9vw, 2.2rem);
    line-height: 1.2;
  }
  
  .hero-subtitle {
    font-size: clamp(0.85rem, 4.5vw, 1rem);
    line-height: 1.4;
  }
  
  .hero-buttons {
    gap: 1rem;
  }
  
  .btn-hero {
    padding: 0.7rem 1.2rem;
    font-size: 0.9rem;
    min-width: 140px;
  }
  
  /* Footer improvements */
  footer .col-md-4 {
    margin-bottom: 2rem;
  }
  
  footer h5 {
    font-size: 1.1rem;
  }
  
  footer p, footer li {
    font-size: 0.85rem;
  }
  
  /* Impact metrics responsive */
  .py-5[style*="background: #18bc9c"] h3 {
    font-size: 1.8rem;
  }
  
  .py-5[style*="background: #18bc9c"] p {
    font-size: 0.9rem;
  }
}

/* Landscape mobile orientation */
@media (max-width: 768px) and (orientation: landscape) {
  .hero {
    min-height: 50vh;
  }
  
  .hero-flex {
    flex-direction: row;
    gap: 1rem;
  }
  
  .hero-content {
    text-align: left;
  }
  
  .hero-logo img {
    max-width: 120px; 
  }
}
.navbar-scrolled {
  background-color: rgba(255, 255, 255, 0.9) !important;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  text-decoration: none;
  font-size: 1.5rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

/* Individual platform colors and hover effects */
.social-icon.facebook {
  background: linear-gradient(135deg, #3b5998, #4c70ba);
  color: white;
  box-shadow: 0 4px 15px rgba(59, 89, 152, 0.3);
}

.social-icon.facebook:hover {
  color: white;
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 8px 25px rgba(59, 89, 152, 0.5);
  background: linear-gradient(135deg, #4c70ba, #5d82d1);
}

.social-icon.instagram {
  background: linear-gradient(135deg, #405de6, #5b51d8, #833ab4, #c13584, #e1306c, #fd1d1d);
  color: white;
  box-shadow: 0 4px 15px rgba(225, 48, 108, 0.3);
}

.social-icon.instagram:hover {
  color: white;
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 8px 25px rgba(225, 48, 108, 0.5);
}

.social-icon.youtube {
  background: linear-gradient(135deg, #ff0000, #ff4500);
  color: white;
  box-shadow: 0 4px 15px rgba(255, 0, 0, 0.3);
}

.social-icon.youtube:hover {
  color: white;
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 8px 25px rgba(255, 0, 0, 0.5);
}

.social-icon.whatsapp {
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: white;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.social-icon.whatsapp:hover {
  color: white;
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5);
}

/* Pulse animation on hover */
.social-icon:hover::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  animation: pulse 0.6s ease-out;
}

@keyframes pulse {
  0% {
      transform: scale(0);
      opacity: 1;
  }
  100% {
      transform: scale(1.5);
      opacity: 0;
  }
}