@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

body {
    font-family: 'Poppins', sans-serif;
    scroll-behavior: smooth;
}

/* Original Hero Gradient (can be removed if no longer needed, keeping for now) */
.hero-gradient {
    background: linear-gradient(135deg, #f9f9ff 0%, #e3f2fd 100%);
}

/* Hero Section with Slider Background */
.hero-slider-container {
    position: relative !important;
    min-height: calc(60vh + 150px) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover !important;
    background-position: center !important;
    opacity: 0;
    transition: opacity 3s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.hero-content {
    color: white; /* Ensure text is readable on dark overlay */
    position: relative; /* Ensure text is above overlay */
    z-index: 10;
    text-align: center; /* Center text within the content div */
    max-width: 800px; /* Limit content width for readability */
    padding: 2rem; /* Add some padding */
}

.hero-content h1,
.hero-content p {
    color: white; /* Override default text colors */
}

.hero-content .text-indigo-600,
.hero-content .text-amber-500 {
    /* Adjust span colors for visibility on dark purple background */
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8); /* Add shadow for readability */
}

.hero-content .text-indigo-600 {
    color: #a5b4fc; /* Lighter Indigo for better contrast on dark purple */
}

.hero-content .text-amber-500 {
    color: #fcd34d; /* Lighter Amber for better contrast on dark purple */
}


.impact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.donation-option:hover {
    transform: scale(1.03);
}

.testimonial-card {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.nav-link:hover {
    color: #4f46e5;
}

.btn-primary {
    background-color: #4f46e5;
    transition: all 0.3s ease;
    color: white;
}

.btn-primary:hover {
    background-color: #4338ca;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: #f59e0b;
    transition: all 0.3s ease;
    color: white;
}

.btn-secondary:hover {
    background-color: #d97706;
    transform: translateY(-2px);
}

/* Animation classes */
.fade-in {
    animation: fadeIn 1s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.slide-up {
    animation: slideUp 0.8s ease-out;
}

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

/* Gallery hover effect */
.gallery-item {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

.gallery-item img {
    transition: transform 0.5s ease;
}

.gallery-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(79, 70, 229, 0.3);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.gallery-item:hover::after {
    opacity: 1;
}

/* Gallery item link styling */
.gallery-item-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.gallery-item-link:hover {
    text-decoration: none;
    color: inherit;
}

/* Mobile menu */
.mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.mobile-menu.open {
    max-height: 500px;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #4f46e5;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #4338ca;
}

/* Section divider */
.section-divider {
    position: relative;
    height: 100px;
    overflow: hidden;
}

.section-divider svg {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Pulse animation for CTA */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.pulse {
    animation: pulse 2s infinite;
}

/* Floating animation */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.floating {
    animation: float 3s ease-in-out infinite;
}

/* Logo styling */
.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    width: auto;
    overflow: hidden;
}

/* Footer logo styling */
footer img {
    filter: brightness(1.2); /* Make the logo slightly brighter in the dark footer */
    transition: transform 0.3s ease;
}

footer img:hover {
    transform: scale(1.1); /* Slight zoom effect on hover */
}

/* Founder image styling */
.founder-image-container {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #4f46e5;
}

.founder-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top; /* Focus on the face/top part of the image */
}

/* Text shadow for buttons */
.text-shadow {
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Testimonial slider styling */
.testimonial-slider {
    position: relative;
    overflow: hidden;
}

.testimonial-slide {
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
}

.testimonial-slide.active {
    opacity: 1;
    position: relative;
}

.testimonial-dot {
    transition: background-color 0.3s ease;
    cursor: pointer;
}

/* Donation Popup Styling */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background-color: white;
    border-radius: 1rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 500px;
    position: relative;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
    overflow: hidden;
}

.popup-overlay.active .popup-content {
    transform: translateY(0);
}

.popup-header {
    background: linear-gradient(to right, #4f46e5, #6366f1);
    color: white;
    padding: 1.5rem;
    position: relative;
}

.popup-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s ease;
}

.popup-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.popup-body {
    padding: 1.5rem;
}

.bank-details {
    background-color: #f9fafb;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1rem;
    border-left: 4px solid #4f46e5;
}

.bank-details p {
    margin: 0.5rem 0;
}

.bank-details-label {
    font-weight: 600;
    color: #4b5563;
    display: inline-block;
    width: 140px;
}

.copy-btn {
    background-color: #f3f4f6;
    border: none;
    border-radius: 0.25rem;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    color: #4b5563;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-left: 0.5rem;
}

.copy-btn:hover {
    background-color: #e5e7eb;
}

.popup-footer {
    padding: 1rem 1.5rem;
    background-color: #f9fafb;
    border-top: 1px solid #e5e7eb;
    text-align: center;
}
