* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: all 0.5s;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, sans-serif;
    background: #f5f7fb;
    color: #222;
    line-height: 1.6;
}

/* Шапка */
header {
    background: #222;
    color: white;
    padding: 20px 8%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
}

.logo {
    font-size: 24px;
    font-weight: bold;
}

nav a {
    color: white;
    text-decoration: none;
    margin-left: 20px;
    transition: 0.3s;
}

nav a:hover {
    color: #4da3ff;
}

/* Главный экран */
.hero {
    min-height: 85vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #eaf2ff, #ffffff);
}

.hero h1 {
    font-size: 52px;
    margin-bottom: 15px;
}

.hero p {
    font-size: 20px;
    max-width: 650px;
    margin: 0 auto 25px;
    color: #555;
}

.avatar {
    aspect-ratio: 1/1;
    width: 30%;
    background-size: cover;
    margin: 10px auto;
    border-radius: 50%;
}

.button {
    display: inline-block;
    background: #0066cc;
    color: white;
    text-decoration: none;
    padding: 12px 25px;
    border-radius: 8px;
    transition: 0.3s;
}

.button:hover {
    background: #004d99;
    transform: translateY(-2px);
}

/* Секции */
section {
    padding: 80px 10%;
}

.section-title {
    text-align: center;
    font-size: 32px;
    margin-bottom: 40px;
}

/* Обо мне */
.about {
    max-width: 800px;
    margin: auto;
    text-align: center;
    font-size: 18px;
}

/* Навыки */
.skills-list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.skill {
    background: white;
    padding: 15px 25px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

/* Проекты */
.projects {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.project {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.project a{
    display: flex;
    align-items: center;
    text-decoration: none;
}

span.material-symbols-outlined{
    font-size: 18px;
    
}

.project h3 {
    margin-bottom: 10px;
}

/* Контакты */
.contacts {
    text-align: center;
}

.contacts p {
    margin: 10px 0;
    font-size: 18px;
}

.contacts a {
    color: #0066cc;
    text-decoration: none;
}

/* Подвал */
footer {
    background: #222;
    color: white;
    text-align: center;
    padding: 20px;
}

.skill:hover,
.project:hover {
    transform: translateY(-10px);
}

/* Адаптация для телефона */
@media (max-width: 700px) {
    header {
        flex-direction: column;
        gap: 15px;
    }

    nav a {
        margin: 0 8px;
    }

    .hero h1 {
        font-size: 38px;
    }

    section {
        padding: 60px 6%;
    }

    .avatar {
        width: 50%;
    }
}