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

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #121212;
    color: #ffffff;
}

a {
    color: #00adb5;
    text-decoration: none;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

nav {
    background: #1f1f1f;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
}

.logo {
    font-size: 1.5em;
}

.nav-links {
    list-style: none;
    display: flex;
}

.nav-links li {
    margin-left: 20px;
}

.nav-links a {
    font-size: 1em;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #00adb5;
}

.header {
    background: url('images/hero-bg.jpg') no-repeat center center/cover;
}

.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 0;
}

.hero-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.hero-text {
    flex: 1;
    padding: 20px;
}

.hero-text h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
}

.hero-text p {
    font-size: 1.1em;
    margin-bottom: 15px;
    line-height: 1.6;
}

.hero-text a {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 30px;
    background-color: #00adb5;
    color: #ffffff;
    border: none;
    border-radius: 25px;
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.3s;
}

.hero-text a:hover {
    background-color: #008a92;
}

.hero-image {
    flex: 1;
    text-align: center;
}

.hero-image img {
    width: 350px;
    height: auto;
    border: 4px solid #00adb5;
    border-radius: 10px;
    object-fit: cover;
}

section {
    padding: 60px 0;
}

section h3 {
    font-size: 2em;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
}

section h3::after {
    content: '';
    width: 60px;
    height: 4px;
    background: #00adb5;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -10px;
}

#skills .skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    justify-items: center;
    align-items: center;
}

.skill-item {
    background-color: #1f1f1f;
    color: #ffffff;
    border: 1px solid #00adb5;
    border-radius: 20px;
    padding: 10px;
    font-size: 1em;
    text-align: center;
    transition: background-color 0.3s;
    width: 100%;  /* Растягиваем блок на всю доступную ширину */
    max-width: 180px; /* Максимальная ширина */
    box-sizing: border-box; /* Учитываем границы и padding */
}

.skill-item:hover {
    background-color: #00adb5;
    color: #121212;
}


#education .card, #experience .experience-item {
    background-color: #1f1f1f;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 10px;
}

#education .card h4, #experience .experience-item h4 {
    font-size: 1.5em;
    margin-bottom: 10px;
}

#education .card h5, #experience .experience-item h5 {
    font-weight: 300;
    color: #cccccc;
    margin-bottom: 5px;
}

#education .card span, #experience .experience-item span {
    font-size: 0.9em;
    color: #999999;
    display: block;
    margin-bottom: 15px;
}

#experience .experience-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

#experience .experience-item ul {
    list-style: disc;
    margin-left: 20px;
}

footer {
    background: #1f1f1f;
    padding: 40px 0;
    text-align: center;
}

footer h3 {
    margin-bottom: 20px;
}

footer p {
    margin-bottom: 10px;
}

footer a {
    color: #00adb5;
}

@media (max-width: 992px) {
    .hero-container {
        flex-direction: column-reverse;
    }

    .nav-links {
        flex-direction: column;
        background: #1f1f1f;
        position: absolute;
        top: 60px;
        right: 0;
        width: 200px;
        display: none;
    }

    .nav-links li {
        margin: 15px 0;
    }

    .nav-active {
        display: flex;
    }

    .burger {
        display: block;
        cursor: pointer;
    }

    .burger div {
        width: 25px;
        height: 3px;
        background: #ffffff;
        margin: 5px;
        transition: all 0.3s ease;
    }
}

@media (max-width: 768px) {
    .hero-text h2 {
        font-size: 2em;
    }

    section h3 {
        font-size: 1.8em;
    }
}
