/* Обнуление и базовые стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.7;
    color: #333;
    background-color: #f8f9fa;
    background-image: radial-gradient(#e0e0e0 1px, transparent 1px);
    background-size: 20px 20px;
    background-attachment: fixed;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}


/* Заголовок */
header {
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    color: white;
    text-align: center;
    padding: 60px 20px;
    margin-bottom: 40px;
    border-bottom: 4px solid #1a3a6a;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

header h1 {
    font-size: 2.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

header p {
    font-size: 1.3rem;
    opacity: 0.9;
    font-weight: 300;
}

/* Секции */
section {
    padding: 40px 0;
    background-color: white;
    margin-bottom: 2px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

section h2 {
    font-size: 1.8rem;
    color: #1e3c72;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e0e0e0;
    position: relative;
}

section h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 60px;
    height: 2px;
    background: #2a5298;
}

/* Обо мне */
#about p {
    color: #555;
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
    text-align: justify;
}

/* Опыт работы */
#experience .job {
    background: #f5f8ff;
    padding: 25px;
    border-radius: 10px;
    border-left: 5px solid #2a5298;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

#experience .job:hover {
    transform: translateY(-5px);
}

#experience h3 {
    font-size: 1.4rem;
    color: #1e3c72;
    margin-bottom: 8px;
}

#experience p {
    color: #666;
    font-style: italic;
    margin-bottom: 15px;
    font-size: 1rem;
}

#experience ul {
    list-style: none;
    padding-left: 20px;
    color: #555;
}

#experience ul li {
    position: relative;
    margin-bottom: 10px;
    padding-left: 25px;
}

#experience ul li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: #2a5298;
    font-weight: bold;
}

/* Проекты */
#projects ul {
    list-style: none;
    padding-left: 20px;
    margin: 20px 0;
}

#projects ul li {
    margin-bottom: 12px;
    padding-left: 25px;
    position: relative;
    font-size: 1.1rem;
    color: #444;
}

#projects ul li::before {
    content: '🚀';
    position: absolute;
    left: 0;
    font-size: 1.2em;
}

#projects a {
    color: #2a5298;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

#projects a:hover {
    color: #1e3c72;
    text-decoration: underline;
}

/* Контакты */
#contact p {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: #555;
}

#contact a {
    color: #2a5298;
    text-decoration: none;
}

#contact a:hover {
    text-decoration: underline;
}

/* Футер */
footer {
    text-align: center;
    padding: 30px 0;
    background: #1e3c72;
    color: white;
    font-size: 0.9rem;
    margin-top: 40px;
}

footer p {
    opacity: 0.8;
}

/* Адаптивность */
@media (max-width: 768px) {
    header h1 {
        font-size: 2.2rem;
    }

    header p {
        font-size: 1.1rem;
    }

    section {
        padding: 30px 0;
    }

    #about p,
    #experience .job {
        font-size: 1rem;
    }

    #projects ul li {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    header {
        padding: 40px 15px;
    }

    section h2 {
        font-size: 1.5rem;
    }
}
/* Контейнер для фото и текста */
.header-content {
    display: flex;
    align-items: center;
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 0;
}

/* Обёртка фото */
.photo-wrapper {
    flex-shrink: 0;
}

/* Стиль фото */
.profile-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    object-fit: cover;
    background-color: #e0e0e0;
    transition: transform 0.3s ease;
}

/* Эффект при наведении */
.profile-photo:hover {
    transform: scale(1.05);
}

/* Текст справа от фото */
.header-text h1 {
    font-size: 2.6rem;
    margin-bottom: 8px;
    color: white;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.header-text p {
    font-size: 1.3rem;
    opacity: 0.9;
    font-weight: 300;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Адаптивность */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .profile-photo {
        width: 120px;
        height: 120px;
    }

    .header-text h1 {
        font-size: 2.2rem;
    }

    .header-text p {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .profile-photo {
        width: 100px;
        height: 100px;
    }

    .header-text h1 {
        font-size: 1.8rem;
    }
}

/*.resume-button {
    margin-top: 20px;
    display: flex;
    justify-content: center;
}

    .resume-button a {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 12px 20px;
        background: #007bff;
        color: #fff;
        border-radius: 8px;
        text-decoration: none;
        font-weight: 600;
        transition: 0.2s;
    }

        .resume-button a:hover {
            background: #0056b3;
        }

    .resume-button i {
        font-size: 18px;
    }*/
