/* Общие стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #C1121F;
    background: #C1121F;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Шапка */
header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid #4a6fa5;
    margin-bottom: 20px;
}

h1 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 2.5em;
}

.tagline {
    color: #7f8c8d;
    font-size: 1.2em;
    font-style: italic;
}

/* Секции */
section {
    background: white;
    padding: 30px;
    margin-bottom: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

h2 {
    color: #3498db;
    margin-bottom: 20px;
    font-size: 1.8em;
    display: flex;
    align-items: center;
    gap: 10px;
}

h2 i {
    color: #2c3e50;
}

/* Навыки */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.skill-card {
    text-align: center;
    padding: 25px;
    border-radius: 10px;
    background: #003049;
    transition: transform 0.3s, box-shadow 0.3s;
}

.skill-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.skill-card i {
    font-size: 3em;
    margin-bottom: 15px;
    display: block;
}

.skill-card:nth-child(1) i { color: #e34f26; } /* HTML */
.skill-card:nth-child(2) i { color: #339933; } /* Backend */
.skill-card:nth-child(3) i { color: #6f42c1; } /* Инструменты */
.skill-card:nth-child(4) i { color: #007bff; } /* DevOps */

.skill-card h3 {
    color: #2c3e50;
    margin-bottom: 10px;
}

/* Проекты */
.projects ul {
    list-style-position: inside;
    padding-left: 20px;
}

.projects li {
    margin-bottom: 15px;
    padding-left: 10px;
}

.projects strong {
    color: #2c3e50;
}

/* Контакты */
.contact-links {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}

.contact-links a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: white;
    background: #3498db;
    padding: 12px 25px;
    border-radius: 50px;
    transition: background 0.3s, transform 0.2s;
}

.contact-links a:hover {
    background: #2980b9;
    transform: scale(1.05);
}

.contact-links a i {
    font-size: 1.2em;
}

/* Футер */
footer {
    text-align: center;
    padding: 25px;
    margin-top: 40px;
    color: #7f8c8d;
    font-size: 0.9em;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

footer a {
    color: #3498db;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Адаптивность */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    h1 {
        font-size: 2em;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-links {
        flex-direction: column;
    }
    
    .contact-links a {
        justify-content: center;
    }
    
    section {
        padding: 20px;
    }
}