/* ═══════════════════════════════════════════════════════════════
   Glass Effect — Liquid Glassmorphism
   Scene blobs + frosted glass surface
   ═══════════════════════════════════════════════════════════════ */

/* ── Background scene blobs ─────────────────────────────────── */
.scene {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}
.scene__blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.6;
    animation: blob-float 12s ease-in-out infinite alternate;
}
.scene__blob--1 {
    width: 500px;
    height: 500px;
    background: #a835a2;
    top: -20%;
    left: -10%;
    animation-delay: 0s;
}
.scene__blob--2 {
    width: 400px;
    height: 400px;
    background: #5b2d8e;
    bottom: -15%;
    right: -5%;
    animation-delay: -4s;
}
.scene__blob--3 {
    width: 350px;
    height: 350px;
    background: #d44a8e;
    top: 50%;
    left: 40%;
    transform: translate(-50%, -50%);
    animation-delay: -8s;
}

@keyframes blob-float {
    0%   { transform: translate(0, 0) scale(1); }
    33%  { transform: translate(30px, -20px) scale(1.05); }
    66%  { transform: translate(-20px, 15px) scale(0.95); }
    100% { transform: translate(10px, -10px) scale(1.02); }
}

/* ── Glass surface ──────────────────────────────────────────── */
.glass {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.1) 0%,
        rgba(255, 255, 255, 0.04) 50%,
        rgba(255, 255, 255, 0.07) 100%
    );
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        inset 0 -1px 0 rgba(255, 255, 255, 0.04);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.3s ease,
                border-color 0.3s ease;
}

.glass:hover {
    transform: translateY(-2px);
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.18),
        inset 0 -1px 0 rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.25);
}

/* Dark variant */
.glass--dark {
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.35) 0%,
        rgba(0, 0, 0, 0.2) 50%,
        rgba(0, 0, 0, 0.28) 100%
    );
    border-color: rgba(255, 255, 255, 0.08);
}

/* Fallback for browsers without backdrop-filter */
@supports not (backdrop-filter: blur(20px)) {
    .glass {
        background: rgba(255, 255, 255, 0.12);
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .scene__blob {
        animation: none;
    }
    .glass {
        transition: none;
    }
}
