/* Magic Bento CSS */
.bento-section {
    position: relative;
    user-select: none;
}

.magic-bento-card {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    --glow-x: 50%;
    --glow-y: 50%;
    --glow-intensity: 0;
    --glow-radius: 200px;
    --glow-color: 132, 0, 255;
}

.magic-bento-card--border-glow::after {
    content: '';
    position: absolute;
    inset: 0;
    padding: 2px; /* For the border glow thickness */
    background: radial-gradient(
        var(--glow-radius) circle at var(--glow-x) var(--glow-y),
        rgba(var(--glow-color), calc(var(--glow-intensity) * 0.8)) 0%,
        rgba(var(--glow-color), calc(var(--glow-intensity) * 0.4)) 30%,
        transparent 60%
    );
    border-radius: inherit;
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    mask-composite: exclude;
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.3s ease;
    z-index: 10;
}

.magic-bento-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.magic-bento-card--border-glow:hover {
    box-shadow:
        0 4px 20px rgba(46, 24, 78, 0.4),
        0 0 30px rgba(var(--glow-color), 0.2);
}

.global-spotlight {
    mix-blend-mode: screen;
    will-change: transform, opacity, left, top;
    z-index: 200 !important;
    pointer-events: none;
    position: fixed;
    width: 800px;
    height: 800px;
    border-radius: 50%;
    background: radial-gradient(circle,
        rgba(var(--spotlight-color, 132, 0, 255), 0.15) 0%,
        rgba(var(--spotlight-color, 132, 0, 255), 0.08) 15%,
        rgba(var(--spotlight-color, 132, 0, 255), 0.04) 25%,
        rgba(var(--spotlight-color, 132, 0, 255), 0.02) 40%,
        rgba(var(--spotlight-color, 132, 0, 255), 0.01) 65%,
        transparent 70%
    );
    opacity: 0;
    transform: translate(-50%, -50%);
}

.particle-container {
    position: relative;
}

.bento-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 100;
}
.bento-particle::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: rgba(var(--glow-color), 0.2);
    border-radius: 50%;
    z-index: -1;
}
