@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #0a0a0a;
    color: #fff;
    overflow: hidden;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.container {
    position: relative;
    width: 100%;
    height: 100vh;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.logo-container {
    position: relative;
    perspective: 1000px;
    transform-style: preserve-3d;
}

.logo {
    font-size: 10vw;
    font-weight: 700;
    letter-spacing: 5px;
    display: flex;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5),
                 0 0 20px rgba(255, 255, 255, 0.3),
                 0 0 30px rgba(255, 255, 255, 0.1);
    transform-style: preserve-3d;
}

.char {
    position: relative;
    animation: float 6s ease-in-out infinite;
    transform-style: preserve-3d;
    transition: transform 0.3s ease;
}

.char1 {
    animation-delay: 0s;
    color: #ff3366;
}

.char2 {
    animation-delay: 0.2s;
    color: #33ccff;
}

.char3 {
    animation-delay: 0.4s;
    color: #66ff99;
}

.char4 {
    animation-delay: 0.6s;
    color: #cc33ff;
}

.char5 {
    animation-delay: 0.8s;
    color: #ffcc33;
}

.char6 {
    animation-delay: 1.0s;
    color: #ff6633;
}

.char7 {
    animation-delay: 1.2s;
    color: #33ffcc;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) translateZ(0) rotateX(0) rotateY(0);
    }
    25% {
        transform: translateY(-20px) translateZ(50px) rotateX(5deg) rotateY(5deg);
    }
    50% {
        transform: translateY(0) translateZ(100px) rotateX(0) rotateY(0);
    }
    75% {
        transform: translateY(20px) translateZ(50px) rotateX(-5deg) rotateY(-5deg);
    }
}

.logo:hover .char {
    animation-play-state: paused;
    transform: scale(1.1);
}

.char:hover {
    animation-play-state: paused;
    filter: brightness(1.5);
    text-shadow: 0 0 20px currentColor,
                 0 0 30px currentColor,
                 0 0 40px currentColor;
    transform: scale(1.2) translateZ(150px);
}

.menu {
    position: absolute;
    bottom: 50px;
    width: 100%;
    text-align: center;
}

.menu ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 50px;
}

.menu-item {
    color: #fff;
    text-decoration: none;
    font-size: 20px;
    position: relative;
    padding: 8px 0;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.menu-item:hover {
    opacity: 1;
}

.menu-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, #ff3366, #33ccff, #66ff99, #cc33ff, #ffcc33, #ff6633, #33ffcc);
    transition: width 0.3s ease;
}

.menu-item:hover::after {
    width: 100%;
}

@media (max-width: 768px) {
    .logo {
        font-size: 16vw;
    }
    
    .menu ul {
        gap: 20px;
    }
    
    .menu-item {
        font-size: 16px;
    }
}