:root {
    --color-primary: 28, 0, 55;
    /*11, 16, 35;*/
    --color-secondary: 40, 57, 113;
    --color-dark-gray: 48, 48, 48;
    --color-light-gray: 55, 55, 55;
    --color-highlight: 255, 102, 0;
    --color-text-main: 255, 255, 255;
    --color-modal-cover: 70, 70, 70;
}

/* width */
::-webkit-scrollbar {
    width: 10px;
}

/* Track */
::-webkit-scrollbar-track {}

/* Handle */
::-webkit-scrollbar-thumb {
    background: rgb(var(--color-highlight), 0.8);
    border-radius: 10px;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
    background: rgb(var(--color-highlight));
}


body {
    font-family: 'Roboto', sans-serif;
    color: rgb(var(--color-text-main));
    background-color: rgb(var(--color-primary));
    overflow-x: hidden;
}

a {
    text-decoration: none;
    outline: none;
    color: rgb(var(--color-text-main));
}

button,
input[type=submit] {
    width: 100%;
    cursor: pointer;
    transition: all 0.3s ease;
    background: linear-gradient(to left, rgb(var(--color-secondary)) 50%, rgb(var(--color-highlight)) 50%);
    background-position: right;
    background-size: 201% 100%;
    outline: none;
    border: none;
    color: rgb(var(--color-text-main)) !important;
    padding: 10px;
    border-radius: 5px;
}

button:hover,
input[type=submit]:hover {
    background-position: left !important;
}

button.selected {
    background-position: left !important;
}

nav {
    width: 100vw;
    display: flex;
    justify-content: space-between;
    text-transform: uppercase;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    background: transparent;
    transition: background 0.25s ease-in;
}

nav img {
    height: 40px;
    margin: 8px 0 4px 8px;
}

nav.dark {
    background-color: rgb(var(--color-dark-gray));
}

#about_bg {
    position: absolute;
    left: 50%;
    transform: translate(-50%, 10%);
    width: 1050px;
    max-height: 100%;
    z-index: -1;
    opacity: 0;
    animation: float_up_bg 1s forwards;
    animation-delay: 1.5s;
}

#about-container {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 1050px;
    max-width: 100%;
    margin: auto;
    margin-top: 80px;
}

header {
    position: relative;
    min-height: 92vh;
    padding-top: 8vh;
}

header h1,
header h2 {
    font-weight: 400;
    margin: 0;
    display: inline-block;
    opacity: 0;
    animation: slide_in_left 1s forwards;
}

header h1 {
    font-size: 3.49em;
    animation-delay: 0.5s;
}

#welcome {
    display: flex;
    flex-direction: column;
    width: fit-content;
    max-width: 96vw;
}

#buttons {
    display: flex;
    justify-content: space-between;
    overflow: hidden;
    margin-bottom: 172px;
}

#buttons>* {
    transform: translateY(-100%);
    animation: dropdown 1s forwards;
    animation-delay: 2.5s;
    width: 49%;
}

#upv {
    width: 348px;
    overflow: hidden;
    margin-top: 10px;
    pointer-events: none;
}

#upv div.show {
    transform: translateY(0);
}

#upv div {
    color: white;
    transform: translateY(-120%);
    transition: transform 0.75s ease;
    background-color: rgb(var(--color-light-gray));
    border-radius: 5px;
    padding: 10px;
}

#upv p {
    margin: 0;
}

#about-cards {
    display: flex;
    flex-flow: wrap;
    justify-content: center;
    width: 1050px;
    max-width: 100%;
    margin: 5px auto;
    transition: all 0.75s;
}

#about-cards.hide {
    transform: translateY(100px) !important;
    opacity: 0 !important;
}

.card {
    background-color: white;
    text-align: center;
    width: 33.33%;
    min-width: 300px;
    height: 300px;
    border-radius: 5px;
    opacity: 0;
    box-shadow: 0px 3px 10px 2px rgba(0, 0, 0, 0.6);
    animation: float_up 2s forwards;
    animation-delay: 1.2s;
    transition: all 1s;
}


.card .content p {
    color: rgb(var(--color-light-gray));
    width: 70%;
    margin: auto;
}

.card:nth-child(2) {
    z-index: 999;
    transform: translateY(-20px);
    animation-delay: 1s;
}

.card .content h3 {
    margin-top: 10%;
    color: rgb(var(--color-highlight));
    text-transform: uppercase;
    font-weight: 500;
}

.card .icon {
    background-color: rgba(147, 149, 152, 0.59);
    display: flex;
    height: 70px;
    justify-content: center;
    align-items: center;
    border-radius: 5px 5px 0 0;
}

.card:first-child .icon {
    background: linear-gradient(to right, transparent, rgba(147, 149, 152, 0.59));
}

.card:last-child .icon {
    background: linear-gradient(to left, transparent, rgba(147, 149, 152, 0.59));
}

.card .icon img {
    height: 70%;
    max-width: 70%;
}

@keyframes slide_in_left {
    from {
        opacity: 0;
        transform: translateX(-20%);
    }

    to {
        opacity: 1;
    }
}

@keyframes float_up {
    from {
        opacity: 0;
        transform: translateY(20%);
    }

    to {
        opacity: 1;
    }
}

@keyframes float_up_bg {
    from {
        opacity: 0;
        transform: translate(-50%, 25%);
    }

    to {
        opacity: 40%;
    }
}

@keyframes dropdown {
    from {
        transform: translateY(-110%);
    }

    to {
        transform: translateY(0);
    }
}

#links {
    display: flex;
}

#links div {
    width: fit-content;
    margin-right: 30px;
    position: relative;
}

#links div.selected:after {
    visibility: visible;
    transform: scaleX(1) translateY(7px);
}

#links div:after {
    content: "";
    position: absolute;
    width: 100%;
    height: 3px;
    left: 0;
    bottom: 0;
    background: rgb(var(--color-highlight));
    visibility: hidden;
    border-radius: 5px;
    transform: scaleX(0) translateY(7px);
    transition: .20s linear;
}

/**** ARROWS ****/
.arrows {
    position: absolute;
    width: 25px;
    cursor: pointer;
}

.arrows.exp_col {
    display: none;
    top: 12px;
    right: 12px;
}

.down_arrow {
    fill: none;
    stroke: rgb(var(--color-highlight));
    stroke-width: 8;
    stroke-miterlimit: 10;
    animation: fade_in_out 1.9s linear infinite;
}

.down_arrow:nth-child(2) {
    animation-delay: 0.2s;
}

.down_arrow:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes fade_in_out {
    0% {
        opacity: 0;
    }

    70% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.divider {
    position: relative;
    /*background: linear-gradient(90deg, transparent, rgb(var(--color-secondary)), transparent);*/
    padding: 12px;
    text-transform: uppercase;
    font-size: 1.2em;
    margin: 30px auto;
    width: fit-content;
}

.divider img {
    position: absolute;
    top: -31px;
    left: -35px;
    height: 80px;
    opacity: 0.4;
    z-index: -1;
}

.divider h3 {
    margin: 0;
}

section#content,
section#contact {
    min-height: 100vh;
    width: 100%;
    transition: all 0.75s;
    padding-top: 20px;
    text-align: center;
}

section#content #projects {
    display: flex;
    flex-flow: wrap;
    justify-content: center;
}

#content .project {
    width: 400px;
    height: 300px;
    margin: 10px;
    background-color: rgb(var(--color-light-gray));
    border-radius: 5px;
    cursor: pointer;
}

#content .project .header {
    background-color: rgb(var(--color-dark-gray));
    height: 60px;
    display: flex;
    align-items: center;
    border-radius: 5px 5px 0 0;
    padding: 0 10px;
}

#content .project .header h4 {
    color: rgb(var(--color-highlight));
    text-transform: uppercase;
}

.project .icon {
    height: 35px;
    width: 35px;
    font-size: 25px;
    color: rgb(var(--color-primary));
    background-color: white;
    border-radius: 50%;
    padding: 5px;
    margin-right: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.project .pr_content {
    height: 240px;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    border-radius: 0 0 5px 5px;
}

#information {
    flex: 1.2;
    position: relative;
    width: 450px;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
}

#information a {
    color: rgb(var(--color-highlight));
    font-weight: bold;
    text-decoration: underline;
}

#information h2 {
    font-size: 2em;
    margin-top: 0;
    margin-bottom: 10px;
}

#information h3 {
    text-transform: uppercase;
}

#modal_bg {
    position: fixed;
    background-color: rgba(0, 0, 0, 0.7);
    height: 100vh;
    width: 100vw;
    top: 0;
    left: 0;
    overflow: hidden;
    z-index: 9999;
    transition: 0.5s;
}

#modal_container {
    padding-top: 100px;
    width: 100vw;
    height: calc(100vh - 80px);
    transition: all 0.5s;
    position: fixed;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 999999;
}

#modal_container.hidden {
    opacity: 0;
    pointer-events: none;
}

#modal_content {
    position: relative;
    height: 95%;
    background-color: rgb(var(--color-light-gray));
    border-radius: 5px;
    display: flex;
    flex-flow: wrap;
    max-width: 1300px;
    width: 88vw;
    margin: auto;
    padding: 5px 20px;
    overflow-y: auto;
}

#modal_content_av {
    flex: 3;
    display: flex;
    align-items: center;
    text-align: center;
    justify-content: center;
}

#modal_content_av img,
#modal_content_av video,
#modal_content_av iframe {
    max-width: 94%;
    max-height: 97%;
    margin: auto;
}

#modal_content_av iframe {
    width: 94%;
    height: 97%;
}

#modal_bg.hidden {
    pointer-events: none;
    transform: translateY(100vh);
    opacity: 0;
}

#modal_close_btn {
    color: rgb(var(--color-highlight));
    font-weight: bold;
    font-size: 1.2em;
    position: absolute;
    top: 20px;
    right: 20px;
    cursor: pointer;
}
#about_me{
    display: flex;
    flex-flow: wrap;
    flex-direction: row;
    justify-content: space-around;
    max-width: 1040px;
    width: 90vw;
    margin: auto;
}

#about_me .profile_image{
    border-radius: 5px;
}

#about_me #text_info{
    max-width: 300px;
    text-align: left;
}

#contact_form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 25px;
    max-width: 1040px;
    width: 90vw;
    margin: auto;
    margin-top: 50px;
    font-size: 1em;
    text-align: left;
}

.form_item {
    display: grid;
}

#message.form_item,
.form_item:last-child {
    grid-column: 1/-1;
}

input::placeholder,
textarea::placeholder {
    color: gray;
}

.form_item:last-child input[type=submit] {
    margin: auto;
    width: 30%;
}

#contact_form input,
#contact_form textarea {
    background-color: rgba(255, 255, 255, 0.9);
    border: 0;
    padding: 9px;
    border-radius: 5px;
    color: black;
    font-size: 1em;
    font-family: 'Roboto', sans-serif;
}

@media screen and (max-width: 1200px) {
    #information {
        width: 100%;
        margin-top: 10px;
    }

    #modal_content {
        display: block;
    }
}

@media screen and (max-width: 940px) {
    .card:nth-child(2) {
        transform: translateY(0);
    }

    .card {
        margin: 5px;
    }

}

@media screen and (max-width: 635px) {
    #about-container {
        justify-content: center;
    }

}

@media screen and (max-width: 645px) {
    #about-container {
        justify-content: center;
    }

    .card {
        position: relative;
        display: flex;
        flex-direction: row;
        max-height: 50px;
        overflow: hidden;
        width: 400px;
    }

    .card .icon {
        height: 100%;
        min-width: 65px;
        background: linear-gradient(to right, transparent, rgba(147, 149, 152, 0.59)) !important;
        border-radius: 10px 0 0 10px;
    }

    .card .content h3 {
        margin: 15px;
    }

    .card .content p{
        margin: 0 auto 20px auto;
    }

    .card.expanded {
        max-height: 150px;
    }

    .arrows.exp_col {
        display: block;
    }

    .card.expanded .exp_col {
        transform: rotate(180deg);
    }
}

@media screen and (max-width: 500px) {

    header h2 {
        font-size: 1.5em;
    }

    header h1 {
        font-size: 3em;
    }

    #links div {
        margin-right: 18px;
    }

    #content .project,
    .card {
        width: 100%;
    }

    #contact_form {
        grid-template-columns: 1fr;
    }
}