/* --- 1. Variables & Global Settings --- */
:root {
    /* IOS 26 Palette: Liquid, Deep, Vibrant */
    --primary-gradient: linear-gradient(135deg, #00C853 0%, #009624 100%);
    --accent-gradient: linear-gradient(135deg, #FF6B6B 0%, #FF8E53 100%);
    --glass-bg: rgba(255, 255, 255, 0.15);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-highlight: rgba(255, 255, 255, 0.4);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    --glass-blur: blur(25px);
    --glass-saturation: saturate(180%);

    --text-dark: #1A1A1A;
    --text-muted: #555555;
    --text-light: #FFFFFF;

    --font-main: 'Outfit', sans-serif;

    --radius-lg: 2rem;
    /* 32px - IOS 26 Standard */
    --radius-md: 1.5rem;
    /* 24px */
    --radius-sm: 1rem;
    /* 16px */
    background-clip: padding-box;
    /* Compatibility Fix */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    line-height: 1.6;
    color: var(--text-dark);
    background-color: #0d0d0d;
    /* Dark base for pop */
    overflow-x: hidden;
    position: relative;
    width: 100%;
    padding-top: 5.625rem;
}

/* --- 2. IOS 26 Liquid Mesh Animation --- */
.background-mesh {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -2;
    background:
        radial-gradient(circle at 15% 50%, rgba(76, 175, 80, 0.35), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(33, 150, 243, 0.35), transparent 25%),
        radial-gradient(circle at 50% 80%, rgba(255, 87, 34, 0.3), transparent 30%);
    filter: blur(80px);
    /* Extreme blur for liquid feel */
    opacity: 0.8;
    animation: liquidMove 20s ease-in-out infinite alternate;
}

@keyframes liquidMove {
    0% {
        transform: scale(1);
        filter: blur(80px);
    }

    50% {
        transform: scale(1.1);
        filter: blur(100px);
    }

    100% {
        transform: scale(1);
        filter: blur(80px);
    }
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

ul {
    list-style: none;
}

/* --- 3. Utility Classes (IOS 26 Glass) --- */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur) var(--glass-saturation);
    -webkit-backdrop-filter: var(--glass-blur) var(--glass-saturation);
    border: 1px solid var(--glass-border);
    border-top: 1px solid var(--glass-highlight);
    border-left: 1px solid var(--glass-highlight);
    border-radius: var(--radius-lg);
    box-shadow: var(--glass-shadow);
}

.container {
    max-width: 1200px;
    /* Wider for modern screens */
    margin: 0 auto;
    padding: 0 2rem;
}

/* Buttons: Liquid Pills */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    border-radius: 100px;
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: 0.02rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    border: none;
    -webkit-tap-highlight-color: transparent;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn:active {
    transform: scale(0.95);
}

.btn-primary {
    background: var(--primary-gradient);
    color: var(--text-light);
    box-shadow: 0 10px 20px -5px rgba(0, 200, 83, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.2), transparent);
    opacity: 0;
    transition: 0.3s;
}

.btn-primary:hover {
    box-shadow: 0 15px 30px -5px rgba(0, 200, 83, 0.6);
    transform: translateY(-3px);
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.section-title {
    text-align: center;
    margin-bottom: 5rem;
}

.section-title h2 {
    font-size: 3.5rem;
    background: linear-gradient(135deg, #fff 0%, #aaa 100%);
    /* Metal/Glass Text */
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
    display: inline-block;
    font-weight: 800;
    letter-spacing: -0.02em;
    filter: drop-shadow(0 4px 4px rgba(0, 0, 0, 0.3));
}

.section-title p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.2rem;
    max-width: 650px;
    margin: 0 auto;
}

/* --- 4. Header (Floating Glass Pill) --- */
header {
    background: rgba(20, 20, 20, 0.6);
    /* Darker glass for contrast */
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    position: fixed;
    top: 1.5rem;
    /* Floating effect */
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    z-index: 1000;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    /* Full pill shape */
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    transition: 0.4s;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 4.5rem;
    /* Compact height */
    padding: 0 2rem;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.9);
    /* High opacity white for contrast */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    /* Pill shape */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    /* Lifted effect */
    border: 1px solid rgba(255, 255, 255, 0.8);
    transition: transform 0.3s ease;
}

.logo-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.logo-img {
    height: 3rem;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    font-size: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    transition: 0.3s;
}

.nav-links a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.nav-links .btn {
    padding: 0.6rem 1.8rem;
    /* Smaller for header */
}

.burger {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0.3rem;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: #fff;
    margin: 6px;
    transition: all 0.3s ease;
    border-radius: 10px;
}

/* --- 5. Hero Section (Immersive) --- */
/* --- 5. Hero Section (Immersive IOS 26) --- */
#hero {
    position: relative;
    /* Deep IOS Depth Gradient */
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.6)), url('https://images.unsplash.com/photo-1488521787991-ed7bbaae773c?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    /* Parallax feel */
    height: 90vh;
    /* Taller */
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-light);
    border-radius: 0 0 3rem 3rem;
    /* Soft curve at bottom */
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    margin: 0 1rem;
    /* Floating card effect */
    margin-top: 1rem;
}

#hero h1 {
    font-size: 5rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.04em;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    background: linear-gradient(to bottom, #fff, #ddd);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

#hero p {
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
    max-width: 46.8rem;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.95;
    background-clip: padding-box;
    /* Compatibility Fix */
    font-weight: 400;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.urdu-text {
    font-family: 'Noto Nastaliq Urdu', serif;
    font-size: 1.8rem;
    margin-top: 1rem;
    display: block;
    direction: rtl;
    line-height: 1.8;
}

/* --- 6. About Section (Glass Cards) --- */
/* --- 6. About Section (Glass Cards) --- */
#about {
    padding: 8rem 0;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 5rem;
}

.about-image {
    flex: 1;
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    /* Glass Border Wrapper */
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    box-shadow: var(--glass-shadow);
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform 0.5s ease;
}

.about-image:hover {
    transform: perspective(1000px) rotateY(0deg) scale(1.02);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-md);
}

.about-text {
    flex: 1;
    background: var(--glass-bg);
    padding: 3rem;
    border-radius: var(--radius-lg);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

.about-text h3 {
    font-size: 2rem;
    color: var(--text-light);
    /* Dark mode adjustment */
    margin-bottom: 1.5rem;
    padding-left: 0;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.about-text h3::before {
    content: '';
    display: block;
    width: 6px;
    height: 30px;
    background: var(--primary-gradient);
    border-radius: 10px;
    position: static;
    transform: none;
}

.about-text p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    font-weight: 300;
}

/* --- 7. Services (Hover Glow) --- */
/* --- 7. Services (Hover Glow) --- */
#services {
    padding: 8rem 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    padding: 3rem 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--glass-shadow);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: 0.5s;
    z-index: -1;
}

.service-card:hover {
    transform: translateY(-15px) scale(1.02);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.service-card:hover::after {
    opacity: 1;
}

.service-icon {
    font-size: 4rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
    display: inline-block;
    filter: drop-shadow(0 4px 8px rgba(255, 107, 107, 0.3));
}

.service-card h3 {
    margin-bottom: 1rem;
    color: var(--text-light);
    /* Dark Mode */
    font-size: 1.6rem;
    font-weight: 700;
}

.service-card p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    line-height: 1.7;
}

/* --- 8. Mission & Values --- */
#mission {
    padding: 10rem 0;
    background: var(--primary-gradient);
    color: var(--text-light);
    text-align: center;
    clip-path: ellipse(150% 100% at 50% 100%);
    position: relative;
    z-index: 2;
    margin-top: -4rem;
    /* Overlap effect */
}

/* --- Impact Section (New) --- */
/* --- Impact Section (Premium Glass) --- */
/* --- Impact Section (Premium Glass) --- */
#impact {
    padding: 8rem 0;
    text-align: center;
    position: relative;
    z-index: 1;
}

.impact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.impact-item {
    background: rgba(255, 255, 255, 0.08);
    /* Fainter glass */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    padding: 3rem 1.5rem;
    border-radius: var(--radius-lg);
    transition: all 0.4s ease;
    position: relative;
}

.impact-item:hover {
    transform: translateY(-10px) scale(1.05);
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 20px 50px rgba(0, 200, 83, 0.15);
}

.impact-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    filter: drop-shadow(0 0 15px rgba(0, 200, 83, 0.4));
}

.impact-item h3 {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--text-light);
    margin-bottom: 0.5rem;
    line-height: 1;
}

.impact-item p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.5rem;
}

.values-grid {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    margin-top: 3.125rem;
    flex-wrap: wrap;
}

/* ... (rest of CSS) ... */

/* --- Back to Top Button (Enhanced) --- */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--primary-gradient);
    color: white;
    width: 3.5rem;
    /* Larger */
    height: 3.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    box-shadow: 0 4px 15px rgba(15, 155, 15, 0.4);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform: translateY(30px) scale(0.8);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.back-to-top.active {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0) scale(1);
    animation: pulseBtn 2s infinite;
}

.back-to-top:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 25px rgba(15, 155, 15, 0.6);
}

@keyframes pulseBtn {
    0% {
        box-shadow: 0 0 0 0 rgba(15, 155, 15, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(15, 155, 15, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(15, 155, 15, 0);
    }
}

.value-item {
    background: rgba(255, 255, 255, 0.15);
    padding: 2rem;
    border-radius: var(--radius-md);
    flex: 1;
    min-width: 13.75rem;
    /* 220px */
    max-width: 20rem;
    /* 320px */
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.value-item h3 {
    color: var(--text-light);
    background: rgba(0, 0, 0, 0.4);
    display: inline-block;
    padding: 0.375rem 1rem;
    border-radius: 50px;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

/* --- 9. Donate (Premium Glass Box) --- */
#donate {
    padding: 8rem 0;
}

.donation-box {
    background: rgba(20, 20, 20, 0.6);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border-radius: 2.5rem;
    padding: 4rem;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    color: var(--text-light);
    /* Enforce light text */
}

.donation-box::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(15, 155, 15, 0.2) 0%, transparent 70%);
    opacity: 0.5;
    pointer-events: none;
}

.bank-details {
    margin-top: 2.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.875rem;
    /* 30px */
}

.bank-card {
    background: rgba(255, 255, 255, 0.03);
    padding: 1.875rem;
    border-radius: var(--radius-md);
    text-align: left;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: 0.3s;
}

.bank-card:hover {
    border-color: #00E676;
    background: rgba(255, 255, 255, 0.08);
    transform: scale(1.02);
    box-shadow: 0 0.625rem 1.25rem rgba(0, 0, 0, 0.2);
}

.bank-card h4 {
    color: #4ade80;
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

/* Copy Button Styles */
.copy-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.625rem;
}

.account-number {
    font-family: 'Courier New', monospace;
    font-size: 1.1rem;
    background: rgba(0, 0, 0, 0.2);
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    display: block;
    /* Flex item */
    border: 1px dashed rgba(255, 255, 255, 0.2);
    color: #fff;
    font-weight: 700;
    word-break: break-all;
    flex-grow: 1;
    /* Take available space */
}

.btn-copy {
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s;
    white-space: nowrap;
    display: flex;
    /* Fix alignment */
    align-items: center;
    gap: 0.4rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-copy:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(15, 155, 15, 0.2);
}

.btn-copy:active {
    transform: translateY(0);
}


/* --- 10. Contact (Dark Glass) --- */
#contact {
    padding: 8rem 0;
    background: linear-gradient(to bottom, #111, #000);
    color: #e0e0e0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.contact-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 2.5rem;
    justify-content: flex-start;
    /* Align left */
}

.contact-info h3 {
    color: #fff;
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: left;
    /* Align left */
    position: relative;
    padding-bottom: 1rem;
}

.contact-info h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 4px;
    background: var(--primary-gradient);
    border-radius: 2px;
}

.contact-item {
    margin-bottom: 0;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    font-size: 1.1rem;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.contact-info {
    flex: 1;
    max-width: 100%;
    /* Use full width */
    margin: 0;
    /* Align left */
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    /* Responsive Grid 2-col */
    column-gap: 3rem;
    align-items: center;
}

/* Make the heading span full width in the grid */
.contact-info h3 {
    grid-column: 1 / -1;
}

/* Make social links full width */
.social-links {
    grid-column: 1 / -1;
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.contact-item i {
    color: #ff6b6b;
    font-size: 1.2rem;
}

.social-links a {
    background: rgba(255, 255, 255, 0.1);
    width: 3.125rem;
    /* 50px */
    height: 3.125rem;
    border-radius: 50%;
    font-size: 1.2rem;
}

.social-links a:hover {
    background: var(--primary-gradient);
    transform: rotate(360deg);
}

footer {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: #888;
    text-align: center;
    padding: 3rem 0 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.95rem;
    font-weight: 500;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.75rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.footer-logo {
    height: 3rem;
    width: auto;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.3));
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    padding: 5px;
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.95rem;
    font-weight: 400;
    max-width: 400px;
    line-height: 1.5;
}

.footer-links {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.btn-blog {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 2rem;
    border-radius: 100px;
    font-weight: 600;
    font-size: 1rem;
    color: #fff;
    background: var(--primary-gradient);
    box-shadow: 0 8px 20px -5px rgba(0, 200, 83, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    position: relative;
    overflow: hidden;
}

.btn-blog::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.2), transparent);
    opacity: 0;
    transition: 0.3s;
}

.btn-blog:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px -5px rgba(0, 200, 83, 0.5);
}

.btn-blog:hover::before {
    opacity: 1;
}

.btn-blog:active {
    transform: scale(0.96);
}

.footer-bottom {
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    width: 100%;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.85rem;
    margin: 0 auto;
    max-width: 600px;
}

/* --- 11. Gallery Grid (Apple Style Bento) --- */
#gallery {
    padding: 8rem 0;
    background: transparent;
    /* Updated to allow mesh through */
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 14rem;
    /* Slightly taller */
    gap: 1.5rem;
}

.gallery-item {
    border-radius: var(--radius-lg);
    /* Rounded IOS Corners */
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.1);
    /* Subtle border */
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    z-index: 2;
}

/* Bento Grid Areas */
/* Item 1: Large Main Feature (2x2) */
.item-1 {
    grid-column: span 2;
    grid-row: span 2;
}

/* Item 2: Wide Landscape (2x1) - Was Tall Portrait */
.item-2 {
    grid-column: span 2;
    grid-row: span 1;
}

/* Item 3: Wide (2x1) */
.item-3 {
    grid-column: span 1;
    grid-row: span 1;
}

/* Item 4: Small (1x1) */
.item-4 {
    grid-column: span 1;
    grid-row: span 1;
}

/* Item 5: Wide Banner (2x1) */
.item-5 {
    grid-column: span 2;
    grid-row: span 1;
}

/* Remainder fill (1x1) */
.item-6,
.item-7 {
    grid-column: span 1;
    grid-row: span 1;
}

/* Overlay Text for Main Item */
.overlay-text {
    position: absolute;
    bottom: 1.25rem;
    left: 1.25rem;
    color: white;
    font-weight: 800;
    font-size: 1.8rem;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.6);
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    background: rgba(0, 0, 0, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 12px;
    backdrop-filter: blur(4px);
}

.gallery-item:hover .overlay-text {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile Responsive Grid */
@media screen and (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        /* 2 columns on mobile */
        grid-auto-rows: 10rem;
    }

    .item-1 {
        grid-column: span 2;
        /* Full width */
        grid-row: span 2;
    }

    .item-2 {
        grid-column: span 2;
        grid-row: span 1;
    }

    .item-5 {
        grid-column: span 2;
        /* Full width banner */
    }
}


/* --- Mobile Responsive Enhancement --- */
@media screen and (max-width: 900px) {
    #hero h1 {
        font-size: 3rem;
    }

    .about-content {
        flex-direction: column;
    }
}

@media screen and (max-width: 768px) {

    /* Header Adjustments to Mobile Menu */
    .nav-links {
        /* Reset positioning for Top-Down Dropdown */
        position: absolute;
        top: 5.625rem;
        /* 90px */
        left: 0;
        right: 0;
        height: auto;
        min-height: 0;

        /* Premium Glass + Subtle Gradient */
        background: linear-gradient(160deg, rgba(255, 255, 255, 0.98) 0%, rgba(240, 255, 240, 0.95) 100%);
        backdrop-filter: blur(40px);
        -webkit-backdrop-filter: blur(40px);

        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;

        width: 100%;
        max-width: 100%;

        /* Initial State: Hidden Upwards */
        transform: translateY(-150%);
        transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.3s ease;
        opacity: 0;
        pointer-events: none;

        /* Scrollable if too long */
        max-height: 80vh;
        /* Prevent overflowing screen */
        overflow-y: auto;

        box-shadow: 0 1rem 2.5rem rgba(0, 50, 0, 0.08);
        z-index: 998;
        border-bottom: 1px solid rgba(255, 255, 255, 0.5);
        border-radius: 0 0 1.875rem 1.875rem;
        /* 30px */
        /* 30px */
        padding: 0.5rem 0;
        /* Reduced from 1rem */
    }

    .nav-links li {
        margin: 0.15rem 0;
        /* Even more compact */
        /* Compact spacing */
        padding: 0;
        width: 100%;
        text-align: center;
        opacity: 1;
    }

    .nav-links a {
        font-size: 1.15rem;
        /* Reduced from 1.3rem */
        font-weight: 600;
        color: #2d3436;
        display: block;
        padding: 0.5rem 0;
        /* Reduced from 0.625rem */
        position: relative;
    }

    /* Hover Underline Effect */
    .nav-links a:not(.btn)::after {
        content: '';
        position: absolute;
        width: 0;
        height: 2px;
        bottom: 5px;
        left: 50%;
        transform: translateX(-50%);
        background: var(--primary-gradient);
        transition: width 0.3s;
        border-radius: 4px;
    }

    .nav-links a:not(.btn):hover::after {
        width: 2.5rem;
    }

    .nav-links a:not(.btn):hover {
        color: #0f9b0f;
    }

    /* Special Style for Donate Button in Menu */
    .nav-links .btn {
        margin-top: 0.8rem;
        box-shadow: 0 0.25rem 1rem rgba(238, 82, 83, 0.3);
        font-size: 0.95rem;
        padding: 0.5rem 2rem !important;
        /* Compact padding */
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        width: 80%;
        max-width: 12.5rem;
        /* 200px */
        justify-content: center;
        margin-bottom: 0.5rem;
    }

    /* Menu Icons */
    .nav-links i {
        width: 1.875rem;
        /* 30px */
        text-align: center;
        color: #0f9b0f;
        font-size: 1.1rem;
        transition: transform 0.3s ease;
    }

    .nav-links a:hover i {
        transform: scale(1.1);
    }

    .burger {
        display: block;
        z-index: 1001;
    }

    /* Hero Type Scaling */
    #hero h1 {
        font-size: 2.5rem;
    }

    #hero p {
        font-size: 1.1rem;
    }

    .urdu-text {
        font-size: 1.4rem;
    }

    /* Section Spacing */
    #about,
    #services,
    #mission,
    #donate,
    #contact {
        padding: 4rem 0;
        /* Increased padding */
    }

    .section-title h2 {
        font-size: 2.2rem;
    }

    .section-title p {
        font-size: 1.1rem;
    }

    /* Layout Stack & Flattening */
    .about-image {
        transform: none;
        margin-bottom: 1.5rem;
    }

    .bank-details {
        grid-template-columns: 1fr;
    }

    .donation-box {
        padding: 1.5rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        max-width: 25rem;
        /* 400px */
        margin: 0 auto;
    }

    .service-icon {
        font-size: 3rem;
        margin-bottom: 1rem;
    }

    .logo-text {
        font-size: 1.3rem;
    }

    #hero {
        min-height: auto;
        padding: 6.25rem 0 3.75rem 0;
        /* 100px 60px */
        border-bottom-right-radius: 2.5rem;
        /* 40px */
    }

    /* Mission Curve Adjustment */
    #mission {
        clip-path: ellipse(200% 100% at 50% 100%);
    }

    /* Footer Alignment - Center on Mobile */
    .contact-info {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .contact-item {
        justify-content: center;
        width: 100%;
        text-align: center;
    }

    .social-links {
        justify-content: center;
        width: 100%;
    }
}

@media screen and (max-width: 480px) {
    #hero h1 {
        font-size: 2.2rem;
    }

    .btn {
        width: 100%;
        margin-bottom: 0.625rem;
        text-align: center;
        display: block;
    }

    .value-item {
        min-width: 100%;
    }

    .container {
        padding: 0 1.25rem;
        /* 20px */
    }

    .section-title h2 {
        font-size: 1.8rem;
    }
}

/* --- Menu Active State (Vertical Dropdown) --- */
.nav-active {
    transform: translateY(0%) !important;
    opacity: 1 !important;
    pointer-events: all !important;
}

/* Page Dimmer Overlay */
.menu-overlay {
    position: fixed;
    top: 5.625rem;
    /* 90px */
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    z-index: 900;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.menu-overlay.active {
    opacity: 1;
    pointer-events: all;
}

/* Burger Animation */
.toggle .line1 {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.toggle .line2 {
    opacity: 0;
}

.toggle .line3 {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* --- FAQ Section (IOS 26 Glass) --- */
#faq {
    padding: 8rem 0;
    background: transparent;
    text-align: center;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
    text-align: left;
}

.faq-item {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-left: 4px solid #00C853;
    /* Bright Green Accent */
}

.faq-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.15);
}

.faq-item h3 {
    font-size: 1.3rem;
    color: var(--text-light);
    /* Dark Mode */
    margin-bottom: 1rem;
    font-weight: 700;
}

.faq-item p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    line-height: 1.7;
}

.faq-item a {
    color: #0f9b0f;
    font-weight: 600;
    text-decoration: none;
}

.faq-item a:hover {
    text-decoration: underline;
}

/* --- Hero Badge (Identity) --- */
.hero-badge {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-weight: 700;
    margin-bottom: 2rem;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    animation: fadeInDown 1s ease-out;
}

.hero-badge i {
    color: #4CAF50;
    /* Pakistan Green */
    font-size: 1.2rem;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}



/* --- Premium Preloader --- */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #fff;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease-out, visibility 0.5s;
}

.loader-content {
    text-align: center;
}

.logo-loader img {
    width: 80px;
    height: auto;
    /* Fix aspect ratio */
    margin-bottom: 20px;
    animation: pulse 1.5s infinite;
}

.loader-text {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 20px;
    display: flex;
    gap: 5px;
    justify-content: center;
}

.loader-text span {
    display: inline-block;
    color: #2d3436;
    animation: bounce 1s infinite alternate;
}

.loader-text span:nth-child(1) {
    animation-delay: 0.1s;
    color: #0f9b0f;
}

.loader-text span:nth-child(2) {
    animation-delay: 0.2s;
}

.loader-text span:nth-child(3) {
    animation-delay: 0.3s;
}

.loader-text span:nth-child(4) {
    animation-delay: 0.4s;
}

.progress-bar {
    width: 200px;
    height: 4px;
    background: #eee;
    margin: 0 auto;
    border-radius: 10px;
    overflow: hidden;
}

.progress {
    width: 0%;
    height: 100%;
    background: #0f9b0f;
    animation: loading 2s ease-in-out forwards;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes bounce {
    to {
        transform: translateY(-10px);
    }
}

@keyframes loading {
    to {
        width: 100%;
    }
}

/* Hide Preloader Class */
body.loaded #preloader {
    opacity: 0;
    visibility: hidden;
}

/* --- Real Project Highlights Section (IOS 26 Cards) --- */
#projects {
    padding: 8rem 0;
    background: transparent;
    position: relative;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: minmax(300px, auto);
    gap: 1.5rem;
    padding: 1rem;
    max-width: 1400px;
    margin: 0 auto;
}

.project-card {
    background: var(--glass-bg);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--glass-shadow);
    border: 1px solid var(--glass-border);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    border-top: 4px solid #00C853;
    /* Bright Green Accent */
    color: var(--text-light);
}

.project-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.3);
}

.project-icon {
    font-size: 3rem;
    background: linear-gradient(135deg, #00E676 0%, #00C853 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.2));
}

.project-card h3 {
    font-size: 1.5rem;
    color: var(--text-light);
    /* Dark Mode */
    margin-bottom: 1rem;
    font-weight: 700;
}

.project-card ul li {
    background: rgba(255, 255, 255, 0.05);
    /* Subtle glass background */
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    /* Better alignment for multi-line text */
    gap: 15px;
    line-height: 1.5;
    transition: all 0.3s ease;
}

.project-card ul li:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateX(5px);
}

.project-card ul li strong {
    color: #fff;
    font-weight: 700;
}

.project-card ul li i {
    color: #00E676;
    font-size: 1.2rem;
    /* Visual alignment */
    transform: none;
}

/* Bento Grid Spans */
.project-card.wide {
    grid-column: span 2;
}

/* Mobile Responsive */
@media screen and (max-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 600px) {
    .projects-grid {
        grid-template-columns: 1fr;
        padding: 0;
        /* Remove extra padding on mobile */
        gap: 1rem;
    }

    .project-card.wide {
        grid-column: span 1;
    }

    .project-card {
        padding: 1.5rem;
        /* Reduce padding on mobile */
        min-width: 0;
        /* Force shrinking */
        max-width: 100%;
        box-sizing: border-box;
    }

    .project-card ul li {
        width: 100%;
        overflow-wrap: break-word;
        /* Ensure text wraps */
        word-break: break-word;
    }
}

@media screen and (max-width: 768px) {
    #hero {
        /* Smaller image for mobile (800px width) */
        background: linear-gradient(135deg, rgba(15, 155, 15, 0.9), rgba(0, 60, 0, 0.8)), url('https://images.unsplash.com/photo-1488521787991-ed7bbaae773c?ixlib=rb-1.2.1&auto=format&fit=crop&w=800&q=80');
        background-size: cover;
        background-position: center;
    }
}