/* ----------------------------------------------------
   ROOT VARIABLES
---------------------------------------------------- */
:root {
    --primary: #6a4df5;     /* Purple */
    --accent: #d4a017;      /* Gold */

    --bg: #ffffff;
    --bg-soft: #f9f7ff;

    --text: #1e1e2f;
    --text-muted: #6b6b7c;

    --radius-lg: 16px;
    --radius-md: 12px;

    --shadow-soft: 0 8px 22px rgba(0, 0, 0, 0.08);
}

/* ----------------------------------------------------
   GLOBAL RESET
---------------------------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ----------------------------------------------------
   LAYOUT
---------------------------------------------------- */
.container {
    max-width: 1120px;
    margin: auto;
    padding: 0 1.25rem;
}

.section {
    padding: 4rem 0;
}

.light-bg {
    background: var(--bg-soft);
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0.6rem auto 2rem;
}

/* ----------------------------------------------------
   SCROLL PROGRESS BAR
---------------------------------------------------- */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--primary);
    width: 0%;
    z-index: 9999;
    transition: width 0.1s ease-out;
}

/* ----------------------------------------------------
   NAVIGATION
---------------------------------------------------- */
.header {
    position: sticky;
    top: 0;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid #e5e5e5;
    z-index: 50;
    transition: box-shadow 0.25s ease, background 0.25s ease;
}

.header.scrolled {
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-weight: 700;
    font-family: "Poppins", sans-serif;
    color: var(--primary);
}

.logo img {
    height: 48px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none !important;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.25rem 0;
    transition: color 0.25s ease;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links a.active {
    color: var(--primary) !important;
    font-weight: 600;
    background: rgba(106, 77, 245, 0.12);
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
}

.donate-nav-btn {
    margin-left: 1rem;
    padding: 0.55rem 1.3rem;
    background: var(--accent);
    color: #fff;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(212,160,23,0.25);
    transition: 0.25s;
}

.donate-nav-btn:hover {
    opacity: 0.85;
}

/* MOBILE NAV */
.nav-toggle {
    display: none;
    font-size: 1.7rem;
    background: none;
    border: none;
}

/* ----------------------------------------------------
   HERO
---------------------------------------------------- */
.hero {
    padding: 5rem 0 4rem;
    background: linear-gradient(180deg, #f3edff, #ffffff);
}

.hero-inner {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    align-items: center;
    gap: 3rem;
}

.hero-text h1 {
    font-family: "Poppins", sans-serif;
    font-size: 2.4rem;
    line-height: 1.25;
    margin-bottom: 1rem;
}

.hero-desc {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 1.6rem;
}

.hero-points {
    list-style: none;
    margin-bottom: 1.8rem;
}

.hero-points li {
    position: relative;
    padding-left: 1rem;
    margin-bottom: 0.45rem;
    color: var(--text);
    font-size: 0.97rem;
}

.hero-points li::before {
    content: "•";
    color: var(--primary);
    position: absolute;
    left: 0;
    font-size: 1.3rem;
    line-height: 1;
}

.hero-img img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    animation: heroFloat 6s ease-in-out infinite alternate;
}

@keyframes heroFloat {
    from { transform: translateY(0); }
    to { transform: translateY(-12px); }
}

.btn-primary {
    padding: 0.75rem 1.5rem;
    background: var(--primary);
    color: #fff;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.25s;
}

.btn-primary:hover {
    opacity: 0.9;
}

/* ----------------------------------------------------
   ABOUT
---------------------------------------------------- */
.about-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 2rem;
}

.about-card {
    background: #fff;
    padding: 1.4rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}

.about-card ul {
    list-style: none;
    padding-left: 0;
}

.about-card li {
    padding-left: 1rem;
    position: relative;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
}

.about-card li::before {
    content: "•";
    color: var(--primary);
    position: absolute;
    left: 0;
}

/* ----------------------------------------------------
   IMPACT
---------------------------------------------------- */
.counter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
}

.counter-box {
    background: #fff;
    padding: 1.4rem;
    text-align: center;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
}

.counter {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}

/* ----------------------------------------------------
   WORK
---------------------------------------------------- */
.work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.work-card {
    background: #fff;
    padding: 1.4rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
}

/* ----------------------------------------------------
   STORIES
---------------------------------------------------- */
.stories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.4rem;
}

.story-card {
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.story-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.story-content {
    padding: 1rem;
}

/* ----------------------------------------------------
   GALLERY
---------------------------------------------------- */
.premium-slider {
    position: relative;
    height: 380px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.premium-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: 1s ease-in-out;
}

.premium-slide.active {
    opacity: 1;
}

.premium-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ----------------------------------------------------
   DONATE
---------------------------------------------------- */
.donate-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 2rem;
}

.qr-box {
    background: #fff;
    padding: 1.2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    text-align: center;
}

.qr-box img {
    width: 200px;
    border-radius: 10px;
}

/* ----------------------------------------------------
   CONTACT
---------------------------------------------------- */
.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 2rem;
}

.contact-form {
    display: grid;
    gap: 0.8rem;
}

.contact-form input,
.contact-form textarea {
    padding: 0.65rem;
    border-radius: 10px;
    border: 1px solid #ccc;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--primary);
}

/* ----------------------------------------------------
   FOOTER
---------------------------------------------------- */
.simple-footer {
    text-align: center;
    padding: 1.5rem 0;
    font-size: 0.9rem;
    color: var(--text-muted);
    border-top: 1px solid #e4e4e4;
}

/* ----------------------------------------------------
   FLOATING DONATE BUTTON
---------------------------------------------------- */
.floating-donate {
    position: fixed;
    bottom: 22px;
    right: 22px;
    background: var(--primary);
    padding: 11px 22px;
    border-radius: 999px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    box-shadow: var(--shadow-soft);
}

/* ----------------------------------------------------
   REVEAL ANIMATION
---------------------------------------------------- */
.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: 0.6s ease;
}

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

/* ----------------------------------------------------
   RESPONSIVE
---------------------------------------------------- */
@media (max-width: 900px) {
    .hero-inner,
    .about-grid,
    .contact-grid,
    .donate-grid {
        grid-template-columns: 1fr;
    }

    .nav-links {
        display: none;
    }

    .nav-toggle {
        display: block;
    }

    .nav-links.open {
        display: flex;
        flex-direction: column;
        background: #fff;
        padding: 1rem;
        border-radius: 10px;
        box-shadow: var(--shadow-soft);
        position: absolute;
        right: 1rem;
        top: 60px;
    }
}
