/* GLOBAL */
body {
    font-family: "Inter", sans-serif;
    overflow-x: hidden;
    background: #faf8ff; /* subtle lavender white */
    color: #2a2a2a;
}

a { text-decoration: none; color: #555; transition: 0.3s; }
a:hover { color: #7b5bff; }

/* HEADER */
header {
    /* Keep fixed on desktop */
    position: fixed;
    top: 0;
    width: 100%;
    padding: 8px 12px;
    border-radius: 30px;
    background: #fbfcfb;
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    z-index: 1000;
}

nav a {
    margin-right: 80px;
    padding: 0 6px;
}

.logo {
    margin-left: 20px;
    height: 50px;
}

/* HERO SECTION */
.hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 120px 60px;
    min-height: 100vh;
    background: linear-gradient(135deg, #ffffff, #f4f1ff 60%, #ece6ff);
}

.hero-content {
    max-width: 50%;
}

.hero h1 {
    font-size: 54px;
    font-weight: 800;
    line-height: 1.1;
}

.hero h1 span {
    background: linear-gradient(90deg,#b197ff,#7b5bff);
    -webkit-background-clip: text;
    color: transparent;
}

.hero p {
    margin-top: 16px;
    color: #555;
    font-size: 20px;
}

.cta {
    margin-top: 30px;
    padding: 14px 34px;
    background: #7b5bff;
    color: white;
    border-radius: 10px;
    display: inline-block;
    font-weight: 600;
}
.cta:hover { opacity: 0.9; }

/* HERO IMAGE */
.hero-img img {
    width: 350px;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    display: block;
}

/* WHY SECTION */
.why {
    padding: 80px 40px;
    text-align: center;
}

.why-container {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-top: 40px;
}

.card {
    width: 300px;
    padding: 32px;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 18px;
    border: 1px solid rgba(123, 91, 255, 0.12);
    backdrop-filter: blur(6px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
    transition: 0.35s ease;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 28px rgba(123,91,255,0.25);
}

/* HOW SECTION */
.how {
    padding: 80px 40px;
    background: #f4f1ff;
    text-align: center;
}

.steps {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 50px;
}

.step {
    background: white;
    padding: 20px;
    border-radius: 14px;
    width: 240px;
    border: 1px solid rgba(0,0,0,0.08);
}

.step span {
    font-size: 38px;
    font-weight: 700;
    background: linear-gradient(90deg,#b197ff,#7b5bff);
    -webkit-background-clip: text;
    color: transparent;
}

/* CONTACT */
.contact {
    padding: 100px 30px;
    text-align: center;
}

.contact-box {
    margin-top: 20px;
    padding: 28px;
    background: white;
    border-radius: 14px;
    border: 1px solid rgba(0,0,0,0.08);
}



/*changes*/

/* ANIMATIONS */
/* Fade Up */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.9s ease forwards;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}



/* Slide In Right */
.slide-right {
    opacity: 0;
    transform: translateX(60px);
    animation: slideRight 1s ease forwards;
}

@keyframes slideRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* TRY IT YOURSELF - label preview on bottle */
/* TRY SECTION: side-by-side (bottle left, controls right) */
/* ===== Examples carousel styles ===== */
/* ===== Examples carousel styles (fixed) ===== */
.examples {
    text-align: center;
    padding: 100px 40px;
    background: #faf7ff;
}

/* viewport wrapper */
.carousel-wrap {
    max-width: 520px;      /* tighter viewport to avoid peek */
    width: 100%;
    margin: 0 auto;
    position: relative;
    overflow: hidden;      /* CRITICAL: hides extra slides */
}

/* inner track viewport */
.carousel {
    width: 100%;
    overflow: hidden;      /* CRITICAL: double-clips overflow */
    position: relative;
}

/* buttons */
.carousel-btn {
    font-size: 28px;
    padding: 8px 16px;
    background: white;
    border-radius: 50%;
    border: 1px solid #ccc;
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

.carousel-btn.prev { left: -50px; }
.carousel-btn.next { right: -50px; }

/* sliding rail */
.slides-container {
    display: flex;
    flex-wrap: nowrap;      /* CRITICAL: prevents wrapping */
    transition: transform 0.6s ease;
    will-change: transform;
}

/* each slide occupies 100% of viewport */
.slide {
    flex: 0 0 100%;
    width: 100%;
    padding: 0;          /* remove internal padding that can cause peeking */
    margin: 0;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* bottle visuals */
.bottle-preview {
    width: 420px;
    max-width: 90%;
    position: relative;
}

.bottle-base {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.label-overlay {
    position: absolute;
    top: 34%;
    left: 50%;
    transform: translateX(-50%);
    width: 62%;
    border-radius: 12px;
    mix-blend-mode: multiply;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.caption {
    margin-top: 10px;
    font-size: 16px;
    color: #444;
}

/* optional: dots styling if you use them */
.carousel-dots {
    margin-top: 12px;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.dot {
    width: 8px;
    height: 8px;
    background: #ddd;
    border-radius: 50%;
    cursor: pointer;
}

.dot.active { background: #7b5bff; }


/* ======================================= */
/* ===== MOBILE RESPONSIVENESS (<= 768px) */
/* ======================================= */

@media (max-width: 768px) {
    /* CRITICAL FIX: Change fixed header to static to prevent overlap/scrolling issues */
    header {
        position: static;
        padding: 12px 20px;
        justify-content: center;
    }
    
    nav {
        /* Hide navigation links by default on mobile */
        display: none; 
    }
    
    /* FIX: Remove desktop margin from links (though hidden, this is good practice) */
    nav a {
        margin-right: 0;
    }

    .logo {
        margin-left: 0;
        height: 40px; /* Smaller logo */
    }

    /* HERO SECTION */
    .hero {
        flex-direction: column; /* Stack content and image vertically */
        /* Adjusted padding now that header is static */
        padding: 40px 20px 60px; 
        min-height: auto; 
        text-align: center; 
    }

    .hero-content {
        max-width: 100%; 
        order: 2; /* Put content below image */
    }

    .hero h1 {
        font-size: 36px; 
        margin-top: 20px;
    }
    
    .hero p {
        font-size: 16px;
    }

    /* HERO IMAGE */
    .hero-img {
        order: 1; /* Put image above content */
        margin-bottom: 30px;
    }

    .hero-img img {
        width: 280px; /* Smaller image */
    }

    /* WHY SECTION */
    .why {
        padding: 60px 20px;
    }
    
    .why-container {
        flex-direction: column; 
        gap: 20px;
        margin-top: 30px;
    }

    .card {
        width: 100%; 
        max-width: 350px; 
        margin: 0 auto;
        padding: 24px;
    }
    
    .card:hover {
        transform: translateY(0); 
        box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    }

    /* HOW SECTION */
    .how {
        padding: 60px 20px;
    }
    
    .steps {
        flex-direction: column; 
        gap: 20px;
        margin-top: 30px;
    }

    .step {
        width: 100%;
        max-width: 300px; 
        margin: 0 auto;
        padding: 15px;
    }

    /* EXAMPLES CAROUSEL */
    .examples {
        padding: 60px 20px;
    }

    .carousel-wrap {
        max-width: 350px; 
    }

    /* Hide next/prev buttons on mobile for a cleaner look */
    .carousel-btn {
        display: none; 
    }

    .bottle-preview {
        width: 300px; 
    }

    /* CONTACT SECTION */
    .contact {
        padding: 60px 20px;
    }
    
    .contact-box {
        max-width: 300px;
        margin: 20px auto 0;
    }
}
