*{
    margin:0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    box-sizing: border-box;
}
html{
    scroll-behavior: smooth;
}

body{
    background: #080808;
    color: #080808;
}
#header{
    width: 100%;
    height: 100vh;
    background-image: url(images/background.png);
    background-size: cover;
    background-position: center;

}

.container{
    padding: 10px 10%;

}

nav{
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.logo{
    padding-top: 20px;
    width: 50px;
}

/* links */
nav ul li{
    display: inline-block; /* horizontally aligns */
    list-style: none;
    margin: 10px 20px; 

}

nav ul li a{
    color: rgb(29, 95, 14);
    text-decoration: none;
    font-size: 18px;
    font-weight: 100;
    position: relative;
}

nav ul li a::after{
    content: '';
    width: 0%; /* 0% makes line hidden */
    height: 2px;
    background: rgb(159, 199, 152);
    position: absolute;
    left: 0;
    bottom: -6px; 
    transition: 0.5s;
}

nav ul li a:hover::after{
    width: 100%;

}

.header-text{
    color: rgb(29, 95, 14);
    margin-left: -80px;
    margin-top: 20%;
    font-size: 50px;
}

.header-text h1{
font-weight: 1000;
color: #080808;
font-size: 90px;
margin-top: 20px;
}


/********** ABOUT ME SECTION *********/



#about{
    padding: 80px 0;  /*80px from top+bottom 0 from left+right*/
    color: rgb(203, 208, 212); /* text color */
    background-color: rgb(0, 0, 0);
}

.row{
    display: flex; /* flex display = contents side by side*/
    justify-content: space-between;
    flex-wrap: wrap;
}

.about-col-1{
    flex-basis: 50%; /*width of left column takes 50%*/
}
/* image will take 100% of container's width*/
.about-col-1 img{
    width: 100%;
    border-radius: 15px; /*rounds corners of image*/
} 

/* about paragraph */
.about-col-2{
    flex-basis: 45%; /*leaves 5% between columns%*/
    line-height: 1.75; /* spacing between lines */
}

/*"About Me" subtitle */
.subtitle{
    font-size: 60px;
    font-weight: 600;
    color: white;
}

.tab-titles{
    display: flex;
    margin: 20px 0 40px; /* 20 from top 0 from left right 40 from bottom*/
}

.tab-links{
    margin-right: 50px;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer; /*changes cursor to pointer like a link*/
    position: relative; /*side-by-side placement */
}
.tab-links::after{
    content: '';
    width: 0; /*0 width hides line*/
    height: 3px;
    background: rgb(56, 94, 49);
    position: absolute;
    left: 0;
    bottom: -8px;
    transition: 0.5s;
}

.tab-links.active-link::after{
    width: 100% /*line visible for "active link" section*/
}

.tab-contents ul li{
    list-style: none;
    margin: 10px 0;
    font-size: 18px;
}

/*list titles in span*/
.tab-contents ul li span{
    color: rgb(66, 110, 58);
    font-size: 18px;
}

.tab-contents{
    display: none; /* hides all tab contents*/
}

.tab-contents.active-tab{
    display: block; /* mackes active tab visible*/
}

/*********** PORTFOLIO SECTION *********/
#portfolio{
    position: relative;
    overflow: hidden;       /* hides things that overflow out of section*/
    height: 100vh;          /* height = 100% of browser height */
    background-image: url(images/background2.jpg);
    background-size: cover;
    background-position: center;
    
}  
.portfolio{
    position: relative;
    height: 100%;      /* portfolio content fills section 100%  */
}
.portfolio-subtitle{
    position: absolute;     /* positioned manually */
    left: 2%;                /* positioned 2% away from left and bottom*/
    bottom: 2%;
    font-size: clamp(40px, 8vw, 120px); /* 40px minimum, 8% of screen width for scaling, 120px max*/
}
.github-link{
    position: absolute;
    left: 38%;
    top: 60px;
    width: clamp(220px, 25vw, 400px);
    z-index: 3;         /* place clickable area in front of everything else*/
    cursor: pointer; /*changes cursor to pointer like a link*/
}
.github-logo{
    display: block;
    width: clamp(220px, 25vw, 400px);
}
.hold-img{
    position: absolute;     /* positioned manually */
    width: 60%;
    right: 0;               /* image positioned at bottom right side */
    bottom: 0;
    pointer-events: none;            
}

/************** CONTACT SECTION *************/
.subtitle-contact{
    padding-top: 10%;
}

.contact-left{
    flex-basis: 35%;
}

.contact-right{
    flex-basis: 60%;
}

.contact-left p{
    color: white;
}
.contact-left p i{
    margin-top: 30px;
    color: rgb(159, 199, 152);
    margin-right: 15px;
    font-size: 20px;
}

.social-icons{
    margin-top: 30px;
}
.social-icons a{
    text-decoration: none;
    font-size: 30px;
    margin-right: 15px;
    color: #ababab;
    display: inline-block;
    transition: transform 0.5s;
}
.social-icons a:hover{
    color: rgb(159, 199, 152);
    transform: translateY(-5px); /* move icon up 5 px on hover */
}

.btn{
    display: block;
    margin: 50px auto;
    width: fit-content;
    border: 1px solid rgb(159,199,152);
    padding: 14px 50px;
    border-radius: 6px;
    text-decoration: none;
    color: #fff;
    transition: background 0.5;
    cursor: pointer;
}

.btn.btn2{
    display: inline-block;
    background: rgb(159, 199, 152);

}

.contact-right form{
    width: 100%;
}

form input, form textarea{
    width: 100%;
    border: 0;
    outline: none;
    background: #262626;
    padding: 15px;
    margin: 15px;
    color: #fff;
    font-size: 18px;
    border-radius: 6px;
}

form btn2{
    padding: 14px 60px;
    font-size: 18px;
    margin-top: 20px;
    cursor: pointer;
}

.copyright{
    color: #ababab;
    width: 100%;
    text-align: center;
    padding: 25px;
    background: #262626;
    font-weight: 300;
    margin-top: 20px;
}

/*********** SMALL SCREEN CSS **************/
nav .fa-solid{
    display: none; /* hides small screen icons by default */
}
/* for screens <600px width */
@media only screen and (max-width:600px){
    #header{
        background-image: url(images/phone-background.jpg);
    }
    .header-text{
        margin-top: 12%;
        font-size: 25px; /* change font size */
        margin-left: 0px;
    }
    .header-text h1{
        margin-left: 0%;
        font-size: 37px;
    }
    .logo{
    padding-top: 10px;
    width: 30px;
    }
    nav .fa-solid{
        display: block;
        font-size: 25px;
    }
    nav ul{
        background: rgb(93, 147, 84);
        position: fixed;
        top: 0;
        right: -200px; /* move -200px hides it off the edge*/
        width: 200px;
        height: 100vh;
        padding-top: 50px;
        z-index: 2; 
        transition: right 0.5s ;
    }
    nav ul li{
        display: block;
        margin: 25px;
    }
    nav ul .fa-solid{
        position: absolute;
        top: 25px;
        left: 25px;
        cursor: pointer;
        color: #133511;
    }
    .subtitle{
        font-size: 40px;
    }
    .about-col-1, .about-col-2{
        flex-basis: 100%; /* image size will fill screen */
    }
    .about-col-1{
        margin-bottom: 30px;
    }
    .about-col-2{
        font-size: 14px;
    }
    .tab-links{
        font-size: 16px;
        margin-right: 20px;
    }

    /***************** portfolio section ****************/
    #portfolio{ 
        background-image: url(images/phone-background2.jpg);
        color: #133511;
    }
    .hold-img{
        display: none;
        width: 100%;
    }
    .portfolio-subtitle{
        position: absolute;     /* positioned manually */
        left: 3%;                /* positioned 2% away from left and bottom*/
        top: 12%;
        font-size: 72px; /* 40px minimum, 8% of screen width for scaling, 120px max*/
    }
    .github-link{
        position: absolute;
        left: 5%;
        top: 52%;
        width: 150px;
        z-index: 3;         /* place clickable area in front of everything else*/
        cursor: pointer; /*changes cursor to pointer like a link*/
    }
    .github-logo{
        position: absolute;
        display: block;
        width: clamp(150px, 10vw, 150px);
    }

    /***************** contact section ****************/
    .contact-left, .contact-right {
        flex-basis: 100%;
    }
    .copyright{
        font-size: 14px;
    }
}
#msg{
    color: #61b752;
    margin-top: -40px;
    display: block;

}

