@import url("https://fonts.googleapis.com/css2?family=Fredoka:wght@400;600;700&display=swap");
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;600&display=swap');

#typewriter {
    display: block;
    min-height: 28px;   /* keeps space even when empty */
    line-height: 28px;  /* vertically centers text */
    white-space: nowrap;
}


body {
    margin: 0;
    overflow: hidden;
    font-family: "Fredoka", sans-serif;
    color: white;
}

/* CLICK TO ENTER */
#enter-screen {
    position: fixed;
    inset: 0;
    background: black;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: url("media/cursor.png") 0 0, auto !important;
    z-index: 30;
}

.enter-text {
    font-size: 2rem;
    letter-spacing: 4px;
    text-shadow: 0 0 8px rgba(255,255,255,0.6);
}





/* VIDEO BACKGROUND */
#bg-video {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.55);
    z-index: -2;
}


/* CONTENT */
#content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    opacity: 0;
    transition: .8s ease;
}

.pfp {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    border: 3px solid rgba(255,255,255,0.5);
    margin-bottom: 15px;
    backdrop-filter: blur(5px);
}

.title {
    font-size: 40px;
    letter-spacing: 3px;
}

.bio {
    max-width: 400px;
    margin: 10px auto 25px;
    font-size: 15px;
    opacity: .8;
}

/* ICONS */
.icons {
    display: flex;
    justify-content: center;
    gap: 25px;
}

.icon {
    font-size: 34px;
    transition: .2s;
}

.chrome {
    color: #e5e5e5;
    filter: drop-shadow(0 0 6px rgba(255,255,255,.5));
}

.icon:hover {
    transform: scale(1.25);
    filter: drop-shadow(0 0 15px white);
}

/* VHS SCANLINES */
.vhs-effect {
    pointer-events: none;
    position: fixed;
    inset: 0;

    /* LOWER LAYER — sits ABOVE video but BELOW UI */
    z-index: 1;

    background: repeating-linear-gradient(
        to bottom,
        rgba(255,255,255,0.03) 0px,
        rgba(255,255,255,0.03) 1px,
        rgba(0,0,0,0) 3px
    );

    opacity: 0.5;
    animation: flicker 0.15s infinite;

    /* IMPORTANT FIX */
    mix-blend-mode: lighten;
}


body {
    cursor: url("media/cursor.png"), auto !important;
}

#typewriter {
    display: block;
    min-height: 28px;
    line-height: 28px;
    white-space: nowrap;
}




/* Chrome metal icons */
.icon.chrome i {
    background: linear-gradient(135deg, #fdfdfd, #bfbfbf, #f0f0f0);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 10px rgba(255,255,255,0.5);
    transition: transform 0.2s ease, filter 0.2s ease, text-shadow 0.2s ease;
}

.icon.chrome:hover i {
    transform: translateY(-1px) scale(1.00);
    filter: drop-shadow(0 0 4px rgba(255,255,255,0.6));
    text-shadow: 0 0 4px rgba(255,255,255,0.7);
}


/* Smooth cursor trailing effect */
.cursor-trail {
    position: fixed;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.8);
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: transform 0.12s ease-out, opacity 0.2s ease-out;
    opacity: 0.9;
}

/* Keep custom cursor image */
body {
    cursor: url("media/cursor.png"), auto !important;
}


@keyframes caret {
    50% { border-color: transparent; }
}

/* CRT flicker for enter screen */
#enter-screen {
    animation: enter-crt 1.6s infinite alternate;
}

@keyframes enter-crt {
    0% {
        filter: brightness(1) contrast(1);
    }
    40% {
        filter: brightness(1.15) contrast(1.25) saturate(1.2);
    }
    70% {
        filter: brightness(0.9) contrast(1.1);
    }
    100% {
        filter: brightness(1.05) contrast(1.3);
    }
}

.enter-text {
    position: relative;
    text-shadow:
        0 0 4px rgba(255,255,255,0.7),
        0 0 12px rgba(0,255,255,0.5),
        0 0 24px rgba(255,0,255,0.5);
}



.snowflake {
    position: fixed;
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0.9;
    z-index: 9999;
    animation: snowFade 0.8s linear forwards;
}

@keyframes snowFade {
    0% { transform: scale(1) translateY(0); opacity: 1; }
    100% { transform: scale(0.2) translateY(10px); opacity: 0; }
}
