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

/* Color variables & Core settings */
:root {
    --ngo-primary: #0D6EFD;
    --ngo-secondary: #198754;
    --ngo-accent: #FFC107;
    --ngo-dark: #212529;
    --ngo-light: #F8F9FA;
    --ngo-bg: #FFFFFF;
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

h1, h2, h3, h4, h5, h6, .navbar-brand {
    font-family: var(--font-heading);
    font-weight: 600;
}

/* Custom Overrides & UI Elements */
.text-primary-ngo { color: var(--ngo-primary) !important; }
.text-secondary-ngo { color: var(--ngo-secondary) !important; }
.text-accent-ngo { color: var(--ngo-accent) !important; }
.bg-primary-ngo { background-color: var(--ngo-primary) !important; }
.bg-secondary-ngo { background-color: var(--ngo-secondary) !important; }
.bg-accent-ngo { background-color: var(--ngo-accent) !important; }
.bg-light-ngo { background-color: var(--ngo-light) !important; }
.bg-dark-ngo { background-color: var(--ngo-dark) !important; }

/* Buttons Custom Styling */
.btn-ngo-primary {
    background-color: var(--ngo-primary);
    color: #fff;
    border: 2px solid var(--ngo-primary);
    font-weight: 500;
    padding: 0.6rem 1.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}
.btn-ngo-primary:hover, .btn-ngo-primary:focus {
    background-color: transparent;
    color: var(--ngo-primary);
    border-color: var(--ngo-primary);
}

.btn-ngo-secondary {
    background-color: var(--ngo-secondary);
    color: #fff;
    border: 2px solid var(--ngo-secondary);
    font-weight: 500;
    padding: 0.6rem 1.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}
.btn-ngo-secondary:hover, .btn-ngo-secondary:focus {
    background-color: transparent;
    color: var(--ngo-secondary);
    border-color: var(--ngo-secondary);
}

.btn-ngo-outline-light {
    background-color: transparent;
    color: #fff;
    border: 2px solid #fff;
    font-weight: 500;
    padding: 0.6rem 1.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}
.btn-ngo-outline-light:hover {
    background-color: #fff;
    color: var(--ngo-dark);
}

/* Sticky Navbar customization */
.sticky-navbar {
    position: sticky;
    top: 0;
    z-index: 1020;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}
.sticky-navbar.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.navbar-brand {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}
.nav-link {
    font-weight: 500;
    color: var(--ngo-dark) !important;
    position: relative;
    padding: 0.5rem 1rem !important;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 10px;
    right: 10px;
    height: 2px;
    background-color: var(--ngo-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}
.nav-link:hover::after, .nav-link.active::after {
    transform: scaleX(1);
}
.nav-link.active {
    color: var(--ngo-primary) !important;
}

/* Hero Section */
.hero-section {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: calc(100vh - 75px);
    display: flex;
    align-items: center;
    color: #fff;
}
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(33, 37, 41, 0.9) 0%, rgba(13, 110, 253, 0.3) 100%);
    z-index: 1;
}
.hero-content {
    position: relative;
    z-index: 2;
}
.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.2rem;
    }
}

/* Common Header Section for pages */
.page-header {
    background: linear-gradient(135deg, var(--ngo-dark) 0%, #094eb5 100%);
    color: #fff;
    padding: 5rem 0;
    position: relative;
    text-align: center;
}

/* Premium NGO Cards */
.ngo-card {
    border: none;
    border-radius: 12px;
    background-color: #fff;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    height: 100%;
}
.ngo-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}
.ngo-card .card-img-top-wrapper {
    position: relative;
    overflow: hidden;
}
.ngo-card .card-img-top-wrapper img {
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.ngo-card:hover .card-img-top-wrapper img {
    transform: scale(1.08);
}
.ngo-card-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--ngo-primary);
    color: white;
    padding: 0.4rem 0.8rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 30px;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* Stats Section */
.counter-box {
    text-align: center;
    padding: 2rem;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.05);
}
.counter-number {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--ngo-primary);
    margin-bottom: 0.5rem;
    line-height: 1;
}

/* Testimonial slider */
.testimonial-card {
    background-color: #fff;
    border-radius: 15px;
    padding: 2.5rem;
    box-shadow: 0 5px 25px rgba(0,0,0,0.05);
    border-left: 5px solid var(--ngo-primary);
    position: relative;
}
.testimonial-quote {
    font-size: 1.1rem;
    font-style: italic;
    color: #555;
    margin-bottom: 1.5rem;
}
.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
}

/* Timelines structure */
.timeline {
    position: relative;
    padding: 2rem 0;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background-color: rgba(13, 110, 253, 0.2);
    transform: translateX(-50%);
}
.timeline-item {
    position: relative;
    margin-bottom: 3rem;
}
.timeline-content {
    background-color: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    width: 45%;
    border-top: 4px solid var(--ngo-primary);
}
.timeline-item:nth-child(even) .timeline-content {
    margin-left: auto;
}
.timeline-badge {
    position: absolute;
    left: 50%;
    top: 20px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: var(--ngo-primary);
    border: 4px solid #fff;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.3);
    transform: translateX(-50%);
}
@media (max-width: 768px) {
    .timeline::before {
        left: 20px;
    }
    .timeline-content {
        width: calc(100% - 50px);
        margin-left: 50px !important;
    }
    .timeline-badge {
        left: 20px;
    }
}

/* Gallery layout */
.gallery-grid {
    column-count: 3;
    column-gap: 1.5rem;
}
@media (max-width: 992px) {
    .gallery-grid {
        column-count: 2;
    }
}
@media (max-width: 576px) {
    .gallery-grid {
        column-count: 1;
    }
}
.gallery-item {
    display: inline-block;
    width: 100%;
    margin-bottom: 1.5rem;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    cursor: pointer;
}
.gallery-item img, .gallery-item video {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}
.gallery-item:hover img, .gallery-item:hover video {
    transform: scale(1.05);
}
.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(13, 110, 253, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    flex-direction: column;
    color: #fff;
    padding: 1.5rem;
    text-align: center;
}
.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* Lightbox Modal */
.lightbox-modal .modal-content {
    background-color: transparent;
    border: none;
}
.lightbox-modal .modal-body {
    position: relative;
    padding: 0;
    text-align: center;
}
.lightbox-modal .btn-close {
    position: absolute;
    top: -40px;
    right: 0;
    filter: invert(1) grayscale(100%) brightness(200%);
    font-size: 1.5rem;
}
.lightbox-img, .lightbox-video {
    max-height: 80vh;
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.5);
}

/* PDF Preview Cards */
.pdf-card {
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 12px;
    padding: 1.5rem;
    background-color: #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
    transition: all 0.3s ease;
}
.pdf-card:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    border-color: rgba(13, 110, 253, 0.2);
}
.pdf-icon-wrapper {
    width: 70px;
    height: 90px;
    background-color: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 2.2rem;
    margin-right: 1.5rem;
    border: 1px solid rgba(220, 53, 69, 0.2);
}

/* Animation utilities - scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(35px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}
.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}
.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}
.reveal-fade {
    opacity: 0;
    transition: opacity 1s ease;
}
.reveal-fade.active {
    opacity: 1;
}

/* Staggered Delay Helpers */
.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }
.delay-500 { transition-delay: 0.5s; }

/* Sticky WhatsApp & Back-To-Top */
.sticky-widgets {
    position: fixed;
    bottom: 25px;
    right: 25px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 1000;
}
.btn-widget {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.btn-widget:hover {
    transform: scale(1.1);
    color: white;
}
.btn-whatsapp {
    background-color: #25D366;
}
.btn-back-to-top {
    background-color: var(--ngo-primary);
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s ease;
}
.btn-back-to-top.show {
    opacity: 1;
    transform: scale(1);
}

/* Footer structure styling */
.ngo-footer {
    background-color: var(--ngo-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 5rem 0 2rem 0;
}
.ngo-footer h5 {
    color: #fff;
    margin-bottom: 1.5rem;
    font-weight: 600;
    position: relative;
    padding-bottom: 0.5rem;
}
.ngo-footer h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--ngo-primary);
}
.ngo-footer a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}
.ngo-footer a:hover {
    color: var(--ngo-accent);
}
.social-icon-btn {
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff !important;
    margin-right: 8px;
    transition: all 0.3s ease;
}
.social-icon-btn:hover {
    background-color: var(--ngo-primary);
}

/* Form validation styling */
.form-control:focus, .form-select:focus {
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.15);
    border-color: var(--ngo-primary);
}

/* Infographic section styles */
.info-step {
    text-align: center;
    position: relative;
}
.info-step-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: rgba(13, 110, 253, 0.1);
    color: var(--ngo-primary);
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
    font-weight: 700;
    border: 2px dashed var(--ngo-primary);
}
.info-step::after {
    content: '\F138'; /* bi-arrow-right */
    font-family: 'bootstrap-icons';
    position: absolute;
    top: 25px;
    right: -15%;
    font-size: 1.5rem;
    color: var(--ngo-primary);
}
@media (max-width: 992px) {
    .info-step::after {
        display: none;
    }
}
