/* Базовые стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #f0f0f0;
    background: #0a0a0a;
}

/* Навигация */
.navbar {
    background: rgba(10, 10, 10, 0.95);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(255, 69, 0, 0.3);
    border-bottom: 1px solid #ff4500;
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    color: #ff4500;
    font-weight: bold;
    font-size: 1.5rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: #f0f0f0;
    transition: color 0.3s;
    font-weight: 500;
}

.nav-menu a:hover {
    color: #ff4500;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #ff4500;
}

/* Герой секция */
.hero {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    color: #f0f0f0;
    text-align: center;
    padding: 8rem 2rem 4rem;
    margin-top: 60px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(255, 69, 0, 0.1) 0%, transparent 70%);
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #ff4500;
    text-shadow: 0 0 10px rgba(255, 69, 0, 0.5);
}

.hero p {
    font-size: 1.3rem;
    color: #cc5500;
}

.cta-button {
    background: linear-gradient(45deg, #ff4500, #cc0000);
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 2rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(255, 69, 0, 0.4);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 69, 0, 0.6);
    background: linear-gradient(45deg, #ff5500, #dd0000);
}

/* Секции */
section {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    background: #1a1a1a;
    margin-bottom: 2rem;
    border-radius: 10px;
    border: 1px solid #333;
    box-shadow: 0 5px 20px rgba(255, 69, 0, 0.1);
}

section h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: #ff4500;
    font-size: 2.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Обо мне */
.about-content {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.profile-photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #ff4500;
    box-shadow: 0 0 20px rgba(255, 69, 0, 0.5);
}

.about-text {
    flex: 1;
}

.about-text p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

.read-more {
    background: linear-gradient(45deg, #ff4500, #cc0000);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 1rem;
    font-weight: bold;
    transition: all 0.3s;
}

.read-more:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 69, 0, 0.4);
}

.more-text {
    display: none;
    margin-top: 1rem;
    padding: 1.5rem;
    background: rgba(255, 69, 0, 0.1);
    border-radius: 8px;
    border-left: 4px solid #ff4500;
}

/* Навыки */
/* Секция навыков */
.skills-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.skill-category {
    background: linear-gradient(135deg, #1a1a1a, #252525);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid #333;
    box-shadow: 0 5px 20px rgba(255, 69, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.skill-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ff4500, #cc0000);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.skill-category:hover::before {
    transform: scaleX(1);
}

.skill-category:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(255, 69, 0, 0.15);
    border-color: #ff4500;
}

.skill-category h3 {
    color: #ff4500;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.skill-category h3 i {
    font-size: 1.2rem;
    width: 25px;
}

/* Прогресс-бары */
.skills-grid {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.skill-item {
    background: rgba(255, 69, 0, 0.05);
    padding: 1.2rem;
    border-radius: 10px;
    border-left: 4px solid #ff4500;
    transition: all 0.3s ease;
    position: relative;
}

.skill-item:hover {
    background: rgba(255, 69, 0, 0.1);
    transform: translateX(8px);
    box-shadow: 0 5px 15px rgba(255, 69, 0, 0.2);
}

.skill-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
}

.skill-name {
    color: #ff4500;
    font-weight: bold;
    font-size: 1.1rem;
}

.skill-level {
    color: #cc5500;
    font-size: 0.85rem;
    font-style: italic;
    background: rgba(204, 85, 0, 0.1);
    padding: 0.3rem 0.6rem;
    border-radius: 12px;
}

.skill-bar {
    height: 6px;
    background: #333;
    border-radius: 3px;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.5);
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, #ff4500, #cc0000);
    border-radius: 3px;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

/* Теги навыков */
.skills-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.skill-tag {
    padding: 0.7rem 1.2rem;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid transparent;
}

.skill-tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s ease;
}

.skill-tag:hover::before {
    left: 100%;
}

.skill-tag.expert {
    background: linear-gradient(45deg, #ff4500, #cc0000);
    color: white;
    box-shadow: 0 4px 12px rgba(255, 69, 0, 0.4);
    border: 1px solid #ff5500;
}

.skill-tag.advanced {
    background: linear-gradient(45deg, #cc5500, #993300);
    color: white;
    box-shadow: 0 4px 12px rgba(204, 85, 0, 0.4);
    border: 1px solid #cc5500;
}

.skill-tag.intermediate {
    background: linear-gradient(45deg, #996600, #663300);
    color: white;
    box-shadow: 0 4px 12px rgba(153, 102, 0, 0.4);
    border: 1px solid #996600;
}

.skill-tag:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px rgba(255, 69, 0, 0.5);
}

/* Адаптивность */
@media (max-width: 768px) {
    .skills-categories {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .skill-category {
        padding: 1.5rem;
    }
    
    .skills-tags {
        justify-content: center;
    }
    
    .skill-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

/* Контакты */
.contacts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.contact-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
    border-radius: 10px;
    text-decoration: none;
    color: #f0f0f0;
    transition: all 0.3s;
    border: 1px solid #333;
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 69, 0, 0.2), transparent);
    transition: left 0.5s;
}

.contact-card:hover::before {
    left: 100%;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(255, 69, 0, 0.3);
    border-color: #ff4500;
}

.contact-card i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #ff4500;
}

.contact-card span {
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #ff4500;
}

.contact-card small {
    color: #ccc;
    text-align: center;
}

/* Модальное окно */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
}

.modal-content {
    background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
    margin: 10% auto;
    padding: 2rem;
    border-radius: 15px;
    max-width: 500px;
    position: relative;
    border: 2px solid #ff4500;
    box-shadow: 0 0 30px rgba(255, 69, 0, 0.5);
}

.close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 2rem;
    cursor: pointer;
    color: #ff4500;
    transition: color 0.3s;
}

.close:hover {
    color: #cc0000;
}

.modal-content h3 {
    color: #ff4500;
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 1.8rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    padding: 0.8rem;
    border: 1px solid #333;
    border-radius: 6px;
    font-family: inherit;
    background: #0a0a0a;
    color: #f0f0f0;
    transition: border-color 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #ff4500;
    box-shadow: 0 0 5px rgba(255, 69, 0, 0.5);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #666;
}

.contact-form button {
    background: linear-gradient(45deg, #ff4500, #cc0000);
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s;
    margin-top: 1rem;
}

.contact-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 69, 0, 0.4);
}

/* Футер */
footer {
    background: #0a0a0a;
    color: #666;
    text-align: center;
    padding: 2rem;
    border-top: 1px solid #333;
}

/* Анимации */
@keyframes glow {
    0%, 100% { text-shadow: 0 0 5px rgba(255, 69, 0, 0.5); }
    50% { text-shadow: 0 0 20px rgba(255, 69, 0, 0.8), 0 0 30px rgba(255, 69, 0, 0.6); }
}

.hero h1 {
    animation: glow 3s ease-in-out infinite;
}

/* Адаптивность */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #1a1a1a;
        flex-direction: column;
        padding: 1rem;
        border-top: 1px solid #ff4500;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .about-content {
        flex-direction: column;
        text-align: center;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    section {
        padding: 2rem 1rem;
        margin: 1rem;
    }
}
/* Стили для модального окна мессенджера */
.messenger-warning {
    text-align: center;
    padding: 1rem;
}

.messenger-warning i.fa-exclamation-triangle {
    font-size: 3rem;
    color: #ff4500;
    margin-bottom: 1rem;
}

.messenger-warning h3 {
    color: #ff4500;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.warning-reasons {
    background: rgba(255, 69, 0, 0.1);
    padding: 1rem;
    border-radius: 8px;
    margin: 1.5rem 0;
    text-align: left;
}

.warning-reasons ul {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.warning-reasons li {
    padding: 0.3rem 0;
    color: #f0f0f0;
}

.advice {
    font-style: italic;
    color: #cc5500;
    margin: 1.5rem 0;
}

.telegram-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(45deg, #0088cc, #006699);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
    margin-top: 1rem;
}

.telegram-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 136, 204, 0.4);
}

/* Специфичные стили для карточки MAX */
#russianMessenger {
    position: relative;
    overflow: hidden;
}

#russianMessenger::after {
    content: '🤡';
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff4500;
    color: white;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
}