/* ========================================
   HOPE CHARITY FOUNDATION - CSS DESIGN SYSTEM
   Modern, Premium, Fully Responsive Design
   ======================================== */

/* ========== CSS VARIABLES ========== */
:root {
    /* Color Palette - Vibrant & Professional */
    --primary-color: #2563eb;
    --primary-dark: #1e40af;
    --primary-light: #3b82f6;
    --secondary-color: #f59e0b;
    --secondary-dark: #d97706;
    --accent-color: #10b981;
    --accent-dark: #059669;

    /* Neutral Colors */
    --dark-navy: #1e293b;
    --text-dark: #334155;
    --text-light: #64748b;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --border-color: #e2e8f0;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    --gradient-secondary: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
    --gradient-hero: linear-gradient(135deg, rgba(37, 99, 235, 0.95) 0%, rgba(59, 130, 246, 0.9) 100%);
    --gradient-overlay: linear-gradient(180deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.3) 100%);

    /* Typography */
    --font-primary: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-heading: 'Poppins', 'Inter', sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.15);
    --shadow-glow: 0 0 20px rgba(37, 99, 235, 0.3);

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-full: 9999px;
}

/* ========== RESET & BASE STYLES ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    color: var(--text-dark);
    background-color: var(--bg-white);
    line-height: 1.6;
    overflow-x: hidden;
}

body.nav-open {
    overflow: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-normal);
}

ul,
ol {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

/* ========== TYPOGRAPHY ========== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--dark-navy);
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

h4 {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
}

h5 {
    font-size: 1.125rem;
}

h6 {
    font-size: 1rem;
}

p {
    margin-bottom: var(--spacing-sm);
    color: var(--text-light);
}

/* ========== CONTAINER & LAYOUT ========== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.container-fluid {
    width: 100%;
    padding: 0 var(--spacing-md);
}

.section {
    padding: var(--spacing-2xl) 0;
}

.section-alt {
    background-color: var(--bg-light);
}

/* ========== TOP CONTACT STRIP ========== */
.top-strip {
    background: var(--gradient-primary);
    color: var(--bg-white);
    padding: var(--spacing-xs) 0;
    font-size: 0.875rem;
    position: relative;
    z-index: 100;
}

.top-strip-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.contact-info {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-item i {
    font-size: 1rem;
}

.social-icons {
    display: flex;
    gap: var(--spacing-sm);

}

/* Mobile-only donate button in the top strip */
.top-donate-btn {
    display: none; /* hidden by default */
}

.top-donate-btn .btn-donate {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.75rem;
    background: var(--secondary-color);
    color: #fff;
    border-radius: var(--radius-full);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .top-donate-btn {
        display: block;
        width: 100%;
        order: 2;
        margin: 0.35rem 0;
        text-align: center;
    }

    .top-strip-content {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }

    .social-icons {
        order: 1;
        justify-content: center;
        width: 100%;
    }
}

.social-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    transition: var(--transition-normal);
    backdrop-filter: blur(10px);
}

.social-icon:hover {
    background: var(--bg-white);
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

/* ========== HEADER & NAVIGATION ========== */
.header {
    background: var(--bg-white);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition-normal);
}

.header.scrolled {
    box-shadow: var(--shadow-lg);
}

.navbar {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-md) 0;
    gap: var(--spacing-lg);
}

/* Logo Section */
.logo-section {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    flex-shrink: 0;
    z-index: 998;
}

.logo {
    width: 70px;
    height: 70px;
    border-radius: var(--radius-full);
    object-fit: cover;
    /* border: 3px solid var(--primary-color);
    box-shadow: var(--shadow-md); */
    transition: var(--transition-normal);
}

.logo:hover {
    transform: scale(1.05) rotate(5deg);
    box-shadow: var(--shadow-glow);
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.ngo-name {
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    font-weight: 700;
    color: var(--dark-navy);
    line-height: 1.2;
    margin: 0;
}

.ngo-tagline {
    font-size: clamp(0.7rem, 1.5vw, 0.85rem);
    color: var(--text-light);
    font-weight: 400;
    margin: 0;
}

/* Navigation Menu */
.nav-menu-wrapper {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.nav-menu {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.2rem;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
    transition: all 0.3s ease;
    border-radius: var(--radius-md);
    white-space: nowrap;
}

.nav-link i {
    font-size: 1rem;
    transition: var(--transition-normal);
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color);
    background: rgba(37, 99, 235, 0.1);
}

.nav-link:hover i {
    transform: scale(1.1);
}

.nav-link.active {
    color: var(--primary-color);
    background: rgba(37, 99, 235, 0.12);
}

.nav-link:hover::before,
.nav-link.active::before {
    width: 70%;
}

/* Donate Button */
.nav-link.donate-btn {
    background: var(--gradient-secondary);
    color: var(--bg-white);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-full);
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
    margin-left: 0.5rem;
}

.nav-link.donate-btn::before {
    display: none;
}

.nav-link.donate-btn:hover {
    background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
    transform: translateY(-2px);
    color: var(--bg-white);
}

.nav-link.donate-btn i {
    animation: pulse 2s infinite;
}

/* Mobile Menu Toggle Button */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 32px;
    height: 26px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    position: relative;
}

.menu-icon {
    width: 100%;
    height: 3px;
    background: var(--dark-navy);
    border-radius: var(--radius-full);
    transition: all 0.3s ease;
    position: relative;
    transform-origin: center;
}

.menu-toggle.active .menu-icon:nth-child(1) {
    transform: rotate(45deg) translateY(11px);
    background: var(--primary-color);
}

.menu-toggle.active .menu-icon:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}

.menu-toggle.active .menu-icon:nth-child(3) {
    transform: rotate(-45deg) translateY(-11px);
    background: var(--primary-color);
}

/* Ensure menu toggle is clickable on mobile */
@media (max-width: 768px) {
    .menu-toggle {
        position: relative;
        z-index: 1001;
        display: flex !important;
        touch-action: manipulation;
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        user-select: none;
    }
}

/* ========== SLIDER ========== */
.slider {
    position: relative;
    width: 100%;
    min-height: clamp(420px, 85vh, 820px);
    overflow: hidden;
    background: var(--dark-navy);
}

.page-hero {
    position: relative;
    width: 100%;
    min-height: clamp(240px, 45vh, 420px);
    display: flex;
    align-items: center;
    padding: var(--spacing-2xl) var(--spacing-md);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--gradient-overlay);
}

.page-hero-content {
    position: relative;
    z-index: 1;
    max-width: 720px;
    color: var(--bg-white);
    text-align: center;
    margin: 0 auto;
}

.page-hero-subtitle {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.15);
    color: var(--bg-white);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: var(--spacing-sm);
}

.page-hero h1 {
    color: var(--bg-white);
    margin-bottom: var(--spacing-sm);
}

.page-hero p {
    color: rgba(255, 255, 255, 0.85);
    max-width: 640px;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform-origin: center;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-overlay);
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide-content {
    text-align: center;
    color: var(--bg-white);
    max-width: 800px;
    padding: var(--spacing-md);
    animation: slideUp 1s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-content h1 {
    color: var(--bg-white);
    margin-bottom: var(--spacing-md);
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
}

.slide-content p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: var(--spacing-lg);
}

.slider-controls {
    position: absolute;
    bottom: var(--spacing-lg);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: var(--spacing-sm);
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition-normal);
}

.slider-dot.active {
    background: var(--bg-white);
    width: 40px;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    color: var(--bg-white);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition-normal);
    backdrop-filter: blur(10px);
}

.slider-arrow:hover {
    background: rgba(255, 255, 255, 0.4);
}

.slider-arrow.prev {
    left: var(--spacing-md);
}

.slider-arrow.next {
    right: var(--spacing-md);
}

/* ========== BUTTONS ========== */
.btn {
    display: inline-block;
    padding: var(--spacing-sm) var(--spacing-lg);
    font-weight: 600;
    border-radius: var(--radius-full);
    transition: var(--transition-normal);
    text-align: center;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--bg-white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

.btn-secondary {
    background: var(--gradient-secondary);
    color: var(--bg-white);
    box-shadow: var(--shadow-md);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--bg-white);
}

.btn-lg {
    padding: var(--spacing-md) var(--spacing-xl);
    font-size: 1.125rem;
}

/* ========== SECTION HEADERS ========== */
.section-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.section-subtitle {
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.875rem;
    margin-bottom: var(--spacing-xs);
}

.section-title {
    margin-bottom: var(--spacing-sm);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--gradient-secondary);
    border-radius: var(--radius-full);
}

.section-description {
    max-width: 700px;
    margin: var(--spacing-md) auto 0;
    font-size: 1.125rem;
}

/* ========== ABOUT SECTION ========== */
.about-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-xl);
    align-items: center;
}

.about-image {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.about-image:hover img {
    transform: scale(1.05);
}

.about-text h3 {
    margin-bottom: var(--spacing-md);
    color: var(--dark-navy);
}

.about-text p {
    margin-bottom: var(--spacing-md);
    line-height: 1.8;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.feature-item {
    text-align: center;
    padding: var(--spacing-md);
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    transition: var(--transition-normal);
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
}

.feature-item h4 {
    font-size: 1rem;
    margin-bottom: var(--spacing-xs);
}

/* ========== SERVICES SECTION ========== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
}

.service-card {
    background: var(--bg-white);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: var(--transition-normal);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-media {
    width: 100%;
    height: 180px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: var(--spacing-md);
    position: relative;
    box-shadow: var(--shadow-md);
}

.service-media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.35) 100%);
    pointer-events: none;
}

.service-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
    display: block;
}

.service-card:hover .service-media img {
    transform: scale(1.08);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-md);
    color: var(--bg-white);
    font-size: 2rem;
    box-shadow: var(--shadow-md);
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.service-card h3 {
    margin-bottom: var(--spacing-sm);
    color: var(--dark-navy);
    text-align: center;
    font-size: 1.35rem;
    letter-spacing: 0.5px;
    position: relative;
    padding-bottom: 0.5rem;
}

.service-card h3::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
}

.service-card p {
    line-height: 1.7;
    text-align: center;
    color: var(--text-light);
    font-size: 0.975rem;
}

.service-description {
    color: var(--text-light);
    font-size: 0.975rem;
    margin-bottom: var(--spacing-md);
    text-align: left;
}

.service-list {
    list-style: none;
    padding: var(--spacing-sm);
    margin: 0;
    border-radius: var(--radius-md);
    background: rgba(37, 99, 235, 0.06);
    border: 1px solid rgba(37, 99, 235, 0.1);
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.service-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    color: var(--text-dark);
    font-weight: 500;
    position: relative;
    padding-left: 1.5rem;
}

.service-list li::before {
    content: '\f00c';
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: var(--primary-color);
    position: absolute;
    left: 0;
    top: 0.2rem;
}

/* ========== DONATION SECTION ========== */
.donation-section {
    background: var(--gradient-hero);
    color: var(--bg-white);
    text-align: center;
    padding: var(--spacing-2xl) 0;
    position: relative;
    overflow: hidden;
}

.donation-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.donation-section::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.donation-content {
    position: relative;
    z-index: 1;
}

.donation-section h2,
.donation-section p {
    color: var(--bg-white);
}

.donation-section .section-title::after {
    background: var(--bg-white);
}

.donation-text {
    font-size: 1.25rem;
    max-width: 800px;
    margin: var(--spacing-lg) auto;
    line-height: 1.8;
}

.btn-donate {
    background: var(--bg-white);
    color: var(--primary-color);
    padding: var(--spacing-md) var(--spacing-xl);
    font-size: 1.25rem;
    font-weight: 700;
    margin-top: var(--spacing-md);
    box-shadow: var(--shadow-xl);
}

.btn-donate:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

/* ========== GALLERY ========== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: var(--spacing-md);
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    cursor: pointer;
    aspect-ratio: 1;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
}

.gallery-item:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-xl);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(37, 99, 235, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-normal);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    color: var(--bg-white);
    font-size: 3rem;
}

/* ========== LIGHTBOX/POPUP ========== */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.lightbox.active {
    display: flex;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
}

.lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    color: var(--bg-white);
    font-size: 2.5rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-normal);
}

.lightbox-close:hover {
    transform: rotate(90deg);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: var(--bg-white);
    font-size: 3rem;
    cursor: pointer;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    transition: var(--transition-normal);
    backdrop-filter: blur(10px);
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-prev {
    left: var(--spacing-lg);
}

.lightbox-next {
    right: var(--spacing-lg);
}

/* ========== FOOTER ========== */
.footer {
    background: var(--dark-navy);
    color: rgba(255, 255, 255, 0.8);
    padding: var(--spacing-xl) 0 var(--spacing-md);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-lg);
}

.footer-section h3 {
    color: var(--bg-white);
    margin-bottom: var(--spacing-md);
    font-size: 1.25rem;
}

.footer-section p,
.footer-section a {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: var(--spacing-xs);
    transition: var(--transition-normal);
}

.footer-section a:hover {
    color: var(--primary-light);
    padding-left: 5px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--spacing-md);
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

/* ========== CONTACT FORM ========== */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: var(--bg-white);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.contact-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: var(--gradient-primary);
}

.form-group {
    margin-bottom: var(--spacing-md);
}

.form-group label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-weight: 600;
    color: var(--dark-navy);
}

.form-control {
    width: 100%;
    padding: var(--spacing-sm);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition-normal);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 150px;
}

/* ========== RESPONSIVE DESIGN ========== */

/* Tablet & Mobile */
@media (max-width: 992px) {
    .nav-link span {
        display: inline;
    }
    
    .nav-link {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
    
    .nav-link.donate-btn {
        padding: 0.65rem 1.2rem;
    }
}

@media (max-width: 768px) {
    /* Top Strip */
    .top-strip {
        padding: 0.6rem 0;
    }
    
    .top-strip-content {
        flex-direction: column;
        gap: 0.5rem;
    }

    .contact-info {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: var(--spacing-sm);
    }
    
    .contact-item {
        font-size: 0.8rem;
    }
    
    .social-icons {
        gap: 0.5rem;
    }
    
    .social-icon {
        width: 28px;
        height: 28px;
        font-size: 0.85rem;
    }

    /* Header & Navigation */
    .nav-wrapper {
        padding: 1rem 0;
    }
    
    .logo {
        width: 50px;
        height: 50px;
    }
    
    .ngo-name {
        font-size: 1.1rem;
    }
    
    .ngo-tagline {
        font-size: 0.7rem;
    }

    /* Show Mobile Menu Toggle */
    .menu-toggle {
        display: flex;
    }

    /* Mobile Menu Wrapper */
    .nav-menu-wrapper {
        position: fixed;
        inset: 0;
        width: 100%;
        height: 100vh;
        background: rgba(15, 23, 42, 0.95);
        backdrop-filter: blur(12px);
        transition: transform 0.35s ease, opacity 0.3s ease;
        z-index: 1000;
        overflow-y: auto;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: var(--spacing-xl) var(--spacing-md);
        transform: translateX(100%);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }

    .nav-menu-wrapper.active {
        transform: translateX(0);
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    /* Mobile Menu */
    .nav-menu {
        flex-direction: column;
        gap: 0;
        width: 90%;
        max-width: 420px;
        padding: 2rem;
        background: rgba(15, 23, 42, 0.85);
        border-radius: var(--radius-lg);
        box-shadow: var(--shadow-xl);
    }

    .nav-item {
        width: 100%;
        opacity: 0;
        transform: translateX(-30px);
        transition: all 0.3s ease;
    }

    .nav-menu-wrapper.active .nav-item {
        opacity: 1;
        transform: translateX(0);
    }

    .nav-menu-wrapper.active .nav-item:nth-child(1) { transition-delay: 0.1s; }
    .nav-menu-wrapper.active .nav-item:nth-child(2) { transition-delay: 0.15s; }
    .nav-menu-wrapper.active .nav-item:nth-child(3) { transition-delay: 0.2s; }
    .nav-menu-wrapper.active .nav-item:nth-child(4) { transition-delay: 0.25s; }
    .nav-menu-wrapper.active .nav-item:nth-child(5) { transition-delay: 0.3s; }

    .nav-link {
        width: 100%;
        padding: 1.2rem 1.5rem;
        font-size: 1.2rem;
        color: var(--bg-white);
        border-radius: var(--radius-md);
        text-align: left;
        margin-bottom: 0.5rem;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-link i {
        font-size: 1.3rem;
        width: 30px;
    }

    .nav-link:hover {
        background: rgba(37, 99, 235, 0.2);
        color: var(--bg-white);
        transform: translateX(10px);
    }

    .nav-link.active {
        background: rgba(37, 99, 235, 0.3);
        color: var(--bg-white);
        border-color: var(--primary-color);
    }

    .nav-link::before {
        display: none;
    }

    .donate-item {
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-link.donate-btn {
        background: var(--gradient-secondary);
        color: var(--bg-white);
        padding: 1.3rem 1.5rem;
        font-size: 1.3rem;
        font-weight: 700;
        text-align: center;
        margin-left: 0;
        border: 2px solid var(--secondary-color);
    }

    .nav-link.donate-btn:hover {
        transform: scale(1.05);
        box-shadow: 0 10px 30px rgba(245, 158, 11, 0.4);
    }

    .slider {
        min-height: 400px;
    }

    .slide-content h1 {
        font-size: 2rem;
    }

    .slide-content p {
        font-size: 1rem;
    }

    .slider-arrow {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: var(--spacing-sm);
    }

    .lightbox-nav {
        width: 50px;
        height: 50px;
        font-size: 2rem;
    }

    .lightbox-prev {
        left: var(--spacing-sm);
    }

    .lightbox-next {
        right: var(--spacing-sm);
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    :root {
        font-size: 14px;
    }
    
    .top-strip {
        font-size: 0.75rem;
    }
    
    .contact-info {
        flex-direction: column;
        align-items: center;
    }

    .logo {
        width: 45px;
        height: 45px;
    }
    
    .brand-text {
        max-width: 180px;
    }
    
    .ngo-name {
        font-size: 0.95rem;
    }
    
    .ngo-tagline {
        font-size: 0.65rem;
    }
    
    .menu-toggle {
        width: 28px;
        height: 22px;
    }
    
    .menu-icon {
        height: 2.5px;
    }
    
    .nav-menu {
        padding: 1.5rem;
    }
    
    .nav-link {
        padding: 1rem 1.2rem;
        font-size: 1.1rem;
    }
    
    .nav-link.donate-btn {
        padding: 1.1rem 1.2rem;
        font-size: 1.2rem;
    }

    .slider {
        min-height: 320px;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
}

/* ========== UTILITY CLASSES ========== */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mt-1 {
    margin-top: var(--spacing-sm);
}

.mt-2 {
    margin-top: var(--spacing-md);
}

.mt-3 {
    margin-top: var(--spacing-lg);
}

.mb-1 {
    margin-bottom: var(--spacing-sm);
}

.mb-2 {
    margin-bottom: var(--spacing-md);
}

.mb-3 {
    margin-bottom: var(--spacing-lg);
}

.d-none {
    display: none;
}

.d-block {
    display: block;
}

.d-flex {
    display: flex;
}

.d-grid {
    display: grid;
}

/* ========== ANIMATIONS ========== */
@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.animate-pulse {
    animation: pulse 2s infinite;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.policy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-2xl);
}

.policy-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-sm);
}

.policy-card h3 {
    margin-bottom: var(--spacing-sm);
}

.policy-card ul,
.policy-card ol {
    padding-left: 1.25rem;
    color: var(--text-light);
}

.policy-card li {
    margin-bottom: 0.35rem;
}

.policy-contact {
    background: var(--gradient-primary);
    color: var(--bg-white);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.policy-contact h3 {
    color: var(--bg-white);
    margin-bottom: var(--spacing-sm);
}

.policy-contact ul {
    list-style: disc;
    padding-left: 1.25rem;
}

.policy-contact li {
    margin-bottom: 0.35rem;
}