/**
 * STYLE.CSS
 * Contains base particle effect styling:
 * - Defines styles for mouse-following particles
 * - Implements burst particle animations for interactive elements
 * - Provides keyframe animations for particle movement and fading
 */

.particle {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0.5;
    z-index: 9999;
}

/* Styles for the burst particles triggered on button clicks */
.particle-burst {
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    border-radius: 50%;
    background-color: #a112dd;
    box-shadow: 0 0 10px #a112dd;
    opacity: 0.7;
}

/* Keyframes for the particle burst animation */
@keyframes burst {
    0% {
        transform: translate(0, 0) scale(1) rotate(0);
        opacity: 1;
    }
    70% {
        opacity: 0.7;
    }
    100% {
        transform: translate(var(--dx), var(--dy)) scale(0) rotate(360deg);
        opacity: 0;
    }
}

/* Ripple effect for button clicks */
.ripple {
    position: absolute;
    border-radius: 50%;
    transform: scale(0);
    background-color: rgba(161, 18, 221, 0.4);
    pointer-events: none;
    animation: ripple-effect 0.8s ease-out forwards;
    width: 200%;
    height: 200%;
    z-index: 0;
}

@keyframes ripple-effect {
    0% {
        transform: scale(0);
        opacity: 0.8;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

/* Button hover glow effect */
.menu-button {
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.menu-button::before {
    content: '';
    position: absolute;
    width: 120px;
    height: 120px;
    background: radial-gradient(
        circle, 
        rgba(161, 18, 221, 0.3) 0%, 
        rgba(161, 18, 221, 0.15) 40%,
        rgba(161, 18, 221, 0) 70%
    );
    border-radius: 50%;
    opacity: 0;
    pointer-events: none;
    top: var(--glow-y, 50%);
    left: var(--glow-x, 50%);
    transform: translate(-50%, -50%);
    transition: opacity 0.4s ease, width 0.3s ease, height 0.3s ease;
    will-change: opacity, width, height;
    filter: blur(35px);
}

.menu-button:hover::before {
    opacity: 1;
    width: 150px;
    height: 150px;
}

/* Button click animation */
.button-clicked {
    animation: button-press 0.3s ease;
}

@keyframes button-press {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(0.95);
    }
    100% {
        transform: scale(1);
    }
}

/* 3D tilt effect */
.menu-button {
    transition: transform 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform-style: preserve-3d;
    will-change: transform;
}

/* Additional styles to make buttons more responsive */
.menu-button:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(161, 18, 221, 0.5);
}

.menu-button:active {
    transform: scale(0.98);
}