:root {
    --bg-color: #1f242d;
    --second-bg-color: #323946;
    --text-color: #fff;
    --main-color: #0F8;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
}

html {
    scroll-snap-type: y mandatory;
}

section {
    min-height: 100vh;
    padding: 7.5rem 9% 2rem;
    scroll-snap-align: start;
}

footer {
    scroll-snap-align: start;
}


.header {
    position: fixed;
    background: var(--bg-color);
    left: 0;
    top: 0;
    width: 100%;
    padding: 2rem 9%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

.header.sticky {
    border-bottom: .1rem solid rgba(0, 0, 0, .2);
}

.logo {
    font-size: 2rem;
    color: var(--text-color);
    font-weight: 500;
    cursor: default;
}

.navbar a {
    font-size: 1.2rem;
    color: var(--text-color);
    margin-left: 3rem;
    transition: .3s;
}

.navbar a:hover,
.navbar a.active{
    color: var(--main-color);
}

#menu-icon {
    font-size: 2rem;
    color: var(--text-color);
    display: none;
}

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

.home-content h3 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-top: 5px;
}

.home-content h3:nth-of-type(2) {
    margin-bottom: 2rem;
}

span {
    color: var(--main-color);
}

.home-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-top: 5px;
}

.home-content p {
    font-size: 1.4rem;
    line-height: 1.5rem;
    text-align: justify;
}

.home-img img{
    width: 35vw;
}

.social-media a{
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 3.8rem;
    height: 3.8rem;
    background: transparent;
    border: .2rem solid var(--main-color);
    border-radius: 50%;
    font-size: 1.8rem;
    color: var(--main-color);
    margin: 3rem 1.5rem 3rem 0;
    transition: .5s ease;
}

.social-media a:hover {
    background: var(--main-color);
    color: var(--second-bg-color);
    box-shadow: 0 0 1rem var(--main-color);
}

.btn {
    display: inline-block;
    padding: 1rem 1.8rem;
    background: var(--main-color);
    border-radius: 4rem;
    box-shadow: 0 0 0.5rem var(--main-color);
    font-size: 1.2rem;
    color: var(--second-bg-color);
    letter-spacing: .1rem;
    font-weight: 600;
    cursor: pointer;
}

.btn:hover {
    box-shadow: none;
}

.about {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    background: var(--second-bg-color);
}

.about-img img {
    width: 20vw;
}

.heading {
    text-align: center;
    font-size: 3rem;
    font-weight: bold;
}

.about-content h2 {
    text-align: left;
    line-height: 1.2;
}

.about-content h3 {
    font-size: 2.2rem;
    margin: 1rem 0 1rem;
}

.about-content p {
    font-size: 1.4rem;
    line-height: 1.5rem;
    text-align: justify;
    margin: 2rem 0 3rem;
}

.experience h2:first-child {
    margin-bottom: 2rem;
}

.experience-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.experience-container .experience-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1 1 30rem;
    background: var(--second-bg-color);
    padding: 15px 20px;
    border-radius: 2rem;
    text-align: center;
    border: .2rem solid var(--bg-color);
    transition: .3s ease;
    min-height: 280px;
}

.experience-container .experience-box:hover {
    border-color: var(--main-color);
    transform: scale(1.02);
}

.experience-box i {
    font-size: 2.5rem;
    color: var(--main-color);
}

.experience-box h2 {
    font-size: 1.8rem;
    padding-bottom: .5rem;
}

.experience-box h3 {
    font-size: 1.4rem;
    color: var(--main-color);
}

.experience-box p {
    font-size: 1.2rem;
    margin-top: 1rem;
}

.skills-name img {
    height: 60px;
}

.skills-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    padding-top: 20px;
}

.skills-container h2:first-child {
    color: var(--main-color);
    padding-bottom: 20px;
    font-size: 2rem;
    text-align: center;
}

.skills-container .skills-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: var(--second-bg-color);
    padding: 15px 20px;
    border-radius: 2rem;
    border: .2rem solid var(--bg-color);
    min-width: 80vw;
    transition: .3s ease;
}

.skills-container .skills-box:hover {
    border-color: var(--main-color);
    transform: scale(1.02);
}

.skills-name-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.skills-name {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
}

.projects-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

.projects h2:first-child {
    padding-bottom: 20px;
}

.projects-container .projects-box {
    position: relative;
    border-radius: 2rem;
    box-shadow: 0 0 1rem var(--bg-color);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    max-width: 350px;
    min-height: 470px;
    border: .2rem solid var(--bg-color);
}

.projects-box {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    text-align: center;
    gap: 5px;
    background: var(--second-bg-color);
    padding: 5px;
    transition: .3s ease;
}

.projects-container .projects-box:hover {
    border-color: var(--main-color);
    transform: scale(1.02);
}

.projects-box img {
    height: 225px;
    width: 100%;
}

.projects-box h2 {
    color: var(--main-color);
    font-size: 1.8rem;
    font-weight: 600;
}

.projects-box h3 {
    color: var(--main-color);
    font-size: 1.1rem;
}

.projects-box p{
    font-size: 1.2rem;
}

.projects-box i {
    color: var(--text-color);
    font-size: 2rem;
}

.projects-box i:hover {
    color: var(--main-color);
}

.contact h2 {
    padding-bottom: 20px;
}

.contact form {
    max-width: 70rem;
    margin: 1rem auto;
    text-align: center;
    margin-bottom: 3rem;
}

.contact form .input-box {
     display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.contact form .input-box input,
.contact form textarea {
    width: 100%;
    padding: 1.3rem;
    font-size: 1.3rem;
    color: var(--text-color);
    background: var(--second-bg-color);
    border-radius: .8rem;
    margin: .7rem 0;
    border: none;
}

.contact form .input-box input {
    width: 49%;
}

.contact form textarea {
    resize: none;
}

.contact form .btn {
    margin-top: 30px;
}

.footer {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    padding: 1.5rem 9%;
    background: var(--second-bg-color);
}

.footer p {
    font-size: 1.1rem;
    text-align: center;
}

@media all and (max-width: 1200px) {
    html {
        font-size: 85%;
    }
}

@media all and (max-width: 991px) {
    .header {
        padding: 2rem 3%;
    }

    section {
        padding: 10rem 3% 2rem;
    }

    .footer {
        padding: 2rem 3%;
    }
}

@media all and (max-width: 768px) {
    #menu-icon {
        display: block;
    }

    .navbar {
        position: absolute;
        text-align: center;
        top: 100%;
        left: 0;
        width: 100%;
        padding: 1rem 3%;
        background: var(--bg-color);
        border-top: .1rem solid rgba(0, 0, 0, .2);
        box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .2);
        display: none;
    }

    .navbar.active {
        display: block;
    }

    .navbar a {
        display: block;
        font-size: 1.6rem;
        margin: 3rem 0;
    }

    .home {
        flex-direction: column;
    }

    .home-content h3 {
        font-size: 2.6rem;
    }

    .home-content h1 {
        font-size: 4rem;
    }

    .home-img img {
        width: 70vw;
        margin-top: 4rem;
    }

    .about {
        flex-direction: column-reverse;
    }

    .about img {
        width: 70vw;
        margin-top: 4rem;
    }
}

@media all and (max-width: 450px) {

    html {
        font-size: 75%;
    }

    body {
        overflow-x: hidden;
        overflow-y: auto;
    }

    .contact form .input-box input {
        width: 100%;
    }

    .home-content h1 {
        font-size: 3.5rem;
    }

    .home-content h3 {
        font-size: 2rem;
    }
}
