* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    width: 100%;
    height: 100%;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Bebas Neue', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    min-height: 100dvh;
    overflow: hidden;
    position: relative;
    margin: 0;
    padding: 0;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #000;
}

/* Video Background Container - Mobile Size */
body::before {
    content: '';
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 450px;
    height: 100vh;
    background: #000;
    z-index: 0;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
}

/* Video Background */
#background-video {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 450px;
    height: 100vh;
    object-fit: cover;
    z-index: 1;
}

/* Black overlay with 0.7 opacity */
.video-black-overlay {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 450px;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2;
    pointer-events: none;
}

/* Video Blur Overlay */
.video-blur-overlay {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 450px;
    height: 100vh;
    backdrop-filter: blur(50px);
    -webkit-backdrop-filter: blur(50px);
    z-index: 3;
    transition: backdrop-filter 4s ease, -webkit-backdrop-filter 4s ease;
    pointer-events: none;
}

.video-blur-overlay.unblur {
    backdrop-filter: blur(0px) !important;
    -webkit-backdrop-filter: blur(0px) !important;
}

.video-blur-overlay.start-unblur {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* Intro Screen */
.intro-screen {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 450px;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    padding: 40px 20px;
    box-sizing: border-box;
}

.intro-content {
    text-align: center;
    color: white;
}

.intro-content h1 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 4rem;
    font-weight: 400;
    text-shadow: 3px 3px 10px rgba(0, 0, 0, 0.7), 0 0 20px rgba(0, 0, 0, 0.5);
    margin-bottom: 30px;
    letter-spacing: 2px;
}

.sound-prompt {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
}

.audio-icon {
    font-size: 2rem;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

.sound-prompt p {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.5rem;
    color: white;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7), 0 0 15px rgba(0, 0, 0, 0.5);
    margin: 0;
    letter-spacing: 1px;
}

/* Intro Slides Container */
.intro-slides-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 450px;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    padding: 40px 20px;
    box-sizing: border-box;
}

.intro-slide {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    width: 90%;
    max-width: 600px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.intro-slide.active {
    opacity: 1;
    visibility: visible;
}

.intro-slide h1 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 4rem;
    font-weight: 400;
    text-shadow: 3px 3px 10px rgba(0, 0, 0, 0.7), 0 0 20px rgba(0, 0, 0, 0.5);
    margin-bottom: 40px;
    letter-spacing: 2px;
}

/* Button Styles */
.btn {
    background: linear-gradient(135deg, #ff6b6b, #ee5a6f);
    color: white;
    border: none;
    padding: 18px 40px;
    font-size: 1.5rem;
    font-family: 'Bebas Neue', sans-serif;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 2px;
    pointer-events: auto;
}

.btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.btn:active {
    transform: translateY(-1px) scale(1.02);
}

/* Text Slides Container */
.text-slides-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 450px;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    padding: 40px 20px;
    box-sizing: border-box;
    pointer-events: none;
}

/* Text Slide */
.text-slide {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) translateY(100px);
    text-align: center;
    color: white;
    opacity: 0;
    width: 90%;
    max-width: 600px;
    pointer-events: none;
    z-index: 11;
    visibility: hidden;
}

/* Last slide stays visible and allows pointer events for button */
.text-slide[data-slide="5"] {
    pointer-events: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.text-slide.active {
    visibility: visible;
}

.text-slide.active {
    animation: slideUpIn 1.5s ease-out forwards;
}

.text-slide.fade-out {
    animation: slideUpOut 1s ease-in forwards;
}

@keyframes slideUpIn {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) translateY(100px);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) translateY(0);
    }
}

@keyframes slideUpOut {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) translateY(0);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) translateY(-50px);
    }
}

.text-slide h1 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 4rem;
    font-weight: 400;
    text-shadow: 3px 3px 10px rgba(0, 0, 0, 0.7), 0 0 20px rgba(0, 0, 0, 0.5);
    margin-bottom: 10px;
    line-height: 1.2;
    letter-spacing: 2px;
}

.text-slide h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.5rem;
    font-weight: 400;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7), 0 0 15px rgba(0, 0, 0, 0.5);
    margin-top: 15px;
    letter-spacing: 2px;
}

.destination-text {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 6rem !important;
    font-weight: 400 !important;
    letter-spacing: 5px !important;
    text-shadow: 4px 4px 15px rgba(0, 0, 0, 0.8), 0 0 30px rgba(255, 255, 255, 0.3) !important;
}

/* Restart button on last slide */
.restart-btn {
    margin-top: 60px;
    position: relative;
    z-index: 12;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease-in;
}

/* Mobile Responsive */
@media (max-width: 480px) {
    .intro-content h1 {
        font-size: 3rem;
    }
    
    .sound-prompt p {
        font-size: 1.2rem;
    }
    
    .audio-icon {
        font-size: 1.5rem;
    }
    
    .intro-slide h1 {
        font-size: 3rem;
    }
    
    .text-slide {
        width: 95%;
    }
    
    .text-slide h1 {
        font-size: 3rem;
    }
    
    .text-slide h2 {
        font-size: 2rem;
    }
    
    .destination-text {
        font-size: 4.5rem !important;
        letter-spacing: 3px !important;
    }
    
    .text-slides-container,
    .intro-slides-container,
    .intro-screen {
        padding: 30px 15px;
    }
    
    .btn {
        font-size: 1.2rem;
        padding: 15px 30px;
    }
}

/* Desktop - keep mobile size but centered */
@media (min-width: 769px) {
    body::before {
        border-radius: 0;
    }
    
    #background-video {
        border-radius: 0;
    }
    
    .video-blur-overlay {
        border-radius: 0;
    }
}

/* Tablet adjustments */
@media (min-width: 481px) and (max-width: 768px) {
    .intro-content h1,
    .intro-slide h1 {
        font-size: 3.5rem;
    }
    
    .text-slide h1 {
        font-size: 3.5rem;
    }
    
    .destination-text {
        font-size: 5.5rem !important;
    }
}
