:root {
    --brown: #4a4646;
    --black: #000;
    --white: #fff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

.container {
    width: 90%;
    margin: 0px auto;
    padding-left: 15px;
    padding-right: 15px;
}

.inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.padding-both-120 {
    padding-top: 120px;
    padding-bottom: 120px;
}

.padding-top-120 {
    padding-top: 120px;
}

.margin-top-30 {
    margin-top: 30px;
}

.display-flex {
    display: flex;
}

.justify-space-between {
    justify-content: space-between;
}

h2 {
    font-family: 'Handlee', cursive;
    font-size: 1.5rem;
}

h3 {
    font-family: 'Handlee', cursive;
    font-size: 1.25rem;
}

p {
    font-size: 1rem;
    line-height: 35px;
}

.text-center {
    text-align: center;
}

.margin-top-10 {
    margin-top: 10px;
}

.margin-top-20 {
    margin-top: 20px;
}

.box {
    width: 45%;
}

header {
    padding: 15px;
    position: fixed;
    width: 100%;
    background-color: var(--white);
    transition: 0.3s;
    z-index: 1;
}

header>div {
    max-width: 1200px;
    margin: 0 auto;
}

header p {
    font-size: 1.125rem;
}

header #logo span {
    color: var(--brown);
}

header nav ul {
    gap: 40px;
}

header li {
    list-style: none;
    font-size: 1rem;
}

header #hamburger-icon {
    display: none;
    cursor: pointer;
}

nav a {
    position: relative;
    text-decoration: none;
    color: var(--black);
}

nav li a:after {
    content: " ";
    position: absolute;
    background-color: var(--brown);
    height: 2px;
    left: 0;
    bottom: -5px;
    width: 0;
    transition: 0.3s;
}

nav a:hover:after,
nav a.active:after {
    width: 100%;
}

nav a:hover,
nav a.active {
    color: #4a4646;
}

#home {
    position: relative;
    top: 65px;
    flex-direction: column;
    min-height: calc(100vh - 65px);
    padding-left: 15px;
    padding-right: 15px;
}

#home h1 {
    font-family: 'Handlee', cursive;
    font-size: 2.5rem;
    font-weight: 900;
}

#home p {
    margin: 20px 0px 30px 0px;
    font-size: 1.5rem;
}

button {
    background-color: var(--brown);
    padding: 10px 22px 10px 22px;
    color: var(--white);
    font-size: 1rem;
    border: 0;
    cursor: pointer;
    transition: 0.3s;
    border-radius: 30px;
}

button a {
    text-decoration: none;
    color:#fff;
}

#home button:last-child a {
    text-decoration: none;
    color: var(--black);
}

button:hover {
    transform: translateY(-1px);
    box-shadow: 5px 5px 10px 2px #4a4646;
}

.btns button:last-child {
    margin-left: 15px;
    color: var(--black);
    background-color: transparent;
    box-shadow: 5px 5px 10px 2px rgb(0 0 0 / 13%);
}

.btns button:last-child:hover {
    transform: none;
}

#home button i {
    margin-left: 5px;
}

#about li,
#project li {
    list-style: none;
    line-height: 35px;
    font-size: 1rem;
}

#about .show-skills>div {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}

#project .box {
    width: 48%;
}

#project img {
    width: 100%;
}

#project i {
    color: var(--brown);
    margin-right: 5px;
}

#project button {
    margin-top: 30px;
}

#contact .form {
    width: 70%;
    margin-left: auto;
    margin-right: auto;
}

#contact form div:nth-child(2) {
    margin: 30px 0;
}

#contact input,
#contact textarea {
    width: 100%;
    outline: none;
    border: 1px solid var(--black);
    padding: 10px;
    font-size: 1rem;
}

#contact textarea {
    resize: none;
}

#contact input::placeholder,
textarea::placeholder {
    color: var(--black);
    font-weight: 400;
    font-size: 1rem;
}

#contact button {
    display: block;
    margin: 40px auto 0 auto;
}

form span {
    display: block;
    margin-top: 10px;
    color: red;
}

footer {
    background-color: var(--brown);
    padding: 15px 0;
    color: var(--white);
}

.social-links a {
    color: var(--white);
}

.social-links {
    gap: 10px;
}

@media only screen and (max-width:1024px) {
    .container {
        width: 100%;
    }

    #contact .form {
        width: 90%;
    }
}

@media only screen and (max-width:768px) {
    html {
        font-size: 14px;
    }

    #home h1 {
        font-size: 2.5rem;
    }

    nav {
        display: none;
    }

    header #hamburger-icon {
        display: block;
    }

    .flex-column {
        flex-direction: column;
        gap: 30px;
    }

    .flex-column-reverse {
        flex-direction: column-reverse;
        gap: 30px;
    }

    .box,
    #project .box {
        width: 100%;
    }

    .padding-both-80 {
        padding-top: 80px;
        padding-bottom: 80px;
    }

    .padding-top-80 {
        padding-top: 80px;
    }

    nav.active{
        display: block;
        width: 100%;
        position: absolute;
        top: 55px;
        left: 0px;
    }
 
    nav.active .inner{
        display: flex;
        flex-direction: column;
        background-color: #fff;
        padding-top:20px;
    }
}

@media only screen and (max-width:425px) {
    #home h1 {
        font-size: 2rem;
    }

    .btns {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    #contact .form {
        width: 100%;
    }

    footer>.inner {
        flex-direction: column;
        gap: 20px;
    }
}