@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');

* {
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

:root {
    --body-color: #FAFAFA;
    --box-color: #FFF;
    --nav-color: #ffffffec;
    --text-color: #444444;
    --text-color-second: #262525;
    --first-color: #8749F2;
    --first-color-hover: #663ac8;
    --first-shadow: rgba(0, 0, 0, 0.1);
    --nav-icon: #000;
    --logo-color: #000;
    --icon-color: #242526;
    --mode-color: #CCC;
    --color-white: #242526;
    --icon-slide-end: 216px;
}

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

body.dark {
    --body-color: #202425;
    --box-color: #262425;
    --nav-color: #262425ef;
    --text-color: #FFF;
    --text-color-second: #F4F4F4;
    --nav-icon: #FFF;
    --logo-color: #FFF;
    --icon-color: #8749F2;
    --mode-color: #FFF;
    --color-white: #FFF;
    --first-shadow: rgba(135, 73, 242, 0.22);
}

html {
    scroll-behavior: smooth;
}

a {
    color: inherit;
    text-decoration: none;
}

i {
    font-size: 16px;
}

.container {
    position: relative;
    width: 100%;
}

nav {
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 90px;
    background: var(--nav-color);
    padding-inline: 10vw;
    transition: 0.3s;
    z-index: 100;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--logo-color);
    font-size: 24px;
    font-weight: 700;
}

.nav-logo img {
    width: 58px;
    height: 58px;
    object-fit: contain;
}

.nav-name {
    color: var(--logo-color);
    font-size: 30px;
    font-weight: 600;
}

.nav-menu,
.nav_menu_list {
    display: flex;
    align-items: center;
}

.nav-menu .nav_list {
    position: relative;
    list-style: none;
}

.nav-link {
    color: var(--text-color);
    font-weight: 500;
    margin-inline: 10px;
    padding-inline: 12px;
    text-decoration: none;
}

.nav-link:hover,
.active-link {
    color: var(--first-color);
}

.active-link {
    position: relative;
    transition: 0.3s;
}

.active-link::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -14px;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background: var(--first-color);
}

.nav-menu-btn {
    display: none;
}

.nav-menu-btn i {
    color: var(--nav-icon);
    cursor: pointer;
    font-size: 28px;
}

.mode {
    display: flex;
    align-items: center;
}

.moon-sun {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    background-color: var(--mode-color);
}

.moon-sun :is(#moon, #sun) {
    position: absolute;
    transition: .2s ease-in-out;
}

#sun {
    opacity: 0;
    color: #242526;
}

body.dark #sun {
    opacity: 1;
}

body.dark #moon {
    opacity: 0;
}

.wrapper {
    padding-inline: 10vw;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    background-color: var(--first-color);
    color: #F4F4F4;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: var(--first-color-hover);
    color: #FFF;
}

.btn:active {
    background-color: #b82f68;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.btn a {
    color: #F4F4F4;
    text-decoration: none;
}

.secondary-btn {
    background-color: transparent;
    color: var(--first-color);
    box-shadow: inset 0 0 0 2px var(--first-color);
}

.text-btn {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.social_icons {
    position: relative;
    display: flex;
    gap: 32px;
    margin-top: 30px;
    margin-left: 5px;
}

.social_icons .icon,
.footer-social-icons > .icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: var(--icon-color);
    box-shadow: 0 1px 5px 3px rgba(135, 73, 242, 0.65);
    cursor: pointer;
}

.social_icons .icon i,
.footer-social-icons > .icon i {
    font-size: 17px;
}

.icon_circle {
    position: absolute;
    left: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    animation: iconSlide 4s infinite alternate;
}

@keyframes iconSlide {
    25% {
        border: 2px solid #E6D12E;
        left: 0;
    }

    50% {
        border: 2px solid #C40101;
        left: 72px;
    }

    75% {
        border: 2px solid #8749F2;
        left: 144px;
    }

    100% {
        border: 2px solid #47EA15;
        left: var(--icon-slide-end);
    }
}

.social_icons:hover .icon_circle {
    animation-play-state: paused;
}

.section {
    padding-block: 5em;
}

.top-header {
    margin-bottom: 5em;
    text-align: center;
}

.top-header h1 {
    margin-bottom: 10px;
    color: var(--text-color);
    font-weight: 600;
}

.top-header span {
    color: var(--text-color);
    line-height: 1.6;
}

.skill {
    position: relative;
    width: 100%;
    max-width: 600px;
    padding: 10px 20px;
    border: 2px solid #FFF;
    border-radius: 20px;
    background: transparent;
    box-shadow: 1px 8px 10px 2px var(--first-shadow);
}

.skill .skill-box {
    width: 100%;
    margin: 25px 0;
}

.skill-box .title {
    display: block;
    color: var(--text-color);
    font-size: 14px;
    font-weight: 600;
}

.skill-box .skill-bar {
    width: 100%;
    height: 8px;
    margin-top: 8px;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.1);
}

.skill-box .skill-per {
    position: relative;
    display: block;
    width: 90%;
    height: 100%;
    border-radius: 6px;
    background: var(--first-color);
    animation: progress 0.4s ease-in-out forwards;
    opacity: 0;
}

.skill-per.html,
.skill-bar.html .skill-per {
    width: 80%;
}

.skill-per.css,
.skill-bar.css .skill-per {
    width: 80%;
}

.skill-per.javascript {
    width: 70%;
}

.skill-per.php {
    width: 50%;
}

.skill-per.mysql {
    width: 70%;
}

.skill-per.frameworks {
    width: 65%;
}

@keyframes progress {
    0% {
        width: 0;
        opacity: 1;
    }

    100% {
        opacity: 1;
    }
}

.skill-per .tooltip {
    position: absolute;
    top: -28px;
    right: -14px;
    padding: 2px 6px;
    border-radius: 20px;
    background: var(--first-color);
    color: #FFF;
    font-size: 9px;
    z-index: 1;
}

footer {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    row-gap: 30px;
    padding-block: 40px 60px;
    background: var(--body-color);
    text-decoration: none;
}

.footer-menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
}

.footer_menu_list {
    list-style: none;
}

.footer_menu_list a {
    color: var(--text-color);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
}

.footer_menu_list a:hover {
    color: var(--first-color);
}

.footer-social-icons {
    display: flex;
    gap: 30px;
    color: var(--color-white);
}

.bottom-footer {
    color: var(--text-color);
    font-size: 14px;
    text-align: center;
}

.not-found {
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding: 32px;
}

.not-found-content {
    max-width: 560px;
    text-align: center;
}

.not-found-kicker {
    color: var(--first-color);
    font-size: 64px;
    font-weight: 800;
}

.not-found h1 {
    margin: 8px 0 16px;
    color: var(--text-color);
    font-size: 36px;
    font-weight: 700;
}

.not-found p {
    margin-bottom: 24px;
    color: var(--text-color);
    line-height: 1.7;
}

@media only screen and (max-width: 900px) {
    nav {
        padding-inline: 7vw;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        left: -100%;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 300px;
        height: 100vh;
        min-height: 450px;
        border-radius: 0 30px 0 30px;
        background: rgba(121, 3, 145, 0.158);
        backdrop-filter: blur(5px);
        transition: 0.3s;
    }

    .nav-menu.responsive {
        left: 0;
    }

    .nav_menu_list {
        flex-direction: column;
        gap: 22px;
    }

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

    .wrapper {
        padding-inline: 7vw;
    }
}

@media only screen and (max-width: 620px) {
    .nav-logo > span:not(.nav-name) {
        display: none;
    }

    .mode {
        margin-left: auto;
        margin-right: 18px;
    }

    .footer-menu {
        gap: 16px;
    }
}
