/* Global Resets & Base Styles */
:root {
    --primary-black: #000000;
    --primary-white: #FFFFFF;
    --accent-silver: #A9A9A9;
    /* A matte silver */
    --accent-grey: #333333;
    /* Darker grey for contrast */
    --accent-energetic: #00A9FF;
    /* Electric Blue */
    --font-headline: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--primary-white);
    background-color: var(--primary-black);
    line-height: 1.6;
    font-size: 16px;
    /* Base font size for mobile */
    overflow-x: hidden;
    /* Prevent horizontal scroll */
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 15px;
}

h1,
h2,
h3 {
    font-family: var(--font-headline);
    font-weight: 700;
    color: var(--primary-white);
    margin-bottom: 1rem;
    line-height: 1.2;
}

h1 {
    font-size: 2.8rem;
    /* Mobile first */
    font-weight: 900;
    text-transform: uppercase;
}

h2 {
    font-size: 2.2rem;
    /* Mobile first */
    text-align: center;
    margin-bottom: 2.5rem;
    text-transform: uppercase;
}

h3 {
    font-size: 1.6rem;
    /* Mobile first */
    color: var(--accent-energetic);
}

p {
    margin-bottom: 1rem;
    font-size: 1rem;
    /* Mobile first */
}

a {
    text-decoration: none;
    color: var(--accent-energetic);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.cta-button {
    display: inline-block;
    background-color: var(--accent-energetic);
    color: var(--primary-black);
    padding: 12px 28px;
    border-radius: 5px;
    font-family: var(--font-headline);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: 2px solid var(--accent-energetic);
}

.cta-button:hover {
    background-color: transparent;
    color: var(--accent-energetic);
    transform: translateY(-3px);
}

.content-section {
    padding: 60px 0;
}

.alt-bg {
    background-color: var(--accent-grey);
}

/* Header / Navigation */
#main-header {
    background-color: rgba(0, 0, 0, 0.8);
    color: var(--primary-white);
    padding: 1rem 0;
    position: fixed;
    /* Keep fixed to stay on top */
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1001;
    /* Higher z-index to be above the mobile nav overlay */
    transition: background-color 0.3s ease;
}

#main-header.scrolled {
    background-color: var(--primary-black);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

#main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#main-header .logo {
    font-family: var(--font-headline);
    font-weight: 900;
    font-size: 1.8rem;
    color: var(--primary-white);
}

/* Desktop Navigation - Hidden by default, shown on larger screens */
#desktop-nav {
    display: none;
    /* Hidden on mobile by default */
}

#desktop-nav ul {
    list-style: none;
    display: flex;
}

#desktop-nav ul li {
    margin-left: 25px;
}

#desktop-nav ul li a {
    color: var(--primary-white);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

#desktop-nav ul li a:hover,
#desktop-nav ul li a.active {
    color: var(--accent-energetic);
}

/* Mobile Menu Toggle - Shown by default on mobile, hidden on larger screens */
#mobile-menu-toggle {
    display: block;
    /* Shown on mobile by default */
    background: none;
    border: none;
    color: var(--primary-white);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1002;
    /* Ensure toggle button is above everything */
    position: relative;
    /* Needed for z-index to work against mobile-nav */
}

/* Mobile Navigation Overlay */
#mobile-nav {
    position: fixed;
    /* Crucial for full-screen overlay */
    top: 0;
    /* Starts from the very top */
    left: 0;
    width: 100%;
    height: 100vh;
    /* Takes full viewport height */
    background-color: rgba(0, 0, 0, 0.95);
    /* Semi-transparent dark background */
    z-index: 1000;
    /* Ensure it's above content but below header */
    display: flex;
    /* Use flexbox for centering content */
    align-items: center;
    /* Center vertically */
    justify-content: center;
    /* Center horizontally */
    transform: translateX(100%);
    /* Start off-screen to the right */
    transition: transform 0.4s ease-out;
    /* Animate the slide */
}

#mobile-nav.open {
    transform: translateX(0);
    /* Slide in */
}

#mobile-nav ul {
    list-style: none;
    padding: 0;
    width: 100%;
    /* Take full width of the overlay */
    text-align: center;
}

#mobile-nav ul li {
    margin: 1.5rem 0;
    /* More spacing for full-screen links */
}

#mobile-nav ul li a {
    color: var(--primary-white);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 1.6rem;
    /* Larger font size for full-screen */
    display: block;
    padding: 1rem;
    transition: background-color 0.3s ease, color 0.3s ease, font-weight 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    /* Subtle separator */
}

#mobile-nav ul li:last-child a {
    border-bottom: none;
    /* No separator for the last item */
}

#mobile-nav ul li a:hover {
    color: var(--accent-energetic);
    background-color: var(--accent-grey);
    /* Highlight on hover */
}

#mobile-nav ul li a.active {
    color: var(--accent-energetic);
    font-weight: 900;
    /* Make active link bolder */
    background-color: rgba(0, 169, 255, 0.1);
    /* Subtle background for active link */
}


/* Hero Section */
#hero {
    height: 100vh;
    min-height: 600px;
    /* Ensure it's tall enough on smaller viewports */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    /* Ensure video/overlay doesn't spill */
    padding-top: 60px;
    /* Account for fixed header */
}

#hero .video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    /* Behind the content */
}

#hero #hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Cover the area, crop if needed */
}

#hero .video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    /* Dark overlay for text readability */
    z-index: 0;
}

#hero .content {
    position: relative;
    /* To be above the overlay */
    z-index: 1;
}

#hero h1 {
    color: var(--primary-white);
    margin-bottom: 0.5rem;
    /* Tighter spacing for hero */
}

#hero .sub-headline {
    font-size: 1.1rem;
    /* Mobile first */
    color: var(--accent-silver);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Revolution Section */
#revolution .revolution-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
}

#revolution .revolution-text p {
    font-size: 1.05rem;
}

#revolution .revolution-visuals {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

#revolution .revolution-visuals img {
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

#revolution .problem-img {
    border: 3px solid red;
    /* Example to highlight problem */
}

#revolution .solution-img {
    border: 3px solid var(--accent-energetic);
}

#revolution .recycling-fact {
    text-align: center;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent-energetic);
    margin-top: 2rem;
    border: 1px dashed var(--accent-silver);
    padding: 1rem;
    border-radius: 5px;
}


/* The Can Section */
#the-can .can-intro-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
}

#the-can .can-visuals {
    display: flex;
    flex-direction: column;
    /* Stack images on mobile */
    gap: 1.5rem;
    align-items: center;
    /* Center images when stacked */
}

#the-can .product-shot {
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    max-width: 300px;
    /* Control size on mobile */
}

#the-can .product-shot.lifestyle-hint {
    /* Add specific styles if needed */
}

#the-can .can-description h3 {
    margin-bottom: 1rem;
}

#the-can .can-description ul {
    list-style: none;
    padding-left: 0;
}

#the-can .can-description ul li {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

#the-can .can-description ul li i {
    color: var(--accent-energetic);
    margin-right: 10px;
    font-size: 1.2em;
}

#the-can .lifestyle-integration {
    margin-top: 3rem;
    text-align: center;
}

#the-can .lifestyle-gallery {
    display: flex;
    flex-wrap: wrap;
    /* Allow wrapping on smaller screens */
    justify-content: space-around;
    gap: 1rem;
    margin-top: 1.5rem;
}

#the-can .lifestyle-gallery img {
    width: calc(50% - 0.5rem);
    /* Two images per row on smaller screens */
    max-width: 250px;
    /* Max width for images */
    border-radius: 8pt;
    object-fit: cover;
    aspect-ratio: 1 / 1;
    /* Make them square-ish */
}


/* Lifestyle Section */
#lifestyle .manifesto-content p {
    font-size: 1.1rem;
    text-align: center;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1.5rem;
}

#lifestyle .manifesto-content p:last-child {
    font-weight: 700;
    color: var(--accent-energetic);
    font-size: 1.2rem;
}

#lifestyle .lifestyle-visuals-montage {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* 2 columns for mobile */
    gap: 1rem;
    margin-top: 2rem;
}

#lifestyle .lifestyle-visuals-montage img {
    width: 100%;
    border-radius: 8px;
    object-fit: cover;
    aspect-ratio: 4 / 3;
    /* Maintain aspect ratio */
}

/* Social Proof Section */
#social-proof .community-statement {
    text-align: center;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 2rem auto;
}

#social-proof .social-media-links-inline {
    text-align: center;
}

#social-proof .social-media-links-inline a {
    font-size: 2rem;
    margin: 0 1rem;
    color: var(--primary-white);
    transition: color 0.3s ease;
}

#social-proof .social-media-links-inline a:hover {
    color: var(--accent-energetic);
}

/* Signup Section */
#signup h2 {
    margin-bottom: 1rem;
}

#signup>.container>p {
    /* Direct child p for intro text */
    text-align: center;
    max-width: 500px;
    margin: 0 auto 2rem auto;
    font-size: 1.05rem;
}

#email-form {
    max-width: 500px;
    margin: 0 auto 2rem auto;
    text-align: center;
}

#email-form .form-group {
    margin-bottom: 1rem;
}

#email-form input[type="text"],
#email-form input[type="email"] {
    width: 100%;
    padding: 12px 15px;
    border-radius: 5px;
    border: 1px solid var(--accent-silver);
    background-color: var(--accent-grey);
    color: var(--primary-white);
    font-family: var(--font-body);
    font-size: 1rem;
}

#email-form input[type="text"]::placeholder,
#email-form input[type="email"]::placeholder {
    color: #bbb;
}

#email-form .cta-button {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
}

#email-form .privacy-note {
    font-size: 0.8rem;
    color: var(--accent-silver);
    margin-top: 0.8rem;
}

.form-message {
    margin-top: 1rem;
    padding: 10px;
    border-radius: 5px;
    font-weight: bold;
    display: none;
    /* Hidden by default */
}

.form-message.success {
    background-color: #28a745;
    /* Green for success */
    color: white;
    display: block;
}

.form-message.error {
    background-color: #dc3545;
    /* Red for error */
    color: white;
    display: block;
}

#signup .final-cta-visual {
    margin-top: 3rem;
    text-align: center;
}

#signup .final-cta-visual img {
    max-width: 300px;
    border-radius: 10px;
    border: 3px solid var(--accent-energetic);
}


/* Footer */
footer {
    background-color: var(--accent-grey);
    color: var(--accent-silver);
    padding: 40px 0 20px 0;
    text-align: center;
}

footer .footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

footer .logo-footer {
    font-family: var(--font-headline);
    font-weight: 900;
    font-size: 1.8rem;
    color: var(--primary-white);
    margin-bottom: 0.2rem;
}

footer .footer-brand p:last-child {
    font-size: 0.9rem;
}

footer .footer-links a {
    color: var(--accent-silver);
    margin: 0 10px;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

footer .footer-links a:hover {
    color: var(--primary-white);
}

footer .footer-social a {
    color: var(--accent-silver);
    font-size: 1.5rem;
    margin: 0 10px;
    transition: color 0.3s ease;
}

footer .footer-social a:hover {
    color: var(--accent-energetic);
}

footer .copyright {
    font-size: 0.8rem;
    margin-top: 1rem;
    border-top: 1px solid #444;
    padding-top: 1rem;
}

/* --- Responsive Adjustments --- */

/* Mobile-first approach: These styles apply to ALL screen sizes unless overridden */

/* Header & Navigation on Mobile */
#desktop-nav {
    display: none;
    /* Hide desktop nav on mobile */
}

#mobile-menu-toggle {
    display: block;
    /* Show mobile toggle on mobile */
}

/* Medium Devices (Tablets, etc.) - Apply from 768px and up */
@media (min-width: 768px) {
    body {
        font-size: 17px;
    }

    h1 {
        font-size: 3.8rem;
    }

    h2 {
        font-size: 2.8rem;
    }

    h3 {
        font-size: 1.8rem;
    }

    p {
        font-size: 1.05rem;
    }

    #hero .sub-headline {
        font-size: 1.3rem;
    }

    /* Show desktop nav and hide mobile toggle on tablet/desktop */
    #desktop-nav {
        display: block;
        /* Show desktop nav */
    }

    #mobile-menu-toggle {
        display: none;
        /* Hide mobile menu toggle */
    }

    /* Ensure mobile nav is off-screen/hidden on desktop */
    #mobile-nav {
        transform: translateX(100%);
        /* Keep it off-screen */
        /* Important: Reset specific properties that might cause issues on desktop */
        position: absolute;
        /* or unset, or relative based on parent flow */
        height: auto;
        background-color: transparent;
        z-index: 1;
        /* Lower z-index for desktop to avoid conflicts */
    }

    #mobile-nav.open {
        transform: translateX(100%);
        /* Ensure it stays hidden even if .open class is somehow present */
    }


    #revolution .revolution-content {
        flex-direction: row;
        gap: 3rem;
    }

    #revolution .revolution-text,
    #revolution .revolution-visuals {
        flex: 1;
    }

    #revolution .revolution-visuals {
        flex-direction: row;
        /* Side by side */
        align-items: center;
    }

    #the-can .can-intro-content {
        flex-direction: row;
        align-items: flex-start;
        gap: 3rem;
    }

    #the-can .can-visuals {
        flex: 0 0 40%;
        /* Give visuals a fixed percentage of width */
        flex-direction: row;
        /* Side-by-side can shots */
        justify-content: space-around;
    }

    #the-can .product-shot {
        max-width: 80%;
        /* Adjust size for side-by-side layout */
    }

    #the-can .can-description {
        flex: 1;
        text-align: left;
    }

    #the-can .lifestyle-gallery img {
        width: calc(33.333% - 1rem);
        /* Three images per row */
    }

    #lifestyle .lifestyle-visuals-montage {
        grid-template-columns: repeat(4, 1fr);
        /* 4 columns for larger screens */
    }

    footer .footer-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        text-align: left;
    }

    footer .footer-brand,
    footer .footer-links,
    footer .footer-social {
        margin-bottom: 0;
    }
}

/* Large Devices (Desktops) - Apply from 992px and up */
@media (min-width: 992px) {
    h1 {
        font-size: 4.5rem;
    }

    h2 {
        font-size: 3.2rem;
    }

    #hero .sub-headline {
        font-size: 1.5rem;
    }

    .content-section {
        padding: 80px 0;
    }
}

/* Accessibility - Focus Visible for keyboard navigation */
*:focus-visible {
    outline: 3px dashed var(--accent-energetic);
    outline-offset: 3px;
}