* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

body {
    background: #1A0A2E;
    color: #E2D5F3;
    font-family: "Quicksand", sans-serif;
    font-size: 15px;
    line-height: 1.6;
}

/* Scroll Container */
.scroll-container {
    display: flex;
    width: 100%;
    height: 100%;
    scroll-snap-type: x mandatory;
    overflow-x: auto;
    overscroll-behavior-x: contain;
}

/* Rooms */
.scroll-room {
    width: 100%;
    height: 100vh;
    flex-shrink: 0;
    scroll-snap-align: start;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
    position: relative;
    overflow: hidden;
}

.room-1 {
    background: linear-gradient(135deg, #2D1B69 0%, #FF6B6B 100%);
}

.room-2 {
    background: linear-gradient(135deg, #2D1B69 0%, #FF6B6B 50%, #FC466B 100%);
}

.room-3 {
    background: linear-gradient(135deg, #1A0A2E 0%, #2D1B69 100%);
}

.room-4 {
    background: linear-gradient(135deg, #2D1B69 0%, #FC466B 100%);
}

.room-5 {
    background: linear-gradient(135deg, #FF6B6B 0%, #B794F6 100%);
}

.room-6 {
    background: linear-gradient(135deg, #1A0A2E 0%, #00D2FF 100%);
}

.room-content {
    text-align: center;
    max-width: 800px;
    position: relative;
    z-index: 2;
}

/* Chrome Text Effect */
.chrome-text {
    font-family: "Righteous", sans-serif;
    font-size: 72px;
    font-weight: 400;
    background: linear-gradient(
        180deg,
        #fff,
        #ccc,
        #999,
        #ccc,
        #fff
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 30px;
    animation: blur-focus 0.6s ease;
    letter-spacing: 2px;
}

@keyframes blur-focus {
    from {
        filter: blur(8px);
        opacity: 0;
    }
    to {
        filter: blur(0);
        opacity: 1;
    }
}

/* Waveform */
.waveform-container {
    margin: 40px 0;
    height: 60px;
    display: flex;
    align-items: center;
}

.waveform {
    width: 100%;
    height: 100%;
    animation: waveform-draw 1.5s ease-out;
}

@keyframes waveform-draw {
    from {
        stroke-dasharray: 2000;
        stroke-dashoffset: 2000;
    }
    to {
        stroke-dasharray: 2000;
        stroke-dashoffset: 0;
    }
}

.scroll-room:hover .waveform {
    filter: drop-shadow(0 0 10px rgba(183, 148, 246, 0.6));
}

/* Room Content Text */
.room-content p {
    font-family: "Quicksand", sans-serif;
    font-size: 18px;
    color: #E2D5F3;
    line-height: 1.8;
    font-weight: 400;
}

/* Vinyl Record */
.vinyl-record {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: radial-gradient(circle, #333 0%, #000 100%);
    margin: 40px auto 0;
    position: relative;
    box-shadow: 0 0 30px rgba(183, 148, 246, 0.2);
    animation: vinyl-rotate 30s linear infinite;
}

.vinyl-record::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    background: #B794F6;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(183, 148, 246, 0.8);
}

.vinyl-record::after {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    border: 1px solid rgba(183, 148, 246, 0.3);
    border-radius: 50%;
    opacity: 0.5;
}

@keyframes vinyl-rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Progress Bar */
.progress-bar {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    background: rgba(26, 10, 46, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(183, 148, 246, 0.3);
    border-radius: 50px;
    padding: 12px 24px;
}

.progress-track {
    display: flex;
    gap: 12px;
    align-items: center;
}

.progress-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(183, 148, 246, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.progress-dot.active {
    background: #B794F6;
    width: 24px;
    border-radius: 5px;
    box-shadow: 0 0 15px rgba(183, 148, 246, 0.6);
}

.progress-dot:hover {
    background: rgba(183, 148, 246, 0.6);
    transform: scale(1.2);
}

/* Responsive - Convert to vertical scroll on mobile */
@media (max-width: 768px) {
    .scroll-container {
        flex-direction: column;
        overflow-x: hidden;
        overflow-y: auto;
        scroll-snap-type: y mandatory;
    }

    .scroll-room {
        width: 100%;
        height: 100vh;
        flex-shrink: 0;
        scroll-snap-align: start;
        padding: 40px 20px;
    }

    .chrome-text {
        font-size: 48px;
    }

    .room-content p {
        font-size: 16px;
    }

    .vinyl-record {
        width: 60px;
        height: 60px;
    }

    .progress-bar {
        bottom: 30px;
    }

    .progress-dot {
        width: 8px;
        height: 8px;
    }

    .progress-dot.active {
        width: 20px;
    }

    /* Hide progress bar on very small screens */
    @media (max-width: 480px) {
        .progress-bar {
            bottom: 20px;
            padding: 8px 16px;
        }

        .chrome-text {
            font-size: 36px;
        }

        .room-content p {
            font-size: 14px;
        }

        .waveform-container {
            margin: 20px 0;
            height: 40px;
        }
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #1A0A2E;
}

::-webkit-scrollbar-thumb {
    background: #B794F6;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #FC466B;
}
