@font-face {
    font-family: 'OzelSerifFont';
    src: url('./akira.otf') format('opentype');
    font-display: swap;
}

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

body {
    height: 100vh;
    background: #000000;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

h1 {
    font-family: 'OzelSerifFont', 'Times New Roman', serif;
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: normal;
    letter-spacing: 0.05em;
    position: relative;
    z-index: 2;
    text-shadow: 0 0 25px rgba(255, 255, 255, 0.4);
    text-align: center;
}

h1 span {
    transition: opacity 0.3s ease;
    display: inline-block;
}

h1 span:hover {
    opacity: 0;
}

h1 span:hover + span,
h1 span:has(+ span:hover) {
    opacity: 0.7;
}

@media (max-width: 768px) {
    h1 {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
        padding: 0 20px;
        font-size: clamp(1.8rem, 10vw, 3rem);
    }
}

.sparkles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.sparkle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #FFFFFF;
    opacity: 0;
    animation: sparkle-fade 1.5s ease-in-out forwards;
}

@keyframes sparkle-fade {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }
    50% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(0.5);
    }
}

@media (max-width: 768px) {
    h1 {
        padding: 0 20px;
    }
}
