/* ==========================================================================
   Estilos Gerais
   ========================================================================== */
body {
    background: #1C2526;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

/* ==========================================================================
   Ciclo de Imagens
   ========================================================================== */
.image-cycle {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    display: none;
    opacity: 0;
    transition: opacity 3s ease-in-out;
    pointer-events: none;
}

.image-cycle.active {
    opacity: 1;
    display: block;
}

.cycle-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 6s ease-in-out;
    transform: scale(1.15);
    animation: driftMove 60s infinite ease-in-out;
}

.cycle-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(28, 37, 38, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 102;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.poetica-popup.active {
    display: flex;
    opacity: 1;
}

.poetica-container {
    max-width: 600px;
    width: 90%;
    padding: 16px;
    background: rgba(10, 20, 40, 0.2);
    text-align: center;
    backdrop-filter: blur(4px);
    overflow: auto;
    border: 1px solid rgba(255, 215, 150, 0.3);
}

.poetica-text-line {
    display: block;
    font-family: 'Raleway', sans-serif;
    font-weight: 300;
    font-size: 1.4em;
    color: rgba(255, 215, 150, 0.9);
    margin: 8px 0;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.poetica-text-line.active {
    opacity: 1;
    transform: translateY(0);
}

.poetica-text:empty::before {
    content: "Carregando texto...";
    color: rgba(255, 215, 150, 0.9);
    font-family: 'Raleway', sans-serif;
    font-weight: 300;
    font-size: 1.4em;
}

/* ==========================================================================
   Links Flutuantes
   ========================================================================== */
.floating-text {
    position: fixed;
    color: #F5F5F5;
    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;
    opacity: 1;
}

.floating-text:hover {
    color: #FFD700;
}

.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: 10%;
    left: 5%;
    animation: subtleChaos10 98s infinite ease-in-out;
}

.floating-text.audio-control.chaos11 {
    top: 5%;
    right: 5%;
    animation: subtleChaos11 98s infinite ease-in-out;
    background: transparent;
}

.floating-text.audio-control.playing {
    animation: subtleChaos11 98s infinite ease-in-out;
    background: transparent !important;
}

.floating-text.hidden {
    opacity: 0;
    pointer-events: none;
    animation: none;
}

@keyframes subtleChaos8 {
    0% { top: 5%; left: 5%; transform: rotate(0deg); }
    20% { top: 7%; left: 7%; transform: rotate(5deg); }
    40% { top: 9%; left: 6%; transform: rotate(-3deg); }
    60% { top: 6%; left: 8%; transform: rotate(4deg); }
    80% { top: 8%; left: 6%; transform: rotate(-2deg); }
    100% { top: 5%; left: 5%; transform: rotate(0deg); }
}

@keyframes subtleChaos9 {
    0% { bottom: 10%; right: 5%; transform: rotate(0deg); }
    20% { bottom: 12%; right: 7%; transform: rotate(-5deg); }
    40% { bottom: 14%; right: 6%; transform: rotate(4deg); }
    60% { bottom: 11%; right: 8%; transform: rotate(-3deg); }
    80% { bottom: 13%; right: 6%; transform: rotate(2deg); }
    100% { bottom: 10%; right: 5%; transform: rotate(0deg); }
}

@keyframes subtleChaos10 {
    0% { bottom: 10%; left: 5%; transform: rotate(0deg); }
    20% { bottom: 12%; left: 7%; transform: rotate(-4deg); }
    40% { bottom: 14%; left: 6%; transform: rotate(3deg); }
    60% { bottom: 11%; left: 8%; transform: rotate(-5deg); }
    80% { bottom: 13%; left: 6%; transform: rotate(2deg); }
    100% { bottom: 10%; left: 5%; transform: rotate(0deg); }
}

@keyframes subtleChaos11 {
    0% { top: 5%; right: 5%; transform: rotate(0deg); }
    20% { top: 7%; right: 7%; transform: rotate(-4deg); }
    40% { top: 6%; right: 6%; transform: rotate(3deg); }
    60% { top: 8%; right: 8%; transform: rotate(-5deg); }
    80% { top: 6%; right: 7%; transform: rotate(2deg); }
    100% { top: 5%; right: 5%; transform: rotate(0deg); }
}

/* ==========================================================================
   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;
    }
}