/* =====================================================
   BACKGROUND — Page gradient + animated bubbles
   Included by every page.
===================================================== */

.page-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background:
        radial-gradient(ellipse 100% 70% at 15% 25%, rgba(245, 166, 35, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse 80% 50% at 85% 75%, rgba(255, 149, 0, 0.10) 0%, transparent 50%),
        linear-gradient(180deg, #faf8f5 0%, #f0ebe3 100%);
}

/* ── Shared bubble shell ── */
.bubble {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
}

.bubble::before {
    content: '';
    position: absolute;
    top: 8%;
    left: 15%;
    width: 70%;
    height: 35%;
    background: linear-gradient(135deg,
            rgba(255, 59, 48, 0.25) 0%, rgba(255, 149, 0, 0.30) 16%,
            rgba(255, 204, 0, 0.30) 33%, rgba(52, 199, 89, 0.25) 50%,
            rgba(0, 122, 255, 0.25) 66%, rgba(175, 82, 222, 0.25) 83%,
            rgba(255, 45, 85, 0.20) 100%);
    border-radius: 50%;
    filter: blur(8px);
    opacity: 0.6;
    transform: rotate(-15deg);
}

.bubble::after {
    content: '';
    position: absolute;
    top: 10%;
    left: 20%;
    width: 25%;
    height: 15%;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    filter: blur(2px);
}

.bubble-1 {
    width: 280px;
    height: 280px;
    top: 5%;
    right: -70px;
    background: radial-gradient(circle at 30% 30%,
            rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0.2) 40%, rgba(245, 166, 35, 0.08) 100%);
    box-shadow: inset 0 0 60px rgba(255, 255, 255, 0.4), 0 10px 40px rgba(0, 0, 0, 0.05);
    animation: float1 18s ease-in-out infinite;
}

.bubble-2 {
    width: 180px;
    height: 180px;
    top: 35%;
    left: -50px;
    background: radial-gradient(circle at 30% 30%,
            rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0.15) 40%, rgba(255, 149, 0, 0.08) 100%);
    box-shadow: inset 0 0 40px rgba(255, 255, 255, 0.3), 0 8px 30px rgba(0, 0, 0, 0.04);
    animation: float2 22s ease-in-out infinite;
}

.bubble-3 {
    width: 140px;
    height: 140px;
    bottom: 25%;
    right: 8%;
    background: radial-gradient(circle at 30% 30%,
            rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0.2) 40%, rgba(245, 166, 35, 0.06) 100%);
    animation: float3 15s ease-in-out infinite;
}

.bubble-4 {
    width: 100px;
    height: 100px;
    top: 55%;
    left: 12%;
    background: radial-gradient(circle at 30% 30%,
            rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0.15) 40%, rgba(255, 149, 0, 0.06) 100%);
    animation: float4 20s ease-in-out infinite;
}

@keyframes float1 {

    0%,
    100% {
        transform: translate(0px, 0px) rotate(0deg);
    }

    25% {
        transform: translate(-20px, 30px) rotate(5deg);
    }

    50% {
        transform: translate(15px, -20px) rotate(-3deg);
    }

    75% {
        transform: translate(-10px, -15px) rotate(2deg);
    }
}

@keyframes float2 {

    0%,
    100% {
        transform: translate(0px, 0px);
    }

    33% {
        transform: translate(25px, -25px);
    }

    66% {
        transform: translate(-15px, 20px);
    }
}

@keyframes float3 {

    0%,
    100% {
        transform: translate(0px, 0px);
    }

    50% {
        transform: translate(-30px, -20px);
    }
}

@keyframes float4 {

    0%,
    100% {
        transform: translate(0px, 0px);
    }

    25% {
        transform: translate(15px, 20px);
    }

    75% {
        transform: translate(-20px, -10px);
    }
}

@media (max-width: 768px) {

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