* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background: #0a0a0a;
}

#canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.container {
    text-align: center;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 50px;
    position: relative;
}

.container.fade-out {
    animation: fadeOutScale 1.2s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

.container.fade-in {
    animation: fadeInScale 1.2s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

@keyframes fadeOutScale {
    0% {
        opacity: 1;
        transform: perspective(1000px) translateZ(0) rotateY(0deg) scale(1);
        filter: blur(0px);
    }
    100% {
        opacity: 0;
        transform: perspective(1000px) translateZ(-400px) rotateY(180deg) scale(0.3);
        filter: blur(10px);
    }
}

@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: perspective(1000px) translateZ(-400px) rotateY(-180deg) scale(0.3);
        filter: blur(10px);
    }
    100% {
        opacity: 1;
        transform: perspective(1000px) translateZ(0) rotateY(0deg) scale(1);
        filter: blur(0px);
    }
}

.logo {
    width: 280px;
    height: 280px;
    object-fit: contain;
    filter: drop-shadow(0 15px 50px rgba(255, 20, 147, 0.6));
    transition: filter 0.3s ease;
}

.logo:hover {
    filter: drop-shadow(0 20px 60px rgba(255, 20, 147, 0.8));
}

.typing-text {
    font-size: 3.5rem;
    font-weight: 800;
    color: #ffffff;
    text-shadow:
        0 0 10px rgba(255, 255, 255, 0.9),
        0 0 20px rgba(255, 255, 255, 0.6),
        0 0 30px rgba(255, 255, 255, 0.3),
        0 5px 15px rgba(0, 0, 0, 0.5);
    border-right: 4px solid #ffffff;
    padding-right: 12px;
    white-space: nowrap;
    overflow: hidden;
    display: inline-block;
    min-height: 4rem;
    letter-spacing: 2px;
}

.typing-text.blink {
    animation: blink 0.7s step-end infinite;
}

@keyframes blink {
    from, to {
        border-color: transparent;
    }
    50% {
        border-color: #ffffff;
    }
}

@media (max-width: 768px) {
    .container {
        gap: 40px;
    }

    .logo {
        width: 220px;
        height: 220px;
    }

    .typing-text {
        font-size: 2.2rem;
        min-height: 3rem;
    }
}

@media (max-width: 480px) {
    .container {
        gap: 30px;
    }

    .logo {
        width: 170px;
        height: 170px;
    }

    .typing-text {
        font-size: 1.6rem;
        min-height: 2.2rem;
        letter-spacing: 1px;
    }
}
