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

/* ===== CSS VARIABLES ===== */
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary: #64748b;
    --accent: #f59e0b;
    --background: #0f172a;
    --surface: #1e293b;
    --text: #f8fafc;
    --text-secondary: #cbd5e1;
}

/* ===== BASE STYLES ===== */
body {
    font-family: 'Inter', 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--background);
    overflow-x: hidden;
}

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

/* ===== HEADER & NAVIGATION ===== */
nav {
    background: rgba(30, 41, 59, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

/* Анимированный логотип с градиентом */
.logo {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(45deg, var(--primary), var(--accent));
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: pulseGradient 2s ease-in-out infinite alternate;
}

@keyframes pulseGradient {
    from {
        background-position: 0% 50%;
        opacity: 0.8;
    }
    to {
        background-position: 100% 50%;
        opacity: 1;
    }
}

/* Навигационное меню */
nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

nav a:hover {
    color: var(--text);
}

/* Подчеркивание при наведении */
nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

/* ===== HERO SECTION ===== */
#hero {
    background: linear-gradient(135deg, var(--background) 0%, var(--surface) 100%);
    padding: 180px 0 120px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Градиентный фон для герой секции */
#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(37, 99, 235, 0.1) 0%, transparent 50%);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--text), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-badges {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.badge {
    background: rgba(37, 99, 235, 0.2);
    color: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid rgba(37, 99, 235, 0.3);
}

/* ===== SECTIONS COMMON STYLES ===== */
section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, var(--text), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ===== ABOUT/EXPERIENCE SECTION ===== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

/* Карточка опыта работы */
.experience-card {
    background: var(--surface);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

/* Анимированный градиентный эффект */
.experience-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.1), transparent);
    transition: left 0.6s ease;
}

.experience-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(37, 99, 235, 0.2);
    border-color: rgba(37, 99, 235, 0.3);
}

.experience-card:hover::before {
    left: 100%;
}

/* Заголовок с продолжительностью опыта */
.exp-duration {
    color: var(--accent);
    font-weight: 600;
    margin: 1rem 0;
    transition: color 0.3s ease;
}

.experience-card:hover .exp-duration {
    color: #60a5fa;
}

/* Контейнер для тегов навыков */
.exp-skills {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

/* Отдельный тег навыка */
.skill-tag {
    background: rgba(37, 99, 235, 0.2);
    color: var(--primary);
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    font-size: 0.8rem;
    border: 1px solid rgba(37, 99, 235, 0.3);
    transition: all 0.3s ease;
}

.skill-tag:hover {
    background: rgba(37, 99, 235, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.experience-card:hover .skill-tag {
    animation: bounce 0.6s ease;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

/* Секции компетенций и достижений */
.competencies, .achievements {
    background: var(--surface);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

/* Анимированная верхняя полоса */
.competencies::before, .achievements::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--primary));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.competencies:hover, .achievements:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(245, 158, 11, 0.3);
}

.competencies:hover::before, .achievements:hover::before {
    transform: scaleX(1);
}

.competencies h4, .achievements h4 {
    color: var(--accent);
    margin-bottom: 1rem;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.competencies:hover h4, .achievements:hover h4 {
    color: #fbbf24;
    transform: translateX(5px);
}

.competencies ul, .achievements ul {
    list-style: none;
    padding: 0;
}

.competencies li, .achievements li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    position: relative;
    padding-left: 0;
}

/* Анимированные маркеры списка */
.competencies li::before, .achievements li::before {
    content: '▸';
    position: absolute;
    left: -1rem;
    color: var(--accent);
    opacity: 0;
    transition: all 0.3s ease;
}

.competencies:hover li, .achievements:hover li {
    color: var(--text);
    padding-left: 1rem;
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

.competencies:hover li::before, .achievements:hover li::before {
    opacity: 1;
    left: 0;
}

/* ===== HEADHUNTER BUTTON STYLES ===== */
/* Контейнер для заголовка и кнопки HH */
.exp-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 1rem 0;
    animation: slideInUp 0.6s ease forwards;
    animation-delay: 0.15s;
}

/* Кнопка HeadHunter с фирменными цветами */
.hh-btn {
    background: linear-gradient(135deg, #ff5e00, #ff8c00);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 12px rgba(255, 94, 0, 0.3);
    animation: slideInRight 0.6s ease forwards;
    animation-delay: 0.2s;
}

.hh-btn:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 8px 20px rgba(255, 94, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    background: linear-gradient(135deg, #ff8c00, #ff5e00);
}

/* ===== ANIMATIONS ===== */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Анимация появления элементов в секции "Обо мне" */
.experience-card, .competencies, .achievements {
    animation: slideInUp 0.6s ease forwards;
}

.experience-card:nth-child(1) { animation-delay: 0.1s; }
.competencies { animation-delay: 0.2s; }
.achievements { animation-delay: 0.3s; }

/* ===== SKILLS SECTION ===== */
.skills-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.category {
    background: var(--surface);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.category h3 {
    color: var(--accent);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.skills-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.skill-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.skill-item span {
    color: var(--text);
    font-weight: 500;
}

/* Прогресс-бар навыков */
.skill-level {
    width: 100px;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.level-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 3px;
    transition: width 1s ease;
}

/* ===== PROJECTS SECTION ===== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.project-card {
    background: var(--surface);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.project-header h3 {
    color: var(--text);
    font-size: 1.3rem;
}

.project-badge {
    background: var(--primary);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.project-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.project-tech {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.project-tech span {
    background: rgba(37, 99, 235, 0.2);
    color: var(--primary);
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    font-size: 0.8rem;
    border: 1px solid rgba(37, 99, 235, 0.3);
}

.project-links {
    display: flex;
    gap: 1rem;
}

/* ===== BUTTON COMPONENTS ===== */
.btn {
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--text);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* ===== CONTACT & FOOTER ===== */
footer {
    background: var(--surface);
    padding: 4rem 0;
    text-align: center;
}

.contact-content {
    max-width: 600px;
    margin: 0 auto;
}

.contact-text {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-link {
    color: var(--text);
    text-decoration: none;
    padding: 0.8rem 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.contact-link:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.contact-info {
    color: var(--text-secondary);
}

.contact-info p {
    margin: 0.5rem 0;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    nav .container {
        flex-direction: column;
        gap: 1rem;
    }
    
    nav ul {
        gap: 1rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .project-links {
        flex-direction: column;
    }
    
    .contact-links {
        flex-direction: column;
        align-items: center;
    }
    
    section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    /* Адаптивность для кнопки HH */
    .exp-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .hh-btn {
        align-self: flex-start;
        margin-top: 0.5rem;
    }
}

@media (max-width: 480px) {
    .hh-btn {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
}