/* ===========================================
   recycle.makeup - Pop-Art Cosmetics Recycling
   =========================================== */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Lexend', sans-serif;
    font-weight: 400;
    font-size: clamp(15px, 1.5vw, 17px);
    line-height: 1.7;
    color: #2C2C2C;
    background: #FFF0E8;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3 {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
}

h2 {
    font-size: clamp(28px, 4.5vw, 56px);
    margin-bottom: 40px;
    text-align: center;
}

h3 {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: clamp(18px, 2.5vw, 24px);
    margin-bottom: 12px;
}

.sacramento-text {
    font-family: 'Sacramento', cursive;
    font-weight: 400;
}

/* Halftone Overlay - Pop Art Ben-Day dots */
.halftone-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-radial-gradient(
        circle at 3px 3px,
        #2C2C2C 0.5px,
        transparent 0.5px
    );
    background-size: 6px 6px;
    opacity: 0.04;
    pointer-events: none;
    z-index: 1;
}

/* Leather Texture Strips */
.leather-strip {
    height: 8px;
    border-radius: 2px;
    margin-bottom: 16px;
    background:
        radial-gradient(circle at 2px 2px, rgba(0,0,0,0.1) 1px, transparent 1px),
        radial-gradient(circle at 5px 5px, rgba(0,0,0,0.08) 1px, transparent 1px),
        radial-gradient(circle at 8px 3px, rgba(0,0,0,0.06) 0.5px, transparent 0.5px),
        linear-gradient(135deg, #C8A880 0%, #B89A70 40%, #C8A880 60%, #D4B490 100%);
    background-size: 6px 6px, 8px 8px, 10px 10px, 100% 100%;
}

/* ===========================================
   VANITY MIRROR OPENING
   =========================================== */
.vanity-mirror {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #FFF0E8 0%, #F0E0F0 100%);
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.wordmark {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: clamp(36px, 7vw, 80px);
    color: #2C2C2C;
    letter-spacing: -0.02em;
    min-height: 1.2em;
}

.wordmark .cursor {
    display: inline-block;
    width: 3px;
    height: 0.9em;
    background: #F07070;
    margin-left: 2px;
    vertical-align: text-bottom;
    animation: cursorBlink 0.6s ease-in-out infinite;
}

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

.hero-tagline {
    font-family: 'Sacramento', cursive;
    font-size: clamp(20px, 3vw, 32px);
    color: #F07070;
    margin-top: 12px;
    opacity: 0;
    transition: opacity 0.8s ease;
}

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

/* Swimming Fish */
.fish {
    position: absolute;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.fish.swimming {
    opacity: 1;
}

.fish-1 {
    width: 50px;
    top: 20%;
    left: -60px;
    animation: swimRight1 18s linear infinite;
}

.fish-2 {
    width: 40px;
    top: 60%;
    right: -50px;
    animation: swimLeft1 22s linear infinite;
    transform: scaleX(-1);
}

.fish-3 {
    width: 35px;
    top: 35%;
    left: -45px;
    animation: swimRight2 25s linear infinite;
}

.fish-4 {
    width: 55px;
    top: 75%;
    left: -65px;
    animation: swimRight3 20s linear infinite;
}

.fish-5 {
    width: 30px;
    top: 45%;
    right: -40px;
    animation: swimLeft2 16s linear infinite;
    transform: scaleX(-1);
}

@keyframes swimRight1 {
    0% { transform: translateX(0) translateY(0); }
    25% { transform: translateX(30vw) translateY(-20px); }
    50% { transform: translateX(60vw) translateY(10px); }
    75% { transform: translateX(90vw) translateY(-15px); }
    100% { transform: translateX(calc(100vw + 80px)) translateY(0); }
}

@keyframes swimRight2 {
    0% { transform: translateX(0) translateY(0); }
    20% { transform: translateX(25vw) translateY(15px); }
    40% { transform: translateX(45vw) translateY(-10px); }
    60% { transform: translateX(65vw) translateY(20px); }
    80% { transform: translateX(85vw) translateY(-5px); }
    100% { transform: translateX(calc(100vw + 60px)) translateY(0); }
}

@keyframes swimRight3 {
    0% { transform: translateX(0) translateY(0); }
    30% { transform: translateX(35vw) translateY(-25px); }
    60% { transform: translateX(70vw) translateY(15px); }
    100% { transform: translateX(calc(100vw + 80px)) translateY(-10px); }
}

@keyframes swimLeft1 {
    0% { transform: scaleX(-1) translateX(0) translateY(0); }
    25% { transform: scaleX(-1) translateX(30vw) translateY(15px); }
    50% { transform: scaleX(-1) translateX(55vw) translateY(-10px); }
    75% { transform: scaleX(-1) translateX(80vw) translateY(20px); }
    100% { transform: scaleX(-1) translateX(calc(100vw + 70px)) translateY(0); }
}

@keyframes swimLeft2 {
    0% { transform: scaleX(-1) translateX(0) translateY(0); }
    30% { transform: scaleX(-1) translateX(25vw) translateY(-20px); }
    70% { transform: scaleX(-1) translateX(70vw) translateY(15px); }
    100% { transform: scaleX(-1) translateX(calc(100vw + 50px)) translateY(-5px); }
}

/* ===========================================
   BEAUTY CARD GRID
   =========================================== */
.card-grid-section {
    position: relative;
    padding: 80px 40px;
    background: #FFF0E8;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
}

.beauty-card {
    border: 2px solid #2C2C2C;
    border-radius: 8px;
    padding: 24px;
    transform: rotate(var(--rot, 0deg));
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    z-index: 2;
}

.beauty-card:hover {
    transform: rotate(0deg) translateY(-4px);
    box-shadow: 6px 6px 0 #2C2C2C;
}

.card-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 16px;
}

.card-icon svg {
    width: 100%;
    height: 100%;
}

/* ===========================================
   TROPICAL OCEAN SECTION
   =========================================== */
.ocean-section {
    position: relative;
    padding: 100px 40px;
    background: linear-gradient(180deg, #88D8B8 0%, #E8D8F0 100%);
    overflow: hidden;
}

.wave-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse 80% 30% at 20% 80%, rgba(136, 216, 184, 0.4) 0%, transparent 60%),
        radial-gradient(ellipse 60% 40% at 70% 90%, rgba(240, 224, 240, 0.5) 0%, transparent 60%),
        radial-gradient(ellipse 90% 20% at 50% 70%, rgba(255, 240, 232, 0.3) 0%, transparent 50%);
    pointer-events: none;
}

.ocean-content {
    position: relative;
    z-index: 2;
    max-width: 1100px;
    margin: 0 auto;
}

.ocean-text-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.ocean-fact {
    background: rgba(255, 240, 232, 0.85);
    border: 2px solid #2C2C2C;
    border-radius: 8px;
    padding: 28px;
    text-align: center;
}

.fact-accent {
    display: block;
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: clamp(22px, 3vw, 36px);
    color: #F07070;
    margin-bottom: 10px;
}

.ocean-quote {
    font-size: clamp(22px, 3vw, 32px);
    text-align: center;
    color: #2C2C2C;
    padding: 20px;
}

/* Ocean Fish */
.ocean-fish {
    position: absolute;
    z-index: 1;
}

.ocean-fish-1 {
    width: 55px;
    top: 25%;
    left: -60px;
    animation: swimRight1 14s linear infinite;
}

.ocean-fish-2 {
    width: 65px;
    top: 55%;
    right: -70px;
    animation: swimLeft1 18s linear infinite;
    transform: scaleX(-1);
}

.ocean-fish-3 {
    width: 40px;
    top: 80%;
    left: -50px;
    animation: swimRight2 20s linear infinite;
}

/* ===========================================
   HOW TO SECTION
   =========================================== */
.how-to-section {
    position: relative;
    padding: 80px 40px;
    background: #F0E0F0;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
}

.step-card {
    background: #FFF0E8;
    border: 2px solid #2C2C2C;
    border-radius: 8px;
    padding: 28px;
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step-card:hover {
    transform: translateY(-4px);
    box-shadow: 5px 5px 0 #2C2C2C;
}

.step-number {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: clamp(36px, 4vw, 56px);
    color: #F07070;
    line-height: 1;
    margin-bottom: 12px;
}

/* ===========================================
   COMPACT FOOTER
   =========================================== */
.compact-footer {
    background: #F8D8D8;
    padding: 60px 40px 30px;
    text-align: center;
    position: relative;
}

.compact-mirror {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    margin: 0 auto 30px;
    background: linear-gradient(145deg, #E8D8F0, #FFF0E8);
    border: 3px solid #2C2C2C;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        inset 0 0 40px rgba(255, 240, 232, 0.6),
        0 4px 20px rgba(44, 44, 44, 0.1);
}

.mirror-surface {
    text-align: center;
    padding: 20px;
}

.footer-wordmark {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: 22px;
    color: #2C2C2C;
    display: block;
    margin-bottom: 12px;
}

.footer-nav {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.footer-nav a {
    font-family: 'Lexend', sans-serif;
    font-weight: 500;
    font-size: 14px;
    color: #2C2C2C;
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background 0.2s ease, color 0.2s ease;
}

.footer-nav a:hover {
    background: #F07070;
    color: #FFF0E8;
}

.footer-tagline {
    font-size: 22px;
    color: #F07070;
}

.footer-copy {
    font-size: 13px;
    color: #2C2C2C;
    opacity: 0.6;
}

/* ===========================================
   TYPEWRITER HEADING
   =========================================== */
.typewriter-heading {
    position: relative;
    display: inline-block;
    width: 100%;
}

.typewriter-heading .tw-cursor {
    display: inline-block;
    width: 3px;
    height: 0.85em;
    background: #F07070;
    margin-left: 3px;
    vertical-align: text-bottom;
    animation: cursorBlink 0.6s ease-in-out infinite;
}

.typewriter-heading.tw-complete .tw-cursor {
    animation: cursorFadeOut 0.5s ease forwards 1.5s;
}

@keyframes cursorFadeOut {
    to { opacity: 0; }
}

/* ===========================================
   RESPONSIVE
   =========================================== */
@media (max-width: 900px) {
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ocean-text-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .card-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .ocean-text-grid {
        grid-template-columns: 1fr;
    }

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

    .card-grid-section,
    .ocean-section,
    .how-to-section {
        padding: 60px 20px;
    }

    .compact-mirror {
        width: 220px;
        height: 220px;
    }

    .footer-wordmark {
        font-size: 18px;
    }

    .footer-nav {
        gap: 10px;
    }

    .footer-nav a {
        font-size: 13px;
    }
}
