/* loves.quest - McBling Treasure Hunt for Love */

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Lora', serif;
    font-weight: 400;
    font-size: clamp(15px, 1.5vw, 18px);
    line-height: 1.7;
    color: #2a1a20;
    background: #f0dce0;
    overflow-x: hidden;
}

/* =============================================
   SPARKLE PARTICLES
   ============================================= */
#sparkle-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 100;
    overflow: hidden;
}

.sparkle-particle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #e0e0f0, #a0a0b8, #6a6a80);
    opacity: 0;
    animation: sparkle-drift linear infinite;
}

@keyframes sparkle-drift {
    0% {
        opacity: 0;
        transform: translate(0, 0) scale(0.5);
    }
    10% {
        opacity: 0.7;
    }
    50% {
        opacity: 0.4;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        opacity: 0;
        transform: translate(var(--drift-x), var(--drift-y)) scale(1);
    }
}

/* =============================================
   HERO SECTION
   ============================================= */
#hero {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #f0dce0;
    overflow: hidden;
}

#chrome-heart {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: clamp(260px, 45vw, 500px);
    height: clamp(240px, 42vw, 460px);
}

#chrome-heart-shape {
    width: 100%;
    height: 100%;
    clip-path: path('M250 420 C250 420 30 280 30 160 C30 60 130 20 180 20 C210 20 240 40 250 70 C260 40 290 20 320 20 C370 20 470 60 470 160 C470 280 250 420 250 420Z');
    background: linear-gradient(135deg, #e0e0f0 0%, #a0a0b8 25%, #f0f0ff 50%, #a0a0b8 75%, #e0e0f0 100%);
    background-size: 300% 300%;
    animation: chrome-shimmer 6s ease-in-out infinite;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform: scale(0);
    transition: transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}

#chrome-heart-shape.visible {
    transform: scale(1);
}

@keyframes chrome-shimmer {
    0% { background-position: 0% 0%; }
    50% { background-position: 100% 100%; }
    100% { background-position: 0% 0%; }
}

#hero-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 10%;
}

#hero-loves {
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: clamp(32px, 6vw, 72px);
    color: #2a1a20;
    letter-spacing: 0.06em;
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

#hero-loves.visible {
    opacity: 1;
    transform: scale(1);
}

#hero-quest {
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: clamp(18px, 3vw, 36px);
    color: #6a4a58;
    letter-spacing: 0.04em;
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.4s ease 0.2s, transform 0.4s ease 0.2s;
}

#hero-quest.visible {
    opacity: 1;
    transform: scale(1);
}

#hero-tagline {
    font-family: 'Lora', serif;
    font-weight: 400;
    font-style: italic;
    font-size: clamp(14px, 1.8vw, 20px);
    color: #6a4a58;
    margin-top: 24px;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.6s ease 0.8s, transform 0.6s ease 0.8s;
}

#hero-tagline.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =============================================
   DISCOVERIES SECTION
   ============================================= */
#discoveries {
    padding: clamp(40px, 6vh, 80px) clamp(16px, 4vw, 60px);
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: clamp(20px, 3vw, 36px);
    color: #2a1a20;
    text-align: center;
    margin-bottom: clamp(24px, 4vh, 48px);
}

/* Bento Grid */
#bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

/* Bento Module Base */
.bento-module {
    border-radius: 16px;
    padding: 20px;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: default;
    opacity: 0;
    transform: translateY(20px);
}

.bento-module.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.4s ease, transform 0.4s ease, box-shadow 0.2s ease;
}

.bento-module:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.bento-module.visible:hover {
    transform: translateY(-4px);
}

/* Module Sizes */
.bento-1x1 {
    grid-column: span 1;
    grid-row: span 1;
}

.bento-2x1 {
    grid-column: span 2;
    grid-row: span 1;
}

.bento-1x2 {
    grid-column: span 1;
    grid-row: span 2;
}

.bento-2x2 {
    grid-column: span 2;
    grid-row: span 2;
}

/* Module Colors */
.frost-pink {
    background: #f0dce0;
}

.frost-lavender {
    background: #e0d4e8;
}

.frost-cream {
    background: #f0e8dc;
}

/* Module Typography */
.module-label {
    font-family: 'Nunito', sans-serif;
    font-weight: 500;
    font-size: 12px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #6a4a58;
    display: block;
    margin-bottom: 8px;
}

.module-title {
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: clamp(18px, 2.2vw, 24px);
    color: #2a1a20;
    margin-bottom: 8px;
    line-height: 1.3;
}

.module-body {
    font-family: 'Lora', serif;
    font-weight: 400;
    font-size: clamp(14px, 1.4vw, 16px);
    color: #2a1a20;
    line-height: 1.7;
}

.module-body em {
    font-style: italic;
    color: #6a4a58;
}

.module-quote {
    font-family: 'Lora', serif;
    font-weight: 700;
    font-style: italic;
    font-size: clamp(16px, 1.8vw, 20px);
    color: #2a1a20;
    line-height: 1.6;
    margin-bottom: 8px;
}

.module-attribution {
    font-family: 'Lora', serif;
    font-weight: 400;
    font-size: 14px;
    color: #6a4a58;
    display: block;
    margin-top: 4px;
}

/* Chrome Accent Shapes */
.chrome-accent {
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: 14px;
    height: 14px;
    background: linear-gradient(135deg, #e0e0f0, #a0a0b8, #f0f0ff);
    opacity: 0;
    transform: scale(0);
    transition: transform 0.2s ease 0.3s, opacity 0.2s ease 0.3s;
}

.bento-module.visible .chrome-accent {
    opacity: 0.7;
    transform: scale(1);
}

.chrome-heart-mini {
    clip-path: path('M7 13 C7 13 1 9 1 5.5 C1 2.5 3.5 1 5 1 C6 1 6.8 1.5 7 2.5 C7.2 1.5 8 1 9 1 C10.5 1 13 2.5 13 5.5 C13 9 7 13 7 13Z');
}

.chrome-star-mini {
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

.chrome-diamond-mini {
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

/* =============================================
   SUMMIT SECTION
   ============================================= */
#summit {
    position: relative;
    width: 100%;
    height: 70vh;
    min-height: 400px;
    overflow: hidden;
    margin-top: clamp(40px, 6vh, 80px);
}

#mountain-container {
    position: relative;
    width: 100%;
    height: 100%;
    background: #f0dce0;
}

.mountain-layer {
    position: absolute;
    bottom: 0;
    left: -5%;
    width: 110%;
    height: 100%;
}

.mountain-back {
    clip-path: polygon(0% 100%, 0% 65%, 10% 50%, 22% 55%, 35% 35%, 48% 45%, 60% 30%, 72% 40%, 85% 25%, 95% 35%, 100% 30%, 100% 100%);
    background: #b8a0ac;
    opacity: 0.4;
}

.mountain-mid {
    clip-path: polygon(0% 100%, 0% 75%, 8% 60%, 18% 65%, 30% 45%, 42% 55%, 55% 38%, 65% 48%, 78% 35%, 88% 42%, 100% 38%, 100% 100%);
    background: #b8a0ac;
    opacity: 0.6;
}

.mountain-front {
    clip-path: polygon(0% 100%, 0% 80%, 12% 68%, 25% 72%, 38% 55%, 50% 60%, 62% 50%, 75% 58%, 85% 48%, 95% 55%, 100% 52%, 100% 100%);
    background: #b8a0ac;
    opacity: 0.85;
}

#summit-text {
    position: absolute;
    top: 18%;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.8s ease;
}

#summit-text.visible {
    opacity: 1;
}

#summit-word {
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: clamp(48px, 8vw, 120px);
    letter-spacing: 0.1em;
    background: linear-gradient(135deg, #e0e0f0 0%, #a0a0b8 25%, #f0f0ff 50%, #a0a0b8 75%, #e0e0f0 100%);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: chrome-shimmer 6s ease-in-out infinite;
}

/* =============================================
   REFLECTION SECTION
   ============================================= */
#reflection {
    padding: clamp(40px, 6vh, 80px) clamp(16px, 4vw, 60px);
    max-width: 1200px;
    margin: 0 auto;
}

#reflection-module {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: #f0e8dc;
    padding: clamp(32px, 5vw, 60px);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

#reflection-module.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Vintage sepia overlay */
#reflection-module::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #d4c0a8;
    opacity: 0.2;
    pointer-events: none;
    z-index: 1;
}

/* Grain texture overlay */
#reflection-grain {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
    z-index: 2;
}

#reflection-content {
    position: relative;
    z-index: 3;
}

.reflection-quote {
    font-family: 'Lora', serif;
    font-weight: 700;
    font-style: italic;
    font-size: clamp(20px, 2.5vw, 32px);
    color: #2a1a20;
    line-height: 1.5;
    margin-bottom: 12px;
    text-align: center;
}

.reflection-attribution {
    font-family: 'Lora', serif;
    font-weight: 400;
    font-size: 16px;
    color: #6a4a58;
    display: block;
    text-align: center;
    margin-bottom: 28px;
}

.reflection-closing {
    font-family: 'Lora', serif;
    font-weight: 400;
    font-size: clamp(15px, 1.5vw, 18px);
    color: #2a1a20;
    line-height: 1.8;
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
}

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

    .bento-2x2 {
        grid-column: span 2;
    }
}

@media (max-width: 560px) {
    #bento-grid {
        grid-template-columns: 1fr;
    }

    .bento-2x1,
    .bento-1x2,
    .bento-2x2 {
        grid-column: span 1;
        grid-row: span 1;
    }

    #chrome-heart {
        width: 70vw;
        height: 65vw;
    }
}
