/* Global*/

html {
    scrollbar-gutter: stable;
    overflow-y: scroll;
}

body {
    margin: 0;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 400;
    color: white;
    text-align: center;
    overflow-y: hidden;
}

/* Background video */

.background-video {
    position: fixed;
    right: 0;
    bottom: 0;
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
    z-index: -2;
    filter: brightness(0.6) contrast(1.1) grayscale(20%);
    pointer-events: none;
}

/* Dark overlay */

.overlay {
    position: fixed;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    z-index: -1;
}

/* Main container */

.container {
    height: 100vh;
    max-width: 800px;
    margin: auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    animation: fadeIn 1.5s ease;
    will-change: transform, opacity;
}

/* Fade animation */

@keyframes fadeIn {

    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}

/* Title */

.title {
    font-family: 'Orbitron', sans-serif;
    font-weight: 600;
    font-size: clamp(28px, 6vw, 52px);
    letter-spacing: 3px;
    line-height: 1.2;
    margin-bottom: 10px;

    text-shadow:
        0 0 10px rgba(255, 255, 255, 0.4),
        0 0 25px rgba(0, 140, 255, 0.35),
        0 0 45px rgba(0, 140, 255, 0.2);
}

/* Loading dots */

.dots {
    display: inline-flex;
    gap: 2px;
    margin-left: 3px;
}

.dots span {
    opacity: 0;
    color: #5bbcff;

    text-shadow:
        0 0 8px rgba(0, 140, 255, 0.8);

    animation: blink 1.5s infinite;
}

.dots span:nth-child(2) {
    animation-delay: .3s;
}

.dots span:nth-child(3) {
    animation-delay: .6s;
}

@keyframes blink {

    0% {
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }

}

/* Subtitle */

.subtitle {
    font-size: clamp(14px, 2.2vw, 20px);
    color: #cfcfcf;
    margin-top: 20px;
    margin-bottom: 60px;
    line-height: 1.5;
}

/* Highlight */

.highlight {
    color: #5bbcff;

    text-shadow:
        0 0 6px rgba(0, 140, 255, 0.8),
        0 0 12px rgba(0, 140, 255, 0.5),
        0 0 25px rgba(0, 140, 255, 0.3);

    animation: glowPulse 3s ease-in-out infinite alternate;
}

@keyframes glowPulse {

    from {
        text-shadow:
            0 0 4px rgba(0, 140, 255, 0.6),
            0 0 10px rgba(0, 140, 255, 0.4);
    }

    to {
        text-shadow:
            0 0 10px rgba(0, 140, 255, 1),
            0 0 25px rgba(0, 140, 255, 0.7),
            0 0 40px rgba(0, 140, 255, 0.4);
    }

}

/* Github button */

.github-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 22px;
    background: #24292e;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    letter-spacing: .5px;
    transition: all .3s ease;
    will-change: transform;
}

.github-btn svg {
    transition: transform .3s ease;
}

.github-btn:hover {
    background: #111;
    border: 1px solid #444;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, .25);
}

.github-btn:hover svg {
    transform: rotate(-10deg) scale(1.1);
}

/* Footer */

.footer {
    position: absolute;
    bottom: 20px;
    left: 12px;
    right: 12px;
    font-size: 13px;
    color: #888;
}

.footer a {
    color: #888;
    text-decoration: none;
}

.footer a:hover {
    color: #ccc;
}

/* Mobile */

@media (max-width: 600px) {

    .container {
        padding: 0 25px;
    }

    .title {
        letter-spacing: 2px;
    }

    .github-btn {
        padding: 14px 24px;
    }

}