:root {
    --bg-color: #050508;
    --text-color: #ffffff;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Outfit', sans-serif;
    overflow-x: hidden;
    scrollbar-width: none; 
    -ms-overflow-style: none;
    /* Optimize repaints */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body::-webkit-scrollbar {
    display: none;
}

.animation-container {
    width: 100vw;
    height: 100vh;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 10vh 0 15vh 0; 
}

.title-main {
    font-size: 8vw;
    font-weight: 700;
    text-align: center;
    background: linear-gradient(180deg, #ffffff 0%, #a5a5a5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    /* Removed text-shadow because it causes massive lag when scaling */
    transform-origin: top center;
    margin: 0;
    white-space: nowrap;
    z-index: 2;
    /* Force GPU acceleration */
    will-change: transform, opacity;
    transform: translateZ(0);
}

.title-sub {
    font-size: 1.5vw;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    letter-spacing: 3px;
    text-align: center;
    color: #ffffff;
    transform-origin: bottom center;
    margin: 0;
    white-space: nowrap;
    z-index: 3;
    /* High quality text rendering */
    text-rendering: optimizeLegibility;
}

/* Ambient background glow */
.ambient-glow {
    position: absolute;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(79, 172, 254, 0.1) 0%, rgba(0,0,0,0) 60%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    pointer-events: none;
    border-radius: 50%;
    will-change: transform, opacity;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0.8;
    z-index: 10;
    will-change: opacity;
}

.scroll-indicator p {
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.7);
}

.mouse {
    width: 20px;
    height: 30px;
    border: 2px solid rgba(255, 255, 255, 0.7);
    border-radius: 20px;
    position: relative;
    will-change: transform;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 6px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 2px;
    animation: scroll 1.5s infinite ease-in-out;
}

@keyframes scroll {
    0% { transform: translate(-50%, 0); opacity: 1; }
    100% { transform: translate(-50%, 10px); opacity: 0; }
}

@media (max-width: 768px) {
    .title-main {
        font-size: 12vw;
    }
    .title-sub {
        font-size: 3vw;
    }
    .ambient-glow {
        width: 80vw;
        height: 80vw;
    }
}
