@import url('https://fonts.googleapis.com/css2?family=Montserrat&display=swap');

/* High level CSS */
:root{
    --color : plum;
}
*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}
html{
    font-size: 12px;
    font-family: 'Montserrat', sans-serif;
}
a{
    text-decoration: none;
}
p{
    color: white;
    font-size: 1.5rem;
    text-align: left;
    line-height: 1.9rem;
    letter-spacing: .05rem;
}
.link_button {
    display: inline-block;
    padding: 10px 30px;
    color: var(--color);
    background-color: transparent;
    border: 2px solid var(--color);
    font-size: 2rem;
    text-transform: uppercase;
    letter-spacing: .1rem;
    margin-top: 30px;
    transition: .3s ease background-color;
}
.link_button:hover{
    color: white; 
    background-color: var(--color);   
}
.container{
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
img{
    height: 100%;
    width: 100%;
    object-fit: cover;
}
.section-header{
    font-size: 4rem;
    font-weight: 300;
    color: black;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: .2rem;
    text-align: center;
}
.section-header span{
    color: var(--color);
}
.connection-box{
    display: grid;
    grid-template-columns: 3;
    grid-template-rows: 1;
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
    padding: 10px;
}
.connection-box .github_icon{
    grid-row: 1;
    grid-column:1;
}
.connection-box .linkedin_icon{
    grid-row: 1;
    grid-column: 2;
}
.connection-box .email_icon{
    grid-row: 1;
    grid-column: 3;
}

/* Header section */
#header {
	position: fixed;
	z-index: 1000;
	left: 0;
	top: 0;
	width: 100vw;
	height: auto;
}
.header h1{
    color: var(--color);
}
#header .header {
	min-height: 8vh;
	background-color: rgba(31, 30, 30, 0.24);
	transition: 0.3s ease background-color;
}
#header .nav-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	height: 100%;
	max-width: 1300px;
	padding: 0 10px;
}
#header .nav-list ul {
	list-style: none;
	position: absolute;
	background-color: rgb(31, 30, 30);
	width: 100vw;
	height: 100vh;
	left: 100%;
	top: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	z-index: 1;
	overflow-x: hidden;
	transition: 0.5s ease left;
}
#header .nav-list ul.active {
	left: 0%;
}
#header .nav-list ul a {
	font-size: 2.5rem;
	font-weight: 500;
	letter-spacing: 0.2rem;
	text-decoration: none;
	color: white;
	text-transform: uppercase;
	padding: 20px;
	display: block;
}
#header .nav-list ul a::after {
	content: attr(data-after);
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%) scale(0);
	color: rgba(240, 248, 255, 0.021);
	font-size: 13rem;
	letter-spacing: 50px;
	z-index: -1;
	transition: 0.3s ease letter-spacing;
}
#header .nav-list ul li:hover a::after {
	transform: translate(-50%, -50%) scale(1);
	letter-spacing: initial;
}
#header .nav-list ul li:hover a {
	color: var(--color);
}
#header .hamburger {
	height: 60px;
	width: 60px;
	display: inline-block;
	border: 3px solid white;
	border-radius: 50%;
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 100;
	cursor: pointer;
	transform: scale(0.8);
	margin-right: 20px;
}
#header .hamburger:after {
	position: absolute;
	content: '';
	height: 100%;
	width: 100%;
	border-radius: 50%;
	border: 3px solid white;
	animation: hamburger_puls 1s ease infinite;
}
#header .hamburger .bar {
	height: 2px;
	width: 30px;
	position: relative;
	background-color: white;
	z-index: -1;
}
#header .hamburger .bar::after,
#header .hamburger .bar::before {
	content: '';
	position: absolute;
	height: 100%;
	width: 100%;
	left: 0;
	background-color: white;
	transition: 0.3s ease;
	transition-property: top, bottom;
}
#header .hamburger .bar::after {
	top: 8px;
}
#header .hamburger .bar::before {
	bottom: 8px;
}
#header .hamburger.active .bar::before {
	bottom: 0;
}
#header .hamburger.active .bar::after {
	top: 0;
}

/* Greeting Section */
.greeting {
    background-image: url(./images/colorado_background.jpg);
    background-size: cover;
    background-position: top center;
    position: relative; 
    z-index: 1;
}
.greeting::after{
    content: '';
    opacity: .4;
    position: absolute;
    left: 0;
    right: 0;
    height: 100%;
    width: 100%;
    background-color: black;
    z-index: -1;
}
.greeting .greeting{
    max-width: 1200px;
    margin:0 auto;
    padding: 0 50px;
    justify-content: 50px;
}
.greeting h1{
    display: block;
    width: fit-content;
    font-size: 4rem;
    position: relative;
    color: transparent;
    animation: text_reveal .5s ease forwards;
    animation-delay: 1s;
}
.greeting h1:nth-child(1){
    animation-delay: 1s;
}
.greeting h1:nth-child(2){
    animation-delay: 2s;
}
.greeting h1:nth-child(3){
    animation: text_reveal_name .5s ease forwards;
    animation-delay: 3s;
}
.greeting h1 span{
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background-color: var(--color);
    animation: text_reveal_box 1s ease;
    animation-delay: .5s;
}
.greeting h1:nth-child(1) span{
    animation-delay: .5s;
}
.greeting h1:nth-child(2) span{
    animation-delay: 1.5s;
}
.greeting h1:nth-child(3) span{
    animation-delay: 2.5s;
}
.greeting .link_button{
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 15px;
    margin-right: 15px;
} 

/* About Section */
.about{
    min-height: 80vh;
}
.about .about{
    flex-direction: column-reverse;
    text-align: center;
    width: 85%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 20px;
}
.about .col-left{
    width: 250px;
    height: 360px;
    margin-left: 100px;
    margin-right: 25px;
}
.about .col-left .about-image{
    position: relative;
    border: 10px solid white;
    height: 100%;
    width: 100%;
}
.about .col-left .about-image::after{
    content:'';
    position: absolute;
    left: -33px; 
    top: 19px;
    height: 98%;
    width:98%;
    border: 7px solid var(--color);
    z-index: -1;
}
.about .col-right{
    width: 100%;
    text-align: left;
    padding: 30px
}
.about .col-right h1{

    text-align: left;
}
.about .col-right h2{
    font-size: 1.8rem;
    font-weight: 500;
    letter-spacing: .2rem;
    margin-bottom: 10px;
}
.about .col-right p{
    margin-bottom: 20px;
    color: black;
}
.about .col-right .link_button{
    margin-bottom: 50px;
    padding: 10px 20px;
    font-size: 2rem;
    text-align: center;
}

/* Skills Section */
.skills {
    flex-direction: column;
    text-align: center;
    max-width: 1500px;
    margin: 0 auto;
    padding: 100px 0;
    min-height: 60vh;
}
.skills .skills-top p{
    color: black;
    font-size: 1.4rem;
    margin-top: 5px;
    line-height: 2.5rem;
    font-weight: 300;
    letter-spacing: .05rem;
}
.skills .skills-bottom{
    display: flex;
    align-items: center;
    justify-items: center;
    flex-wrap: wrap;
    margin-top: 50px;
}
.skills .skill_item{
    flex-basis: 80%;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
    padding: 30px;
    border-radius: 10px;
    background-image: url(./images/coffee_on_desk.jpg);
    background-size: cover;
    margin: 10px 5%;
    position: relative;
    z-index: 1;
}
.skills .skill_item:after{
    content:'';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    background-color: black;
    opacity: .5;
    z-index: -1;
}
.skills .skill_item h2{
    color: white;
    font-size: 2rem;
    margin-bottom: 10px;
    text-transform: uppercase;
}
.skills .skill_item p{
    text-align: left;
}
.skills .skills-bottom .icon{
    height: 50%;
    width: 50%;
    margin-bottom: 20px;
}

/* Projects Section */
.projects{
    flex-direction: column;
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 0; 
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    /* TODO: convert to grid display instead of flex? */
    /* display: grid;
    grid-template-columns: 2;
    grid-template-rows: 3;
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;    */
}
.projects .projects-top p{
    color: black;
    font-size: 1.4rem;
    margin-top: 5px;
    line-height: 2.5rem;
    font-weight: 300;
    letter-spacing: .05rem;
}
.projects .projects-list{
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    /* TODO: convert to grid display instead of flex? */
    /* display: grid;
    grid-template-columns: 2;
    grid-template-rows: 3;
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;   */
}
.projects .project-item{
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    width: 80%;
    margin: 20px auto;
    overflow: hidden;
    border-radius: 10px;
}
.projects .project-info{
    padding: 30px;
    flex-basis: 50%;
    height: 100%;
    width: 100%; /* Is this needed? */
    display: flex;
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
    background-color: var(--color);
}
.projects .project-info h1{
    font-size: 4rem;
    font-weight: 500;
    color:white;
}
.projects .project-info h2{
    font-size: 1.8rem;
    font-weight: 500;
    margin-top: 10px;
    color:white;
}
.projects .project-info p{
    color:white;
}
.projects .project-image {
    flex-basis: 50%;
    height: 300px;
    overflow: hidden;
    position: relative;
}
.projects .project-image:after{
    content: '';
    position: absolute;
    left:0;
    top:0;
    height: 100%;
    width: 100%;
    background-color: black;
    opacity: .5;
}
.projects .project-image img{
    transition: .3s ease transform;
}
.projects .project-item:hover .project-image img{
    transform: scale(1.1);
}

/* Contact Section */ 
.contact {
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}
.contact p{
    color: black;
    margin-top: 5px;
    text-align: center;
}

/* Footer Section */
.footer{
    background-image: linear-gradient(90deg, var(--color) 0%, rgb(41,50,60) 100%);
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}
.footer h2{
    padding-top: 10px;
    font-size: 1.4rem;
    font-weight: 500;
    color: white;
}

/* Keyframes */
@keyframes text_reveal_box {
    50%{
        width: 100%;
        left: 0;
    }
    100%{
        width: 0;
        left: 100%;
    }
}

@keyframes text_reveal {
    100%{
        color: white;
    }
}

@keyframes text_reveal_name {
    100%{
        color: var(--color);
        font-weight: 500px;
    }
}

/* Media Query for Larger Screens (Laptop/Desktop/etc) */
@media only screen and (min-width: 1200px ){
    	/* header */
	#header .hamburger {
		display: none;
	}
	#header .nav-list ul {
		position: initial;
		display: block;
		height: auto;
		width: fit-content;
		background-color: transparent;
	}
	.header .nav-list ul li {
		display: inline-block;
	}
	.header .nav-list ul li a {
		font-size: 1.8rem;
	}
	.header .nav-list ul a:after {
		display: none;
	}
	/* End header */

	.skills .skills-bottom .skill_item {
		flex-basis: 100%;
		margin: 1.5%;
	}
}

/* Media Query for Tablet */
@media only screen and (min-width: 480px ) and (max-width: 780px){
    .link_button {
		font-size: 2.5rem;
		padding: 20px 60px;
	}
	h1.section-header {
		font-size: 6rem;
	}

	/* Greeting Section */
	.greeting h1 {
		font-size: 4rem;
	}

	.skills .skills-bottom .skills-item {
		flex-basis: 45%;
		margin: 2.5%;
	}

	/* Project */
	.projects .project-item {
		flex-direction: row;
	}
	.projects .project-item:nth-child(even) {
		flex-direction: row-reverse;
	}
	.projects .project-item {
		height: 400px;
		margin: 0;
		width: 100%;
		border-radius: 0;
	}
	.projects .projects-list .project-info {
		height: 100%;
	}
	.projects .projects-list .project-image {
		height: 100%;
	}

	/* About */
	.about .about {
		flex-direction: row;
	}
	.about .col-left {
		width: 600px;
		height: 400px;
		padding-left: 60px;
	}
	.about .about .col-left .about-image::after {
		left: -45px;
		top: 34px;
		height: 98%;
		width: 98%;
		border: 10px solid var(--color);
	}
	.about .col-right {
		text-align: left;
		padding: 30px;
	}
	.about .col-right h1 {
		text-align: left;
	}
}

/* Media Query for Mobile/Phones */
@media only screen and (min-width: 100px ) and (max-width: 479px){
        .link_button {
            font-size: 1.5rem;
        }
        /* Greeting Section */
        .greeting h1 {
            font-size: 4rem;
        }
        h1.section-header {
            font-size: 4rem;
        }
    
        /* About */
        .about .about {
            flex-direction: row;
        }
        /* Hide Picture on mobile */
        .about .col-left {
            display: none;
        }
        .about .about .col-left .about-image::after {
            left: -45px;
            top: 34px;
            height: 98%;
            width: 98%;
            border: 10px solid var(--color);
        }
        .about .col-right {
            text-align: center;
            padding: 30px;
        }
        .about .col-right h1 {
            text-align: center;
        }
        .about .link_button{
            width: 90%;
            margin: 0;
        }

    
        .skills .skills-bottom .skills-item {
            flex-basis: 45%;
            margin: 2.5%;
        }
        .skills{
            padding-bottom: 0;
        }

        /* Project */
        .projects{
            padding-bottom: 0;
        }
        .projects-list{
            width: fit-content;
        }
        .projects .project-item {
            flex-direction: row;
        }
        .projects .project-item:nth-child(even) {
            flex-direction: row-reverse;
        }
        .projects .project-item {
            height: fit-content;
            min-width: none;
            width: 95%;
            max-width: max-content;
        }
        .project-image{
            display: none;
        }
        .projects .projects-list .project-info {
            height: 100%;
        }
        .projects .projects-list .project-image {
            height: 100%;
        }

}