:root {
    --primary: #0f8f6f;
    --primary-dark: #08624f;
    --secondary: #0d6efd;
    --accent: #ffc107;
    --light: #f7fbff;
    --dark: #132238;
    --muted: #6c7a89;
    --white: #ffffff;
    --gradient-primary: linear-gradient(135deg, #0f8f6f 0%, #0d6efd 100%);
    --gradient-soft: linear-gradient(
        135deg,
        rgba(15, 143, 111, 0.12),
        rgba(13, 110, 253, 0.12)
    );
    --shadow-soft: 0 16px 45px rgba(19, 34, 56, 0.12);
    --shadow-hover: 0 22px 60px rgba(19, 34, 56, 0.18);
    --radius: 24px;
}

html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

* {
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
body {
    font-family:
        "Inter",
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    color: var(--dark);
    background: var(--light);
    overflow-x: hidden;
}

a {
    text-decoration: none;
}
img {
    max-width: 100%;
    height: auto;
}

.section-padding {
    padding: 90px 0;
}
.section-title {
    max-width: 760px;
    margin: 0 auto 52px;
    text-align: center;
}
.section-title .eyebrow {
    color: var(--primary);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.83rem;
}
.section-title h2 {
    font-weight: 900;
    font-size: clamp(2rem, 4vw, 3.1rem);
    margin: 12px 0;
}
.section-title p {
    color: var(--muted);
    font-size: 1.05rem;
}

.btn-brand {
    background: var(--gradient-primary);
    color: var(--white) !important;
    border: 0;
    border-radius: 999px;
    padding: 13px 28px;
    font-weight: 800;
    box-shadow: 0 12px 26px rgba(15, 143, 111, 0.28);
    transition: all 0.3s ease;
}
.btn-brand:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}
.btn-outline-brand {
    border: 2px solid rgba(255, 255, 255, 0.8);
    color: var(--white) !important;
    border-radius: 999px;
    padding: 11px 26px;
    font-weight: 800;
    transition: all 0.3s ease;
}
.btn-outline-brand:hover {
    background: var(--white);
    color: var(--primary) !important;
    transform: translateY(-3px);
}

.navbar {
    padding: 16px 0;
    transition: all 0.3s ease;
    backdrop-filter: blur(18px);
}
.navbar.scrolled {
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 12px 30px rgba(19, 34, 56, 0.08);
    padding: 10px 0;
}
.navbar-brand {
    font-weight: 950;
    color: var(--dark) !important;
    letter-spacing: -0.5px;
}
.navbar-brand span {
    color: var(--primary);
}
.nav-link {
    color: var(--dark) !important;
    font-weight: 700;
    margin: 0 5px;
    position: relative;
}
.nav-link::after {
    content: "";
    position: absolute;
    left: 12px;
    bottom: 4px;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}
.nav-link:hover::after,
.nav-link.active::after {
    width: calc(100% - 24px);
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background:
        linear-gradient(
            120deg,
            rgba(8, 98, 79, 0.85),
            rgba(13, 110, 253, 0.72)
        ),
        url("https://images.unsplash.com/photo-1488521787991-ed7bbaae773c?auto=format&fit=crop&w=1800&q=80")
            center/cover fixed;
    color: var(--white);
    overflow: hidden;
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(
            circle at 20% 20%,
            rgba(255, 255, 255, 0.18),
            transparent 25%
        ),
        radial-gradient(
            circle at 80% 70%,
            rgba(255, 193, 7, 0.18),
            transparent 24%
        );
}
.hero .container {
    position: relative;
    z-index: 2;
}
.hero h1 {
    font-size: clamp(2.7rem, 7vw, 5.8rem);
    line-height: 0.98;
    font-weight: 950;
    letter-spacing: -2.5px;
}
.hero p {
    max-width: 700px;
    font-size: 1.2rem;
    opacity: 0.93;
}
.hero-stat {
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 22px;
    padding: 22px;
    backdrop-filter: blur(18px);
}
.hero-stat h3 {
    font-weight: 950;
    margin: 0;
}
.hero-stat small {
    opacity: 0.86;
}
/* Mobile hero height increase */
@media (max-width: 767px) {
    .hero {
        min-height: 115vh;
        padding: 120px 0 90px;
        background-attachment: scroll;
    }
}
.glass-card {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.68);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(18px);
    transition: all 0.3s ease;
}
.glass-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.counter-card,
.cause-card,
.team-card,
.event-card,
.blog-card,
.project-card {
    border: 0;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: all 0.35s ease;
    background: var(--white);
}
.counter-card:hover,
.cause-card:hover,
.team-card:hover,
.event-card:hover,
.blog-card:hover,
.project-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}
.counter-icon,
.cause-icon {
    width: 66px;
    height: 66px;
    border-radius: 20px;
    display: grid;
    place-items: center;
    color: var(--white);
    background: var(--gradient-primary);
    font-size: 1.8rem;
    margin-bottom: 18px;
}
.counter-number {
    font-size: 2.3rem;
    font-weight: 950;
    color: var(--primary);
}

.about-img-wrap {
    position: relative;
}
.about-img-wrap img {
    border-radius: 32px;
    box-shadow: var(--shadow-soft);
}
.about-badge {
    position: absolute;
    right: -18px;
    bottom: 25px;
    background: var(--white);
    border-radius: 20px;
    padding: 18px 22px;
    box-shadow: var(--shadow-soft);
}
.about-badge strong {
    font-size: 2rem;
    color: var(--primary);
    display: block;
}

.cause-card {
    padding: 32px;
    height: 100%;
}
.cause-card h5 {
    font-weight: 850;
}
.cause-card p {
    color: var(--muted);
}

.project-card img,
.event-card img,
.blog-card img {
    height: 230px;
    object-fit: cover;
    width: 100%;
}
.progress {
    height: 10px;
    border-radius: 999px;
    background: #e9f4f5;
}
.progress-bar {
    background: var(--gradient-primary);
}

.bg-gradient-soft {
    background: var(--gradient-soft);
}
.bg-brand-gradient {
    background: var(--gradient-primary);
    color: var(--white);
}
.cta-bg {
    background:
        linear-gradient(
            120deg,
            rgba(8, 98, 79, 0.88),
            rgba(13, 110, 253, 0.76)
        ),
        url("https://images.unsplash.com/photo-1593113630400-ea4288922497?auto=format&fit=crop&w=1800&q=80")
            center/cover fixed;
    color: var(--white);
}
.volunteer-bg {
    background:
        linear-gradient(
            120deg,
            rgba(19, 34, 56, 0.78),
            rgba(15, 143, 111, 0.72)
        ),
        url("https://images.unsplash.com/photo-1559027615-cd4628902d4a?auto=format&fit=crop&w=1800&q=80")
            center/cover fixed;
    color: var(--white);
}

.testimonial-card {
    padding: 38px;
}
.testimonial-avatar {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 50%;
}
.team-card img {
    height: 270px;
    width: 100%;
    object-fit: cover;
}
.social-link {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: inline-grid;
    place-items: center;
    background: var(--gradient-soft);
    color: var(--primary);
    transition: all 0.3s ease;
}
.social-link:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
}

.gallery-grid {
    columns: 1;
    column-gap: 20px;
}
.gallery-item {
    break-inside: avoid;
    margin-bottom: 20px;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-soft);
}
.gallery-item img {
    width: 100%;
    transition: transform 0.5s ease;
}
.gallery-item::after {
    content: "View Impact";
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: rgba(15, 143, 111, 0.68);
    color: white;
    font-weight: 900;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.gallery-item:hover img {
    transform: scale(1.08);
}
.gallery-item:hover::after {
    opacity: 1;
}
@media (min-width: 768px) {
    .gallery-grid {
        columns: 2;
    }
}
@media (min-width: 992px) {
    .gallery-grid {
        columns: 3;
    }
}

.newsletter-box {
    border-radius: 32px;
    padding: 48px;
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: var(--shadow-soft);
}
.form-control,
.form-select {
    border-radius: 16px;
    padding: 14px 16px;
    border: 1px solid #dce9ef;
}
.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.25rem rgba(15, 143, 111, 0.15);
}
.map-wrap iframe {
    width: 100%;
    min-height: 420px;
    border: 0;
    border-radius: 26px;
    box-shadow: var(--shadow-soft);
}

.page-hero {
    padding: 150px 0 90px;
    background:
        linear-gradient(120deg, rgba(8, 98, 79, 0.9), rgba(13, 110, 253, 0.76)),
        url("https://images.unsplash.com/photo-1469571486292-0ba58a3f068b?auto=format&fit=crop&w=1800&q=80")
            center/cover;
    color: var(--white);
}
.page-hero h1 {
    font-size: clamp(2.4rem, 6vw, 4.4rem);
    font-weight: 950;
}
.breadcrumb-item,
.breadcrumb-item a {
    color: rgba(255, 255, 255, 0.85);
}
.breadcrumb-item.active {
    color: var(--white);
}

.footer {
    background: #0d1b2a;
    color: rgba(255, 255, 255, 0.75);
}
.footer h5,
.footer .navbar-brand {
    color: var(--white) !important;
}
.footer a {
    color: rgba(255, 255, 255, 0.75);
    transition: color 0.3s ease;
}
.footer a:hover {
    color: var(--accent);
}
.footer .social-link {
    background: rgba(255, 255, 255, 0.08);
    color: white;
}

/* Floating WhatsApp Button */
.floating-whatsapp {
    position: fixed;
    right: 22px;
    bottom: 92px; /* scroll top button mela irukkum */
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25d366;
    color: white;
    z-index: 999;
    display: grid;
    place-items: center;
    font-size: 1.8rem;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
    transition: transform 0.3s ease;
    text-decoration: none;
}

.floating-whatsapp:hover {
    color: white;
    transform: scale(1.08);
}

.floating-top {
    position: fixed;
    right: 22px;
    bottom: 22px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #111;
    color: white;
    border: none;
    z-index: 999;
    display: grid;
    place-items: center;
    font-size: 1.6rem;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
    cursor: pointer;

    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.8);
    transition: all 0.3s ease;
}

.floating-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.floating-top:hover {
    color: white;
    transform: translateY(0) scale(1.08);
}
@media (max-width: 991px) {
    .navbar-collapse {
        background: rgba(255, 255, 255, 0.96);
        border-radius: 20px;
        padding: 18px;
        margin-top: 12px;
        box-shadow: var(--shadow-soft);
    }
    .hero {
        background-attachment: scroll;
        padding-top: 110px;
    }
    .section-padding {
        padding: 70px 0;
    }
    .newsletter-box {
        padding: 32px;
    }
    .about-badge {
        right: 14px;
        bottom: 14px;
    }
}

/* Remove Bootstrap click/focus border */
button:focus,
button:active,
.btn:focus,
.btn:active,
.navbar-toggler:focus,
.navbar-toggler:active,
.navbar-toggler:focus-visible,
a:focus,
a:active {
    outline: none !important;
    box-shadow: none !important;
}

/* Mobile menu toggle button border remove */
.navbar-toggler {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

.navbar-toggler:focus {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

/* Mobile menu links click border remove */
.mobile-menu a,
.navbar-nav a,
.nav-link {
    outline: none !important;
    box-shadow: none !important;
}

.mobile-menu a:focus,
.mobile-menu a:active,
.navbar-nav a:focus,
.navbar-nav a:active,
.nav-link:focus,
.nav-link:active {
    outline: none !important;
    box-shadow: none !important;
    border-color: transparent !important;
}
