/* recycle.makeup - Y2K Holographic Beauty */

:root {
    --pearl: #FAF5F0;
    --onyx: #1A1018;
    --holo-pink: #FF6FD8;
    --holo-cyan: #3CDFFF;
    --rose-gold: #E8B4B8;
    --deep-plum: #2D1B2E;
    --soft-blush: #F5DDE0;
    --mercury: #C0C0D0;
    --angle: 0deg;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Quicksand', sans-serif;
    background-color: var(--pearl);
    color: var(--deep-plum);
    overflow-x: hidden;
}

.section {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

.section__heading {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    font-size: clamp(2.5rem, 6vw, 5rem);
    color: var(--deep-plum);
    text-align: center;
    padding: 3rem 2rem 2rem;
}

/* ========== SECTION 1: THE COMPACT ========== */

.section--compact {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--pearl);
    position: relative;
}

.compact__circle {
    width: min(80vw, 500px);
    aspect-ratio: 1;
    border-radius: 50%;
    background: conic-gradient(from var(--angle), #FF6FD8, #3CDFFF, #E8B4B8, #FF6FD8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    box-shadow: 0 20px 60px rgba(255, 111, 216, 0.15), 0 8px 32px rgba(60, 223, 255, 0.1);
    animation: hueShift 8s linear infinite;
}

@keyframes hueShift {
    from { filter: hue-rotate(0deg); }
    to { filter: hue-rotate(360deg); }
}

.compact__title {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    font-size: clamp(2rem, 5vw, 4rem);
    color: white;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.02em;
}

.compact__subtitle {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 300;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-top: 0.5rem;
}

/* Floating Particles */
.floating-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    animation: floatDrift 10s ease-in-out infinite;
}

.particle--circle {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 111, 216, 0.3), rgba(60, 223, 255, 0.3));
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.particle--capsule {
    width: 30px;
    height: 12px;
    border-radius: 6px;
    background: linear-gradient(135deg, rgba(232, 180, 184, 0.3), rgba(192, 192, 208, 0.3));
    border: 1px solid rgba(255, 255, 255, 0.3);
}

@keyframes floatDrift {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(10px, -15px); }
    50% { transform: translate(-5px, 10px); }
    75% { transform: translate(15px, 5px); }
}

/* Mercury Droplets */
.mercury-droplet {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #ffffff, #C0C0D0);
    pointer-events: none;
    animation: mercuryFloat 12s ease-in-out infinite;
}

@keyframes mercuryFloat {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(8px, -12px); }
    66% { transform: translate(-6px, 8px); }
}

/* ========== SECTION 2: THE PALETTE ========== */

.section--palette {
    background-color: var(--pearl);
    min-height: 150vh;
    padding-bottom: 4rem;
}

.palette__field {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
    height: 80vh;
}

.swatch {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.swatch.visible {
    opacity: 1;
    transform: scale(1);
}

.swatch__circle {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 50%;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
}

.swatch__label {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 300;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--deep-plum);
    opacity: 0.7;
}

/* ========== SECTION 3: THE PROCESS ========== */

.section--process {
    background-color: var(--onyx);
    color: var(--soft-blush);
    min-height: 100vh;
    padding: 4rem 2rem;
}

.process__split {
    display: flex;
    max-width: 1000px;
    margin: 0 auto;
    gap: 4rem;
    align-items: center;
}

.process__visuals {
    flex: 0.4;
    display: flex;
    justify-content: center;
}

.process__flow-svg {
    width: 200px;
    height: auto;
    max-height: 600px;
}

.draw-path {
    stroke-dasharray: 500;
    stroke-dashoffset: 500;
    transition: stroke-dashoffset 1.8s ease;
}

.product-silhouette.drawn .draw-path {
    stroke-dashoffset: 0;
}

.flow-line {
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    transition: stroke-dashoffset 1.2s ease;
}

.flow-line.drawn {
    stroke-dashoffset: 0;
}

.process__descriptions {
    flex: 0.6;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.process__step {
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.process__step.visible {
    opacity: 1;
    transform: translateX(0);
}

.process__step-title {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    font-size: 1.8rem;
    color: var(--rose-gold);
    margin-bottom: 0.5rem;
}

.process__step-text {
    font-family: 'Quicksand', sans-serif;
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--soft-blush);
}

/* ========== SECTION 4: THE MIRROR ========== */

.section--mirror {
    background-color: var(--pearl);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    overflow: hidden;
}

.mirror__content {
    text-align: center;
    max-width: 700px;
    padding: 4rem 2rem;
}

.mirror__heading {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    font-size: clamp(2rem, 4vw, 3.5rem);
    color: var(--deep-plum);
    margin-bottom: 1.5rem;
}

.mirror__text {
    font-family: 'Quicksand', sans-serif;
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--deep-plum);
    opacity: 0.8;
}

.mirror__reflection {
    text-align: center;
    max-width: 700px;
    padding: 0 2rem;
    transform: scaleY(-1);
    opacity: 0.25;
    mask-image: linear-gradient(to bottom, black 0%, transparent 60%);
    -webkit-mask-image: linear-gradient(to bottom, black 0%, transparent 60%);
    pointer-events: none;
}

.mirror__content-reflected .mirror__heading {
    color: var(--rose-gold);
}

.mirror__content-reflected .mirror__text {
    color: var(--mercury);
}

/* ========== RESPONSIVE ========== */

@media (max-width: 768px) {
    .process__split {
        flex-direction: column;
        gap: 2rem;
    }

    .process__visuals {
        max-height: 300px;
    }

    .palette__field {
        height: auto;
        min-height: 600px;
    }

    .swatch {
        position: relative !important;
        display: inline-flex;
        margin: 1rem;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
    }

    .palette__field {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }
}
