* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
    background: #000;
    color: #fff;
    user-select: none;
}

.scene {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.svg-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    will-change: transform;
}

.parallax-layer {
    position: absolute;
    width: 100%;
    height: 100%;
    will-change: transform;
}

.content-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 100;
    width: 90%;
}

.main-content-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 100;
    width: 90%;
    padding: 50px 0;
    background: rgba(0, 0, 0, 0.75);
    border-radius: 30px;
}

/* ===== ARCTIC CAVE SECTION ===== */
#arctic-cave {
    background: #2d4159;
}

#arctic-cave .title {
    font-size: 4rem;
    font-weight: 700;
    text-shadow: 0 0 20px rgba(100, 200, 255, 0.8), 0 0 40px rgba(100, 200, 255, 0.4);
    margin-bottom: 1rem;
    animation: glow-pulse 3s ease-in-out infinite;
}

#arctic-cave .subtitle {
    font-size: 1.5rem;
    opacity: 0.9;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

@keyframes glow-pulse {
    0%, 100% { text-shadow: 0 0 20px rgba(100, 200, 255, 0.8), 0 0 40px rgba(100, 200, 255, 0.4); }
    50% { text-shadow: 0 0 30px rgba(100, 200, 255, 1), 0 0 60px rgba(100, 200, 255, 0.6); }
}

/* ===== grotta ===== */
#cave-descent {
    background: #0a0806;
    height: 200vh;
}

#cave-descent .descent-text {
    font-size: 2.5rem;
    opacity: 0.8;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
    transition: opacity 0.3s ease;
}

/* ===== stenvägg ===== */
#rock-wall {
    background: #1a1410;
    height: 100vh;
}

#rock-wall .rock-text {
    font-size: 4rem;
    opacity: 0.7;
    color: #64c8ff;
    text-shadow: 0 0 30px rgba(100, 200, 255, 0.6);
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* ===== AGARTHA ===== */
#agartha-city {
    background: #1a2f4a;
    height: 100vh;
    position: relative;
}

#agartha-city .city-title {
    font-size: 5rem;
    font-weight: 800;
    background: linear-gradient(45deg, #64c8ff, #c864ff, #64ffc8);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient-shift 5s ease infinite;
    margin-bottom: 0.5rem;
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

#agartha-city .city-subtitle {
    font-size: 1.3rem;
    opacity: 0.85;
    margin-bottom: 3rem;
    text-shadow: 0 2px 10px rgba(100, 200, 255, 0.5);
}

/* ===== AUDIO PLAYER ===== */
.audio-player {
    margin-top: 2rem;
    z-index: 200;
}

.player-container {
    background: rgba(20, 30, 50, 0.85);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 1.5rem 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6), 
                0 0 20px rgba(100, 180, 255, 0.3);
    border: 1px solid rgba(100, 180, 255, 0.3);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    max-width: 600px;
    margin: 0 auto;
}

.play-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #64a8ff 0%, #8b64ff 100%);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
    transition: transform 0.2s, box-shadow 0.2s;
    flex-shrink: 0;
}

.play-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(100, 168, 255, 0.6);
}

.play-btn:active {
    transform: scale(0.95);
}

.pause-icon {
    display: none;
}

.play-btn.playing .play-icon {
    display: none;
}

.play-btn.playing .pause-icon {
    display: inline;
}

.track-info {
    flex: 1;
    min-width: 0;
}

.track-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #64c8ff;
}

.progress-container {
    width: 100%;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    cursor: pointer;
    margin-bottom: 0.5rem;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #64a8ff 0%, #8b64ff 100%);
    border-radius: 3px;
    width: 0%;
    transition: width 0.1s linear;
}

.time-display {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    opacity: 0.7;
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.volume-icon {
    font-size: 1.2rem;
}

.volume-slider {
    width: 80px;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    outline: none;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    background: #64a8ff;
    border-radius: 50%;
    cursor: pointer;
}

.volume-slider::-moz-range-thumb {
    width: 12px;
    height: 12px;
    background: #64a8ff;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}


@media (max-width: 768px) {
    #arctic-cave .title {
        font-size: 2.5rem;
    }
    
    #arctic-cave .subtitle {
        font-size: 1rem;
    }
    
    #agartha-city .city-title {
        margin-top: 25px;
        font-size: 3rem;
    }
    
    #agartha-city .city-subtitle {
        font-size: 1rem;
        margin: 0 1rem;
    }
    
    .player-container {
        flex-direction: column;
        padding: 1rem;
        margin: 0 1rem
    }
    
    .volume-control {
        width: 100%;
        justify-content: center;
    }

    #creditModal h2 {
        margin-left: 20px;
    }

    .creditContent {
        flex-direction: column;
        gap: 20px;
        margin: 0 20px;
    }

    #creditModal img {
        display:none;
    }

    .infoContent p {
        font-size: 0.95rem;
    }
}

#creditModal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    text-align: start;
}

#creditModalButton {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #00b3ff;
    border: none;
    color: #000;
    padding: 10px 15px;
    font-size: 1rem;
    border-radius: 5px;
    cursor: pointer;
}

#closeCreditModal {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #ff4c4c;
    border: none;
    color: white;
    padding: 10px 15px;
    font-size: 1rem;
    border-radius: 5px;
    cursor: pointer;
}

.creditContent {
    display: flex;
    flex-direction: row;
    gap: 30px;
}

#creditModal img {
    margin-top: -50px;
}

#infoModal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    text-align: center;
}

#infoModalButton {
    position: absolute;
    top: 20px;
    left: 20px;
    background: #00b3ff;
    border: none;
    color: #000;
    padding: 10px 15px;
    font-size: 1rem;
    border-radius: 5px;
    cursor: pointer;
}

#closeInfoModal {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #ff4c4c;
    border: none;
    color: white;
    padding: 10px 15px;
    font-size: 1rem;
    border-radius: 5px;
    cursor: pointer;
}

.infoContent {
    margin: 0 20px;
    font-size: 1.2rem;
    line-height: 1.5;
}