* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 14px;
}

main {
    margin-top: 8rem;
    z-index: 0;
}

body {
    margin: 0;
    background: #ffffff;
    font-family:'roboto', sans-serif;
    font-weight: 300;
}

.roboto-bold {
    font-family: "Roboto", sans-serif;
    font-weight: 700;
    font-style: normal;
}

.roboto-regular {
    font-family: "Roboto", sans-serif;
    font-weight: 400;
    font-style: normal;
}

.container{
    width: 80%;
    margin: 0 auto;
}

.container2 {
    max-width:1100px;
    margin: 0 auto;
    padding: 0 3rem;
    margin-top: 4rem;
    text-align: center;
}

header{
    background: #C7D59F;
    width: 100%;
    position: fixed;
    top: 0;
    font-size: 30px;
    z-index: 1;
}

h1 {
    color:black;
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: 9px;
    margin-bottom: 1rem;

}

.p2 {
    font-size: 1.4rem;
    color:rgba(4, 0, 0, 0.679);
    line-height: 2rem;
    margin-bottom: 3rem;
}

header::after{
    content: ' ';
    display: table;
    clear: both;

}
.logo{
    float: left;
    height: 100px;
}

.image {
    margin-top: 1rem;
    margin-bottom: 0rem;
}

nav{
    float: right;
}

nav ul{
    margin: 0;
    padding: 0;
    list-style: none;

}

nav li{
    display: inline-block;
    margin-left: 70px;
    padding-top: 25px;
    position: relative;
}

nav a{
    color: #4B5842;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 18px;
}

nav a:hover {
    color: #8FB339;
}

nav a::before{
    content: '';
    display: block;
    height: 5px;
    width: 0;
    background-color: #ffffff;
    position: absolute;
    bottom: 0;
    transition: all ease-in-out 250ms;
}

nav a:hover::before{
    width: 100%;
}

.portfolio-grid {
    margin-top: 08%;
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));

    padding-block: 2rem;
    width: min(95%, 65rem);
    margin-inline: auto;

}

.portfolio-card{
    background: #DADDD8;
    border-radius: 4%;
    padding-left: .5rem;
    padding-right: .5rem;
    padding-top: .5rem;

}

.grid-col-span-2{
    background: #DADDD8;
    grid-column: span 2;
}


.card__img {
    width : 100%;
    aspect-ratio: 1/ 1;
    object-fit: cover;
    border-radius: 10px 10px;
}

@media screen and (min-width: 60em) {
    header {
        background: #C7D59F;
    }

    .portfolio-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }

    .grid-col-span-3{
        background: #DADDD8;
        grid-column: span 3;
        max-height: 30rem;
    }
    
    .grid-col-span-3 .card__img{
        max-height: 20rem;
    }

    .card__img {
        width : 100%;
        aspect-ratio: 1/ 1;
        object-fit: fill;
        border-radius: 10px 10px;
    }
}

/*Contact code*/
.contact-container{
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
}
.contact-left{
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: 20px;
}
.contact-left-title h2{
    font-weight: 600;
    color:#4B5842;
    font-size: 40px;
    margin-bottom: 5px;
}

.contact-left-title hr{
    border: none;
    width: 120px;
    height: 5px;
    background-color: #DADDD8;
    border-radius: 10px;
    margin-bottom: 20px;
}
.contact-inputs{
    width: 400px;
    height: 50px;
    border: none;
    outline: none;
    padding-left: 25px;
    font-weight: 500px;
    color:black;
    border-radius: 50px;
    background-color: #DADDD8;
}
.contact-left textarea{
    height: 140px;
    padding-top: 15px;
    border-radius: 20px;
    background-color:#DADDD8;
}
.contact-inputs:focus{
    border: 2px solid #4B5842;
}
.contact-inputs::placeholder{
    color:#4B5842;
}
.contact-left button{
    display:flex;
    align-items:center;
    padding: 15px 30px;
    font-size: 16px;
    color: #ffffff;
    gap: 10px;
    border: none;
    border-radius: 50px;
    background: linear-gradient(270deg, #4B5842, #C7D59F);
    cursor: pointer;
}
.contact-left button img{
    height: 15px;
}
.contact-right img{
    width: 500px;
}

/* Resume code */
.resume-left{
    margin: 1in 1.5in;
    align-items: center; 
    position: absolute;
    top: 10px;

}
.resume-right{
    margin: 1in 2in;
    align-items: center;
    position: absolute;
    top: 150px;
    left: 600px;

}

/* article code*/

.article-container{
    width: 100%;
    text-align: center;
    background: linear-gradient(#C7D59F, #DADDD8);
}

.article-container p{
    text-align: left;
    padding: 10px;
}

.tab{
    display: inline-block;
    margin-left: 40px;
}

.portfolio-grid2 {
    margin-top: 08%;
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr 1fr;

    padding-block: 2rem;
    width: min(70%, 100rem);
    margin-inline: auto;
}