/* recycle.makeup - Pop-Art Cosmetic Recycling */

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

:root {
    --coral-red: #E8475F;
    --cream: #FAF0E4;
    --dusty-rose: #C9A5A5;
    --burgundy: #6B1D3A;
    --gold: #E9C46A;
    --dark: #1A1218;
    --teal: #2A9D8F;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--cream);
    color: var(--dark);
    font-family: 'Nunito', sans-serif;
    overflow-x: hidden;
}

/* Lifecycle Spine */
#spine {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    height: 100vh;
    z-index: 100;
    pointer-events: none;
}

#spine-svg {
    height: 100%;
}

#spine-line {
    transition: stroke-dashoffset 0.1s linear;
}

/* Scenes */
.scene {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

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

.scene-label {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Archivo Black', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    color: var(--burgundy);
    opacity: 0.6;
    text-transform: uppercase;
}

/* Typography */
.headline {
    font-family: 'Dela Gothic One', cursive;
    font-size: clamp(2.5rem, 7vw, 5.5rem);
    text-transform: uppercase;
    color: var(--dark);
    line-height: 1.1;
    margin-bottom: 2rem;
}

.headline-accent {
    color: var(--coral-red);
    -webkit-text-stroke: 2px var(--dark);
}

.section-title {
    font-family: 'Dela Gothic One', cursive;
    font-size: clamp(2rem, 5vw, 4rem);
    text-transform: uppercase;
    color: var(--dark);
    margin-bottom: 1.5rem;
}

.section-text {
    font-family: 'Nunito', sans-serif;
    font-size: clamp(1rem, 2vw, 1.25rem);
    line-height: 1.8;
    color: var(--dark);
    max-width: 500px;
    margin: 0 auto 2rem;
}

/* Scene Backgrounds */
.scene-1 {
    background: var(--cream);
}

.scene-2 {
    background: linear-gradient(180deg, var(--cream) 0%, #fff5eb 100%);
}

.scene-3 {
    background: var(--dark);
}

.scene-3 .section-title,
.scene-3 .section-text {
    color: var(--cream);
}

.scene-3 .scene-label {
    color: var(--coral-red);
}

.scene-4 {
    background: linear-gradient(180deg, var(--dark) 0%, #1a2a28 100%);
}

.scene-4 .section-title {
    color: var(--teal);
}

.scene-4 .section-text {
    color: var(--cream);
}

.scene-4 .scene-label {
    color: var(--teal);
}

.scene-5 {
    background: var(--cream);
}

/* Cosmetic Illustrations */
.cosmetic-illustration {
    width: 200px;
    height: 300px;
    margin: 2rem auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.watercolor-svg {
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.scene.visible .watercolor-svg {
    opacity: 1;
    transform: scale(1);
}

/* Halftone Overlay */
.halftone-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle, var(--dark) 1px, transparent 1px);
    background-size: 12px 12px;
    opacity: 0.06;
    pointer-events: none;
}

/* Ben-Day Dots */
.ben-day-dots {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle, var(--coral-red) 1.5px, transparent 1.5px);
    background-size: 16px 16px;
    opacity: 0.08;
    pointer-events: none;
}

/* CTA */
.cta-container {
    margin: 2rem auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.cta-button {
    font-family: 'Archivo Black', sans-serif;
    font-size: 1.1rem;
    text-decoration: none;
    color: var(--cream);
    background: var(--coral-red);
    padding: 1rem 2.5rem;
    border: 3px solid var(--dark);
    box-shadow: 4px 4px 0 var(--dark);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.cta-button:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 var(--dark);
}

.cta-button:active {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 var(--dark);
}

.cta-handwritten {
    font-family: 'Caveat', cursive;
    font-size: 1.5rem;
    color: var(--burgundy);
    transform: rotate(-3deg);
    display: inline-block;
}

/* SVG Defs */
.svg-defs {
    position: absolute;
    width: 0;
    height: 0;
}

/* Animations */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.scene.visible .cosmetic-illustration {
    animation: float 4s ease-in-out infinite;
}

/* Scene entry animations */
.scene .scene-content {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.scene.visible .scene-content {
    opacity: 1;
    transform: translateY(0);
}
