body {
    font-family: 'Inter', sans-serif;
    padding-top: 80px;
    overflow-x: hidden;
    background-color: #111;
    color: #f1f1f1;
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scale-in-tilt {
    from {
        opacity: 0;
        transform: scale(0.8) rotate(-8deg);
    }

    to {
        opacity: 1;
        transform: scale(1) rotate(-8deg);
    }
}

@keyframes product-perspective-enter {
    from {
        opacity: 0;
        transform: perspective(1000px) translateZ(-150px) translateY(30px) rotate(-8deg);
    }

    to {
        opacity: 1;
        transform: perspective(1000px) translateZ(0) translateY(0) rotate(-8deg);
    }
}

@keyframes scatter-particle {
    from {
        opacity: 1;
        transform: translate(0, 0) scale(1);
    }

    to {
        opacity: 0;
        transform: translate(var(--particle-x, 0), var(--particle-y, 0)) scale(0);
    }
}

@keyframes reveal-tilt-in {
    from {
        opacity: 0;
        transform: scale(0.95) rotate(-8deg);
        clip-path: inset(0 100% 0 0);
    }

    30% {
        opacity: 1;
    }

    to {
        opacity: 1;
        transform: scale(1) rotate(-8deg);
        clip-path: inset(0 0 0 0);
    }
}

@keyframes draw-hair-stroke {
    from {
        --hair-draw-progress: 0%;
    }

    to {
        --hair-draw-progress: 100%;
    }
}

/* Animação de brilho suave para as imagens */
@keyframes gentle-glow-pulse {
    0%, 100% {
        filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.2));
    }
    50% {
        filter: drop-shadow(0 0 18px rgba(255, 255, 255, 0.3));
    }
}

/* --- CLASSES DE ATIVAÇÃO --- */
.animate-fade-in-up {
    animation: fade-in-up linear;
    animation-timeline: view();
    animation-range: entry 0% entry 40%;
}

.animate-scale-in {
    animation: scale-in-tilt linear;
    animation-timeline: view();
    animation-range: entry 10% entry 50%;
}

.animate-perspective-in {
    animation: product-perspective-enter linear;
    animation-timeline: view();
    animation-range: entry 10% entry 60%;
}

.animate-scatter {
    animation: scatter-particle linear;
    animation-timeline: view();
    animation-range: entry 20% entry 80%;
}

.animate-reveal-tilt-in {
    animation: reveal-tilt-in linear;
    animation-timeline: view();
    animation-range: entry 10% entry 70%;
}

.hair-svg-path {
    stroke-dasharray: 500;
    stroke-dashoffset: 500;
    stroke-dashoffset: calc(500 * (1 - (var(--hair-draw-progress) / 100)));
    animation: draw-hair-stroke linear;
    animation-timeline: view();
    animation-range: entry 20% entry 80%;
}

/* --- ESTILOS DO CARROSSEL --- */
.carousel-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: fade-carousel 12s infinite;
}

@keyframes fade-carousel {
    0% {
        opacity: 0;
    }

    8% {
        opacity: 1;
    }

    33% {
        opacity: 1;
    }

    41% {
        opacity: 0;
    }

    100% {
        opacity: 0;
    }
}

.secao-texto-escuro h2,
.secao-texto-escuro h3,
.secao-texto-escuro p,
.secao-texto-escuro strong {
    color: #222;
}

.secao-texto-escuro .hair-svg-path {
    stroke: #222;
}

.secao-texto-escuro .modo-uso {
    border-color: rgba(0, 0, 0, 0.2);
}

.secao-texto-escuro .product-backdrop {
    background-color: rgba(0, 0, 0, 0.05);
}

.secao-texto-escuro .hair-svg-bg {
    stroke: rgba(0, 0, 0, 0.1);
}

.modo-uso {
    border-left: 4px solid;
    padding-left: 1.5rem;
    margin-top: 1.5rem;
}

section[id] {
    scroll-margin-top: 80px;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #111;
}

::-webkit-scrollbar-thumb {
    background: #555;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #777;
}

/* Imagens de produto com brilho suave */
.product-image {
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.4s ease-out;
    animation: gentle-glow-pulse 4s ease-in-out infinite;
    opacity: 1; /* Garante que a imagem apareça por padrão */
}

.product-image:hover {
    transform: scale(1.05) rotate(-2deg) !important;
    filter: drop-shadow(0 0 25px rgba(255, 255, 255, 0.3)) 
            drop-shadow(0 0 40px var(--glow-color, rgba(255, 255, 255, 0.2))) !important;
}

.product-backdrop {
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s ease;
}

section:hover .product-backdrop {
    transform: scale(1.1);
    opacity: 0.8;
}

@keyframes reveal-border {
    from {
        clip-path: inset(0 0 100% 0);
    }

    to {
        clip-path: inset(0 0 0 0);
    }
}

.modo-uso {
    animation: reveal-border linear both;
    animation-timeline: view();
    animation-range: entry 20% entry 50%;
}

.text-gradient {
    color: var(--gradient-color, #fff);
    background: linear-gradient(90deg, var(--gradient-color, #fff), color-mix(in srgb, var(--gradient-color, #fff) 70%, #999));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

.secao-texto-escuro .text-gradient {
    color: var(--gradient-color, #000);
    background: linear-gradient(90deg, var(--gradient-color, #000), color-mix(in srgb, var(--gradient-color, #000) 70%, #777));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

.wpp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 70px !important;
    height: 70px !important;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.wpp-float svg {
    width: 35px !important;
    height: 35px !important;
    fill: white;
}

.wpp-float:hover {
    background-color: #1da851;
}

.video-float-container {
    position: fixed;
    bottom: 25px;
    left: 25px;
    z-index: 10000;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.story-ring-wrapper {
    position: relative;
    width: 70px;
    height: 70px;
    padding: 3px;
    border-radius: 50%;
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    animation: spin-border 4s linear infinite;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease;
}

.video-float-container:hover .story-ring-wrapper {
    transform: scale(1.1);
}

.video-float-inner {
    width: 100%;
    height: 100%;
    background: #000;
    border-radius: 50%;
    border: 2px solid #fff;
    overflow: hidden;
    position: relative;
}

.video-float-inner video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.2);
}

.video-badge {
    position: absolute;
    top: 0;
    right: 0;
    background-color: #ef4444;
    color: white;
    font-size: 11px;
    font-weight: bold;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    z-index: 10;
    animation: bounce-badge 2s infinite;
}

.story-label {
    position: absolute;
    left: 90px;
    background: white;
    color: black;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: bold;
    white-space: nowrap;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.story-label::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 50%;
    transform: translateY(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: transparent white transparent transparent;
}

.video-float-container:hover .story-label {
    opacity: 1;
    transform: translateX(0);
}

@keyframes bounce-badge {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-3px);
    }
}

.video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 20000;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.video-modal.active {
    display: flex;
}

.stories-carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    width: 100%;
    height: 85vh;
    align-items: center;
    gap: 0;
}

.stories-carousel::-webkit-scrollbar {
    display: none;
}

.story-item {
    min-width: 100%;
    height: 100%;
    scroll-snap-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

@media (min-width: 768px) {
    .story-item {
        min-width: 100%;
        padding: 0 20px;
    }

    .story-video-wrapper {
        width: 400px !important;
    }
}

.story-video-wrapper {
    width: 100%;
    height: 100%;
    max-height: 800px;
    background: #000;
    position: relative;
    overflow: hidden;
}

@media (min-width: 768px) {
    .story-video-wrapper {
        border-radius: 20px;
        height: 90%;
    }
}

.story-video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    z-index: 20002;
    backdrop-filter: blur(5px);
    transition: background 0.3s;
    display: none;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.4);
}

@media (min-width: 768px) {
    .nav-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

.close-modal-top {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 30px;
    cursor: pointer;
    z-index: 20001;
    background: rgba(0, 0, 0, 0.5);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
}