:root {
    --bg-color: #05050a;
    --bg-elevated: rgba(10, 10, 24, 0.75);
    --text-primary: #ffffff;
    --text-secondary: #a0a0b5;
    --accent-1: #00f0ff;
    --accent-2: #7000ff;
    --gradient-primary: linear-gradient(135deg, var(--accent-1) 0%, var(--accent-2) 100%);
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.05);
    --nav-surface: rgba(5, 5, 10, 0.8);
    --video-overlay: linear-gradient(180deg, rgba(5, 5, 10, 0.8) 0%, rgba(5, 5, 10, 0.4) 50%, rgba(5, 5, 10, 1) 100%);
    --video-opacity: 0.6;
    --input-bg: rgba(255, 255, 255, 0.05);
    --card-border-strong: rgba(255, 255, 255, 0.07);
    --card-border-hover: rgba(0, 240, 255, 0.2);
    --nav-button-bg: rgba(5, 5, 15, 0.55);
    --nav-button-text: rgba(255, 255, 255, 0.6);
    --nav-button-hover-bg: rgba(0, 240, 255, 0.12);
    --nav-button-hover-text: var(--accent-1);
    --footer-bg: var(--bg-color);
    --font-main: 'Outfit', sans-serif;
}

html[data-theme='light'] {
    --bg-color: #f3f6fb;
    --bg-elevated: rgba(255, 255, 255, 0.86);
    --text-primary: #0f172a;
    --text-secondary: #4a5a73;
    --accent-1: #0ea5e9;
    --accent-2: #2563eb;
    --glass-bg: rgba(255, 255, 255, 0.68);
    --glass-border: rgba(15, 23, 42, 0.08);
    --nav-surface: rgba(243, 246, 251, 0.9);
    --video-overlay: linear-gradient(180deg, rgba(243, 246, 251, 0.5) 0%, rgba(243, 246, 251, 0.72) 50%, rgba(243, 246, 251, 0.95) 100%);
    --video-opacity: 0.22;
    --input-bg: rgba(255, 255, 255, 0.92);
    --card-border-strong: rgba(15, 23, 42, 0.08);
    --card-border-hover: rgba(37, 99, 235, 0.18);
    --nav-button-bg: rgba(255, 255, 255, 0.88);
    --nav-button-text: #0f172a;
    --nav-button-hover-bg: rgba(14, 165, 233, 0.14);
    --nav-button-hover-text: #0369a1;
    --footer-bg: rgba(243, 246, 251, 0.96);
}

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

html {
    overflow-x: hidden;
    max-width: 100%;
    width: 100%;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-main);
    overflow-x: hidden;
    line-height: 1.6;
    max-width: 100%;
    width: 100%;
    position: relative;
    transition: background-color 0.35s ease, color 0.35s ease;
}

/* Background Glow Effects */
.glow {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(150px);
    z-index: 0;
    opacity: 0.4;
    pointer-events: none;
    max-width: 100vw;
    overflow: hidden;
}

.glow-1 {
    top: -200px;
    left: -200px;
    background: var(--accent-2);
}

.glow-2 {
    bottom: 20%;
    right: -200px;
    background: var(--accent-1);
    width: 500px;
    height: 500px;
}

.glow-3 {
    top: 40%;
    left: 20%;
    background: rgba(0, 240, 255, 0.2);
    width: 300px;
    height: 300px;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.flex {
    display: flex;
}

.justify-between {
    justify-content: space-between;
}

.align-center {
    align-items: center;
}

.text-center {
    text-align: center;
}

.relative {
    position: relative;
}

.z-10 {
    z-index: 10;
}

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

/* Typography */
h1 {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    font-family: var(--font-main);
    border: none;
}

button,
input,
textarea {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.btn-primary {
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: 0 10px 20px rgba(112, 0, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(0, 240, 255, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--accent-1);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.1);
}

.btn-outline:hover {
    background: rgba(0, 240, 255, 0.1);
    transform: translateY(-3px);
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    margin: 0 0.5rem;
}

.btn-block {
    display: block;
    width: 100%;
    margin-top: 1rem;
}

/* Glass Panel */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Anchor scroll offset — prevents fixed navbar from covering section headers */
#about,
#products,
#contact {
    scroll-margin-top: 80px;
}

/* Navigation */
.navbar {
    padding: 0.3rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    transition: background 0.3s ease;
    backdrop-filter: blur(10px);
}

.navbar .container {
    gap: 1rem;
}

.nav-controls {
    gap: 0.65rem;
    margin-left: auto;
}

.navbar.scrolled {
    background: var(--nav-surface);
    border-bottom: 1px solid var(--glass-border);
}

.nav-actions {
    display: flex;
    align-items: center;
    margin-left: 0.5rem;
    gap: 1rem;
    justify-content: flex-end;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    background: var(--nav-button-bg);
    cursor: pointer;
    padding: 0;
}

.menu-toggle-line {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 999px;
    transition: transform 0.28s ease, opacity 0.2s ease;
}

.menu-toggle[aria-expanded='true'] .menu-toggle-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded='true'] .menu-toggle-line:nth-child(2) {
    opacity: 0;
}

.menu-toggle[aria-expanded='true'] .menu-toggle-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.menu-toggle:hover {
    border-color: var(--card-border-hover);
    background: var(--nav-button-hover-bg);
}

.menu-toggle:focus-visible {
    outline: 2px solid var(--accent-1);
    outline-offset: 3px;
}

.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    padding: 0;
    border-radius: 999px;
    border: 1px solid var(--glass-border);
    background: var(--nav-button-bg);
    color: var(--nav-button-text);
    cursor: pointer;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
    position: relative;
    overflow: hidden;
}

.theme-toggle-inner {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle-icon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: color-mix(in srgb, var(--text-primary) 68%, transparent);
    transition: color 0.3s ease, transform 0.35s ease, opacity 0.35s ease;
}

.theme-toggle-icon svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.theme-toggle-icon-moon svg {
    fill: currentColor;
    stroke: none;
}

html[data-theme='light'] .theme-toggle {
    background: rgba(255, 255, 255, 0.94);
    border-color: rgba(14, 165, 233, 0.22);
}

html[data-theme='light'] .theme-toggle-icon-sun {
    color: var(--accent-1);
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

html[data-theme='light'] .theme-toggle-icon-moon {
    opacity: 0;
    transform: scale(0.55) rotate(-22deg);
}

html[data-theme='dark'] .theme-toggle,
html:not([data-theme='light']) .theme-toggle {
    background: rgba(6, 10, 22, 0.82);
    border-color: rgba(255, 255, 255, 0.08);
}

html[data-theme='dark'] .theme-toggle-icon-moon,
html:not([data-theme='light']) .theme-toggle-icon-moon {
    color: #ffffff;
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

html[data-theme='dark'] .theme-toggle-icon-sun,
html:not([data-theme='light']) .theme-toggle-icon-sun {
    opacity: 0;
    transform: scale(0.55) rotate(22deg);
}

.theme-toggle:hover {
    background: var(--nav-button-hover-bg);
    color: var(--nav-button-hover-text);
    border-color: var(--card-border-hover);
    transform: translateY(-1px);
}

.theme-toggle:focus-visible {
    outline: 2px solid var(--accent-1);
    outline-offset: 3px;
}

.brand-logo {
    text-decoration: none !important;
}

.brand-name {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-primary);
    text-decoration: none !important;
    margin-left: 15px;
}

.logo-img {
    height: 180px;
    width: auto;
    margin: -55px 0;
    /* Logo overflows navbar so bar stays compact */
}

.nav-links {
    list-style: none;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--accent-1);
}

/* Hero Section */
.hero {
    padding: 12rem 0 6rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-subtitle {
    font-size: 1.5rem;
    max-width: 700px;
    margin: 0 auto 3rem;
}

.site-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    z-index: -2;
    opacity: var(--video-opacity);
    /* Adjust as needed for legibility */
}

.video-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--video-overlay);
    z-index: -1;
}

/* Stats Section */
.stats {
    padding: 4rem 0;
}

.stat-card {
    max-width: 600px;
    margin: 0 auto;
    padding: 4rem 2rem;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(112, 0, 255, 0.1) 0%, transparent 70%);
    z-index: -1;
}

.stat-number {
    font-size: 6rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 1rem;
    color: #fff;
    text-shadow: 0 0 20px rgba(0, 240, 255, 0.4);
}

.count-up {
    color: transparent;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
}

/* Products Section */
.products {
    padding: 8rem 0;
}

.section-header {
    margin-bottom: 4rem;
}

/* ── Product Carousel Cards Grid ── */
.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.product-card-carousel {
    padding: 0;
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    cursor: default;
    display: flex;
    flex-direction: column;
    background: var(--bg-elevated);
    border: 1px solid var(--card-border-strong);
    border-radius: 20px;
    position: relative;
}

.product-card-carousel:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 240, 255, 0.12);
    border-color: var(--card-border-hover);
}

/* Category tag badge */
.pc-tag {
    position: absolute;
    top: 1.2rem;
    left: 1.2rem;
    background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    padding: 0.3rem 0.85rem;
    border-radius: 50px;
    z-index: 5;
    text-transform: uppercase;
}

/* ── Carousel wrapper ── */
.pc-carousel {
    position: relative;
    min-height: 220px;
    padding: 2rem 1.5rem 3.5rem;
    margin-top: 2.8rem;
    /* space for tag */
    flex: 1;
}

/* Slide container – all slides stacked, only .active is visible */
.pc-slides {
    position: relative;
    width: 100%;
}

.pc-slide {
    display: none;
    animation: slideIn 0.4s ease;
}

.pc-slide.active {
    display: block;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(15px);
    }

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

/* Content row: image left, text right */
.pc-content-row {
    display: flex;
    gap: 1.4rem;
    align-items: flex-start;
}

.pc-img {
    width: 180px;
    height: 175px;
    object-fit: cover;
    border-radius: 12px;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border-strong);
}

/* Placeholder for cards without a product image */
.pc-img-placeholder {
    width: 180px;
    height: 175px;
    flex-shrink: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(112, 0, 255, 0.15), rgba(0, 240, 255, 0.1));
    border: 1px solid rgba(0, 240, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    background-clip: text;
    color: transparent;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 18px rgba(0, 240, 255, 0.35));
}

.pc-info {
    flex: 1;
    min-width: 0;
    max-width: calc(100% - 194px);
    /* image width + gap */
}

.pc-info-label {
    color: var(--accent-1);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    margin-bottom: 0.4rem;
    text-transform: uppercase;
}

.pc-info-text {
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.6;
}

/* ── Prev / Next nav buttons ── */
.pc-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--nav-button-bg);
    border: 1px solid var(--card-border-strong);
    color: var(--nav-button-text);
    width: 28px;
    height: 52px;
    border-radius: 6px;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease, opacity 0.2s ease;
    z-index: 5;
    padding: 0;
    opacity: 0;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.product-card-carousel:hover .pc-nav {
    opacity: 1;
}

.pc-nav:hover {
    background: var(--nav-button-hover-bg);
    color: var(--nav-button-hover-text);
    border-color: var(--card-border-hover);
}

.pc-prev {
    left: 0.6rem;
}

.pc-next {
    right: 0.6rem;
}

/* ── Dot indicators ── */
.pc-dots {
    position: absolute;
    bottom: 0.8rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 5px;
    align-items: center;
}

.pc-dot {
    width: 18px;
    height: 4px;
    border-radius: 2px;
    background: color-mix(in srgb, var(--text-primary) 18%, transparent);
    border: none;
    cursor: pointer;
    transition: background 0.3s ease, width 0.3s ease;
    padding: 0;
}

.pc-dot.active {
    background: var(--accent-1);
    width: 30px;
}

/* ── Card footer: name + tagline ── */
.pc-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    padding: 0 1.5rem 0.3rem;
}

.pc-tagline {
    font-size: 0.9rem;
    color: var(--text-secondary);
    padding: 0 1.5rem 1.5rem;
    margin: 0;
}

/* ── Responsive: stack to 1 column on small screens ── */
@media (max-width: 860px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
}

/* Contact Section */
.contact {
    padding: 8rem 0;
}

.contact-info {
    width: 45%;
    padding-right: 2rem;
}

.contact-details p {
    font-size: 1.2rem;
    margin-top: 1rem;
    color: var(--text-primary);
}

.contact-form-container {
    width: 50%;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: var(--input-bg);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: var(--text-primary);
    font-family: var(--font-main);
    transition: all 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-secondary);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-1);
    background: var(--input-bg);
}

.alert {
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.alert.success {
    background: rgba(0, 255, 100, 0.1);
    border: 1px solid #00ff64;
    color: #00ff64;
}

.alert.error {
    background: rgba(255, 50, 50, 0.1);
    border: 1px solid #ff3232;
    color: #ff3232;
}

/* Footer */
.footer {
    padding: 3rem 0;
    border-top: 1px solid var(--glass-border);
    margin-top: 4rem;
    background-color: var(--footer-bg);
    /* Give it a solid background so the video doesn't show through */
    position: relative;
    z-index: 10;
}

/* Animations */
.hidden {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.show {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 900px) {
    .navbar {
        padding: 0.75rem 0;
    }

    .navbar .container {
        flex-wrap: wrap;
        align-items: center;
    }

    .menu-toggle {
        display: inline-flex;
    }

    .brand-logo {
        justify-content: flex-start;
    }

    .nav-controls {
        margin-left: auto;
    }

    .nav-actions {
        margin-left: 0;
        order: 3;
        width: 100%;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0.95rem;
        margin-top: 0.75rem;
        padding: 0.95rem;
        border-radius: 16px;
        background: var(--nav-surface);
        border: 1px solid var(--glass-border);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }

    .nav-actions.is-open {
        display: flex;
    }

    .nav-links {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: 0.75rem;
    }

    .nav-links .nav-link,
    .nav-links .btn {
        display: block;
        width: 100%;
        text-align: center;
    }

    h1 {
        font-size: 3.5rem;
    }

    .hero {
        padding-top: 12.5rem;
    }

    .products,
    .contact {
        padding: 6rem 0;
    }

    .contact .flex {
        flex-direction: column;
        gap: 2rem;
    }

    .contact-info,
    .contact-form-container {
        width: 100%;
    }

    .contact-info {
        margin-bottom: 3rem;
    }
}

@media (max-width: 760px) {
    .pc-carousel {
        padding: 1.25rem 1rem 3.75rem;
        margin-top: 2.5rem;
    }

    .pc-content-row {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .pc-img,
    .pc-img-placeholder {
        width: 100%;
        max-width: 280px;
        height: auto;
        aspect-ratio: 1 / 1;
        margin: 0 auto;
    }

    .pc-info {
        max-width: none;
    }

    .pc-nav {
        opacity: 1;
        top: auto;
        bottom: 0.95rem;
        transform: none;
        width: 36px;
        height: 36px;
        border-radius: 999px;
        font-size: 1.1rem;
    }

    .pc-prev {
        left: 1rem;
    }

    .pc-next {
        right: 1rem;
    }

    .pc-dots {
        bottom: 1.5rem;
    }
}

@media (max-width: 600px) {
    h1 {
        font-size: 2.5rem;
    }

    .nav-actions {
        gap: 0.9rem;
    }

    .nav-links {
        gap: 0.7rem;
    }

    .theme-toggle {
        width: 48px;
        height: 48px;
    }

    h2 {
        font-size: 2rem;
    }

    p {
        font-size: 1rem;
    }

    .hero-actions {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .btn-lg {
        margin: 0;
    }

    .stat-number {
        font-size: 4rem;
    }

    .logo-img {
        height: 80px;
        margin: -10px 0;
    }

    .section-header {
        margin-bottom: 2.5rem;
    }

    .product-card-carousel {
        border-radius: 18px;
    }

    .pc-tag {
        left: 1rem;
        top: 1rem;
    }

    .pc-name,
    .pc-tagline {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .contact-details p {
        font-size: 1rem;
    }

    .glass-panel {
        padding: 1.5rem;
    }

    .container {
        padding: 0 1rem;
    }
}

@media (max-width: 420px) {
    .navbar {
        padding: 0.65rem 0;
    }

    .hero {
        padding-top: 13.5rem;
    }

    .nav-links {
        gap: 0.6rem;
    }

    .nav-link,
    .btn {
        font-size: 0.92rem;
    }

    .btn {
        padding: 0.72rem 1.15rem;
    }

    .pc-carousel {
        padding-left: 0.85rem;
        padding-right: 0.85rem;
    }
}