/* ppuzzl.bar - Vaporwave Bar Experience */

/* ===== Reset & Base ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --honey-mist: #F7C59F;
    --lavender-haze: #D4A0E8;
    --sunset-cream: #FFF4E6;
    --neon-teal: #3DCCC7;
    --deep-indigo: #2D1B69;
    --soft-rose: #F2A7B3;
    --vhs-black: #1A1423;
    --sky-progress: 0;
}

html {
    scroll-snap-type: y proximity;
    scroll-behavior: smooth;
}

body {
    font-family: 'Work Sans', sans-serif;
    font-weight: 400;
    font-size: clamp(16px, 1.8vw, 20px);
    line-height: 1.7;
    color: var(--sunset-cream);
    background-color: var(--vhs-black);
    overflow-x: hidden;
}

/* VHS Scanline Overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        to bottom,
        transparent 0px,
        transparent 2px,
        rgba(0, 0, 0, 0.06) 2px,
        rgba(0, 0, 0, 0.06) 3px
    );
    pointer-events: none;
    z-index: 9999;
    opacity: 0.4;
}

/* ===== Common ===== */
.floor {
    min-height: 100vh;
    position: relative;
    scroll-snap-align: start;
    padding: clamp(40px, 6vh, 80px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.floor-label {
    position: absolute;
    top: clamp(20px, 3vh, 40px);
    left: clamp(20px, 3vw, 40px);
    font-family: 'IBM Plex Mono', monospace;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--neon-teal);
    opacity: 0.6;
}

.floor-number {
    font-size: 14px;
    color: var(--soft-rose);
    margin-right: 8px;
}

.section-title {
    font-family: 'Righteous', cursive;
    font-weight: 400;
    font-size: clamp(36px, 6vw, 80px);
    line-height: 1.15;
    margin-bottom: 1em;
}

/* ===== Isometric Icons ===== */
.iso-icon {
    position: absolute;
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.6s ease, transform 0.6s ease;
    z-index: 1;
}

.iso-icon.visible {
    opacity: 1;
    transform: scale(1);
}

.iso-icon:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 0 8px var(--neon-teal));
}

.iso-icon-1 {
    top: 15%;
    right: 8%;
}

.iso-icon-2 {
    bottom: 20%;
    left: 5%;
}

.iso-icon-3 {
    bottom: 10%;
    right: 12%;
}

.iso-icon-4 {
    top: 12%;
    right: 5%;
}

.iso-icon-5 {
    bottom: 15%;
    left: 8%;
}

.iso-icon-6 {
    top: 18%;
    left: 6%;
}

/* ===== Floor 0 - Entrance ===== */
.floor-entrance {
    background: var(--vhs-black);
    align-items: center;
    text-align: center;
    transition: background 1s ease;
}

.floor-entrance.sky-revealed {
    background: linear-gradient(
        180deg,
        var(--lavender-haze) 0%,
        var(--honey-mist) 60%,
        var(--soft-rose) 100%
    );
}

.entrance-content {
    position: relative;
    z-index: 2;
}

.neon-sign {
    width: clamp(300px, 60vw, 600px);
    height: auto;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.neon-sign.flickered-on {
    opacity: 1;
    animation: neonFlicker 3s infinite;
}

.neon-text {
    font-family: 'Righteous', cursive;
    font-size: 96px;
    fill: var(--neon-teal);
    stroke: var(--neon-teal);
    stroke-width: 0.5;
}

.neon-text-overlay {
    fill: var(--sunset-cream);
    stroke: none;
    filter: none;
    opacity: 0.6;
}

@keyframes neonFlicker {
    0%   { opacity: 1; }
    5%   { opacity: 0.85; }
    10%  { opacity: 1; }
    15%  { opacity: 0.9; }
    20%  { opacity: 1; }
    100% { opacity: 1; }
}

.entrance-tagline {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 14px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--soft-rose);
    margin-top: 30px;
    opacity: 0;
    transition: opacity 0.8s ease 2s;
}

.entrance-tagline.visible {
    opacity: 1;
}

.scroll-hint {
    margin-top: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0;
    transition: opacity 0.8s ease 2.5s;
}

.scroll-hint.visible {
    opacity: 0.6;
}

.scroll-hint-text {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--neon-teal);
}

.scroll-arrow {
    color: var(--neon-teal);
    animation: bounceDown 2s ease-in-out infinite;
}

@keyframes bounceDown {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(6px); }
}

/* ===== Floor 1 - About Lounge ===== */
.floor-lounge {
    background: linear-gradient(
        180deg,
        var(--honey-mist) 0%,
        var(--sunset-cream) 100%
    );
    color: var(--vhs-black);
}

.lounge-layout {
    display: flex;
    gap: clamp(30px, 4vw, 60px);
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.lounge-text {
    flex: 0 0 58%;
}

.lounge-text .section-title {
    color: var(--deep-indigo);
}

.lounge-paragraph {
    color: var(--vhs-black);
    margin-bottom: 1.2em;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.lounge-paragraph.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.lounge-visual {
    flex: 0 0 38%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.circuit-cluster {
    width: 100%;
    max-width: 300px;
    height: auto;
}

.circuit-component {
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.circuit-component.animate-in {
    opacity: 1;
    transform: scale(1);
}

.circuit-component:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 6px var(--neon-teal));
}

/* ===== Floor 2 - Services Deck ===== */
.floor-services {
    background: linear-gradient(
        180deg,
        var(--sunset-cream) 0%,
        var(--lavender-haze) 50%,
        var(--deep-indigo) 100%
    );
    justify-content: center;
    padding-top: clamp(60px, 8vh, 100px);
    padding-bottom: clamp(60px, 8vh, 100px);
}

.services-content {
    display: flex;
    flex-direction: column;
    gap: clamp(20px, 3vh, 40px);
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
}

.service-band {
    padding: clamp(24px, 3vh, 40px) clamp(30px, 4vw, 60px);
    border-radius: 8px;
    backdrop-filter: blur(8px);
    transition: transform 0.7s ease, opacity 0.7s ease;
}

.service-band-left {
    background: rgba(255, 244, 230, 0.12);
    border-left: 3px solid var(--neon-teal);
    opacity: 0;
    transform: translateX(-60px);
}

.service-band-right {
    background: rgba(255, 244, 230, 0.12);
    border-right: 3px solid var(--soft-rose);
    text-align: right;
    opacity: 0;
    transform: translateX(60px);
}

.service-band.animate-in {
    opacity: 1;
    transform: translateX(0);
}

.service-title {
    font-family: 'Righteous', cursive;
    font-weight: 400;
    font-size: clamp(24px, 3.5vw, 40px);
    color: var(--sunset-cream);
    margin-bottom: 0.5em;
}

.service-desc {
    color: rgba(255, 244, 230, 0.85);
    font-size: clamp(14px, 1.5vw, 18px);
    line-height: 1.7;
    max-width: 600px;
}

.service-band-right .service-desc {
    margin-left: auto;
}

/* ===== Floor 3 - Rooftop ===== */
.floor-rooftop {
    background: linear-gradient(
        180deg,
        var(--honey-mist) 0%,
        var(--lavender-haze) 40%,
        var(--deep-indigo) 100%
    );
    align-items: center;
    text-align: center;
    transition: background 1.5s ease;
}

.floor-rooftop.night-sky {
    background: linear-gradient(
        180deg,
        var(--deep-indigo) 0%,
        var(--vhs-black) 100%
    );
}

.rooftop-content {
    position: relative;
    z-index: 2;
}

.rooftop-sign {
    margin-bottom: 40px;
}

.rooftop-logo {
    width: clamp(250px, 40vw, 400px);
    height: auto;
}

.rooftop-logo-text {
    font-family: 'Righteous', cursive;
    font-size: 64px;
    fill: var(--soft-rose);
    animation: rooftopPulse 4s ease-in-out infinite;
}

@keyframes rooftopPulse {
    0%, 100% { opacity: 0.7; }
    50%      { opacity: 1; }
}

.rooftop-message {
    font-family: 'Work Sans', sans-serif;
    font-size: clamp(20px, 3vw, 32px);
    font-weight: 400;
    color: var(--sunset-cream);
    margin-bottom: 50px;
    line-height: 1.5;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    margin-bottom: 60px;
}

.contact-link {
    text-decoration: none;
    color: var(--sunset-cream);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    position: relative;
    padding-bottom: 4px;
}

.contact-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--soft-rose);
    transition: width 0.4s ease-out;
}

.contact-link:hover::after {
    width: 100%;
}

.contact-link:hover {
    color: var(--neon-teal);
}

.contact-link-label {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--neon-teal);
    opacity: 0.7;
}

.contact-link-value {
    font-family: 'Work Sans', sans-serif;
    font-size: clamp(16px, 2vw, 20px);
    font-weight: 600;
}

.copyright {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.06em;
    color: var(--lavender-haze);
    opacity: 0.5;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .lounge-layout {
        flex-direction: column;
    }

    .lounge-text,
    .lounge-visual {
        flex: none;
        width: 100%;
    }

    .lounge-visual {
        order: -1;
        margin-bottom: 20px;
    }

    .circuit-cluster {
        max-width: 200px;
    }

    .service-band-left,
    .service-band-right {
        transform: translateX(0);
        opacity: 0;
    }

    .service-band-right {
        text-align: left;
        border-right: none;
        border-left: 3px solid var(--soft-rose);
    }

    .service-band-right .service-desc {
        margin-left: 0;
    }

    .iso-icon {
        display: none;
    }

    .contact-links {
        gap: 24px;
    }
}
