/* ============================================
   gabs.report - Dopamine Maximalist Styles
   ============================================ */

/* ---------- Custom Properties ---------- */
:root {
    --strawberry-pop: #FF4F6E;
    --tangerine-fizz: #FF8C42;
    --lemon-zap: #FFD23F;
    --mint-bounce: #3DDC84;
    --bubblegum-aqua: #00D4FF;
    --blueberry-burst: #4A7DFF;
    --grape-soda: #6C3CE1;
    --cotton-candy: #FF6FB7;
    --whipped-cream: #FEFCF8;
    --cloud-puff: #FFFFFF;
    --charcoal-soft: #2D2D3A;
    --lavender-smoke: #8B8BA3;
    --bounce-ease: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

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

body {
    font-family: 'Nunito', sans-serif;
    font-weight: 400;
    font-size: clamp(0.95rem, 1.2vw, 1.1rem);
    line-height: 1.7;
    color: var(--charcoal-soft);
    background-color: var(--whipped-cream);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ---------- Scroll Progress Bar ---------- */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(
        90deg,
        var(--strawberry-pop),
        var(--tangerine-fizz),
        var(--lemon-zap),
        var(--mint-bounce),
        var(--bubblegum-aqua),
        var(--blueberry-burst),
        var(--grape-soda),
        var(--cotton-candy)
    );
    z-index: 10000;
    transition: width 0.1s linear;
    border-radius: 0 2px 2px 0;
}

/* ---------- Hero Section ---------- */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--grape-soda);
    overflow: hidden;
    animation: heroReveal 2.5s ease-out forwards;
}

@keyframes heroReveal {
    0% { background-color: var(--grape-soda); }
    80% { background-color: var(--grape-soda); }
    100% { background-color: var(--whipped-cream); }
}

/* Hero Bubbles */
.hero-bubbles {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-bubble {
    position: absolute;
    border-radius: 50%;
    opacity: 0;
    animation: bubbleBirth 2.5s var(--bounce-ease) forwards;
}

@keyframes bubbleBirth {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    30% {
        opacity: 0.7;
    }
    60% {
        transform: scale(1.15);
        opacity: 0.6;
    }
    80% {
        transform: scale(1) translateY(-20px);
        opacity: 0.5;
    }
    100% {
        transform: scale(1) translateY(-120vh);
        opacity: 0;
    }
}

.hero-bubble--1 { width: 120px; height: 120px; background: var(--strawberry-pop); animation-delay: 0.1s; left: 10%; top: 40%; }
.hero-bubble--2 { width: 80px; height: 80px; background: var(--tangerine-fizz); animation-delay: 0.2s; left: 25%; top: 55%; }
.hero-bubble--3 { width: 150px; height: 150px; background: var(--lemon-zap); animation-delay: 0.15s; left: 40%; top: 30%; }
.hero-bubble--4 { width: 100px; height: 100px; background: var(--mint-bounce); animation-delay: 0.3s; left: 55%; top: 60%; }
.hero-bubble--5 { width: 90px; height: 90px; background: var(--bubblegum-aqua); animation-delay: 0.25s; left: 70%; top: 35%; }
.hero-bubble--6 { width: 130px; height: 130px; background: var(--blueberry-burst); animation-delay: 0.35s; left: 80%; top: 50%; }
.hero-bubble--7 { width: 70px; height: 70px; background: var(--grape-soda); animation-delay: 0.4s; left: 15%; top: 20%; }
.hero-bubble--8 { width: 110px; height: 110px; background: var(--cotton-candy); animation-delay: 0.18s; left: 60%; top: 15%; }
.hero-bubble--9 { width: 85px; height: 85px; background: var(--strawberry-pop); animation-delay: 0.45s; left: 35%; top: 70%; }
.hero-bubble--10 { width: 95px; height: 95px; background: var(--tangerine-fizz); animation-delay: 0.28s; left: 85%; top: 25%; }
.hero-bubble--11 { width: 60px; height: 60px; background: var(--lemon-zap); animation-delay: 0.5s; left: 5%; top: 65%; }
.hero-bubble--12 { width: 140px; height: 140px; background: var(--mint-bounce); animation-delay: 0.22s; left: 48%; top: 45%; }
.hero-bubble--13 { width: 75px; height: 75px; background: var(--bubblegum-aqua); animation-delay: 0.38s; left: 20%; top: 80%; }
.hero-bubble--14 { width: 105px; height: 105px; background: var(--blueberry-burst); animation-delay: 0.32s; left: 72%; top: 70%; }
.hero-bubble--15 { width: 65px; height: 65px; background: var(--cotton-candy); animation-delay: 0.48s; left: 90%; top: 15%; }
.hero-bubble--16 { width: 115px; height: 115px; background: var(--grape-soda); animation-delay: 0.12s; left: 30%; top: 10%; }
.hero-bubble--17 { width: 88px; height: 88px; background: var(--strawberry-pop); animation-delay: 0.42s; left: 50%; top: 80%; }
.hero-bubble--18 { width: 98px; height: 98px; background: var(--lemon-zap); animation-delay: 0.36s; left: 65%; top: 50%; }
.hero-bubble--19 { width: 72px; height: 72px; background: var(--tangerine-fizz); animation-delay: 0.55s; left: 8%; top: 50%; }
.hero-bubble--20 { width: 108px; height: 108px; background: var(--mint-bounce); animation-delay: 0.08s; left: 78%; top: 80%; }

/* Hero Title Bubble */
.hero-title-bubble {
    position: relative;
    z-index: 10;
    width: clamp(260px, 40vw, 400px);
    height: clamp(260px, 40vw, 400px);
    border-radius: 50%;
    background: var(--cloud-puff);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        inset 0 -8px 20px rgba(108, 60, 225, 0.1),
        0 8px 40px rgba(108, 60, 225, 0.2);
    opacity: 0;
    animation: titleBounce 0.8s var(--bounce-ease) 1.8s forwards;
}

@keyframes titleBounce {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.hero-title {
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
    font-size: clamp(2rem, 5vw + 0.5rem, 4.5rem);
    letter-spacing: 0.02em;
    color: var(--charcoal-soft);
    text-align: center;
    animation: titleWobble 3s ease-in-out 2.6s infinite;
}

@keyframes titleWobble {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(1.5deg); }
    75% { transform: rotate(-1.5deg); }
}

/* Hero Emoji Bubbles */
.hero-emoji-bubbles {
    position: absolute;
    inset: 0;
    z-index: 5;
    pointer-events: none;
}

.emoji-bubble {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--cloud-puff);
    box-shadow: 0 4px 16px rgba(45, 45, 58, 0.1);
    opacity: 0;
    animation: emojiBounceIn 0.6s var(--bounce-ease) forwards;
}

.emoji-bubble--1 { width: 70px; height: 70px; font-size: 28px; top: 20%; left: 15%; animation-delay: 2s; }
.emoji-bubble--2 { width: 55px; height: 55px; font-size: 22px; top: 15%; right: 20%; animation-delay: 2.1s; }
.emoji-bubble--3 { width: 65px; height: 65px; font-size: 26px; bottom: 25%; left: 12%; animation-delay: 2.2s; }
.emoji-bubble--4 { width: 60px; height: 60px; font-size: 24px; bottom: 20%; right: 15%; animation-delay: 2.3s; }
.emoji-bubble--5 { width: 50px; height: 50px; font-size: 20px; top: 35%; right: 8%; animation-delay: 2.15s; }
.emoji-bubble--6 { width: 58px; height: 58px; font-size: 23px; bottom: 35%; left: 8%; animation-delay: 2.25s; }

@keyframes emojiBounceIn {
    0% { opacity: 0; transform: scale(0); }
    60% { transform: scale(1.15); }
    100% { opacity: 1; transform: scale(1); }
}

/* ---------- Background Floating Bubbles ---------- */
.bg-bubbles {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.bg-bubble {
    position: absolute;
    border-radius: 50%;
    opacity: 0.08;
    animation: floatUp linear infinite;
}

@keyframes floatUp {
    0% {
        transform: translateY(100vh) scale(0.8);
        opacity: 0;
    }
    10% {
        opacity: 0.1;
    }
    90% {
        opacity: 0.08;
    }
    100% {
        transform: translateY(-100vh) scale(1);
        opacity: 0;
    }
}

.bg-bubble--1 { width: 180px; height: 180px; background: var(--strawberry-pop); left: 5%; animation-duration: 20s; animation-delay: 0s; }
.bg-bubble--2 { width: 120px; height: 120px; background: var(--tangerine-fizz); left: 20%; animation-duration: 18s; animation-delay: -4s; }
.bg-bubble--3 { width: 200px; height: 200px; background: var(--lemon-zap); left: 35%; animation-duration: 25s; animation-delay: -8s; }
.bg-bubble--4 { width: 90px; height: 90px; background: var(--mint-bounce); left: 50%; animation-duration: 22s; animation-delay: -2s; }
.bg-bubble--5 { width: 150px; height: 150px; background: var(--bubblegum-aqua); left: 65%; animation-duration: 19s; animation-delay: -6s; }
.bg-bubble--6 { width: 100px; height: 100px; background: var(--blueberry-burst); left: 78%; animation-duration: 23s; animation-delay: -10s; }
.bg-bubble--7 { width: 160px; height: 160px; background: var(--grape-soda); left: 88%; animation-duration: 21s; animation-delay: -3s; }
.bg-bubble--8 { width: 130px; height: 130px; background: var(--cotton-candy); left: 45%; animation-duration: 17s; animation-delay: -7s; }

/* ---------- Card River (Main Grid) ---------- */
.card-river {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 24px 80px;
}

/* ---------- Card Base Styles ---------- */
.card {
    position: relative;
    border-radius: 24px;
    border: 4px solid var(--card-color, var(--blueberry-burst));
    background: var(--cloud-puff);
    overflow: hidden;
    transform: rotate(var(--card-rotation, 0deg));
    box-shadow: 0 8px 24px color-mix(in srgb, var(--card-color, var(--blueberry-burst)) 25%, transparent);
    transition: transform 0.25s ease-out, box-shadow 0.25s ease-out;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: rotate(var(--card-rotation, 0deg)) translateY(-6px);
    box-shadow: 0 12px 32px color-mix(in srgb, var(--card-color, var(--blueberry-burst)) 35%, transparent);
}

/* Card Variants */
.card--standard {
    grid-column: span 1;
}

.card--wide {
    grid-column: span 2;
}

.card--tall {
    grid-column: span 1;
    grid-row: span 2;
}

.card--mega {
    grid-column: span 3;
}

/* Card Header */
.card-header {
    padding: 16px 20px;
    background: var(--card-color, var(--blueberry-burst));
}

.card-title {
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    letter-spacing: 0.02em;
    color: var(--cloud-puff);
    line-height: 1.3;
}

/* Card Content */
.card-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.card-illustration {
    display: flex;
    justify-content: center;
    align-items: center;
}

.illustration {
    width: 100%;
    max-height: 180px;
}

.card--wide .illustration {
    max-height: 160px;
}

.card--mega .illustration {
    max-height: 200px;
}

.card-text {
    font-family: 'Nunito', sans-serif;
    font-weight: 400;
    font-size: clamp(0.9rem, 1.1vw, 1rem);
    line-height: 1.7;
    color: var(--charcoal-soft);
}

/* Card Footer */
.card-footer {
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-top: 1px solid color-mix(in srgb, var(--card-color, var(--blueberry-burst)) 15%, transparent);
}

.card-emoji {
    font-size: 18px;
}

.card-tag {
    font-family: 'Baloo 2', cursive;
    font-weight: 600;
    font-size: clamp(0.7rem, 0.9vw, 0.85rem);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--card-color, var(--blueberry-burst));
    background: color-mix(in srgb, var(--card-color, var(--blueberry-burst)) 10%, transparent);
    padding: 2px 10px;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.2s var(--bounce-ease);
}

.card-tag:active {
    animation: jellySquish 0.2s var(--bounce-ease);
}

@keyframes jellySquish {
    0% { transform: scaleX(1) scaleY(1); }
    40% { transform: scaleX(1.1) scaleY(0.9); }
    100% { transform: scaleX(1) scaleY(1); }
}

/* ---------- Divider Moments ---------- */
.divider-moment {
    grid-column: span 3;
    padding: 40px 0;
    text-align: center;
}

.divider-illustration {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    display: block;
}

.divider-caption {
    font-family: 'Quicksand', sans-serif;
    font-weight: 600;
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    color: var(--lavender-smoke);
    margin-top: 12px;
}

/* ---------- Animate on Scroll ---------- */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(60px) scale(0.9) rotate(var(--card-rotation, 0deg));
    transition: none;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0) scale(1) rotate(var(--card-rotation, 0deg));
    animation: bounceEnter 0.6s var(--bounce-ease) forwards;
}

.divider-moment.animate-on-scroll {
    transform: rotate(-5deg) scale(0.8);
}

.divider-moment.animate-on-scroll.animated {
    transform: rotate(0deg) scale(1);
    animation: dividerEnter 0.7s var(--bounce-ease) forwards;
}

@keyframes bounceEnter {
    0% {
        opacity: 0;
        transform: translateY(60px) scale(0.9) rotate(var(--card-rotation, 0deg));
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1) rotate(var(--card-rotation, 0deg));
    }
}

@keyframes dividerEnter {
    0% {
        opacity: 0;
        transform: rotate(-5deg) scale(0.8);
    }
    100% {
        opacity: 1;
        transform: rotate(0deg) scale(1);
    }
}

/* ---------- Wavy Footer ---------- */
.site-footer {
    position: relative;
    z-index: 1;
    margin-top: 40px;
}

.footer-wave {
    position: relative;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.footer-wave svg {
    display: block;
    width: 100%;
    height: 80px;
}

.footer-content {
    background: var(--grape-soda);
    padding: 40px 24px 60px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.footer-mascot {
    width: 100px;
    animation: mascotWave 2s ease-in-out infinite;
}

@keyframes mascotWave {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(5deg); }
    75% { transform: rotate(-5deg); }
}

.mascot-svg {
    width: 100%;
    height: auto;
}

.footer-text {
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    color: var(--cloud-puff);
    letter-spacing: 0.02em;
}

.footer-subtext {
    font-family: 'Nunito', sans-serif;
    font-weight: 400;
    font-size: clamp(0.95rem, 1.2vw, 1.1rem);
    color: rgba(255, 255, 255, 0.75);
}

.footer-bye {
    font-family: 'Baloo 2', cursive;
    font-weight: 600;
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    color: var(--lemon-zap);
    margin-top: 8px;
}

/* ---------- Sticky Bubble Navigation ---------- */
.bubble-nav {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-end;
}

.bubble-nav-item {
    position: relative;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 3px solid var(--bubble-color, var(--blueberry-burst));
    background: var(--cloud-puff);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 4px 16px color-mix(in srgb, var(--bubble-color, var(--blueberry-burst)) 25%, transparent),
        inset 0 -4px 8px rgba(255, 255, 255, 0.4);
    transition: width 0.3s var(--bounce-ease), height 0.3s var(--bounce-ease), border-radius 0.3s var(--bounce-ease);
    overflow: hidden;
}

.bubble-nav-item:hover {
    width: 64px;
    height: 64px;
    box-shadow:
        0 6px 24px color-mix(in srgb, var(--bubble-color, var(--blueberry-burst)) 35%, transparent),
        inset 0 -4px 8px rgba(255, 255, 255, 0.4);
}

.bubble-nav-emoji {
    font-size: 20px;
    transition: font-size 0.3s var(--bounce-ease);
    pointer-events: none;
}

.bubble-nav-item:hover .bubble-nav-emoji {
    font-size: 26px;
}

.bubble-nav-label {
    position: absolute;
    right: calc(100% + 12px);
    top: 50%;
    transform: translateY(-50%);
    font-family: 'Baloo 2', cursive;
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--charcoal-soft);
    background: var(--cloud-puff);
    padding: 4px 12px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(45, 45, 58, 0.12);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease-out, transform 0.3s var(--bounce-ease);
    transform: translateY(-50%) translateX(10px);
}

.bubble-nav-item:hover .bubble-nav-label {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

/* ---------- Cursor Bubble Trail ---------- */
#bubble-trail {
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    overflow: hidden;
}

.trail-bubble {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0.5;
    animation: trailFloat 0.8s ease-out forwards;
}

@keyframes trailFloat {
    0% {
        opacity: 0.5;
        transform: scale(1) translateY(0);
    }
    100% {
        opacity: 0;
        transform: scale(0) translateY(-40px);
    }
}

/* ---------- Burst Bubbles on Card Entry ---------- */
.burst-bubble {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 2;
    animation: burstOut 0.6s var(--bounce-ease) forwards;
}

@keyframes burstOut {
    0% {
        opacity: 0.7;
        transform: scale(0) translate(0, 0);
    }
    50% {
        opacity: 0.5;
        transform: scale(1) translate(var(--burst-x, 20px), var(--burst-y, -20px));
    }
    100% {
        opacity: 0;
        transform: scale(0) translate(var(--burst-x, 20px), var(--burst-y, -20px));
    }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .card-river {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
        padding: 40px 18px 60px;
    }

    .card--wide {
        grid-column: span 2;
    }

    .card--mega {
        grid-column: span 2;
    }

    .card--tall {
        grid-row: span 2;
    }

    .divider-moment {
        grid-column: span 2;
    }

    .hero-title-bubble {
        width: clamp(220px, 55vw, 340px);
        height: clamp(220px, 55vw, 340px);
    }

    .emoji-bubble--5,
    .emoji-bubble--6 {
        display: none;
    }
}

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

    .card--wide,
    .card--mega,
    .card--tall {
        grid-column: span 1;
        grid-row: span 1;
    }

    .divider-moment {
        grid-column: span 1;
    }

    .hero-title-bubble {
        width: clamp(200px, 70vw, 300px);
        height: clamp(200px, 70vw, 300px);
    }

    .emoji-bubble--3,
    .emoji-bubble--4 {
        display: none;
    }

    .bubble-nav {
        bottom: 16px;
        right: 16px;
        gap: 10px;
    }

    .bubble-nav-item {
        width: 42px;
        height: 42px;
    }

    .bubble-nav-item:hover {
        width: 56px;
        height: 56px;
    }
}
