/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #000;
    background-color: #fff;
    overflow-x: hidden;
}

/* Prevent body scroll when mobile menu is open */
body.menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}

.container {
    margin: 0 auto;
    padding: 0 25px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: white;
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    height: 56px;
    position: relative;
}

/* Desktop navigation menu - centered using flexbox without absolute positioning */
.nav-menu {
    flex: 1;
    display: flex;
    justify-content: center;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav-utility {
    display: flex;
    gap: 1rem;
    margin-left: auto; /* Push utility icons to the right */
}

.nav-icon {
    color: #000;
    text-decoration: none;
    font-size: 1.1rem;
    transition: background-color 0.2s ease;
    padding: 8px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-icon:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.nav-logo {
    display: flex;
    align-items: center;
}

.nav-logo h2 {
    font-weight: 400;
    font-size: 1.25rem;
    letter-spacing: 1px;
    color: #000;
    margin: 0;
}

.nav-link {
    text-decoration: none;
    color: #000;
    font-weight: 400;
    font-size: 0.95rem;
    transition: background-color 0.2s ease;
    position: relative;
    padding: 8px 12px;
    border-radius: 4px;
}

.nav-link:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.nav-item-dropdown .dropdown-panel {
    transform: scaleY(0);
    transform-origin: top center;
}

.dropdown-trigger {
    cursor: pointer;
}

.dropdown-trigger:hover {
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: 4px;
}

.dropdown-panel {
    position: fixed;
    top: 56px; /* Align with bottom of navbar (navbar height is 56px) */
    left: 0;
    right: 0;
    width: 100%;
    margin: 0;
    background-color: white;
    border-radius: 0;
    box-shadow: 0 0 16px rgba(0, 0, 0, 0.12);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    z-index: 1001;
    padding: 50px;
    overflow: hidden;
    box-sizing: border-box;
    transform-origin: top center; /* Expand from the top (navbar edge) */
}

.nav-item-dropdown:hover .dropdown-panel,
.nav-item-dropdown.active .dropdown-panel {
    opacity: 1;
    visibility: visible;
    transform: scaleY(1);
}

.dropdown-content {
    display: flex;
    gap: 32px;
    width: 100%;
    padding: 24px;
}

/* Center columns in Discover dropdown only */
.discover-dropdown {
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
}

.dropdown-products {
    display: flex;
    gap: 24px;
    flex: 1;
}

.dropdown-product {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    min-width: 0;
}

.dropdown-product-image {
    width: 75%;
    height: 160px;
    overflow: hidden;
    background-color: white;
    margin-bottom: 12px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dropdown-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.dropdown-product-name {
    font-size: 0.95rem;
    font-weight: 500;
    color: #000;
    margin-bottom: 8px;
    text-align: center;
    white-space: nowrap;
}

.dropdown-product-links {
    display: flex;
    gap: 16px;  /* Increase from 4px to 16px (or whatever spacing you prefer) */
    align-items: center;
}

.dropdown-link {
    font-size: 0.85rem;
    color: #000;
    text-decoration: underline;  /* Changed from none to underline */
    transition: text-decoration 0.2s ease;
    white-space: nowrap;
}

.dropdown-link:hover {
    text-decoration: underline;  /* Keep underline on hover too */
}

.dropdown-info-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-end;
    padding-left: 32px;
    border-left: 1px solid rgba(0, 0, 0, 0.08);
    min-width: 180px;
}

.dropdown-info-link {
    font-size: 0.9rem;
    color: #000;
    text-decoration: none;
    text-align: right;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.dropdown-info-link:hover {
    color: #666;
    text-decoration: underline;
}

/* Column heading style for Discover dropdown */
.dropdown-info-links > div:first-child {
    font-size: 0.75rem;
    font-weight: 500;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
    padding: 0;
}

/* Adjust first column to not have border */
.dropdown-content > .dropdown-info-links:first-child {
    border-left: none;
    padding-left: 0;
    align-items: flex-start;
}

/* Adjust subsequent columns */
.dropdown-content > .dropdown-info-links:not(:first-child) {
    align-items: flex-start;
}

/* Left-align links in Discover dropdown columns */
.dropdown-content > .dropdown-info-links .dropdown-info-link {
    text-align: left;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: #000;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    height: 75vh;
    position: relative;
    overflow: hidden;
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
}

.hero-content {
    text-align: center;
    color: white;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: 3px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #22c55e;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease-out 0.4s both;
}

/* Buyback slide - move content lower */
.hero-slide-buyback .hero-content {
    transform: translateY(20vh);
}

.cta-button {
    background-color: #22c55e;
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.cta-button:hover {
    background-color: #16a34a;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(34, 197, 94, 0.3);
}

/* Hero Navigation - matching product slider button style */
.hero-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(0, 0, 0, 0.1);
    color: #000;
    font-size: 2rem;
    padding: 15px 20px;
    cursor: pointer;
    z-index: 20;
    transition: background 0.3s ease, border-color 0.3s ease;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.hero-nav:hover {
    background: rgba(255, 255, 255, 1);
    border-color: rgba(0, 0, 0, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.hero-nav-left {
    left: 30px;
}

.hero-nav-right {
    right: 30px;
}

/* Hero Dots */
.hero-dots {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-dot.active {
    background: white;
    transform: scale(1.2);
}

.scroll-indicator {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid white;
    border-bottom: 2px solid white;
    transform: rotate(45deg);
}

/* Stats Section */
.stats {
    padding: 10px 0;
}

/* Product Showcase Slider */
.product-showcase {
    padding: 25px 25px 60px 25px; /* Added bottom padding for dots */
    position: relative; /* Ensure positioning context for navigation buttons */
}

.product-slider {
    position: relative;
    margin: 0 auto;
    overflow: hidden; /* viewport */
    transform: none; /* ensure viewport itself never translates */
    touch-action: pan-y pinch-zoom; /* Allow vertical scroll and pinch zoom */
    -webkit-overflow-scrolling: touch; /* Smooth iOS scrolling */
    z-index: 1; /* Create stacking context for children */
}

/* inner sliding track */
.product-track {
    display: flex;
    gap: 24px; /* horizontal gutter between items */
    padding: 0 12px; /* inset so outer edges don't touch */
    transition: transform 0.5s ease;
    will-change: transform;
}

.product-slide {
    flex: 0 0 auto; /* do not stretch/shrink; width controls sizing */
    display: flex;
    justify-content: flex-start; /* left align cards within each slide */
    align-items: stretch;
    padding: 0 12px; /* balances the 24px gap */
    box-sizing: border-box;
    width: auto;
    min-width: calc(100% - 24px); /* full viewport minus gutters on small screens */
}

.product-slide .product-card {
    position: relative; /* ensure absolute children are contained per card */
    width: 100%;
    max-width: none; /* fill the slide width */
    height: 500px;
    border-radius: 24px;
    overflow: hidden;
    background: #000;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin: 0; /* avoid auto-centering inside slide */
}

/* Responsive card display */
/* Enforce a responsive minimum width of ~800px when space allows */
@media (min-width: 900px) {
    .product-slide {
        width: auto;
        min-width: 800px; /* at least 800px on wider screens */
    }
}

.product-card .product-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.product-card .product-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
    transition: transform 0.3s ease;
}

.product-card .product-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    color: white;
}

.product-category {
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0.9;
    margin-bottom: 0.5rem;
}

.product-name {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.product-label {
    font-size: 1rem;
    font-weight: 600;
    color: #22c55e;
    margin-bottom: 2rem;
    text-decoration: underline;
}

/* Push name + label to the bottom of the card, above buttons */
.product-name {
    margin-top: auto;
}

.product-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 0.75rem;
}

.btn-primary {
    background-color: #22c55e;
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
}

.btn-primary:hover {
    background-color: #22c55e;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: white;
    border: 2px solid white;
    padding: 10px 24px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
}

.btn-secondary:hover {
    background-color: white;
    color: #000;
    transform: translateY(-2px);
}

/* Product Navigation - positioned relative to .product-showcase to stay fixed above cards */
.product-showcase .product-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(0, 0, 0, 0.1);
    color: #000;
    font-size: 2rem;
    padding: 15px 20px;
    cursor: pointer;
    z-index: 200; /* High z-index to appear above all cards (cards have z-index: 2) */
    transition: background 0.3s ease, border-color 0.3s ease;
    pointer-events: auto; /* Ensure clicks work */
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.product-showcase .product-nav:hover {
    background: rgba(255, 255, 255, 1);
    border-color: rgba(0, 0, 0, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.product-showcase .product-nav-left {
    left: 20px;
}

.product-showcase .product-nav-right {
    right: 20px;
}

/* Product Dots */
.product-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
    position: relative; /* Ensure they're in normal flow */
    z-index: 10; /* Ensure they're above other elements */
    padding-bottom: 10px; /* Extra space at bottom */
}

.product-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.product-dot.active {
    background: #22c55e;
    transform: scale(1.2);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    text-align: center;
}

.stat-item {
    padding: 2rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: #22c55e;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #000;
}

.stat-description {
    color: #666;
    font-size: 0.95rem;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #000;
}

.section-header p {
    font-size: 1.1rem;
    color: #666;
}


/* Footer */
.footer {
    padding: 60px 0 20px;
}

/* Footer Navigation - Tesla Style */
.footer-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    padding-bottom: 2rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-nav-logo {
    font-weight: 700;
    font-size: 1rem;
    color: grey;
    text-decoration: none;
    letter-spacing: 1px;
}

.footer-copyright {
    color: grey;
    font-size: 0.9rem;
}

.footer-nav-link {
    color: grey;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    white-space: nowrap;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Hide desktop menu from flex layout on mobile */
    .nav-menu {
        position: fixed !important;
        left: -100% !important;
        top: 0 !important; /* Start menu below navbar instead of at top: 0 */
        flex: none !important; /* Remove flex: 1 to prevent taking up space */
        width: 100vw !important;
        max-width: 100vw !important;
        height: 100vh; /* Full viewport height for scrolling */
        flex-direction: column;
        align-items: flex-start; /* Align items to the top */
        justify-content: flex-start; /* Start content at the top */
        background-color: white !important;
        text-align: left;
        transition: left 0.3s ease;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
        padding: 56px 0 0 0; /* Add 56px top padding to push menu items below navbar */
        z-index: 1001;
        overflow-y: auto; /* Enable vertical scrolling for full menu content */
        overflow-x: hidden; /* Prevent horizontal scroll */
        transform: none !important;
        margin: 0 !important;
        box-sizing: border-box;
        pointer-events: auto;
        /* Removed isolation: isolate - it creates a stacking context that traps ::before with z-index: -1 */
        list-style: none; /* Remove default list styling */
    }
    
    .hamburger {
        display: flex;
        margin-left: auto; /* Push hamburger to the right */
        align-items: center; /* Vertically center the bars */
        padding: 8px; /* Add padding for better touch target */
    }
    
    .nav-utility {
        display: none; /* Hide utility icons on mobile */
    }
    
    /* Backdrop overlay for mobile menu - use negative z-index to ensure it's behind menu content */
    .nav-menu::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.5);
        opacity: 0;
        visibility: hidden;
        transition: none;
        z-index: -1; /* Negative z-index places it behind menu content within the same stacking context */
        pointer-events: none; /* Never block clicks */
    }
    
    .nav-menu.active::before {
        opacity: 1;
        visibility: visible;
        pointer-events: none; /* Keep it non-interactive */
    }
    
    /* Ensure menu items are above backdrop and clickable */
    .nav-menu.active {
        left: 0 !important;
        /* Removed right: 0 - not needed when using left positioning */
        pointer-events: auto;
        scroll-behavior: smooth; /* Smooth scrolling when menu opens */
    }
    
    /* Ensure all menu content is above backdrop */
    .nav-menu.active > * {
        position: relative;
        z-index: 1;
        pointer-events: auto;
    }
    
    .nav-menu.active .nav-link,
    .nav-menu.active .nav-item-dropdown {
        pointer-events: auto;
        position: relative;
        z-index: 2; /* Higher z-index for clickable items */
    }
    
    /* Close button in top right - only visible when menu active */
    .nav-menu::after {
        content: '';
        position: fixed;
        top: 20px;
        right: 20px;
        font-size: 2rem;
        color: #000;
        cursor: pointer;
        z-index: 1002;
        line-height: 1;
        font-weight: 300;
        pointer-events: none;
        background-color: transparent; /* Ensure no background blocking */
    }

    .nav-menu.active::after {
        content: '×';
        pointer-events: auto;
    }
    
    .nav-item-dropdown {
        width: 100%;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
        position: relative;
        z-index: 2; /* Ensure above backdrop */
        margin: 0; /* Ensure no margin pushing items off screen */
    }
      /* Ensure first menu item starts at the very top and is visible */
    .nav-menu > .nav-item-dropdown:first-child {
        margin-top: 0;
        padding-top: 0;
        border-top: none;
    }
    
    .nav-link {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 20px 24px;
        font-size: 1rem;
        color: #000;
        text-decoration: none;
        width: 100%;
        position: relative;
        z-index: 2; /* Ensure above backdrop */
        pointer-events: auto; /* Ensure clickable */
        background-color: white; /* Ensure white background on links */
    }
    
    .nav-link::after {
        content: '›';
        font-size: 1.2rem;
        color: #666;
        transition: transform 0.3s ease;
    }
    
    /* Rotate chevron when dropdown is active */
    .nav-item-dropdown.active .nav-link::after {
        transform: rotate(90deg);
    }
    
    /* Dropdown menu on mobile - simple list */
    .dropdown-panel {
        position: static !important;
        transform: none !important;
        margin: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        left: 0 !important;
        right: 0 !important;
        padding: 0;
        opacity: 1;
        visibility: visible;
        box-shadow: none;
        border-radius: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.5s ease; /* Slightly longer transition for smoother expansion */
        background-color: #f9f9f9;
        box-sizing: border-box;
    }
    
    .nav-item-dropdown.active .dropdown-panel {
        max-height: none; /* Remove height restriction to allow full content */
        overflow: visible; /* Ensure all content is visible and scrollable via parent */
    }
    
    /* Ensure dropdown content starts at the top when expanded */
    .nav-item-dropdown.active .dropdown-content {
        padding-top: 0;
        margin-top: 0;
        margin-bottom: 0;
        padding-bottom: 0;
    }
    
    /* Ensure dropdown products container has no negative spacing */
    .nav-item-dropdown.active .dropdown-products {
        margin-top: 0;
        margin-bottom: 0;
        padding-top: 0;
        padding-bottom: 0;
    }
    
    /* Ensure first product in dropdown is visible and not clipped */
    .nav-item-dropdown.active .dropdown-products > .dropdown-product:first-child {
        margin-top: 0;
        margin-bottom: 0;
        padding-top: 16px;
        padding-bottom: 16px;
        border-top: none;
        position: relative;
        z-index: 1;
    }
    
    .dropdown-content {
        flex-direction: column;
        gap: 0;
        padding: 0;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
    }
    
    /* Hide product images on mobile */
    .dropdown-products {
        flex-direction: column;
        gap: 0;
        padding: 0;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
    }
    
    .dropdown-product {
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        padding: 16px 24px;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        margin: 0; /* Ensure no margin */
    }
    
    .dropdown-product-image {
        display: flex; /* Show images on mobile */
        width: 100%;
        max-width: 200px;
        height: 120px;
        overflow: hidden;
        background-color: white;
        margin-bottom: 12px;
        border-radius: 4px;
        align-items: center;
        justify-content: center;
    }
    
    .dropdown-product-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }
    
    .dropdown-product-name {
        font-size: 1rem;
        font-weight: 500;
        margin-bottom: 12px;
        text-align: left;
    }
    
    .dropdown-product-links {
        display: flex;
        gap: 16px;
    }
    
    .dropdown-link {
        font-size: 0.9rem;
        padding: 8px 16px;
        border: 1px solid rgba(0, 0, 0, 0.2);
    }
    
    .dropdown-columns {
        flex-direction: column;
        gap: 0;
    }
    
    /* Simple list for dropdown info links */
    .dropdown-info-links {
        border: none;
        padding: 0;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
    }
    
    .dropdown-info-links > div:first-child {
        padding: 16px 24px 8px;
        font-size: 0.85rem;
        font-weight: 600;
        color: #666;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        border-bottom: none;
    }
    
    .dropdown-info-link {
        display: block;
        padding: 12px 24px;
        font-size: 0.95rem;
        color: #000;
        text-decoration: none;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        transition: background-color 0.2s ease;
    }
    
    .dropdown-info-link:hover {
        background-color: rgba(0, 0, 0, 0.03);
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .product-slide .product-card {
        height: 400px;
        max-width: 350px;
    }
    
    .product-name {
        font-size: 2rem;
    }
    
    .product-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .product-showcase .product-nav {
        font-size: 1.5rem;
        padding: 10px 15px;
    }
    
    .product-showcase .product-nav-left {
        left: 10px;
    }
    
    .product-showcase .product-nav-right {
        right: 10px;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .footer-nav {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .footer-nav-logo {
        margin-right: 0;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-description {
        font-size: 0.9rem;
        padding: 0 10px;
    }
    
    .cta-button {
        padding: 12px 30px;
        font-size: 1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    /* Buyback slide content positioning on small screens */
    .hero-slide-buyback .hero-content {
        transform: translateY(10vh);
    }
    
    /* Chat panel adjustments for very small screens */
    .right-chat-panel {
        max-height: 85vh;
    }
    
    .right-chat-header {
        padding: 10px 12px;
    }
    
    .chat-tab {
        padding: 5px 10px;
        font-size: 0.8rem;
    }
    
    .tab-icon {
        font-size: 1rem;
    }
    
    .tab-label {
        font-size: 0.75rem;
    }
    
    /* Navigation adjustments */
    .nav-container {
        padding: 0 16px;
    }
    
    .nav-logo h2 {
        font-size: 1.1rem;
    }
}

/* Sticky Footer */
.sticky-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 15px 0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .sticky-footer {
        z-index: 998; /* Below mobile menu (1001) */
    }
}

.sticky-footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.sticky-item-wrapper {
    display: flex;
    align-items: center;
    justify-content: center; /* Center content horizontally */
    gap: 0;
    background-color: #fff;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    overflow: hidden;
    transition: border-color 0.3s ease;
    flex: 0 0 auto;
    width: fit-content;
    max-width: 280px;
}

.sticky-item-wrapper:hover {
    border-color: #22c55e;
}

.sticky-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    cursor: pointer;
    transition: color 0.3s ease;
    padding: 10px 12px;
    width: 100%;
    text-align: center; /* Center the text content */
}

.sticky-item:hover {
    color: #22c55e;
}

.sticky-icon {
    font-size: 0.6rem;
}

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

.sticky-label {
    font-weight: 600;
    font-size: 0.9rem;
    color: #000;
}

.sticky-subtitle {
    font-size: 0.8rem;
    color: #666;
}

/* Footer Question Input Component */
.footer-question-container {
    display: flex;
    flex-direction: column;
    gap: 0;
    flex: 1;
    max-width: 600px;
}

.footer-question-label {
    font-weight: 600;
    font-size: 0.9rem;
    color: #666;
    margin: 0;
    padding: 10px 12px 10px 16px;
    white-space: nowrap;
    border-right: 1px solid rgba(0, 0, 0, 0.1);
}

.footer-question-input-wrapper {
    display: flex;
    align-items: center;
    gap: 0;
    background-color: #fff;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.footer-question-input-wrapper:focus-within {
    border-color: #22c55e;
}

.footer-question-input {
    flex: 1;
    padding: 10px 16px;
    font-size: 0.9rem;
    color: #000;
    background-color: transparent;
    border: none;
    outline: none;
    transition: all 0.3s ease;
}

.footer-question-input::placeholder {
    color: #999;
    transition: opacity 0.3s ease;
}

.footer-question-button {
    padding: 12px 20px;
    background-color: #22c55e;
    color: #fff;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    margin: 0;
    vertical-align: top;
}

.footer-question-button:hover {
    background-color: #16a34a;
}

.footer-question-button:active {
    background-color: #15803d;
}

/* Message bubble button for mobile */
.footer-message-bubble {
    display: none; /* Hidden on desktop */
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: #fff;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 0;
    margin: 0;
}

.footer-message-bubble:hover {
    background-color: #f5f5f5;
    border-color: #22c55e;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.footer-message-bubble:active {
    transform: scale(0.95);
}

@media (max-width: 768px) {
    .footer-message-bubble {
        display: flex; /* Show bubble on mobile */
    }
}

@media (min-width: 769px) {
    .footer-message-bubble {
        display: none; /* Hide bubble on desktop */
    }
    
    .footer-question-input-wrapper {
        display: flex; /* Show full input on desktop */
    }
}

.sticky-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.sticky-arrow {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    font-weight: bold;
}

.sticky-arrow:hover {
    background: #22c55e;
    color: white;
    transform: translateY(-2px);
}

/* Mobile adjustments for sticky footer */
@media (max-width: 768px) {
    .sticky-footer {
        padding: 0;
    }
    
    .sticky-footer-content {
        flex-direction: row;
        gap: 10px;
        padding: 12px 16px;
        align-items: center;
        justify-content: space-between;
    }
    
    /* Hide the full question input on mobile */
    .footer-question-container {
        width: auto;
        max-width: none;
        flex: 0 0 auto;
    }
    
    .footer-question-input-wrapper {
        display: none; /* Hide full input on mobile */
    }
    
    /* Simplify Schedule Delivery on mobile */
    .sticky-item-wrapper {
        flex: 1;
    }
    
    .sticky-item {
        justify-content: flex-start;
        padding: 0;
        text-align: left;
    }
    
    .sticky-icon {
        font-size: 1.2rem;
        margin-right: 8px;
    }
    
    .sticky-label {
        font-size: 0.85rem;
    }
    
    .sticky-center {
        order: -1;
    }
    
    .sticky-subtitle {
        font-size: 0.7rem;
    }
}

/* AI Assistant Modal */
.ai-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    backdrop-filter: blur(5px);
}

.ai-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.ai-modal-content {
    background: white;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.ai-header {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ai-header h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.ai-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.ai-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.ai-chat-container {
    display: flex;
    flex-direction: column;
    height: 400px;
}

.ai-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: #f8fafc;
}

.ai-message {
    display: flex;
    margin-bottom: 15px;
    animation: messageSlideIn 0.3s ease-out;
}

@keyframes messageSlideIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.ai-message.ai-user {
    flex-direction: row-reverse;
}

.ai-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin: 0 10px;
    flex-shrink: 0;
}

.ai-bot .ai-avatar {
    background: #22c55e;
}

.ai-user .ai-avatar {
    background: #3b82f6;
}

.ai-text {
    background: white;
    padding: 12px 16px;
    border-radius: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    max-width: 80%;
}

.ai-user .ai-text {
    background: #3b82f6;
    color: white;
}

.ai-text p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.4;
}

.ai-input-container {
    padding: 20px;
    background: white;
    border-top: 1px solid #e5e7eb;
    display: flex;
    gap: 10px;
}

#aiInput {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 25px;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.3s ease;
}

#aiInput:focus {
    border-color: #22c55e;
}

#aiSendBtn {
    background: #22c55e;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

#aiSendBtn:hover {
    background: #16a34a;
    transform: translateY(-1px);
}

#aiSendBtn:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
}

/* Right-Side Chat Panel */
.right-chat-panel {
    position: fixed;
    right: 0;
    bottom: 0;
    width: 400px;
    max-height: 80vh;
    background: white;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
    z-index: 1500;
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform 0.3s ease-out;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    overflow: hidden;
}

.right-chat-panel.active {
    transform: translateY(0);
}

.right-chat-header {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.chat-tabs {
    display: flex;
    gap: 8px;
    flex: 1;
}

.chat-tab {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    color: white;
    padding: 8px 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    font-weight: 500;
}

.chat-tab:hover {
    background: rgba(255, 255, 255, 0.3);
}

.chat-tab.active {
    background: rgba(255, 255, 255, 0.9);
    color: #22c55e;
    border-color: rgba(255, 255, 255, 0.9);
}

.tab-icon {
    font-size: 1.1rem;
}

.tab-label {
    font-size: 0.85rem;
}

.chat-content-wrapper {
    position: relative;
    flex: 1;
    overflow: hidden;
    min-height: 300px;
    max-height: calc(80vh - 140px);
}

.right-chat-messages {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 20px;
    overflow-y: auto;
    background: #f8fafc;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    box-sizing: border-box;
}

.right-chat-messages.active {
    opacity: 1;
    visibility: visible;
}

.right-chat-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.right-chat-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.right-chat-input-container {
    padding: 20px;
    background: white;
    border-top: 1px solid #e5e7eb;
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

#rightChatInput {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 25px;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.3s ease;
}

#rightChatInput:focus {
    border-color: #22c55e;
}

#rightChatSendBtn {
    padding: 12px 24px;
    background: #22c55e;
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

#rightChatSendBtn:hover {
    background: #16a34a;
}

/* Right chat message styles (reuse from AI modal) */
.right-chat-messages .ai-message {
    display: flex;
    margin-bottom: 15px;
    animation: messageSlideIn 0.3s ease-out;
}

.right-chat-messages .ai-message.ai-user {
    flex-direction: row-reverse;
}

.right-chat-messages .ai-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin: 0 10px;
    flex-shrink: 0;
}

.right-chat-messages .ai-bot .ai-avatar {
    background: #22c55e;
}

.right-chat-messages .ai-user .ai-avatar {
    background: #3b82f6;
}

.right-chat-messages .ai-text {
    background: white;
    padding: 12px 16px;
    border-radius: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    max-width: 80%;
}

.right-chat-messages .ai-user .ai-text {
    background: #3b82f6;
    color: white;
}

.right-chat-messages .ai-text p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.4;
}

/* Mobile AI Modal */
@media (max-width: 768px) {
    .ai-modal-content {
        width: 95%;
        max-height: 90vh;
    }
    
    .ai-chat-container {
        height: 350px;
    }
    
    .ai-messages {
        padding: 15px;
    }
    
    .ai-text {
        max-width: 85%;
    }
    
    .ai-input-container {
        padding: 15px;
    }
}

/* (Removed wide single-card override to restore multi-card viewport and left alignment) */

/* Farm Map Section */
.farm-map {
    padding: 25px 25px;
}

#map-container {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden; /* Ensure map doesn't break out */
    position: relative;
    height: 600px; /* Explicit container height */
    width: 100%; /* Full width of container */
    /* Optional: Add max-width and margin: 0 auto; if you want narrower map */
    /* max-width: 800px; */
    /* margin: 0 auto; */
}

#farm-map {
    height: 100% !important; /* Force full height */
    width: 100% !important; /* Force full width */
    overflow: hidden; /* Contain map tiles during pan/zoom */
    border-radius: 12px; /* Match container */
}

.map-info {
    font-size: 1.1rem;
    color: #666;
}

#selected-location {
    margin-bottom: 1rem;
    font-weight: 500;
}

/* Custom marker styling (optional) */
.farm-marker {
    background: transparent;
    border: none;
    text-align: center;
    line-height: 30px;
}

/* Leaflet control positioning to stay inside container */
.leaflet-control-container {
    z-index: 2;
}

/* Left-align the moved map header and description */
.map-footer-header {
    text-align: left;
    margin-top: 1rem;
}

/* Map info left alignment */
.map-info {
    text-align: left;
}

/* Map header row - heading and counters on same line */
.map-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
}

.map-header-row .map-footer-header {
    flex: 1;
    margin-top: .5rem;
    margin-bottom: 0;
}

.map-header-row .map-footer-header h2 {
    margin-bottom: 0.5rem;
}

/* Network stats inline within map section */
.network-stats-inline {
    display: flex;
    justify-content: flex-end;
    gap: 4rem;
    align-items: center;
    flex-shrink: 0;
}

/* Map button container - closer to text above */
.map-button-container {
    margin-top: 1rem;
    text-align: left;
}

.network-stat-item {
    text-align: right;
}

.network-stat-item .stat-number {
    font-size: 4rem;
    font-weight: 800;
    color: #22c55e;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.network-stat-item .stat-label {
    font-size: 1.3rem;
    font-weight: 600;
    color: #000;
}

@media (max-width: 768px) {
    .map-header-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 2rem;
    }
    
    .network-stats-inline {
        flex-direction: row;
        justify-content: flex-start;
        gap: 2rem;
        width: 100%;
    }
    
    .network-stat-item {
        text-align: left;
    }
    
    .network-stat-item .stat-number {
        font-size: 3rem;
    }
    
    /* Right-Side Chat Panel - Mobile Responsive */
    .right-chat-panel {
        width: 100%;
        max-width: 100%;
        right: 0;
        left: 0;
        border-top-left-radius: 12px;
        border-top-right-radius: 12px;
        max-height: 90vh;
    }
    
    .right-chat-header {
        padding: 12px 16px;
    }
    
    .chat-tabs {
        gap: 6px;
    }
    
    .chat-tab {
        padding: 6px 12px;
        font-size: 0.85rem;
    }
    
    .tab-label {
        font-size: 0.8rem;
    }
    
    .right-chat-input-container {
        padding: 16px;
    }
    
    #rightChatInput {
        font-size: 0.9rem;
        padding: 10px 14px;
    }
    
    #rightChatSendBtn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .right-chat-messages {
        padding: 16px;
    }
    
    /* Hero navigation buttons - smaller on mobile */
    .hero-nav {
        font-size: 1.5rem;
        padding: 12px 16px;
    }
    
    .hero-nav-left {
        left: 10px;
    }
    
    .hero-nav-right {
        right: 10px;
    }
    
    /* Product showcase adjustments */
    .product-showcase {
        padding: 40px 15px 60px;
    }
}

/* Tablet styles (768px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .right-chat-panel {
        width: 350px;
    }
    
    .nav-menu {
        gap: 1.5rem;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.8rem;
    }
}
