:root {
    --primary-green: #a3ea50;
    --primary-green-dark: #78b432;
    --charcoal: #1F2937;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.3);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Oswald', sans-serif;
    color: var(--charcoal);
    background-color: #f9fafb;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

.animate-marquee {
    display: inline-block;
    animation: marquee 40s linear infinite;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

.animate-marquee {
    display: inline-block;
    animation: marquee 40s linear infinite;
}

/* Glassmorphism utility */
.glass-effect {
    backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.glass-dark {
    backdrop-filter: blur(16px);
    background: rgba(31, 41, 55, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.glass-semi {
    backdrop-filter: blur(8px);
    background: rgba(31, 41, 55, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Custom Gradients */
.eco-gradient {
    background: linear-gradient(135deg, #a3ea50 0%, #78b432 100%);
}

.dark-gradient {
    background: linear-gradient(135deg, #1F2937 0%, #111827 100%);
}

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

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

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Custom Header Height for Scroll Padding */
:target {
    scroll-margin-top: 80px;
}

/* Infinite Scroll for Logos */
@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-50% - 3rem));
    }
}

.logo-track {
    display: flex;
    width: max-content;
    animation: scroll 20s linear infinite;
}

.logo-track:hover {
    animation-play-state: paused;
}

/* Redesigned Tab State */
.tab-btn.active {
    background: var(--primary-green) !important;
    color: white !important;
    box-shadow: 0 10px 20px -5px rgba(163, 234, 80, 0.4);
}

/* Custom Slider Thumb */
.slider-thumb-custom::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    background: var(--primary-green);
    border: 4px solid #1f2937;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(163, 234, 80, 0.4);
    transition: all 0.3s ease;
}

.slider-thumb-custom::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 30px rgba(163, 234, 80, 0.6);
}

.slider-thumb-custom::-moz-range-thumb {
    width: 24px;
    height: 24px;
    background: var(--primary-green);
    border: 4px solid #1f2937;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(163, 234, 80, 0.4);
}

/* Floating Bottom Sub-nav */
.floating-subnav {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(120px);
    z-index: 45;
    background: rgba(31, 41, 55, 0.95);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 4rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.floating-subnav.show {
    transform: translateX(-50%) translateY(0);
}

.floating-subnav a {
    color: rgba(255, 255, 255, 0.6);
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.75rem 1.25rem;
    border-radius: 3rem;
    transition: all 0.3s ease;
}

.floating-subnav a.active {
    background: var(--primary-green);
    color: white;
}

.floating-subnav a:hover:not(.active) {
    color: white;
    background: rgba(255, 255, 255, 0.05);
}

/* Mobile Menu Robustness */
#mobile-menu {
    background-color: #1F2937 !important;
    /* Solid charcoal */
    z-index: 1000 !important;
}

#mobile-menu nav a {
    transition: all 0.3s ease;
}

/* Cartoon Flow Animations */
.animate-flow-float {
    animation: flowFloat 4s ease-in-out infinite;
}

@keyframes flowFloat {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-15px) scale(1.02);
    }
}


.flow-image-container {
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.05));
    mix-blend-mode: multiply;
}

/* Hide scrollbar for Chrome, Safari and Opera */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
.no-scrollbar {
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}