/* 
   Tumbler Tales - Final Polish
   Concept: Funky Luxury, Kinetic, Editorial
*/

:root {
    --bg-color: #041C5C;
    --text-color: #e8e3d9;
    --accent-color: #d4af37;
    /* Classic Gold */
    --accent-funky: #ff4d00;

    --font-heading: 'Playfair Display', serif;
    --font-body: 'Space Grotesk', sans-serif;

    --padding-container: 4vw;
    --section-spacing: 6rem;
    /* Reduced from 12rem */
    /* Consistent section spacing */

    --transition-slow: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html.lenis-smooth {
    scroll-behavior: auto;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    font-size: clamp(1rem, 0.9rem + 0.3vw, 1.2rem);
    /* Fluid Body Text */
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    /* Cursor reverted to default */
}

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

.loader-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    /* Stack logo and text */
    gap: 2rem;
}

.loader-logo-wrapper {
    overflow: hidden;
}

.loader-logo {
    width: 80px;
    /* Adjust size as needed */
    height: auto;
    transform: translateY(110%);
    /* Start hidden */
}

.loader-words {
    overflow: hidden;
    display: flex;
    gap: 1.5rem;
}

.loader-word {
    display: block;
    font-family: var(--font-heading);
    font-size: clamp(3rem, 5vw, 6rem);
    color: var(--accent-color);
    line-height: 1.1;
    transform: translateY(110%);
    /* Start hidden */
}

.loader-progress-tracker {
    position: absolute;
    bottom: 3rem;
    right: 3rem;
    overflow: hidden;
}

.loader-progress {
    font-family: var(--font-body);
    font-size: 1.5rem;
    color: var(--text-color);
    display: block;
    opacity: 0;
    /* JS handles reveal */
}

.loader-curtain {
    display: none;
    /* Removing the separate curtain div, using preloader itself */
}

body.loading {
    overflow: hidden;
}

/* Noise Overlay */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 900;
    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)' opacity='0.07'/%3E%3C/svg%3E");
    opacity: 0.05;
}

@media (max-width: 768px) {
    .noise-overlay {
        display: none;
        /* Performance fix: Remove noise on mobile */
    }
}



/* Typography Utility */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 400;
    text-transform: uppercase;
    line-height: 0.95;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: 1920px;
    margin: 0 auto;
    padding: 0 var(--padding-container);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem var(--padding-container);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    background-color: var(--text-color);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--bg-color);
}

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

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.logo-img {
    height: 50px;
    /* Reverted to original size */
    width: auto;
    display: block;
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.05);
}

.nav-right {
    display: flex;
    gap: 3rem;
    align-items: center;
    /* Ensures vertical center alignment */
    height: 100%;
}

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

.nav-links a,
.btn-nav {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 500;
    position: relative;
    overflow: hidden;
    display: inline-block;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: currentColor;
    transform: translateX(-101%);
    transition: transform 0.4s ease;
}

.nav-links a:hover::after {
    transform: translateX(0);
}

/* Button styles removed for consistent nav look */


.hamburger {
    display: none;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    /* Changed to min-height for safety */
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    padding-top: 10rem;
    padding-bottom: 4rem;
    overflow: hidden;
    /* Contain floating elements */
}

.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
    position: relative;
    width: 100%;
}

.hero-content {
    z-index: 2;
}

.hero-visuals {
    position: relative;
    height: 60vh;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
}

.hero-tumbler {
    position: absolute;
    width: auto;
    height: 50vh;
    /* Base size */
    object-fit: contain;
    filter: drop-shadow(20px 20px 40px rgba(0, 0, 0, 0.5));
    opacity: 0;
    /* Hidden initially for JS reveal */
}

.t1 {
    left: 0;
    top: 10%;
    z-index: 1;
    transform: rotate(-10deg);
    height: 40vh;
}

.t2 {
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    height: 55vh;
}

.t3 {
    right: 0;
    bottom: 10%;
    z-index: 2;
    transform: rotate(10deg);
    height: 40vh;
}

.hero-bg-parallax {
    position: absolute;
    top: -10%;
    right: -10%;
    width: 60vw;
    height: 80vh;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.2) 0%, rgba(14, 13, 12, 0) 70%);
    filter: blur(80px);
    z-index: -1;
    border-radius: 50%;
}

@media (max-width: 768px) {
    .hero-bg-parallax {
        display: none;
        /* Performance fix: Remove heavy blur on mobile */
    }
}

.hero-title {
    font-size: clamp(3rem, 11vw, 12rem);
    /* Fluid clamp */
    font-style: italic;
    color: var(--text-color);
    margin-bottom: 3rem;
    perspective: 1000px;
}

.hero-title .line {
    display: block;
    transform-origin: left;
}

.hero-bottom-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: 4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 3rem;
}

.hero-subtitle {
    max-width: 450px;
    font-size: 1.15rem;
    opacity: 0.8;
}

.hero-cta-group {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.btn-circle {
    width: 8rem;
    height: 8rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: var(--transition-slow);
    position: relative;
    overflow: hidden;
    color: var(--text-color);
}

.btn-circle::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--text-color);
    border-radius: 50%;
    transform: scale(0);
    transition: transform 0.4s ease;
    z-index: -1;
}

.btn-circle:hover {
    color: var(--bg-color);
    border-color: transparent;
}

.btn-circle:hover::before {
    transform: scale(1);
}

/* Marquee Section */
.marquee-section {
    padding: 3rem 0;
    overflow: hidden;
    background: var(--text-color);
    color: var(--bg-color);
    transform: rotate(-2deg) scale(1.05);
    margin: 4rem 0;
    /* Reduced from 6rem */
}

.marquee-content {
    white-space: nowrap;
    font-family: var(--font-heading);
    font-style: italic;
    font-size: clamp(3rem, 6vw, 6rem);
    animation: marquee 25s linear infinite;
}

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

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

/* Sections */
.section {
    padding: var(--section-spacing) 0;
}

/* About Section */
.fluid-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    /* Reduced gap */
    align-items: center;
}

.col-left h2 {
    font-size: clamp(3rem, 7vw, 8rem);
}

.lead-text {
    font-size: clamp(1.5rem, 2.5vw, 3rem);
    margin-bottom: 2rem;
    line-height: 1.2;
}

.body-text {
    font-size: 1.2rem;
    opacity: 0.7;
    max-width: 450px;
}

/* Collection Section */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem 2rem;
    margin-top: 4rem;
}

.gallery-item {
    position: relative;
    padding-top: 0;
}

.img-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 3/4;
    overflow: hidden;
    background-color: rgba(255, 255, 255, 0.05);
    /* Placeholder bg */
}

.img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s ease;
    filter: grayscale(0%);
}

.gallery-item:hover .img-wrapper img {
    transform: scale(1.05);
}

.item-info {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-family: var(--font-body);
    font-size: 1rem;
    margin-top: 1.5rem;
    opacity: 0.9;
}

.item-info h3 {
    font-family: var(--font-body);
    /* Override heading font for minimal look */
    font-size: 1.1rem;
    text-transform: none;
    /* Keep generic for readability */
    letter-spacing: 0.02em;
}

.item-price {
    font-weight: 500;
    color: var(--accent-color);
}

/* Features Horizontal Scroll */
.features-scroll-section {
    padding: var(--section-spacing) 0;
    overflow: hidden;
}

.features-wrapper {
    display: flex;
    gap: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.feature-panel {
    min-width: 25vw;
    padding: 6rem 3rem;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    background: var(--bg-color);
    transition: background 0.3s;
    flex: 1;
}

.feature-panel:hover {
    background: #020e2e;
}

.feature-num {
    display: block;
    margin-bottom: 10rem;
    font-size: 0.9rem;
    opacity: 0.5;
}

.feature-panel h3 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* Experience */
.center-text {
    font-size: clamp(4rem, 12vw, 16rem);
    margin-bottom: 4rem;
    opacity: 0.1;
    text-align: center;
}

.process-steps {
    display: flex;
    justify-content: space-around;
    align-items: center;
    /* Changed from flex-start to center */
    position: relative;
    gap: 2rem;
    text-align: center;
}

.process-steps::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 10%;
    width: 80%;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    z-index: -1;
}

.step-marker {
    width: 40px;
    height: 40px;
    background: var(--bg-color);
    border: 1px solid white;
    border-radius: 50%;
    margin: 0 auto 2rem;
    transition: background 0.3s;
    position: relative;
    z-index: 2;
}

.process-step:hover .step-marker {
    background: white;
}

.step-content h4 {
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

/* Footer */
.footer {
    padding: 5rem var(--padding-container) 2rem;
    background: #e8e3d9;
    color: #0e0d0c;
}

.footer-top {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding-bottom: 3rem;
    margin-bottom: 2rem;
}

.footer-cta-title {
    font-size: clamp(3rem, 10vw, 10rem);
    line-height: 0.9;
    margin-bottom: 2rem;
    cursor: pointer;
}

.footer-email {
    font-size: clamp(1rem, 2vw, 1.5rem);
    text-decoration: underline;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.footer-email:hover {
    opacity: 1;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    opacity: 0.6;
}

.socials a {
    margin-right: 2rem;
    font-weight: 500;
}

/* Mobile Responsive */
/* Mobile Layout Overhaul */
/* Mobile Layout Overhaul */
@media (max-width: 1024px) {
    :root {
        --padding-container: 1.5rem;
        --section-spacing: 4rem;
    }

    /* Container & Layout */
    .container {
        max-width: 100%;
        padding: 0 1.5rem;
    }

    body {
        font-size: 1.1rem;
        /* Slightly larger base text for readability */
        line-height: 1.7;
    }

    /* Navigation Overlay */
    .nav-links {
        display: flex;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100dvh;
        /* Dynamic viewport height */
        background-color: rgba(14, 13, 12, 0.98);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        /* Safari support */
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 3rem;
        z-index: 200;
        transform: translateY(-100%);
        transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .nav-links.active {
        transform: translateY(0);
    }

    .nav-links a {
        font-size: 2.5rem;
        font-family: var(--font-heading);
        color: var(--text-color);
        /* Light color for contrast */
        padding: 1rem;
        /* Larger touch target */
    }

    .btn-nav {
        display: none;
    }

    /* Hamburger - Larger Touch Target */
    .hamburger {
        display: flex !important;
        flex-direction: column;
        gap: 6px;
        width: 44px;
        /* Minimum recommended touch target size */
        height: 44px;
        justify-content: center;
        cursor: pointer;
        z-index: 1000;
        position: relative;
        /* Visual fix to keep icon look compact while having large hit area */
    }

    .hamburger span {
        width: 30px;
        /* Visual width */
        height: 2px;
        background: var(--bg-color);
        transition: all 0.3s ease;
        align-self: flex-end;
        /* Align to right/end */
    }

    .hamburger.active span {
        background: var(--text-color);
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }

    .hamburger.active span:nth-child(2) {
        transform: rotate(-45deg) translate(5px, -6px);
    }

    /* Hero Section - Refined */
    .hero {
        padding-top: 100px;
        min-height: 100dvh;
        /* Stable full screen */
        padding-bottom: 2rem;
        height: auto;
        display: flex;
        flex-direction: column;
        justify-content: space-evenly;
        /* Better spacing distribution */
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1rem;
    }

    .hero-visuals {
        height: 40vh;
        /* Reduced slightly to give text room */
        margin-top: 0;
        order: -1;
    }

    .hero-tumbler {
        height: 32vh;
        width: auto;
    }

    /* Adjusted positions to avoid text overlap */
    .t1 {
        height: 22vh;
        top: 5%;
        left: 0%;
        transform: rotate(-15deg);
    }

    .t2 {
        height: 38vh;
        top: 50%;
        left: 50%;
    }

    .t3 {
        height: 22vh;
        bottom: 5%;
        right: 0%;
        transform: rotate(15deg);
    }

    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        z-index: 10;
        /* Ensure text is above images if they drift */
    }

    .hero-title {
        font-size: clamp(2.5rem, 11vw, 4.5rem);
        /* Refined range */
        margin-bottom: 1rem;
        line-height: 1.1;
    }

    .hero-subtitle {
        text-align: center;
        font-size: 1rem;
        max-width: 85%;
        margin-bottom: 2rem;
        line-height: 1.5;
        opacity: 0.9;
    }

    .hero-bottom-row {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
        border-top: none;
        margin-top: 1rem;
        padding-top: 0;
    }

    /* Performance Optimizations */
    .hero-bg-parallax,
    .noise-overlay {
        display: none;
    }

    /* Content Sections */
    .fluid-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .col-left h2 {
        font-size: clamp(2.5rem, 9vw, 3.5rem);
        margin-bottom: 1.5rem;
    }

    .body-text,
    .lead-text {
        margin-left: auto;
        margin-right: auto;
        width: 100%;
        max-width: 100%;
        /* Use full width on mobile */
    }

    /* Marquee Mobile */
    .marquee-content {
        font-size: clamp(2rem, 8vw, 3rem);
        /* Smaller on mobile */
    }

    /* Gallery */
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
        /* More space between items */
        padding: 0;
    }

    .img-wrapper {
        aspect-ratio: 4/5;
        margin-bottom: 1.5rem;
    }

    .item-info {
        flex-direction: column;
        /* Stack title and price */
        align-items: center;
        gap: 0.5rem;
    }

    /* Features */
    .features-wrapper {
        flex-direction: column;
    }

    .feature-panel {
        width: 100%;
        padding: 4rem 1.5rem;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        text-align: center;
    }

    /* Process */
    .process-steps {
        flex-direction: column;
        gap: 4rem;
    }

    .process-steps::before {
        width: 1px;
        height: 90%;
        left: 50%;
        top: 0;
        transform: translateX(-50%);
    }

    /* Footer */
    .footer {
        text-align: center;
        padding-bottom: 3rem;
        /* Extra bottom padding for iOS bar */
    }

    .footer-bottom {
        flex-direction: column-reverse;
        /* Copyright at bottom */
        gap: 2rem;
    }

    .socials {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
    }

    .socials a {
        margin: 0;
        font-size: 1.2rem;
        /* Easier to tap */
        padding: 0.5rem;
    }

    .footer-cta-title {
        font-size: 14vw;
    }

    /* Preloader Mobile */
    .loader-word {
        font-size: 14vw;
    }

    .loader-logo {
        width: 60px;
    }
}