:root {
    --primary-color: #0E9294;
    --secondary-color: #085859;
    --text-color: #dbdbdb;
    --border-color: #ccc;
    --hover-filter: grayscale(100%) brightness(0.5);
    --transition-speed: 0.3s;
    --font-family: 'Poppins', sans-serif;
    --background-color: #1a1a1a;
    --light-background: #2c2c2c;
    --extended-section-bg: #141414;
    --comparison-bg: #1f1f1f;
    --roi-bg: #1a1a1a;
    --cta-bg: #0E9294;
}

.play-button-container {
    position: static;
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

@keyframes glowPlay {

    0%,
    100% {
        box-shadow:
            0px 0px 4px rgba(229, 246, 247, 0.904),
            0px 0px 8px rgba(0, 251, 255, 0.842),
            0px 0px 15px rgba(99, 221, 223, 0.911),
            0px 0px 25px rgba(31, 201, 204, 0.808),
            0px 0px 40px rgba(0, 189, 192, 0.575);
    }

    50% {
        box-shadow:
            0px 0px 8px rgba(229, 246, 247, 1),
            0px 0px 16px rgba(0, 251, 255, 1),
            0px 0px 30px rgba(99, 221, 223, 1),
            0px 0px 50px rgba(31, 201, 204, 1),
            0px 0px 80px rgba(0, 189, 192, 0.8);
    }
}

.play-button {
    background-color: rgba(0, 0, 0, 0.5);
    border: none;
    width: clamp(80px, 10vw, 100px);
    height: clamp(80px, 10vw, 100px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    animation: pulseButton 2s infinite, glowPlay 2s infinite ease-in-out;
    transition: transform 0.2s ease;
    position: relative;
}

.play-icon {
    display: flex;
    width: 32px;
    height: 32px;
    background-color: #ffffff;
    clip-path: polygon(0% 0%, 100% 50%, 0% 100%);
    pointer-events: none;
    position: absolute;
    left: 37%;
}

.play-button:hover {
    transform: translateY(-5px);
}

@keyframes pulseButton {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

/* Modal Styling */
.hero-tour-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    overflow: hidden;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80vw;
    height: 80vh;
    background-color: transparent;
    padding: 0;
    border: none;
    box-shadow: none;
    border-radius: 0;
}

.modal-close {
    position: fixed;
    right: 20px;
    font-size: clamp(30px, 4vw, 40px);
    color: #ffffff;
    cursor: pointer;
    transition: color var(--transition-speed) ease;
    z-index: 1101;
}

.modal-close:hover {
    color: var(--primary-color);
}

.modal-slideshow {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 0;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    margin: 0;
    padding: 0;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    margin: 0;
    padding: 0;
}

/* Container to hold image and overlays */
.slide-container {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Intro slide bubble styling */
.intro-bubble {
    position: absolute;
    top: 70%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    color: #fff;
    max-width: 80%;
    z-index: 1200;
}

.intro-bubble p {
    margin-bottom: 20px;
}

.intro-bubble button {
    background: var(--primary-color);
    border: none;
    color: #fff;
    padding: 10px 20px;
    font-size: 1em;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.2s ease, background var(--transition-speed);
}

.intro-bubble button:hover {
    transform: scale(1.05);
    background: var(--secondary-color);
}

/* Final CTA bubble styling */
.final-cta-bubble {
    position: absolute;
    top: 70%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    color: #fff;
    max-width: 80%;
    z-index: 2;
}

.final-cta-bubble p {
    margin-bottom: 20px;
    font-size: 1.2em;
}

.cta-button {
    background: var(--primary-color);
    border: none;
    color: #fff;
    padding: 12px 24px;
    font-size: 1.1em;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.2s ease, background var(--transition-speed);
}

.cta-button:hover {
    transform: scale(1.05);
    background: var(--secondary-color);
}

/* PDF rectangle styling */
.pdf-rectangle {
    position: absolute;
    width: clamp(150px, 20vw, 200px);
    height: clamp(200px, 30vh, 300px);
    background-color: #fff;
    border: 2px dashed var(--primary-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
    z-index: 1100;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    user-select: none;
    font-family: var(--font-family);
    color: var(--text-color);
    transition: opacity 0.3s ease-in-out, transform 0.1s ease-in-out;
}

.pdf-rectangle.dragging {
    opacity: 0.7;
    box-shadow: none;
    cursor: grabbing;
}

.pdf-rectangle.hidden {
    display: none;
}

/* Pulsing ball */
.pulsing-ball {
    position: absolute;
    width: clamp(15px, 2vw, 20px);
    height: clamp(15px, 2vw, 20px);
    background-color: var(--primary-color);
    border-radius: 50%;
    animation: pulse 1.5s infinite;
    z-index: 10001;
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.3);
        opacity: 0.7;
    }

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

/* Guide bubble styling using percentage values */
.slide-info-bubble {
    position: absolute;
    background: rgba(0, 0, 0, 0.8);
    padding: 15px;
    border-radius: 8px;
    color: #fff;
    max-width: clamp(300px, 40vw, 400px);
    z-index: 1300;
}

.slide-info-bubble p {
    margin: 0;
    font-size: clamp(0.9em, 1.5vw, 1em);
}

.slide-info-bubble button {
    background: var(--primary-color);
    border: none;
    color: #fff;
    padding: 8px 16px;
    font-size: 1em;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
    transition: transform 0.2s ease;
}

.slide-info-bubble button:hover {
    transform: scale(1.05);
}

/* Slideshow navigation */
.slideshow-nav {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: clamp(5px, 1vw, 10px);
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 20px;
    backdrop-filter: blur(5px);
    z-index: 100000;
}

.nav-dot {
    width: clamp(10px, 1.5vw, 12px);
    height: clamp(10px, 1.5vw, 12px);
    background-color: #666;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color var(--transition-speed) ease, transform var(--transition-speed) ease;
}

.nav-dot.active {
    background-color: var(--primary-color);
    transform: scale(1.4);
}

.nav-dot:hover {
    transform: scale(1.2);
}

/* Slide 3 specific styles */
@keyframes ballMove {
    0% {
        top: 70%;
        left: 33%;
    }

    100% {
        top: 50%;
        left: 85%;
    }
}

.ball-move {
    animation: ballMove 1s forwards, pulse 1.5s infinite;
}

@keyframes ballMoveLeft {
    from {
        top: 50%;
        left: 85%;
    }

    to {
        top: 20%;
        left: 2%;
    }
}

.ball-move-left {
    animation: ballMoveLeft 1s forwards, pulse 1.5s infinite;
}

.dim-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    z-index: 1200;
}

.square-highlight {
   position: relative;
    top: 13.75%;
    left: 3.25%;
    width: 4%;
    height: 28%;
    border: 3px solid var(--primary-color);
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.5);
    z-index: 1201;
}

/* Slide ball for slides 4-9 */
.slide-ball {
    position: absolute;
    transform: translate(-50%, -50%);
    transition: all 1s ease;
}

/* Orientation Overlay */
#orientation-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: black;
    z-index: 3000;
    display: none;
    justify-content: center;
    align-items: center;
}

.overlay-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
}

.orientation-close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 2em;
    color: #fff;
    cursor: pointer;
    user-select: none;
}

.phone {
    height: 100px;
    width: 50px;
    border: 3px solid white;
    border-radius: 10px;
    animation: rotatePhone 1.5s ease-in-out infinite alternate;
}

.message {
    color: white;
    font-size: 1em;
    margin-top: 40px;
}

@keyframes rotatePhone {
    0% {
        transform: rotate(0deg);
    }

    50% {
        transform: rotate(-90deg);
    }

    100% {
        transform: rotate(-90deg);
    }
}

/* Responsive adjustments */
@media (min-width: 1200px) {
    .modal-content {
        width: 70vw;
        height: 85vh;
    }

    .pdf-rectangle {
        width: 150px;
        height: 250px;
        top: 55vh;
        left: 50px;
    }

    .intro-bubble,
    .final-cta-bubble {
        max-width: 600px;
        font-size: 1.4em;
    }
}

@media (max-width: 1024px) and (min-width: 769px) {
    .modal-content {
        width: 90vw;
        height: 75vh;
    }

    .pdf-rectangle {
        width: 180px;
        height: 260px;
        top: 50vh;
        left: 20px;
    }

    .intro-bubble,
    .final-cta-bubble {
        top: 65%;
        max-width: 85%;
    }
}

@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        height: 60vh;
        margin: 5% auto;
    }

    .modal-close {
        font-size: 30px;
        top: 10px;
        right: 10px;
    }

    .modal-slideshow {
        height: 50vh;
    }

    .slideshow-nav {
        bottom: 5px;
        padding: 6px;
    }

    .nav-dot {
        width: 10px;
        height: 10px;
    }

    .pdf-rectangle {
        width: 150px;
        height: 220px;
        top: 45vh;
        left: 10px;
    }

    .intro-bubble,
    .final-cta-bubble {
        top: 60%;
        font-size: 1em;
        padding: 15px;
    }

    .pulsing-ball {
        width: 15px;
        height: 15px;
    }

        /* Adjust ball movement keyframes for smaller screens */
        @keyframes ballMove {
            0% {
                transform: translate(30%, 65%);
            }
    
            100% {
                transform: translate(80%, 45%);
            }
        }
    
        @keyframes ballMoveLeft {
            0% {
                transform: translate(80%, 45%);
            }
    
            100% {
                transform: translate(5%, 20%);
            }
        }
    
        .ball-move {
            animation: ballMove 0.5s forwards ease, pulse 1.5s infinite;
        }
    
        .ball-move-left {
            animation: ballMoveLeft 0.5s forwards ease, pulse 1.5s infinite;
        }
}

@media (max-width: 480px) {
    .modal-content {
        width: 100%;
        height: 50vh;
        margin: 0;
    }

    .pdf-rectangle {
        width: 120px;
        height: 180px;
        top: 40vh;
    }

    .intro-bubble,
    .final-cta-bubble {
        font-size: 0.9em;
        padding: 10px;
    }

    .slideshow-nav {
        gap: 5px;
    }
}