/* ===== GOOGLE FONTS ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Poppins:wght@600;700;800&display=swap');

/* ===== ROOT VARIABLES ===== */
:root {
    --primary-color: #2e7d32;
    --primary-light: #66bb6a;
    --primary-dark: #1b5e20;
    --primary-gradient: linear-gradient(135deg, #2e7d32 0%, #43a047 50%, #66bb6a 100%);
    --accent-color: #ffca28;
    --accent-dark: #ffa000;
    --accent-gradient: linear-gradient(135deg, #ffca28, #ffa000);
    --text-dark: #1a1a2e;
    --text-medium: #374151;
    --text-light: #6b7280;
    --bg-light: #f0f4f8;
    --bg-white: #ffffff;
    --bg-card: #ffffff;
    --border-color: #e5e7eb;
    --border-light: #f3f4f6;
    --shadow-xs: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.10);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.13);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.16);
    --shadow-green: 0 4px 20px rgba(46, 125, 50, 0.25);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== DARK MODE VARIABLES ===== */
body.dark-mode {
    --primary-color: #2e7d32;
    --primary-light: #66bb6a;
    --primary-dark: #1b5e20;
    --primary-gradient: linear-gradient(135deg, #2e7d32 0%, #43a047 50%, #66bb6a 100%);
    --accent-color: #ffd54f;
    --accent-dark: #ffb300;
    --text-dark: #f1f5f9;
    --text-medium: #cbd5e1;
    --text-light: #94a3b8;
    --bg-light: #0f172a;
    --bg-white: #1e293b;
    --bg-card: #1e293b;
    --border-color: #334155;
    --border-light: #1e293b;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.6);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.7);
    --shadow-green: 0 4px 20px rgba(102, 187, 106, 0.2);
}

/* ===== RESET & BASE STYLES ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html.page-is-entering,
html.page-is-leaving {
    overflow: hidden;
}

html.page-is-entering body,
html.page-is-leaving body {
    overflow: hidden;
}

html.page-is-entering body::before,
html.page-is-leaving body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at top, rgba(255, 255, 255, 0.18), transparent 45%),
        linear-gradient(135deg, #1b5e20 0%, #2e7d32 50%, #66bb6a 100%);
    z-index: 20000;
}

html.page-is-entering body::after,
html.page-is-leaving body::after {
    content: '';
    position: fixed;
    top: 50%;
    left: 50%;
    width: 66px;
    height: 66px;
    margin: -33px 0 0 -33px;
    border-radius: 50%;
    border: 6px solid rgba(255, 255, 255, 0.16);
    border-top-color: #66bb6a;
    border-right-color: #2e7d32;
    box-shadow: 0 0 30px rgba(102, 187, 106, 0.35);
    animation: pageLoaderSpin 0.85s linear infinite;
    z-index: 20001;
}

html.page-transition-heart.page-is-entering body::before,
html.page-transition-heart.page-is-leaving body::before {
    background:
        radial-gradient(circle at top, rgba(255, 255, 255, 0.18), transparent 45%),
        linear-gradient(135deg, #880e4f 0%, #c2185b 50%, #e91e63 100%);
}

html.page-transition-heart.page-is-entering body::after,
html.page-transition-heart.page-is-leaving body::after {
    border: 6px solid rgba(255, 255, 255, 0.16);
    border-top-color: #f06292;
    border-right-color: #e91e63;
    box-shadow: 0 0 30px rgba(233, 30, 99, 0.35);
}

html.page-ready body::before,
html.page-ready body::after {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

body.page-transitioning > :not(script):not(style) {
    pointer-events: none;
}

@keyframes pageLoaderSpin {
    to {
        transform: rotate(360deg);
    }
}

/* ===== REUSABLE CLASSES ===== */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 24px;
}

.section-subtitle {
    color: var(--text-light);
    font-size: 1.05rem;
    margin-top: 10px;
    font-weight: 400;
    letter-spacing: 0.01em;
}

/* ===== NAVBAR ===== */
.navbar {
    background: var(--primary-gradient);
    color: white;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(46, 125, 50, 0.35);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    height: 52px;
    transition: var(--transition);
}

.logo:hover {
    opacity: 0.9;
    transform: scale(1.02);
}

.logo svg {
    height: 100%;
    width: auto;
}

.logo i {
    font-size: 2rem;
}

.nav-menu {
    display: flex;
    gap: 6px;
    align-items: center;
}

.nav-link {
    color: rgba(255, 255, 255, 0.92);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.92rem;
    letter-spacing: 0.02em;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    position: relative;
}

.nav-link:hover {
    color: white;
    background: rgba(255, 255, 255, 0.12);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 12px;
    right: 12px;
    height: 2px;
    background: var(--accent-color);
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover::after {
    transform: scaleX(1);
}

.login-btn {
    background: var(--accent-gradient) !important;
    color: #1b5e20 !important;
    padding: 9px 20px !important;
    border-radius: var(--radius-full) !important;
    font-weight: 700 !important;
    font-size: 0.88rem !important;
    letter-spacing: 0.03em;
    box-shadow: 0 2px 10px rgba(255, 202, 40, 0.4);
    transition: var(--transition) !important;
}

.login-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(255, 202, 40, 0.5) !important;
    background: linear-gradient(135deg, #ffd740, #ffab00) !important;
}

.login-btn::after {
    display: none !important;
}

/* ===== DARK MODE TOGGLE BUTTON ===== */
.dark-mode-toggle {
    background: rgba(255, 255, 255, 0.15);
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    width: 42px;
    height: 42px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: white;
    transition: var(--transition);
    padding: 0;
    outline: none;
    flex-shrink: 0;
}

.dark-mode-toggle:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 20px rgba(255, 202, 40, 0.4);
}

.dark-mode-toggle:active {
    transform: scale(0.95);
}

.dark-mode-toggle i {
    transition: var(--transition);
}

/* ===== HAMBURGER BUTTON ===== */
.hamburger {
    display: none;
    /* Hidden on desktop */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.12);
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    border-radius: var(--radius-sm);
    cursor: pointer;
    padding: 8px;
    transition: var(--transition);
    flex-shrink: 0;
    outline: none;
}

.hamburger:hover {
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.45);
}

.hamburger span {
    display: block;
    width: 22px;
    height: 2.5px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

/* Animated X when open */
.hamburger.open span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger.open span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
}


/* ===== HERO SECTION ===== */
.hero {
    background: var(--primary-gradient);
    color: white;
    padding: 110px 24px 90px;
    text-align: center;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.hero::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 7s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 9s ease-in-out infinite reverse;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(28px) rotate(3deg);
    }
}

.hero-bg,
.hero-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero-bg {
    z-index: 0;
}

.hero-bg-ring {
    inset: auto;
    width: 560px;
    height: 560px;
    top: -190px;
    right: -120px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow:
        0 0 0 38px rgba(255, 255, 255, 0.05),
        0 0 0 92px rgba(255, 255, 255, 0.03);
    animation: heroRingPulse 12s ease-in-out infinite;
}

.hero-bg-glow {
    inset: auto;
    border-radius: 50%;
    filter: blur(10px);
    opacity: 0.7;
}

.hero-bg-glow-left {
    width: 280px;
    height: 280px;
    left: -80px;
    bottom: 30px;
    background: radial-gradient(circle, rgba(255, 202, 40, 0.2), rgba(255, 202, 40, 0));
    animation: heroGlowFloat 9s ease-in-out infinite;
}

.hero-bg-glow-right {
    width: 240px;
    height: 240px;
    right: 10%;
    top: 20%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0));
    animation: heroGlowFloat 11s ease-in-out infinite reverse;
}

.hero-bg-grid {
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.09) 1px, transparent 1px);
    background-size: 72px 72px;
    opacity: 0.18;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.6), transparent 85%);
    animation: heroGridMove 18s linear infinite;
}

.hero-particles {
    z-index: 0;
}

.hero-particles span {
    position: absolute;
    display: block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.22);
    box-shadow: 0 0 18px rgba(255, 255, 255, 0.18);
}

.hero-particles span:nth-child(1) {
    top: 18%;
    left: 14%;
    animation: particleFloat 8s ease-in-out infinite;
}

.hero-particles span:nth-child(2) {
    top: 28%;
    left: 28%;
    width: 7px;
    height: 7px;
    animation: particleFloat 10s ease-in-out infinite 1s;
}

.hero-particles span:nth-child(3) {
    top: 16%;
    right: 22%;
    width: 8px;
    height: 8px;
    animation: particleFloat 9s ease-in-out infinite 0.4s;
}

.hero-particles span:nth-child(4) {
    right: 12%;
    bottom: 24%;
    width: 12px;
    height: 12px;
    animation: particleFloat 11s ease-in-out infinite 1.4s;
}

.hero-particles span:nth-child(5) {
    left: 20%;
    bottom: 18%;
    width: 6px;
    height: 6px;
    animation: particleFloat 7s ease-in-out infinite 0.7s;
}

.hero-particles span:nth-child(6) {
    left: 50%;
    top: 12%;
    width: 9px;
    height: 9px;
    animation: particleFloat 12s ease-in-out infinite 1.8s;
}

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

@keyframes heroRingPulse {
    0%,
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 0.65;
    }

    50% {
        transform: scale(1.06) rotate(8deg);
        opacity: 0.95;
    }
}

@keyframes heroGlowFloat {
    0%,
    100% {
        transform: translate3d(0, 0, 0) scale(1);
    }

    50% {
        transform: translate3d(0, -18px, 0) scale(1.08);
    }
}

@keyframes heroGridMove {
    from {
        transform: translate3d(0, 0, 0);
    }

    to {
        transform: translate3d(-36px, 36px, 0);
    }
}

@keyframes particleFloat {
    0%,
    100% {
        transform: translate3d(0, 0, 0);
        opacity: 0.35;
    }

    50% {
        transform: translate3d(0, -16px, 0);
        opacity: 1;
    }
}

.hero h1 {
    font-family: 'Poppins', 'Inter', sans-serif;
    font-size: 3.2rem;
    font-weight: 800;
    margin-bottom: 22px;
    line-height: 1.18;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

.hero p {
    font-size: 1.15rem;
    margin-bottom: 44px;
    opacity: 0.93;
    font-weight: 400;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 70px;
}

.hero-buttons button {
    font-size: 1rem;
    padding: 14px 32px;
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
    letter-spacing: 0.02em;
}

.primary-btn {
    background: var(--accent-gradient);
    color: #1b5e20;
}

.primary-btn:hover {
    background: linear-gradient(135deg, #ffd740, #ffab00);
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(255, 202, 40, 0.5);
}

.secondary-btn {
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary-dark);
    border: 2px solid rgba(255, 255, 255, 0.6);
}

.secondary-btn:hover {
    background: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.15);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 60px;
    flex-wrap: wrap;
}

.stat-item {
    background: rgba(255, 255, 255, 0.12);
    padding: 28px 36px;
    border-radius: var(--radius-lg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    min-width: 170px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
}

.stat-item:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.stat-item h4 {
    font-family: 'Poppins', sans-serif;
    font-size: 2.4rem;
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.stat-item p {
    opacity: 0.88;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

/* ===== HOW IT WORKS ===== */
.how-it-works {
    padding: 90px 24px;
    background: var(--bg-white);
}

.how-it-works h2 {
    text-align: center;
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-dark);
    letter-spacing: -0.01em;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 28px;
    margin-top: 56px;
}

.step {
    background: var(--bg-light);
    padding: 40px 28px;
    border-radius: var(--radius-lg);
    text-align: center;
    transition: var(--transition-slow);
    border: 1.5px solid var(--border-light);
    position: relative;
    overflow: hidden;
}

.step::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.step:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-lg);
    transform: translateY(-10px);
    background: var(--bg-white);
}

.step:hover::before {
    transform: scaleX(1);
}

.step-icon {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(46, 125, 50, 0.08), rgba(102, 187, 106, 0.15));
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 4px 16px rgba(46, 125, 50, 0.15);
    transition: var(--transition);
}

.step:hover .step-icon {
    background: var(--primary-gradient);
    color: white;
    box-shadow: var(--shadow-green);
    transform: scale(1.08);
}

.step h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-dark);
    letter-spacing: -0.01em;
}

.step p {
    color: var(--text-light);
    line-height: 1.75;
    font-size: 0.95rem;
}

/* ===== FOOD LISTINGS ===== */
.food-listings {
    padding: 90px 24px;
    background: var(--bg-light);
}

.food-listings h2 {
    text-align: center;
    font-family: 'Poppins', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-dark);
    letter-spacing: -0.02em;
}

.food-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 28px;
    margin-top: 52px;
}

.food-grid.food-grid--carousel {
    display: block;
}

.food-carousel-shell {
    display: flex;
    align-items: center;
    gap: 14px;
}

.food-carousel-viewport {
    flex: 1;
    overflow-x: auto;
    overflow-y: visible;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 8px 2px 18px;
}

.food-carousel-viewport::-webkit-scrollbar {
    display: none;
}

.food-carousel-track {
    display: flex;
    gap: 24px;
    align-items: stretch;
}

.food-carousel-slide {
    flex: 0 0 min(340px, 84vw);
    scroll-snap-align: start;
}

.food-carousel-slide .food-card {
    height: 100%;
}

.food-carousel-arrow {
    width: 52px;
    height: 52px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary-dark);
    box-shadow: var(--shadow-md);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
}

.food-carousel-arrow:hover:not(:disabled) {
    background: var(--primary-gradient);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-green);
}

.food-carousel-arrow:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    transform: none;
    box-shadow: var(--shadow-sm);
}

.food-carousel-arrow--left {
    margin-left: 2px;
}

.food-carousel-arrow--right {
    margin-right: 2px;
}

.food-card-all {
    width: 100%;
    min-height: 100%;
    appearance: none;
    -webkit-appearance: none;
    border: 1.5px dashed rgba(46, 125, 50, 0.28);
    background:
        radial-gradient(circle at top, rgba(255, 255, 255, 0.35), transparent 40%),
        linear-gradient(135deg, rgba(46, 125, 50, 0.08), rgba(102, 187, 106, 0.18));
    color: var(--text-dark);
    border-radius: var(--radius-lg);
    padding: 26px 24px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 12px;
    text-align: left;
    cursor: pointer;
    font: inherit;
    transition: var(--transition-slow);
}

.food-card-all:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.food-card-all-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--primary-dark);
}

.food-card-all strong {
    font-family: 'Poppins', sans-serif;
    font-size: 1.35rem;
    line-height: 1.2;
    color: var(--text-dark);
}

.food-card-all p {
    margin: 0;
    color: var(--text-medium);
    line-height: 1.6;
}

.food-card-all-cta {
    margin-top: 8px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    border-radius: 9999px;
    background: var(--primary-gradient);
    color: white;
    font-weight: 700;
    box-shadow: var(--shadow-green);
}

.food-card-all-cta i {
    font-size: 0.9rem;
}

.food-grid.food-grid--expanded {
    display: block;
}

.food-listings-toolbar {
    margin-top: 0;
    margin-bottom: 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.food-view-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: none;
    border-radius: 9999px;
    padding: 12px 18px;
    background: var(--primary-gradient);
    color: white;
    font-weight: 700;
    cursor: pointer;
    box-shadow: var(--shadow-green);
    transition: var(--transition);
}

.food-view-toggle:hover {
    transform: translateY(-2px);
}

.food-listings-count {
    color: var(--text-light);
    font-size: 0.95rem;
    font-weight: 600;
}

.food-grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 28px;
}

.food-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-slow);
    position: relative;
    border: 1px solid var(--border-color);
}

.food-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-8px);
    border-color: transparent;
}

.food-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.food-card:hover img {
    transform: scale(1.04);
}

.food-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    background: var(--accent-gradient);
    color: #1b5e20;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(255, 202, 40, 0.4);
}

.food-info {
    padding: 24px;
}

.food-info h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 14px;
    color: var(--text-dark);
    letter-spacing: -0.01em;
    line-height: 1.4;
}

.food-meta {
    margin: 14px 0;
    font-size: 0.9rem;
    color: var(--text-light);
}

.food-meta p {
    margin: 7px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.food-meta i {
    color: var(--primary-color);
    width: 18px;
    font-size: 0.85rem;
}

.food-tags {
    display: flex;
    gap: 8px;
    margin: 14px 0;
    flex-wrap: wrap;
}

.tag {
    background: linear-gradient(135deg, rgba(46, 125, 50, 0.08), rgba(102, 187, 106, 0.12));
    color: var(--primary-dark);
    padding: 5px 12px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid rgba(46, 125, 50, 0.15);
}

.request-btn {
    width: 100%;
    padding: 13px;
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: 700;
    font-size: 0.95rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 16px;
    letter-spacing: 0.02em;
}

.request-btn:hover {
    background: linear-gradient(135deg, #1b5e20, #2e7d32);
    box-shadow: var(--shadow-green);
    transform: translateY(-1px);
}

/* ===== MAP SECTION ===== */
.map-section {
    padding: 90px 24px;
    background: var(--primary-gradient);
    color: white;
    position: relative;
    overflow: hidden;
}

.map-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%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.map-section h2 {
    text-align: center;
    font-family: 'Poppins', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.map-section .section-subtitle {
    color: rgba(255, 255, 255, 0.82);
    text-align: center;
}

#map {
    width: 100%;
    height: 500px;
    border-radius: var(--radius-lg);
    margin: 40px 0;
    box-shadow: var(--shadow-xl);
}

.map-container {
    display: flex;
    flex-direction: column;
    gap: 28px;
    margin: 40px 0;
    position: relative;
    z-index: 1;
}

#nearbyMap {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
}

.map-auth-note {
    margin: 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.84);
    font-size: 0.95rem;
    font-weight: 500;
}

.location-btn:disabled {
    cursor: not-allowed;
    opacity: 0.7;
    transform: none;
    box-shadow: none;
}

.leaflet-container {
    font-family: 'Inter', sans-serif;
}

.map-user-popup,
.map-popup {
    min-width: 210px;
}

.map-popup h3,
.map-user-popup h3 {
    margin: 0 0 8px;
    font-size: 1rem;
}

.map-popup p,
.map-user-popup p {
    margin: 0 0 6px;
    color: #425466;
    font-size: 0.9rem;
}

.map-popup .popup-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.map-popup .popup-badge.ngo {
    background: rgba(211, 47, 47, 0.12);
    color: #b71c1c;
}

.map-popup .popup-badge.donor {
    background: rgba(46, 125, 50, 0.12);
    color: #1b5e20;
}

.map-popup .popup-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    background: #1b5e20;
    color: #fff;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 700;
}

.map-popup .popup-action.ngo {
    background: #c62828;
}

.location-stats {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

.live-map-panel {
    width: 100%;
    max-width: 720px;
    padding: 20px 22px;
    border-radius: 22px;
    background:
        radial-gradient(circle at top left, rgba(255, 202, 40, 0.18), transparent 30%),
        radial-gradient(circle at bottom right, rgba(255, 255, 255, 0.12), transparent 35%),
        rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 24px 60px rgba(3, 20, 37, 0.2);
}

.live-map-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}

.live-map-kicker {
    display: inline-block;
    margin-bottom: 5px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.72);
}

.live-map-head h3 {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    font-size: 1.15rem;
    line-height: 1.2;
    color: #fff;
}

.location-fetch-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    border-radius: 999px;
    background: rgba(7, 24, 39, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}

.location-fetch-indicator.fetching {
    background: rgba(255, 202, 40, 0.18);
}

.location-fetch-indicator.ready {
    background: rgba(46, 125, 50, 0.22);
}

.location-fetch-indicator.error {
    background: rgba(198, 40, 40, 0.22);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ffca28;
    box-shadow: 0 0 0 rgba(255, 202, 40, 0.75);
    animation: mapPulse 1.8s infinite;
}

.live-stats-grid {
    max-width: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 18px;
    width: 100%;
    max-width: 600px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.12);
    padding: 22px 18px;
    border-radius: var(--radius-md);
    text-align: center;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
}

.live-stats-grid .stat-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    text-align: left;
    min-height: 100px;
}

.stat-card-ngo {
    background: linear-gradient(135deg, rgba(198, 40, 40, 0.28), rgba(255, 255, 255, 0.1));
}

.stat-card-donor {
    background: linear-gradient(135deg, rgba(46, 125, 50, 0.28), rgba(255, 255, 255, 0.1));
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.stat-card h4 {
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent-color);
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.stat-card p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.88rem;
    font-weight: 500;
    letter-spacing: 0.03em;
}

.stat-icon {
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #fff;
    font-size: 1rem;
}

.stat-copy h4,
.stat-copy p,
.stat-copy small {
    margin: 0;
}

.stat-copy h4 {
    margin-top: 2px;
    color: #fff3c4;
    font-size: 1.6rem;
}

.stat-copy p {
    font-size: 0.78rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.78);
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

.stat-copy small {
    display: block;
    margin-top: 4px;
    font-size: 0.74rem;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.35;
}

@keyframes mapPulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 202, 40, 0.65);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 12px rgba(255, 202, 40, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 202, 40, 0);
    }
}

@media (max-width: 780px) {
    .live-map-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .live-stats-grid {
        grid-template-columns: 1fr;
    }
}

.location-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 36px;
    background: var(--accent-gradient);
    color: #1b5e20;
    border: none;
    border-radius: var(--radius-full);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 16px rgba(255, 202, 40, 0.4);
    letter-spacing: 0.02em;
}

.location-btn:hover {
    background: linear-gradient(135deg, #ffd740, #ffab00);
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(255, 202, 40, 0.5);
}

/* ===== TESTIMONIALS ===== */
.testimonials {
    padding: 90px 24px;
    background: var(--bg-white);
}

.testimonials h2 {
    text-align: center;
    font-family: 'Poppins', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-dark);
    letter-spacing: -0.02em;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 28px;
    margin-top: 52px;
}

.testimonial-card {
    background: var(--bg-light);
    padding: 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-slow);
    border-left: 4px solid var(--primary-color);
    border-top: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 16px;
    right: 24px;
    font-size: 5rem;
    color: var(--primary-light);
    opacity: 0.15;
    font-family: Georgia, serif;
    line-height: 1;
}

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

.stars {
    color: var(--accent-dark);
    margin-bottom: 16px;
    font-size: 1rem;
    display: flex;
    gap: 3px;
}

.testimonial-text {
    font-style: italic;
    color: var(--text-medium);
    margin-bottom: 18px;
    line-height: 1.8;
    font-size: 0.97rem;
}

.testimonial-author {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 0.9rem;
    letter-spacing: 0.02em;
}

/* ===== ABOUT SECTION ===== */
.about {
    padding: 90px 24px;
    background: linear-gradient(160deg, var(--bg-white) 0%, var(--bg-light) 100%);
}

.about h2 {
    text-align: center;
    font-family: 'Poppins', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 52px;
    color: var(--text-dark);
    letter-spacing: -0.02em;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
}

.about-text {
    font-size: 1.05rem;
    line-height: 1.82;
    color: var(--text-medium);
}

.about-text p {
    margin-bottom: 20px;
}

.about-values {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 22px;
    margin-top: 36px;
}

.value {
    background: var(--bg-card);
    padding: 28px 22px;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.value:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
    border-color: var(--primary-light);
}

.value i {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 12px;
    display: block;
}

.value h4 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.value p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ===== FOOTER ===== */
.footer {
    background: linear-gradient(160deg, #0d2b0f 0%, #1b5e20 100%);
    color: white;
    padding: 70px 24px 28px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 44px;
    margin-bottom: 48px;
}

.footer-section h4 {
    margin-bottom: 18px;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--accent-color);
}

.footer-section p {
    color: rgba(255, 255, 255, 0.72);
    margin-bottom: 16px;
    font-size: 0.92rem;
    line-height: 1.7;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.72);
    text-decoration: none;
    font-size: 0.92rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.footer-section a:hover {
    color: var(--accent-color);
    transform: translateX(3px);
}

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

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.social-links a:hover {
    background: var(--accent-gradient);
    color: #1b5e20;
    border-color: transparent;
    transform: translateY(-3px) !important;
    box-shadow: 0 6px 16px rgba(255, 202, 40, 0.3);
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.newsletter-form input {
    padding: 12px 16px;
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    background: rgba(255, 255, 255, 0.08);
    color: white;
    transition: var(--transition);
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.45);
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 0.12);
}

.newsletter-form button {
    padding: 12px 16px;
    background: var(--accent-gradient);
    color: #1b5e20;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    letter-spacing: 0.02em;
}

.newsletter-form button:hover {
    background: linear-gradient(135deg, #ffd740, #ffab00);
    transform: translateY(-1px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 24px;
    text-align: center;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.88rem;
    letter-spacing: 0.02em;
}

/* ===== FORMS ===== */
.form-container,
.auth-box {
    width: 100%;
    max-width: 460px;
    background: var(--bg-card);
    padding: 44px 40px;
    margin: 60px auto;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-color);
}

.form-container h2,
.auth-box h2 {
    text-align: center;
    margin-bottom: 32px;
    font-family: 'Poppins', sans-serif;
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: -0.01em;
}

form input,
form select,
form textarea {
    width: 100%;
    padding: 13px 16px;
    margin-bottom: 16px;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 0.97rem;
    font-family: inherit;
    transition: var(--transition);
    background: var(--bg-white);
    color: var(--text-dark);
}

form select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%232e7d32' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 12px 8px;
    padding-right: 44px;
}

form input:focus,
form select:focus,
form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.12);
    background: var(--bg-white);
}

form button {
    width: 100%;
    padding: 14px;
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: 700;
    font-size: 1rem;
    transition: var(--transition);
    letter-spacing: 0.02em;
}

form button:hover {
    background: linear-gradient(135deg, #1b5e20, #2e7d32);
    box-shadow: var(--shadow-green);
    transform: translateY(-1px);
}

/* ===== Input-side toggle buttons (password visibility, location) ===== */
.password-input-wrapper {
    position: relative;
}

.password-input-wrapper input {
    padding-right: 64px;
}

.password-toggle-btn {
    position: absolute;
    right: 5px;
    top: 38%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: var(--primary-gradient);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 3;
    transition: var(--transition);
}

.password-toggle-btn i {
    font-size: 13px;
}

.password-toggle-btn:hover {
    background: linear-gradient(135deg, #1b5e20, #2e7d32);
    transform: translateY(-50%) scale(1.08);
}

.password-toggle-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.15);
}

.location-group {
    position: relative;
}

.location-group .location-input {
    padding-right: 64px;
}

.location-group .location-btn {
    position: absolute;
    right: 5px;
    top: 9%;
    width: 36px;
    height: 36px;
    border: none;
    background: var(--primary-gradient);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    transition: var(--transition);
}

.location-group .location-btn i {
    font-size: 14px;
}

.location-group .location-btn:hover {
    background: linear-gradient(135deg, #1b5e20, #2e7d32);
    transform: scale(1.05);
}

.location-group .location-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.15);
}

form p {
    text-align: center;
    margin-top: 16px;
    color: var(--text-light);
    font-size: 0.92rem;
}

form a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

form a:hover {
    text-decoration: underline;
}

/* ===== NGO CARDS ===== */
.ngo-list {
    padding: 70px 24px;
    background: var(--bg-light);
}

.ngo-filters {
    display: flex;
    gap: 14px;
    margin-bottom: 44px;
    flex-wrap: wrap;
    justify-content: center;
}

.ngo-filters input,
.ngo-filters select {
    padding: 12px 20px;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 0.97rem;
    background: var(--bg-card);
    color: var(--text-dark);
    transition: var(--transition);
    box-shadow: var(--shadow-xs);
}

.ngo-filters input:focus,
.ngo-filters select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.12);
}

.ngo-filters input {
    flex: 1;
    min-width: 250px;
}

.ngo-filters select {
    min-width: 180px;
}

.ngo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.ngo-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-slow);
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
}

.ngo-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-8px);
    border-color: transparent;
}

.ngo-card-header {
    padding: 22px 20px;
    background: var(--primary-gradient);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}

.ngo-card-header h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
    flex: 1;
    letter-spacing: -0.01em;
}

.ngo-category {
    background: rgba(255, 255, 255, 0.22);
    padding: 5px 12px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.ngo-card-details {
    padding: 20px;
    flex: 1;
    border-bottom: 1px solid var(--border-light);
}

.ngo-card-details p {
    margin-bottom: 10px;
    color: var(--text-light);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ngo-card-details p i {
    color: var(--primary-color);
    min-width: 16px;
    font-size: 0.85rem;
}

.ngo-description {
    color: var(--text-medium) !important;
    margin-top: 14px !important;
    line-height: 1.6;
    font-size: 0.9rem !important;
}

.ngo-card-rating {
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--border-light);
}

.stars {
    display: flex;
    gap: 3px;
    color: #f59e0b;
    font-size: 0.88rem;
}

.rating-text {
    color: var(--text-light);
    font-size: 0.88rem;
    font-weight: 500;
}

.ngo-card-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border-light);
    text-align: center;
}

.stat {
    padding: 8px;
}

.stat-value {
    display: block;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 4px;
    font-family: 'Poppins', sans-serif;
    letter-spacing: -0.02em;
}

.stat-label {
    display: block;
    font-size: 0.78rem;
    color: var(--text-light);
    font-weight: 500;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.ngo-contact-btn {
    margin: 14px;
    padding: 12px 20px;
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    letter-spacing: 0.02em;
}

.ngo-contact-btn:hover {
    background: linear-gradient(135deg, #1b5e20, #2e7d32);
    box-shadow: var(--shadow-green);
    transform: scale(1.02);
}

/* Dark mode adjustments */
body.dark-mode .ngo-filters input,
body.dark-mode .ngo-filters select {
    background: var(--bg-card);
    color: var(--text-dark);
    border-color: var(--border-color);
}

body.dark-mode form input,
body.dark-mode form select,
body.dark-mode form textarea {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-dark);
    border-color: var(--border-color);
}

body.dark-mode form input:focus,
body.dark-mode form select:focus,
body.dark-mode form textarea:focus {
    background: rgba(255, 255, 255, 0.08);
}

body.dark-mode form select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2366bb6a' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
}

.ngo-card button:hover {
    background: linear-gradient(135deg, #1b5e20, #2e7d32);
}

/* ===== FORM GROUP ===== */
.form-group {
    position: relative;
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 7px;
    color: var(--text-medium);
    letter-spacing: 0.01em;
}

.info-text {
    font-size: 0.82rem;
    color: var(--text-light);
    margin-top: 5px;
}

/* ===== CHAT BOT STYLES ===== */
#chat-toggle {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--accent-gradient);
    color: #1b5e20;
    border: none;
    padding: 13px 22px;
    border-radius: var(--radius-full);
    cursor: pointer;
    font-weight: 700;
    font-size: 0.92rem;
    z-index: 9999;
    box-shadow: 0 8px 28px rgba(255, 202, 40, 0.4);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.02em;
}

#chat-toggle:hover {
    background: linear-gradient(135deg, #ffd740, #ffab00);
    transform: translateY(-3px);
    box-shadow: 0 12px 36px rgba(255, 202, 40, 0.5);
}

#chat-overlay {
    position: fixed;
    bottom: 0;
    right: 24px;
    width: 380px;
    height: 520px;
    display: none;
    z-index: 9999;
    filter: drop-shadow(0 20px 50px rgba(0, 0, 0, 0.3));
}

#chat-overlay iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    background: white;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    html {
        font-size: 15px;
    }

    .hero h1 {
        font-size: 2.1rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 12px;
    }

    .hero-buttons button {
        width: 100%;
        justify-content: center;
    }

    .hero-stats {
        flex-direction: column;
        gap: 16px;
    }

    .hero-bg-ring {
        width: 360px;
        height: 360px;
        top: -120px;
        right: -120px;
    }

    .hero-bg-grid {
        background-size: 56px 56px;
    }

    .nav-menu {
        gap: 6px;
    }

    .nav-link {
        font-size: 0.85rem;
        padding: 7px 8px;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .steps,
    .food-grid,
    .testimonial-grid,
    .about-values {
        grid-template-columns: 1fr;
    }

    .food-carousel-shell {
        gap: 10px;
    }

    .food-carousel-track {
        gap: 18px;
    }

    .food-carousel-slide {
        flex-basis: min(290px, 82vw);
    }

    .food-carousel-arrow {
        width: 42px;
        height: 42px;
    }

    .food-listings-toolbar {
        margin-top: 34px;
        margin-bottom: 18px;
    }

    .food-grid-cards {
        grid-template-columns: 1fr;
    }

    #map {
        height: 300px;
    }

    .form-container,
    .auth-box {
        padding: 28px 22px;
        margin: 40px 16px;
    }

    .navbar-container {
        padding: 0 16px;
        gap: 12px;
    }

    .hero {
        padding: 80px 16px 70px;
    }

    /* ---- Hamburger: show on mobile ---- */
    .hamburger {
        display: flex;
    }

    /* ---- Nav menu: hidden by default on mobile, shown as dropdown ---- */
    .nav-menu {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--primary-gradient);
        flex-direction: column;
        align-items: stretch;
        padding: 12px 16px 20px;
        gap: 4px;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
        z-index: 999;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        animation: slideDown 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .nav-menu.open {
        display: flex;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }

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

    .nav-link {
        font-size: 0.97rem;
        padding: 12px 16px;
        border-radius: var(--radius-sm);
        width: 100%;
        text-align: left;
    }

    .nav-link::after {
        display: none;
    }

    .login-btn {
        margin-top: 8px;
        text-align: center !important;
        justify-content: center;
        width: 100%;
    }

    .dark-mode-toggle {
        margin-top: 8px;
        width: 100%;
        border-radius: var(--radius-sm);
        height: 44px;
        justify-content: center;
    }

    /* Keep navbar-container as row so logo + hamburger are side by side */
    .navbar-container {
        position: relative;
    }

    .logo {
        max-width: calc(100vw - 96px);
        height: 44px;
    }

    .logo svg {
        max-width: 100%;
        height: 100%;
    }

    .section-container {
        padding: 10px 16px;
    }

    .form-container,
    .auth-box {
        width: calc(100% - 24px);
        max-width: 100%;
        border-radius: 18px;
    }

    form input,
    form select,
    form textarea {
        font-size: 16px;
    }

    .password-input-wrapper input,
    .location-group .location-input {
        padding-right: 58px;
    }

    .location-group .location-btn {
        top: 7px;
        right: 7px;
    }

    .footer {
        padding-left: 16px;
        padding-right: 16px;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }

    body {
        overflow-x: hidden;
    }

    .navbar {
        position: sticky;
    }

    .navbar-container {
        height: 64px;
        padding: 0 12px;
    }

    .logo {
        height: 38px;
        max-width: calc(100vw - 84px);
    }

    .hamburger {
        width: 40px;
        height: 40px;
        padding: 6px;
    }

    .nav-menu {
        top: 64px;
        padding: 10px 12px 16px;
    }

    .hero {
        padding: 64px 16px 56px;
    }

    .hero h1 {
        font-size: 1.7rem;
    }

    .hero-bg-glow-left {
        width: 180px;
        height: 180px;
        left: -50px;
    }

    .hero-bg-glow-right {
        width: 150px;
        height: 150px;
        right: -20px;
    }

    .hero-particles span:nth-child(2),
    .hero-particles span:nth-child(5) {
        display: none;
    }

    section {
        padding: 56px 16px !important;
    }

    section h2 {
        font-size: 1.7rem;
    }

    .stat-item {
        padding: 20px;
        min-width: 100%;
    }

    .form-container,
    .auth-box {
        margin: 28px 12px;
        padding: 24px 16px;
        width: calc(100% - 24px);
        border-radius: 16px;
    }

    form input,
    form select,
    form textarea {
        padding: 12px 14px;
        font-size: 16px;
    }

    form select {
        background-position: right 12px center;
        padding-right: 40px;
    }

    .password-toggle-btn,
    .location-group .location-btn {
        width: 34px;
        height: 34px;
    }

    #chat-overlay {
        width: calc(100vw - 32px);
        right: 16px;
    }

    #chat-toggle {
        right: 16px;
        bottom: 16px;
        padding: 12px 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-bg-ring,
    .hero-bg-glow-left,
    .hero-bg-glow-right,
    .hero-bg-grid,
    .hero-particles span {
        animation: none !important;
    }
}
html {
  scroll-behavior: smooth;
}

/* Badge Section */
.badge-section h4 {
    color:#ffd54f;
    font-weight: 700;
    margin-bottom: 10px;
}

.badge-section p {
    color: #d6ffd6;
    font-size: 14px;
    margin-bottom: 15px;
}

/* Badge Grid */
.badge-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 18px;
}

/* Individual Badge */
.badge-item {
    background: rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 10px 14px;
    font-size: 14px;
    backdrop-filter: blur(6px);
    transition: 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.badge-item span {
    font-weight: 600;
}

.badge-item small {
    opacity: 0.8;
}

/* Hover Glow */
.badge-item:hover {
    transform: translateX(5px);
    background: rgba(255,255,255,0.15);
}

/* Button */
.earn-btn {
    width: 100%;
    background: linear-gradient(135deg, #fbc02d, #ffa000);
    color: #1b5e20;
    border: none;
    padding: 12px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.earn-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 193, 7, 0.4);
}
