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

:root {
    --warm-gray: #c8c2b8;
    --dusty-rose: #b08f8f;
    --muted-teal: #8bb0a9;
    --off-white: #e8e4dc;
    --deep-charcoal: #1a1b23;
    --aged-gold: #c9a96e;
    --dark-surface: #2d2e38;
}

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

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--deep-charcoal);
    color: var(--off-white);
    overflow-x: hidden;
    line-height: 1.6;
}

/* === ROOMS === */
.room {
    position: relative;
    width: 100vw;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    scroll-snap-align: start;
    overflow: hidden;
}

#room-1 {
    background: radial-gradient(ellipse at 30% 40%, rgba(139, 176, 169, 0.08) 0%, transparent 60%),
                var(--deep-charcoal);
}

#room-2 {
    background: radial-gradient(ellipse at 70% 50%, rgba(201, 169, 110, 0.06) 0%, transparent 60%),
                var(--dark-surface);
}

#room-3 {
    background: radial-gradient(ellipse at 40% 60%, rgba(176, 143, 143, 0.07) 0%, transparent 60%),
                var(--deep-charcoal);
}

#room-4 {
    background: radial-gradient(ellipse at 50% 50%, rgba(139, 176, 169, 0.05) 0%, transparent 60%),
                var(--dark-surface);
}

#room-5 {
    background: radial-gradient(ellipse at 50% 40%, rgba(201, 169, 110, 0.08) 0%, transparent 50%),
                var(--deep-charcoal);
}

/* === GLASS PANELS === */
.glass-panel {
    position: relative;
    z-index: 2;
    padding: 3rem 4rem;
    background: rgba(45, 46, 56, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(200, 194, 184, 0.12);
    border-radius: 2px;
    max-width: 70vw;
}

.panel-left {
    margin-right: auto;
    margin-left: 8vw;
}

.panel-right {
    margin-left: auto;
    margin-right: 8vw;
}

.panel-center {
    margin: 0 auto;
}

/* === GLASS DIVIDER === */
.glass-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, transparent, rgba(200, 194, 184, 0.3), rgba(201, 169, 110, 0.4), rgba(200, 194, 184, 0.3), transparent);
    backdrop-filter: blur(10px);
}

/* === TYPOGRAPHY === */
.kinetic-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(3rem, 8vw, 7rem);
    font-weight: 700;
    color: var(--off-white);
    letter-spacing: -0.02em;
    line-height: 1;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.kinetic-title span {
    display: inline-block;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s cubic-bezier(0.23, 1, 0.32, 1),
                transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.kinetic-title.visible span {
    opacity: 1;
    transform: translateY(0);
}

.subtitle {
    font-family: 'IBM Plex Mono', monospace;
    font-size: clamp(0.8rem, 1.5vw, 1.1rem);
    color: var(--aged-gold);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease 0.5s, transform 0.8s ease 0.5s;
}

.subtitle.visible {
    opacity: 1;
    transform: translateY(0);
}

.room-text {
    font-family: 'DM Sans', sans-serif;
    font-size: clamp(1rem, 1.8vw, 1.3rem);
    color: var(--warm-gray);
    max-width: 50ch;
    line-height: 1.8;
    margin-top: 1rem;
}

.mono-label {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    color: var(--aged-gold);
    text-transform: uppercase;
}

.mono-score {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.85rem;
    color: var(--muted-teal);
}

/* === RECYCLING SYMBOL (3D CSS) === */
.specimen {
    position: absolute;
    z-index: 1;
}

.recycling-symbol {
    width: 300px;
    height: 300px;
    right: 12vw;
    top: 50%;
    transform: translateY(-50%);
    animation: spin-y 20s linear infinite;
    transform-style: preserve-3d;
    perspective: 800px;
}

.arrow {
    position: absolute;
    width: 80px;
    height: 20px;
    border-radius: 3px;
    top: 50%;
    left: 50%;
}

.arrow-1 {
    background: var(--muted-teal);
    transform: translate(-50%, -50%) rotate(0deg) translateX(60px);
    box-shadow: 0 0 20px rgba(139, 176, 169, 0.4);
}

.arrow-2 {
    background: var(--aged-gold);
    transform: translate(-50%, -50%) rotate(120deg) translateX(60px);
    box-shadow: 0 0 20px rgba(201, 169, 110, 0.4);
}

.arrow-3 {
    background: var(--dusty-rose);
    transform: translate(-50%, -50%) rotate(240deg) translateX(60px);
    box-shadow: 0 0 20px rgba(176, 143, 143, 0.4);
}

@keyframes spin-y {
    from { transform: translateY(-50%) rotateY(0deg); }
    to { transform: translateY(-50%) rotateY(360deg); }
}

/* === TIN CAN SPECIMEN === */
.tin-can {
    width: 120px;
    height: 180px;
    right: 15vw;
    top: 50%;
    transform: translateY(-50%);
    animation: float 6s ease-in-out infinite;
}

.can-body {
    width: 100%;
    height: 140px;
    background: linear-gradient(135deg, var(--warm-gray), var(--dark-surface));
    border-radius: 8px;
    position: absolute;
    bottom: 0;
    border: 1px solid rgba(200, 194, 184, 0.2);
}

.can-label {
    position: absolute;
    width: 80%;
    height: 60px;
    left: 10%;
    top: 50px;
    background: linear-gradient(135deg, var(--aged-gold), var(--dusty-rose));
    border-radius: 2px;
    opacity: 0.7;
}

.can-rim {
    position: absolute;
    top: 0;
    left: 10%;
    width: 80%;
    height: 20px;
    background: var(--warm-gray);
    border-radius: 50%;
    border: 1px solid rgba(200, 194, 184, 0.3);
}

@keyframes float {
    0%, 100% { transform: translateY(-50%) translateZ(0); }
    50% { transform: translateY(calc(-50% - 15px)) translateZ(0); }
}

/* === GLASS BOTTLE SPECIMEN === */
.glass-bottle {
    width: 80px;
    height: 240px;
    left: 12vw;
    top: 50%;
    transform: translateY(-50%);
    animation: float 7s ease-in-out infinite;
}

.bottle-body {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 160px;
    background: rgba(139, 176, 169, 0.15);
    border: 1px solid rgba(139, 176, 169, 0.3);
    border-radius: 8px 8px 4px 4px;
    backdrop-filter: blur(4px);
}

.bottle-neck {
    position: absolute;
    bottom: 160px;
    left: 30%;
    width: 40%;
    height: 70px;
    background: rgba(139, 176, 169, 0.1);
    border: 1px solid rgba(139, 176, 169, 0.25);
    border-radius: 4px 4px 0 0;
}

.bottle-reflection {
    position: absolute;
    bottom: 20px;
    left: 15%;
    width: 30%;
    height: 100px;
    background: linear-gradient(180deg, rgba(255,255,255,0.08), transparent);
    border-radius: 4px;
}

/* === DATA TICKER === */
.data-ticker {
    position: absolute;
    bottom: 2rem;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 3rem;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    color: var(--muted-teal);
    opacity: 0.7;
}

.ticker-item {
    animation: pulse-opacity 3s ease-in-out infinite;
}

.ticker-item:nth-child(2) { animation-delay: 1s; }
.ticker-item:nth-child(3) { animation-delay: 2s; }

@keyframes pulse-opacity {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

/* === REVIEW GRID === */
.review-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.review-card {
    padding: 1.5rem;
    background: rgba(26, 27, 35, 0.5);
    border: 1px solid rgba(200, 194, 184, 0.08);
    border-radius: 2px;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.score-bar {
    width: 100%;
    height: 4px;
    background: rgba(200, 194, 184, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.score-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--muted-teal), var(--aged-gold));
    border-radius: 2px;
    transition: width 1.5s cubic-bezier(0.23, 1, 0.32, 1);
}

/* === PARTICLE FIELD === */
.particle-field {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--aged-gold);
    border-radius: 50%;
    opacity: 0;
    animation: drift 8s ease-in-out infinite;
}

@keyframes drift {
    0% { opacity: 0; transform: translateY(0) translateX(0); }
    20% { opacity: 0.6; }
    80% { opacity: 0.3; }
    100% { opacity: 0; transform: translateY(-100px) translateX(30px); }
}

/* === CLOSING SYMBOL === */
.closing-symbol {
    font-size: clamp(4rem, 12vw, 10rem);
    text-align: center;
    margin-top: 2rem;
    color: var(--muted-teal);
    opacity: 0.3;
    animation: spin-y 20s linear infinite;
    display: inline-block;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .glass-panel {
        max-width: 90vw;
        padding: 2rem;
    }

    .panel-left, .panel-right {
        margin: 0 auto;
    }

    .review-grid {
        grid-template-columns: 1fr;
    }

    .specimen {
        opacity: 0.4;
    }

    .data-ticker {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
}
