/* =========================================
   AAROGYA JEEVAN FOUNDATION — LIGHT THEME
   Color Palette from Logo:
   Green: #1a5c2a (deep), #2d7a3a, #4a9e55
   Orange: #E8621A (deep), #F4922A (warm)
   Cream/White background
   ========================================= */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;0,800;1,400&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
    --green-950: #0d2e14;
    --green-900: #1a5c2a;
    --green-800: #2d7a3a;
    --green-700: #3a8f48;
    --green-600: #4a9e55;
    --green-500: #5fb36b;
    --green-200: #b8dfc0;
    --green-100: #d9f0de;
    --green-50:  #f0f9f2;

    --orange-700: #c4510e;
    --orange-600: #E8621A;
    --orange-500: #F4922A;
    --orange-400: #f7ab55;
    --orange-100: #fde8d4;
    --orange-50:  #fff5ee;

    --cream: #faf8f4;
    --white: #ffffff;
    --text-dark: #1a2e1c;
    --text-mid: #3a5240;
    --text-light: #6b8570;
    --border: #ddeee0;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: var(--cream);
    color: var(--text-dark);
    overflow-x: hidden;
    animation: fadeIn 0.5s ease;
}

body.page-transitioning {
    opacity: 0;
    transition: opacity 0.3s ease;
}

::selection {
    background: var(--orange-500);
    color: #fff;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: #f0f9f2; }
::-webkit-scrollbar-thumb { background: var(--green-600); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--orange-600); }

/* ===== TYPOGRAPHY ===== */
.font-display { font-family: 'Playfair Display', serif; }

/* ===== CUSTOM CURSOR ===== */
#cursor {
    transform: translate(-50%, -50%);
    pointer-events: none;
}
#cursor-dot {
    transform: translate(-50%, -50%);
    pointer-events: none;
}

/* ===== NAVBAR ===== */
#navbar {
    background: rgba(255,255,255,0);
    transition: all 0.4s ease;
}

#navbar.scrolled {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 2px 24px rgba(26, 92, 42, 0.08);
}

#navbar.scrolled .nav-link { color: var(--text-dark) !important; }
#navbar.scrolled .nav-link:hover { color: var(--green-800) !important; }
#navbar.scrolled #logo-text { color: var(--green-900) !important; }
#navbar.scrolled .logo-sub { color: var(--orange-600) !important; }
#navbar.scrolled #mobile-menu-btn { color: var(--text-dark) !important; }
#navbar.scrolled .donate-btn {
    background: var(--orange-600) !important;
    color: #fff !important;
}

/* Nav link underline */
.nav-link:hover .nav-underline { width: 100%; }

/* ===== HERO ===== */
.hero-bg {
    background: linear-gradient(135deg, var(--green-950) 0%, var(--green-900) 50%, #0d2e14 100%);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(28px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.94); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes slideRight {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes pulseSlow {
    0%, 100% { opacity: 0.15; transform: scale(1); }
    50% { opacity: 0.3; transform: scale(1.06); }
}

@keyframes floatUp {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

.hero-badge { animation: fadeInScale 0.6s ease forwards; }
.hero-title { animation: fadeInUp 0.8s ease 0.2s both; }
.hero-subtitle { animation: fadeInUp 0.8s ease 0.4s both; }
.hero-cta { animation: fadeInUp 0.8s ease 0.6s both; }
.hero-stats { animation: fadeInUp 0.8s ease 0.8s both; }

.animate-pulse-slow { animation: pulseSlow 5s ease-in-out infinite; }
.animate-float { animation: floatUp 4s ease-in-out infinite; }

/* ===== STAT CARDS ===== */
.stat-card {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.stat-card:hover {
    background: rgba(255,255,255,0.14);
    border-color: rgba(244,146,42,0.4);
    transform: translateY(-3px);
}

/* ===== SERVICE CARDS ===== */
.service-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--green-50), var(--orange-50));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service-card:hover {
    border-color: var(--green-200);
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(26, 92, 42, 0.1);
}

.service-card:hover::before { opacity: 1; }

/* ===== IMPACT COUNTER ===== */
.counter-section {
    background: linear-gradient(135deg, var(--green-900), var(--green-950));
    position: relative;
    overflow: hidden;
}

.counter-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='30' cy='30' r='1' fill='%234a9e55' opacity='0.3'/%3E%3C/svg%3E") repeat;
    opacity: 0.4;
}

/* ===== CARDS HOVER ===== */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 40px rgba(26, 92, 42, 0.12);
}

/* ===== FORM INPUTS ===== */
input, select, textarea {
    transition: all 0.25s ease;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(74, 158, 85, 0.12);
}

/* ===== GALLERY ===== */
.gallery-item { animation: fadeIn 0.4s ease; }

#lightbox { animation: fadeInScale 0.3s ease; }

@keyframes filterFade {
    from { opacity: 0; transform: scale(0.97); }
    to { opacity: 1; transform: scale(1); }
}

/* ===== MOBILE MENU ===== */
#mobile-menu {
    animation: fadeInUp 0.3s ease;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(20px);
}

/* ===== GLASS CARD ===== */
.glass-card {
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.8);
}

/* ===== ORANGE ACCENT LINE ===== */
.accent-line {
    height: 3px;
    background: linear-gradient(90deg, var(--orange-600), var(--orange-400));
    border-radius: 2px;
}

/* ===== SECTION DIVIDER ===== */
.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
}

/* ===== BADGE PILL ===== */
.badge-green {
    display: inline-block;
    padding: 4px 14px;
    background: var(--green-100);
    color: var(--green-800);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: 100px;
    border: 1px solid var(--green-200);
}

.badge-orange {
    display: inline-block;
    padding: 4px 14px;
    background: var(--orange-100);
    color: var(--orange-700);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: 100px;
    border: 1px solid var(--orange-400);
}

/* ===== BUTTON STYLES ===== */
.btn-primary {
    background: linear-gradient(135deg, var(--orange-600), var(--orange-500));
    color: #fff;
    font-weight: 600;
    border-radius: 100px;
    padding: 14px 32px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(232, 98, 26, 0.25);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(232, 98, 26, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--green-800);
    font-weight: 600;
    border-radius: 100px;
    padding: 13px 32px;
    transition: all 0.3s ease;
    border: 2px solid var(--green-800);
    cursor: pointer;
}

.btn-secondary:hover {
    background: var(--green-800);
    color: #fff;
    transform: translateY(-2px);
}

/* ===== AOS TIMING ===== */
[data-aos] {
    transition-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

/* ===== FOOTER ===== */
.footer-bg {
    background: linear-gradient(160deg, var(--green-950) 0%, #0a2010 100%);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .font-display { letter-spacing: -0.01em; }
}

/* ===== PATTERN OVERLAY ===== */
.dot-pattern {
    background-image: radial-gradient(circle, rgba(74,158,85,0.25) 1px, transparent 1px);
    background-size: 40px 40px;
}

.dot-pattern-orange {
    background-image: radial-gradient(circle, rgba(244,146,42,0.2) 1px, transparent 1px);
    background-size: 40px 40px;
}

/* ===== TRUST BADGES ===== */
.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 100px;
    font-size: 0.72rem;
    font-weight: 500;
    color: rgba(255,255,255,0.8);
}

/* ===== TIMELINE (events) ===== */
.timeline-dot {
    width: 12px;
    height: 12px;
    background: var(--orange-500);
    border-radius: 50%;
    border: 3px solid var(--orange-100);
    flex-shrink: 0;
}
.image-showcase {
    position: relative;
}

/* Common */
.floating-img {
    position: absolute;
    border-radius: 20px;
    object-fit: cover;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);

    /* Glass look */
    border: 1px solid rgba(255,255,255,0.15);
    backdrop-filter: blur(6px);

    box-shadow: 0 20px 50px rgba(0,0,0,0.4);

    animation: float 5s ease-in-out infinite;
}


/* Small images */
.img-small {
    width: 45%;
    height: 45%;
    opacity: 0.9;
    z-index: 2;
}
/* MAIN IMAGE */
.img-main {
    width: 75%;
    height: 100%;
    left: 12%;
    top: 0;
    z-index: 3;
}

/* SMALL */
.img-top {
    width: 40%;
    height: 40%;
    top: -20px;
    left: 0;
    z-index: 2;
}

.img-bottom {
    width: 40%;
    height: 40%;
    bottom: -20px;
    right: 0;
    z-index: 2;
}

/* Floating animation */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
    100% { transform: translateY(0px); }
}

/* Active highlight */
.floating-img.active {
    transform: scale(1.05);
    border: 1px solid rgba(255,165,0,0.6);
    box-shadow: 0 25px 60px rgba(255,165,0,0.25);
    z-index: 5;
}

/* Inactive */
.floating-img:not(.active) {
    opacity: 0.8;
}