@import url('https://fonts.googleapis.com/css2?family=Albert+Sans:wght@200;500&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;
    overflow-x: hidden; /* Evitar scrollbar horizontal */
    overflow-y: auto;   /* Scroll vertical nativo del navegador */
    font-family: 'Albert Sans', sans-serif;
    /* Assuming font from original index.html */
}

/* Main Sticky Header */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    z-index: 1000;
    background: rgba(121, 104, 91, 0.45); /* Warm taupe/brown semi-transparent */
    backdrop-filter: blur(12px) saturate(110%);
    -webkit-backdrop-filter: blur(12px) saturate(110%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 40px;
    transition: all 0.4s ease;
}

.nav-menu {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3.5vw; /* Fluid spacing for perfect distribution */
    width: 100%;
    max-width: 1200px;
}

.nav-link {
    font-size: 0.8rem;
    font-weight: 500;
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.65;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.nav-link:hover {
    opacity: 1;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.nav-link.active {
    opacity: 1;
    font-weight: 500;
    position: relative;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: #fff;
    opacity: 0.8;
}

/* Dropdown Menu Styles */
.nav-item-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(15, 15, 10, 0.7); /* Dark glass effect */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    min-width: 240px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 0;
    margin-top: 15px; /* Offset from header */
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.nav-item-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    margin-top: 2px; /* Slight slide up effect */
}

.dropdown-link {
    font-size: 0.85rem;
    font-weight: 300;
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 3px;
    padding: 20px 25px;
    text-align: right;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.dropdown-link:last-child {
    border-bottom: none;
}

.dropdown-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

@media (max-width: 1024px) {
    .nav-menu {
        gap: 20px;
    }
    .nav-link {
        font-size: 0.75rem;
        letter-spacing: 1.5px;
    }
}

@media (max-width: 768px) {
    .main-header {
        height: 55px;
        padding: 0; /* nav-menu maneja los paddings internos */
        overflow: hidden; /* Elimina la reserva de espacio del scrollbar en el contenedor flex */
    }
    
    .nav-menu {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        flex-wrap: nowrap; /* Evitar que los ítems se envuelvan */
        gap: 25px;
        width: 100%;
        height: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch; /* inercia de scroll táctil nativo en iOS */
        padding: 0 20px;
        scrollbar-width: none; /* Ocultar en Firefox */
        -ms-overflow-style: none; /* Ocultar en IE/Edge */
    }
    
    .nav-menu::-webkit-scrollbar {
        display: none; /* Ocultar en Chrome/Safari */
    }
    
    .nav-link {
        font-size: 0.75rem;
        letter-spacing: 1px;
        padding: 10px 5px; /* Aumenta el área de tap/toque */
    }
}

.slider-container {
    position: relative;
    width: 100%;
    height: auto; /* Altura natural basada en el flujo vertical de los slides */
}

.slide {
    position: relative;
    width: 100%;
    height: 100vh; /* Diapositivas en flujo normal apiladas ocupando la pantalla */
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.slide.active {
    z-index: 2;
}

/* Slide 1 Specifics */
#slide-1 {
    position: relative;
    height: auto; /* Altura natural basada en el largo de la imagen responsiva */
    background-color: #000;
}

.long-hero-container {
    width: 100%;
    position: relative;
}

.long-hero-image {
    width: 100%;
    height: auto;
    display: block;
    min-height: 100vh;
    object-fit: cover;
    object-position: top center;
}

/* Inner Background Slider */
.background-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.bg-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 0;
}

.bg-slide.active {
    opacity: 1;
    z-index: 1;
}

/* Dark Overlay */
.overlay-dark {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    /* 30% opacity black */
    z-index: 2;
    pointer-events: none;
}

#slide-1 .logo-overlay {
    position: absolute;
    top: 50vh;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    text-align: center;
    z-index: 3;
    /* Above overlay */
}

#slide-1 .logo-overlay img {
    max-width: 40vw;
    max-height: 80vh;
    width: auto;
    height: auto;
}

#slide-1 .phrase-overlay {
    position: absolute;
    bottom: 500px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    text-align: center;
    z-index: 3;
}

#slide-1 .phrase-overlay p {
    font-size: 1.25rem;
    font-weight: 200;
    line-height: 1.6;
    letter-spacing: 1px;
}

/* Slide 3 Specifics */
#slide-3 {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    text-align: center;
    overflow: hidden;
    background-color: #000;
    padding-bottom: 100px;
}

#slide-3 .center-content {
    position: relative;
    z-index: 10;
}


/* Slide 5 Specifics (THE SCENTS, formerly Slide 6) */
#slide-5 {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
    background-color: #000;
    padding: 12vh 0 10vh 0; /* Espaciado premium arriba y abajo de la pantalla */
    box-sizing: border-box;
}

#slide-5 .center-content {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    height: 52vh; /* Distribución vertical de contenidos sobre el 52% del alto */
}

.scents-header {
    position: relative;
    z-index: 10;
    text-align: center;
    width: 100%;
    margin-bottom: 8vh; /* Espacio elegante debajo del título general "THE SCENTS" */
}

.scents-header h2 {
    font-size: 2rem;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.scent-info {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, 15px); /* Transición premium de float-up */
    width: calc(100% - 40px); /* Cuenta el padding */
    max-width: 650px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Distribuye verticalmente Nombre, Descripción y Notas */
    align-items: center;
    text-align: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 1.5s ease-in-out, transform 1.5s ease-in-out;
}

.scent-info.active {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, 0);
}

.scent-name {
    font-size: 1.8rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 0;
}

.scent-desc {
    font-size: 1.05rem;
    font-weight: 200;
    line-height: 1.7;
    color: #ccc;
    width: 100%;
    max-width: 650px;
    margin: 0 auto;
}

.scent-notes {
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 1px;
    color: #fff;
    text-transform: uppercase;
    margin: 0;
}

/* Slide 6 Specifics (formerly Slide 7) */
#slide-6 {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    text-align: center;
    overflow: hidden;
    background-color: #000;
    padding-bottom: 100px;
}

#slide-6 .center-content {
    position: relative;
    z-index: 10;
}

/* Slide 7 Specifics (formerly Slide 8) */
#slide-7 {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    text-align: center;
    overflow: hidden;
    background-color: #000;
    padding-bottom: 100px;
}

#slide-7 .center-content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Slide 8 Specifics (Founder + Footer, formerly Slide 9) */
#slide-8 {
    background-color: #fff;
    overflow: hidden;
}

.footer-container {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.footer-logo-overlay {
    position: relative;
    z-index: 3; /* above overlay-dark */
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-monogram {
    width: 90%;
    max-width: 500px;
    height: auto;
    display: block;
    transition: transform 0.8s ease-in-out;
}

.footer-monogram:hover {
    transform: scale(1.05); /* Soft micro-interaction */
}

/* Reusing slide-2 styles for consistency usually, but explicit here for clarity if needed */


/* Slide 2 Specifics */
#slide-2 {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    text-align: center;
    overflow: hidden;
    background-color: #000;
    padding-bottom: 100px;
}

#slide-2 .center-content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.follow-button {
    display: inline-block;
    padding: 10px 35px;
    border: 1px solid #fff;
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    background: transparent;
    margin-top: 25px;
}

.follow-button:hover {
    background-color: #fff;
    color: #000;
}

/* Utility to hide text */
.text-hidden {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.text-container {
    position: absolute;
    top: 80px;
    /* Adjust as needed */
    left: 0;
    width: 100%;
    text-align: center;
    z-index: 10;
    pointer-events: none;
    /* Let clicks pass through */
    text-shadow: 0 2px 4px rgba(255, 255, 255, 0.5);
    /* Improve readability */
}

.slide-title {
    font-size: 2rem;
    font-weight: 500;
    /* Medium */
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 5px;
    color: #000;
}

.slide-subtitle {
    font-size: 1.2rem;
    font-weight: 200;
    /* ExtraLight */
    color: #333;
}

.thumbnail-carousel {
    position: absolute;
    bottom: 40px;
    left: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    z-index: 10;
}

.thumbnails-wrapper {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 5px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    justify-content: center;
    /* Centered items */
    background: transparent;
    /* Transparent background */
    border-radius: 10px;
}

.thumbnails-wrapper::-webkit-scrollbar {
    display: none;
    /* Hide scrollbar Chrome/Safari/Opera */
}

.thumb {
    height: 80px;
    /* Adjust based on asset size */
    width: 80px;
    /* Force square for nice rounding if needed, or just height */
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.3s ease, transform 0.2s ease;
    object-fit: cover;
    /* Cover to fill the rounded shape if we go fully round */
    border-radius: 50%;
    /* Fully rounded as requested */
}

.thumb:hover {
    transform: scale(1.05);
}

.thumb.active {
    border-bottom: 2px solid #000;
}

.nav-arrow {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0 15px;
    color: #666;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-arrow svg {
    width: 32px;
    height: 32px;
    stroke-width: 1px;
    transition: transform 0.3s ease, color 0.3s ease;
}

.nav-arrow:hover {
    color: #000;
}

.nav-arrow.prev:hover svg {
    transform: translateX(-4px);
}

.nav-arrow.next:hover svg {
    transform: translateX(4px);
}

/* Slide 4 Specifics */
#slide-4 {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    text-align: center;
    overflow: hidden;
    background-color: #f5ebe6;
    padding-top: 12vh;
}

#slide-4 .center-content {
    position: relative;
    z-index: 10;
}

/* Las tipografías de #slide-4 se heredan de .slide-title y .slide-subtitle generales del proyecto */

.white-text {
    color: #fff;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

/* Responsiveness */
@media (max-width: 768px) {
    .slide-title {
        font-size: 1.5rem;
    }

    .slide-subtitle {
        font-size: 1rem;
    }

    #slide-1 .phrase-overlay {
        position: absolute;
        top: calc(50vh + 50px) !important; /* Posicionado exactamente debajo del logo centrado en móvil */
        bottom: auto !important;
        left: 50%;
        transform: translateX(-50%);
        width: 100%;
        text-align: center;
        z-index: 3;
    }

    /* Removido override tipográfico de slide 4 en móvil para consistencia responsiva */

    .thumb {
        height: 60px;
    }

    .text-container {
        top: 60px;
    }

    .thumbnail-carousel {
        bottom: 20px;
    }

    /* Slide 5 Mobile Adjustments (formerly Slide 6) */
    #slide-5 {
        padding: 90px 0 6vh 0 !important; /* Evitar colisión con el header sticky en móvil */
    }

    #slide-4 {
        padding-top: 90px !important; /* Evitar colisión con el header sticky en móvil */
    }

    .scents-header {
        margin-bottom: 4vh; /* Gap reducido en móviles */
    }

    .scents-header h2 {
        font-size: 1.5rem;
    }

    #slide-5 .center-content {
        height: 60vh; /* Mayor porcentaje de altura en móviles */
    }

    .scent-name {
        font-size: 1.3rem;
        margin: 0;
    }

    .scent-desc {
        font-size: 0.85rem;
        line-height: 1.55;
        padding: 0 10px;
    }

    .scent-notes {
        font-size: 0.8rem;
        margin: 0;
    }
}

/* Navigation Dots */
.navigation-dots {
    position: fixed;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 100;
}

.nav-dot {
    width: 12px;
    height: 12px;
    background-color: transparent;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-dot:hover {
    background-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.2);
}

.nav-dot.active {
    background-color: #fff;
    border-color: #fff;
    transform: scale(1.3);
}

/* Dark Theme Dots (for Light Background Slides) */
.navigation-dots.dark-theme .nav-dot {
    border-color: rgba(0, 0, 0, 0.5);
}

.navigation-dots.dark-theme .nav-dot:hover {
    background-color: rgba(0, 0, 0, 0.5);
}

.navigation-dots.dark-theme .nav-dot.active {
    background-color: #000;
    border-color: #000;
}

/* Slide Autoplay Progress Bar (Sticky/Elegant Footer Loading Bar) */
.slide-progress-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px; /* Thin, premium line */
    background: rgba(255, 255, 255, 0.12); /* Subtle placeholder line */
    z-index: 100;
    overflow: hidden;
}

.slide-progress-bar {
    width: 0%;
    height: 100%;
    background: #ffffff; /* Premium white indicator */
    transition: none; /* Let CSS animation control flow */
}

/* CSS Keyframe Animation for Progress Bar */
.slide-progress-bar.animating {
    animation: slideProgress 2s linear forwards; /* Acelerada a 2 segundos en total sincronía con JS */
}

@keyframes slideProgress {
    0% {
        width: 0%;
    }
    100% {
        width: 100%;
    }
}

/* Dark Theme Slide Progress Bar (for Slide 4 with Light Pink/Beige background) */
#slide-4 .slide-progress-container {
    background: rgba(0, 0, 0, 0.08); /* Dark placeholder line */
}

#slide-4 .slide-progress-bar {
    background: #000000; /* Black progress indicator */
}

/* --- Premium Scroll Reveal Animations --- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1.4s cubic-bezier(0.16, 1, 0.3, 1), transform 1.4s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Delay específico sutil para el subtítulo del hero principal */
#slide-1 .phrase-overlay.reveal {
    transition-delay: 0.25s;
}

/* --- Custom Elegance Browser Scrollbar (Header Matches Palette) --- */
::-webkit-scrollbar {
    width: 10px; /* Ancho elegante, no demasiado fino ni tosco */
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #1c1815; /* Marrón taupe muy oscuro de la paleta del header */
}

::-webkit-scrollbar-thumb {
    background: rgba(121, 104, 91, 0.45); /* Taupe semi-transparente del header */
    border: 2.5px solid #1c1815; /* Margen flotante premium con el track unificado */
    border-radius: 20px; /* Bordes totalmente redondeados súper limpios */
    transition: background 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(121, 104, 91, 0.95); /* Taupe casi opaco del header en hover */
}

/* Compatibilidad para Firefox */
html {
    scrollbar-width: thin;
    scrollbar-color: rgba(121, 104, 91, 0.45) #1c1815;
}

/* Duración de barra de progreso adaptada para THE SCENTS (slide-5) en consonancia con JS (6s) */
#slide-5 .slide-progress-bar.animating {
    animation: slideProgress 6s linear forwards;
}

/* Utility class for SEO headings hidden from view but parsed by search engine crawlers */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}