/* ===== Google Font Import - Poppins ===== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600&display=swap');

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    list-style: none;
    text-decoration: none;
    scroll-behavior: smooth;
    scroll-padding-top: 3.5rem;
}

:root {
    --bg-color: #101010;
    --secound-bg-color: #191919;
    --text-color: #fff;
    --secound-color: #c6c9d8bf;
    --main-color: #3498DB;
    --big-font: 5.3rem;
    --h2-font: 4.2rem;
    --p-font: 1.1rem;
}

body {
    background: var(--bg-color);
    color: var(--text-color);
}

header {
    position: fixed;
    width: 100%;
    top: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: transparent;
    padding: 25px 15%;
    transition-duration: .3s;
}

.logo {
    color: var(--text-color);
    font-size: 30px;
    font-weight: bold;
    letter-spacing: 1px;
}

.navbar {
    display: flex;
}

.navbar li {
    position: relative;
}

.navbar a {
    color: var(--text-color);
    font-weight: bold;
    font-size: 1rem;
    padding: 10px 20px;
}

.navbar a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--main-color);
    left: 0;
    bottom: -4px;
    transition: ease .40s;
}

.navbar a:hover::after {
    width: 100%;
}

#menu-icon {
    font-size: 32px;
    color: var(--text-color);
    z-index: 10001;
    cursor: pointer;
    display: none;
}

section {
    padding: 120px 15%;
}

.home {
    height: 100vh;
    width: 100%;
    background: url(../img/background\ 5.jpeg);
    background-size: cover;
    background-position: center;
    position: relative;
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    align-items: center;
}

.home-text h1 {
    margin: 20px 0px 20px;
    font-size: var(--big-font);
}

span {
    color: var(--main-color);
}

.home-text h3 {
    font-size: 25px;
    margin-bottom: 55px;
}

.home-text h4 {
    color: var(--text-color);
    font-size: 20px;
}

.newslatter form {
    width: 380px;
    max-width: 100%;
    position: relative;
}

header.sticky {
    padding: 12px 15%;
    background: var(--main-color);
}

.row .skill-box {
    width: 100%;
    margin: 25px 0;
}

.skill-box .title {
    display: block;
    font-size: 14px;
    font-weight: 600;
}

.skill-box .skill-bar {
    height: 8px;
    width: 100%;
    border-radius: 6px;
    margin-top: 6px;
    background: rgba(0, 0, 0, 0.1);
}

.skill-bar .skill-per {
    position: relative;
    display: block;
    height: 100%;
    border-radius: 6px;
    background: #4070f4;
    /* transition: width 1s ease-in-out, opacity 1s ease-in-out; */
    /* animation: progress 0.4s ease-in-out forwards; */
    opacity: 0;
}

.meta-data-analyzer-skills .skill-per.python {
    width: 70%;
    animation-delay: 0.1s;
}

.meta-data-analyzer-skills .skill-per.sql {
    width: 30%;
    animation-delay: 0.2s;
}

.meta-data-analyzer-skills .skill-per.api {
    width: 20%;
    animation-delay: 0.2s;
}

.cathod-energy-system .skill-per.python {
    width: 40%;
    animation-delay: 0.1s;
}

.cathod-energy-system .skill-per.ros {
    width: 60%;
    animation-delay: 0.1s;
}

.pos-system .skill-per.python {
    width: 80%;
    animation-delay: 0.1s;
}

.pos-system .skill-per.sql {
    width: 20%;
    animation-delay: 0.1s;
}

.data-analyzer .skill-per.typescript {
    width: 100%;
    animation-delay: 0.1s;
}

.mario-kart .skill-per.sql {
    width: 20%;
    animation-delay: 0.1s;
}

.mario-kart .skill-per.python {
    width: 30%;
    animation-delay: 0.1s;
}

.mario-kart .skill-per.c {
    width: 50%;
    animation-delay: 0.1s;
}

.weather .skill-per.python {
    width: 20%;
    animation-delay: 0.1s;
}

.weather .skill-per.api {
    width: 10%;
    animation-delay: 0.1s;
}

.weather .skill-per.c {
    width: 70%;
    animation-delay: 0.1s;
}

.animate-forward {
    animation: progress-forward 1s ease-in-out forwards;
}

.animate-backward {
    animation: progress-backward 1s ease-in-out forwards;
}


@keyframes progress-forward {
    0% {
        width: 0;
        opacity: 1;
    }

    100% {
        opacity: 1;
    }
}

@keyframes progress-backward {
    0% {
        opacity: 1;
    }

    100% {
        width: 0;
        opacity: 1;
    }
}

.skill-per .tooltip {
    position: absolute;
    right: -14px;
    top: -28px;
    font-size: 9px;
    font-weight: 500;
    color: #fff;
    padding: 2px 6px;
    border-radius: 3px;
    background: #4070f4;
    z-index: 1;
}

.tooltip::before {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -2px;
    height: 10px;
    width: 10px;
    z-index: -1;
    background-color: #4070f4;
    transform: translateX(-50%) rotate(45deg);
}

.sticky .navbar a::after {
    background: var(--text-color);
}

.about {
    background: var(--secound-bg-color);
    display: grid;
    grid-template-columns: repeat(2, 2fr);
    align-items: center;
    grid-gap: 2rem;
}

.about-img img {
    max-width: 100%;
    width: 500px;
    height: auto;
    border-radius: 15px;
    transition: all .30s;
}


.about-text h2 {
    font-size: var(--h2-font);
    margin-bottom: 20px;
}

.about-text h5 {
    font-size: 28px;
    margin-bottom: 25px;
    letter-spacing: 2px;
}

.emphasis {
    color: var(--main-color);
}

.about-text p {
    color: var(--secound-color);
    letter-spacing: 1px;
    line-height: 28px;
    max-width: 590px;
    font-size: var(--p-font);
    margin-bottom: 45px;
}

.about img:hover {
    transform: scale(1.1);
}


.btn {
    display: inline-block;
    background: var(--main-color);
    color: var(--text-color);
    border: 2px solid transparent;
    font-weight: 600;
    padding: 13px 30px;
    border-radius: 30px;
    transition: ease .35s;
}

.btn:hover {
    transform: translateY(4px);
    border: 2px solid var(--main-color);
    background: transparent;
}

.projects {
    background: var(--bg-color);
}

.center {
    text-align: center;
}

.center h2 {
    font-size: var(--h2-font);
    margin-bottom: 15px;
}

.center p {
    color: var(--secound-color);
    letter-spacing: 1px;
    line-height: 28px;
    font-size: var(--p-font);
}

.project-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(470px, auto));
    grid-gap: 2rem;
    align-items: center;
    margin-top: 4.5rem;
}

.row {
    background: var(--secound-bg-color);
    padding: 8% 8%;
    border-radius: 10px;
    cursor: pointer;
    transition: all .35s;
    height: 600px;
    width: 100%;
}

.row i {
    color: var(--main-color);
    margin-bottom: 20px;
    font-size: 2.7rem;
}

.row h3 {
    color: var(--text-color);
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 15px;
}

.row p {
    color: var(--secound-color);
    line-height: 30px;
    font-size: var(--p-font);
}

.row:hover {
    transform: translateY(8px);
}

.education {
    background: var(--bg-color);
}

.education-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(370px, auto));
    grid-gap: 2rem;
    align-items: center;
    margin-top: 4.5rem;
    cursor: pointer;
}

.box img {
    max-width: 100%;
    width: 500px;
    height: auto;
    border-radius: 10px;
    margin-bottom: 20px;
    transition: all .30s;
}

.box p {
    color: var(--secound-color);
    font-size: var(--p-font);
    margin-bottom: 15px;

}

.box h5 {
    color: var(--text-color);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
}

.contact {
    background: var(--secound-bg-color);
    display: grid;
    grid-template-columns: repeat(2, 2fr);
    align-items: center;
    grid-gap: 3rem;
}

.contact-img img {
    max-width: 100%;
    width: 500px;
    height: auto;
    border-radius: 10px;
}

.contact-form h2 {
    font-size: var(--h2-font);
    margin-bottom: 15px;
}

.contact-form p {
    color: var(--text-color);
    letter-spacing: 1px;
    line-height: 28px;
    font-size: var(--p-font);
    margin-bottom: 4.1rem;
}

.contact-form form {
    position: relative;
}

.contact-form form input,
form textarea {
    width: 100%;
    padding: 20px;
    border: none;
    outline: none;
    background: var(--bg-color);
    color: var(--text-color);
    font-size: 1rem;
    margin-bottom: 0.5rem;
    border-radius: 10px;
}

.contact-form textarea {
    resize: none;
    height: 200px;
}

.contact-form form .send {
    display: inline-block;
    background: var(--main-color);
    color: var(--text-color);
    font-size: 18px;
    font-weight: 700;
    border-radius: 30px;
    width: 200px;
    transition: ease .35s;
    text-transform: uppercase;
}

.contact-form form .send:hover {
    transform: translateY(8px);
    cursor: pointer;
}

.footer {
    text-align: center;
    background: var(--bg-color);
    padding: 34px;
}

.footer p {
    font-size: 17px;
    color: var(--secound-color);
    letter-spacing: 1px;

}

@media (max-width: 1270px) {
    header {
        padding: 18px 4%;
        transition: 0.2s;
    }

    header.sticky {
        padding: 10px 4%;
        transition: 0.2s;
    }

    section {
        padding: 80px 4%;
        transition: .2s;
    }

    :root {
        --big-font: 4.8rem;
        --h2-font: 3.8rem;
        --p-font: 1rem;
        transition: .2s;
    }
}

@media (max-width: 990px) {
    .home {
        height: 85vh;
    }

    #menu-icon {
        display: initial;
    }

    .navbar {
        position: absolute;
        top: -700px;
        left: 0;
        right: 0;
        flex-direction: column;
        background: var(--bg-color);
        text-align: left;
        transition: all .2s;
    }

    .navbar a {
        display: block;
        padding: 1.1rem;
        margin: 1.3rem;
        border-left: 2px solid var(--text-color);
    }

    .navbar a:hover {
        background: var(--main-color);
    }

    .navbar a::after {
        display: none;
    }

    .navbar.active {
        top: 100%;
    }

    .about {
        grid-template-columns: 1fr;
    }

    .about-img {
        text-align: center;
        margin-bottom: 30px;
    }

    .about-img img {
        max-width: 100%;
        width: 700px;
        height: auto;
    }

    .contact {
        grid-template-columns: 1fr;
    }

    .contact-img {
        text-align: center;
        margin-bottom: 25px;
    }

    .contact-form {
        order: 2;
    }

}