@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

:root {
    --primary-color:#6b7280;
    --primary-color-dark:#191919;
    --text-dark:#6b7280;
    --extra-light:#191919;
    --text-light:#f0f0f0;
    --max-width:1200px;
}

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

body {
     font-family: 'Poppins', sans-serif;
}

.hero {
    height: 100vh;
    width: 100%;
}

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: -2%;
    padding-left: 8%;
    padding-right: 8%;
}

.nav-content{
    max-width: var(--max-width);
    margin: auto;
    padding: 1.5rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

nav .logo a {
    color: white;
    font-size: 3rem;
    letter-spacing: 1px;
    cursor: pointer;
    
}

.btn {
    background-color: gray;
    color: white;
    text-decoration: none;
    border: .1rem solid transparent;
    font-weight: bold;
    padding: 1rem 2rem;
    border-radius: 27rem;
    transition: transform .4s;
}

.btn:hover {
    transform: scale(1.2);
}


.btn2 {
    background-color: gray;
    color: white;
    text-decoration: none;
    border: .1rem solid transparent;
    font-weight: bold;
    padding: 1rem 2rem;
    border-radius: 27rem;
    transition: transform .4s;
}

.btn2:hover {
    transform: scale(1.2);
}

.Subbtn {
    background-color: gray;
    color: white;
    text-decoration: none;
    border: 1px solid transparent;
    font-weight: bold;
    padding: 1rem 2rem;
    border-radius: 27rem;
    transition: transform .4s;
    scale: 1rem;
}

.Subbtn:hover {
    transform: scale(1.2);
}


nav .logo a:hover {
    color: var(--primary-color-dark);
    cursor: pointer;
}

nav .checkbox {
    display: none;
}

nav input {
    display: none;
}

nav .checkbox i {
    font-size: 2rem;
    color: var(--primary-color);
    cursor: pointer;
}

ul {
    display: flex;
    align-items: center;
    gap: 1rem;
    list-style: none;
    transition: left 0.3s;
    position: relative;
}


ul li a {
    text-decoration: none;
    padding: 0.5rem 1rem;
    border: 2px solid transparent;
    font-weight: 600;
    color: var(--text-dark);
    transition: 0.3s;
    border-radius: 3rem;
}

ul li a:hover {
    border-color: var(--extra-light);
    color: var(--primary-color-dark);
}

section {
    background: var(--extra-light);
}

.section-container {
    min-height: 100vh;
    max-width: var(--max-width);
    margin: auto;
    padding: 1rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem;
}

.content {
    display: flex;
    justify-content: center;
    flex-direction: column;
}

.subtitle {
    letter-spacing: 2px;
    color: var(--text-light);
    font-weight: 600;
    margin-bottom: .5rem;
}

.title {
    font-size: 2.5rem;
    font-weight: 400;
    line-height: 3rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.title span {
    font-weight: 600;
    color: #fff;
}

span {
    color: #101010;
}

span a {
    position: fixed;
    color: #fff;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
}


.description {
    line-height: 1.5rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.action-btns {
    display: flex;
    gap: 1rem;
}

.action-btns button {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 2px;
    padding: 1rem 2rem;
    outline: none;
    border: 2px solid var(--primary-color);
    border-radius: 3rem;
    transition: .3s;
    cursor: pointer;
}

.hire-me {
    background: var(--primary-color);
    color: #fff;
}

.hire-me:hover {
    background: var(--primary-color-dark);
}

.portfolio {
    background: var(--extra-light);
    color: var(--primary-color);
}

.portfolio:hover {
    background: var(--primary-color);
    color: #fff;
}


.image {
    display: grid;
    place-items: center;
}

.image img {
    width: min(25rem, 90%);
    border-radius: 100%;
}

.about {
    width: 100%;
    padding: 5rem 0rem;
    background-color: var(--primary-color-dark);
    background-position: cover;
}

.about a{
    text-decoration: none;
    color: rgb(161, 159, 159);
}

.about img {
    max-height: fit-content;
    width: 27rem;
}

.about-text {
    width: 550px;
    text-decoration: none;
}

.main {
    width: 1130px;
    max-width: 95%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-around;
}

.about-text h2 {
    color: whitesmoke;
    font-size: 75px;
    text-transform: capitalize;
    margin-bottom: 20px;
}

.about-text h5 {
    color: whitesmoke;
    letter-spacing: 2px;
    font-size: 22px;
    margin-bottom: 25px;
    text-transform: capitalize;
}

.about-text h6 {
    color: whitesmoke;
    letter-spacing: 2px;
    font-size: 22px;
    margin-bottom: 25px;
    text-transform: capitalize;
}

.about-text p {
    color: #f0f0f0;
    letter-spacing: 1px;
    line-height: 28px;
    font-size: 18px;
    margin-bottom: 45px;
}

button {
    background-color: gray;
    color: whitesmoke;
    text-decoration: none;
    border: 2px solid transparent;
    font-weight: bold;
    padding: 13px 30px;
    border-radius: 30px;
    transition: .4s;
}

button:hover {
    background-color: transparent;
    border: 2px solid gray;
    cursor: pointer;
}

.title h2 {
    color: whitesmoke;
    font-size: 75px;
    width: 100%;
    margin: 30px auto;
    text-align: center;
}


.contact-me {
    width: 100%;
    height: 290px;
    background: #191919;
    display: flex;
    text-align: center;
    align-items: center;
    flex-direction: column;
    justify-content: center;
}

.contact-me p {
    color: whitesmoke;
    font-size: 30px;
    font-weight: bold;
    margin-bottom: 25px;
}

.contact-me .button-two {
    background-color: gray;
    color: whitesmoke;
    text-decoration: none;
    border: 2px solid transparent;
    font-weight: bold;
    padding: 13px 30px;
    border-radius: 30px;
    transition: .4s;
}

.contact-me .button-two:hover {
    background-color: transparent;
    border: 2px solid whitesmoke;
    cursor: pointer;
}

footer {
    position: relative;
    width: 100%;
    height: 400px;
    background: #101010;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

footer p:nth-child(1) {
    font-size: 30px;
    color: whitesmoke;
    margin-bottom: 20px;
    font-weight: bold;
}

footer p:nth-child(2) {
    color: whitesmoke;
    font-size: 17px;
    width: 500px;
    text-align: center;
    line-height: 26px;
}

.social {
    display: flex;
}

.social a {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: gray;
    border-radius: 50%;
    margin: 22px 10px;
    color: whitesmoke;
    text-decoration: none;
    font-size: 20px;
}

.social a:hover {
    transform: scale(1.3);
    transition: .3s;
}


.end {
    position: absolute;
    color: whitesmoke;
    bottom: 35px;
    font-size: 20px;
}

.scrollup {
    position: fixed;
    bottom: 800px;
    right: 40px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-size: 40px;
    background-position: center;
    background-repeat: no-repeat;
    cursor: pointer;
    z-index: 100000;
    visibility: hidden;
    opacity: 0;
    transition: 0.5s;
    text-decoration: none;
    font-size: 3rem;
}

.scrollup.active {
    bottom: 40px;
    visibility: visible;
    opacity: 1;
}

@media(width < 750px){

    nav .checkbox {
        display: block;
    }

    ul {
        position: absolute;
        width: 100%;
        height: calc(100vh - 85px);
        left: -100%;
        top: 85px;
        background: var(--extra-light);
        flex-direction: column;
        justify-content: center;
        gap: 3rem;
    }

    nav #check:checked ~ ul {
        left:0;
    }

    ul li a {
        font-size: 1.25rem;
    }

    .section-container {
        padding: 10rem 1rem 5rem 1rem;
        text-align: center;
        grid-template-columns: repeat(1, 1fr);
    }

    .image {
        grid-area: 1/1/2/2;
    }

    .action-btns {
        margin: auto;
    }

}