* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: #000;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

.funnel-container {
    position: relative;
    width: 100%;
    height: 100vh;
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    z-index: 1;
    background: #000;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

.image-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.slide-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.slide-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 20vh 3vw 15vh;
    color: white;
}


.loading-bar {
    width: 100%;
    height: 1vh;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 0.5vh;
    overflow: hidden;
    position: relative;
    margin-bottom: 2vh;
    box-shadow: 0 0.2vh 0.8vh rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.loading-progress {
    height: 100%;
    background: #ffffff;
    border-radius: 0.5vh;
    width: 0%;
    transition: width 0.1s linear;
    position: relative;
    box-shadow: 0 0 0.8vh rgba(255, 255, 255, 0.8);
}

.loading-progress::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 3vw;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4));
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-3vw); }
    100% { transform: translateX(3vw); }
}


/* Navigation arrows */
.navigation-arrows {
    position: absolute;
    top: 4vh;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    padding: 0 4vw;
    pointer-events: none;
    z-index: 10;
}

.arrow-left-container {
    width: 7vw;
    height: 7vw;
    min-width: 44px;
    min-height: 44px;
    max-width: 60px;
    max-height: 60px;
}

.arrow-button {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 7vw;
    height: 7vw;
    border-radius: 12px;
    cursor: pointer;
    font-size: 4vw;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: auto;
    backdrop-filter: blur(20px);
    min-width: 44px;
    min-height: 44px;
    max-width: 60px;
    max-height: 60px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.arrow-button:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.6);
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.arrow-button:active {
    transform: scale(0.98);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Final slide button */
.final-slide-button-container {
    display: flex;
    justify-content: center;
    margin-bottom: 8vh;
    width: 100%;
}

.final-slide-button {
    background: linear-gradient(135deg, #4285f4, #5a9eff);
    border: none;
    color: white;
    padding: 2.8vh 5.5vw;
    border-radius: 6.5vh;
    cursor: pointer;
    font-size: 4.2vw;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 1.5vh 4vh rgba(66, 133, 244, 0.5);
    display: flex;
    align-items: center;
    gap: 1.5vw;
    min-width: 32vw;
    justify-content: center;
    position: relative;
    overflow: hidden;
    width: 92%;
    max-width: 42vw;
    animation: breathe 2s ease-in-out infinite;
}

.final-slide-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.final-slide-button:hover::before {
    left: 100%;
}

.final-slide-button:hover {
    transform: translateY(-0.5vh);
    box-shadow: 0 2vh 5vh rgba(66, 133, 244, 0.7);
    background: linear-gradient(135deg, #3367d6, #4a8eff);
}

.final-slide-button:active {
    transform: translateY(-0.2vh);
    box-shadow: 0 1vh 3vh rgba(66, 133, 244, 0.6);
}

.button-text {
    font-weight: bold;
    letter-spacing: 0.1vw;
    font-size: 4.2vw;
}

.button-icon {
    font-size: 4.7vw;
    transition: transform 0.3s ease;
}

.final-slide-button:hover .button-icon {
    transform: translateX(0.5vw);
}

/* Fluid responsive design - no media queries needed */

/* Animation for slide transitions */
.slide.fade-out {
    opacity: 0;
}

.slide.fade-in {
    opacity: 1;
}

/* Loading animation */
.loading-progress.animate {
    animation: loading 6s linear forwards;
}

@keyframes loading {
    from { width: 0%; }
    to { width: 100%; }
}

@keyframes breathe {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 1.5vh 4vh rgba(66, 133, 244, 0.5);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 2vh 5vh rgba(66, 133, 244, 0.7);
    }
}

/* Ensure minimum font sizes for readability */
@media (max-width: 320px) {
    .button-text {
        font-size: 5.2vw;
    }
    
    .button-icon {
        font-size: 5.7vw;
    }
}

/* Ensure maximum font sizes for large screens */
@media (min-width: 1200px) {
    .button-text {
        font-size: 2.6rem;
    }
    
    .button-icon {
        font-size: 2.9rem;
    }
    
    .final-slide-button {
        font-size: 2.6rem;
        padding: 1.6rem 3.2rem;
    }
}
