/* =============================================
   gabs.feedback - Translucent Frost Design System
   ============================================= */

/* CSS Custom Properties */
:root {
    /* Base Colors (Translucent Frost Palette) */
    --frost-white: #F0F4F8;
    --bubble-blue: #A8D8EA;
    --petal-pink: #F4C2C2;
    --fizz-lilac: #D5B8FF;
    --mint-dew: #B8F0D8;
    --deep-glass: #2C3E6B;
    --shimmer-white: #FFFFFF;

    /* Translucent variants */
    --bubble-blue-40: rgba(168, 216, 234, 0.40);
    --bubble-blue-55: rgba(168, 216, 234, 0.55);
    --bubble-blue-70: rgba(168, 216, 234, 0.70);
    --petal-pink-35: rgba(244, 194, 194, 0.35);
    --petal-pink-50: rgba(244, 194, 194, 0.50);
    --petal-pink-65: rgba(244, 194, 194, 0.65);
    --fizz-lilac-30: rgba(213, 184, 255, 0.30);
    --fizz-lilac-45: rgba(213, 184, 255, 0.45);
    --fizz-lilac-60: rgba(213, 184, 255, 0.60);
    --mint-dew-35: rgba(184, 240, 216, 0.35);
    --mint-dew-50: rgba(184, 240, 216, 0.50);
    --shimmer-white-15: rgba(255, 255, 255, 0.15);
    --shimmer-white-25: rgba(255, 255, 255, 0.25);
    --shimmer-white-40: rgba(255, 255, 255, 0.40);

    /* Typography */
    --font-display: 'Nunito', sans-serif;
    --font-secondary: 'Quicksand', sans-serif;
    --font-body: 'Varela Round', sans-serif;

    /* Spring transition */
    --spring-bounce: cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --spring-soft: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--frost-white);
    color: var(--deep-glass);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Carbonation background pattern */
#carbonation-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    background-image: radial-gradient(circle, rgba(168, 216, 234, 0.15) 1.5px, transparent 1.5px);
    background-size: 45px 45px;
    background-position: 10px 10px;
}

/* =============================================
   Navigation
   ============================================= */

#nav-pill {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(20px) saturate(1.2);
    -webkit-backdrop-filter: blur(20px) saturate(1.2);
    border-radius: 50px;
    padding: 10px 28px;
    transition: all 0.6s var(--spring-bounce);
    border: 1px solid rgba(168, 216, 234, 0.3);
}

#nav-pill.scrolled {
    padding: 8px 12px;
    border-radius: 50%;
    width: 52px;
    height: 52px;
}

#nav-pill.scrolled .nav-brand,
#nav-pill.scrolled .nav-items {
    opacity: 0;
    pointer-events: none;
    width: 0;
    overflow: hidden;
}

#nav-pill.scrolled .nav-bubble-btn {
    opacity: 1;
    pointer-events: auto;
}

.nav-inner {
    display: flex;
    align-items: center;
    gap: 20px;
    white-space: nowrap;
}

.nav-brand {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 16px;
    color: var(--deep-glass);
    transition: opacity 0.3s ease, width 0.3s ease;
}

.nav-items {
    display: flex;
    gap: 6px;
    transition: opacity 0.3s ease, width 0.3s ease;
}

.nav-capsule {
    font-family: var(--font-secondary);
    font-weight: 500;
    font-size: 14px;
    color: var(--deep-glass);
    text-decoration: none;
    padding: 6px 16px;
    border-radius: 20px;
    background: var(--bubble-blue-40);
    transition: all 0.4s var(--spring-bounce);
}

.nav-capsule:hover {
    background: var(--bubble-blue-70);
    transform: scale(1.05);
}

.nav-bubble-btn {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease;
}

.bubble-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--deep-glass);
    display: block;
}

/* Mobile nav overlay */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(240, 244, 248, 0.92);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s var(--spring-bounce);
}

.mobile-nav-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.mobile-nav-link {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 36px;
    color: var(--deep-glass);
    text-decoration: none;
    padding: 12px 40px;
    border-radius: 50px;
    background: var(--bubble-blue-40);
    transition: all 0.4s var(--spring-bounce);
}

.mobile-nav-link:hover {
    background: var(--bubble-blue-70);
    transform: scale(1.08);
}

/* =============================================
   Sections
   ============================================= */

.section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

/* =============================================
   Hero Section
   ============================================= */

.hero-section {
    overflow: hidden;
}

.hero-bubble {
    width: 80vw;
    max-width: 900px;
    aspect-ratio: 1;
    border-radius: 50%;
    background: var(--bubble-blue-55);
    backdrop-filter: blur(12px) saturate(1.2);
    -webkit-backdrop-filter: blur(12px) saturate(1.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    box-shadow:
        inset -30px -30px 60px rgba(168, 216, 234, 0.2),
        0 20px 60px rgba(168, 216, 234, 0.3);
    z-index: 2;
}

/* Specular highlight on hero bubble */
.hero-bubble::before {
    content: '';
    position: absolute;
    top: 8%;
    left: 15%;
    width: 35%;
    height: 20%;
    border-radius: 50%;
    background: radial-gradient(ellipse, var(--shimmer-white-40), transparent 70%);
    pointer-events: none;
}

/* Subtle radial gradient for light refraction */
.hero-bubble::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.25), transparent 60%),
                radial-gradient(circle at 70% 70%, rgba(213, 184, 255, 0.15), transparent 50%);
    pointer-events: none;
}

.hero-title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(36px, 8vw, 72px);
    color: var(--deep-glass);
    letter-spacing: 0.01em;
    line-height: 1.1;
    position: relative;
    z-index: 1;
}

.hero-tagline {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: clamp(14px, 2vw, 16px);
    color: var(--deep-glass);
    margin-top: 16px;
    max-width: 320px;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

/* Corner ornaments */
.corner-ornament {
    position: absolute;
    z-index: 1;
}

.corner-ornament.top-left {
    top: 8%;
    left: 5%;
}

.corner-ornament.bottom-right {
    bottom: 8%;
    right: 5%;
}

.ornament-circle {
    border-radius: 50%;
    position: absolute;
}

.ornament-circle.small {
    width: 30px;
    height: 30px;
    background: var(--petal-pink-50);
    top: 0;
    left: 0;
}

.ornament-circle.medium {
    width: 50px;
    height: 50px;
    background: var(--fizz-lilac-30);
    top: -10px;
    left: 15px;
}

.ornament-circle.large {
    width: 70px;
    height: 70px;
    background: var(--bubble-blue-40);
    top: -20px;
    left: 30px;
}

/* Hero champagne bubbles */
.hero-champagne {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* =============================================
   Float Lanes (Transition Zones)
   ============================================= */

.float-lane {
    position: relative;
    height: 40vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.float-lane-illustration {
    width: 200px;
    height: 120px;
    opacity: 0.7;
    position: relative;
    z-index: 2;
}

/* =============================================
   Cluster Sections
   ============================================= */

.cluster-section {
    min-height: 100vh;
    padding: 80px 20px;
}

.cluster-container {
    position: relative;
    width: 100%;
    max-width: 1100px;
    min-height: 80vh;
    margin: 0 auto;
}

/* =============================================
   Bubble Content Items
   ============================================= */

.bubble-content {
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 30px;
    position: absolute;
    backdrop-filter: blur(12px) saturate(1.2);
    -webkit-backdrop-filter: blur(12px) saturate(1.2);
    transition: transform 0.6s var(--spring-bounce),
                backdrop-filter 0.4s ease;
    cursor: default;
    overflow: hidden;
    /* Spring entrance initial state */
    opacity: 0;
    transform: scale(0.3);
}

.bubble-content.visible {
    opacity: 1;
    transform: scale(1);
}

.bubble-content:hover {
    transform: scale(1.05);
}

.bubble-content.visible:hover {
    transform: scale(1.05);
}

/* Specular highlight on all bubbles */
.bubble-content::before {
    content: '';
    position: absolute;
    top: 8%;
    left: 12%;
    width: 40%;
    height: 22%;
    border-radius: 50%;
    background: radial-gradient(ellipse, var(--shimmer-white-25), transparent 70%);
    pointer-events: none;
}

/* Bubble sizes */
.bubble-large {
    width: clamp(280px, 45vw, 420px);
    height: clamp(280px, 45vw, 420px);
    top: 5%;
    left: 5%;
    z-index: 4;
}

.bubble-medium {
    width: clamp(200px, 30vw, 320px);
    height: clamp(200px, 30vw, 320px);
    top: 10%;
    right: 5%;
    left: auto;
    z-index: 3;
}

.bubble-small {
    width: clamp(120px, 18vw, 200px);
    height: clamp(120px, 18vw, 200px);
    z-index: 2;
}

.cluster-container .bubble-small:nth-of-type(3) {
    bottom: 15%;
    left: 55%;
    top: auto;
}

.cluster-container .bubble-small:nth-of-type(4) {
    bottom: 5%;
    right: 20%;
    left: auto;
    top: auto;
}

.cluster-container .bubble-small:nth-of-type(5) {
    bottom: 25%;
    left: 10%;
    top: auto;
}

.bubble-tiny {
    width: clamp(70px, 10vw, 110px);
    height: clamp(70px, 10vw, 110px);
    z-index: 1;
}

.cluster-container .bubble-tiny:nth-of-type(4) {
    bottom: 30%;
    right: 8%;
    left: auto;
    top: auto;
}

.cluster-container .bubble-tiny:nth-of-type(5) {
    top: 60%;
    left: 45%;
}

.cluster-container .bubble-tiny:nth-of-type(6) {
    bottom: 10%;
    left: 35%;
    top: auto;
}

/* Bubble color variants */
.bubble-blue {
    background: var(--bubble-blue-55);
    box-shadow: 0 10px 40px rgba(168, 216, 234, 0.3),
                inset -15px -15px 30px rgba(168, 216, 234, 0.15);
}

.bubble-pink {
    background: var(--petal-pink-50);
    box-shadow: 0 10px 40px rgba(244, 194, 194, 0.3),
                inset -15px -15px 30px rgba(244, 194, 194, 0.15);
}

.bubble-lilac {
    background: var(--fizz-lilac-45);
    box-shadow: 0 10px 40px rgba(213, 184, 255, 0.3),
                inset -15px -15px 30px rgba(213, 184, 255, 0.15);
}

.bubble-mint {
    background: var(--mint-dew-50);
    box-shadow: 0 10px 40px rgba(184, 240, 216, 0.3),
                inset -15px -15px 30px rgba(184, 240, 216, 0.15);
}

/* =============================================
   Typography in Bubbles
   ============================================= */

.section-title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(36px, 6vw, 64px);
    color: var(--deep-glass);
    letter-spacing: 0.01em;
    line-height: 1.1;
    margin-bottom: 12px;
}

.section-subtitle {
    font-family: var(--font-secondary);
    font-weight: 500;
    font-size: clamp(14px, 2.2vw, 22px);
    color: var(--deep-glass);
    line-height: 1.4;
    max-width: 80%;
}

.bubble-text {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: clamp(13px, 1.8vw, 18px);
    color: var(--deep-glass);
    line-height: 1.6;
    max-width: 85%;
}

.bubble-illustration {
    width: 80px;
    height: 80px;
    margin-bottom: 10px;
}

/* =============================================
   Champagne Bubbles (Rising Micro-Bubbles)
   ============================================= */

.champagne-bubble {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, var(--shimmer-white-40), var(--bubble-blue-40));
    pointer-events: none;
    animation: riseBubble var(--rise-duration, 6s) var(--rise-delay, 0s) infinite;
    opacity: 0;
}

@keyframes riseBubble {
    0% {
        opacity: 0;
        transform: translateY(0) translateX(0) scale(0.5);
    }
    10% {
        opacity: 0.7;
        transform: translateY(-5vh) translateX(var(--wobble-x, 5px)) scale(0.8);
    }
    50% {
        opacity: 0.5;
        transform: translateY(-35vh) translateX(calc(var(--wobble-x, 5px) * -1)) scale(1);
    }
    90% {
        opacity: 0.2;
        transform: translateY(-70vh) translateX(var(--wobble-x, 5px)) scale(0.9);
    }
    100% {
        opacity: 0;
        transform: translateY(-85vh) translateX(0) scale(0.6);
    }
}

/* Soap-film rainbow border bubbles */
.soap-bubble {
    position: absolute;
    border-radius: 50%;
    border: 2px solid;
    border-image: conic-gradient(
        var(--bubble-blue),
        var(--fizz-lilac),
        var(--petal-pink),
        var(--mint-dew),
        var(--bubble-blue)
    ) 1;
    background: transparent;
    pointer-events: none;
}

/* Click burst bubbles */
.burst-bubble {
    position: fixed;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, var(--shimmer-white-40), var(--bubble-blue-40));
    pointer-events: none;
    z-index: 9999;
}

/* =============================================
   Footer Foam
   ============================================= */

.footer-foam {
    position: relative;
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    z-index: 1;
    padding: 40px 20px;
}

.footer-content {
    position: relative;
    z-index: 2;
}

.footer-bubble {
    width: clamp(200px, 40vw, 350px);
    height: clamp(200px, 40vw, 350px);
    border-radius: 50%;
    background: var(--bubble-blue-55);
    backdrop-filter: blur(12px) saturate(1.2);
    -webkit-backdrop-filter: blur(12px) saturate(1.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 30px;
    opacity: 0;
    transform: scale(0.3);
    transition: transform 0.6s var(--spring-bounce);
    box-shadow: 0 10px 40px rgba(168, 216, 234, 0.3),
                inset -15px -15px 30px rgba(168, 216, 234, 0.15);
}

.footer-bubble::before {
    content: '';
    position: absolute;
    top: 8%;
    left: 12%;
    width: 40%;
    height: 22%;
    border-radius: 50%;
    background: radial-gradient(ellipse, var(--shimmer-white-25), transparent 70%);
    pointer-events: none;
}

.footer-bubble.visible {
    opacity: 1;
    transform: scale(1);
}

.footer-bubble:hover {
    transform: scale(1.05);
}

.footer-bubble.visible:hover {
    transform: scale(1.05);
}

.footer-text {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(22px, 3.5vw, 36px);
    color: var(--deep-glass);
    letter-spacing: 0.01em;
    line-height: 1.1;
}

.footer-subtext {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: clamp(12px, 1.5vw, 16px);
    color: var(--deep-glass);
    margin-top: 10px;
    line-height: 1.6;
}

.footer-vanishing-bubbles {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* =============================================
   SVG Wave Divider Animation
   ============================================= */

.svg-defs {
    position: absolute;
    width: 0;
    height: 0;
}

/* =============================================
   Responsive: Mobile
   ============================================= */

@media (max-width: 768px) {
    #nav-pill {
        padding: 8px 16px;
    }

    .nav-items {
        display: none;
    }

    .nav-bubble-btn {
        opacity: 1;
        pointer-events: auto;
        position: relative;
        top: auto;
        left: auto;
        transform: none;
    }

    .hero-bubble {
        width: 90vw;
        max-width: 90vw;
    }

    .cluster-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 24px;
        min-height: auto;
        padding: 40px 0;
    }

    .bubble-content {
        position: relative;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
    }

    .bubble-large {
        width: clamp(260px, 80vw, 350px);
        height: clamp(260px, 80vw, 350px);
    }

    .bubble-medium {
        width: clamp(200px, 65vw, 300px);
        height: clamp(200px, 65vw, 300px);
    }

    .bubble-small {
        width: clamp(140px, 45vw, 200px);
        height: clamp(140px, 45vw, 200px);
    }

    .bubble-tiny {
        width: clamp(80px, 25vw, 120px);
        height: clamp(80px, 25vw, 120px);
    }

    .float-lane {
        height: 25vh;
    }

    .section-title {
        font-size: clamp(28px, 8vw, 48px);
    }
}

@media (max-width: 480px) {
    .hero-bubble {
        width: 95vw;
        aspect-ratio: 1;
    }

    .hero-title {
        font-size: clamp(28px, 10vw, 48px);
    }

    .corner-ornament {
        display: none;
    }
}
