/* quirk.one -- McBling Cabinet of Curiosities */
:root {
    --pink: #FF69B4;
    --deep-rose: #C2185B;
    --gold: #FFD700;
    --blush: #FFF0F5;
    --orchid: #BA55D3;
    --plum-text: #4A2040;
    --sky: #87CEEB;
    --cream: #FFF8E7;
}
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Nunito', sans-serif; font-weight: 400; font-size: 16px; line-height: 1.75; color: var(--plum-text); background: var(--blush); overflow-x: hidden; }

/* Holographic overlay */
.holo-overlay {
    position: fixed;
    inset: 0;
    background: conic-gradient(from 0deg, transparent, rgba(255,215,0,0.08), rgba(186,85,211,0.08), rgba(135,206,235,0.06), transparent);
    animation: holo-rotate 20s linear infinite;
    pointer-events: none;
    z-index: 0;
    opacity: 0;
    transition: opacity 1.2s ease-out;
}
.holo-overlay.visible { opacity: 1; }
@keyframes holo-rotate {
    from { transform: rotate(0deg) scale(2); }
    to { transform: rotate(360deg) scale(2); }
}

/* Hero */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1;
}
.hero-title {
    font-family: 'Boogaloo', cursive;
    font-weight: 400;
    font-size: 72px;
    color: var(--deep-rose);
    letter-spacing: 0.01em;
    line-height: 1.2;
    position: relative;
    z-index: 2;
}
.hero-title .letter {
    display: inline-block;
    opacity: 0;
    transform: translateY(-40px);
}
.hero-title .letter.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.15s ease-out, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.hero-sub {
    font-family: 'Nunito', sans-serif;
    font-weight: 400;
    font-size: 18px;
    color: var(--orchid);
    margin-top: 12px;
    opacity: 0;
    transition: opacity 0.5s ease-out;
    z-index: 2;
}
.hero-sub.visible { opacity: 1; }

/* Floating gems */
.gem {
    position: absolute;
    width: 28px;
    height: 28px;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s ease-out;
    filter: drop-shadow(0 0 6px currentColor);
}
.gem.visible { opacity: 1; }
.gem svg { width: 100%; height: 100%; }
.gem-1 { top: 25%; left: 20%; color: var(--gold); animation: gem-float 4s ease-in-out infinite; }
.gem-2 { top: 20%; right: 22%; color: var(--pink); animation: gem-float 3.5s ease-in-out infinite 0.5s; }
.gem-3 { bottom: 30%; left: 15%; color: var(--gold); animation: gem-float 5s ease-in-out infinite 1s; }
.gem-4 { top: 35%; right: 12%; color: var(--pink); width: 22px; height: 22px; animation: gem-float 3s ease-in-out infinite 0.3s; }
.gem-5 { bottom: 25%; right: 30%; color: var(--gold); width: 20px; height: 20px; animation: gem-float 4.5s ease-in-out infinite 0.8s; }
@keyframes gem-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

/* Pill nav */
.pill-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    justify-content: center;
    gap: 12px;
    padding: 16px 24px;
    background: rgba(255,240,245,0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    transform: translateY(-30px);
    transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}
.pill-nav.visible { opacity: 1; transform: translateY(0); }
.pill {
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 13px;
    text-decoration: none;
    color: var(--deep-rose);
    background: rgba(255,105,180,0.1);
    border-radius: 999px;
    padding: 8px 20px;
    transition: background 0.2s, box-shadow 0.2s;
}
.pill:hover {
    background: rgba(255,105,180,0.25);
    box-shadow: 0 0 12px rgba(255,105,180,0.3);
}

/* Content */
.content {
    position: relative;
    z-index: 1;
    max-width: 960px;
    margin: 0 auto;
    padding: 40px 24px 80px;
}

/* Diamond dividers */
.diamond-divider {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 40px 0;
}
.diamond {
    width: 12px;
    height: 12px;
    background: var(--gold);
    transform: rotate(45deg) scale(0);
    transition: transform 0.2s ease-out;
}
.diamond:nth-child(even) { background: var(--pink); }
.diamond.visible { transform: rotate(45deg) scale(1); }

/* Cards */
.card {
    background: var(--cream);
    border-radius: 24px;
    border: 2px solid var(--pink);
    box-shadow: 0 8px 32px rgba(255,105,180,0.15);
    padding: 48px 40px;
    position: relative;
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.4s ease-out, transform 0.4s ease-out, border-color 0.3s;
}
.card.visible { opacity: 1; transform: scale(1); }
.card:hover { border-color: var(--gold); }

/* Bedazzled border overlay */
.bedazzle-border {
    position: absolute;
    inset: -1px;
    border-radius: 24px;
    background: repeating-radial-gradient(circle at 0 0, var(--gold) 0px, var(--gold) 1.5px, transparent 1.5px, transparent 12px);
    opacity: 0.3;
    pointer-events: none;
    transition: opacity 0.3s;
    z-index: 0;
}
.card:hover .bedazzle-border { opacity: 0.7; }

/* Labels */
.label {
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--pink);
    display: inline-block;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}
.pulse-label { animation: pulse-attention 2s ease-in-out infinite; }
@keyframes pulse-attention {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Section headings */
.section-heading {
    font-family: 'Boogaloo', cursive;
    font-weight: 400;
    font-size: 40px;
    color: var(--deep-rose);
    letter-spacing: 0.01em;
    margin-bottom: 16px;
    line-height: 1.2;
    position: relative;
    z-index: 1;
}

/* Body text */
.body-text {
    color: var(--plum-text);
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}
.body-text:last-child { margin-bottom: 0; }

/* Links */
.text-link {
    color: var(--deep-rose);
    text-decoration: none;
    background-image: linear-gradient(var(--sky), var(--sky));
    background-position: 0 100%;
    background-repeat: no-repeat;
    background-size: 0% 2px;
    transition: background-size 0.3s ease-out;
}
.text-link:hover { background-size: 100% 2px; }

/* Leaf vine */
.leaf-vine {
    position: absolute;
    top: 20px;
    width: 30px;
    z-index: 0;
}
.leaf-left { left: -40px; }
.leaf-right { right: -40px; }
.leaf-path {
    stroke-dasharray: 400;
    stroke-dashoffset: 400;
    transition: stroke-dashoffset 1.5s ease-out;
}
.card.visible .leaf-path { stroke-dashoffset: 0; }
.leaf-shape {
    opacity: 0;
    transform-origin: center;
    transition: opacity 0.5s ease-out 0.8s, transform 0.5s ease-out 0.8s;
    transform: scale(0.5);
}
.card.visible .leaf-shape { opacity: 1; transform: scale(1); }

/* Sparkle particle */
.sparkle {
    position: fixed;
    width: 3px;
    height: 3px;
    background: var(--gold);
    border-radius: 50%;
    pointer-events: none;
    z-index: 999;
    opacity: 1;
    transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

/* Footer */
.footer {
    text-align: center;
    padding: 40px 0 20px;
}
.footer-text {
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 13px;
    color: var(--orchid);
    letter-spacing: 0.08em;
}

@media (max-width: 768px) {
    .hero-title { font-size: 48px; }
    .section-heading { font-size: 32px; }
    .card { padding: 32px 24px; }
    .pill-nav { flex-wrap: wrap; }
    .gem { display: none; }
    .leaf-vine { display: none; }
}
