@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Rubik+Distressed&display=swap');


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

:root {
    --purple: #8E83F4;
    --purple2: #afa2eb;
    --black: #121212;
    --white: #e7e7e7;
    --gri: #7D848F;
    --blue: #5DBCD2;
}


/* ----------------------------------- HEADER ----------------------------------- */

.header {
    width: 100%;
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translate(-50%);
    height: 105px;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    /* padding: 0 4% 0 4%; */
}

.header-section {
    width: 30%;
    height: 100%;
    border-radius: 52.5px;
    box-shadow: 0 0 5px var(--purple);
    background-color: #202020;
    display: flex;
    align-items: center;
    justify-content: center;

}

.header-left {
    border-radius: 52.5px 20px 20px 52.5px;
}

.header-center {
    border-radius: 20px;
}

.header-right {
    border-radius: 20px 52.5px 52.5px 20px;
}

.header-center {
    color: var(--purple);
    width: 30%;
    height: 105px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
    column-gap: 20px;
}

.header-center-text-container {
    width: calc(100% - 125px);
    border-radius: 20px;
    box-shadow: 0 0 12px var(--purple);
}

.header-center-text {
    font-family: "Rubik Distressed", system-ui;
    font-size: 65px;
}

.header-center-logo-container {
    width: 105px;
    border-radius: 30px;
    box-shadow: 0 0 12px var(--purple);
}

.header-center-logo {
    border-radius: 30px;
}


/* --------------------------------- File Upload --------------------------------- */

.container {
    background-color: #121212;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding-top: 125px;
}

.file-container {
    position: relative;
    display: inline-block;
    padding: 25px 30px;
    color: #8e83f4;
    text-decoration: none;
    text-transform: uppercase;
    transition: 0.5s;
    letter-spacing: 4px;
    overflow: hidden;
    width: 50%;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    
}

.file-container:hover {
    background-color: #202020;
    box-shadow: 0 0 80px var(--span-color);
}





.file-container span {
    position: absolute;
    display: block;
}

:root {
    --span-height: 2px;
    --span-color: #8e83f4;
}

.file-container span:nth-child(1) {
    top: 0;
    left: 0;
    width: 100%;
    height: var(--span-height);
    background: linear-gradient(90deg, transparent, var(--span-color));
    animation: animate1 1s linear infinite;
}

@keyframes animate1 {
    0% {
        left: -100%;
    }

    50%,
    100% {
        left: 100%;
    }
}

.file-container span:nth-child(2) {
    top: -100%;
    right: 0;
    width: var(--span-height);
    height: 100%;
    background: linear-gradient(180deg, transparent, var(--span-color));
    animation: animate2 1s linear infinite;
    animation-delay: 0.25s;
}

@keyframes animate2 {
    0% {
        top: -100%;
    }

    50%,
    100% {
        top: 100%;
    }
}

.file-container span:nth-child(3) {
    bottom: 0;
    right: 0;
    width: 100%;
    height: var(--span-height);
    background: linear-gradient(270deg, transparent, var(--span-color));
    animation: animate3 1s linear infinite;
    animation-delay: 0.50s;
}

@keyframes animate3 {
    0% {
        right: -100%;
    }

    50%,
    100% {
        right: 100%;
    }
}


.file-container span:nth-child(4) {
    bottom: -100%;
    left: 0;
    width: var(--span-height);
    height: 100%;
    background: linear-gradient(360deg, transparent, var(--span-color));
    animation: animate4 1s linear infinite;
    animation-delay: 0.75s;
}

@keyframes animate4 {
    0% {
        bottom: -100%;
    }

    50%,
    100% {
        bottom: 100%;
    }
}



.file-content {
    cursor: pointer;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
}

.file-content2 {
    transition: 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    width: 100%;
}

.file-content2:hover {
    transform: scale(1.1);
}

.file-upload-input {
    position: absolute;
    visibility: hidden;
}

.file-img {
    display: flex;
    align-items: center;
    justify-content: center;
}

.file-name-container {
    color: #797979;
    font-size: 25px;
    margin-top: 20px;
    width: 80%;
    text-align: center;
}

.buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    column-gap: 20px;
    margin-top: 40px;
    width: 50%;

}







/* ------------------------------------- ANİMATİON BUTTONS ------------------------------------- */
.btn-container {
    position: relative;
    width: 100%;
}

.btn-container:hover .btn-menu {
    visibility: visible;
    opacity: 1;
}

.btn {
    position: relative;
    display: inline-block;
    padding: 25px 30px;
    color: #8e83f4;
    text-decoration: none;
    text-transform: uppercase;
    transition: 0.5s;
    letter-spacing: 4px;
    overflow: hidden;
    width: 100%;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    background: transparent;
    border: none;
}

.btn:hover {
    background: #8e83f4;
    color: #050801;
    box-shadow: 0 0 2.5px #8e83f4,
        0 0 12.5px #8e83f4,
        0 0 25px #8e83f4,
        0 0 100px #8e83f4;
}

.btn span {
    position: absolute;
    display: block;
}

.btn span:nth-child(1) {
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #8e83f4);
    animation: animate1 1s linear infinite;
}

@keyframes animate1 {
    0% {
        left: -100%;
    }

    50%,
    100% {
        left: 100%;
    }
}

.btn span:nth-child(2) {
    top: -100%;
    right: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, transparent, #8e83f4);
    animation: animate2 1s linear infinite;
    animation-delay: 0.25s;
}

@keyframes animate2 {
    0% {
        top: -100%;
    }

    50%,
    100% {
        top: 100%;
    }
}

.btn span:nth-child(3) {
    bottom: 0;
    right: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(270deg, transparent, #8e83f4);
    animation: animate3 1s linear infinite;
    animation-delay: 0.50s;
}

@keyframes animate3 {
    0% {
        right: -100%;
    }

    50%,
    100% {
        right: 100%;
    }
}


.btn span:nth-child(4) {
    bottom: -100%;
    left: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(360deg, transparent, #8e83f4);
    animation: animate4 1s linear infinite;
    animation-delay: 0.75s;
}

@keyframes animate4 {
    0% {
        bottom: -100%;
    }

    50%,
    100% {
        bottom: 100%;
    }
}


.btn-menu {
    position: absolute;
    top: -300px;
    height: 300px;
    width: 100%;
    display: flex;
    flex-direction: column;
    z-index: 100000000;
    background-color: rgb(18, 18, 18, 0.6);
    visibility: hidden;
    opacity: 0;
    transition: 0.2s ease;
    border-radius: 10px 10px 0 0;
}

.btn-menu-link {
    height: calc(300px / 5);
    width: 100%;
    color: #e7e7e7;
    text-decoration: none;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s ease;
    text-align: center;
}

.btn-menu-link:hover {
    background-color: rgb(32, 32, 32, 0.6);
    font-size: 20px;
}