/* ==========================================================================
   CSS STYLING - THAMARAI AGRICULTURE WELFARE TRUST (TAW TRUST)
   Author: Antigravity AI
   Description: Premium, interactive styling with Light/Dark mode, Glassmorphism, 
                and Custom Print Layouts for Donation Receipts.
   ========================================================================== */

/* --- Google Fonts Import --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

/* --- Root Color Variables (Default Dark Mode Matching Mockup) --- */
:root {
    --primary-color: #a78bfa;       /* Light Purple/Violet */
    --primary-hover: #8b5cf6;
    --secondary-color: #06b6d4;     /* Cyan */
    --accent-color: #ec4899;        /* Magenta/Pink */
    --bg-light: #161530;            /* Soft Deep Midnight Purple */
    --bg-white: #222147;            /* Soft Indigo/Violet Card */
    --text-dark: #f3f4f6;           /* White/Light Gray */
    --text-muted: #9ca3af;          /* Muted Gray */
    --border-color: rgba(255, 255, 255, 0.12);
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    --card-shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.7);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --glass-bg: rgba(34, 33, 71, 0.65);
    --glass-border: rgba(255, 255, 255, 0.12);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
    --transition-speed: 0.3s;
    --transition-ease: cubic-bezier(0.25, 0.8, 0.25, 1);
    --header-height: 80px;
    --receipt-bg: #ffffff;
    --receipt-text: #111827;
    --success-color: #4adf80;
    --success-bg: rgba(74, 222, 128, 0.1);
    --success-border: rgba(74, 222, 128, 0.25);
}

/* --- Light Mode Override --- */
[data-theme="light"] {
    --primary-color: #7c3aed;       /* Violet */
    --primary-hover: #6d28d9;
    --secondary-color: #0891b2;     /* Cyan */
    --accent-color: #db2777;        /* Pink */
    --bg-light: #f5f3ff;            /* Soft Violet Tint */
    --bg-white: #ffffff;            /* White Card */
    --text-dark: #1f2937;           /* Dark Gray */
    --text-muted: #6b7280;          /* Muted Gray */
    --border-color: #e4e4e7;
    --card-shadow: 0 10px 30px rgba(124, 58, 237, 0.05);
    --card-shadow-hover: 0 20px 40px rgba(124, 58, 237, 0.12);
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(124, 58, 237, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(124, 58, 237, 0.05);
    --receipt-bg: #ffffff;
    --receipt-text: #111827;
    --success-color: #15803d;
    --success-bg: #f0fdf4;
    --success-border: #bbf7d0;
}

/* --- Dark Mode Variables (Explicit) --- */
[data-theme="dark"] {
    --primary-color: #a78bfa;
    --primary-hover: #8b5cf6;
    --secondary-color: #06b6d4;
    --accent-color: #ec4899;
    --bg-light: #161530;
    --bg-white: #222147;
    --text-dark: #f3f4f6;
    --text-muted: #9ca3af;
    --border-color: rgba(255, 255, 255, 0.12);
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    --card-shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.7);
    --glass-bg: rgba(34, 33, 71, 0.65);
    --glass-border: rgba(255, 255, 255, 0.12);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
    --receipt-bg: #222147;
    --receipt-text: #f3f4f6;
    --success-color: #4adf80;
    --success-bg: rgba(74, 222, 128, 0.1);
    --success-border: rgba(74, 222, 128, 0.25);
}

/* --- Dark Mode Utility Overrides --- */
[data-theme="dark"] .bg-light {
    background-color: var(--bg-light) !important;
}

[data-theme="dark"] .bg-white {
    background-color: var(--bg-white) !important;
}

[data-theme="dark"] .modal-content {
    background-color: var(--bg-white);
    color: var(--text-dark);
    border: 1px solid var(--border-color);
}

[data-theme="dark"] .btn-close {
    filter: invert(1) grayscale(1) brightness(2);
}

[data-theme="dark"] .map-iframe-container iframe {
    filter: invert(90%) hue-rotate(180deg) brightness(95%) contrast(90%);
}

/* --- Theme-Aware Custom Success Alert --- */
.custom-success-alert {
    background-color: var(--success-bg) !important;
    border: 1px solid var(--success-border) !important;
    color: var(--success-color) !important;
    border-radius: 16px;
    padding: 16px;
}

.custom-success-alert h6.alert-title {
    color: var(--secondary-color) !important;
    font-weight: 700;
}

.custom-success-alert i {
    color: var(--success-color) !important;
}

.custom-success-alert strong,
.custom-success-alert span,
.custom-success-alert li,
.custom-success-alert ul {
    color: var(--success-color) !important;
}

/* --- Theme-Aware Form Controls --- */
.form-control, .form-select {
    background-color: var(--bg-white);
    color: var(--text-dark);
    border: 1px solid var(--border-color);
    transition: all var(--transition-speed) ease;
}

.form-control:focus, .form-select:focus {
    background-color: var(--bg-white);
    color: var(--text-dark);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.25);
}

.form-control::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
}

/* --- Global Reset & Base Styles --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    transition: background-color var(--transition-speed), color var(--transition-speed);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-dark);
}

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

.text-muted {
    color: var(--text-muted) !important;
}

.text-dark {
    color: var(--text-dark) !important;
}

/* --- Sticky Desktop Helper --- */
.sticky-desktop {
    position: relative;
}

@media (min-width: 992px) {
    .sticky-desktop {
        position: sticky;
        top: 100px;
        z-index: 10;
    }
}

/* --- Loader Styling --- */
body.loading {
    overflow: hidden;
}

#loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-light);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), visibility 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.loader-container {
    text-align: center;
}

/* Lotus Loader Graphic */
.loader-visual {
    width: 280px;
    height: 224px; /* Maintain 200:160 aspect ratio */
    margin: 0 auto 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.loader-svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

/* Mountains */
.mountain-left, .mountain-right {
    transform-origin: bottom;
    opacity: 0;
    animation: fade-in-up-mountain 1s ease-out forwards;
    will-change: transform, opacity;
}
.mountain-left {
    animation-delay: 0.1s;
}
.mountain-right {
    animation-delay: 0.2s;
}

@keyframes fade-in-up-mountain {
    0% { transform: translate3d(0, 10px, 0); opacity: 0; }
    100% { transform: translate3d(0, 0, 0); opacity: 1; }
}

/* Sun rising */
.loader-sun, .loader-sun-glow {
    transform-origin: 100px 115px; /* center coordinates */
    animation: sun-rise 3s cubic-bezier(0.25, 1, 0.5, 1) forwards;
    will-change: transform, opacity;
}

@keyframes sun-rise {
    0% {
        transform: translate3d(0, 15px, 0) scale(0.6);
        opacity: 0;
    }
    15% {
        opacity: 0;
    }
    40% {
        transform: translate3d(0, -50px, 0) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate3d(0, -65px, 0) scale(1);
        opacity: 1;
    }
}

/* River Flow */
.loader-river {
    stroke-dasharray: 45;
    stroke-dashoffset: 45;
    animation: draw-river 3s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.loader-river-ripple {
    stroke-dasharray: 4, 8;
    stroke-dashoffset: 45;
    opacity: 0;
    animation: river-flow-ripple 3s linear forwards;
}

@keyframes draw-river {
    0%, 30% { stroke-dashoffset: 45; }
    50%, 100% { stroke-dashoffset: 0; }
}

@keyframes river-flow-ripple {
    0%, 30% { opacity: 0; stroke-dashoffset: 45; }
    50% { opacity: 0.8; stroke-dashoffset: 0; }
    100% { opacity: 0.8; stroke-dashoffset: -100; }
}

/* Birds Flying */
.loader-birds {
    transform: translate3d(-30px, 15px, 0);
    opacity: 0;
    animation: birds-crossing 3s cubic-bezier(0.25, 1, 0.5, 1) forwards;
    will-change: transform, opacity;
}

.bird {
    transform-origin: center;
    animation: flap 0.35s infinite alternate ease-in-out;
}
.bird-1 { animation-delay: 0.05s; }
.bird-2 { animation-delay: 0.15s; }
.bird-3 { animation-delay: 0s; }

@keyframes birds-crossing {
    0% { transform: translate3d(-30px, 15px, 0); opacity: 0; }
    15% { opacity: 0.85; }
    85% { opacity: 0.85; }
    100% { transform: translate3d(160px, -5px, 0); opacity: 0; }
}

@keyframes flap {
    0% { transform: scaleY(1); }
    100% { transform: scaleY(0.25); }
}

/* Lotus Bud -> Blooming Lotus Group */
.lotus-group {
    transform-origin: 0px 0px; /* translated inside SVG */
}

.petal, .sepal, .lotus-stem, .lotus-stamens, .lotus-glow {
    transform-origin: 0px 0px; /* Relative to 0,0 in local transform group */
    animation-fill-mode: forwards;
    animation-timing-function: cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform, opacity;
}

.lotus-stem {
    animation-name: grow-stem-new;
    animation-duration: 3s;
}

.left-sepal {
    animation-name: bloom-sepal-left-new;
    animation-duration: 3s;
}

.right-sepal {
    animation-name: bloom-sepal-right-new;
    animation-duration: 3s;
}

.outer-back-left {
    animation-name: bloom-petal-left-3-new;
    animation-duration: 3s;
}

.outer-back-right {
    animation-name: bloom-petal-right-3-new;
    animation-duration: 3s;
}

.mid-left {
    animation-name: bloom-petal-left-2-new;
    animation-duration: 3s;
}

.mid-right {
    animation-name: bloom-petal-right-2-new;
    animation-duration: 3s;
}

.inner-left {
    animation-name: bloom-petal-left-1-new;
    animation-duration: 3s;
}

.inner-right {
    animation-name: bloom-petal-right-1-new;
    animation-duration: 3s;
}

.center-petal {
    animation-name: bloom-petal-center-new;
    animation-duration: 3s;
}

.lotus-stamens {
    animation-name: bloom-stamens-new;
    animation-duration: 3s;
}

.lotus-glow {
    animation-name: bloom-glow-new;
    animation-duration: 3s;
}

/* Lotus Bud & Blooming Animations (delayed to run from 2.5s to 4.5s) */
@keyframes grow-stem-new {
    0%, 45% { transform: scaleY(0.1); opacity: 0; }
    50% { opacity: 1; }
    60%, 100% { transform: scaleY(1); opacity: 1; }
}

@keyframes bloom-sepal-left-new {
    0%, 50% { transform: scale(0.15) rotate(0deg); opacity: 0; }
    55% { opacity: 1; }
    75%, 100% { transform: scale(1) rotate(-18deg); opacity: 1; }
}

@keyframes bloom-sepal-right-new {
    0%, 50% { transform: scale(0.15) rotate(0deg); opacity: 0; }
    55% { opacity: 1; }
    75%, 100% { transform: scale(1) rotate(18deg); opacity: 1; }
}

@keyframes bloom-petal-center-new {
    0%, 50% { transform: scale(0.1, 0.4); opacity: 0.3; }
    55% { opacity: 1; }
    85%, 100% { transform: scale(1, 1); opacity: 1; }
}

@keyframes bloom-petal-left-1-new {
    0%, 52% { transform: scale(0.1, 0.3) rotate(0deg); opacity: 0; }
    56% { opacity: 1; }
    88%, 100% { transform: scale(1, 1) rotate(-16deg); opacity: 1; }
}

@keyframes bloom-petal-right-1-new {
    0%, 52% { transform: scale(0.1, 0.3) rotate(0deg); opacity: 0; }
    56% { opacity: 1; }
    88%, 100% { transform: scale(1, 1) rotate(16deg); opacity: 1; }
}

@keyframes bloom-petal-left-2-new {
    0%, 55% { transform: scale(0.05, 0.2) rotate(0deg); opacity: 0; }
    60% { opacity: 1; }
    92%, 100% { transform: scale(1, 1) rotate(-38deg); opacity: 1; }
}

@keyframes bloom-petal-right-2-new {
    0%, 55% { transform: scale(0.05, 0.2) rotate(0deg); opacity: 0; }
    60% { opacity: 1; }
    92%, 100% { transform: scale(1, 1) rotate(38deg); opacity: 1; }
}

@keyframes bloom-petal-left-3-new {
    0%, 58% { transform: scale(0.01, 0.15) rotate(0deg); opacity: 0; }
    64% { opacity: 1; }
    95%, 100% { transform: scale(1, 1) rotate(-60deg); opacity: 1; }
}

@keyframes bloom-petal-right-3-new {
    0%, 58% { transform: scale(0.01, 0.15) rotate(0deg); opacity: 0; }
    64% { opacity: 1; }
    95%, 100% { transform: scale(1, 1) rotate(60deg); opacity: 1; }
}

@keyframes bloom-stamens-new {
    0%, 65% { transform: scale(0); opacity: 0; }
    85%, 100% { transform: scale(1); opacity: 1; }
}

@keyframes bloom-glow-new {
    0%, 50% { transform: scale(0.1); opacity: 0; }
    90%, 100% { transform: scale(1.2); opacity: 0.85; }
}

/* Welcome to TAW Trust minimal text styling */
.loader-welcome-text {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-dark);
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-top: 15px;
    opacity: 0;
    animation: fade-in-welcome 3s cubic-bezier(0.25, 1, 0.5, 1) forwards;
    will-change: transform, opacity;
}

@keyframes fade-in-welcome {
    0%, 80% { opacity: 0; transform: translate3d(0, 5px, 0); }
    90%, 100% { opacity: 1; transform: translate3d(0, 0, 0); }
}

/* --- Accessibility Focus Outline --- */
*:focus-visible {
    outline: 3px solid var(--accent-color);
    outline-offset: 2px;
}

/* --- Scrollbar Customization --- */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* --- Navigation Bar --- */
.navbar {
    height: var(--header-height);
    background-color: rgba(22, 21, 48, 0.7);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    transition: all var(--transition-speed) ease;
    z-index: 1000;
}

.navbar.navbar-scrolled {
    height: 70px;
    box-shadow: var(--card-shadow);
    background-color: rgba(22, 21, 48, 0.9);
    backdrop-filter: blur(12px);
}

/* --- Navigation Toggler Styling --- */
.navbar-toggler {
    border: 1px solid var(--border-color);
    padding: 6px 12px;
    border-radius: 8px;
    background: transparent;
    transition: all 0.3s ease;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.25);
    outline: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28243, 244, 246, 0.85%29' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

[data-theme="light"] .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2831, 41, 55, 0.85%29' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.navbar-brand img {
    height: 50px;
    width: auto;
    transition: transform var(--transition-speed);
}

.navbar-brand:hover img {
    transform: rotate(5deg) scale(1.05);
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.25rem;
    line-height: 1.1;
    color: #ffffff;
    letter-spacing: 1.5px;
}

.brand-sub {
    font-size: 0.65rem;
    font-weight: 700;
    background: linear-gradient(90deg, #bf953f, #fcf6ba, #b38728, #fbf5b7, #aa771c);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: inline-block;
}

.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    color: #e5e7eb !important;
    padding: 8px 16px !important;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 16px;
    width: 0;
    height: 2.5px;
    background-color: var(--secondary-color);
    transition: width var(--transition-speed) ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: calc(100% - 32px);
}

/* --- Theme Toggle & CTA Buttons in Nav --- */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.theme-toggle-btn {
    background: none;
    border: 1px solid var(--border-color);
    color: #e5e7eb;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
}

.theme-toggle-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.nav-cta-btn {
    background: linear-gradient(135deg, #d82a86 0%, #e85a4f 100%) !important;
    color: #ffffff !important;
    padding: 10px 22px !important;
    border-radius: 30px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(216, 42, 134, 0.3);
}

.nav-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(216, 42, 134, 0.5);
}

.nav-cta-btn::after {
    display: none;
}

/* --- Hero Section --- */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: calc(var(--header-height) + 40px);
    padding-bottom: 80px;
    background: linear-gradient(135deg, #161530 0%, #0c0b1a 100%);
    overflow: hidden;
}

.hero-bg-glow {
    position: absolute;
    top: 5%;
    right: 5%;
    width: 650px;
    height: 650px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.12) 0%, rgba(236, 72, 153, 0.04) 50%, transparent 80%);
    z-index: 1;
    pointer-events: none;
    filter: blur(40px);
}

.hero-content {
    position: relative;
    z-index: 2;
    color: #ffffff;
}

.hero-tagline-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(74, 222, 128, 0.1);
    border: 1px solid rgba(74, 222, 128, 0.2);
    color: #4adf80;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1px;
    color: #ffffff;
}

.text-gradient {
    background: linear-gradient(90deg, #ec4899 0%, #06b6d4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.hero-description {
    font-size: 1.1rem;
    color: #9ca3af;
    line-height: 1.6;
    max-width: 600px;
}

.hero-btns {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-custom {
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 600;
    transition: all var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
}

.btn-gradient-purple {
    background: linear-gradient(135deg, #d946ef 0%, #7c3aed 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
    border: none;
}

.btn-gradient-purple:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.5);
}

.btn-outline-custom {
    background-color: transparent;
    color: #ffffff !important;
    border: 1.5px solid rgba(255, 255, 255, 0.2);
}

.btn-outline-custom:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

/* --- Hero Visual Sprout & Orbits --- */
.hero-visual-wrapper {
    position: relative;
    width: 100%;
    max-width: 450px;
    height: 450px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-plant-img {
    position: relative;
    z-index: 3;
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
    filter: drop-shadow(0 10px 30px rgba(139, 92, 246, 0.15));
}

.glow-radial {
    position: absolute;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(167, 139, 250, 0.2) 0%, transparent 70%);
    z-index: 2;
    pointer-events: none;
}

.orbit-ring {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    z-index: 1;
}

.ring-1 {
    width: 380px;
    height: 380px;
    animation: rotateClockwise 25s linear infinite;
    border-style: dashed;
}

.ring-2 {
    width: 290px;
    height: 290px;
    animation: rotateCounterClockwise 20s linear infinite;
    border-style: dotted;
    border-color: rgba(6, 182, 212, 0.1);
}

.ring-3 {
    width: 200px;
    height: 200px;
    border-color: rgba(236, 72, 153, 0.08);
}

@keyframes rotateClockwise {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes rotateCounterClockwise {
    0% { transform: rotate(360deg); }
    100% { transform: rotate(0deg); }
}

/* --- Floating Glassmorphic Stats Cards --- */
.floating-stat-card {
    position: absolute;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--glass-shadow);
    z-index: 4;
    transition: all 0.3s ease;
}

.floating-stat-card:hover {
    transform: scale(1.05) !important;
    border-color: var(--primary-color);
    box-shadow: var(--card-shadow-hover);
}

.floating-stat-card .stat-icon-wrapper {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    color: #ffffff;
}

.purple-glow {
    background: linear-gradient(135deg, #d946ef 0%, #7c3aed 100%);
    box-shadow: 0 0 10px rgba(124, 58, 237, 0.4);
}

.green-glow {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
}

.blue-glow {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.4);
}

.floating-stat-card .stat-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.floating-stat-card .stat-val {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-dark);
    font-family: var(--font-heading);
}

.floating-stat-card .stat-lbl {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 500;
    white-space: nowrap;
}

/* Animations for floating cards to move gently */
.floating-stat-card.card-1 {
    top: 10%;
    right: -5%;
    animation: floatAnimation1 5s ease-in-out infinite alternate;
}

.floating-stat-card.card-2 {
    bottom: 35%;
    left: -12%;
    animation: floatAnimation2 6s ease-in-out infinite alternate;
}

.floating-stat-card.card-3 {
    bottom: 12%;
    right: -2%;
    animation: floatAnimation3 5.5s ease-in-out infinite alternate;
}

@keyframes floatAnimation1 {
    0% { transform: translateY(0px) rotate(0deg); }
    100% { transform: translateY(-12px) rotate(1deg); }
}

@keyframes floatAnimation2 {
    0% { transform: translateY(0px) rotate(0deg); }
    100% { transform: translateY(12px) rotate(-1.5deg); }
}

@keyframes floatAnimation3 {
    0% { transform: translateY(0px) rotate(0deg); }
    100% { transform: translateY(-8px) rotate(1deg); }
}

/* --- Glassmorphic Features Bar --- */
.hero-features-bar {
    margin-top: 80px;
    background: rgba(34, 33, 71, 0.45);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    position: relative;
    z-index: 5;
}

.feature-bar-card {
    display: flex;
    align-items: center;
    gap: 20px;
    height: 100%;
}

.feature-bar-card .feature-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: #ffffff;
    flex-shrink: 0;
}

.purple-gradient {
    background: linear-gradient(135deg, #a855f7 0%, #6366f1 100%);
    box-shadow: 0 8px 20px rgba(168, 85, 247, 0.2);
}

.blue-gradient {
    background: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.2);
}

.green-gradient {
    background: linear-gradient(135deg, #10b981 0%, #14b8a6 100%);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.2);
}

.orange-gradient {
    background: linear-gradient(135deg, #f97316 0%, #db2777 100%);
    box-shadow: 0 8px 20px rgba(249, 115, 22, 0.2);
}

.feature-bar-card .feature-info h5 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: #ffffff;
}

.feature-bar-card .feature-info p {
    font-size: 0.8rem;
    color: #9ca3af;
    margin-bottom: 0;
    line-height: 1.4;
}

/* --- Section Formatting --- */
.section-padding {
    padding: 100px 0;
}

.section-header {
    margin-bottom: 60px;
}

.section-tag {
    font-family: var(--font-heading);
    color: var(--secondary-color);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
    display: block;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.section-divider {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--accent-color) 100%);
    border-radius: 2px;
}

/* --- Statistics Counters --- */
.stats-section {
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 50%, #ec4899 100%);
    color: #ffffff;
    padding: 70px 0;
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0%, transparent 70%);
    z-index: 1;
}

.stat-card {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    padding: 35px 20px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.15);
    transition: transform var(--transition-speed) var(--transition-ease), 
                box-shadow var(--transition-speed) var(--transition-ease), 
                background-color var(--transition-speed) var(--transition-ease), 
                border-color var(--transition-speed) var(--transition-ease);
    will-change: transform, box-shadow;
}

.stat-card:hover {
    transform: translate3d(0, -8px, 0);
    background-color: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 15px 35px 0 rgba(0, 0, 0, 0.25);
}

.stat-icon {
    font-size: 2.5rem;
    color: #ffffff;
    opacity: 0.9;
    margin-bottom: 15px;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    font-family: var(--font-heading);
    line-height: 1;
    margin-bottom: 10px;
    color: #ffffff;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.stat-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

/* --- Cards Common (Premium Glassmorphism & Hover) --- */
.premium-card {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--card-shadow);
    transition: transform var(--transition-speed) var(--transition-ease), 
                box-shadow var(--transition-speed) var(--transition-ease), 
                border-color var(--transition-speed) var(--transition-ease), 
                background-color var(--transition-speed) var(--transition-ease);
    will-change: transform, box-shadow;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.premium-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
    transition: height 0.4s var(--transition-ease);
}

.premium-card:hover {
    transform: translate3d(0, -8px, 0);
    box-shadow: var(--card-shadow-hover);
    border-color: var(--primary-color);
}

.premium-card:hover::before {
    height: 100%;
}



.card-icon-box {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    background-color: rgba(139, 92, 246, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 25px;
    transition: transform var(--transition-speed) var(--transition-ease),
                background-color var(--transition-speed) var(--transition-ease),
                color var(--transition-speed) var(--transition-ease);
    will-change: transform;
}

.premium-card:hover .card-icon-box {
    transform: scale(1.1) rotate(5deg);
    background-color: var(--primary-color);
    color: #ffffff;
}



/* --- About Us Specific Elements --- */
.vision-mission-box {
    background-color: var(--bg-white);
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
}

.v-m-tab-btn {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    padding: 12px 25px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    background-color: transparent;
    color: var(--text-dark);
    margin-right: 10px;
    margin-bottom: 10px;
    transition: all var(--transition-speed);
}

.v-m-tab-btn.active, .v-m-tab-btn:hover {
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 50%, #ec4899 100%);
    color: #ffffff;
    border-color: transparent;
}

/* Timeline */
.timeline-container {
    position: relative;
    padding-left: 30px;
    border-left: 2px solid var(--border-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -41px;
    top: 5px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--accent-color);
    border: 4px solid var(--bg-light);
    box-shadow: 0 0 0 2px var(--primary-color);
}

.timeline-year {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-bottom: 5px;
}

/* --- Programs Grid / Grid Styling --- */
.program-image-wrapper {
    height: 220px;
    overflow: hidden;
    position: relative;
    border-radius: 15px;
    margin-bottom: 20px;
}

.program-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}



/* --- Donation Page Form & Bank Details --- */
.donation-form-wrapper {
    background-color: var(--bg-white);
    border-radius: 24px;
    padding: 40px;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
}

.donation-amount-btn {
    border: 1px solid var(--border-color);
    background-color: transparent;
    padding: 10px 15px;
    border-radius: 12px;
    font-weight: 600;
    color: var(--text-dark);
    transition: all var(--transition-speed);
}

.donation-amount-btn.active, .donation-amount-btn:hover {
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 50%, #ec4899 100%);
    color: #ffffff;
    border-color: transparent;
}

.bank-details-card {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1d4ed8 100%);
    color: #ffffff;
    border-radius: 20px;
    padding: 30px;
    position: relative;
    overflow: hidden;
}

.bank-details-card h4, .bank-details-card h5 {
    color: #ffffff;
}

.bank-details-card::after {
    content: '\f19c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    bottom: -20px;
    right: -10px;
    font-size: 12rem;
    opacity: 0.05;
    pointer-events: none;
}

/* UPI QR placeholder styles */
.qr-code-box {
    background-color: #ffffff;
    padding: 15px;
    border-radius: 15px;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.qr-code-box img {
    width: 140px;
    height: 140px;
}

/* --- Gallery Filter Styles --- */
.gallery-filter-btn {
    border: 1px solid var(--border-color);
    background-color: var(--bg-white);
    color: var(--text-dark);
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: 600;
    margin: 5px;
    transition: all var(--transition-speed);
}

.gallery-filter-btn.active, .gallery-filter-btn:hover {
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 50%, #ec4899 100%);
    color: #ffffff;
    border-color: transparent;
}

.gallery-subtitle-note {
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px dashed var(--primary-color);
    color: var(--primary-color);
    background-color: rgba(167, 139, 250, 0.08);
    display: inline-block;
    padding: 6px 16px;
    border-radius: 30px;
    transition: all var(--transition-speed);
}

[data-theme="light"] .gallery-subtitle-note {
    background-color: rgba(124, 58, 237, 0.08);
}

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    height: 260px;
    box-shadow: var(--card-shadow);
    margin-bottom: 30px;
    cursor: pointer;
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(34, 33, 71, 0.9) 0%, rgba(34, 33, 71, 0.3) 100%);
    opacity: 0;
    transition: opacity var(--transition-speed);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    color: #ffffff;
}

.gallery-item:hover .gallery-image {
    transform: scale(1.1);
}

.gallery-item:hover .gallery-item-overlay {
    opacity: 1;
}

/* Showcase Gallery Scrollable Container */
#new-event-preview-photos {
    max-height: 300px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 6px;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) transparent;
}

#new-event-preview-photos::-webkit-scrollbar {
    width: 6px;
}

#new-event-preview-photos::-webkit-scrollbar-track {
    background: transparent;
}

#new-event-preview-photos::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

#new-event-preview-photos::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* Lightbox Modal Customization */
.lightbox-modal .modal-content {
    background: transparent;
    border: none;
}

.lightbox-modal img {
    max-height: 80vh;
    object-fit: contain;
    border-radius: 10px;
}

/* --- Events Grid/Cards & Countdowns --- */
.event-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--accent-color);
    color: #1e2925;
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.countdown-box {
    display: flex;
    gap: 10px;
    justify-content: center;
    background-color: rgba(139, 92, 246, 0.05);
    padding: 15px;
    border-radius: 15px;
    margin-top: 15px;
}

.countdown-unit {
    text-align: center;
    flex: 1;
}

.countdown-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
    line-height: 1.1;
}

.countdown-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--text-muted);
}


/* --- Contact & Maps --- */
.map-iframe-container {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
    height: 350px;
}

.contact-info-list {
    list-style: none;
    padding-left: 0;
}

.contact-info-list li {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    align-items: flex-start;
}

.contact-info-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: rgba(139, 92, 246, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* --- Footer --- */
.footer-top {
    background-color: #111026;
    color: #e2e8e5;
    padding: 80px 0 50px;
}

.footer-top .text-muted {
    color: #a0b0a8 !important;
}

.footer-logo-text {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.4rem;
    color: #ffffff;
    line-height: 1.2;
    margin-bottom: 5px;
}

.footer-subtitle {
    font-size: 0.75rem;
    font-weight: 700;
    background: linear-gradient(90deg, #bf953f, #fcf6ba, #b38728, #fbf5b7, #aa771c);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
    display: inline-block;
}

.footer-links {
    list-style: none;
    padding-left: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #a0b0a8;
    transition: all var(--transition-speed);
}

.footer-links a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 15px;
}

.social-icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    transition: all var(--transition-speed);
}

.social-icon-btn:hover {
    background-color: var(--secondary-color);
    color: #ffffff;
    transform: translateY(-3px);
}

.footer-bottom {
    background-color: #0b0a1a;
    color: #809088;
    padding: 20px 0;
    font-size: 0.85rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}

/* --- Floating Utilities --- */
.floating-actions-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 999;
}

.floating-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all var(--transition-speed) ease;
    cursor: pointer;
}

.floating-btn:hover {
    transform: translateY(-5px) scale(1.05);
    color: #ffffff;
}

.whatsapp-float {
    background-color: #25d366;
}

.back-to-top-float {
    background-color: var(--primary-color);
    opacity: 0;
    visibility: hidden;
}

.back-to-top-float.show {
    opacity: 1;
    visibility: visible;
}

/* --- Donation Receipt Modal / Print Styling --- */
.receipt-wrapper {
    background-color: var(--receipt-bg);
    color: var(--receipt-text);
    border: 3px double var(--primary-color);
    border-radius: 12px;
    padding: 30px;
    position: relative;
    max-width: 700px;
    margin: 0 auto;
    font-family: 'Inter', sans-serif;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.receipt-header {
    text-align: center;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.receipt-logo-container {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.receipt-logo-container i {
    font-size: 2.2rem;
    color: var(--secondary-color);
}

.receipt-title {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary-color);
    text-transform: uppercase;
    margin: 0;
}

.receipt-tagline {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 3px;
}

.receipt-address {
    font-size: 0.75rem;
    color: #555555;
    margin-top: 5px;
    line-height: 1.3;
}

.receipt-reg-info {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-top: 5px;
}

.receipt-body {
    font-size: 0.9rem;
    line-height: 1.5;
}

.receipt-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    background-color: #f7f9f8;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #e2e8e5;
}

.receipt-info-item span {
    font-weight: 700;
    color: var(--primary-color);
}

.receipt-statement {
    text-align: justify;
    margin-bottom: 20px;
}

.receipt-statement p {
    margin-bottom: 10px;
}

.receipt-amount-words {
    background-color: #f7f9f8;
    border-left: 4px solid var(--accent-color);
    padding: 10px 15px;
    font-weight: 600;
    margin-bottom: 25px;
    text-transform: capitalize;
}

.receipt-footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 20px;
    align-items: flex-end;
    margin-top: 30px;
    padding-top: 15px;
    border-top: 1px dashed var(--border-color);
}

.receipt-seal-box {
    text-align: center;
    border: 1px solid var(--border-color);
    padding: 10px;
    border-radius: 8px;
    font-size: 0.75rem;
    background-color: #fbfbfb;
}

.receipt-seal-icon {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 5px;
}

.receipt-signature-box {
    text-align: center;
}

.receipt-signature-line {
    border-top: 1px solid #444444;
    margin-top: 40px;
    padding-top: 5px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary-color);
}

.receipt-notes {
    font-size: 0.7rem;
    color: #777777;
    margin-top: 20px;
    text-align: center;
    border-top: 1px solid #eeeeee;
    padding-top: 10px;
}

/* ==========================================================================
   PRINT MEDIA QUERY - Ensures donation receipt prints perfectly on A4
   ========================================================================== */
@media print {
    body * {
        visibility: hidden;
    }
    
    .modal.show, .modal.show .modal-dialog, .modal.show .modal-content, .modal.show .receipt-wrapper, .modal.show .receipt-wrapper * {
        visibility: visible;
    }
    
    .modal.show {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        height: auto;
        overflow: visible;
        background-color: #ffffff !important;
        margin: 0;
        padding: 0;
    }

    .modal-dialog {
        max-width: 100% !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        box-shadow: none !important;
    }

    .modal-content {
        border: none !important;
        background-color: #ffffff !important;
        box-shadow: none !important;
    }

    .receipt-wrapper {
        border: 2px solid var(--primary-color) !important;
        box-shadow: none !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 20px !important;
        background: #ffffff !important;
        color: #000000 !important;
    }

    /* Hide close/print buttons during printing */
    .receipt-print-actions, .modal-header {
        display: none !important;
    }
}

/* --- Trustees Avatar Hover Styles --- */
.avatar-placeholder {
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
    cursor: default;
}

.avatar-placeholder:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 20px rgba(139, 92, 246, 0.25) !important;
}

/* --- Member Card Hover Styles --- */
.member-card:hover .member-card-img {
    transform: scale(1.05);
}
.member-card:hover .member-card-img-overlay {
    opacity: 1 !important;
}
.member-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-shadow-hover) !important;
}

/* ==========================================================================
   SCROLL DEW DROP ANIMATIONS
   ========================================================================== */
.dew-drop {
    position: fixed;
    pointer-events: none; /* Non-intrusive */
    z-index: 9999;
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; /* Organic shape */
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 
        inset -2px -2px 6px rgba(0, 0, 0, 0.05),
        inset 2px 2px 4px rgba(255, 255, 255, 0.5),
        0 4px 10px rgba(0, 0, 0, 0.03);
    will-change: transform, opacity;
    animation: fadeAndDrift 3s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes fadeAndDrift {
    0% {
        opacity: 0;
        transform: translateY(0) scale(0.6);
    }
    15% {
        opacity: 0.6;
        transform: translateY(15px) scale(1);
    }
    85% {
        opacity: 0.4;
    }
    100% {
        opacity: 0;
        transform: translateY(60px) scale(0.8);
    }
}

/* ==========================================================================
   SECURE ONLINE DONATION & RECEIPT HUB UPGRADES
   ========================================================================== */

/* --- Custom Real-Time Form Validation Glows --- */
#trust-donation-form .form-control.is-valid,
#trust-donation-form .form-select.is-valid {
    border-color: #10b981 !important;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.2) !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%2310b981' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.5-1.1.1z'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right calc(0.375em + 0.188rem) center !important;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem) !important;
}

#trust-donation-form .form-control.is-invalid,
#trust-donation-form .form-select.is-invalid {
    border-color: #ef4444 !important;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.2) !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23ef4444'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23ef4444'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right calc(0.375em + 0.188rem) center !important;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem) !important;
}

#trust-donation-form .invalid-feedback {
    display: none;
    font-size: 0.75rem;
    color: #ef4444;
    margin-top: 5px;
    font-weight: 500;
}

#trust-donation-form .form-control.is-invalid ~ .invalid-feedback,
#trust-donation-form .form-select.is-invalid ~ .invalid-feedback,
#trust-donation-form .input-group.has-validation .form-control.is-invalid ~ .invalid-feedback {
    display: block;
}

/* --- Live Supporter Feed Wall --- */
.live-pulse-dot {
    width: 8px;
    height: 8px;
    background-color: #10b981;
    border-radius: 50%;
    display: inline-block;
    position: relative;
}

.live-pulse-dot::after {
    content: '';
    width: 100%;
    height: 100%;
    background-color: #10b981;
    border-radius: 50%;
    position: absolute;
    top: 0;
    left: 0;
    animation: livePulse 1.8s infinite ease-in-out;
}

@keyframes livePulse {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(3.5); opacity: 0; }
}

.donor-wall-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 12px 16px;
    transition: all 0.3s ease;
    animation: slideInDonor 0.5s ease-out;
}

[data-theme="light"] .donor-wall-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.donor-wall-item:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(167, 139, 250, 0.2);
    transform: translateY(-2px);
}

[data-theme="light"] .donor-wall-item:hover {
    background: #f1f5f9;
    border-color: rgba(167, 139, 250, 0.4);
}

@keyframes slideInDonor {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Secure Payment Gateway Modal --- */
.gateway-lock-wrapper {
    position: relative;
    display: inline-block;
    margin: 0 auto;
}

.gateway-lock-circle {
    width: 70px;
    height: 70px;
    background: rgba(167, 139, 250, 0.1);
    border: 2px solid rgba(167, 139, 250, 0.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.gateway-lock-icon {
    font-size: 28px;
    color: #a78bfa;
    animation: lockPulse 2s infinite ease-in-out;
}

.gateway-pulse-ring {
    position: absolute;
    top: -15px;
    left: -15px;
    width: 100px;
    height: 100px;
    border: 1px solid rgba(167, 139, 250, 0.15);
    border-radius: 50%;
    animation: gatewayPulse 2.5s infinite linear;
    z-index: 1;
}

.gateway-steps {
    max-width: 320px;
    margin: 0 auto;
}

.gateway-step {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    margin-bottom: 8px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.85rem;
    transition: all 0.4s ease;
}

.gateway-step.pending {
    opacity: 0.4;
}

.gateway-step.completed {
    background: rgba(16, 185, 129, 0.08);
    border-color: rgba(16, 185, 129, 0.2);
}

.gateway-step.completed .gateway-step-text {
    color: #10b981 !important;
}

.gateway-step-icon {
    font-size: 0.95rem;
    width: 22px;
    text-align: center;
}

@keyframes lockPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); text-shadow: 0 0 15px rgba(167, 139, 250, 0.6); }
    100% { transform: scale(1); }
}

@keyframes gatewayPulse {
    0% { transform: scale(0.6); opacity: 0; }
    50% { opacity: 0.5; }
    100% { transform: scale(1.3); opacity: 0; }
}

/* Receipt custom digital hash signature layout styling */
.receipt-signature-hash-card {
    background-color: rgba(0, 0, 0, 0.02) !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
}

/* ==========================================================================
   RESPONSIVE LAYOUT MEDIA QUERIES (Laptop, Tablet, and Mobile compatibility)
   ========================================================================== */

/* --- Global overflow prevention --- */
body {
    overflow-x: hidden;
}

/* --- Laptop & Large Tablets (Navbar Collapse Point) --- */
@media (max-width: 1199.98px) {
    .navbar-collapse {
        background-color: var(--bg-white);
        border: 1px solid var(--border-color);
        padding: 25px;
        margin-top: 15px;
        border-radius: 16px;
        box-shadow: var(--card-shadow);
        backdrop-filter: blur(20px);
    }
    
    .navbar-nav {
        align-items: center;
        gap: 8px;
        text-align: center;
    }
    
    .nav-link {
        width: 100%;
        padding: 10px 0 !important;
        color: var(--text-dark) !important;
    }
    
    .nav-link::after {
        left: 50%;
        transform: translateX(-50%);
        bottom: 0;
    }
    
    .nav-link:hover::after,
    .nav-link.active::after {
        width: 60px;
    }
    
    .nav-actions {
        flex-direction: column;
        gap: 12px;
        margin-top: 20px;
        width: 100%;
    }
    
    .theme-toggle-btn {
        width: 100%;
        max-width: 200px;
        border-radius: 30px;
        color: var(--text-dark) !important;
        border-color: var(--border-color) !important;
    }
    
    .theme-toggle-btn:hover {
        background-color: var(--border-color) !important;
        color: var(--primary-color) !important;
        border-color: var(--primary-color) !important;
    }
    
    .nav-cta-btn {
        width: 100%;
        max-width: 200px;
        text-align: center;
    }
}

/* --- Medium Tablets (Landscape/Portrait) --- */
@media (max-width: 991.98px) {
    .hero-section {
        padding-top: calc(var(--header-height) + 20px);
        padding-bottom: 60px;
        min-height: auto;
    }
    
    .hero-title {
        font-size: 2.8rem;
        text-align: center;
    }
    
    .hero-tagline-badge {
        margin: 0 auto 15px;
    }
    
    .hero-description {
        font-size: 1rem;
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-btns {
        justify-content: center;
    }
    
    .hero-visual-wrapper {
        margin: 50px auto 0;
        max-width: 380px;
        height: 380px;
    }
    
    .ring-1 { width: 320px; height: 320px; }
    .ring-2 { width: 250px; height: 250px; }
    .ring-3 { width: 180px; height: 180px; }
    
    .floating-stat-card.card-1 { right: 0%; top: 5%; }
    .floating-stat-card.card-2 { left: -5%; bottom: 30%; }
    .floating-stat-card.card-3 { right: 2%; bottom: 10%; }
    
    .hero-features-bar {
        margin-top: 50px;
        padding: 20px;
    }
    
    .section-padding {
        padding: 80px 0;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
}

/* --- Small Tablets & Portrait Mobiles --- */
@media (max-width: 767.98px) {
    .hero-title {
        font-size: 2.3rem;
    }
    
    .floating-stat-card {
        padding: 8px 12px;
    }
    
    .floating-stat-card .stat-icon-wrapper {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }
    
    .floating-stat-card .stat-val {
        font-size: 1rem;
    }
    
    .floating-stat-card .stat-lbl {
        font-size: 0.65rem;
    }
    
    .floating-stat-card.card-1 { right: 5%; top: 5%; }
    .floating-stat-card.card-2 { left: 5%; bottom: 30%; }
    .floating-stat-card.card-3 { right: 5%; bottom: 8%; }
    
    .stat-card {
        padding: 25px 15px;
        border-radius: 16px;
    }
    
    .stat-icon {
        font-size: 1.8rem;
        margin-bottom: 10px;
    }
    
    .stat-number {
        font-size: 2.2rem;
        margin-bottom: 5px;
    }
    
    .stat-label {
        font-size: 0.8rem;
        letter-spacing: 1px;
    }

    .premium-card {
        padding: 16px;
        border-radius: 16px;
    }
    
    .program-image-wrapper {
        height: 140px;
        margin-bottom: 15px;
        border-radius: 12px;
    }
    
    .card-icon-box {
        width: 44px;
        height: 44px;
        font-size: 1.15rem;
        margin-bottom: 12px;
        border-radius: 10px;
    }
    
    .card-body-content {
        padding: 10px 0 0 0 !important;
    }
    
    .premium-card h4, 
    .premium-card .card-title {
        font-size: 1.05rem;
        margin-bottom: 6px;
    }
    
    .premium-card p, 
    .premium-card .card-text {
        font-size: 0.8rem;
        margin-bottom: 10px !important;
    }
    
    .gallery-item {
        height: 180px;
        margin-bottom: 20px;
        border-radius: 12px;
    }
    
    .section-padding {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .donation-form-wrapper {
        padding: 25px;
    }
    
    .receipt-wrapper {
        padding: 20px;
    }
    
    .receipt-title {
        font-size: 1.25rem;
    }
    
    .receipt-info-grid {
        grid-template-columns: 1fr;
        gap: 5px;
    }
    
    .receipt-info-item.text-end {
        text-align: left !important;
    }
    
    .receipt-footer-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        text-align: center;
    }
    
    .receipt-signature-box {
        margin-top: 10px;
    }
}

/* --- Small Mobile Phones --- */
@media (max-width: 575.98px) {
    .hero-title {
        font-size: 2rem;
        line-height: 1.25;
    }
    
    .hero-btns {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }
    
    .hero-btns .btn-custom {
        width: 100%;
        justify-content: center;
        margin-left: 0 !important;
    }
    
    .hero-visual-wrapper {
        display: flex;
        flex-direction: column;
        align-items: center;
        max-width: 100%;
        height: auto;
        gap: 16px;
        margin-top: 40px;
    }
    
    .hero-plant-img {
        max-width: 160px;
        height: auto;
        order: 2;
        margin: 20px 0;
    }
    
    .glow-radial, .orbit-ring {
        display: none !important; /* Hide orbits and glow on mobile to prevent clutter and overflow */
    }
    
    .floating-stat-card {
        position: static !important;
        width: 100%;
        max-width: 280px;
        justify-content: flex-start;
        animation: none !important;
        box-shadow: var(--card-shadow);
    }
    
    .floating-stat-card.card-1 { order: 1; }
    .floating-stat-card.card-2 { order: 3; }
    .floating-stat-card.card-3 { order: 4; }
    
    .stat-card {
        padding: 20px 10px;
        border-radius: 12px;
    }
    
    .stat-icon {
        font-size: 1.5rem;
        margin-bottom: 8px;
    }
    
    .stat-number {
        font-size: 1.8rem;
        margin-bottom: 3px;
    }
    
    .stat-label {
        font-size: 0.7rem;
        letter-spacing: 0.5px;
    }

    .premium-card {
        padding: 12px;
        border-radius: 12px;
    }
    
    .program-image-wrapper {
        height: 100px;
        margin-bottom: 10px;
        border-radius: 8px;
    }
    
    .card-icon-box {
        width: 36px;
        height: 36px;
        font-size: 1rem;
        margin-bottom: 10px;
        border-radius: 8px;
    }
    
    .card-body-content {
        padding: 6px 0 0 0 !important;
    }
    
    .premium-card h4, 
    .premium-card .card-title {
        font-size: 0.95rem;
        margin-bottom: 4px;
        line-height: 1.2;
    }
    
    .premium-card p, 
    .premium-card .card-text {
        font-size: 0.72rem;
        margin-bottom: 8px !important;
        line-height: 1.3;
    }
    
    .read-more-link, 
    .premium-card div.mt-auto {
        font-size: 0.75rem !important;
    }
    
    .gallery-item {
        height: 130px;
        margin-bottom: 15px;
        border-radius: 10px;
    }
    
    .hero-features-bar {
        padding: 15px;
        border-radius: 18px;
    }
    
    .feature-bar-card {
        flex-direction: row;
        text-align: left;
    }
    
    .vision-mission-box {
        padding: 20px;
    }
    
    .v-m-tab-btn {
        font-size: 0.9rem;
        padding: 10px 14px;
        width: 100%;
        margin-right: 0;
        margin-bottom: 8px;
        text-align: center;
    }
    
    .v-m-tab-btn:last-child {
        margin-bottom: 0;
    }
    
    .donation-form-wrapper {
        padding: 15px;
    }
    
    .donation-amount-btn {
        flex: 1 1 calc(33.333% - 8px);
        min-width: 80px;
        text-align: center;
        padding: 8px 10px;
        font-size: 0.85rem;
    }
    
    .countdown-box {
        gap: 8px;
        justify-content: center;
    }
    
    .countdown-unit {
        min-width: 60px;
        padding: 8px;
        border-radius: 8px;
    }
    
    .countdown-number {
        font-size: 1.4rem;
    }
    
    .countdown-label {
        font-size: 0.65rem;
    }
    
    .timeline-container {
        padding-left: 20px;
    }
    
    .timeline-item::before {
        left: -31px;
    }
}

/* --- Scroll-triggered Animation Freezing --- */
body.stop-animations .dew-drop,
body.stop-animations .floating-stat-card,
body.stop-animations .orbit-ring,
body.stop-animations .live-pulse-dot::after,
.stop-animations,
.stop-animations * {
    animation-play-state: paused !important;
}



