@import url('https://fonts.googleapis.com/css2?family=Anek+Tamil:wght@100..800&display=swap');

:root {
    --primary: #1e3a8a;
    --primary-light: #3b82f6;
    --secondary: #d4af37;
    --accent: #b45309;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --bg-white: #ffffff;
    --bg-soft: #f8fafc;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.4);
    --shadow-sm: 0 4px 20px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 10px 40px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.08);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --primary-rgb: 30, 58, 138;
    --secondary-rgb: 212, 175, 55;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Anek Tamil', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-soft);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 30px 0;
    position: relative;
    overflow: hidden;
}

.section-bg-icon {
    position: absolute;
    font-size: 25rem;
    color: var(--primary);
    opacity: 0.08;
    z-index: 0;
    pointer-events: none;
    transition: var(--transition);
}

/* Repeating Pattern Classes */
.bg-pattern-dark {
    position: relative;
}

.bg-pattern-dark::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/ngo-pattern-dark.png');
    background-size: 400px;
    background-repeat: repeat;
    opacity: 0.1;
    z-index: 0;
    pointer-events: none;
}

.bg-pattern-light {
    position: relative;
}

.bg-pattern-light::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/ngo-pattern-light.png');
    background-size: 350px;
    background-repeat: repeat;
    opacity: 0.08;
    z-index: 0;
    pointer-events: none;
}

.section-bg-icon.top-right {
    top: -5%;
    right: -5%;
    transform: rotate(15deg);
}

.section-bg-icon.bottom-left {
    bottom: -10%;
    left: -10%;
    transform: rotate(-15deg);
}

h1,
h2,
h3,
h4 {
    font-weight: 800;
    line-height: 1.2;
}

.logo-img {
    height: 45px;
    width: auto;
    object-fit: contain;
    transition: var(--transition);
}

.footer-logo .logo-img {
    height: 50px;
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    box-shadow: 0 10px 20px rgba(6, 95, 70, 0.2);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(6, 95, 70, 0.3);
}

.btn-secondary {
    background: white;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: white;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0f172a;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: 10px;
    border: 2px solid #0f172a;
}

::-webkit-scrollbar-thumb:hover {
    background: #ffffff;
}

/* --- Navigation (Desktop) --- */
@media (min-width: 1025px) {
    .navbar {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        padding: 1.5rem 0;
        z-index: 2000;
        background: transparent;
        transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .nav-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        max-width: 1280px;
        margin: 0 auto;
        padding: 0 2rem;
    }

    .logo {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 8px 20px;
        background: white;
        border: 1px solid rgba(0, 0, 0, 0.05);
        border-radius: 100px;
        box-shadow: var(--shadow-sm);
        font-size: 1.5rem;
        font-weight: 800;
        color: var(--primary) !important;
    }

    .logo-light {
        color: var(--primary);
        font-weight: 400;
        margin-left: 5px;
        opacity: 0.8;
    }

    .nav-btns {
        display: flex;
        align-items: center;
        gap: 1.5rem;
    }

    .lang-switch {
        display: flex;
        align-items: center;
        gap: 0;
        background: white;
        padding: 4px;
        border-radius: 50px;
        font-size: 0.85rem;
        font-weight: 800;
        border: 1px solid rgba(0, 0, 0, 0.05);
        box-shadow: var(--shadow-sm);
    }

    .lang-link {
        padding: 6px 14px;
        border-radius: 50px;
        color: var(--text-light);
        text-decoration: none;
        transition: var(--transition);
        opacity: 0.7;
    }

    .lang-link:hover, .lang-link.active {
        background: var(--primary);
        color: white !important;
        opacity: 1;
    }

    .lang-divider {
        display: none;
    }

    .navbar.scrolled {
        width: 95%;
        max-width: 1280px;
        top: 1.5rem;
        left: 0;
        right: 0;
        margin: 0 auto;
        padding: 0.6rem 1.5rem;
        background: rgba(255, 255, 255, 0.7);
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
        box-shadow: 0 15px 45px rgba(0, 0, 0, 0.15);
        border: 1px solid rgba(255, 255, 255, 0.4);
        border-radius: 100px;
    }

    .navbar.scrolled .logo {
        background: transparent;
        border: none;
        box-shadow: none;
        padding-left: 10px;
        color: var(--primary) !important;
    }

    .navbar.scrolled .logo-light {
        color: var(--primary);
    }

    .nav-links {
        display: flex;
        gap: 2.5rem;
        list-style: none;
    }

    .nav-link {
        color: white !important;
        font-weight: 600;
        font-size: 1rem;
        transition: var(--transition);
    }

    .navbar.scrolled .nav-link {
        color: var(--text-dark) !important;
    }

    .navbar.scrolled .nav-link:hover {
        color: var(--primary) !important;
    }

    .mobile-nav,
    .mobile-toggle,
    .nav-overlay {
        display: none !important;
    }
}

/* --- Navigation (Mobile & Tablet) --- */
@media (max-width: 1024px) {
    .navbar {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        padding: 1rem 0;
        z-index: 6000;
        background: transparent;
        transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .navbar.scrolled {
        width: 92%;
        top: 1rem;
        left: 4%;
        background: rgba(255, 255, 255, 0.75);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        padding: 0.6rem 0.5rem;
        border-radius: 100px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
        border: 1px solid rgba(255, 255, 255, 0.3);
    }

    .navbar.scrolled .logo {
        background: transparent;
        border: none;
        box-shadow: none;
        padding: 0 0 0 10px;
    }

    .navbar.scrolled .mobile-toggle {
        color: var(--primary);
        margin-right: 10px;
    }

    .nav-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        padding: 0 1.5rem;
    }

    .nav-btns .btn-primary {
        display: none !important;
    }

    .desktop-nav {
        display: none !important;
    }

    .logo {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 6px 16px;
        background: white;
        border: 1px solid rgba(0, 0, 0, 0.05);
        border-radius: 100px;
        box-shadow: var(--shadow-sm);
        font-size: 1.3rem;
        font-weight: 800;
        color: var(--primary) !important;
    }

    .logo-light {
        color: var(--primary);
        font-weight: 400;
        margin-left: 5px;
        opacity: 0.8;
    }

    .mobile-toggle {
        display: block;
        background: transparent;
        border: none;
        color: white;
        font-size: 2rem;
        z-index: 7000;
    }

    .mobile-nav {
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        height: 100vh;
        background: rgba(15, 23, 42, 0.7);
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 2rem;
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        transform: translateX(100%);
        z-index: 5500;
        list-style: none;
    }

    .mobile-nav.active {
        transform: translateX(0);
    }

    .mobile-nav .nav-link {
        color: white !important;
        font-size: 2rem;
        font-weight: 700;
        margin-bottom: 2.5rem;
        display: block;
        text-align: center;
    }

    body.menu-open .mobile-toggle {
        color: white !important;
    }

    .nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 5400;
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
    }

    .nav-overlay.active {
        opacity: 1;
        visibility: visible;
    }
}


/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-color: #0f172a;
    padding-top: 0;
    position: relative;
    overflow: hidden;
    color: white;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
}

.hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/ngo-pattern-dark.png');
    background-size: 500px;
    background-repeat: repeat;
    opacity: 0.12;
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    align-items: center;
    gap: 4rem;
    padding: 80px 0 20px;
    position: relative;
    z-index: 1;
}

.hero-title {
    color: white !important;
    background: linear-gradient(135deg, #ffffff, #d4af37) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    font-size: 3.2rem;
    line-height: 1.2;
    margin-bottom: 2rem;
    font-weight: 800;
}

.hero-desc {
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.hero-tag {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    background: rgba(212, 175, 55, 0.15) !important;
    color: #d4af37 !important;
    border: 1px solid rgba(212, 175, 55, 0.2);
    font-weight: 700;
    border-radius: 50px;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
}

.hero-btns .btn-secondary {
    background: transparent !important;
    color: white !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
}

.hero-btns .btn-secondary:hover {
    background: white !important;
    color: #0f172a !important;
}

/* Avatar Stack */
.avatar-stack {
    display: flex;
    align-items: center;
    margin-top: 2rem;
    gap: 0.5rem;
}

.avatars {
    display: flex;
    flex-direction: row;
}

.avatar-img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 3px solid #0f172a;
    margin-left: -15px;
    background: #eee;
    transition: var(--transition);
    object-fit: cover;
}

.avatar-img:first-child {
    margin-left: 0;
}

.avatar-img:hover {
    transform: translateY(-5px) scale(1.1);
    z-index: 10;
    border-color: var(--secondary);
}

.avatar-text {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    margin-left: 0.5rem;
}

.avatar-text strong {
    color: var(--secondary);
    font-weight: 700;
}

/* Trust Bar */
.trust-bar {
    background: #0f172a;
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    z-index: 10;
    margin-top: -1px;
    /* Overlap slightly to prevent tiny gaps */
}

.trust-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem 5rem;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    opacity: 0.9;
    transition: var(--transition);
}

.trust-item:hover {
    opacity: 1;
    filter: grayscale(0);
    transform: translateY(-2px);
}

.trust-icon {
    font-size: 1.8rem;
    color: var(--primary-light);
}

.trust-info {
    display: flex;
    flex-direction: column;
}

.trust-label {
    font-weight: 800;
    font-size: 0.95rem;
    color: white;
    line-height: 1.2;
}

.trust-sub {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* Floating CTA */
.floating-cta {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 5000;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    pointer-events: none;
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition);
}

.floating-cta.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.fab-btn {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 10px 30px rgba(6, 95, 70, 0.4);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.fab-btn::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--primary-light);
    opacity: 0.5;
    animation: pulse-ring 2s infinite;
}

.fab-btn:hover {
    transform: scale(1.1) rotate(15deg);
}

.fab-label {
    position: absolute;
    right: 80px;
    background: white;
    padding: 0.5rem 1rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--primary);
    white-space: nowrap;
    box-shadow: var(--shadow-md);
    opacity: 0;
    transform: translateX(10px);
    transition: var(--transition);
    pointer-events: none;
}

.fab-btn:hover .fab-label {
    opacity: 1;
    transform: translateX(0);
}

@keyframes pulse-ring {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }

    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

.hero-image-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 650px;
}

.hero .container {
    position: relative;
    z-index: 1;
}

/* Footer with Background */
.footer {
    background: #0f172a;
    color: white;
    padding: 80px 0 40px;
    position: relative;
    overflow: hidden;
}

.footer-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.footer .container {
    position: relative;
    z-index: 1;
}

.blob {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.2;
    animation: blob-float 20s infinite alternate ease-in-out;
}

.blob-1 {
    background: var(--primary-light);
    top: -10%;
    left: -5%;
}

.blob-2 {
    background: var(--secondary);
    bottom: -10%;
    right: -5%;
    animation-delay: -7s;
}

.blob-3 {
    background: #3b82f6;
    top: 30%;
    left: 20%;
    animation-delay: -14s;
    width: 400px;
    height: 400px;
}

@keyframes blob-float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(80px, 40px) scale(1.1);
    }
}



.hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
}

.hero-icon-emblem {
    position: absolute;
    width: 110%;
    max-width: 1050px;
    filter: drop-shadow(0 20px 50px rgba(0, 0, 0, 0.2)) drop-shadow(0 40px 100px rgba(16, 185, 129, 0.15));
    opacity: 0;
    transition: opacity 1s ease-in-out;
    object-fit: contain;
    transform: translateY(20px);
    /* Smooth fade-out at the bottom to hide sharp cut */
    mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
}

.hero-image-container::after {
    content: '';
    position: absolute;
    bottom: 50px;
    width: 70%;
    height: 100px;
    background: radial-gradient(ellipse at center, rgba(16, 185, 129, 0.4) 0%, transparent 70%);
    filter: blur(40px);
    z-index: 0;
    pointer-events: none;
}

/* Glass Card */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2.5rem;
    transition: var(--transition);
}

.glass-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-light);
    box-shadow: var(--shadow-lg);
}

/* Impact Section */
.impact-header {
    text-align: center;
    margin-bottom: 4rem;
}

.impact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.impact-card {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 32px;
    padding: 3rem 2rem;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.impact-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-light);
    box-shadow: var(--shadow-lg);
}

.impact-icon-box {
    width: 80px;
    height: 80px;
    background: rgba(30, 58, 138, 0.1);
    color: var(--primary);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 2rem;
    transition: var(--transition);
}

.impact-card:hover .impact-icon-box {
    background: var(--primary);
    color: white;
    transform: rotateY(180deg);
}

.impact-number {
    font-size: 4rem;
    font-weight: 800;
    color: var(--text-dark);
    display: block;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--text-dark), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.impact-label-en {
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 0.25rem;
}

.impact-label-ta {
    color: var(--text-light);
    font-size: 1rem;
    font-weight: 500;
}

/* Shimmer effect for numbers */
.shimmer-text {
    position: relative;
}

.shimmer-text::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    100% {
        left: 200%;
    }
}

@media (max-width: 992px) {
    .impact-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .impact-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .impact-number {
        font-size: 2rem;
    }
}

/* Category Filter */
.filter-bar {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    background: white;
    border: 1px solid var(--glass-border);
    color: var(--text-light);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.filter-btn:hover {
    background: var(--bg-soft);
    color: var(--primary);
}

.filter-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 5px 15px rgba(30, 58, 138, 0.2);
}

/* Focus Grid */
.focus-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.focus-item {
    transition: var(--transition);
}

.focus-item.hidden {
    opacity: 0;
    transform: scale(0.9);
    pointer-events: none;
    display: none;
}

.service-card.glass-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 0;
    gap: 0;
    position: relative;
    overflow: hidden;
    text-align: left;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
    border-radius: 40px;
    background: white;
    transition: var(--transition);
    border: 1px solid #f1f5f9;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-light);
}

.service-image-box {
    width: 100%;
    height: 280px;
    position: relative;
    overflow: hidden;
    background: #f8fafc;
}

.service-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
}

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

.service-content {
    padding: 2rem;
    position: relative;
    z-index: 3;
    background: white;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.service-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--admin-primary);
    font-weight: 800;
    line-height: 1.3;
}

.service-subtitle {
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.service-desc {
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.6;
    opacity: 0.8;
}

.focus-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

/* Responsive Grid Adjustments */
@media (max-width: 1200px) {
    .focus-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .focus-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .service-image-box {
        height: 160px;
    }

    .service-content {
        padding: 1rem;
    }

    .service-title {
        font-size: 1.1rem;
    }

    .service-desc {
        font-size: 0.85rem;
    }
}


/* FAQ Section */
.faq-header {
    text-align: center;
    margin-bottom: 4rem;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    align-items: start;
    margin-top: 4rem;
}

.faq-item {
    background: white;
    border: 1px solid #f1f5f9;
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.faq-item:hover {
    border-color: var(--primary);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    transform: translateY(-5px);
}

.faq-question {
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 700;
    color: var(--text-dark);
}

.faq-question small {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.8rem;
    opacity: 0.8;
}

.faq-question i {
    font-size: 1.5rem;
    color: var(--primary);
    transition: transform 0.4s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease;
    padding: 0 2rem;
    background: rgba(30, 58, 138, 0.02);
}

.faq-item.active {
    border-color: var(--primary);
    box-shadow: 0 10px 25px rgba(30, 58, 138, 0.1);
}

.faq-item.active .faq-question i {
    transform: rotate(45deg);
    color: var(--secondary);
}

.faq-item.active .faq-answer {
    max-height: 300px;
    padding-bottom: 1.5rem;
}

.faq-answer p {
    color: var(--text-light);
    line-height: 1.8;
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.contact-card {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    color: inherit;
}

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

.contact-icon {
    width: 70px;
    height: 70px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: white;
    transition: var(--transition);
}

.wa-icon {
    background: #25d366;
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.2);
}

.call-icon {
    background: var(--primary);
    box-shadow: 0 10px 20px rgba(30, 58, 138, 0.2);
}

.mail-icon {
    background: #ea4335;
    box-shadow: 0 10px 20px rgba(234, 67, 53, 0.2);
}

.contact-card:hover .contact-icon {
    transform: scale(1.1) rotate(5deg);
}

.contact-label {
    display: block;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
}

.contact-value {
    font-size: 1.25rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.contact-sub {
    font-size: 0.9rem;
    color: var(--text-light);
}

@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important;
    }

    .contact-card:last-child {
        grid-column: span 2;
        width: 100%;
        max-width: calc(50% - 0.5rem);
        margin: 0 auto;
    }

    .contact-value {
        font-size: 1.1rem;
    }
}

/* Footer */
.footer {
    padding: 30px 0 15px;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    align-items: start;
}

.footer-logo {
    color: var(--primary) !important;
    text-shadow: none;
    box-shadow: none;
    border: none;
}

.footer-desc {
    color: rgba(255, 255, 255, 0.8);
    margin-top: 1rem;
    line-height: 1.6;
    font-size: 0.9rem;
}

.footer-title {
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-link {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.footer-link:hover {
    color: var(--primary-light);
    padding-left: 5px;
}

.footer-bottom {
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
}

.footer-bottom-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.footer-social-links {
    display: flex;
    gap: 1.2rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-social-links .footer-link {
    font-size: 1.2rem;
    transition: var(--transition);
}

.footer-social-links .footer-link:hover {
    color: var(--secondary) !important;
    transform: translateY(-3px);
    padding-left: 0; /* Override the padding-left hover effect */
}

@media (max-width: 768px) {
    .footer-bottom-container {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 1024px) {
    .hero-title {
        font-size: 3.5rem;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-desc {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-btns {
        justify-content: center;
    }

    .services-grid,
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .services-grid,
    .footer-grid,
    .faq-grid {
        grid-template-columns: 1fr;
    }

    .impact-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem;
    }

    .nav-links {
        display: none;
    }
}

/* Animations */
@keyframes floating {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Delay classes */
.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

.delay-4 {
    transition-delay: 0.4s;
}

@keyframes heroSlider {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(1.1) rotateX(10deg);
        filter: blur(10px);
    }

    2%,
    7% {
        opacity: 1;
        transform: translateY(0) scale(1) rotateX(0deg);
        filter: blur(0px);
    }

    /* Ken Burns Effect - Slow zoom while visible */
    7.5% {
        opacity: 1;
        transform: translateY(-5px) scale(1.05) rotateX(0deg);
        filter: blur(0px);
    }

    8.33%,
    100% {
        opacity: 0;
        transform: translateY(-20px) scale(1.1) rotateX(-10deg);
        filter: blur(10px);
    }
}

.slide-1 {
    animation: heroSlider 36s infinite 0s;
}

.slide-2 {
    animation: heroSlider 36s infinite 3s;
}

.slide-3 {
    animation: heroSlider 36s infinite 6s;
}

.slide-4 {
    animation: heroSlider 36s infinite 9s;
}

.slide-5 {
    animation: heroSlider 36s infinite 12s;
}

.slide-6 {
    animation: heroSlider 36s infinite 15s;
}

.slide-7 {
    animation: heroSlider 36s infinite 18s;
}

.slide-8 {
    animation: heroSlider 36s infinite 21s;
}

.slide-9 {
    animation: heroSlider 36s infinite 24s;
}

.slide-10 {
    animation: heroSlider 36s infinite 27s;
}

.slide-11 {
    animation: heroSlider 36s infinite 30s;
}

.slide-12 {
    animation: heroSlider 36s infinite 33s;
}

/* 3D Icon Hover Shimmer */
.shimmer-effect {
    position: relative;
    overflow: hidden;
}

.shimmer-effect::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(to bottom right,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0) 40%,
            rgba(255, 255, 255, 0.4) 50%,
            rgba(255, 255, 255, 0) 60%,
            rgba(255, 255, 255, 0) 100%);
    transform: rotate(45deg);
    transition: 0.8s;
    pointer-events: none;
    opacity: 0;
}

.service-card:hover .service-icon-wrapper .shimmer-effect::after {
    left: 100%;
    top: 100%;
    opacity: 1;
}

/* About Section Styles */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-img-wrapper {
    position: relative;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    height: 500px;
}

.about-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--text-dark), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.about-text {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    text-align: justify;
}



.milestone-section {
    margin-top: 5rem;
    background: linear-gradient(135deg, var(--primary), #0f172a);
    padding: 4rem;
    border-radius: 40px;
    color: white;
    position: relative;
    overflow: hidden;
}

.milestone-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
}

.milestone-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.milestone-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 2.5rem 1.5rem;
    border-radius: 24px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.milestone-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-10px);
    border-color: var(--secondary);
}

.milestone-number {
    font-size: 3.5rem;
    font-weight: 800;
    display: block;
    margin-bottom: 0.5rem;
    color: var(--secondary);
}

.milestone-label {
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.4;
}

.district-container {
    margin-top: 4rem;
}

.district-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
}

.district-tag {
    padding: 0.75rem 2rem;
    background: white;
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    font-weight: 700;
    color: var(--primary);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.district-tag:hover {
    background: var(--primary);
    color: white;
    transform: scale(1.05);
}

@media (max-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-img-wrapper {
        height: 400px;
        order: -1;
    }

    .milestone-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 576px) {
    .milestone-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }

    .milestone-number {
        font-size: 2rem;
    }

    .milestone-label {
        font-size: 0.8rem;
    }

    .milestone-section {
        padding: 2rem 1.5rem;
    }
}

/* Rich Donation CTA */
.donate-cta {
    padding: 100px 0;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
    position: relative;
    overflow: hidden;
    color: white;
    text-align: center;
}

.donate-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.15) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.donate-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.donate-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #ffffff, var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.donate-text {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 3rem;
}

.btn-rich {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 1.25rem 3.5rem;
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    color: white;
    border-radius: 100px;
    box-shadow: 0 15px 35px rgba(217, 119, 6, 0.4), 0 0 50px rgba(251, 191, 36, 0.2);
    transition: var(--transition);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-rich::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -100%;
    width: 100%;
    height: 200%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transform: rotate(25deg);
    transition: 0.6s;
}

.btn-rich:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 20px 45px rgba(217, 119, 6, 0.5), 0 0 70px rgba(251, 191, 36, 0.3);
}

.btn-rich:hover::after {
    left: 200%;
}

.btn-rich i {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.btn-rich:hover i {
    transform: translateX(5px);
}

@media (max-width: 768px) {
    .donate-title {
        font-size: 2.5rem;
    }

    .btn-rich {
        padding: 1rem 2.5rem;
        font-size: 1rem;
    }
}

/* Responsive Fixes */
@media (max-width: 992px) {
    .hero {
        min-height: 100vh;
        min-height: 100dvh;
        padding-top: 80px;
        padding-bottom: 40px;
        display: flex;
        align-items: center;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.5rem;
        width: 100%;
    }

    .hero-title {
        font-size: 1.9rem;
        line-height: 1.2;
        margin-bottom: 1rem;
    }

    .hero-desc {
        font-size: 0.95rem;
        margin: 0 auto 2rem;
        padding: 0 1rem;
        line-height: 1.5;
    }

    .hero-image-container {
        height: 280px;
        order: -1;
        margin-top: 0;
        margin-bottom: 1rem;
        width: 100%;
    }

    .main-hero-img {
        max-width: 280px;
        filter: drop-shadow(0 20px 40px rgba(30, 58, 138, 0.3));
    }

    .hero-btns {
        flex-direction: row;
        justify-content: center;
        gap: 1rem;
        padding: 0 1rem;
    }

    .hero-btns .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.85rem;
        width: auto;
        min-width: 130px;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .container {
        padding: 0 1.5rem;
    }

    .milestone-section {
        padding: 2.5rem 1.5rem;
        border-radius: 24px;
    }

    .milestone-number {
        font-size: 2.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .trust-container {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem 1rem;
        justify-items: center;
    }

    .trust-item {
        width: 100%;
        justify-content: flex-start;
        padding-left: 10%;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .hero-tag {
        font-size: 0.75rem;
        padding: 0.4rem 1rem;
    }
}

/* Fix for horizontal scroll/empty space */
html,
body {
    max-width: 100vw;
    overflow-x: hidden;
}

.hero {
    overflow-x: hidden;
}

/* --- Language Switch Mobile Fix --- */
.desktop-only {
    display: flex !important;
}

.mobile-only {
    display: none !important;
}

.mobile-lang-li {
    margin-bottom: 2rem;
    width: 100%;
    display: flex;
    justify-content: center;
}

@media (max-width: 1024px) {
    .desktop-only {
        display: none !important;
    }
    .mobile-only {
        display: flex !important;
    }
    
    .mobile-nav .lang-switch {
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.2);
        padding: 8px;
    }
    
    .mobile-nav .lang-link {
        color: rgba(255, 255, 255, 0.7);
        padding: 8px 20px;
        opacity: 1;
    }
    
    .mobile-nav .lang-link.active {
        background: var(--secondary);
        color: #0f172a !important;
    }
    
    .mobile-nav .lang-divider {
        color: rgba(255, 255, 255, 0.3);
        margin: 0 10px;
        display: block;
    }
}

/* --- Voices of Transformation (Testimonials) --- */
.testimonials {
    background: var(--bg-white);
    position: relative;
    overflow: hidden;
}

.testimonial-blob {
    position: absolute;
    opacity: 0.05;
    width: 600px;
    height: 600px;
    top: -10%;
    right: -10%;
    left: auto;
    background: var(--primary);
    border-radius: 50%;
    filter: blur(100px);
}

.testimonial-header {
    text-align: center;
    margin-bottom: 5rem;
}

.testimonial-intro {
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.1rem;
    color: var(--text-light);
    text-align: center;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 8rem;
}

.testimonial-grid:last-child {
    margin-bottom: 0;
}

.testimonial-img-box {
    position: relative;
}

.testimonial-img-accent {
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100px;
    height: 100px;
    background: var(--secondary);
    border-radius: 20px;
    z-index: 0;
    opacity: 0.3;
}

.testimonial-img {
    width: 100%;
    border-radius: 32px;
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 1;
    display: block;
}

.testimonial-name-card {
    position: absolute;
    bottom: 30px;
    right: -30px;
    padding: 1.5rem;
    max-width: 220px;
    z-index: 2;
    background: white !important;
    opacity: 1 !important;
}

.testimonial-name {
    color: var(--primary);
    font-size: 1.2rem;
    margin-bottom: 0.2rem;
    font-weight: 800;
}

.testimonial-role {
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 500;
}

.testimonial-content {
    position: relative;
}

.testimonial-quote-icon {
    font-size: 4rem;
    color: var(--primary-light);
    opacity: 0.2;
    display: block;
    margin-bottom: -1rem;
}

.testimonial-quote {
    font-size: 2.2rem;
    margin-bottom: 2rem;
    line-height: 1.4;
    color: var(--text-dark);
    font-weight: 700;
}

.testimonial-impact {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.testimonial-line {
    width: 50px;
    height: 2px;
    background: var(--primary);
}

.testimonial-impact-id {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary);
    font-size: 0.9rem;
}

/* Testimonials Responsive */
@media (max-width: 992px) {
    .testimonial-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        margin-bottom: 6rem;
    }
    
    .testimonial-img-box {
        max-width: 500px;
        margin: 0 auto;
    }
    
    .testimonial-quote {
        font-size: 1.8rem;
    }
}

@media (max-width: 576px) {
    .testimonial-header {
        margin-bottom: 3rem;
    }
    
    .testimonial-name-card {
        right: 0;
        bottom: -20px;
        padding: 1rem;
        max-width: 180px;
    }
    
    .testimonial-quote {
        font-size: 1.4rem;
        text-align: center;
    }
    
    .testimonial-impact {
        justify-content: center;
    }
    
    .testimonial-quote-icon {
        margin: 0 auto -1rem;
    }

    .trust-container {
        gap: 1.5rem 0.5rem;
    }

    .trust-item {
        padding-left: 0;
        justify-content: center;
        text-align: center;
        flex-direction: column;
        gap: 0.5rem;
    }

    .trust-info {
        align-items: center;
    }

    .trust-label {
        font-size: 0.8rem;
    }

    .trust-sub {
        font-size: 0.65rem;
    }

    .focus-grid, .impact-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.8rem !important;
    }

    .impact-card {
        padding: 1.5rem 1rem !important;
    }

    .impact-number {
        font-size: 1.8rem !important;
    }

    .impact-label {
        font-size: 0.75rem !important;
    }

    .contact-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.8rem !important;
    }

    .contact-card {
        padding: 1.5rem 1rem !important;
    }

    .contact-card:last-child {
        grid-column: span 2;
        max-width: calc(50% - 0.4rem);
        margin: 0 auto;
    }

    .contact-value {
        font-size: 1rem !important;
    }

    .d-none-mobile {
        display: none !important;
    }
}