@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400&display=swap");

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #141414;
    overflow: hidden;
    height: 100vh;
    font-family: "Poppins", sans-serif;
}

#main {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    height: 400px;
    max-width: 600px;
    border-radius: 36px;
    background-color: rgba(29, 29, 29, 0.4);
    backdrop-filter: blur(15px);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    transform: scale(0);
    overflow: hidden;

    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: min-content min-content min-content 1fr min-content;
    gap: 10px;
    padding: 30px;
    text-align: center;
    align-items: center;
    justify-items: center;
    z-index: 1000;
}

.main-enter {
    animation: main-enter 1.5s cubic-bezier(0, .9, .58, 1) 1 forwards;
}

@keyframes main-enter {
    0% {
        transform: translate(-50%, -50%) scale(0);
    }

    100% {
        transform: translate(-50%, -50%) scale(1);
    }
}

#enterButton {
    background: linear-gradient(to right, #dfdfdf 0%, #777777 30%, #3d3d3d 50%, #dfdfdf 100%);
    background-size: 200% auto;
    color: #252525;
    background-clip: text;
    text-fill-color: transparent;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
    border: none;
    font-size: 18px;
    animation: shine 10s linear infinite;
    z-index: 999;
}

@keyframes shine {
    0% {
        background-position: 0%;
    }

    100% {
        background-position: 200%;
    }
}

.fade-out {
    opacity: 0;
    transform: scale(0.9);
    filter: blur(10px);
    transition: opacity 2s, filter 2s, transform 2s;
}

#profile-picture {
    max-width: 100px;
    border-radius: 50%;
    grid-column: 2;
    grid-row: 1;
    transition: 0.5s ease-in-out;
    opacity: 0;
}

.profile-picture-enter {
    animation: profile-picture-enter 2.2s cubic-bezier(0, .9, .58, 1) 1 forwards;
    animation-delay: 0.3s;
}

@keyframes profile-picture-enter {
    0% {
        filter: blur(5px);
        transform: translateY(-100px) rotate(30deg) scale(0.7);
        opacity: 0;
    }

    100% {
        filter: blur(0);
        transform: translateY(0) rotate(0deg) scale(1);
        opacity: 1;
    }
}

#name {
    font-size: 26px;
    font-weight: 500;
    font-weight: bold;
    color: #f0f0f0;
    grid-column: 2;
    grid-row: 2;
    opacity: 0;
}

.name-enter {
    animation: name-enter 3s cubic-bezier(0, .9, .58, 1) 1 forwards;
}

@keyframes name-enter {
    0% {
        transform: translateY(100px);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

#description {
    font-size: 16px;
    color: #c4c4c4;
    grid-column: 2;
    grid-row: 3;
    opacity: 0;
}

.description-enter {
    animation: description-enter 3s cubic-bezier(0, .9, .58, 1) 1 forwards;
    animation-delay: 0.5s;
}

@keyframes description-enter {
    0% {
        transform: translateY(100px);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

#socials {
    display: flex;
    justify-content: center;
    grid-column: 2;
    grid-row: 5;
    opacity: 0;
}

#socials a {
    color: #dadada;
    text-decoration: none;
    margin: 0 30px;
    font-size: 20px;
    transition: 0.3s ease-in-out;
}

#socials a:hover {
    color: #ffffff;
    scale: 1.05;
}

.socials-enter {
    animation: socials-enter 1.5s cubic-bezier(0, .9, .58, 1) 1 forwards;
    animation-delay: 0.5s;
}

@keyframes socials-enter {
    0% {
        filter: blur(10px);
        transform: translateY(200px) scaleX(2.5);
        opacity: 0;
    }

    100% {
        filter: blur(0);
        transform: translateY(0) scaleX(1);
        opacity: 1;
    }
}

#video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}