/* Design System - Premium/Minimalist */
:root {
    /* Palette */
    --color-primary: #2E7D32;
    /* Deep Forest Green */
    --color-primary-hover: #1B5E20;
    --color-secondary: #E8F5E9;
    /* Soft Green */
    --color-accent: #A5D6A7;

    /* Neutrals */
    --color-text-main: #000000;
    --color-text-body: #111111;
    --color-text-light: #444444;
    --color-bg-page: #FFFFFF;
    --color-bg-section: #F5F5F7;
    --color-bg-dark: #1D1D1F;
    /* Dark section background */
    --color-border: #D2D2D7;
    --color-text-head: #000000;
    /* Added missing var */

    /* Typography */
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

    /* Spacing & Layout */
    --container-width: 1100px;
    /* Slightly tighter for readability */
    /* Slightly tighter for readability */
    --section-padding: 3rem 1.5rem;
    --header-height: 70px;
    --radius-lg: 24px;
    --radius-md: 16px;

    /* Effects */
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.06);
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Dark Theme Overrides - premium/Material Inspired */
body.dark-theme {
    /* Palette */
    --color-primary: #4ade80;
    /* Vivid Green for contrast */
    --color-primary-hover: #22c55e;
    --color-secondary: #242526;
    /* Dark Surface */
    --color-accent: #66bb6a;

    /* Text */
    --color-text-main: #e4e6eb;
    /* High Emphasis */
    --color-text-body: #b0b3b8;
    /* Medium Emphasis */
    --color-text-light: #9ca3af;
    /* Low Emphasis */

    /* Backgrounds */
    --color-bg-page: #121212;
    /* Deepest Dark */
    --color-bg-section: #18191a;
    /* Section Dark */
    --color-bg-surface: #242526;
    /* Card Surface */
    --color-bg-dark: #000000;

    /* Borders & Shadows */
    --color-border: #3e4042;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 8px 16px rgba(0, 0, 0, 0.5);
}

/* --- Component Overrides for Dark Mode --- */

/* Header */
body.dark-theme header {
    background: rgba(18, 18, 18, 0.95);
    border-bottom: 1px solid var(--color-border);
}

body.dark-theme .logo {
    color: var(--color-text-main) !important;
}

body.dark-theme .nav-links a {
    color: var(--color-text-main) !important;
}

body.dark-theme .nav-links a:hover {
    color: var(--color-primary);
}

/* Sections */
body.dark-theme .section-light {
    background-color: var(--color-bg-section);
    border-color: var(--color-border);
}

/* Cards (Feature, Product, Solution, Gallery) */
body.dark-theme .card,
body.dark-theme .solution-card,
body.dark-theme .gallery-item,
body.dark-theme .stat-card,
body.dark-theme .accordion-item,
body.dark-theme .faq-item,
body.dark-theme .chatbot-greeting,
body.dark-theme .chatbot-menu {
    background-color: rgba(30, 30, 30, 0.85) !important;
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--color-text-main);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
}

body.dark-theme .card:hover,
body.dark-theme .solution-card:hover {
    background-color: #303031;
    border-color: var(--color-primary);
}

/* Inputs & Forms */
body.dark-theme select,
body.dark-theme input {
    background-color: #3a3b3c;
    color: var(--color-text-main);
    border-color: var(--color-border);
}

body.dark-theme input::placeholder {
    color: var(--color-text-light);
}

/* Hero Section Adjustments */
body.dark-theme .hero {
    /* Remove the white radial gradient */
    background: radial-gradient(circle at center, rgba(46, 125, 50, 0.15) 0%, rgba(18, 18, 18, 0) 70%);
}

body.dark-theme .hero h1 {
    -webkit-text-fill-color: var(--color-text-main);
}

/* Icons within cards */
body.dark-theme .icon-box svg {
    color: var(--color-primary);
}

/* Dark Mode Overlay Fix - CRITICAL */
body.dark-theme::after {
    background: rgba(0, 0, 0, 0.75) !important;
    /* Darken the background image */
}

/* Card Background Fixes */
body.dark-theme .card,
body.dark-theme .feature-card,
body.dark-theme .product-card,
body.dark-theme .solution-card,
body.dark-theme .gallery-item,
body.dark-theme .stat-card,
body.dark-theme .accordion-item,
body.dark-theme .faq-item,
body.dark-theme .chatbot-menu {
    background-color: var(--color-bg-surface) !important;
    border-color: var(--color-border);
    color: var(--color-text-main);
}

/* Chatbot Specifics */
body.dark-theme .chatbot-header {
    border-bottom-color: var(--color-border);
}

body.dark-theme .chat-option {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--color-text-main);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3) !important;
}

body.dark-theme .chat-option:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--color-primary);
}

body.dark-theme .accordion-header:hover {
    background-color: #3a3b3c;
}

body.dark-theme .chatbot-toggle {
    background-color: var(--color-bg-surface);
    border-color: var(--color-primary);
}

/* Accordions */
body.dark-theme .accordion-header {
    background-color: var(--color-bg-surface);
    color: var(--color-text-main);
}

/* --- Premium Details (Scrollbars, Selection, Cart) --- */

/* Universal Dark Mode Text Reset */
body.dark-theme h1,
body.dark-theme h2,
body.dark-theme h3,
body.dark-theme h4,
body.dark-theme p,
body.dark-theme li,
body.dark-theme span,
body.dark-theme div {
    color: var(--color-text-main);
}

body.dark-theme p,
body.dark-theme li {
    color: var(--color-text-body);
}

body.dark-theme .text-muted,
body.dark-theme .sub-text,
body.dark-theme .step-number {
    color: var(--color-text-light) !important;
}

/* Fix Hero Gradient Text in Dark Mode */
body.dark-theme .hero h1 {
    background: none;
    -webkit-text-fill-color: initial;
    color: var(--color-text-main);
}

/* Fix Impact Section Contrast */
body.dark-theme .impact-box {
    background: #1e3a29;
    /* Darker green */
}

body.dark-theme .impact-content h2,
body.dark-theme .impact-content p,
body.dark-theme .impact-content li {
    color: #ffffff !important;
    /* Force white on dark green */
}

/* Fix Input Text Color */
body.dark-theme input,
body.dark-theme select,
body.dark-theme textarea {
    color: #ffffff !important;
    background-color: #2c2c2e !important;
}

/* --- Premium Details (Scrollbars, Selection, Cart) --- */

/* Smooth Transition for Theme Switch */
body,
body * {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--color-bg-page);
}

::-webkit-scrollbar-thumb {
    background-color: var(--color-border);
    border-radius: 6px;
    border: 3px solid var(--color-bg-page);
    /* Creates padding effect */
}

::-webkit-scrollbar-thumb:hover {
    background-color: var(--color-text-light);
}

/* Selection Color */
::selection {
    background: var(--color-primary);
    color: white;
}

/* Footer Override */
body.dark-theme footer {
    background-color: var(--color-bg-section) !important;
    border-top-color: var(--color-border) !important;
}

/* Cart Page Overrides */
body.dark-theme .cart-table,
body.dark-theme .cart-summary,
body.dark-theme .cart-table th,
body.dark-theme .cart-table td {
    background-color: var(--color-bg-surface) !important;
    border-color: var(--color-border) !important;
    color: var(--color-text-main) !important;
}

body.dark-theme .cart-table th {
    background-color: #303031 !important;
    /* Slightly lighter header */
}

body.dark-theme .qty-btn {
    background-color: var(--color-bg-section);
    border-color: var(--color-border);
    color: var(--color-text-main);
}

body.dark-theme .qty-btn:hover {
    background-color: var(--color-border);
}

/* Empty Cart Message */
body.dark-theme .empty-cart-msg {
    color: var(--color-text-body);
}

/* --- Product Page & Market Layout Overrides --- */
body.dark-theme .product-card-premium {
    background-color: var(--color-bg-surface);
    border: 1px solid var(--color-border);
    color: var(--color-text-main);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

body.dark-theme .market-sidebar a {
    color: var(--color-primary-hover) !important;
}

body.dark-theme .market-sidebar h3 {
    color: var(--color-text-main);
}

body.dark-theme .market-sidebar p {
    color: var(--color-text-body) !important;
}

body.dark-theme .current-price {
    color: var(--color-text-main);
}

body.dark-theme .original-price {
    color: var(--color-text-light);
}

body.dark-theme .delivery-info strong {
    color: var(--color-primary);
}

body.dark-theme .filter-group {
    background-color: var(--color-bg-surface);
    border: 1px solid var(--color-border);
}

body.dark-theme .search-bar input {
    background-color: var(--color-bg-section);
    color: var(--color-text-main);
    border-color: var(--color-border);
}

body.dark-theme .search-bar button {
    color: var(--color-text-light);
}

body.dark-theme .cart-page-container {
    background-color: var(--color-bg-page);
}

body.dark-theme .cart-table th {
    background-color: #303031;
    color: var(--color-text-main);
    border-bottom-color: var(--color-border);
}

body.dark-theme .cart-table td {
    border-bottom-color: var(--color-border);
}

body.dark-theme .cart-summary {
    background-color: var(--color-bg-surface);
    border: 1px solid var(--color-border);
}

body.dark-theme .sub-text,
body.dark-theme .step-number {
    color: var(--color-text-light);
}

body.dark-theme .cart-summary p {
    color: var(--color-text-body) !important;
}

/* Mobile Nav Overlay */
body.dark-theme .mobile-nav-content {
    background-color: var(--color-bg-page);
}

body.dark-theme .mobile-nav-links a {
    color: var(--color-text-main);
}

body.dark-theme .close-menu {
    color: var(--color-text-main);
}

/* --- Fix for "How it Works" / Process FLow --- */
body.dark-theme .connector {
    background: var(--color-border);
}

body.dark-theme .circle {
    box-shadow: 0 0 0 8px var(--color-bg-page);
    /* Match dark background */
}

/* --- Fix for Footer Links --- */
body.dark-theme .footer-links a {
    color: var(--color-text-light);
}

body.dark-theme .footer-links a:hover {
    color: var(--color-primary);
}

/* --- Fix for Map Overlay text --- */
body.dark-theme .view-map-btn {
    background: var(--color-bg-surface);
    color: var(--color-text-main);
}

/* --- Fix for "Expert Advice" Sidebar Text --- */
body.dark-theme .market-sidebar p {
    color: var(--color-text-body) !important;
}

body.dark-theme .market-sidebar h3 {
    color: var(--color-text-main) !important;
}

/* --- Improved Location Card Dark Mode --- */
body.dark-theme .location-card {
    background-color: var(--color-bg-surface);
    border: 1px solid var(--color-border);
}

body.dark-theme .loc-hours {
    background-color: var(--color-bg-section);
    color: var(--color-text-light);
}

body.dark-theme .view-map-btn {
    background-color: var(--color-bg-surface);
    color: var(--color-text-main);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

/* --- Global Text Contrast Enforcement --- */
body.dark-theme p,
body.dark-theme li,
body.dark-theme span,
body.dark-theme div {
    color: var(--color-text-body);
}

body.dark-theme h1,
body.dark-theme h2,
body.dark-theme h3,
body.dark-theme h4,
body.dark-theme h5,
body.dark-theme h6,
body.dark-theme strong,
body.dark-theme b {
    color: var(--color-text-main) !important;
}

body.dark-theme .text-muted {
    color: var(--color-text-light) !important;
}

body.dark-theme .cart-summary p {
    color: var(--color-text-body) !important;
}

/* Base Reset & Typography */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-padding-top: 90px;
    /* Header (70px) + Buffer (20px) */
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    width: 100%;
}

body {
    font-family: var(--font-main);
    color: var(--color-text-main);
    background-color: var(--color-bg-page);
    line-height: 1.6;
    position: relative;
    width: 100%;
    /* Removed background-attachment: fixed for performance */
}

/* Canvas Background */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -10;
    /* Behind everything */
    /* filter: blur(60px); Removed for performance - gradients provide softness */
}

/* Removed static body::before and body::after */
body {
    background-color: transparent;
    /* Let canvas show */
}


h1,
h2,
h3,
h4 {
    font-weight: 600;
    letter-spacing: -0.025em;
    line-height: 1.1;
    color: var(--color-text-main);
}

h1 {
    font-size: 4.5rem;
}

h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    white-space: nowrap;
    /* Prevention of line breaks */
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

p {
    font-size: 1.125rem;
    color: var(--color-text-body);
    max-width: 65ch;
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
}

.text-center {
    text-align: center;
}

.section {
    padding: var(--section-padding);
}

.section-light {
    background-color: #f9fdf9;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.section-subtitle {
    margin: -1.5rem auto 2.5rem auto;
    /* Pull closer to heading, center horizontally */
    max-width: 600px;
    opacity: 0.8;
}

.section-dark {
    background-color: var(--color-bg-dark);
    color: #fff;
}

.section-dark h2,
.section-dark p {
    color: #fff;
}

.no-padding {
    padding: 0;
}

.grid {
    display: grid;
    gap: 2rem;
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.flex {
    display: flex;
    gap: 1rem;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    will-change: opacity, transform;
    transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 9999px;
    transition: var(--transition-smooth);
    cursor: pointer;
    border: none;
    text-decoration: none;
    box-shadow: 0 4px 14px 0 rgba(46, 125, 50, 0.39);
    /* Glowy shadow */
}

.btn-primary {
    background: var(--color-primary);
    color: white;
}

.btn-primary:hover {
    background: var(--color-primary-hover);
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(46, 125, 50, 0.23);
}

.btn:active {
    transform: scale(0.96);
}

/* Header */
header {
    height: var(--header-height);
    position: sticky;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    /* More opaque, removed backdrop-filter for performance */
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

header .container {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    column-gap: 2rem;
    /* Ensure minimum separation between logo and nav */
}

.logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-primary);
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    /* Slightly tighter to prevent wrap */
    list-style: none;
    white-space: nowrap;
    /* Force one line */
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text-main);
    opacity: 0.8;
    transition: opacity 0.2s;
    padding: 0.5rem;
    /* Better touch target */
}

.nav-links a:hover {
    opacity: 1;
    color: var(--color-primary);
}

/* Hero */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 0;
    /* Transparent to show canvas animation */
    background: transparent;
}

.hero-content {
    animation: heroEnter 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
    transform: translateY(20px);
}

.hero h1 {
    margin-bottom: 1.5rem;
    background: none;
    -webkit-text-fill-color: var(--color-text-main);
    color: var(--color-text-main);
    /* Fallback */
}

.hero p {
    margin: 0 auto 2rem;
    font-size: 1.5rem;
    color: var(--color-text-body);
}

@keyframes heroEnter {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Cards & Solutions */
.card,
.solution-card {
    background: white;
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.card:hover,
.solution-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.card:active,
.solution-card:active {
    transform: scale(0.98);
    transition: transform 0.1s;
}

.icon-box {
    margin-bottom: 1.5rem;
    color: var(--color-primary);
}

.problem-grid .card {
    text-align: left;
}

.section-subtitle {
    margin-bottom: 4rem;
    font-size: 1.25rem;
}

.solution-card {
    position: relative;
    overflow: hidden;
}

.step-number {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 3rem;
    font-weight: 800;
    color: var(--color-secondary);
    opacity: 0.5;
    z-index: 0;
}

/* Solution Card Content */
.solution-card h3,
.solution-card p {
    position: relative;
    z-index: 1;
}

.btn-shop-sm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
    font-weight: 500;
    color: white;
    background-color: var(--color-primary);
    padding: 0.6rem 1.2rem;
    border-radius: 99px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.solution-card:hover .btn-shop-sm {
    gap: 0.5rem;
    text-decoration: none;
    background-color: var(--color-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(46, 125, 50, 0.2);
}

/* Process Flow */
.process-flow {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-top: 3rem;
    position: relative;
}

.process-step {
    position: relative;
    z-index: 2;
    width: 180px;
}

.circle {
    width: 60px;
    height: 60px;
    background: var(--color-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-weight: 700;
    font-size: 1.25rem;
    box-shadow: 0 0 0 8px var(--color-secondary);
}

.connector {
    flex-grow: 1;
    height: 2px;
    background: var(--color-border);
    margin-top: 30px;
    position: relative;
    z-index: 1;
    margin-left: -40px;
    margin-right: -40px;
}

/* Impact Section */
.impact-box {
    background: var(--color-primary);
    color: white;
    border-radius: var(--radius-lg);
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    overflow: hidden;
    margin-top: 2rem;
}

.impact-content {
    padding: 4rem;
}

.impact-content h2,
.impact-content p,
.impact-content li {
    color: white;
}

.impact-list {
    list-style: none;
    margin-top: 2rem;
}

.impact-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.check-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    color: var(--color-accent);
}

.impact-visual {
    background: var(--color-primary-hover);
    position: relative;
}

.abstract-shape {
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg width="100" height="100" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="40" stroke="rgba(255,255,255,0.1)" stroke-width="2" fill="none"/></svg>') repeat;
    opacity: 0.3;
}

/* Prototype */
.prototype-showcase {
    background: white;
    padding: 1rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    max-width: 900px;
    margin: 0 auto;
    margin: 0 auto;
    /* GPU Force */
    transform: translateZ(0);
}

.prototype-placeholder {
    aspect-ratio: 16/9;
    background: var(--color-secondary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    font-weight: 500;
    border: 2px dashed rgba(46, 125, 50, 0.2);
}

/* Contact */
.contact-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
}

.contact-form {
    display: flex;
    gap: 1rem;
    width: 100%;
    max-width: 500px;
}

.contact-form input {
    flex: 1;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1rem;
}

.contact-form input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.contact-form input:focus {
    outline: none;
    border-color: white;
    background: rgba(255, 255, 255, 0.15);
}

/* Accordion Styles */
.accordion-item {
    border: 1px solid var(--color-border);
    margin-bottom: 1rem;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: white;
}

.accordion-header {
    width: 100%;
    text-align: left;
    padding: 1rem 1.5rem;
    background: white;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.accordion-header:hover {
    background-color: var(--color-bg-light);
}

.accordion-header .icon {
    font-size: 1.5rem;
    font-weight: 300;
    transition: transform 0.3s;
}

.accordion-item.active .accordion-header .icon {
    transform: rotate(45deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease;
    padding: 0 1.5rem;
    padding-top: 0;
    padding-bottom: 0;
}

.accordion-item.active .accordion-content {
    /* Height handled by JS */
    padding-bottom: 1.5rem;
    padding-top: 1rem;
}

/* Footer */
footer {
    padding: 4rem 0;
    text-align: center;
    color: var(--color-text-light);
    border-top: 1px solid var(--color-border);
    font-size: 0.9rem;
    margin-top: auto;
}

/* Responsive */
@media (max-width: 900px) {
    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2.25rem;
    }

    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }

    .process-flow {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }

    .connector {
        display: none;
    }

    .impact-box {
        grid-template-columns: 1fr;
    }

    .contact-wrapper {
        flex-direction: column;
        text-align: center;
    }

    .contact-form {
        flex-direction: column;
    }

    .nav-links {
        display: none;
    }

    /* Mobile menu simplified */
}

/* Gallery */
.gallery-grid {
    display: grid;
    gap: 1.5rem;
    /* Tighter on mobile from previous media query */
    /* Ensure no wider than screen on mobile */
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    margin-top: 3rem;
}

.gallery-item {
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 4/3;
    position: relative;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    /* GPU Force */
    transform: translateZ(0);
    backface-visibility: hidden;
}

.gallery-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary-hover);
    font-weight: 500;
    font-size: 1.1rem;
    transition: var(--transition-smooth);
}

.gallery-item:hover .gallery-placeholder {
    transform: scale(1.05);
    background-color: var(--color-primary) !important;
    color: white;
}

/* Solution Card Links */
.solution-card {
    display: block;
    /* Ensure anchor behaves like block */
    text-decoration: none;
    /* Remove underline */
    color: inherit;
    /* Inherit text color */
}

/* Market Section */
.market-grid .card {
    text-align: center;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.product-image {
    width: 100%;
    height: 250px;
    background: #f9f9f9;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-image img {
    height: 100%;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
    aspect-ratio: 1/1;
    /* Prevent layout shift */
}

.card:hover .product-image img {
    transform: scale(1.05);
}

.price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    margin: 0;
}

.market-grid button {
    width: 100%;
    margin-top: auto;
}

/* =========================================
   Premium E-commerce Market Styles
   ========================================= */

/* Market Header */
.market-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--color-border);
    flex-wrap: wrap;
    gap: 1rem;
}

.market-title h2 {
    font-size: 2rem;
    margin-bottom: 0.2rem;
    color: var(--color-primary);
}

.market-title p {
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin: 0;
}

.market-controls {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.search-bar {
    display: flex;
    background: white;
    border-radius: 8px;
    border: 1px solid var(--color-border);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.search-bar input {
    border: none;
    padding: 0.8rem 1rem;
    width: 250px;
    outline: none;
}

.btn-search {
    background: var(--color-primary);
    border: none;
    color: white;
    padding: 0 1rem;
    cursor: pointer;
    font-size: 1.2rem;
}

.cart-icon {
    font-size: 1.8rem;
    cursor: pointer;
    position: relative;
    padding: 0.5rem;
    transition: transform 0.2s;
}

.cart-icon:hover {
    transform: scale(1.1);
}

.cart-count {
    position: absolute;
    top: 0;
    right: 0;
    background: #FF5252;
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Layout */
.market-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 2rem;
    align-items: start;
}

/* Sidebar */
/* =========================================
   MARKETPLACE "BEST IN CLASS" REDESIGN
   ========================================= */

/* --- Market Hero --- */
.market-hero {
    background: linear-gradient(135deg, #f0fdf4 0%, #fff 100%);
    padding: 6rem 0 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

body.dark-theme .market-hero {
    background: linear-gradient(135deg, #050505 0%, #1a1a1a 100%);
}

.market-hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--color-primary), #43A047);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
}

.market-hero p {
    font-size: 1.25rem;
    color: var(--color-text-body);
    max-width: 600px;
    margin: 0 auto;
}

/* --- Layout --- */
.market-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 3rem;
    padding: 4rem 0;
    align-items: start;
}

/* --- Sidebar --- */
.market-sidebar {
    background: var(--color-bg-page);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    position: sticky;
    top: 100px;
    transition: all 0.3s ease;
}

.market-sidebar h3 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-text-light);
    margin-bottom: 1.2rem;
    font-weight: 700;
}

.market-sidebar a {
    display: block;
    padding: 0.8rem 1rem;
    margin-bottom: 0.5rem;
    color: var(--color-text-main);
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.2s ease;
    font-weight: 500;
}

.market-sidebar a:hover {
    background: rgba(76, 175, 80, 0.08);
    color: var(--color-primary);
    transform: translateX(5px);
}

.filter-group {
    margin-bottom: 2.5rem;
}

/* --- Product Grid --- */
.market-products {
    display: block;
    width: 100%;
}

.market-products .grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

/* --- Premium Product Card --- */
.product-card-premium {
    background: var(--color-bg-page);
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card-premium:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: rgba(76, 175, 80, 0.3);
}

/* Badges */
.badge-best-seller,
.badge-organic,
.badge-bulk {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 6px 14px;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 99px;
    z-index: 10;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.badge-organic {
    background: #E8F5E9;
    color: #2E7D32;
}

.badge-best-seller {
    background: #FFF3E0;
    color: #E65100;
}

.badge-bulk {
    background: #E3F2FD;
    color: #1565C0;
}

/* Image Area */
.product-img-box {
    height: 260px;
    background: #f8f9fa;
    /* Light gray background */
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

body.dark-theme .product-img-box {
    background: rgba(255, 255, 255, 0.03);
}

.product-img-box img {
    height: 100%;
    width: auto;
    object-fit: contain;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.05));
}

.product-card-premium:hover .product-img-box img {
    transform: scale(1.08) translateY(-5px);
}

/* Details */
.product-details {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-details h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--color-text-main);
    line-height: 1.3;
}

.sub-text {
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin-bottom: 1rem;
}

/* Price */
.price-block {
    margin-top: auto;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: baseline;
    gap: 0.8rem;
}

.current-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-text-main);
}

.original-price {
    color: var(--color-text-light);
    text-decoration: line-through;
    font-size: 0.95rem;
}

.discount {
    color: #43A047;
    font-weight: 700;
    font-size: 0.85rem;
    background: rgba(76, 175, 80, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
}

/* Actions */
.action-buttons {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 0.8rem;
}

.btn-action {
    padding: 0.9rem;
    border-radius: 12px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

.btn-add-cart {
    background: rgba(0, 0, 0, 0.05);
    color: var(--color-text-main);
}

.btn-add-cart:hover {
    background: rgba(0, 0, 0, 0.1);
}

.btn-buy-now {
    background: var(--color-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(46, 125, 50, 0.25);
}

.btn-buy-now:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(46, 125, 50, 0.35);
}

/* Dark Theme Adjustments */
body.dark-theme .market-sidebar {
    background: #1e1e1e;
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

body.dark-theme .product-card-premium {
    background: #252627;
    /* Slightly lighter than existing to stand out */
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

body.dark-theme .product-card-premium .product-details h3 {
    color: #ffffff;
    /* Pure white for titles */
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

body.dark-theme .product-card-premium .sub-text,
body.dark-theme .product-card-premium .original-price {
    color: #b0b3b8;
    /* Medium emphasis */
}

body.dark-theme .product-card-premium .current-price {
    color: #4ade80;
    /* Bright Green */
}

/* Image Box: Dark Mode - REMOVED WHITE GRADIENT */
body.dark-theme .product-img-box {
    background: radial-gradient(circle, rgba(255, 255, 255, 0.02) 0%, rgba(0, 0, 0, 0.3) 80%);
    /* Mostly dark transparent with slight center highlight */
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

body.dark-theme .btn-add-cart {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark-theme .btn-add-cart:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: white;
}

/* Responsive */
@media (max-width: 900px) {
    .market-layout {
        grid-template-columns: 1fr;
        padding-top: 2rem;
    }

    .market-sidebar {
        position: relative;
        top: 0;
        margin-bottom: 2rem;
    }

    .market-hero h1 {
        font-size: 2.5rem;
    }
}

.filter-group {
    margin-bottom: 2rem;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    color: var(--color-text-body);
    font-weight: 500;
}

.filter-group h3 {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--color-text-main);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
}

.filter-group p {
    font-size: 0.9rem;
    color: var(--color-text-body);
    margin-bottom: 1rem;
    line-height: 1.4;
}

/* Sidebar Links Default */
.market-sidebar a:not(.btn) {
    display: block;
    margin-bottom: 0.8rem;
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.2s;
    font-weight: 500;
}

.market-sidebar a:not(.btn):hover {
    color: var(--color-primary-hover);
    text-decoration: underline;
}

/* Sidebar Dark Mode Overrides */
body.dark-theme .market-sidebar {
    background: var(--color-bg-surface);
    border: 1px solid var(--color-border);
}

body.dark-theme .market-sidebar h3 {
    color: var(--color-text-main) !important;
}

body.dark-theme .market-sidebar p {
    color: var(--color-text-body) !important;
}

body.dark-theme .market-sidebar a:not(.btn) {
    color: var(--color-primary-light) !important;
}



/* =========================================
   Homepage Marketplace Discoverability
   ========================================= */

/* Global Cart Icon in Header */
.global-cart {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-weight: 600;
    color: var(--color-text-main);
    padding: 0.5rem 1rem;
    border-radius: 99px;
    transition: background 0.2s;
}

.global-cart:hover {
    background: var(--color-secondary);
    color: var(--color-primary);
}

/* Solution Card Updates */
.solution-card {
    display: flex;
    flex-direction: column;
    padding-bottom: 5rem;
    /* Make room for button */
}

.price-tag {
    display: inline-block;
    background: var(--color-secondary);
    color: var(--color-primary);
    padding: 0.25rem 0.75rem;
    border-radius: 99px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
}

.btn-shop-sm {
    position: absolute;
    bottom: 1.5rem;
    left: 1.5rem;
    right: 1.5rem;
    background: var(--color-text-main);
    color: white;
    text-align: center;
    padding: 0.75rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: all 0.3s;
    opacity: 0;
    transform: translateY(10px);
}

.solution-card:hover .btn-shop-sm {
    opacity: 1;
    transform: translateY(0);
}

/* Always show button on mobile */
@media (max-width: 900px) {
    .btn-shop-sm {
        opacity: 1;
        transform: translateY(0);
        position: static;
        margin-top: 1.5rem;

        .solution-card {
            padding-bottom: 2.5rem;
        }
    }
}

/* =========================================
   Smart Farm Calculator Styles
   ========================================= */
.calculator-box {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    display: flex;
    overflow: hidden;
    max-width: 900px;
    margin: 0 auto;
}

.input-group {
    margin-bottom: 1.5rem;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--color-text-body);
}

.input-group select,
.input-group input {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
}

.input-group select:focus,
.input-group input:focus {
    outline: none;
    border-color: var(--color-primary);
}

.result-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.result-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 12px;
}

.result-item .label {
    display: block;
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 0.25rem;
}

.value-box {
    font-size: 1.8rem;
    font-weight: 700;
    color: #A5D6A7;
    /* Light Green */
}

.value-box .unit {
    font-size: 1rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
}

.sub-text {
    font-size: 0.75rem;
    opacity: 0.5;
}

@media (max-width: 768px) {
    .calculator-box {
        flex-direction: column;
    }

    .result-grid {
        grid-template-columns: 1fr;
    }

    .calc-results {
        padding: 1.5rem !important;
    }
}

/* Innovator Profile Image */
.innovator-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1.5rem auto;
    border: 4px solid white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    /* Softer shadow */
    display: block;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    /* Premium ease */
}

.innovator-img:hover {
    transform: scale(1.05);
    border-color: var(--color-secondary);
    /* Subtle interaction */
    box-shadow: 0 15px 40px rgba(46, 125, 50, 0.2);
    /* Colored shadow */
}

.about-content p {
    margin-left: auto;
    margin-right: auto;
}

/* =========================================
   New Premium Enhancements & Animations
   ========================================= */

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 5px;
    border: 2px solid #fff;
}

::-webkit-scrollbar-thumb:hover {
    background: #aaa;
}

/* Button Shine Effect - Overrides */
.btn-primary {
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    transform: translateX(-100%);
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: transform 0.5s;
    will-change: transform;
}

.btn-primary:hover::after {
    transform: translateX(100%);
}

/* Floating Animation */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

.floating {
    animation: float 6s ease-in-out infinite;
    animation-delay: 1.5s;
    animation-delay: 1.5s;
    /* Wait for load to finish */
}

@keyframes floatSubtle {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-6px);
    }

    100% {
        transform: translateY(0px);
    }
}

.floating-subtle {
    animation: floatSubtle 5s ease-in-out infinite;
}

.innovator-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-bottom: 0.5rem;
    /* Adjusted for image margin */
}

/* Staggered Animations */
.stagger-1 {
    transition-delay: 100ms;
}

.stagger-2 {
    transition-delay: 200ms;
}

.stagger-3 {
    transition-delay: 300ms;
}

.stagger-4 {
    transition-delay: 400ms;
}

/* Gradient Text Utility */
.gradient-text {
    background: linear-gradient(135deg, var(--color-primary), #4CAF50);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Enhanced Glassmorphism for Section Light */
/* Removed large scale blur for performance */
/* Enhanced Glassmorphism removed for performance */

/* Enhanced Card Lift */
.card:hover,
.product-card-premium:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.1);
}

/* =========================================
   New Features Styling (Stats, Doctor, Lang)
   ========================================= */

/* Stats Grid */
.stats-grid {
    margin-bottom: 3rem;
    text-align: center;
}

.stat-item h3 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-item p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

/* Crop Doctor Wizard */
.doctor-box {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.doctor-step {
    width: 100%;
}

.doctor-options {
    margin-top: 2rem;
}

.btn-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 2rem;
    border: 2px solid var(--color-border);
    background: transparent;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s;
}

.btn-option:hover {
    border-color: var(--color-primary);
    background: var(--color-secondary);
    transform: translateY(-5px);
}

.btn-option .icon {
    font-size: 3rem;
}

.btn-option span {
    font-weight: 600;
    color: var(--color-text-main);
}

.result-card h3 {
    color: var(--color-primary);
    font-size: 2rem;
    margin-bottom: 1rem;
}

/* Language Selector */
.lang-switch select {
    cursor: pointer;
    background: rgba(255, 255, 255, 0.95);
    /* backdrop-filter removed for performance */
    transition: all 0.2s;
}

.lang-switch select:hover {
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* =========================================
   Location Section
   ========================================= */
.location-card {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    display: flex;
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
    text-align: left;
    /* GPU Force */
    transform: translateZ(0);
}

.loc-details {
    flex: 1;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.loc-details h3 {
    color: var(--color-primary);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.loc-address {
    font-size: 1.1rem;
    color: var(--color-text-body);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.loc-hours {
    margin-bottom: 2rem;
    font-size: 0.95rem;
    color: var(--color-text-light);
    background: #f5f5f5;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    display: inline-block;
}

.loc-map {
    flex: 1.2;
    background: #eee;
    position: relative;
    overflow: hidden;
}

.map-link-wrapper {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    cursor: pointer;
}

.map-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.map-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.view-map-btn {
    background: white;
    color: var(--color-text-main);
    padding: 0.8rem 1.5rem;
    border-radius: 99px;
    font-weight: 600;
    transform: translateY(10px);
    transition: transform 0.3s;
}

.map-link-wrapper:hover .map-overlay {
    opacity: 1;
}

.map-link-wrapper:hover .view-map-btn {
    transform: translateY(0);
}

.map-link-wrapper:hover .map-preview {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .location-card {
        flex-direction: column;
    }
}

/* Cart Modal */
.cart-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    /* backdrop-filter removed for performance */
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    animation: fadeIn 0.3s forwards;
}

.cart-modal {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    text-align: center;
    max-width: 90%;
    width: 400px;
    transform: scale(0.9);
    animation: scaleIn 0.3s forwards;
}

.cart-modal h3 {
    margin-bottom: 1rem;
    color: var(--color-primary);
}

.cart-modal p {
    margin-bottom: 2rem;
    color: var(--color-text-body);
}

.cart-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* MARKETPLACE SPECIFIC - PAGE BACKGROUND FIX */
.marketplace-page {
    background-color: var(--color-bg-page);
    color: var(--color-text-body);
}

.marketplace-page.dark-theme {
    background-color: #000000 !important;
    /* Force True Black */
    color: #e4e6eb;
}

/* Header & Branding */
.header-branding {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--color-text-main);
    font-weight: 700;
    font-size: 1.2rem;
}

.header-branding img {
    height: 40px;
    width: auto;
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.lang-select-wrapper select {
    padding: 0.3rem 0.5rem;
    border-radius: 6px;
    border: 1px solid var(--color-border);
    font-size: 0.9rem;
    background: var(--color-bg-card);
    color: var(--color-text-main);
    cursor: pointer;
}

.theme-toggle-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0.2rem;
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle-btn:hover {
    transform: rotate(15deg);
}

/* =========================================
   Mobile Navigation & Optimization
   ========================================= */

/* Hamburger Button */
.hamburger {
    display: none;
    /* Hidden on desktop */
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    padding: 0;
    z-index: 2001;
    /* Above cart modal overlay */
}

.hamburger span {
    width: 100%;
    height: 3px;
    background: var(--color-primary);
    border-radius: 2px;
    transition: all 0.3s linear;
}

/* Mobile Nav Overlay */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.mobile-nav-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.mobile-nav-content {
    background: white;
    width: 280px;
    height: 100%;
    position: absolute;
    top: 0;
    left: -280px;
    /* Slide out from left */
    transition: left 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: var(--shadow-md);
    padding: 2rem;
    display: flex;
    flex-direction: column;
}

.mobile-nav-overlay.active .mobile-nav-content {
    left: 0;
}

.close-menu {
    align-self: flex-end;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--color-text-body);
    margin-bottom: 2rem;
}

.mobile-nav-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.mobile-nav-links a {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text-main);
    text-decoration: none;
    display: block;
    transition: color 0.2s;
}

.mobile-nav-links a:hover {
    color: var(--color-primary);
}

/* Media Queries */
@media (max-width: 900px) {

    /* Header Changes */
    .desktop-nav {
        display: none !important;
        /* Hide desktop nav */
    }

    .hamburger {
        display: flex;
        /* Show hamburger */
    }

    header .container {
        justify-content: space-between;
        padding: 0 1rem;
    }

    .pricing-grid,
    .grid-3 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {

    /* Typography Adjustments */
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    /* Layout Adjustments */
    .hero-content {
        padding: 0 1rem;
    }

    .section {
        padding: 3rem 1rem;
    }

    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }

    /* Calculator Adjustments */
    .calculator-box {
        flex-direction: column;
    }

    .calc-inputs,
    .calc-results {
        padding: 1.5rem;
    }

    .result-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Gallery Filters */
.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: white;
    border: 1px solid var(--color-border);
    padding: 0.5rem 1.25rem;
    border-radius: 99px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-text-body);
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
    box-shadow: 0 4px 10px rgba(46, 125, 50, 0.2);
}

@media (max-width: 480px) {

    /* Global Container Fixes */
    .container {
        padding: 0 1rem;
        width: 100%;
    }

    .section {
        padding: 2.5rem 1rem;
        overflow-x: hidden;
        /* Extra safety */
    }

    /* Severe Typography Reduction */
    h1 {
        font-size: 2.2rem;
        word-wrap: break-word;
    }

    h2 {
        font-size: 1.75rem;
        /* Fixes FAQ overflow */
        white-space: normal;
        /* Override nowrap */
        line-height: 1.2;
    }

    /* Component Constraints */
    .card,
    .solution-card,
    .impact-box,
    .calculator-box,
    .doctor-box,
    .location-card,
    .product-card-premium {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        border-radius: var(--radius-md);
    }

    /* Ensure content inside cards doesn't push out */
    .impact-content,
    .calc-inputs,
    .calc-results,
    .loc-details {
        padding: 1.5rem;
    }

    .result-grid {
        grid-template-columns: 1fr;
    }

    .stat-item h3 {
        font-size: 2.5rem;
    }

    /* Fix Impact Section Visibility on Mobile */
    .impact-box .gradient-text {
        background: none;
        -webkit-text-fill-color: white;
        color: white;
    }

    .btn {
        padding: 0.8rem 1.5rem;
        width: 100%;
    }

    /* Header/Nav adjustments */
    .header-right {
        gap: 0.8rem !important;
        /* Tighter spacing */
    }

    .logo {
        font-size: 1.1rem;
    }

    .logo img {
        height: 32px !important;
        /* Smaller logo */
    }

    /* Prevent iOS Zoom on inputs */
    input,
    select,
    textarea {
        font-size: 16px !important;
    }

    /* Ensure Gallery doesn't overflow */
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   Mobile UX: Horizontal Snap Cards
   ========================================= */
@media (max-width: 768px) {
    .snap-container {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        grid-template-columns: none !important;
        grid-auto-flow: column !important;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 1rem;
        padding-bottom: 2rem;
        /* Space for scrollbar/swipe */
        margin-right: -1rem;
        /* Bleed to edge */
        padding-right: 1rem;
        /* Padding for last item */
        -webkit-overflow-scrolling: touch;
        /* Smooth scroll on iOS */
        align-items: stretch;
        /* Ensure equal height */

        /* Hide scrollbar for cleaner look */
        scrollbar-width: none;
        /* Firefox */
    }

    .snap-container::-webkit-scrollbar {
        display: none;
        /* Chrome/Safari */
    }

    /* Cards inside snap container */
    /* Cards inside snap container - Peek Effect (80%) */
    .snap-container .card,
    .snap-container .solution-card,
    .snap-container .process-step {
        min-width: 80%;
        scroll-snap-align: center;
        margin-right: 0;
        flex-shrink: 0;
    }

    /* Gallery - One Photo at a Time (100%) */
    .snap-container .gallery-item {
        min-width: 100%;
        scroll-snap-align: center;
        margin-right: 0;
        flex-shrink: 0;
    }

    /* Optional: Centering wrapper to ensure first item isn't flush if needed */
    .snap-container::after {
        content: '';
        min-width: 1rem;
    }

    /* FORCED OVERRIDES for Mobile Scroll Optimization */
    .process-flow {
        flex-direction: row !important;
        align-items: stretch;
    }

    /* Gallery Grid Override - Force Single Slide */
    .gallery-grid {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        grid-template-columns: none !important;
        overflow-x: auto !important;
        justify-content: flex-start !important;

        /* Ensure items don't stretch tall */
        align-items: flex-start;

        /* Reset any grid gaps interfering with full width */
        gap: 0 !important;
    }

    .gallery-item {
        width: 100% !important;
        /* Ensure full width */
        min-width: 100% !important;
        flex: 0 0 100% !important;

        /* Add slight padding/margin if needed for separation, but user asked for "frame" */
        padding: 0 0.5rem;
        box-sizing: border-box;
    }

    .gallery-item img {
        width: 100%;
        height: auto;
        /* Allow height to adjust naturally to avoid "zoom" or cropping */
        object-fit: contain;
        /* Ensure full image is visible */
        aspect-ratio: 4/3;
        border-radius: 8px;
    }

    /* COMPACT GRID OVERRIDES for Mobile */

    /* Impact Stats - Force 3 in a row, tighter but readable */
    .stats-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 0.25rem !important;
        margin-bottom: 2rem !important;
    }

    .stat-item h3 {
        font-size: 1.4rem !important;
        /* Smaller numbers for mobile */
        margin-bottom: 0.2rem !important;
    }

    .stat-item p {
        font-size: 0.7rem !important;
        /* Smaller text */
        line-height: 1.1 !important;
        word-wrap: break-word;
    }

    /* Estimator Results - Force 2x2 Grid */
    .result-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 0.75rem !important;
    }

    .result-item {
        padding: 0.75rem !important;
        text-align: center;
    }

    .value-box {
        font-size: 1.4rem !important;
    }

    /* Crop Doctor - Force 2x2 Grid */
    .doctor-options {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 0.75rem !important;
        margin-top: 1rem !important;
    }

    .btn-option {
        padding: 1rem !important;
        gap: 0.5rem !important;
    }

    .btn-option .icon {
        font-size: 2rem !important;
        /* Smaller icons */
    }
}

/* Scroll Hint Animation */
.scroll-hint-wrapper {
    position: relative;
    /* Ensure relative positioning for absolute hint */
}

.scroll-hint {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 10;
    pointer-events: none;
    background: rgba(46, 125, 50, 0.85);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 99px;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    animation: bounceRight 2s infinite;
    opacity: 0;
    /* Hidden by default, shown on mobile via media query */
    transition: opacity 0.5s;
}

@keyframes bounceRight {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(0);
    }

    40% {
        transform: translateX(-10px);
    }

    60% {
        transform: translateX(-5px);
    }
}

@media (max-width: 768px) {
    .scroll-hint {
        opacity: 1;
    }

    /* Hide hint if explicitly set to hidden via JS */
    .scroll-hint.hidden {
        opacity: 0;
    }
}

/* --- Chatbot Widget --- */
.chatbot-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.chatbot-toggle {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--color-primary), #43A047);
    border-radius: 50%;
    box-shadow: 0 8px 25px rgba(46, 125, 50, 0.4);
    cursor: pointer;
    overflow: hidden;
    position: relative;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
    border: 2px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1010;
}

.chatbot-toggle:hover {
    transform: scale(1.08) translateY(-2px);
    box-shadow: 0 12px 30px rgba(46, 125, 50, 0.6);
}

.chatbot-toggle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Pulse Animation for FAB */
.chatbot-toggle::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 50%;
    border: 2px solid var(--color-primary);
    animation: pulse-ring 2s infinite;
    z-index: -1;
}

@keyframes pulse-ring {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* Greeting Bubble */
.chatbot-greeting {
    background-color: var(--color-text-main);
    color: #fff;
    padding: 0.8rem 1.25rem;
    border-radius: 20px 20px 0 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
    font-size: 0.95rem;
    font-weight: 600;
    position: absolute;
    bottom: 70px;
    right: 0;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(10px) scale(0.9);
    animation: greetingPop 0.5s forwards 1s;
    pointer-events: none;
    z-index: 1005;
}

@keyframes greetingPop {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Chat Menu */
/* Chat Menu - Premium Glass */
.chatbot-menu {
    position: absolute;
    bottom: 90px;
    right: 0;
    width: 320px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(255, 255, 255, 0.5) inset;
    padding: 1.5rem;
    transform-origin: bottom right;
    transform: scale(0.9) translateY(20px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    visibility: hidden;
    z-index: 1000;
}

.chatbot-menu.active {
    transform: scale(1) translateY(0);
    opacity: 1;
    visibility: visible;
}

.chatbot-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding-bottom: 0.5rem;
}

.chatbot-header h4 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--color-primary);
}

.chat-option {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 1rem;
    margin-bottom: 0.75rem;
    border: none;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    text-align: left;
    color: var(--color-text-body);
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.chat-option:hover {
    background: #fff;
    transform: scale(1.02) translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    color: var(--color-primary);
}

.chat-option .icon {
    font-size: 1.2rem;
    margin-right: 0.8rem;
}

/* Animation Utility */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* Fix Cart Alignment Globally */
.cart-count {
    position: static;
    width: auto;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    padding: 0 6px;
    margin-left: 5px;
    display: inline-flex;
    /* Ensure it doesn't break layout */
    align-items: center;
    justify-content: center;
}

.global-cart,
.cart-icon {
    display: flex;
    align-items: center;
    gap: 0;
    /* Let margin handle spacing */
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* EMERGENCY FIX 2 */
.fade-in {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
}

/* =========================================
   Dark Mode Overrides for Specific Sections
   ========================================= */

/* Force Section Backgrounds (Override Inline Styles) */
body.dark-theme #calculator,
body.dark-theme #crop-doctor,
body.dark-theme #location {
    background: var(--color-bg-page) !important;
}

/* Smart Farm Estimator */
body.dark-theme .calc-inputs {
    background-color: var(--color-bg-surface);
    color: var(--color-text-main);
}

body.dark-theme .calc-inputs h3 {
    color: var(--color-text-main) !important;
}

body.dark-theme .input-group label {
    color: var(--color-text-body);
}

body.dark-theme .range-wrap .unit {
    color: var(--color-text-light);
}

body.dark-theme .calc-results {
    background-color: #1e3a29 !important;
    /* Dark Green */
    color: white !important;
}

body.dark-theme .result-item {
    background-color: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark-theme .result-item .label,
body.dark-theme .result-item .value-box,
body.dark-theme .result-item .sub-text,
body.dark-theme .calc-results h3 {
    color: white !important;
}

/* Interactive Crop Doctor */
body.dark-theme .doctor-box {
    background-color: var(--color-bg-surface);
    color: var(--color-text-main);
    border: 1px solid var(--color-border);
}

body.dark-theme .doctor-step h3 {
    color: var(--color-text-main) !important;
}

body.dark-theme .btn-option {
    border-color: var(--color-border);
    background-color: var(--color-bg-section);
}

body.dark-theme .btn-option span {
    color: var(--color-text-main);
}

body.dark-theme .btn-option:hover {
    background-color: var(--color-border);
}

body.dark-theme .result-card {
    background-color: var(--color-bg-section);
    border-radius: var(--radius-md);
    padding: 1.5rem;
}

body.dark-theme .result-card h3 {
    color: var(--color-primary) !important;
}

body.dark-theme .result-card p {
    color: var(--color-text-body) !important;
}

/* Visit Our Production Unit */
body.dark-theme .location-card {
    background-color: var(--color-bg-surface);
    border: 1px solid var(--color-border);
}

body.dark-theme .loc-details h3 {
    color: var(--color-primary) !important;
}

body.dark-theme .loc-address {
    color: var(--color-text-body) !important;
}

body.dark-theme .loc-hours {
    background-color: var(--color-bg-section);
    color: var(--color-text-light);
}

body.dark-theme .map-overlay {
    background: rgba(0, 0, 0, 0.6);
}

body.dark-theme .view-map-btn {
    background: var(--color-bg-surface);
    color: var(--color-text-main);
}

/* FAQ Accordion Styles for Product Pages */
.faq-item h4 {
    position: relative;
    padding-right: 20px;
    cursor: pointer;
    user-select: none;
}

.faq-item h4::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-weight: bold;
    color: var(--color-primary);
    transition: transform 0.3s ease;
}

.faq-item.active h4::after {
    transform: translateY(-50%) rotate(45deg);
    /* Optional rotation or change to minus */
    content: '-';
}

.faq-item p {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, opacity 0.3s ease;
    opacity: 0;
    margin-bottom: 0;
    /* Collapse margin */
}

.faq-item.active p {
    opacity: 1;
    margin-bottom: 1rem;
}

/* --- Premium Shop Banner (Homepage CTA) --- */
.shop-banner-section {
    position: relative;
    z-index: 10;
    padding: 6rem 1.5rem;
    overflow: hidden;
    margin-top: -6rem;
    /* Create overlap */
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, #134e5e 0%, #71b280 100%);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    text-align: center;
    color: white;
    transform: translateY(0);
}

.shop-banner-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.1;
    background-image: 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='1'%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");
}

.shop-banner-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.shop-banner-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.shop-banner-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.95);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    text-wrap: balance;
}

.shop-banner-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    background: white;
    color: var(--color-primary);
    padding: 1.2rem 3.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.shop-banner-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    background: #f0fdf4;
}

.shop-banner-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300px;
    height: 300px;
    background: rgba(46, 125, 50, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.6s ease;
}

.shop-banner-btn:active::after {
    transform: translate(-50%, -50%) scale(1);
}

.shop-banner-floating-img {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.shop-banner-img-item {
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 20px;
    padding: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.shop-banner-img-item:hover {
    transform: translateY(-5px) scale(1.05);
}

@media (max-width: 768px) {
    .shop-banner-title {
        font-size: 1.8rem;
    }

    .shop-banner-section {
        padding: 4rem 1rem;
        border-radius: 0;
        margin-left: -1rem;
        margin-right: -1rem;
        width: calc(100% + 2rem);
    }
}

/* Solution Card Enhancements - Magic Button */
.benefit-badge {
    display: inline-block;
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 99px;
    background: #e8f5e9;
    color: var(--color-primary);
    font-weight: 700;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-cta-btn {
    margin-top: 1.5rem;
    position: relative;
    background: transparent;
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
    padding: 0.8rem 1.5rem;
    border-radius: 99px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    z-index: 1;
}

/* Magic Button - Exciting by Default */
.card-cta-btn {
    margin-top: 1.5rem;
    position: relative;
    /* Gradient Background by default */
    background: linear-gradient(135deg, var(--color-primary), #2e7d32);
    color: white;
    /* White text */
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 99px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    z-index: 1;
    box-shadow: 0 4px 15px rgba(46, 125, 50, 0.3);
    /* Default shadow */
}

/* Shimmer Effect */
.card-cta-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: skewX(-25deg);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }

    20% {
        left: 200%;
    }

    /* Fast pass */
    100% {
        left: 200%;
    }
}

.card-cta-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(46, 125, 50, 0.4);
}

.card-cta-btn span {
    display: inline-block;
    transition: transform 0.3s ease;
}

.card-cta-btn:hover span {
    transform: translateX(3px);
}

/* CLEANUP: Remove old ::before gradient slide since we are filled by default */
.card-cta-btn::before {
    display: none;
}

.card-cta-btn span {
    display: inline-block;
    transition: transform 0.3s ease;
}

.card-cta-btn:hover span {
    transform: translateX(3px);
}

/* =========================================
   JUNGLE THEME - VERMICOMPOST PAGE
   ========================================= */

/* Theme Variables */
.jungle-theme {
    --jungle-dark: #0f2810;
    /* Deep Forest */
    --jungle-mid: #1b4d24;
    /* Mid-leaf */
    --jungle-light: #4caf50;
    /* New growth */
    --jungle-accent: #ffd54f;
    /* Sunbeam/Pollen */
    --earth-brown: #3e2723;
    /* Soil */
    --earth-light: #5d4037;
    /* Dry Soil */
    --text-cream: #f1f8e9;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);

    background-color: var(--jungle-dark);
    color: var(--text-cream);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

.jungle-theme h1,
.jungle-theme h2,
.jungle-theme h3 {
    font-family: 'Playfair Display', serif;
    /* Narrative feel */
}

/* Nav */
.jungle-nav {
    position: absolute;
    top: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 100;
}

.jungle-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.jungle-nav .logo span {
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
}

.jungle-nav .back-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.jungle-nav .back-link:hover {
    opacity: 1;
}

/* ---------------- HERO ---------------- */
.jungle-hero {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    /* Deep Radial Gradient - Faking Sun filtering through canopy */
    background: radial-gradient(circle at 50% 20%, #2e7d32 0%, #1b5e20 40%, #051907 80%);
}

/* Atmospheric Particles/Leaves */
.leaf {
    position: absolute;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50% 0 50% 0;
    pointer-events: none;
}

.layer-1 {
    top: 20%;
    left: 10%;
    width: 100px;
    height: 100px;
    animation: float 10s infinite ease-in-out;
}

.layer-2 {
    top: 60%;
    right: 15%;
    width: 150px;
    height: 150px;
    animation: float 14s infinite ease-in-out reverse;
    border-radius: 0 50% 0 50%;
    opacity: 0.03;
}

.layer-3 {
    top: 10%;
    right: 30%;
    width: 50px;
    height: 50px;
    animation: float 8s infinite ease-in-out;
    opacity: 0.1;
}

.hero-label {
    display: inline-block;
    color: var(--jungle-accent);
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 1rem;
    opacity: 0;
    animation: fadeUp 1s forwards 0.5s;
}

.jungle-title {
    font-size: 5rem;
    line-height: 1.1;
    margin-bottom: 1rem;
    background: linear-gradient(to bottom, #ffffff, #a5d6a7);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0;
    animation: fadeUp 1s forwards 0.8s;
}

.jungle-subtitle {
    font-size: 1.5rem;
    max-width: 600px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 300;
    opacity: 0;
    animation: fadeUp 1s forwards 1.1s;
}

/* Hero Scroll Indicator */
.scroll-indicator {
    margin-top: 4rem;
    opacity: 0.6;
    font-size: 0.8rem;
    letter-spacing: 1px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    /* Removed absolute positioning to prevent overlap */
}

.scroll-indicator .line {
    width: 1px;
    height: 40px;
    background: white;
}

/* ---------------- SECTION 2: ROOTS ---------------- */
.roots-section {
    padding: 8rem 0;
    background: var(--earth-brown);
    position: relative;
    /* Create texture pattern using CSS */
    background-image:
        repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.02) 0px, rgba(255, 255, 255, 0.02) 2px, transparent 2px, transparent 10px),
        repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.02) 0px, rgba(255, 255, 255, 0.02) 2px, transparent 2px, transparent 10px);

}


.story-block {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
    border-left: 2px solid var(--jungle-accent);
    padding-left: 3rem;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.story-block.visible {
    opacity: 1;
    transform: translateY(0);
}

.story-block h2 {
    font-size: 3rem;
    color: var(--jungle-accent);
    margin-bottom: 2rem;
}

.story-text {
    font-size: 1.25rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
}

/* ---------------- SECTION 3: ECOSYSTEM ---------------- */
.ecosystem-section {
    padding: 6rem 0;
    background: linear-gradient(180deg, var(--earth-brown) 0%, var(--jungle-mid) 100%);
}

.section-heading {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 4rem;
    color: white;
}

.elements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.element-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: transform 0.3s;
    opacity: 0;
    transform: translateY(20px);
}

.element-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.element-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.1);
}

.chemical-symbol {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--jungle-accent);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.chemical-symbol::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 8px;
    background: rgba(255, 213, 79, 0.3);
    z-index: -1;
}

.element-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: white;
}

.element-card p {
    font-size: 0.9rem;
    opacity: 0.7;
    color: white;
}

/* ---------------- SECTION 4: BENEFITS ---------------- */
.lush-benefits {
    padding: 6rem 0;
    background: var(--jungle-dark);
}

.section-heading-start {
    font-size: 3rem;
    max-width: 400px;
    margin-bottom: 4rem;
    color: white;
}

.benefit-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.b-card {
    background: #1e3a29;
    /* Dark leaf color */
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
    opacity: 0;
    transform: translateY(30px);
}

.b-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Organic Shapes */
.b-1 {
    border-radius: 40px 0 40px 0;
    background: linear-gradient(135deg, #2e7d32, #1b5e20);
}

.b-2 {
    border-radius: 0 40px 0 40px;
    background: linear-gradient(135deg, #0277bd, #01579b);
    /* Water hint */
}

.b-3 {
    border-radius: 40px 40px 0 0;
    background: linear-gradient(135deg, #ef6c00, #e65100);
    /* Sun hint */
}

.b-4 {
    border-radius: 0 0 40px 40px;
    background: linear-gradient(135deg, #7cb342, #558b2f);
}

.b-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: white;
}

.b-card p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

/* ---------------- SECTION 5: BUY ---------------- */
.jungle-buy {
    padding: 8rem 0;
    background-color: #f1f8e9;
    /* Light clearing */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.buy-card-wrapper {
    background: white;
    border-radius: 30px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
    display: flex;
    overflow: hidden;
    max-width: 1000px;
    margin: 0 auto;
    color: var(--color-text-main);
    /* Reset text color */
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.8s ease;
}

.buy-card-wrapper.visible {
    opacity: 1;
    transform: scale(1);
}

.product-visual {
    flex: 1;
    background: #e8f5e9;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    position: relative;
}

.glow-bg {
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, #4caf50 0%, transparent 70%);
    opacity: 0.2;
}

.product-visual img {
    width: 100%;
    max-width: 300px;
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.3));
    transform: rotate(-5deg);
    transition: transform 0.5s;
}

.product-visual img:hover {
    transform: rotate(0) scale(1.05);
}

.product-details {
    flex: 1.2;
    padding: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.badge-premium {
    display: inline-block;
    background: var(--jungle-dark);
    color: var(--jungle-accent);
    padding: 0.3rem 0.8rem;
    border-radius: 99px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 1rem;
    align-self: flex-start;
}

.product-details h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--jungle-dark);
    /* Dark text for light section */
    margin-bottom: 1rem;
}

.product-desc {
    color: #555;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.specs-list {
    list-style: none;
    margin-bottom: 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    padding-left: 0;
}

.specs-list li {
    font-weight: 500;
    color: #333;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.price-block {
    margin-bottom: 2rem;
}

.price-block .price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--jungle-mid);
}

.price-block .unit {
    color: #999;
}

.btn-jungle-primary {
    background: var(--jungle-mid);
    color: white;
    padding: 1rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s;
    box-shadow: 0 10px 20px rgba(46, 125, 50, 0.3);
    display: inline-block;
}

.btn-jungle-primary:hover {
    background: var(--jungle-dark);
    transform: translateY(-3px);
}

.shipping-note {
    font-size: 0.85rem;
    color: #888;
    margin-top: 1rem;
    text-align: center;
}

/* Animations */
@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0);
    }

    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .jungle-title {
        font-size: 3rem;
    }

    .hero-container {
        padding: 0 1.5rem;
    }

    .story-block {
        padding-left: 1.5rem;
        border-left-width: 4px;
    }

    .buy-card-wrapper {
        flex-direction: column;
    }

    .product-details {
        padding: 2rem;
    }

    .product-visual {
        padding: 2rem;
    }
}

.jungle-footer {
    padding: 2rem;
    text-align: center;
    background: var(--jungle-dark);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.jungle-footer p,
.jungle-footer a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 0.9rem;
}

/* Update Nav Logo Size */
.jungle-nav .logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
}

.jungle-nav .logo img {
    height: 40px;
    /* Force small size */
    width: auto;
}

/* Header Visibility and Mobile Fixes */
.jungle-nav {
    background: rgba(15, 40, 16, 0.85);
    /* Semi-transparent dark green */
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Responsive Grids */
.grid {
    display: grid;
    gap: 2rem;
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 900px) {

    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr !important;
    }

    .jungle-hero {
        padding-top: 80px;
        /* Prevent header overlap */
    }
}

/* ---------------- SECTION 3: FOCUS CARDS ---------------- */
.jungle-focus-section {
    position: relative;
    overflow: hidden;
}

.focus-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.focus-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 12px;
    transition: all 0.3s;
    opacity: 0;
    transform: translateY(20px);
}

.focus-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.focus-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

.focus-card h3 {
    color: var(--jungle-accent);
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.focus-card p {
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
}

/* ---------------- SECTION 4: PROCESS ---------------- */
.process-visual-grid {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
    gap: 5rem;
    /* Increased gap to prevent step number overlap */
}

.process-visual-grid.visible {
    opacity: 1;
    transform: translateY(0);
}

.step-item {
    margin-bottom: 2rem;
    padding-left: 1rem;
    border-left: 3px solid #ccc;
    position: relative;
}

.step-num {
    position: absolute;
    left: -3rem;
    top: 0;
    font-size: 2rem;
    font-weight: 800;
    color: rgba(0, 0, 0, 0.1);
}

.step-item h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #1b5e20;
    font-weight: 700;
}

.step-item p {
    color: #555;
    line-height: 1.6;
}

.image-wrapper-glass {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(5px);
}

.image-wrapper-glass img {
    width: 100%;
    border-radius: 12px;
    display: block;
}

/* ---------------- SECTION 5: NUTRIENT TABLE ---------------- */
.nutrient-table {
    width: 100%;
    border-collapse: collapse;
    color: white;
}

.nutrient-table td {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nutrient-table tr:last-child td {
    border-bottom: none;
}

/* Fixed Column Targeting */
.nutrient-table td:nth-child(1) {
    font-weight: 700;
    color: var(--jungle-accent);
    padding-right: 1rem;
    vertical-align: top;
    width: 30%;
    /* Fixed width for label */
}

.nutrient-table td:nth-child(2) {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    vertical-align: top;
}

/* Remove old 3rd child rule if it existed */

@media (max-width: 768px) {
    .nutrient-table {
        display: block;
    }

    .nutrient-table tbody {
        display: block;
    }

    .nutrient-table tr {
        display: flex;
        flex-direction: column;
        margin-bottom: 1.5rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding-bottom: 1rem;
    }

    .nutrient-table tr:last-child {
        border-bottom: none;
    }

    .nutrient-table td {
        display: block;
        width: 100% !important;
        padding: 0.2rem 0;
        border: none;
    }

    .nutrient-table td:nth-child(1) {
        margin-bottom: 0.5rem;
        font-size: 1.1rem;
    }
}

/* Optional: Style 3rd column if it exists (Vermicompost) */
.nutrient-table td:nth-child(3) {
    padding-left: 1rem;
    font-size: 0.9rem;
    opacity: 0.8;
    vertical-align: top;
}

/* ---------------- SECTION 6: COMPARISON ---------------- */
.benefit-detail-card {
    background: rgba(0, 0, 0, 0.2);
    padding: 2rem;
    border-radius: 16px;
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.5s;
}

.benefit-detail-card.visible {
    opacity: 1;
    transform: scale(1);
}

.benefit-detail-card h4 {
    color: var(--jungle-accent);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.benefit-detail-card p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

.comparison-bar {
    display: flex;
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

.comp-item {
    flex: 1;
    padding: 2rem;
    border-radius: 12px;
    color: #fff;
    /* Enforce white text */
}

.comp-item p {
    color: rgba(255, 255, 255, 0.9);
    /* High contrast for body text */
}

.comp-item.bad {
    background: rgba(255, 50, 50, 0.15);
    /* Slightly more visible red */
    border: 1px solid rgba(255, 100, 100, 0.3);
    backdrop-filter: blur(5px);
}

.comp-item.good {
    background: rgba(76, 175, 80, 0.25);
    /* More visible green */
    border: 1px solid var(--jungle-light);
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
}

@media (max-width: 768px) {
    .jungle-nav .logo img {
        height: 32px;
    }

    /* Keep functional layout fixes only */
    .process-visual-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    /* Fix for process numbering visibility */
    .process-steps {
        padding-left: 3.5rem;
    }

    .step-num {
        font-size: 1.5rem;
        left: -3rem;
    }

    /* Stacking complicated components is still necessary to prevent breaking */
    .comparison-bar {
        flex-direction: column;
    }

    .buy-card-wrapper {
        flex-direction: column;
    }

    .image-wrapper-glass {
        margin-top: 2rem;
    }
}

/* ---------------- DARK MODE SUPPORT FOR JUNGLE THEME ---------------- */
body.dark-theme.jungle-theme {
    background-color: #050f05;
    /* Deepest green/black */
}

/* Override Light Sections in Dark Mode */
body.dark-theme .process-section {
    background: #0a1f0d !important;
    /* Dark Jungle */
    color: #e8f5e9 !important;
}

body.dark-theme .process-section h2 {
    color: #81c784 !important;
    /* Light Green Accent */
}

body.dark-theme .process-section p {
    color: #b0bec5 !important;
}

body.dark-theme .step-item h4 {
    color: #66bb6a !important;
}

body.dark-theme .step-item {
    border-left-color: #2e7d32;
    /* Darker border */
}

/* Update Buy Section for Dark Mode */
body.dark-theme .jungle-buy {
    background-color: #050f05;
}

body.dark-theme .buy-card-wrapper {
    background: linear-gradient(135deg, #1b3320 0%, #0d1f10 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark-theme .product-details h2 {
    color: #fff;
}

body.dark-theme .product-desc {
    color: #cfd8dc;
}

body.dark-theme .specs-list li {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: #eceff1;
}

body.dark-theme .price-block .price {
    color: #81c784;
}

/* Nav Adaptation */
body.dark-theme .jungle-nav {
    background: rgba(0, 0, 0, 0.9);
    border-bottom-color: #333;
}

/* Dropdown Dark Mode */
body.dark-theme .lang-select {
    background: #333;
    color: white;
    border-color: #555;
}

/* --- Mobile Optimization for Jungle Sections --- */
@media (max-width: 768px) {

    .jungle-focus-section,
    .roots-section,
    .process-section,
    .deep-dive-section,
    .benefits-deep,
    .jungle-buy,
    .related-products {
        padding-top: 4rem !important;
        padding-bottom: 4rem !important;
    }

    .jungle-title {
        font-size: 2.5rem !important;
        /* Smaller title on mobile */
    }

    .jungle-subtitle {
        font-size: 1.1rem !important;
    }

    .grid {
        gap: 2rem !important;
    }
}

/* --- Fix for Language Dropdown Visibility --- */
.lang-select option {
    background-color: white;
    /* Light mode background */
    color: #333;
    /* Light mode text */
}

body.dark-theme .lang-select option {
    background-color: #333;
    /* Dark mode background */
    color: white;
    /* Dark mode text */
}

/* Explicit Jungle Footer Definition */
.jungle-footer {
    background: #051907;
    /* Darkest forest green */
    color: rgba(255, 255, 255, 0.7);
    padding: 3rem 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
}

.jungle-footer a {
    color: var(--jungle-light);
    text-decoration: none;
    transition: color 0.3s;
}

.jungle-footer a:hover {
    color: var(--jungle-accent);
}

/* -----------------------------------------------------------
   PREMIUM SCROLL ANIMATIONS (Curiosity Engine)
   ----------------------------------------------------------- */

/* Base state for all animated elements */
.anim-on-scroll {
    opacity: 0;
    will-change: transform, opacity;
    transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    /* "Apple" style easing */
}

/* Visibility State */
.anim-visible {
    opacity: 1 !important;
    transform: translate(0, 0) scale(1) !important;
}

/* --- Animation Variants --- */

/* Fade Up (Standard) */
.anim-fade-up {
    transform: translateY(40px);
}

/* Fade Down */
.anim-fade-down {
    transform: translateY(-40px);
}

/* Fade from Left */
.anim-fade-right {
    transform: translateX(-40px);
}

/* Fade from Right */
.anim-fade-left {
    transform: translateX(40px);
}

/* Zoom In (Impact) */
.anim-zoom-in {
    transform: scale(0.92);
}

/* Blur Reveal (Dreamy) */
.anim-blur {
    filter: blur(10px);
    transition: opacity 1s ease, transform 1s ease, filter 1s ease;
}

.anim-blur.anim-visible {
    filter: blur(0);
}

/* --- Utility Delays --- */
.delay-100 {
    transition-delay: 100ms;
}

.delay-200 {
    transition-delay: 200ms;
}

.delay-300 {
    transition-delay: 300ms;
}

.delay-400 {
    transition-delay: 400ms;
}

.delay-500 {
    transition-delay: 500ms;
}

.delay-600 {
    transition-delay: 600ms;
}

/* Market Category Title */
.market-category-title {
    width: 100%;
    margin: 3rem 0 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(76, 175, 80, 0.2);
    font-size: 1.8rem;
    color: var(--color-text-head);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
}

body.dark-theme .market-category-title {
    color: var(--color-text-main);
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

@keyframes popIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    80% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}