/* ============================================
   gabs.cafe - Dopamine-Maximalist Cafe Design
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
    --strawberry: #FF6B8A;
    --tangerine: #FF9F43;
    --lemon: #FFD93D;
    --pistachio: #6BCB77;
    --ocean: #4D96FF;
    --grape: #9B59B6;
    --cloud-white: #FEFCF3;
    --espresso: #3D3D3D;
    --blush-cream: #FFF0E6;
    --lavender-mist: #F0E6FF;
    --mint-whisper: #E6FFF0;

    --radius-card: 24px;
    --radius-inner: 16px;
    --radius-button: 12px;
    --card-gap: 20px;
    --card-shadow: 0 8px 32px rgba(0,0,0,0.06), 0 2px 8px rgba(0,0,0,0.04);
    --card-shadow-hover: 0 16px 48px rgba(0,0,0,0.10), 0 4px 12px rgba(0,0,0,0.06);
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Quicksand', sans-serif;
    font-weight: 500;
    font-size: clamp(0.95rem, 1.2vw, 1.15rem);
    line-height: 1.7;
    color: var(--espresso);
    background-color: var(--cloud-white);
    overflow-x: hidden;
    position: relative;
}

/* --- Keyframe Animations --- */
@keyframes bounceEnter {
    0% { opacity: 0; transform: translateY(40px) scale(0.92); }
    50% { opacity: 1; transform: translateY(-8px) scale(1.03); }
    70% { transform: translateY(3px) scale(0.99); }
    100% { transform: translateY(0) scale(1); }
}

@keyframes floatBubble {
    0% { transform: translateY(0) translateX(0); }
    33% { transform: translateY(-30vh) translateX(15px); }
    66% { transform: translateY(-60vh) translateX(-10px); }
    100% { transform: translateY(-100vh) translateX(5px); }
}

@keyframes heroBubbleDrift {
    0% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(10px, -15px) scale(1.03); }
    50% { transform: translate(-8px, -25px) scale(0.97); }
    75% { transform: translate(12px, -10px) scale(1.02); }
    100% { transform: translate(0, 0) scale(1); }
}

@keyframes scrollArrow {
    0%, 100% { transform: translateY(0); opacity: 0.5; }
    50% { transform: translateY(8px); opacity: 1; }
}

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

@keyframes bubbleNavPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* --- Floating Background Bubbles Layer --- */
#bubble-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.float-bubble {
    position: absolute;
    border-radius: 50%;
    background: var(--bubble-bg);
    width: var(--size);
    height: var(--size);
    opacity: var(--opacity, 0.06);
    bottom: -150px;
    left: var(--left);
    animation: floatBubble var(--dur) var(--delay) linear infinite;
    will-change: transform;
}

/* --- Hero Section --- */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--cloud-white);
    overflow: hidden;
    z-index: 1;
}

.hero-bubbles-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.hero-bg-bubble {
    position: absolute;
    width: var(--size);
    height: var(--size);
    border-radius: 50%;
    background: var(--color);
    opacity: 0.08;
    left: var(--left);
    top: var(--top);
    animation: heroBubbleDrift var(--dur) var(--delay) ease-in-out infinite;
    will-change: transform;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.hero-logo-bubble {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: clamp(260px, 50vw, 400px);
    opacity: 0;
}

.hero-logo-bubble.animate {
    animation: bounceEnter 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.speech-bubble-shape {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 6px 20px rgba(255, 107, 138, 0.2));
}

.hero-logo-text {
    position: absolute;
    font-family: 'Baloo 2', cursive;
    font-weight: 800;
    font-size: clamp(2.5rem, 7vw, 5rem);
    color: var(--cloud-white);
    letter-spacing: -0.02em;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -58%);
    text-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.hero-tagline {
    font-family: 'Quicksand', sans-serif;
    font-weight: 600;
    font-size: clamp(1.1rem, 2.5vw, 1.6rem);
    color: var(--espresso);
    opacity: 0;
    transition: opacity 0.6s ease;
    letter-spacing: 0.01em;
}

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

.scroll-hint {
    position: absolute;
    bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 1;
}

.scroll-arrow {
    width: 24px;
    height: 24px;
    border-right: 3px solid var(--espresso);
    border-bottom: 3px solid var(--espresso);
    transform: rotate(45deg);
    opacity: 0.4;
    border-radius: 2px;
    animation: scrollArrow 2s ease-in-out infinite;
}

/* --- Bubble Navigation --- */
.bubble-nav {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 1000;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.bubble-nav.hidden {
    opacity: 0;
    transform: scale(0.5);
    pointer-events: none;
}

.bubble-nav-trigger {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--strawberry);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(255, 107, 138, 0.35);
    transition: transform 0.3s cubic-bezier(0.34, 1.2, 0.64, 1), box-shadow 0.3s ease;
    animation: bubbleNavPulse 3s ease-in-out infinite;
    position: relative;
    z-index: 2;
}

.bubble-nav-trigger:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 24px rgba(255, 107, 138, 0.45);
}

.bubble-nav-logo {
    font-family: 'Baloo 2', cursive;
    font-weight: 800;
    font-size: 1.4rem;
    color: white;
    line-height: 1;
}

.bubble-nav-menu {
    position: absolute;
    bottom: 56px;
    left: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.bubble-nav.open .bubble-nav-menu {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.bubble-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bubble-color);
    color: white;
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
    font-size: 0.65rem;
    text-decoration: none;
    box-shadow: 0 3px 12px rgba(0,0,0,0.15);
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.bubble-link:hover {
    transform: scale(1.15);
}

/* --- Content Sections --- */
.content-section {
    position: relative;
    padding: 80px 24px 60px;
    z-index: 1;
    min-height: 100vh;
}

.strawberry-zone {
    background: linear-gradient(to bottom, var(--cloud-white), var(--blush-cream) 40%, var(--blush-cream));
}

.lemon-zone {
    background: linear-gradient(to bottom, var(--blush-cream), var(--lavender-mist) 40%, var(--lavender-mist));
}

.pistachio-zone {
    background: linear-gradient(to bottom, var(--lavender-mist), var(--mint-whisper) 40%, var(--mint-whisper));
}

.ocean-zone {
    background: linear-gradient(to bottom, var(--mint-whisper), var(--lavender-mist) 40%, var(--lavender-mist));
}

.closing-zone {
    background: linear-gradient(
        to bottom,
        var(--lavender-mist),
        rgba(255, 107, 138, 0.04) 20%,
        rgba(255, 159, 67, 0.04) 35%,
        rgba(255, 217, 61, 0.04) 50%,
        rgba(107, 203, 119, 0.04) 65%,
        rgba(77, 150, 255, 0.04) 80%,
        rgba(155, 89, 182, 0.04) 95%,
        var(--cloud-white)
    );
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.section-wave-top {
    position: absolute;
    top: -1px;
    left: 0;
    width: 100%;
    line-height: 0;
    pointer-events: none;
}

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

/* --- Section Titles --- */
.section-title {
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: clamp(2rem, 5vw + 0.5rem, 4rem);
    letter-spacing: -0.02em;
    text-align: center;
    margin-bottom: 48px;
    opacity: 0;
}

.section-title.animated {
    animation: bounceEnter 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* --- Card Grid --- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--card-gap);
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

@media (min-width: 768px) {
    :root {
        --card-gap: 28px;
    }
}

/* --- Speech Bubble Cards --- */
.speech-card {
    position: relative;
    background: var(--cloud-white);
    border-radius: var(--radius-card);
    box-shadow: var(--card-shadow);
    overflow: visible;
    cursor: pointer;
    transition:
        transform 0.3s cubic-bezier(0.34, 1.2, 0.64, 1),
        box-shadow 0.3s ease;
    border-bottom: 3px solid var(--accent);
    opacity: 0;
    padding-bottom: 12px;
}

.speech-card.animated {
    animation: bounceEnter 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.speech-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--card-shadow-hover);
    border-color: var(--accent);
    border-width: 3px;
    border-style: solid;
    border-radius: var(--radius-card);
}

.speech-card:active {
    transform: translateY(-6px) scale(0.97);
    transition: transform 0.1s ease;
}

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

@media (min-width: 640px) {
    .card-span-2 {
        grid-column: span 2;
    }
}

.card-inner {
    padding: 28px 24px 20px;
}

.card-title {
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: clamp(1.1rem, 1.5vw, 1.35rem);
    letter-spacing: -0.01em;
    margin-bottom: 10px;
    color: var(--espresso);
}

.card-body {
    font-family: 'Quicksand', sans-serif;
    font-weight: 500;
    font-size: clamp(0.9rem, 1.1vw, 1.05rem);
    line-height: 1.7;
    color: var(--espresso);
    margin-bottom: 14px;
}

.card-quote {
    font-family: 'Baloo 2', cursive;
    font-weight: 700;
    font-size: clamp(1.4rem, 3vw, 2.2rem);
    line-height: 1.4;
    color: var(--espresso);
    margin-bottom: 14px;
    letter-spacing: -0.01em;
}

.card-tag {
    display: inline-block;
    font-family: 'Quicksand', sans-serif;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: white;
    padding: 4px 12px;
    border-radius: var(--radius-button);
}

/* --- Speech Bubble Tail --- */
.card-tail {
    position: absolute;
    bottom: -10px;
    left: 28px;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 12px solid var(--tail-color);
    filter: drop-shadow(0 3px 4px rgba(0,0,0,0.04));
}

/* --- Quote Cards --- */
.quote-card .card-inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 36px 32px 24px;
}

/* --- Boba Pearl Dividers --- */
.boba-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 48px 0 0;
}

.boba-pearl {
    display: inline-block;
    width: var(--size);
    height: var(--size);
    border-radius: 50%;
    background: var(--pearl-color);
    opacity: 0.4;
}

/* --- Closing Section --- */
.closing-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    position: relative;
    z-index: 2;
}

.closing-bubble {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: clamp(280px, 50vw, 420px);
    opacity: 0;
}

.closing-bubble.animated {
    animation: bounceEnter 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.closing-bubble-shape {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 6px 20px rgba(155, 89, 182, 0.15));
}

.closing-text {
    position: absolute;
    font-family: 'Baloo 2', cursive;
    font-weight: 800;
    font-size: clamp(1.8rem, 4vw, 3rem);
    color: var(--grape);
    top: 42%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.closing-subtext {
    font-family: 'Quicksand', sans-serif;
    font-weight: 500;
    font-size: clamp(0.95rem, 1.5vw, 1.2rem);
    color: var(--espresso);
    opacity: 0.7;
    max-width: 480px;
    text-align: center;
    line-height: 1.7;
}

.closing-bubbles-scatter {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.scatter-bubble {
    position: absolute;
    width: var(--size);
    height: var(--size);
    border-radius: 50%;
    background: var(--color);
    opacity: 0.1;
    left: var(--left);
    bottom: var(--bottom);
    animation: heroBubbleDrift 30s ease-in-out infinite;
}

/* --- Fizz Particles (generated by JS) --- */
.fizz-particle {
    position: absolute;
    width: var(--fsize, 4px);
    height: var(--fsize, 4px);
    border-radius: 50%;
    background: var(--fcolor, var(--strawberry));
    pointer-events: none;
    animation: fizzUp 0.6s ease-out forwards;
    z-index: 10;
}

/* --- Dotted Confetti Background --- */
.strawberry-zone::before,
.lemon-zone::before,
.pistachio-zone::before,
.ocean-zone::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.04;
    background-image:
        radial-gradient(circle 2px, var(--strawberry) 100%, transparent 100%),
        radial-gradient(circle 2px, var(--ocean) 100%, transparent 100%),
        radial-gradient(circle 2px, var(--lemon) 100%, transparent 100%),
        radial-gradient(circle 2px, var(--pistachio) 100%, transparent 100%),
        radial-gradient(circle 2px, var(--grape) 100%, transparent 100%),
        radial-gradient(circle 2px, var(--tangerine) 100%, transparent 100%);
    background-size:
        180px 160px,
        220px 200px,
        260px 180px,
        200px 240px,
        240px 220px,
        170px 190px;
    background-position:
        20px 30px,
        80px 90px,
        140px 50px,
        60px 170px,
        110px 120px,
        30px 200px;
    z-index: 0;
}

/* --- Responsive Adjustments --- */
@media (max-width: 480px) {
    .content-section {
        padding: 60px 16px 40px;
    }

    .card-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 0 8px;
    }

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

    .section-title {
        margin-bottom: 32px;
    }

    .bubble-nav {
        bottom: 16px;
        left: 16px;
    }

    .hero-logo-bubble {
        width: 240px;
    }
}

@media (min-width: 1400px) {
    .card-grid {
        max-width: 1400px;
    }
}

/* --- Selection Color --- */
::selection {
    background: rgba(255, 107, 138, 0.25);
    color: var(--espresso);
}

/* --- Scrollbar Styling --- */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--cloud-white);
}

::-webkit-scrollbar-thumb {
    background: rgba(155, 89, 182, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(155, 89, 182, 0.5);
}
