/* Slide 7: Flip Animation */
.slide-flip {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000000;
    position: relative;
    overflow: hidden;
}

.slide-5-video .background-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-width: 100vw;
    min-height: 100vh;
    object-fit: cover;
    z-index: 0;
}

.slide-flip #container {
    display: none;
}

.videography-quote {
    position: absolute;
    bottom: 40px;
    left: 40px;
    transform: translate(0, 0);
    font-size: 1.45rem;
    color: rgba(255, 255, 255, 0.7);
    text-align: left;
    z-index: 6;
    font-weight: 200;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    max-width: 600px;
    line-height: 1.6;
    padding: 0 20px;
    opacity: 0;
    width: auto;
    box-sizing: border-box;
}

/* Desktop: Keep content at bottom */
@media (min-width: 1025px) {
    .videography-quote {
        bottom: 40px;
    }
}

.videography-quote.animate {
    animation: slideDownFromTop 1.2s ease-out forwards;
}

/* Videography CTA Button */
.videography-cta-btn {
    position: absolute;
    top: 65%;
    left: 50%;
    transform: translate(-50%, 0);
    padding: 16px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50px;
    cursor: pointer;
    z-index: 7;
    opacity: 0;
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.videography-cta-btn.animate {
    animation: fadeInButton 1.5s ease-out 0.5s forwards;
}

.videography-cta-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.9);
    transform: translate(-50%, 0) scale(1.05);
    box-shadow: 0 8px 30px rgba(255, 255, 255, 0.3);
}

.videography-cta-btn:active {
    transform: translate(-50%, 0) scale(0.98);
}

@keyframes fadeInButton {
    0% {
        opacity: 0;
        transform: translate(-50%, 20px);
    }

    100% {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

@keyframes fadeInQuoteText {
    0% {
        opacity: 0;
        transform: translate(-20px, 20px);
    }

    100% {
        opacity: 1;
        transform: translate(0, 0);
    }
}

@keyframes slideDownFromTop {
    0% {
        opacity: 0;
        transform: translateY(-100px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Firefly Animation */
.firefly {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #fff9e6;
    border-radius: 50%;
    box-shadow:
        0 0 5px #fff9e6,
        0 0 10px #fff9e6,
        0 0 15px #fff9e6,
        0 0 20px #ffeb3b,
        0 0 35px #ffeb3b,
        0 0 50px #ffeb3b;
    z-index: 8;
    opacity: 0.8;
}

.firefly::before {
    content: '';
    position: absolute;
    width: 2px;
    height: 2px;
    background: #fff;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 3px #fff;
}

.firefly-1 {
    animation: fireflyMove1 35s infinite ease-in-out, fireflyFade 4s infinite ease-in-out;
    animation-delay: 0s, 0s;
}

.firefly-2 {
    animation: fireflyMove2 40s infinite ease-in-out, fireflyFade 5s infinite ease-in-out;
    animation-delay: 2s, 1s;
}

.firefly-3 {
    animation: fireflyMove3 32s infinite ease-in-out, fireflyFade 3.5s infinite ease-in-out;
    animation-delay: 4s, 0.5s;
}

.firefly-4 {
    animation: fireflyMove4 44s infinite ease-in-out, fireflyFade 4.5s infinite ease-in-out;
    animation-delay: 1s, 1.5s;
}

.firefly-5 {
    animation: fireflyMove5 38s infinite ease-in-out, fireflyFade 5.5s infinite ease-in-out;
    animation-delay: 3s, 2s;
}

.firefly-6 {
    animation: fireflyMove6 34s infinite ease-in-out, fireflyFade 3s infinite ease-in-out;
    animation-delay: 5s, 0.3s;
}

.firefly-7 {
    animation: fireflyMove7 42s infinite ease-in-out, fireflyFade 4.2s infinite ease-in-out;
    animation-delay: 2.5s, 1.2s;
}

.firefly-8 {
    animation: fireflyMove8 36s infinite ease-in-out, fireflyFade 4.8s infinite ease-in-out;
    animation-delay: 4.5s, 2.5s;
}

.firefly-9 {
    animation: fireflyMove9 39s infinite ease-in-out, fireflyFade 3.8s infinite ease-in-out;
    animation-delay: 1.5s, 0.8s;
}

.firefly-10 {
    animation: fireflyMove10 37s infinite ease-in-out, fireflyFade 5.2s infinite ease-in-out;
    animation-delay: 3.5s, 1.8s;
}

.firefly-11 {
    animation: fireflyMove11 41s infinite ease-in-out, fireflyFade 4.3s infinite ease-in-out;
    animation-delay: 6s, 2.2s;
}

.firefly-12 {
    animation: fireflyMove12 33s infinite ease-in-out, fireflyFade 3.2s infinite ease-in-out;
    animation-delay: 2.2s, 0.4s;
}

.firefly-13 {
    animation: fireflyMove13 43s infinite ease-in-out, fireflyFade 4.7s infinite ease-in-out;
    animation-delay: 4.2s, 1.7s;
}

.firefly-14 {
    animation: fireflyMove14 38s infinite ease-in-out, fireflyFade 5.3s infinite ease-in-out;
    animation-delay: 1.8s, 0.9s;
}

.firefly-15 {
    animation: fireflyMove15 36s infinite ease-in-out, fireflyFade 3.7s infinite ease-in-out;
    animation-delay: 5.5s, 2.8s;
}

.firefly-16 {
    animation: fireflyMove16 40s infinite ease-in-out, fireflyFade 4.6s infinite ease-in-out;
    animation-delay: 3.2s, 1.4s;
}

@keyframes fireflyFade {

    0%,
    100% {
        opacity: 0;
    }

    20% {
        opacity: 0.9;
    }

    50% {
        opacity: 0.7;
    }

    80% {
        opacity: 0.9;
    }
}

@keyframes fireflyMove1 {

    0%,
    100% {
        top: 15%;
        left: 10%;
        transform: scale(1);
    }

    25% {
        top: 35%;
        left: 30%;
        transform: scale(1.2);
    }

    50% {
        top: 60%;
        left: 55%;
        transform: scale(0.8);
    }

    75% {
        top: 40%;
        left: 75%;
        transform: scale(1.1);
    }
}

@keyframes fireflyMove2 {

    0%,
    100% {
        top: 80%;
        left: 20%;
        transform: scale(1);
    }

    25% {
        top: 60%;
        left: 40%;
        transform: scale(1.3);
    }

    50% {
        top: 30%;
        left: 60%;
        transform: scale(0.9);
    }

    75% {
        top: 50%;
        left: 80%;
        transform: scale(1.2);
    }
}

@keyframes fireflyMove3 {

    0%,
    100% {
        top: 25%;
        left: 80%;
        transform: scale(1);
    }

    25% {
        top: 45%;
        left: 60%;
        transform: scale(1.1);
    }

    50% {
        top: 70%;
        left: 40%;
        transform: scale(1.3);
    }

    75% {
        top: 50%;
        left: 20%;
        transform: scale(0.8);
    }
}

@keyframes fireflyMove4 {

    0%,
    100% {
        top: 70%;
        left: 70%;
        transform: scale(1);
    }

    25% {
        top: 50%;
        left: 50%;
        transform: scale(1.2);
    }

    50% {
        top: 25%;
        left: 30%;
        transform: scale(0.9);
    }

    75% {
        top: 40%;
        left: 15%;
        transform: scale(1.1);
    }
}

@keyframes fireflyMove5 {

    0%,
    100% {
        top: 10%;
        left: 50%;
        transform: scale(1);
    }

    25% {
        top: 30%;
        left: 70%;
        transform: scale(1.3);
    }

    50% {
        top: 55%;
        left: 85%;
        transform: scale(0.8);
    }

    75% {
        top: 75%;
        left: 65%;
        transform: scale(1.2);
    }
}

@keyframes fireflyMove6 {

    0%,
    100% {
        top: 85%;
        left: 50%;
        transform: scale(1);
    }

    25% {
        top: 65%;
        left: 30%;
        transform: scale(1.1);
    }

    50% {
        top: 40%;
        left: 15%;
        transform: scale(1.3);
    }

    75% {
        top: 20%;
        left: 35%;
        transform: scale(0.9);
    }
}

@keyframes fireflyMove7 {

    0%,
    100% {
        top: 50%;
        left: 15%;
        transform: scale(1);
    }

    25% {
        top: 30%;
        left: 35%;
        transform: scale(1.2);
    }

    50% {
        top: 15%;
        left: 55%;
        transform: scale(0.8);
    }

    75% {
        top: 35%;
        left: 75%;
        transform: scale(1.1);
    }
}

@keyframes fireflyMove8 {

    0%,
    100% {
        top: 60%;
        left: 85%;
        transform: scale(1);
    }

    25% {
        top: 40%;
        left: 65%;
        transform: scale(1.3);
    }

    50% {
        top: 20%;
        left: 45%;
        transform: scale(0.9);
    }

    75% {
        top: 45%;
        left: 25%;
        transform: scale(1.2);
    }
}

@keyframes fireflyMove9 {

    0%,
    100% {
        top: 5%;
        left: 25%;
        transform: scale(1);
    }

    25% {
        top: 20%;
        left: 50%;
        transform: scale(1.1);
    }

    50% {
        top: 45%;
        left: 70%;
        transform: scale(1.3);
    }

    75% {
        top: 65%;
        left: 55%;
        transform: scale(0.8);
    }
}

@keyframes fireflyMove10 {

    0%,
    100% {
        top: 90%;
        left: 60%;
        transform: scale(1);
    }

    25% {
        top: 75%;
        left: 45%;
        transform: scale(1.2);
    }

    50% {
        top: 55%;
        left: 25%;
        transform: scale(0.9);
    }

    75% {
        top: 35%;
        left: 40%;
        transform: scale(1.1);
    }
}

@keyframes fireflyMove11 {

    0%,
    100% {
        top: 35%;
        left: 90%;
        transform: scale(1);
    }

    25% {
        top: 55%;
        left: 75%;
        transform: scale(1.3);
    }

    50% {
        top: 75%;
        left: 60%;
        transform: scale(0.8);
    }

    75% {
        top: 60%;
        left: 45%;
        transform: scale(1.2);
    }
}

@keyframes fireflyMove12 {

    0%,
    100% {
        top: 12%;
        left: 65%;
        transform: scale(1);
    }

    25% {
        top: 28%;
        left: 80%;
        transform: scale(1.1);
    }

    50% {
        top: 50%;
        left: 90%;
        transform: scale(1.3);
    }

    75% {
        top: 70%;
        left: 80%;
        transform: scale(0.9);
    }
}

@keyframes fireflyMove13 {

    0%,
    100% {
        top: 88%;
        left: 35%;
        transform: scale(1);
    }

    25% {
        top: 72%;
        left: 20%;
        transform: scale(1.2);
    }

    50% {
        top: 50%;
        left: 10%;
        transform: scale(0.8);
    }

    75% {
        top: 30%;
        left: 25%;
        transform: scale(1.1);
    }
}

@keyframes fireflyMove14 {

    0%,
    100% {
        top: 42%;
        left: 5%;
        transform: scale(1);
    }

    25% {
        top: 58%;
        left: 18%;
        transform: scale(1.3);
    }

    50% {
        top: 78%;
        left: 35%;
        transform: scale(0.9);
    }

    75% {
        top: 65%;
        left: 52%;
        transform: scale(1.2);
    }
}

@keyframes fireflyMove15 {

    0%,
    100% {
        top: 8%;
        left: 75%;
        transform: scale(1);
    }

    25% {
        top: 22%;
        left: 90%;
        transform: scale(1.1);
    }

    50% {
        top: 38%;
        left: 95%;
        transform: scale(1.3);
    }

    75% {
        top: 52%;
        left: 88%;
        transform: scale(0.8);
    }
}

@keyframes fireflyMove16 {

    0%,
    100% {
        top: 95%;
        left: 80%;
        transform: scale(1);
    }

    25% {
        top: 82%;
        left: 65%;
        transform: scale(1.2);
    }

    50% {
        top: 68%;
        left: 50%;
        transform: scale(0.9);
    }

    75% {
        top: 48%;
        left: 35%;
        transform: scale(1.1);
    }
}

#container {
    color: #999;
    text-transform: uppercase;
    font-size: 36px;
    font-weight: bold;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    margin: 0;
    padding: 0;
}

.flip-text {
    display: block;
    margin: 0;
    line-height: 1.2;
}

.flip-text:first-child {
    margin-bottom: 10px;
}

.flip-text:last-child {
    margin-top: 10px;
}

#flip {
    height: 50px;
    overflow: hidden;
    display: block;
    margin: 10px 0;
    line-height: 50px;
}

#flip>div>div {
    color: #fff;
    padding: 4px 12px;
    height: 45px;
    margin-bottom: 45px;
    display: inline-block;
}

#flip div:first-child {
    animation: show 5s linear infinite;
}

#flip div div {
    background: #42c58a;
}

#flip div:nth-child(1) div {
    background: #4ec7f3;
}

#flip div:nth-child(2) div {
    background: #42c58a;
}

#flip div:nth-child(3) div {
    background: #DC143C;
}

#flip div:nth-child(4) div {
    background: #ff6b6b;
}

#flip div:nth-child(5) div {
    background: #4ec7f3;
}

@keyframes show {
    0% {
        margin-top: -360px;
    }

    4% {
        margin-top: -360px;
    }

    16% {
        margin-top: -270px;
    }

    20% {
        margin-top: -270px;
    }

    32% {
        margin-top: -180px;
    }

    36% {
        margin-top: -180px;
    }

    48% {
        margin-top: -90px;
    }

    52% {
        margin-top: -90px;
    }

    64% {
        margin-top: 0px;
    }

    80% {
        margin-top: 0px;
    }

    84% {
        margin-top: -360px;
    }

    100% {
        margin-top: -360px;
    }
}

@media (max-width: 768px) {
    .videography-quote {
        font-size: 1.1rem;
        max-width: 90%;
        padding: 0 20px;
        line-height: 1.7;
        bottom: 150px;
        left: 20px;
        transform: translate(0, 0);
        text-align: left;
    }

    .videography-quote.animate {
        transform: translate(0, 0);
    }

    .videography-cta-btn {
        top: 52%;
        font-size: 0.95rem;
        padding: 14px 32px;
        transform: translate(-50%, 0);
        margin-top: 15px;
    }

    .videography-cta-btn.animate {
        transform: translate(-50%, 0);
    }

    #container {
        font-size: 28px;
        flex-direction: column;
    }

    .flip-text {
        margin: 0;
    }

    .flip-text:first-child {
        margin-bottom: 8px;
    }

    .flip-text:last-child {
        margin-top: 8px;
    }

    #flip {
        height: 40px;
        line-height: 40px;
        margin: 8px 0;
    }

    #flip>div>div {
        height: 35px;
        margin-bottom: 35px;
    }
}

@media (max-width: 480px) {
    .videography-quote {
        font-size: 0.95rem;
        max-width: 85%;
        padding: 0 15px;
        line-height: 1.8;
        bottom: 120px;
        left: 15px;
        letter-spacing: 0.3px;
        text-align: left;
    }

    .videography-cta-btn {
        top: 50%;
        font-size: 0.85rem;
        padding: 12px 28px;
        letter-spacing: 0.8px;
        margin-top: 12px;
    }

    #container {
        font-size: 20px;
        flex-direction: column;
    }

    .flip-text {
        margin: 0;
    }

    .flip-text:first-child {
        margin-bottom: 6px;
    }

    .flip-text:last-child {
        margin-top: 6px;
    }

    #flip {
        height: 30px;
        line-height: 30px;
        margin: 6px 0;
    }

    #flip>div>div {
        height: 25px;
        margin-bottom: 25px;
        padding: 2px 8px;
    }
}

