/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #006699;
    --secondary-color: #003366;
    --accent-color: #990000;
    --hover-color: #ff0000;
    --text-dark: #333;
    --text-light: #666;
    --white: #fff;
    --shadow: 0 10px 30px rgba(0,0,0,0.1);
    --shadow-lg: 0 20px 60px rgba(0,0,0,0.15);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: #f8f9fa;
    overflow-x: hidden;
}

/* Loading Screen */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-logo {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Top Bar */
.top-bar {
    background: linear-gradient(135deg, #001122 0%, #003366 50%, #006699 100%);
    color: var(--white);
    padding: 8px 0;
    font-size: 14px;
    box-shadow: var(--shadow);
}

.top-bar-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.account-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.account-info i {
    color: #ffd700;
}

/* Header & Navigation */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--white);
    box-shadow: var(--shadow);
}

.navbar {
border-top: 5px solid;
    border-bottom: 5px solid;
    border-image: linear-gradient(to right, red, yellow) 1;
    background: var(--white);
    padding: 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo-container {
    flex-shrink: 0;
}

.logo {
    width: 60px;
    height: 60px;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.1);
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 5px;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-dark);
    text-decoration: none;
    padding: 15px 20px;
    font-weight: 500;
    font-size: 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
    background: linear-gradient(135deg, var(--accent-color), var(--hover-color));
    color: var(--white);
    transform: translateY(-2px);
}

.nav-link i {
    font-size: 16px;
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 220px;
    box-shadow: var(--shadow-lg);
    border-radius: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    list-style: none;
    padding: 10px 0;
    margin: 0;
    z-index: 1001;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    border-bottom: 1px solid #f0f0f0;
}

.dropdown-menu li:last-child {
    border-bottom: none;
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.dropdown-menu a:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding-left: 25px;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
    gap: 4px;
    z-index: 1002;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Banner */
.banner {
    position: relative;
    overflow: hidden;
}

.banner-img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.banner-overlay {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--white);
    z-index: 2;
}

.banner-overlay h1 {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.banner-overlay p {
    font-size: clamp(1rem, 3vw, 1.5rem);
    font-weight: 300;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* Content Section */
.content-section {
    padding: 60px 0;
    background: #f8f9fa;
}

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

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 30px;
}

...card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.4s ease;
    position: relative;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

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

.card-image img {
        width: 100%;
        height: auto;
        object-fit: contain;
    }

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

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,102,153,0.9), rgba(0,51,102,0.9));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card:hover .card-overlay {
    opacity: 1;
}

.card-overlay i {
    font-size: 24px;
    color: var(--white);
    transform: scale(0);
    transition: transform 0.3s ease;
}

.card:hover .card-overlay i {
    transform: scale(1);
}

/* Footer Styles */
.footer {
    background: linear-gradient(135deg, #001122 0%, #003366 50%, #006699 100%);
    color: white;
    margin-top: 0px;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(to right, red, yellow);
    animation: glow 3s ease-in-out infinite alternate;
}

@keyframes glow {
    0% { opacity: 0.6; }
    100% { opacity: 1; }
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px 30px;
}

.footer-main {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3,
.footer-section h4 {
    color: #FFFF00;
    margin-bottom: 20px;
    font-size: 1.3rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-section h4 {
    font-size: 1.1rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.footer-logo-img {
    height: 50px;
    width: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(255,255,0,0.3);
}

.footer-section p {
    color: #e0e0e0;
    line-height: 1.7;
    margin-bottom: 20px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section ul li a {
    color: #b0d4ff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    padding: 8px 0;
}

.footer-section ul li a:hover {
    color: #FFFF00;
    transform: translateX(5px);
    text-decoration: underline;
}

/* Donation Box */
.donation-box {
    background: rgba(255,255,0,0.1);
    padding: 25px;
    border-radius: 15px;
    border: 2px solid rgba(255,255,0,0.2);
    margin-bottom: 20px;
}

.account-number {
    font-size: 1rem;
    font-weight: 700;
    color: #FFFF00;
    background: rgba(0,0,0,0.3);
    padding: 8px 12px;
    border-radius: 8px;
    display: inline-block;
    word-break: break-all;
    margin: 10px 0;
}

.bank-details {
    font-size: 0.9rem;
    color: #e0e0e0;
    line-height: 1.6;
}

.footer-donate-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(45deg, #FF4444, #FF6666);
    color: white;
    padding: 14px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(255,68,68,0.3);
    width: 100%;
    justify-content: center;
}

.footer-donate-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255,68,68,0.4);
}

/* Social Links */
.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 45px;
    height: 45px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.social-links a:hover {
    background: #FFFF00;
    color: #001122;
    transform: translateY(-5px) scale(1.1);
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    text-align: center;
}

.developer-link {
    color: #FFFF00;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.developer-link:hover {
    text-decoration: underline;
    color: #FF6600;
}

/* Mobile Responsive Footer */
@media (max-width: 768px) {
    .footer-container {
        padding: 40px 15px 20px;
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .footer-logo {
        justify-content: center;
    }

    .footer-bottom-content {
        flex-direction: column;
        gap: 15px;
    }

    .donation-box {
        padding: 20px;
    }

    .account-number {
        font-size: 0.9rem;
    }

    .social-links {
        justify-content: center;
    }
}


/* Responsive Design

/* Mobile Responsive Styles */
@media (max-width: 991px) {
    .top-bar {
        font-size: 12px;
        padding: 6px 0;
    }
    
    .account-info {
        flex-wrap: wrap;
        gap: 5px;
        justify-content: center;
    }
    
    .nav-container {
        padding: 0 15px;
        height: 60px;
    }
    
    .logo {
        width: 40px;
        height: 40px;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        max-width: 350px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 80px 30px 30px;
        transition: left 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        box-shadow: var(--shadow-lg);
        z-index: 1001;
        overflow-y: auto;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        width: 100%;
        margin-bottom: 5px;
    }
    
    .nav-link {
        justify-content: flex-start;
        padding: 15px 20px;
        border-radius: 10px;
        font-size: 16px;
    }
    
    /* Mobile Dropdown */
    .dropdown-menu {
        position: static;
        width: 100%;
        max-height: 0;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: #f8f9fa;
        box-shadow: none;
        padding: 0;
        overflow: hidden;
        transition: max-height 0.3s ease, padding 0.3s ease;
        margin-top: 5px;
    }
    
    .dropdown-menu.show {
        max-height: 300px;
        padding: 10px 0;
    }
    
    .dropdown-menu a {
        padding-left: 40px;
        font-size: 15px;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -5px);
    }
    
    body.menu-open {
        overflow: hidden;
    }
    
    /* Overlay for mobile menu */
    body.menu-open::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 1000;
    }
}

@media (max-width: 768px) {
    .banner-img {
        width: 100%;
    }
    
    .cards-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
    }

.card-image img {
        width: 100%;
        height: auto;
        object-fit: contain;
    }
    
    .content-section {
        padding: 40px 0;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
   .card-image img {
        width: 100%;
        height: auto;
        object-fit: contain;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* Header Scroll Effects */
.header.scrolled {
    box-shadow: var(--shadow-lg) !important;
}

.header.scrolled .logo {
    width: 45px;
    height: 45px;
}

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

.animate {
    animation: fadeInUp 0.6s ease forwards;
}

/* Back to Top Button */
.back-to-top:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 15px 40px rgba(0,102,153,0.4);
}