:root {
    --primary-color: #39C5BB;
    --secondary-color: #1A1A24;
    --text-color: #FFFFFF;
    --bg-color: #0F0F16;
    --nav-height: 84px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html,
body {
    height: 100%;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow: hidden;
    overscroll-behavior: none;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--nav-height);
    padding: 0 5%;
    background: rgba(15, 15, 22, 0.72);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    transition: background 300ms ease, box-shadow 300ms ease;
}

.logo {
    background: transparent;
    border: 0;
    cursor: pointer;
    font-size: 1.7rem;
    font-weight: bold;
    color: var(--text-color);
    letter-spacing: 0.5px;
}

.logo span {
    color: var(--primary-color);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 1.6rem;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    padding: 10px 10px;
    border-radius: 999px;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-links a.active {
    color: var(--bg-color);
    background: rgba(57, 197, 187, 0.95);
}

.navbar.elevated {
    background: rgba(15, 15, 22, 0.9);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

#viewport {
    height: 100vh;
    width: 100%;
    overflow: hidden;
    position: relative;
}

#floors {
    height: 100vh;
    width: 100%;
    transform: translate3d(0, 0, 0);
    transition: transform 900ms cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
}

.floor {
    height: 100vh;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: var(--nav-height);
}

.section-inner {
    width: min(1100px, 92vw);
    margin: 0 auto;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(135deg, rgba(15, 15, 22, 0.78) 0%, rgba(57, 197, 187, 0.22) 100%),
        url("../assets/images/hero.jpg");
    background-size: cover;
    background-position: center;
    z-index: -1;
    filter: saturate(1.05) contrast(1.02);
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    text-shadow: 0 0 20px rgba(57,197,187,0.5);
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    letter-spacing: 2px;
}

.glitch {
    position: relative;
    display: inline-block;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    opacity: 0.7;
    pointer-events: none;
}

.glitch::before {
    transform: translate(2px, 0);
    text-shadow: -2px 0 rgba(57, 197, 187, 0.9);
    clip-path: inset(0 0 55% 0);
    animation: glitchTop 1.8s infinite linear alternate-reverse;
}

.glitch::after {
    transform: translate(-2px, 0);
    text-shadow: 2px 0 rgba(255, 90, 172, 0.9);
    clip-path: inset(55% 0 0 0);
    animation: glitchBottom 1.9s infinite linear alternate-reverse;
}

@keyframes glitchTop {
    0% { transform: translate(2px, 0); }
    20% { transform: translate(-1px, -1px); }
    40% { transform: translate(3px, 1px); }
    60% { transform: translate(1px, 0); }
    80% { transform: translate(-3px, 1px); }
    100% { transform: translate(2px, -1px); }
}

@keyframes glitchBottom {
    0% { transform: translate(-2px, 0); }
    20% { transform: translate(1px, 1px); }
    40% { transform: translate(-3px, 0); }
    60% { transform: translate(-1px, 1px); }
    80% { transform: translate(3px, -1px); }
    100% { transform: translate(-2px, 1px); }
}

.btn {
    display: inline-block;
    padding: 10px 30px;
    background-color: var(--primary-color);
    color: var(--bg-color);
    text-decoration: none;
    font-weight: bold;
    border-radius: 30px;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 0;
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(57,197,187,0.4);
}

.scroll-hint {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    width: 56px;
    height: 56px;
    border-radius: 999px;
    border: 1px solid rgba(57, 197, 187, 0.55);
    background: rgba(15, 15, 22, 0.35);
    backdrop-filter: blur(10px);
    cursor: pointer;
    display: grid;
    place-items: center;
    box-shadow: 0 0 0 rgba(57, 197, 187, 0.0);
    animation: hintPulse 1.9s infinite ease-in-out;
}

.scroll-hint__icon {
    width: 14px;
    height: 14px;
    border-left: 3px solid rgba(57, 197, 187, 0.95);
    border-bottom: 3px solid rgba(57, 197, 187, 0.95);
    transform: rotate(-45deg);
    filter: drop-shadow(0 0 12px rgba(57, 197, 187, 0.65));
    animation: hintBounce 1.2s infinite ease-in-out;
}

@keyframes hintPulse {
    0% { box-shadow: 0 0 0 rgba(57, 197, 187, 0.0); }
    50% { box-shadow: 0 0 22px rgba(57, 197, 187, 0.35); }
    100% { box-shadow: 0 0 0 rgba(57, 197, 187, 0.0); }
}

@keyframes hintBounce {
    0% { transform: rotate(-45deg) translate(0, 0); opacity: 0.95; }
    50% { transform: rotate(-45deg) translate(0, 4px); opacity: 1; }
    100% { transform: rotate(-45deg) translate(0, 0); opacity: 0.95; }
}

.floor-gallery {
    background:
        radial-gradient(800px 500px at 20% 30%, rgba(57, 197, 187, 0.18), rgba(15, 15, 22, 0)),
        radial-gradient(700px 460px at 80% 70%, rgba(255, 90, 172, 0.10), rgba(15, 15, 22, 0)),
        var(--bg-color);
}

.floor-gallery h2,
.floor-music h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

.gallery-carousel {
    width: 100%;
    position: relative;
    margin-top: 12px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-rows: auto auto;
    align-items: center;
    gap: 14px;
}

.gallery-viewport {
    grid-column: 1 / 4;
    grid-row: 1;
    width: 100%;
    border-radius: 18px;
    overflow: hidden;
    background: rgba(15, 15, 22, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.10);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
    touch-action: pan-y;
}

.gallery-track {
    display: flex;
    transform: translate3d(0, 0, 0);
    transition: transform 650ms cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
}

.gallery-slide {
    min-width: 100%;
    height: min(70vh, 620px);
    display: grid;
    place-items: center;
    position: relative;
    background: radial-gradient(800px 520px at 30% 30%, rgba(57, 197, 187, 0.18), rgba(15, 15, 22, 0));
}

.gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: saturate(1.05) contrast(1.02);
}

.gallery-nav {
    grid-row: 1;
    width: 52px;
    height: 52px;
    border-radius: 999px;
    border: 1px solid rgba(57, 197, 187, 0.55);
    background: rgba(15, 15, 22, 0.45);
    backdrop-filter: blur(10px);
    cursor: pointer;
    display: grid;
    place-items: center;
    color: rgba(255, 255, 255, 0.92);
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
    z-index: 3;
}

.gallery-nav:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
    border-color: rgba(57, 197, 187, 0.85);
}

.gallery-nav:active {
    transform: translateY(0);
}

.gallery-nav--prev {
    grid-column: 1;
    justify-self: start;
    margin-left: 8px;
}

.gallery-nav--next {
    grid-column: 3;
    justify-self: end;
    margin-right: 8px;
}

.gallery-meta {
    grid-column: 1 / 4;
    grid-row: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: rgba(255, 255, 255, 0.75);
    font-size: 14px;
}

.gallery-caption {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gallery-counter {
    color: rgba(57, 197, 187, 0.95);
    font-weight: 700;
    letter-spacing: 0.6px;
}

.floor-music {
    background-image:
        radial-gradient(900px 600px at 60% 30%, rgba(57, 197, 187, 0.18), rgba(26, 26, 36, 0)),
        linear-gradient(135deg, rgba(26, 26, 36, 0.82), rgba(15, 15, 22, 0.9)),
        url("../assets/images/music-bg.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.floor-music .section-inner {
    min-height: calc(100vh - var(--nav-height));
    display: flex;
    flex-direction: column;
    align-items: center;
}

.music-stage {
    flex: 1;
    width: 100%;
    display: grid;
    place-items: center;
}

.music-player {
    background: var(--bg-color);
    width: min(920px, 92vw);
    margin: 0;
    padding: 2.6rem 2.4rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    gap: 2.4rem;
    flex-wrap: wrap;
    justify-content: center;
}

.disk {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background-image:
        radial-gradient(120px 120px at 35% 28%, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0)),
        url("../assets/images/player-disc.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: rgba(0, 0, 0, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 0 20px rgba(57,197,187,0.22);
}

.disk.play {
    box-shadow: 0 0 26px rgba(57, 197, 187, 0.38);
}

.disk-center {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: var(--primary-color);
    border: 5px solid #111;
    position: relative;
    z-index: 2;
}

.player-controls {
    flex: 1;
    min-width: 320px;
}

.player-controls h3 {
    margin-bottom: 0.5rem;
    font-size: 1.6rem;
    letter-spacing: 0.3px;
}

.player-controls p {
    color: #888;
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.controls {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.controls button {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.7rem;
    cursor: pointer;
    transition: color 0.3s;
}

.controls button:hover {
    color: var(--primary-color);
}

.controls #play-btn {
    font-size: 2.3rem;
    color: var(--primary-color);
}

.progress-container {
    background: #333;
    border-radius: 5px;
    height: 6px;
    width: 100%;
    cursor: pointer;
}

.progress {
    background: var(--primary-color);
    border-radius: 5px;
    height: 100%;
    width: 0%;
    transition: width 0.1s linear;
}

.footer {
    text-align: center;
    padding: 0 0 18px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
}

@media (max-width: 980px) {
    .hero-content h1 {
        font-size: 3rem;
    }
}

@media (max-width: 560px) {
    .navbar {
        padding: 0 16px;
    }

    .nav-links {
        gap: 0.4rem;
    }

    .nav-links a {
        padding: 8px 10px;
    }

    .hero-content h1 {
        font-size: 2.4rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .gallery-slide {
        height: min(64vh, 520px);
    }

    .gallery-nav {
        width: 46px;
        height: 46px;
    }
}
