:root {
    --bg-body: #0a0a0a;
    --bg-surface: #121212;
    --bg-surface-accent: #1a1a1a;

    --logo-fill-color: #000000ff;
    --text-primary: #f4f4f5;
    --text-secondary: #a1a1aa;
    --text-tertiary: #7a7a83;
    --text-titles: #fff;
    --accent-primary: #10b981;
    --accent-secondary: #047857;
    --accent-glow: rgba(16, 185, 129, 0.2);

    --border-subtle: #27272a;
    --border-subtle-transparent: rgba(27, 27, 42, 0);

    --header-background: rgba(10, 10, 10, 0.8);

    --sticky-subnav-background: rgba(10, 10, 10, 0.9);

    font-family: "Public Sans", sans-serif;
    font-optical-sizing: auto;

    --header-height: 80px;

    --feature-box-background: #1c1c1dff;

    --hero-tittle-bg-color-gradient: linear-gradient(135deg, #e8e8e8 0%, #cccccc 30%);
    --default-card-box-shadow: 0 20px 40px rgba(255, 255, 255, 0.04);

    /* HIGHLIGHT: Typography Variables */
    --fs-display-lg: 5rem;
    --fs-display-md: 3rem;
    --fs-display-sm: 2rem;
    --fs-display-xs: 1.5rem;

    --fs-body-lg: 1.25rem;
    --fs-body-md: 1rem;
    --fs-body-sm: 0.875rem;
    --fs-nav: 0.975rem;
}

/* LIGHT THEME OVERRIDES */
[data-theme="light"] {
    --bg-body: #ffffff;
    --bg-surface: #f4f4f5;
    --bg-surface-accent: #e4e4e7;
    --logo-fill-color: #ffffffff;

    --text-primary: #18181b;
    --text-secondary: #52525b;
    --text-tertiary: #a1a1aa;
    --text-titles: #0b0b0cff;
    --hero-bg-gradient: radial-gradient(circle at center, #ffffff 0%, #f3f3f3 70%);
    --border-subtle: #e4e4e7;
    --border-subtle-transparent: rgba(228, 228, 231, 0);
    --header-background: rgba(255, 255, 255, 0.8);
    --sticky-subnav-background: rgba(255, 255, 255, 0.9);
    --feature-box-background: #f4f7f9;
    --hero-tittle-bg-color-gradient: linear-gradient(135deg, #4e4e4e 0%, #171717 30%);

    --default-card-box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);

}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-body);
    color: var(--text-primary);
    font-family: "Public Sans", sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -0.02em;
}

h1 {
    font-size: var(--fs-display-lg);
}

h2 {
    font-size: var(--fs-display-md);
}

h3 {
    font-size: var(--fs-display-sm);
}

h4 {
    font-size: var(--fs-display-xs);
}

@media (max-width: 768px) {
    :root {
        --fs-display-lg: 2.5rem;
        --fs-display-md: 2rem;
        --fs-display-sm: 1.5rem;
        --fs-display-xs: 1.25rem;
        --fs-body-lg: 1rem;
    }
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-primary);
}

ul {
    padding-left: 40px;
    line-height: 1.8rem;
}

p {
    line-height: 1.8rem;
}

/* --- GLOBAL HEADER --- */
.global-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 9;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 4rem;
}

.logo {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.logo svg {
    width: 140px;
    height: auto;
    fill: var(--logo-fill-color);
}

.cls-1 {
    fill: var(--text-primary);
}

.header-nav {
    display: flex;
    gap: 2rem;
    font-size: var(--fs-nav);
    font-weight: 500;
    color: var(--text-secondary);
}

.header-nav a:hover {
    color: var(--accent-primary);
    text-decoration: underline;
    text-underline-offset: 0.5rem;
    text-decoration-thickness: 1px;
}

.mobile-menu-toggle {
    display: none;
}

.width-constraint {
    max-width: 2000px;
    margin: 0 auto;
}


/* Theme Toggle Button */
.theme-toggle {
    background: none;
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 0;
    position: absolute;
    bottom: 120px;
}

.theme-toggle:hover {
    color: var(--text-primary);
    background: var(--bg-surface-accent);
}

.icon-sun {
    display: none;
}

/* --- FOOTER --- */
.main-footer {
    padding: 2rem 4rem;
    border-top: 1px solid var(--border-subtle);
    display: flex;
    justify-content: space-between;
    color: var(--text-tertiary);
    font-size: 0.8rem;
    background: var(--bg-body);
    position: relative;
    flex-wrap: wrap;
    gap: 1rem;
}

@media (max-width: 768px) {
    .main-footer {
        padding: 2rem 1.5rem;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1.5rem;
    }
}

/* Common Section Styles */
section {
    padding: 6rem 4rem;
    border-bottom: 1px solid var(--border-subtle);
    scroll-margin-top: var(--header-height);
}

section:last-of-type {
    border-bottom: none;
}

.section-title {
    font-size: var(--fs-display-md);
    margin-bottom: 1.5rem;
    color: var(--text-titles);
}

.section-title.centred {
    text-align: center;
}

.section-desc {
    max-width: 660px;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    font-size: var(--fs-body-lg);
    margin: 1rem auto 3rem;
    text-align: center;
}

/* Layout Utilities */
.blueprint-layout {
    display: block;
    min-height: 100vh;
}

/* Buttons */
.btn-group {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 2rem;
}

.btn {
    padding: 1rem 2rem;
    font-family: var(--font-display);
    font-weight: 600;
    border-radius: 0;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: #fff;
}

.btn-primary:hover {
    box-shadow: 0 10px 20px -5px var(--accent-glow);
    transform: translateY(-2px);
    color: #fff;
}

.btn-secondary {
    border: 1px solid var(--text-tertiary);
    color: var(--text-primary);
}

.btn-secondary:hover {
    border-color: var(--text-primary);
}

.file-icon {
    color: var(--accent-primary);
    flex-shrink: 0;
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-desc.align-left {
    margin: 1rem auto 3rem 0;
    text-align: left;
}

#airflow-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 0;
    opacity: 0.6;
    transform: translateY(0px) scale(1.5);
    pointer-events: none;
    animation: airflow-canvas-scrolling-animation linear both;
    animation-timeline: scroll();
    animation-range: entry 0vh cover 100vh;
}

/* Product Carousel */
.products-carousel-container {
    overflow-x: auto;
    bottom: 2rem 0;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE 10+ */
    cursor: grab;
    padding: 1em 0 1em;
}

.products-carousel-container::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

.products-grid {
    display: flex;
    /* Changed from grid to flex */
    gap: 2rem;
    padding: 0 4rem 0 0;
    /* Padding inside scroll container */
    width: max-content;
    /* Ensure it stretches */
}

.product-entry-card {
    width: 400px;
    /* Fixed width for carousel items */
    flex-shrink: 0;
    scroll-snap-align: start;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

@media (max-width: 480px) {
    .product-entry-card {
        width: 75vw;
    }
}

.product-entry-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-primary);
    box-shadow: var(--default-card-box-shadow);
}

.product-thumb {
    height: 300px;
    overflow: hidden;
    position: relative;
    background: var(--bg-surface-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.product-thumb img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.product-entry-card:hover .product-thumb img {
    transform: scale(1.1);
}

.product-details {
    padding: 2.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.prod-series {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.prod-super {
    color: var(--text-secondary);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
    min-height: 2.5em;
    /* Ensure alignment */
}

.prod-desc-short {
    color: var(--text-tertiary);
    font-size: 0.95rem;
    margin-bottom: 2rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.arrow-link {
    margin-top: auto;
    color: var(--accent-primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.arrow-link svg {
    transition: transform 0.3s ease;
}

.product-entry-card:hover .arrow-link svg {
    transform: translateX(5px);
}

.mobile-menu-overlay {
    display: none;

}


@keyframes airflow-canvas-scrolling-animation {
    to {
        transform: translateY(-40vh) scale(2.2);
    }
}

@media (max-width: 1024px) {
    .mobile-menu-overlay {
        display: block;
    }

    :root {
        --header-height: 60px;
    }

    .global-header {
        height: var(--header-height);
        padding: 0 1.5rem;
    }

    /* Mobile Menu Toggle */
    .mobile-menu-toggle {
        display: block;
        background: none;
        border: none;
        cursor: pointer;
        z-index: 1001;
        /* Above overlay */
        padding: 0.5rem;
    }

    .mobile-menu-toggle span {
        display: block;
        width: 24px;
        height: 2px;
        background-color: var(--text-primary);
        margin: 5px 0;
        transition: all 0.3s ease;
    }

    /* Hamburger Animation */
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    /* Responsive Nav */
    .header-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background-color: var(--bg-surface);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 2rem;
        transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.5);
    }

    .header-nav.mobile-active {
        right: 0;
    }

    .header-nav a {
        font-size: 1.25rem;
        margin: 1.5rem 0;
        opacity: 0;
        transform: translateX(20px);
        transition: all 0.3s ease 0s;
    }

    .header-nav.mobile-active a {
        opacity: 1;
        transform: translateX(0);
        /* Staggered delay for nice effect */
        transition-delay: 0.2s;
    }

    /* Overlay */
    .mobile-menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 999;
        backdrop-filter: blur(4px);
    }

    .mobile-menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    /* Reposition theme toggle on mobile if needed or keep in footer */

    section {
        padding: 4rem 2rem;
        scroll-margin-top: 140px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .btn-group {
        flex-direction: column;
        width: 100%;
        gap: 1rem;
    }
}

@media (max-width: 767px) {
    .global-header {
        padding: 0 1rem;
    }

    .logo svg {
        width: 120px;
    }
}