:root {
    /* Softer, Professional Dark Theme */
    --black: #0D0D0D;
    /* Rich near-black, less harsh than #000000 */
    --dark-grey: #1A1A1A;
    /* Softened dark grey cards/sections */
    --light-grey: #C0C0C0;
    /* Slightly brighter grey for better readability */
    --border-color: #333333;
    /* Subtle borders */

    /* Functional Colors */
    --accent-green: #4ade80;
    --white: #ffffff;

    --text-main: #B0B0B0;
    --text-highlight: #F5F5F5;
    /* Off-white for headings, easier on eyes */

    --font-main: 'Inter', sans-serif;

    --radius-sm: 6px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;

    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 12px 24px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 20px rgba(255, 255, 255, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--text-main);
    line-height: 1.6;
    background-color: var(--black);
    overflow-x: hidden;
    padding-top: 80px;
    /* offset for fixed header */
}

/* Custom Professional Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--black);
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 10px;
    border: 2px solid var(--black);
}

::-webkit-scrollbar-thumb:hover {
    background: #444;
}

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: linear-gradient(to right, var(--accent-green), #fff);
    z-index: 3000;
    transition: width 0.1s ease-out;
}

h1,
h2,
h3,
h4,
h5,
strong {
    color: var(--text-highlight);
    letter-spacing: -0.02em;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img,
svg {
    display: block;
    max-width: 100%;
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    border-radius: var(--radius-full);
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--light-grey);
    color: var(--black);
    border: 2px solid var(--light-grey);
    position: relative;
    overflow: hidden;
}

/* Shimmer Animation */
.btn-primary::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg,
            transparent,
            rgba(255, 255, 255, 0.2),
            transparent);
    transform: rotate(45deg);
    transition: 0.5s;
    transition-delay: 0.1s;
    pointer-events: none;
    opacity: 0;
}

.btn-primary:hover::after {
    left: 100%;
    top: 100%;
    opacity: 1;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
    background-color: var(--white);
    border-color: var(--white);
}

.btn-primary:hover {
    background-color: var(--white);
    border-color: var(--white);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--light-grey);
    color: var(--light-grey);
}

.btn-outline:hover {
    border-color: var(--white);
    color: var(--white);
    transform: translateY(-2px);
}

.text-center {
    text-align: center;
}

/* Header */
header {
    padding: 1.25rem 0;
    position: fixed;
    /* Was sticky, now fixed to float over content */
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(13, 13, 13, 0.95);
    backdrop-filter: blur(16px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

/* Header Grid Layout */
.header-container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    /* Left, Center, Right */
    align-items: center;
    max-width: 1400px;
    padding: 0 2rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-highlight);
    letter-spacing: -0.03em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-self: start;
    margin-left: 1rem;
    /* "Move the logo to the right a bit" */
}

.nav-links {
    display: flex;
    gap: 3rem;
    /* Space between buttons */
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    padding: 0.5rem 2rem;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-color);
    margin: 0;
    justify-self: center;
    /* Center the buttons */
}

.nav-links a {
    font-weight: 500;
    color: var(--text-main);
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: var(--white);
}

.header-actions {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    height: 100%;
    justify-self: end;
    /* Align to right */
}

.icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--light-grey);
}

.icon-btn:hover {
    color: var(--white);
    transform: scale(1.1);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-btn span {
    display: block;
    width: 28px;
    height: 3px;
    background-color: var(--white);
}

/* Hero Section */
.hero {
    padding: 6rem 0;
    min-height: 80vh;
    display: flex;
    align-items: center;
    position: relative;
    /* Bubbles handled in JS */
}

/* Bubbles */
.bubbles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.bubble {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.1), rgba(178, 178, 178, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.1);
    bottom: -100px;
    animation: rise var(--duration) infinite ease-in;
    opacity: 0;
}

@keyframes rise {
    0% {
        bottom: -100px;
        transform: translateX(0);
        opacity: 0;
    }

    10% {
        opacity: 0.4;
    }

    50% {
        transform: translateX(var(--sway));
    }

    100% {
        bottom: 120%;
        transform: translateX(calc(var(--sway) * -1));
        opacity: 0;
    }
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    /* Give more space to image */
    gap: 2rem;
    align-items: center;
}

.hero-content {
    padding-left: 2rem;
    /* Move words to the right a bit */
}

.hero-content h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--light-grey);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.hero-btns {
    display: flex;
    gap: 1.25rem;
}

.hero-image .image-placeholder {
    width: 80%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 0 30px rgba(255, 255, 255, 0.05));
    transition: transform 0.5s ease;
}

.hero-image .image-placeholder:hover {
    transform: scale(1.05) rotate(-2deg);
}

.hero-image img {
    width: 85%;
    /* Made bigger as requested */
    height: auto;
    object-fit: contain;
}

/* Shop Section */
.shop-section {
    padding: 6rem 0;
    background-color: var(--dark-grey);
}

.shop-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    background: rgba(26, 26, 26, 0.6);
    /* Glassmorphism background */
    backdrop-filter: blur(12px);
    padding: 4rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.product-image {
    background-color: var(--white);
    border-radius: var(--radius-md);
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-details h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.product-details .rating {
    color: #fbbf24;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.product-details .price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-green);
    margin-bottom: 2rem;
}

.product-features li {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--light-grey);
}

.product-features li svg {
    color: var(--accent-green);
}

/* How It Works (Grid) */
.how-it-works {
    padding: 6rem 0;
    background-color: var(--black);
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.step-card {
    text-align: center;
    padding: 2rem;
}

.step-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: var(--dark-grey);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--white);
    border: 1px solid var(--light-grey);
    font-size: 1.5rem;
}

.step-badge {
    display: inline-block;
    background-color: var(--light-grey);
    color: var(--black);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

/* Why PFAS Free */
.pfas-section {
    padding: 6rem 0;
    background-color: var(--black);
}

.pfas-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.pfas-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.pfas-image {
    height: 400px;
    background-color: var(--black);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.pfas-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
}

/* Before After */
.demonstration {
    padding: 6rem 0;
    background-color: var(--dark-grey);
}

/* About Section */
.about {
    padding: 6rem 0;
    background-color: var(--dark-grey);
}

.team-section {
    margin-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 3rem;
}

.team-grid {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.team-member {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    padding: 2.5rem;
    border-radius: var(--radius-md);
    min-width: 220px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.team-member strong {
    color: var(--white);
    font-size: 1.3rem;
    margin-bottom: 2px;
    display: block;
}

.team-member span {
    color: var(--light-grey) !important;
    /* Force visibility */
}

.team-member:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Footer */
footer {
    padding: 5rem 0 2rem;
    background-color: var(--dark-grey);
    color: var(--text-main);
    border-top: 1px solid var(--border-color);
    margin-top: 0;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    padding-bottom: 4rem;
}

.footer-brand h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 800;
}

.footer-brand p {
    color: var(--text-main);
    max-width: 300px;
    font-size: 0.95rem;
}

.footer-col h4 {
    margin-bottom: 1.5rem;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--white);
    opacity: 0.8;
}

.footer-col ul li {
    margin-bottom: 0.75rem;
}

.footer-col ul li a:hover {
    color: var(--white);
    text-decoration: underline;
}

.copyright {
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
    font-size: 0.85rem;
    color: #666;
}

/* Forms */
.contact-section {
    padding: 6rem 0;
    background-color: var(--black);
    /* Matches Footer, Alternates with About (Dark Grey) */
}

.contact-form-container {
    max-width: 600px;
    margin: 3rem auto 0;
    background: var(--black);
    padding: 2rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.styled-form .form-group {
    margin-bottom: 1.5rem;
}

.styled-form label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-highlight);
    font-weight: 500;
}

.styled-form input,
.styled-form textarea {
    width: 100%;
    padding: 0.8rem;
    background: var(--dark-grey);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-main);
    font-family: var(--font-main);
    font-size: 1rem;
    transition: border-color 0.2s ease;
}

.styled-form input:focus,
.styled-form textarea:focus {
    outline: none;
    border-color: var(--light-grey);
}

/* Modal */
.modal {
    display: none;
    /* Hidden by default */
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background-color: var(--black);
    padding: 2.5rem;
    border: 1px solid var(--border-color);
    width: 90%;
    max-width: 500px;
    border-radius: var(--radius-md);
    position: relative;
    box-shadow: var(--shadow-md);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-modal {
    color: var(--light-grey);
    float: right;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    top: 1rem;
    right: 1.5rem;
}

.close-modal:hover {
    color: var(--white);
}

/* Navbar Fixes */
.header-actions {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    height: 100%;
    /* Ensure full height */
}

/* Smooth Scrolling Issue Fix */
html,
body {
    overflow-x: hidden;
}

/* Responsive */
@media (max-width: 900px) {
    .header-container {
        display: flex;
        justify-content: space-between;
        padding: 0 1.5rem;
    }

    .logo {
        margin-left: 0;
    }

    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background: rgba(13, 13, 13, 0.98);
        backdrop-filter: blur(20px);
        padding: 2rem;
        border-bottom: 1px solid var(--border-color);
        gap: 1.5rem;
        opacity: 0;
        transform: translateY(-20px);
        transition: opacity 0.3s ease, transform 0.3s ease;
        visibility: hidden;
        border-radius: 0;
        /* Fix "egg" shape */
    }

    .nav-links li {
        transform: translateX(-20px);
        opacity: 0;
        transition: transform 0.3s ease, opacity 0.3s ease;
    }

    .nav-links.active {
        display: flex;
        /* Kept flex for layout, visibility handles hiding */
        opacity: 1;
        transform: translateY(0);
        visibility: visible;
    }

    .nav-links.active li {
        transform: translateX(0);
        opacity: 1;
    }

    .nav-links.active li:nth-child(1) {
        transition-delay: 0.1s;
    }

    .nav-links.active li:nth-child(2) {
        transition-delay: 0.15s;
    }

    .nav-links.active li:nth-child(3) {
        transition-delay: 0.2s;
    }

    .nav-links.active li:nth-child(4) {
        transition-delay: 0.25s;
    }

    .nav-links.active li:nth-child(5) {
        transition-delay: 0.3s;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero-container,
    .shop-container,
    .pfas-container,
    .steps-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero-content h1 {
        font-size: 2.5rem;
        /* Smaller heading on mobile */
    }

    .hero-container {
        text-align: center;
        padding-top: 2rem;
    }

    .hero-btns {
        justify-content: center;
    }

    .contact-form-container {
        margin-top: 2rem;
        padding: 1.5rem;
    }

    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand p {
        margin: 0 auto;
    }
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--white);
    color: var(--black);
    padding: 1rem 2rem;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 1rem;
    transform: translateY(100px);
    opacity: 0;
    visibility: hidden;
    /* Hide from screen readers/clicks when not shown */
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 3000;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.toast.success {
    border-left: 4px solid var(--accent-green);
}

/* Global Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: opacity, transform;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal.active>* {
    animation: revealIn 0.6s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

@keyframes revealIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}