/* ==========================================================================
   Estilos Gerais
   ========================================================================== */
body {
    background: #0a0a12;
    margin: 0;
    padding: 0;
    overflow: hidden;
    height: 100vh;
    width: 100vw;
}

/* Container das imagens */
.image-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Imagens de dissolução */
.dissolucao-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.15);
    transition: opacity 90s linear; /* Transição lenta de 90 segundos */
    animation: driftMove 60s infinite ease-in-out;
}

.dissolucao-img.active {
    opacity: 1;
}

@keyframes driftMove {
    0% { transform: scale(1.15) translate(0, 0); }
    25% { transform: scale(1.18) translate(2%, -1%); }
    50% { transform: scale(1.20) translate(-1%, 2%); }
    75% { transform: scale(1.18) translate(1%, -2%); }
    100% { transform: scale(1.15) translate(0, 0); }
}

/* ==========================================================================
   Poetica Popup
   ========================================================================== */
.poetica-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 18, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 102;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1.5s ease, visibility 1.5s ease;
}

.poetica-popup.active {
    opacity: 1;
    visibility: visible;
}

.poetica-container {
    max-width: 600px;
    width: 90%;
    padding: 16px;
    background: rgba(20, 20, 40, 0.3);
    text-align: center;
    backdrop-filter: blur(5px);
}

.poetica-text {
    margin: 0;
}

.poetica-text-line {
    display: block;
    font-family: 'Raleway', sans-serif;
    font-weight: 300;
    font-size: 1.4em;
    color: rgba(220, 220, 255, 0.9);
    margin: 12px 0;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.poetica-text-line.active {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   Links Flutuantes
   ========================================================================== */
.floating-text {
    position: fixed;
    color: #E0E0FF;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5em;
    font-weight: 300;
    text-decoration: none;
    z-index: 104;
    padding: 8px 12px;
    border-radius: 15% 40% 25% 55%;
    transition: all 0.5s ease;
    background: transparent;
    opacity: 1;
}

.floating-text:hover {
    color: #A5F2F3;
    transform: scale(1.1);
}

.floating-text.chaos8 {
    top: 5%;
    left: 5%;
    animation: subtleChaos8 100s infinite ease-in-out;
}

.floating-text.poetica-link.chaos9 {
    bottom: 10%;
    right: 5%;
    animation: subtleChaos9 96s infinite ease-in-out;
}

.floating-text.return-button.chaos10 {
    bottom: 5%;
    left: 5%;
    animation: subtleChaos10 90s infinite ease-in-out;
}

.floating-text.transition-control.chaos11 {
    top: 5%;
    right: 5%;
    animation: subtleChaos11 98s infinite ease-in-out;
}

.floating-text.transition-control.playing {
    animation: subtleChaos11 98s infinite ease-in-out;
}

.floating-text.hidden {
    opacity: 0;
    pointer-events: none;
    animation: none;
}

/* Animações dos botões (iguais a Nazca) */
@keyframes subtleChaos8 { /* ... */ }
@keyframes subtleChaos9 { /* ... */ }
@keyframes subtleChaos10 { /* ... */ }
@keyframes subtleChaos11 { /* ... */ }

/* ==========================================================================
   Responsividade
   ========================================================================== */
@media (max-width: 768px) {
    .poetica-container {
        max-width: 90%;
        padding: 12px;
    }
    .poetica-text-line {
        font-size: 1.2em;
    }
    .floating-text {
        font-size: 1.2em;
        padding: 6px 10px;
    }
}