* {
    box-sizing: border-box;
}

body {
    background-color: #000000;
    color: rgb(6,218,6);
    text-align: center;
    font-family: 'Ubuntu', sans-serif;
}

header {
    background-color: rgb(1,1,1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    top: 0;
    left: 0;
    right: 0;
    font-family: 'Raleway', sans-serif;
    position: fixed;
    height: 50px;
    border-bottom: rgb(255,255,255) 1px solid;
    z-index: 100;
}

a {
    text-decoration: none;
}

/**
 * NAVBAR  
 */
nav {
    padding-right: 20px;
    display: flex;
    justify-content: flex-end;
}

nav ul {
    display: flex;
    flex-direction: row;
    background-color: transparent;
}

nav li {
    padding: 5px 5px;
    list-style-type: none;
    text-transform: uppercase;
    font-size: 15px;
    color: rgb(6,218,6);
    transition: ease-in-out 0.5s;
}

nav li.active {
    background-color: rgb(6,218,6);
    color: rgb(255,255,255);
    animation: blink-nav-anim 1s steps(2,start) infinite;
}
@keyframes blink-nav-anim {
    to {
        background-color: transparent;
        color: rgb(6,218,6);
    }
}

nav li:hover {
    cursor: pointer;
    color: rgb(255,255,255);
    transition: ease-in-out 0.5s;
}

/**
 * HEADER
 */
header h2 {
    padding-left: 5px;
    font-size: 20px;
    color: rgb(6,218,6);
    transition: ease-in-out 1s;
}

header h2:hover {
    cursor: pointer;
    color: rgb(255,255,255);
    text-decoration: underline;
    transition: ease-in-out 1s;
}


.hamburger {
    display: none;
    font-size: 20px;
}

/**
 * SECTION
 */
 section {
    height: 90vh;
}

section h2 {
    font-size: 48px;
}

/**
 * INTRO
 */
.intro-section {
    /* padding: 0 0; */
    margin-top: 50px;
}

.intro-text { 
    padding: 30vh 0;
    font-size: 10vmin;
}

.cursor {
    border-right: 5vmin solid rgb(255,255,255);
    animation: blinking-cursor 1s steps(2,start) infinite;
}
@keyframes blinking-cursor {
    to {
        opacity: 0;
    }
}

/** 
 * ABOUT
 */
.about-container {
    height: 70vh;
    background: linear-gradient(rgba(1,1,1,0.8),rgba(1,1,1,0.8)),url('../assets/code_intro.png') ;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    padding-top: 15vmin;
    overflow: scroll;
}

.about-text {
    font-size: 4vmin;
    padding: 0 20px;
}


/**
 * SKILLS
 */
.skills-cat {
    padding-top: 2vmin;
    padding-bottom: 2vmin;
}

.skills-cat h3 {
    font-size: 4vmin;
    text-decoration: underline;
}

.skills-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-self: center;
}

.skills-container span {
    display: flex;
    align-items: center;
    margin-left: 1vmin;
    margin-right: 1vmin;
    font-size: 4vmin;
    transition: ease 1s;
}

.skills-container span:hover {
    cursor: pointer;
    color: rgb(255,255,255);
    text-transform: uppercase;
    transition: ease 1s;
}

.skills-brand {
    height: 5vmin;
    width: 5vmin;
    background-color: rgb(255,255,255);
    border-radius: 50%;
    margin: 1vmin;
}


/**
 * PROJECT
 */
.project-container {
    padding: 20px;
    position: relative;
}

.project-item {
    display: none;
    flex-direction: row;
    justify-content: space-around;
    background-size: 1000% 1000%;
    background-color: rgb(31,32,31);
    border-radius: 15px;
    width: 75vw;
    height: 60vh;
    margin: 0 auto;
}

.project-item.active {
    display: flex;
}

.project-descrp {
    width: 20vw;
    overflow: auto;
    background-color: rgb(1,1,1);
    padding: 20px;
}

.project-descrp a {
    text-decoration: none;
    color: rgb(255,255,255);
}

.project-preview {
    padding: 20px;
    height: 50vmin;
    width: 60vmin;
    transition: ease 0.5s ;
    margin: 0 auto;
    object-fit: scale-down;
}

.project-text {
    font-family: 'Poppins', sans-serif;
    text-align: left;
}

.links-container {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    padding-bottom: 20px;
}

.prev-button, .next-button {
    font-size: 10vmin;
    color: rgb(255,255,255);
    cursor: pointer;
}

.prev-button {
    position: absolute;
    top: 45%;
    left: 5%;
}

.next-button {
    position: absolute;
    top: 45%;
    right: 5%;
}


/**
 * CONTACT
 */
.contact-section {
    border-bottom: 1px solid rgb(6,218,6);
    height: 70vmin;
    position: relative;
}

.social-links-nav {
    position: absolute;
    padding-top: 5vmin;
    left: 40%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    align-content: space-between;
}

.social-links-btn {
    font-size: 5vmin;
    padding: 2vmin 5vmin;
}

.social-links-btn i {
    color: rgb(6,218,6);
    padding-right: 2vmin;
}

.social-links-btn a {
    color: rgb(6,218,6);
    padding-left: 2vmin;
}

.social-links-btn a:hover {
    color: rgb(255,255,255);
    transition: ease-in-out 0.5s;
}

/**
 * FOOTER
 */ 
footer {
    font-family: 'Raleway', sans-serif;
    height: 5vh;
}


/*** ========== MEDIA QUERY ========== ***/

@media screen and (max-width: 800px) {

    section h2 {
        font-size: 36px;
    }

    .nav-bar ul {
        position: absolute;
        margin-top: 20px;
        padding-top: 10px;
        padding-bottom: 10px;
        display: none;
        width: 50%;
        right: 0;
        border: 1px solid rgb(255,255,255);
        background-color: rgb(1,1,1);
    }

    .nav-bar.responsive ul {
        display: flex;
        flex-direction: column;
    }
    
    .nav-bar.responsive li {
        display: flex;
        align-self: flex-end;
        background-color: rgb(1,1,1);
        float: none;
        text-align: right;
    }

    .hamburger {
        display: block;
        position: absolute;
        top: 10px;
        right: 20px;
        padding: 3px 10px;
        border: 1px rgb(6,218,6) solid;
        border-radius: 5px; 
    }

    .hamburger:hover {
        cursor: pointer;
    }

    .project-item {
        flex-direction: column;
        
    }

    .project-preview {
        height: 40vmin;
        width: 48vmin;
    }

    .project-descrp {
        width: 75vw;
        overflow: auto;
    }

    .project-text {
        padding: 5vmin;
    }

    .social-links-nav {
        padding-top: 4vmin;
    }
}

@media screen and (max-width: 500px) {

    header h2 {
        font-size: 14px;
    }

    section h2 {
        font-size: 24px;
    }

    .skills-container {
        flex-wrap: wrap;
    }

    .social-links-nav {
        padding-top: 2vmin;
    }
}