* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background: #f4f4f4;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    background: #fff;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    flex-wrap: wrap;
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #007bff;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

.nav-link {
    text-decoration: none;
    color: #333;
    transition: color 0.3s;
}

.nav-link:hover {
    color: #007bff;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
}

section {
    padding: 2rem 0;
    border-bottom: 1px solid #eee;
}

h1, h2 {
    margin-bottom: 1rem;
    color: #007bff;
}

h3 {
    margin: 1rem 0 0.5rem;
}

.welcome__article {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.welcome__article figure {
    text-align: center;
}

.welcome__article img {
    max-width: 200px;
    border-radius: 50%;
}

.skills-box {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin: 1rem 0;
}

.hard-skills {
    list-style: none;
    min-width: 150px;
}

.skill {
    background: #e9ecef;
    margin: 0.5rem 0;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    display: inline-block;
}

.skills-levels {
    flex: 1;
}

.level-box {
    background: #e9ecef;
    border-radius: 10px;
    margin: 0.5rem 0;
    overflow: hidden;
}

.level {
    background: #007bff;
    color: white;
    padding: 0.2rem 0.5rem;
    text-align: right;
    border-radius: 10px;
    width: 0%;
    transition: width 1s;
}

.html { width: 20%; }
.python { width: 30%; }
.vscode { width: 10%; }

.language-list {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.slider-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.slider {
    position: relative;
    width: 100%;
    max-width: 600px;
    overflow: hidden;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.slide {
    display: none;
    text-align: center;
    padding: 1rem;
}

.slide.active {
    display: block;
}

.slide img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

button.left, button.right {
    background: #007bff;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

button.left:hover, button.right:hover {
    background: #0056b3;
}

.edu-lists {
    list-style: none;
    margin: 0.5rem 0 1rem;
}

.edu-lists li {
    margin: 0.5rem 0;
    padding-left: 1.2rem;
    position: relative;
}

.edu-lists li::before {
    content: "•";
    color: #007bff;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.contacts-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 0.5rem;
}

.contacts-list a {
    color: #007bff;
    text-decoration: none;
}

.contacts-list a:hover {
    text-decoration: underline;
}

footer {
    padding: 1.5rem 0;
    text-align: center;
    border-top: 1px solid #eee;
    margin-top: 2rem;
}

.footer-icons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.github-icon, .cw-icon, .rs-icon {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: #333;
}

.github-icon:hover, .cw-icon:hover {
    color: #007bff;
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: #fff;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 10px rgba(0,0,0,0.1);
        padding: 2rem 0;
        gap: 1rem;
    }

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

    .welcome__article {
        flex-direction: column;
        text-align: center;
    }

    .skills-box {
        flex-direction: column;
    }

    .slider-container {
        flex-direction: column;
    }
}