/* Quotes Animation Section */
.quotes-animation-section {
    position: relative;
    padding: 5rem 0;
    background: linear-gradient(135deg, #000000 0%, #000000 100%);
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.quotes-container {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.quote-text {
    font-family: 'Roboto Slab', serif;
    font-size: 4rem;
    font-weight: 300;
    color: #fff;
    opacity: 0;
    transform: translateY(50px);
    position: absolute;
    width: 100vw;
    height: 100%;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) translateY(50px);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    letter-spacing: 3px;
    line-height: 1.2;
    z-index: 2;
}

.quote-text.active {
    animation: fadeInOut 4s ease-in-out;
}

.final-image {
    opacity: 0;
    position: absolute;
    width: 100vw;
    height: 100%;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: opacity 1s ease-in-out;
}

.final-image.active {
    opacity: 1;
}

.final-image img {
    width: 80vw;
    height: auto;
}

.animation-controls {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    transition: all 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.animation-controls.moved {
    top: auto;
    left: auto;
    bottom: 30px;
    right: 30px;
    transform: none;
}

.play-pause-btn {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 3px solid rgba(255, 255, 255, 0.4);
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.play-pause-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.6);
    transform: scale(1.1);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.play-pause-btn:not(.started) {
    animation: flashButton 2s ease-in-out infinite;
}

@keyframes flashButton {
    0%, 100% {
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
        border-color: rgba(255, 255, 255, 0.4);
    }
    50% {
        box-shadow: 0 8px 32px rgba(255, 255, 255, 0.3), 0 0 20px rgba(255, 255, 255, 0.5);
        border-color: rgba(255, 255, 255, 0.8);
    }
}

.play-pause-btn.started {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
}

.play-pause-btn.paused {
    background: rgba(255, 255, 255, 0.1);
}

@keyframes fadeInOut {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) translateY(50px);
    }
    20% {
        opacity: 1;
        transform: translate(-50%, -50%) translateY(0);
    }
    80% {
        opacity: 1;
        transform: translate(-50%, -50%) translateY(0);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) translateY(-50px);
    }
}



@media (max-width: 768px) {
    .quotes-animation-section {
        padding: 3rem 0;
        min-height: 60vh;
    }
    
    .quote-text {
        font-size: 2.5rem;
        padding: 0 1rem;
    }
    
    .final-image img {
        max-width: 90%;
    }
    
    .animation-controls.moved {
        bottom: 20px;
        right: 20px;
    }
    
    .play-pause-btn {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
    }
    
    .play-pause-btn.started {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}

/* Form Image Border */
.form-image {
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

@media (max-width: 480px) {
    .quote-text {
        font-size: 2rem;
        padding: 0 1rem;
    }
    
    .final-image img {
        max-width: 95%;
    }
    
    .play-pause-btn {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .play-pause-btn.started {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
}