@keyframes float {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes glow {
    0%,
    100% {
        text-shadow: 0 0 5px #fff, 0 0 10px #fff, 0 0 15px #fff;
    }
    50% {
        text-shadow: 0 0 10px #fff, 0 0 20px #fff, 0 0 30px #fff;
    }
}

@keyframes glitch {
    0% {
        clip-path: inset(80% 0 0 0);
        transform: translate(-2px, 2px);
    }
    20% {
        clip-path: inset(20% 0 60% 0);
        transform: translate(2px, -2px);
    }
    40% {
        clip-path: inset(40% 0 40% 0);
        transform: translate(1px, 1px);
    }
    60% {
        clip-path: inset(60% 0 20% 0);
        transform: translate(-1px, -1px);
    }
    80% {
        clip-path: inset(0 0 80% 0);
        transform: translate(2px, -2px);
    }
    100% {
        clip-path: inset(80% 0 0 0);
        transform: translate(-2px, 2px);
    }
}

body,
html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    background: #000;
    overflow: hidden;
    font-family: "Arial", sans-serif;
}

canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0; /* Ensure it stays behind other elements */
    pointer-events: none; /* Disable mouse interactions for the canvas */
}

.content {
    /* position: fixed; */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    align-items: center;
    z-index: 1; /* Ensures the logo and buttons are above the canvas */
    text-align: center;
}

.logo-container {
    text-align: center;
    color: #fff;
    /* animation: float 6s ease-in-out infinite; */
    margin-bottom: 20px; /* Adds spacing between logo and buttons */
}

.brij {
    font-size: 6rem; /* Adjusted for better visibility */
    font-weight: bold;
    letter-spacing: 0.5rem;
    margin-bottom: 1rem;
    color: #fff; /* Ensures white text stands out on the black background */
}

.designs {
    font-size: 3rem;
    letter-spacing: 0.25rem;
    opacity: 0.8;
    color: #fff;
}

.letter {
    display: inline-block;
    position: relative;
    transition: all 0.3s ease;
}

.letter:hover {
    animation: glow 2s ease-in-out infinite;
    cursor: pointer;
}

.letter::before {
    content: attr(data-text);
    position: absolute;
    left: 0;
    text-shadow: -2px 0 #ff00ff;
    clip-path: rect(0, 0, 0, 0); /* Updated for consistent glitch clipping */
    animation: glitch 3s infinite linear alternate-reverse;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.letter:hover::before {
    opacity: 1;
}

.letter::after {
    content: attr(data-text);
    position: absolute;
    left: 0;
    text-shadow: 2px 0 #00ffff;
    clip-path: rect(0, 0, 0, 0); /* Updated for consistent glitch clipping */
    animation: glitch 2s infinite linear alternate-reverse;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.letter:hover::after {
    opacity: 1;
}
