:root {
    --bg-dark: #050508;
    --text-white: #ffffff;
    --neon-cyan: #00f3ff;
    --neon-purple: #b500ff;
    --font-main: 'Space Grotesk', sans-serif;
}
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
body, html {
    height: 100%;
    background-color: var(--bg-dark);
    color: var(--text-white);
    font-family: var(--font-main);
    overflow: hidden;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}
.space-background {
    position: fixed;
    top: -5%;
    left: -5%;
    width: 110vw;
    height: 110vh;
    z-index: 1;
    background: radial-gradient(circle at 50% 50%, #06070a 0%, #010102 100%);
    overflow: hidden;
    will-change: transform;
}
.blur-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.25;
}
.orb-1 {
    top: -10%;
    left: -5%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, var(--neon-cyan) 0%, transparent 70%);
}
.orb-2 {
    bottom: -15%;
    right: -5%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, var(--neon-purple) 0%, transparent 70%);
}
.star-layer {
    position: absolute;
    top: -10%;
    left: -10%;
    width: 120vw;
    height: 120vh;
    will-change: transform;
}
.stars-far {
    box-shadow:
        10vw 15vh #fff, 85vw 10vh rgba(255,255,255,0.4), 45vw 75vh #fff,
        70vw 50vh rgba(255,255,255,0.6), 25vw 80vh #fff, 90vw 90vh #fff,
        60vw 30vh #fff, 95vw 20vh #fff, 40vw 95vh rgba(255,255,255,0.5),
        110vw 80vh #fff, 105vw 40vh rgba(255,255,255,0.4), 50vw 110vh #fff,
        85vw 105vh #fff, 115vw 115vh rgba(255,255,255,0.7), 20vw 105vh #fff;
    width: 1px;
    height: 1px;
    background: transparent;
}
.stars-medium {
    box-shadow:
        15vw 35vh var(--neon-cyan), 75vw 25vh #fff, 50vw 85vh rgba(255,255,255,0.4),
        80vw 65vh var(--neon-purple), 5vw 15vh #fff, 95vw 55vh var(--neon-cyan),
        105vw 15vh #fff, 110vw 75vh var(--neon-purple), 70vw 110vh #fff,
        35vw 105vh var(--neon-cyan), 100vw 105vh #fff, 115vw 95vh rgba(255,255,255,0.5);
    width: 1.5px;
    height: 1.5px;
    background: transparent;
}
.stars-close {
    box-shadow:
        30vw 20vh #fff, 65vw 15vh var(--neon-cyan), 15vw 70vh #fff,
        50vw 45vh var(--neon-purple), 85vw 40vh #fff,
        105vw 60vh var(--neon-cyan), 115vw 25vh #fff, 60vw 115vh var(--neon-purple),
        15vw 110vh #fff, 110vw 105vh #fff;
    width: 2px;
    height: 2px;
    background: transparent;
}
.main-display {
    position: relative;
    z-index: 10;
    height: 100vh;
    width: 100vw;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 40px;
}
.greeting-text {
    font-size: 5rem;
    font-weight: 700;
    letter-spacing: -2px;
    line-height: 1.1;
    text-align: center;
    opacity: 0;
    transform: scale(0.98);
    transition: opacity 1.2s ease-out, transform 1.2s ease-out;
    will-change: transform, opacity;
}
.main-display.active .greeting-text {
    opacity: 1;
    transform: scale(1);
}
.txt-rotate > .wrap {
    background: linear-gradient(45deg, #ffffff 40%, var(--neon-cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    padding-right: 4px;
    border-right: 0.08em solid var(--neon-cyan);
    animation: blink 0.8s step-end infinite;
}
@keyframes blink {
    from, to { border-color: transparent }
    50% { border-color: var(--neon-cyan); }
}
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    pointer-events: none;
}
.curtain {
    flex: 1;
    background: #020204;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform;
}
.curtain.top { transform-origin: top; }
.curtain.bottom { transform-origin: bottom; }
.preloader-line {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--neon-cyan), transparent);
    box-shadow: 0 0 10px var(--neon-cyan);
    z-index: 10000;
    transition: width 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}
.preloader.loaded .preloader-line {
    opacity: 0;
    transition: opacity 0.2s ease;
}
.preloader.loaded .curtain.top { transform: scaleY(0); }
.preloader.loaded .curtain.bottom { transform: scaleY(0); }
#funny-kitty {
    position: fixed;
    width: 115px;
    height: 80px;
    bottom: -100px;
    z-index: 999;
    right: 20px;
    cursor: pointer;
    overflow: hidden;
    background: transparent url(cat.png) 20px 0 no-repeat;
    background-size: 95px 110px;
    transition: bottom 0.5s ease-out;
}
#funny-kitty::before {
    content: "";
    position: absolute;
    width: 50px;
    height: 30px;
    bottom: -30px;
    left: 0;
    background: transparent url(cat.png) 0 -80px no-repeat;
    background-size: 95px 110px;
    transition: all .4s ease;
}
#funny-kitty:hover::before {
    bottom: 0;
}
#funny-kitty.animate-hands::before {
    animation: hands-up 6s ease-in-out 1.5s 1;
}
@keyframes hands-up {
    0%, 100% { bottom: -30px; }
    15%, 85% { bottom: 0; }
}
#funny-kitty .kitty-eyes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}
#funny-kitty .kitty-pupil {
    width: 4px;
    height: 4px;
    background: #000000;
    border-radius: 50%;
    position: absolute;
    will-change: transform;
    transition: transform 0.04s ease-out;
}
#funny-kitty .pupil-left {
    top: 36px;
    left: 43px;
}
#funny-kitty .pupil-right {
    top: 36px;
    left: 78px;
}
@media (min-width: 769px) {
    body { cursor: none; }
    .custom-cursor-dot, .custom-cursor-outline {
        position: fixed;
        top: 0;
        left: 0;
        border-radius: 50%;
        pointer-events: none;
        z-index: 99999;
        will-change: transform;
        opacity: 0;
        transition: opacity 0.3s ease, width 0.2s, height 0.2s, background-color 0.2s, border-color 0.2s, box-shadow 0.2s;
    }
    .custom-cursor-dot {
        width: 6px;
        height: 6px;
        background-color: var(--neon-cyan);
    }
    .custom-cursor-outline {
        width: 26px;
        height: 26px;
        border: 1px solid rgba(0, 243, 255, 0.25);
    }
    body.cursor-hover .custom-cursor-dot { opacity: 0; }
    body.cursor-hover .custom-cursor-outline {
        width: 50px;
        height: 50px;
        background-color: rgba(0, 243, 255, 0.05);
        border-color: var(--neon-cyan);
        box-shadow: 0 0 15px rgba(0, 243, 255, 0.3);
    }
}
.click-ripple {
    position: fixed;
    border: 1px solid var(--neon-cyan);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99998;
    transform: translate(-50%, -50%) scale(0);
    animation: rippleEffect 0.4s ease-out forwards;
    will-change: transform, opacity;
}
@keyframes rippleEffect {
    0% { transform: translate(-50%, -50%) scale(0); opacity: 0.6; }
    100% { transform: translate(-50%, -50%) scale(1); opacity: 0; }
}
@media (max-width: 768px) {
    .greeting-text {
        font-size: 2.6rem;
        letter-spacing: -1px;
        line-height: 1.3;
        word-break: break-word;
        word-spacing: 100vw;
        text-align: center;
    }
}
