*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
}

html{
    font-size: 62.5%;
}

body{
    width: 100%;
    min-height: 100vh;
    margin: 20rem auto 10rem;
    font-family: 'Noto Sans', sans-serif;
    overflow-x: hidden;
    background-color: black;
    color: white;
}

header{
    margin-top: 20px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 9%;
    background-color: transparent;
    filter: drop-shadow(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

.logo{
    font-size: 3rem;
    color: #b74b4b;
    font-weight: 800;
    cursor: pointer;
    transition: 0.5s ease;
}

.logo:hover{
    transform: scale(1.1);
}

nav a{
    font-size: 1.8rem;
    color: white;
    margin-left: 4rem;
    font-weight: 500;
    transition: 0.3s ease;
    border-bottom: 3px solid transparent;
}

nav a:hover,
nav a.active{
    color: #b74b4b;
    border-bottom: 3px solid #b74b4b;
}

@media(max-width:995px){
    nav{
        position: absolute;
        display: none;
        top: 0;
        right: 0;
        width: 40%;
        border-left: 3px solid #b74b4b;
        border-bottom: 3px solid #b74b4b;
        border-bottom-left-radius: 2rem;
        padding: 1rem solid;
        background-color: #161616;
        border-top: 0.1rem solid rgba(0,0,0,0.1);
    }

    nav.active{
        display: block;
    }

    nav a{
        display: block;
        font-size: 2rem;
        margin: 3rem 0;
    }

    nav a:hover,
    nav a.active{
        padding: 1rem;
        border-radius: 0.5rem;
        border-bottom: 0.5rem solid #b74b4b;
    }
}

main {
    width: 90%;
    max-width: 1200px;
    margin: 12rem auto 5rem;
}

.skills h1 {
    font-size: 3rem;
    margin-bottom: 3rem;
    color: #b74b4b;
    text-align: center;
}

.skill {
    margin-bottom: 2rem;
}

.skill p {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.percent {
    font-size: 1.8rem;
    color: #ff7b7b;
}

.skill-bar {
    width: 100%;
    height: 2rem;
    background-color: #333;
    border-radius: 1rem;
    overflow: hidden;
    position: relative;
}

.skill-level {
    height: 100%;
    background-color: #b74b4b;
    width: 0%;
    border-radius: 1rem;
    animation-duration: 2s;
    animation-fill-mode: forwards;
}

/* Анимации для каждой шкалы */
.level-70 { animation-name: fill70; }
.level-80 { animation-name: fill80; }
.level-85 { animation-name: fill85; }
.level-90 { animation-name: fill90; }

@keyframes fill70 { from { width: 0%; } to { width: 70%; } }
@keyframes fill80 { from { width: 0%; } to { width: 80%; } }
@keyframes fill85 { from { width: 0%; } to { width: 85%; } }
@keyframes fill90 { from { width: 0%; } to { width: 90%; } }

.portfolio {
    margin-top: 5rem;
    text-align: center;
}

.portfolio h2 {
    font-size: 2.5rem;
    color: #b74b4b;
    margin-bottom: 1rem;
}

.portfolio p {
    font-size: 1.8rem;
    margin-bottom: 2rem;
}

.behance-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-size: 1.8rem;
    font-weight: 600;
    color: white;
    background-color: #1769ff; 
    border-radius: 0.8rem;
    transition: 0.3s ease;
}

.behance-button:hover {
    background-color: #0f4ccf;
    transform: scale(1.05);
}