/* Quotes Section - Animated Bubbles */

/* Background Slideshow Animation */
.background-slideshow-quotes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background-color: #e5d4d6;
}

.background-image-quotes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    animation: backgroundFadeQuotes 21s ease-in-out infinite;
    box-shadow:
        inset 0 0 80px 50px rgba(235, 206, 209, 0.9),
        inset 0 0 140px 80px rgba(230, 215, 215, 0.8),
        inset 0 0 200px 110px rgba(220, 225, 220, 0.7),
        inset 0 0 280px 150px rgba(210, 230, 220, 0.6),
        inset 0 0 350px 180px rgba(200, 232, 213, 0.5);
}

/* Stagger animation delays for each image - overlapping transitions */
.background-image-quotes:nth-child(1) {
    animation-delay: 0s;
}

.background-image-quotes:nth-child(2) {
    animation-delay: 3s;
}

.background-image-quotes:nth-child(3) {
    animation-delay: 6s;
}

.background-image-quotes:nth-child(4) {
    animation-delay: 9s;
}

.background-image-quotes:nth-child(5) {
    animation-delay: 12s;
}

.background-image-quotes:nth-child(6) {
    animation-delay: 15s;
}

.background-image-quotes:nth-child(7) {
    animation-delay: 18s;
}

@keyframes backgroundFadeQuotes {
    0% {
        opacity: 0;
    }

    12% {
        opacity: 1;
    }

    14% {
        opacity: 1;
    }

    26% {
        opacity: 0;
    }

    100% {
        opacity: 0;
    }
}

.quote-bubbles-container {
    position: relative;
    width: 100%;
    height: 100vh;
    max-width: 100%;
    margin: 0 auto;
    padding: 2rem;
    overflow: hidden;
}

/* Base Quote Bubble Styling */
.quote-bubble {
    position: absolute;
    opacity: 1;
    z-index: 20;
}

.quote-bubble p {
    color: rgb(60 50 55);
    font-size: clamp(1.125rem, 2vw, 1.5rem); /* Consistent with global body text: 18px - 24px */
    line-height: 1.7;
    text-align: center;
    margin: 0;
    font-weight: 700;
    white-space: normal;
    word-wrap: break-word;
    transition: all 0.3s ease;
}

/* Bubble appears animation */
.quote-bubble.appear {
    opacity: 1;
    transform: scale(1) translateY(0);
}

/* Letter-by-letter smoke reveal animation - DISABLED */
/* @keyframes letterSmoke {
    0% {
        opacity: 0;
        filter: blur(10px);
        transform: rotateY(90deg) translateY(-20px);
    }
    100% {
        opacity: 1;
        filter: blur(0px);
        transform: rotateY(0deg) translateY(0);
    }
} */

/* Individual letter span styling - DISABLED */
/* .quote-bubble p span {
    display: inline-block;
    opacity: 0;
    animation: letterSmoke 0.6s ease-out forwards;
} */

/* Transform to Royal Gold during typing, then back to black */
@keyframes goldCycle {
    0% {
        color: rgb(60 50 55);
        transform: scale(1);
        font-weight: 700;
    }

    15% {
        color: #D4AF37;
        transform: scale(1.1);
        text-shadow:
            0 0 8px rgba(212, 175, 55, 0.4),
            0 0 15px rgba(212, 175, 55, 0.2),
            2px 2px 4px rgba(0, 0, 0, 0.2);
        font-weight: 800;
    }

    30%,
    100% {
        color: rgb(60 50 55);
        transform: scale(1);
        font-weight: 700;
    }
}

/* Font resize animations - much more dramatic size changes */
@keyframes fontResize1 {

    0%,
    100% {
        font-size: 1em;
    }

    25% {
        font-size: 1.4em;
    }

    50% {
        font-size: 0.85em;
    }

    75% {
        font-size: 1.25em;
    }
}

@keyframes fontResize2 {

    0%,
    100% {
        font-size: 1em;
    }

    20% {
        font-size: 0.9em;
    }

    60% {
        font-size: 1.55em;
    }

    80% {
        font-size: 1.15em;
    }
}

@keyframes fontResize3 {

    0%,
    100% {
        font-size: 1em;
    }

    30% {
        font-size: 1.6em;
    }

    70% {
        font-size: 0.8em;
    }
}

/* Fade in and out animation - gradual fade in and out */
@keyframes fadeInOut {
    0% {
        opacity: 0;
    }

    15% {
        opacity: 1;
    }

    65% {
        opacity: 1;
    }

    85%,
    100% {
        opacity: 0;
    }
}

/* Remove default animation - each bubble will have its own */

/* Position each bubble */
.bubble-1 {
    top: 8%;
    left: 8%;
    max-width: 35vw;
}

.bubble-1 p {
    animation: goldCycle 30s ease-in-out infinite;
    animation-delay: 0s, 0s;
}

.bubble-1 p span {
    animation-delay: calc(var(--char-index) * 0.05s);
}

.bubble-2 {
    top: 24%;
    right: 10%;
    max-width: 32vw;
}

.bubble-2 p {
    animation: goldCycle 30s ease-in-out infinite;
    animation-delay: 4s, 4s;
}

.bubble-2 p span {
    animation-delay: calc(4s + var(--char-index) * 0.05s);
}

.bubble-3 {
    top: 40%;
    left: 5%;
    max-width: 45vw;
}

.bubble-3 p {
    animation: goldCycle 30s ease-in-out infinite;
    animation-delay: 2s, 2s;
}

.bubble-3 p span {
    animation-delay: calc(2s + var(--char-index) * 0.05s);
}

.bubble-4 {
    top: 55%;
    right: 8%;
    max-width: 42vw;
}

.bubble-4 p {
    animation: goldCycle 30s ease-in-out infinite;
    animation-delay: 7s, 7s;
}

.bubble-4 p span {
    animation-delay: calc(7s + var(--char-index) * 0.05s);
}

.bubble-5 {
    top: 68%;
    left: 12%;
    max-width: 28vw;
}

.bubble-5 p {
    animation: goldCycle 30s ease-in-out infinite;
    animation-delay: 10s, 10s;
}

.bubble-5 p span {
    animation-delay: calc(10s + var(--char-index) * 0.05s);
}

.bubble-6 {
    top: 78%;
    right: 12%;
    max-width: 40vw;
}

.bubble-6 p {
    animation: goldCycle 30s ease-in-out infinite;
    animation-delay: 5s, 5s;
}

.bubble-6 p span {
    animation-delay: calc(5s + var(--char-index) * 0.05s);
}



/* Responsive adjustments for mobile */
@media (max-width: 768px) {

    .background-image-quotes {
        box-shadow:
            inset 0 0 30px 20px rgba(235, 206, 209, 0.9),
            inset 0 0 55px 30px rgba(230, 215, 215, 0.8),
            inset 0 0 80px 40px rgba(220, 225, 220, 0.7),
            inset 0 0 120px 60px rgba(210, 230, 220, 0.6),
            inset 0 0 140px 80px rgba(200, 232, 213, 0.5);
    }

    .quote-bubbles-container {
        padding: 1rem;
        height: 100vh;
    }

    .bubble-1 {
        top: 5%;
        left: 5%;
        max-width: 60vw;
    }

    .bubble-2 {
        top: 21%;
        right: 5%;
        max-width: 55vw;
    }

    .bubble-3 {
        top: 36%;
        left: 3%;
        max-width: 70vw;
    }

    .bubble-4 {
        top: 50%;
        right: 3%;
        max-width: 65vw;
    }

    .bubble-5 {
        top: 68%;
        left: 8%;
        max-width: 50vw;
    }

    .bubble-6 {
        top: 80%;
        right: 8%;
        max-width: 62vw;
    }
}

@media (max-width: 480px) {


    .background-image-quotes {
        box-shadow:
            inset 0 0 30px 20px rgba(235, 206, 209, 0.9),
            inset 0 0 55px 30px rgba(230, 215, 215, 0.8),
            inset 0 0 80px 40px rgba(220, 225, 220, 0.7),
            inset 0 0 120px 60px rgba(210, 230, 220, 0.6),
            inset 0 0 140px 80px rgba(200, 232, 213, 0.5);
    }


    .quote-bubbles-container {
        padding: 0.5rem;
    }

    .bubble-1 {
        top: 3%;
        left: 3%;
        max-width: 75vw;
    }

    .bubble-2 {
        top: 20%;
        right: 3%;
        max-width: 70vw;
    }

    .bubble-3 {
        top: 34%;
        left: 2%;
        max-width: 78vw;
    }

    .bubble-4 {
        top: 48%;
        right: 2%;
        max-width: 75vw;
    }

    .bubble-5 {
        top: 66%;
        left: 5%;
        max-width: 68vw;
    }

    .bubble-6 {
        top: 82%;
        right: 5%;
        max-width: 72vw;
    }
}