﻿/* Reset and body */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #555;
    background: #f8f8f8;
    margin: 0;
    padding: 0;
}

/* Top Header */
.top-header {
    background-color: #4B3F92;
    color: #fff;
    font-size: 0.85rem;
    padding: 4px 0;
    border-radius: 0 0 10px 10px;
}

    .top-header a {
        color: #fff;
        margin-left: 12px;
        text-decoration: none;
        transition: color 0.3s;
    }

        .top-header a:hover {
            color: #FFD1DC;
        }

/* Donate Button */
.donate-btn {
    background: linear-gradient(135deg, #7D162B, #FF4D6D);
    border: none;
    color: #fff;
    padding: 6px 18px;
    border-radius: 20px;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
}

    .donate-btn:hover {
        transform: scale(1.05);
        box-shadow: 0 6px 20px rgba(255,77,109,0.5);
    }

/* Navbar */
.navbar {
    background-color: #fff;
    box-shadow: 0 12px 40px rgba(0,0,0,0.08);
    padding: 0.5rem 1rem;
    border-radius: 0 0 15px 15px;
    margin-bottom: 10px;
}

/* Navbar links hover */
.navbar-nav .nav-link {
    position: relative;
    color: #4B3F92;
    font-weight: 500;
    padding: 1rem 1.5rem;
    transition: color 0.3s;
}

    .navbar-nav .nav-link:hover,
    .navbar-nav .nav-link:focus {
        color: #7D162B !important;
    }

    .navbar-nav .nav-link::after {
        content: '';
        position: absolute;
        left: 0;
        bottom: -2px;
        width: 100%;
        height: 3px;
        background: linear-gradient(270deg, #7D162B, #FF4D6D, #7D162B);
        transform: scaleX(0);
        transition: transform 0.3s ease;
    }

    .navbar-nav .nav-link:hover::after,
    .nav-item.dropdown:hover > .nav-link::after,
    .dropdown-menu .dropdown-item::after {
        transform: scaleX(1);
    }

/* Dropdown hover */
.nav-item.dropdown:hover .dropdown-menu {
    display: block;
    margin-top: 0;
    border-radius: 12px;
    animation: fadeIn 0.3s ease;
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

.dropdown-menu .dropdown-item {
    position: relative;
    color: #4B3F92;
    transition: all 0.3s;
}

    .dropdown-menu .dropdown-item::after {
        content: '';
        position: absolute;
        left: 0;
        bottom: -2px;
        width: 100%;
        height: 3px;
        background: linear-gradient(270deg, #7D162B, #FF4D6D, #7D162B);
        transform: scaleX(0);
        transition: transform 0.3s ease;
    }

    .dropdown-menu .dropdown-item:hover::after {
        transform: scaleX(1);
    }

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile adjustments: Hamburger icon right of logo */
@media(max-width: 991px) {
    .navbar .navbar-brand {
        order: 1; /* logo first */
        margin-right: auto;
    }

    .navbar .navbar-toggler {
        order: 2; /* toggler second */
    }

    .navbar-collapse {
        order: 3;
        width: 100%;
    }

    .navbar-nav .nav-link {
        padding: 0.5rem 1rem;
    }
}


.marquee {
    background: linear-gradient(270deg, #7D162B, #FF4D6D, #7D162B);
    background-size: 400% 400%;
    overflow: hidden;
    color: #fff;
    font-weight: 500;
    font-size: 0.95rem;
    text-align: center;
    padding: 8px 0;
    border-radius: 0 0 10px 10px;
    position: relative;
    animation: gradientBG 10s ease infinite;
}

.marquee-content {
    display: flex;
    width: max-content;
    animation: marqueeScroll 15s linear infinite;
    padding-left: 100%; /* starts off-screen */
}

    .marquee-content span {
        white-space: nowrap;
        padding-right: 50px;
    }

/* Smooth gradient animation */
@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Smooth marquee animation */
@keyframes marqueeScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}


@keyframes marqueeScroll {
    0% {
        transform: translateX(0%);
    }

    100% {
        transform: translateX(-50%); /* Smooth half-loop scroll */
    }
}



.navbar-brand img {
    animation: logoSlide 1s ease forwards;
    opacity: 0;
}

@keyframes logoSlide {
    0% {
        opacity: 0;
        transform: translateY(-50px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.slogan {
    font-size: 0.8rem;
    font-weight: bold;
    display: inline-block;
    text-align: center;
    background: linear-gradient(270deg, #7D162B, #FF4D6D, #FFD1DC, #7D162B);
    background-size: 600% 600%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 8s ease infinite, glowFade 4s ease-in-out infinite;
    filter: drop-shadow(0 0 5px rgba(255,77,109,0.3));
    margin-top: 5px;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes glowFade {
    0%, 100% {
        opacity: 0.85;
        text-shadow: 0 0 8px rgba(255,77,109,0.3);
    }

    50% {
        opacity: 1;
        text-shadow: 0 0 18px rgba(255,77,109,0.6);
    }
}

.carousel-item {
    position: relative;
    height: 500px;
    overflow: hidden;
}

    .carousel-item img {
        height: 100%;
        object-fit: cover;
        border-radius: 16px;
        filter: brightness(0.5);
        transition: transform 0.5s ease;
    }

    .carousel-item:hover img {
        transform: scale(1.05);
    }

.carousel-caption {
    bottom: 25%;
    background: rgba(0,0,0,0.35);
    padding: 2rem 3rem;
    border-radius: 20px;
    max-width: 600px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}

    .carousel-caption h2, .carousel-caption p {
        color: #fff;
        opacity: 0;
        animation: slideFade 1s forwards;
    }

    .carousel-caption h2 {
        animation-delay: 0.5s;
        font-size: 2.5rem;
        font-weight: 700;
        margin-bottom: 1rem;
    }

    .carousel-caption p {
        animation-delay: 1s;
        font-size: 1.1rem;
    }

@keyframes slideFade {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-box {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(12px);
    padding: 30px 20px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 12px 35px rgba(0,0,0,0.08);
    transition: transform 0.4s, box-shadow 0.4s;
}

    .feature-box i {
        font-size: 48px;
        background: linear-gradient(135deg,#7D162B,#FF4D6D);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        margin-bottom: 15px;
    }

    .feature-box h5 {
        font-weight: 700;
        margin-bottom: 10px;
    }

    .feature-box p {
        font-size: 0.95rem;
        color: #444;
    }

    .feature-box:hover {
        transform: translateY(-10px);
        box-shadow: 0 20px 45px rgba(0,0,0,0.12);
    }

.counters {
    background: #fff;
    padding: 50px 0;
    text-align: center;
}

.counter {
    font-size: 2.5rem;
    font-weight: 700;
    color: #7D162B;
}

.counter-label {
    font-size: 1.1rem;
    color: #555;
    margin-top: 5px;
}

.join-us {
    background: #fff;
    padding: 50px 20px;
    border-radius: 20px;
    box-shadow: 0 12px 35px rgba(0,0,0,0.08);
    margin-bottom: 50px;
}

    .join-us h3 {
        color: #7D162B;
        margin-bottom: 20px;
    }

    .join-us .form-control {
        margin-bottom: 15px;
        border-radius: 10px;
    }

    .join-us .submit-btn {
        background: linear-gradient(135deg,#7D162B,#FF4D6D);
        border: none;
        color: #fff;
        padding: 10px 20px;
        border-radius: 30px;
        font-weight: 600;
        transition: transform 0.3s;
    }

        .join-us .submit-btn:hover {
            transform: scale(1.05);
        }

footer {
    background: linear-gradient(135deg, #4B3F92, #7D162B);
    color: #fff;
    padding: 30px 0 30px;
    border-radius: 10px 10px 0 0;
}

    footer h5 {
        margin-bottom: 20px;
        font-weight: 600;
    }

    footer a {
        color: #fff;
        text-decoration: none;
        display: inline-block;
        margin-right: 15px;
        transition: all 0.3s;
    }

        footer a:hover {
            color: #FFD1DC;
            transform: translateY(-3px);
        }

.footer-icons {
    margin-top: 10px;
}

    .footer-icons i {
        font-size: 22px;
        margin-right: 15px;
        transition: 0.3s;
    }

        .footer-icons i:hover {
            transform: scale(1.3);
            color: #FFD1DC;
        }

.copyright {
    border-top: 1px solid rgba(255,255,255,0.2);
    margin-top: 25px;
    padding-top: 15px;
    font-size: 0.9rem;
    text-align: center;
}

#scrollTopBtn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    border: none;
    outline: none;
    background: linear-gradient(135deg,#7D162B,#FF4D6D);
    color: white;
    cursor: pointer;
    padding: 12px 16px;
    border-radius: 50%;
    font-size: 22px;
    display: none;
    transition: 0.3s;
}

    #scrollTopBtn:hover {
        transform: scale(1.1);
    }

@media(max-width:768px) {
    .carousel-caption {
        padding: 1rem 1.5rem;
        max-width: 90%;
    }

        .carousel-caption h2 {
            font-size: 1.8rem;
        }

        .carousel-caption p {
            font-size: 1rem;
        }

    .feature-box {
        padding: 20px 15px;
    }

    .navbar-nav .nav-link {
        padding: .75rem 1rem;
    }
}
