@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;1,100;1,200;1,300;1,400;1,500;1,600;1,700&display=swap');

*{
    margin: 0;
    padding: 0;
    list-style: none;
    text-decoration: none;
    font-family: "IBM Plex Mono", monospace;
}

body{
    background-color: #1e1e1e;
}

.hero{
    width: 100%;
    min-height: 100vh;
    background-color: #1e1e1e;
}

.hero .container{
    max-width: 1200px;
    margin-inline: auto;
    height: 100%;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    justify-content: center;
}

.hero h1{
    margin-top: 2rem;
    font-weight: 700;
    font-size: 2.5rem;
    /* Gradient text */
    background: linear-gradient(90deg, #8e2de2, #ff0080, #ff7700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p{
    font-size: 1.1rem;
    max-width: 60ch;
    line-height: 1.9rem;
    color: #f7f7f7;
    font-weight: 300;
    text-align: center;
}

.video{
    border: 4px solid #f7f7f7;
    border-radius: 1rem;
    width: min(100%, 900px);
    aspect-ratio: 16/9;
    margin-block: 1rem;
    overflow: hidden;
}

.video iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.socials{
    display: flex;
    gap: 1.5rem;
    align-items: center;
    margin-top: 1rem;
    margin-bottom: 2rem;
}

.socials a{
    transition: .1s transform;
}

.socials a:hover{
    transform: translateY(-3px);
}

.socials a img{
    filter: brightness(1.3) grayscale(1);
    transition: filter 0.1s;
}

.socials a:hover img{
    filter: brightness(1.3) grayscale(0);
}

#typewriter {
    font-weight: 700;
    font-size: 2.5rem;

    /* Gradient text */
    background: linear-gradient(90deg, #8e2de2, #ff0080, #ff7700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;

    /* Cursor */
    border-right: 2px solid rgba(255,255,255,0.5); /* shorter + darker */
    padding-right: 4px; /* tiny spacing away from text */
    white-space: nowrap;
    overflow: hidden;
    width: fit-content;
    animation: blink 0.7s infinite;
}


@keyframes blink {
    50% { border-color: transparent; }
}

#loader {
    position: fixed;
    inset: 0;
    background: #1e1e1e;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.spinner {
    width: 45px;
    height: 45px;
    border: 4px solid #f7f7f7;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

body.loaded #loader {
    opacity: 0;
    pointer-events: none;
    transition: 0.4s ease-out;
}
