/* Efeitos e Animações */

/* Barra de progresso */
.progresso {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #c89550, #8b6f47);
    z-index: 1000;
    transition: width 0.2s ease;
}

/* Textura granulada */
.granulado {
    position: relative;
}

.granulado::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' seed='2' /%3E%3C/filter%3E%3Crect width='400' height='400' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
    pointer-events: none;
    opacity: 0.5;
}

/* Letterbox (barras de cinema) */
.hero.letterbox {
    position: relative;
}

.hero.letterbox::before,
.hero.letterbox::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    background: #000;
    z-index: 10;
}

.hero.letterbox::before {
    top: 0;
    height: 60px;
}

.hero.letterbox::after {
    bottom: 0;
    height: 60px;
}

/* Video Card (Reels) */
.video-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 9 / 16;
    background: #000;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.video-card video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, transparent 30%, rgba(0, 0, 0, 0.3) 100%);
    pointer-events: none;
}

/* Faixa de vídeos correndo */
.faixa-trilho {
    overflow: hidden;
    padding: 20px 0;
    background: linear-gradient(90deg, #faf8f3 0%, transparent 10%, transparent 90%, #faf8f3 100%);
}

.faixa-trilho.videos {
    display: flex;
    gap: 20px;
    animation: trilho 30s linear infinite;
    width: fit-content;
}

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

.faixa-trilho:hover .video-card {
    animation-play-state: paused;
}

/* Ken Burns (Zoom lento na foto) */
.kenburns {
    overflow: hidden;
    position: relative;
}

.kenburns img {
    animation: kenburns-animate 20s ease-out forwards;
    transform-origin: center;
}

@keyframes kenburns-animate {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.1);
        opacity: 1;
    }
}

/* Parallax */
[data-parallax] {
    position: relative;
}

/* Titulo entrando palavra por palavra */
.palavras {
    display: inline;
}

.palavras > span {
    display: inline;
    opacity: 0;
    animation: fade-in 0.6s ease-out forwards;
}

.palavras > span:nth-child(1) { animation-delay: 0.1s; }
.palavras > span:nth-child(2) { animation-delay: 0.3s; }
.palavras > span:nth-child(3) { animation-delay: 0.5s; }
.palavras > span:nth-child(4) { animation-delay: 0.7s; }
.palavras > span:nth-child(5) { animation-delay: 0.9s; }
.palavras > span:nth-child(6) { animation-delay: 1.1s; }
.palavras > span:nth-child(7) { animation-delay: 1.3s; }
.palavras > span:nth-child(8) { animation-delay: 1.5s; }

@keyframes fade-in {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Borda viva (degradê girando) */
.borda-viva {
    position: relative;
    background: white;
    padding: 2px;
}

.borda-viva::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, #c89550, #8b6f47, #c89550, #8b6f47);
    background-size: 300% 300%;
    animation: girar-borda 6s linear infinite;
    z-index: -1;
    border-radius: 12px;
}

@keyframes girar-borda {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 100% 50%;
    }
}

.borda-viva > * {
    position: relative;
    background: white;
}

/* Inclinação 3D (Cartão inclina com mouse) */
.inclinar {
    perspective: 1000px;
    transform-style: preserve-3d;
}

.inclinar:hover {
    transform: rotateX(5deg) rotateY(5deg);
}

/* Holofote (Luz seguindo cursor) */
.holofote {
    position: relative;
    overflow: hidden;
}

.holofote::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(200, 149, 80, 0.3) 0%, transparent 70%);
    pointer-events: none;
    transform: translate(-50%, -50%);
}

/* Botão com brilho passando */
.btn-brilho {
    position: relative;
    overflow: hidden;
}

.btn-brilho::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: brilho 3s infinite;
}

@keyframes brilho {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* Pulsar */
.pulsar {
    animation: pulsar-animate 2s infinite;
}

@keyframes pulsar-animate {
    0% {
        box-shadow: 0 0 0 0 rgba(200, 149, 80, 0.7);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(200, 149, 80, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(200, 149, 80, 0);
    }
}

/* Entrada suave ao rolar */
.entrada-suave {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.entrada-suave.visivel {
    opacity: 1;
    transform: translateY(0);
}

/* Fade in e slide */
@keyframes slide-up {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-slide-up {
    animation: slide-up 0.6s ease-out forwards;
}

/* Responsivo para mobile */
@media (max-width: 768px) {
    .video-card {
        aspect-ratio: auto;
        height: 400px;
    }

    .inclinar:hover {
        transform: none;
    }

    .hero.letterbox::before,
    .hero.letterbox::after {
        height: 30px;
    }
}