/* --- Variables & Design System --- */
:root {
    /* Main Accent Colors */
    --color-accent: #FFA20C;
    --color-highlight: #A07B26;
    --color-border: #A9AAAF;
    --color-text-secondary-raw: #B0AFB7;

    /* Light Mode (Default) */
    --bg-main: #FFFFFF;
    --bg-alt: #F6F6F8;
    --text-main: #1C1C1E;
    --text-sec: #5F5F66;
    --card-bg: #FFFFFF;
    --shadow-soft: rgba(0, 0, 0, 0.08);
    --nav-bg: rgba(255, 255, 255, 0.8);

    /* Transitions */
    --transition-smooth: all 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    --transition-fast: all 0.3s ease;
}

body.dark-mode {
    --bg-main: #0E0E11;
    --bg-alt: #16161A;
    --text-main: #F2F2F4;
    --text-sec: #A9AAAF;
    --card-bg: #1E1E24;
    --shadow-soft: rgba(0, 0, 0, 0.4);
    --nav-bg: rgba(14, 14, 17, 0.8);
    --color-border: #2A2A2E;
}

/* --- Reset & Base --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

html {
    scroll-behavior: initial;
    /* Lenis handles smoothing */
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.5s ease, color 0.5s ease;
}

h1,
h2,
h3,
.logo {
    font-family: 'Inter Tight', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 4rem;
}

@media (max-width: 1024px) {
    .container {
        padding: 0 2rem;
    }
}

/* --- Loader --- */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0E0E11;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

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

.loader-text {
    font-size: 2rem;
    font-weight: 700;
    color: #FFF;
    display: block;
    margin-bottom: 1rem;
    letter-spacing: 0.1em;
}

.loader-bar {
    width: 200px;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.loader-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    background: var(--color-accent);
    animation: loading 1.5s infinite ease-in-out;
}

@keyframes loading {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(200%);
    }
}

/* --- Navigation --- */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    backdrop-filter: blur(20px);
    background: var(--nav-bg);
    border-bottom: 1px solid var(--color-border);
    transition: var(--transition-smooth);
}

nav.scrolled {
    padding: 1rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 4rem;
}

.logo {
    font-size: 1.5rem;
    letter-spacing: -0.01em;
}

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

.nav-links {
    display: flex;
    gap: 3rem;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-sec);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.nav-links a:hover {
    color: var(--color-accent);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.btn-cta {
    background: var(--text-main);
    color: var(--bg-main);
    padding: 0.8rem 1.8rem;
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px var(--shadow-soft);
}

#theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-alt);
    transition: var(--transition-fast);
}

#theme-toggle svg {
    width: 20px;
    height: 20px;
}

.sun-icon {
    display: none;
}

body:not(.dark-mode) .sun-icon {
    display: none;
}

body:not(.dark-mode) .moon-icon {
    display: block;
}

body.dark-mode .sun-icon {
    display: block;
}

body.dark-mode .moon-icon {
    display: none;
}

/* --- Hero Section --- */
.hero-section {
    height: 400vh;
    /* Scroll duration */
    position: relative;
    background-color: var(--bg-main);
}

.hero-sticky {
    position: sticky;
    top: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

#hero-canvas {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero-container {
    position: relative;
    z-index: 2;
    pointer-events: none;
    /* Let scroll events pass through to body if needed, though buttons should work */
}

.hero-content {
    max-width: 700px;
    pointer-events: all;
}

.hero-section h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    line-height: 1.1;
    margin-bottom: 2rem;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.hero-section h1 span {
    display: block;
    color: var(--text-sec);
    font-weight: 500;
}

.hero-section p {
    font-size: 1.25rem;
    color: var(--text-sec);
    margin-bottom: 3rem;
    max-width: 500px;
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    padding-top: 40rem;
}

.btn-primary {
    background: var(--color-accent);
    color: #FFF;
    padding: 1.2rem 2.5rem;
    border-radius: 100px;
    font-weight: 600;
    font-size: 1rem;
}

.btn-secondary {
    border: 1px solid var(--color-border);
    padding: 1.2rem 2.5rem;
    border-radius: 100px;
    font-weight: 600;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 30px rgba(255, 162, 12, 0.3);
}

.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 4rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    opacity: 0.6;
    z-index: 2;
}

.mouse {
    width: 24px;
    height: 40px;
    border: 2px solid var(--text-sec);
    border-radius: 20px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.wheel {
    width: 3px;
    height: 8px;
    background: var(--color-accent);
    border-radius: 2px;
    animation: scrollWheel 2s infinite;
}

@keyframes scrollWheel {
    0% {
        transform: translateY(0);
        opacity: 1;
    }

    100% {
        transform: translateY(15px);
        opacity: 0;
    }
}

.scroll-indicator span {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 500;
}

/* --- Products Section --- */
.products-section {
    height: 400vh;
    padding-top: 4rem;
    /* background: var(--bg-alt); */
    /* position: relative; */
    /*overflow: visible; */
    position: relative;
    /* top: 50%;
    left: 50%; */
    /* transform: translate(-50%, -50%); */
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* z-index: 1; */
}

/* .products-sticky-wrapper {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
} */

.product-header-container {
    margin-bottom: 2rem;
}

.section-tag {
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-weight: 600;
    font-size: 0.8rem;
    display: block;
    margin-bottom: 1rem;
}

.section-header h2 {
    font-size: 3.5rem;
}

.horizontal-scroll-container {
    padding-left: 4rem;
    width: 100%;
}

.horizontal-carousel {
    display: flex;
    gap: 4rem;
    width: max-content;
    /* Critical for horizontal scroll */
    padding-right: 4rem;
}

.product-info-card {
    width: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-shrink: 0;
}

.product-info-card h3 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.product-info-card p {
    font-size: 1.1rem;
    color: var(--text-sec);
}

.product-card {
    width: 450px;
    background: var(--card-bg);
    border-radius: 30px;
    overflow: hidden;
    padding: 2rem;
    border: 1px solid var(--color-border);
    transition: var(--transition-smooth);
    cursor: pointer;
    flex-shrink: 0;
}

.product-card:hover {
    transform: translateY(-10px);
    border-color: var(--color-accent);
    box-shadow: 0 30px 60px var(--shadow-soft);
}

.product-image {
    width: 100%;
    aspect-ratio: 4/3;
    background: var(--bg-alt);
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

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

.product-info h4 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.product-info .price {
    font-weight: 600;
    color: var(--color-accent);
    font-size: 1.1rem;
}

/* --- Clients Section --- */
.clients-section {
    padding: 8rem 0;
    background: var(--bg-main);
}

.brands-loop {
    overflow: hidden;
    white-space: nowrap;
    padding: 4rem 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 8rem;
}

.loop-container {
    display: inline-block;
    animation: loop 30s linear infinite;
}

.brand-item {
    display: inline-block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-sec);
    opacity: 0.2;
    margin: 0 4rem;
    letter-spacing: 0.2em;
}

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

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

.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.testimonial-card {
    background: var(--bg-alt);
    padding: 4rem;
    border-radius: 40px;
}

.testimonial-card .quote {
    font-size: 1.5rem;
    font-style: italic;
    margin-bottom: 2.5rem;
    color: var(--text-main);
    line-height: 1.4;
}

.testimonial-card .user {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.testimonial-card .user img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
}

.testimonial-card .name {
    font-weight: 700;
    font-size: 1.1rem;
}

.testimonial-card .role {
    font-size: 0.9rem;
    color: var(--text-sec);
}

/* --- About Us --- */
.about-section {
    padding: 10rem 0;
}

.grid-split {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 6rem;
    align-items: center;
}

.about-text h2 {
    font-size: 3.5rem;
    margin-bottom: 2rem;
    line-height: 1.1;
}

.about-text p {
    font-size: 1.1rem;
    color: var(--text-sec);
    margin-bottom: 3rem;
}

.values {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.value-item h5 {
    font-size: 1.2rem;
    color: var(--color-accent);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.about-image {
    perspective: 1000px;
}

.image-reveal {
    border-radius: 40px;
    overflow: hidden;
    height: 700px;
    box-shadow: 0 40px 80px var(--shadow-soft);
}

.image-reveal img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- Footer --- */
footer {
    padding: 6rem 0 3rem;
    border-top: 1px solid var(--color-border);
    background: var(--bg-alt);
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4rem;
}

.footer-links {
    display: flex;
    gap: 3rem;
}

.footer-links a {
    font-size: 0.9rem;
    color: var(--text-sec);
    font-weight: 500;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
    color: var(--text-sec);
    font-size: 0.85rem;
}

.socials {
    display: flex;
    gap: 2rem;
}

/* --- Mobile Menu & Responsive Refinements --- */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-btn span {
    width: 25px;
    height: 2px;
    background: var(--text-main);
    transition: var(--transition-fast);
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }

    .nav-links {
        display: none;
    }

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

    .hero-section {
        height: auto;
        padding-top: 150px;
        padding-bottom: 100px;
        text-align: center;
        flex-direction: column;
    }

    .hero-content {
        max-width: 100%;
        margin-bottom: 4rem;
    }

    .hero-section h1 {
        font-size: 3rem;
    }

    .hero-btns {
        justify-content: center;
        flex-direction: column;
    }

    .hero-visual {
        position: relative;
        right: 0;
        top: 0;
        transform: none;
        width: 100%;
        margin-top: 2rem;
    }

    .hero-image-wrapper {
        border-radius: 20px;
        height: 50vh;
    }

    .scroll-indicator {
        display: none;
    }

    .products-container {
        grid-template-columns: 1fr;
    }

    .sticky-product-info {
        position: relative;
        top: 0;
        margin-bottom: 2rem;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .grid-split {
        grid-template-columns: 1fr;
    }

    .about-image {
        order: -1;
    }

    .image-reveal {
        height: 400px;
    }
}


/* --- Contact Section --- */
.contact-section {
    padding-bottom: 10rem;
    background: var(--bg-main);
}

.contact-card {
    background: var(--bg-alt);
    border-radius: 50px;
    padding: 4rem;
    overflow: hidden;
    border: 1px solid var(--color-border);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.contact-info h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    /* line-height: 1.1; */
    margin-bottom: 3.5rem;
}

.contact-info p {
    color: var(--text-sec);
    font-size: 1.1rem;
    margin-bottom: 3rem;
    max-width: 500px;
}

.contact-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3.5rem;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.detail-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-accent);
    font-weight: 600;
}

.detail-value {
    font-size: 1.1rem;
    font-weight: 500;
    line-height: 1.4;
}

.social-links-minimal {
    display: flex;
    gap: 2rem;
}

.social-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
    text-decoration: underline;
    text-underline-offset: 4px;
    transition: var(--transition-fast);
}

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

.contact-visual {
    height: 100%;
}

.map-placeholder {
    position: relative;
    width: 100%;
    height: 500px;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 30px 60px var(--shadow-soft);
}

.map-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(1);
    transition: var(--transition-smooth);
}

.map-placeholder:hover img {
    filter: grayscale(0.5);
    transform: scale(1.05);
}

.map-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-180%, 150%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.marker {
    width: 20px;
    height: 20px;
    background: var(--color-accent);
    border-radius: 50%;
    position: relative;
}

.marker::after {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 2px solid var(--color-accent);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.5);
        opacity: 1;
    }

    100% {
        transform: scale(2);
        opacity: 0;
    }
}

.marker-text {
    background: var(--bg-main);
    color: var(--text-main);
    padding: 0.5rem 1rem;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
}

@media (max-width: 1024px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-card {
        padding: 3rem 2rem;
    }
}

@media (max-width: 768px) {
    .contact-details {
        grid-template-columns: 1fr;
    }

    .map-placeholder {
        height: 300px;
    }
}

/* --- Accessibility --- */
@media (prefers-reduced-motion: reduce) {

    *,
    ::before,
    ::after {
        animation-delay: -1ms !important;
        animation-duration: 1ms !important;
        animation-iteration-count: 1 !important;
        background-attachment: initial !important;
        scroll-behavior: auto !important;
        transition-duration: 0s !important;
        transition-delay: 0s !important;
    }

    .hero-section {
        height: 100vh !important;
    }
}