/* ====== AEROBITES LUXURY VARIABLES ====== */
:root {
    /* Colors */
    --bg-base: #0a0a0c;
    --bg-surface: #141417;
    --bg-card: rgba(26, 26, 30, 0.4);
    --bg-card-hover: rgba(36, 36, 42, 0.7);

    --gold-accent: #d4af37;
    --gold-glow: rgba(212, 175, 55, 0.4);
    --gold-dim: rgba(212, 175, 55, 0.1);

    --accent: #ff4500;
    /* Warm food pop */

    --text-main: #f8f8f8;
    --text-muted: #9ca3af;
    --text-dark: #0f0f11;

    --border-color: rgba(255, 255, 255, 0.05);
    --border-highlight: rgba(212, 175, 55, 0.3);

    /* Typography */
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --font-heading: 'Outfit', 'Inter', system-ui, sans-serif;

    /* Spacing & Layout */
    --nav-height: 90px;
    --container-w: 1300px;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;

    /* Transitions */
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="light"] {
    /* Premium Warm Light Theme */
    --bg-base: #f5f2eb;
    /* Warm cream */
    --bg-surface: #eae5d9;
    /* Slightly darker card bg */
    --bg-card: rgba(234, 229, 217, 0.7);
    --bg-card-hover: rgba(220, 215, 200, 0.9);

    --gold-accent: #c45d2d;
    /* Terracotta pop */
    --gold-glow: rgba(196, 93, 45, 0.2);
    --gold-dim: rgba(196, 93, 45, 0.05);

    --text-main: #1c1c1c;
    --text-muted: #666666;
    --text-dark: #0a0a0c;

    --border-color: rgba(28, 28, 28, 0.08);
    --border-highlight: rgba(196, 93, 45, 0.3);
}

/* ====== RESET & LENIS ====== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Lenis recommended css */
html.lenis,
html.lenis body {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

.lenis.lenis-scrolling iframe {
    pointer-events: none;
}

body {
    background-color: var(--bg-base);
    color: var(--text-main);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

body,
a,
button,
input,
textarea,
select {
    cursor: none !important;
}

/* ====== GRAIN OVERLAY ====== */
.grain-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* ====== CUSTOM CURSOR ====== */
.cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 8px;
    height: 8px;
    background-color: var(--gold-accent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10001;
    box-shadow: 0 0 10px var(--gold-accent);
}

.cursor-follower {
    position: fixed;
    top: 0;
    left: 0;
    width: 40px;
    height: 40px;
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(2px);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1), height 0.3s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s;
}

.cursor-follower.hover-active {
    width: 70px;
    height: 70px;
    background: var(--gold-dim);
    border-color: var(--gold-accent);
}

/* ====== TYPOGRAPHY ====== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 800;
    line-height: 1.1;
    color: var(--text-main);
    letter-spacing: -0.02em;
}

.gold-text {
    color: var(--gold-accent);
    text-shadow: 0 0 25px var(--gold-glow);
}

.split-line {
    display: block;
    overflow: hidden;
}

.split-text {
    display: inline-block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

/* ====== LAYOUT ====== */
.container {
    max-width: var(--container-w);
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 8rem 0;
    position: relative;
}

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

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

.section-tag {
    display: inline-flex;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
}

.section-tag.gold {
    color: var(--gold-accent);
}

.section-tag::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 2px;
    background-color: currentColor;
    margin-right: 12px;
}

.section-title {
    font-size: 3.5rem;
    font-weight: 900;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 1.05rem;
    border-radius: 100px;
    cursor: none;
    transition: var(--transition);
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background-color: var(--text-main);
    color: var(--gold-accent);
}

.btn-primary::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background-color: var(--gold-accent);
    z-index: -1;
    transition: var(--transition);
}

.btn-primary:hover::after {
    height: 100%;
}

.btn-primary:hover {
    color: var(--bg-base);
    box-shadow: 0 10px 30px var(--gold-glow);
}

.btn-icon {
    width: 48px;
    height: 48px;
    padding: 0;
    border-radius: 50%;
    background: #1c1c1c;
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-icon:hover {
    background: var(--gold-accent);
    color: #ffffff;
    transform: translateY(-2px);
}

/* Glass Panels */
.glass-panel {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* ====== NAVIGATION ====== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    background-color: var(--bg-card);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    height: 70px;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: -1px;
}

.logo .dot {
    color: var(--gold-accent);
}

.nav-links {
    display: flex;
    gap: 3rem;
    background: var(--bg-card);
    padding: 0.75rem 2rem;
    border-radius: 100px;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-main);
}

.cta-nav {
    padding: 0.75rem 1.75rem;
    font-size: 0.95rem;
}

.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-main);
    cursor: none;
}

.mobile-menu {
    display: none;
}

/* ====== HERO SECTION ====== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--nav-height);
    position: relative;
    overflow: hidden;
}

.hero-bg-parallax {
    position: absolute;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    background: radial-gradient(circle at 70% 50%, var(--gold-glow) 0%, var(--bg-base) 60%);
    z-index: -1;
}

.hero-content {
    width: 100%;
    position: relative;
    z-index: 2;
}

.hero-text-wrapper {
    max-width: 900px;
}

.tagline {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 2rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.tagline span {
    color: var(--gold-accent);
    margin-right: 10px;
}

.hero-title {
    font-size: 6rem;
    margin-bottom: 2rem;
    line-height: 1.05;
}

.hero-title .highlight {
    color: var(--gold-accent);
    -webkit-text-stroke: 1px transparent;
}

.hero-subtext {
    font-size: 1.5rem;
    color: var(--text-muted);
    margin-bottom: 3.5rem;
    max-width: 700px;
}

.hero-buttons {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.stats-badge {
    display: flex;
    flex-direction: column;
}

.stats-number {
    display: flex;
    align-items: baseline;
    gap: 0.2rem;
}

.stats-badge .counter {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 900;
    line-height: 1;
    color: var(--text-main);
}

.stats-badge .percent {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--gold-accent);
}

.stats-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.5rem;
}

/* Floating Badges */
.floating-badge {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 0.75rem 1.5rem 0.75rem 0.75rem;
    border-radius: 100px;
    font-weight: 500;
    overflow: hidden;
    /* For fill effect */
    z-index: 10;
}

.floating-badge::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: var(--gold-accent);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.5s ease-out, height 0.5s ease-out;
    z-index: -1;
}

.floating-badge:hover::before {
    width: 300px;
    height: 300px;
}

.floating-badge span {
    transition: color 0.3s ease;
}

.floating-badge:hover span {
    color: var(--bg-base);
}

.floating-badge .glass-orb {
    transition: all 0.3s ease;
}

.floating-badge:hover .glass-orb {
    background: transparent;
    border-color: transparent;
}

.floating-badge:hover .glass-orb svg {
    stroke: var(--bg-base) !important;
}

.glass-orb {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid var(--border-highlight);
    display: flex;
    align-items: center;
    justify-content: center;
}

.badge-1 {
    top: 25%;
    right: 10%;
}

.badge-2 {
    bottom: 20%;
    right: 25%;
}

.badge-3 {
    top: 15%;
    left: 60%;
}

.badge-4 {
    bottom: 35%;
    right: 5%;
}

/* ====== TRANSFORMATION SEQUENCE ====== */
.transformation {
    height: 100vh;
    /* For ScrollTrigger Pinning */
    position: relative;
    padding: 0;
}

.pinned-container {
    height: 100vh;
    width: 100%;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.transform-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.oily-state {
    background: #000 url('assets/images/oily.png') center/cover no-repeat;
    filter: sepia(0.8) hue-rotate(-30deg) brightness(0.4);
    z-index: 1;
}

.clean-state {
    background: #000 url('assets/images/clean.png') center/cover no-repeat;
    filter: brightness(0.6);
    z-index: 2;
    clip-path: circle(0% at center);
}

.transform-content {
    position: relative;
    z-index: 10;
}

.transform-text-box {
    max-width: 700px;
    margin: 0 auto;
    padding: 4rem;
    text-align: center;
}

.transform-heading {
    margin-bottom: 1.5rem;
    font-size: 4rem;
}

.transform-heading span {
    font-style: italic;
    font-weight: 300;
}

.transform-desc {
    font-size: 1.25rem;
    color: var(--text-muted);
}

/* ====== MARQUEE SECTION ====== */
.marquee-section {
    padding: 2.5rem 0;
    background: var(--gold-accent);
    color: var(--bg-base);
    overflow: hidden;
    position: relative;
    transform: rotate(-3deg) scale(1.05);
    z-index: 20;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    margin: 4rem 0;
}

.marquee-top-custom {
    transform: rotate(2deg) scale(1.05);
    margin: 0 0 -3.5rem 0;
    z-index: 21;
}

.marquee-inner {
    display: flex;
    width: max-content;
    animation: marquee 20s linear infinite;
}

.marquee-text {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 900;
    white-space: nowrap;
    padding-right: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.marquee-text .dot {
    color: var(--bg-base);
    margin: 0 1rem;
    opacity: 0.5;
}

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

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

/* ====== MENU HORIZONTAL SCROLL ====== */
.menu-horiz-scroll {
    background: var(--bg-surface);
    padding: 5rem 0 3rem 0;
    overflow: hidden;
}

.menu-filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.filter-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 0.75rem 2rem;
    border-radius: 100px;
    font-size: 1rem;
    font-weight: 500;
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--text-main);
    color: var(--bg-base);
    border-color: var(--text-main);
}

.horiz-scroll-wrapper {
    /* Set explicitly to viewport width so contents can overflow predictably */
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    overflow: hidden;
}

.horiz-scroll-container {
    display: flex;
    padding: 0 4rem 4rem 4rem;
    width: max-content;
}

.menu-card {
    width: 450px;
    margin-right: 3rem;
    flex-shrink: 0;
    perspective: 1500px;
}

.menu-card:last-child {
    margin-right: 0;
}

.card-inner {
    height: 100%;
    padding: 1rem;
    border-radius: var(--radius-lg);
    transition: border-color 0.4s, background 0.4s;
    transform-style: preserve-3d;
}

.menu-card:hover .card-inner {
    border-color: var(--gold-accent);
    background: var(--bg-card-hover);
}

.card-image-wrapper {
    width: 100%;
    height: 180px;
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    margin-bottom: 1.25rem;
}

.menu-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.menu-card:hover .menu-img {
    transform: scale(1.08);
}

.badge-tag {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    padding: 0.5rem 1rem;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.badge-tag.gold {
    color: var(--gold-accent);
    border-color: var(--gold-accent);
}

.card-content {
    padding: 0 0.5rem;
    transform: translateZ(30px);
    /* 3D pop */
}

.item-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.item-desc {
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-top: 1.25rem;
}

.price {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--gold-accent);
}

/* ====== STORY SECTION ====== */
.story-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.story-visuals {
    position: relative;
    height: 700px;
}

.story-img-wrap {
    position: absolute;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.img-1 {
    width: 80%;
    height: 75%;
    top: 0;
    left: 0;
    z-index: 1;
}

.img-2 {
    width: 60%;
    height: 60%;
    bottom: 5%;
    right: 0;
    z-index: 2;
    border: 10px solid var(--bg-base);
}

.story-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.feature-list {
    list-style: none;
    margin-top: 3rem;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.list-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gold-dim);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ====== CONTACT SECTION ====== */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.contact-info {
    max-width: 500px;
}

.contact-subtext {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
}

.contact-form-wrapper {
    padding: 3rem;
}

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

input,
textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1rem 0;
    color: var(--text-main);
    font-family: var(--font-sans);
    font-size: 1.1rem;
    transition: var(--transition);
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--gold-accent);
    box-shadow: 0 10px 10px -10px var(--gold-glow);
}

/* ====== FOOTER ====== */
.footer {
    border-top: 1px solid var(--border-color);
    padding: 4rem 0;
    background: var(--bg-surface);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 900;
}

.footer-copy {
    color: var(--text-muted);
    text-align: right;
}

/* ====== RESPONSIVENESS ====== */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 4.5rem;
    }

    .story-container {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    .story-visuals {
        height: 500px;
    }

    .contact-container {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
}

@media (max-width: 768px) {

    .nav-links,
    .cta-nav {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

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

    .hero-buttons {
        flex-direction: column;
        align-items: flex-start;
        gap: 2rem;
    }

    .floating-badge {
        display: none;
    }

    .transform-heading {
        font-size: 2.5rem;
    }

    .horiz-scroll-container {
        padding: 0 2rem 4rem 2rem;
    }

    .menu-card {
        width: 320px;
    }
}

/* ====== THEME TRANSITION ANIMATION ====== */
body.theme-transition,
body.theme-transition *,
body.theme-transition *::before,
body.theme-transition *::after {
    transition: background-color 0.5s cubic-bezier(0.4, 0, 0.2, 1),
        color 0.5s cubic-bezier(0.4, 0, 0.2, 1),
        border-color 0.5s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1),
        fill 0.5s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* ====== PRELOADER ====== */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--bg-base);
    z-index: 99999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

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

.preloader-text {
    font-family: var(--font-heading);
    font-size: 4rem;
    color: var(--text-main);
    margin: 0;
}

.preloader-subtext {
    font-size: 1.2rem;
    color: var(--gold-accent);
    margin-top: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* ====== SCROLL PROGRESS BAR ====== */
.scroll-progress-container {
    position: fixed;
    top: 0;
    right: 0;
    width: 4px;
    height: 100vh;
    background: rgba(128, 128, 128, 0.1);
    z-index: 9999;
}

.scroll-progress-bar {
    width: 100%;
    height: 0%;
    background: var(--gold-accent);
}

/* ====== MOBILE & TOUCH OPTIMIZATIONS ====== */
@media (hover: none) and (pointer: coarse) {

    /* Prevent hover effects from sticking on mobile devices after tap */
    .btn-primary:hover,
    .btn-icon:hover,
    .menu-card:hover,
    .floating-badge:hover {
        transform: none !important;
    }

    .tilt-card .card-inner {
        transform: none !important;
    }

    .floating-badge:hover::before {
        width: 0 !important;
        height: 0 !important;
    }
}