/* === ОСНОВНЫЕ ПЕРЕМЕННЫЕ === */
:root {
    --bg-color: #0a0a0a;
    --text-color: #ffffff;
    --highlight-color: #ff6b35;
    --accent-color: #ff8c42;
    --panel-bg: #1a1a1a;
    --card-bg: #2a2a2a;
    --border-color: #333;
    --shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    --gradient: linear-gradient(135deg, #ff6b35 0%, #ff8c42 100%);
}

/* === ОСНОВНЫЕ СТИЛИ === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg-color);
    color: var(--text-color);
    font-family: 'Inter', Arial, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
}

/* === НАВИГАЦИЯ === */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--highlight-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-color);
    margin: 3px 0;
}

/* === ГЕРОЙ СЕКЦИЯ === */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.greeting {
    display: block;
    font-size: 1.5rem;
    color: var(--highlight-color);
    margin-bottom: 0.5rem;
    font-weight: 400;
}

.name {
    display: block;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    min-height: 2.2rem;
    font-weight: 600;
}

.typing-text {
    color: var(--highlight-color);
}

.cursor {
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    opacity: 0.9;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--gradient);
    color: white;
}

.btn-secondary {
    background: transparent;
    color: var(--text-color);
    border: 2px solid var(--highlight-color);
}

.btn-secondary:hover {
    background: var(--highlight-color);
    color: white;
}

/* === СЕКЦИИ === */
.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--gradient);
}

/* === ОБО МНЕ === */
.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.7;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.stat {
    text-align: center;
    padding: 1.5rem;
    background: var(--card-bg);
    border-radius: 10px;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--highlight-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* === НАВЫКИ === */
.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
}

.skill-category {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--highlight-color);
}

.skill-category h3 {
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.3rem;
}

.skill-category h3 i {
    color: var(--highlight-color);
    font-size: 1.5rem;
}

.skill-items {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.skill-item {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.skill-name {
    font-weight: 600;
    display: flex;
    justify-content: space-between;
}

.skill-bar {
    height: 8px;
    background: var(--panel-bg);
    border-radius: 4px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: var(--gradient);
    border-radius: 4px;
    width: 0;
}

/* === ПОЛЬЗА ДЛЯ БИЗНЕСА === */
.value-section {
    background: var(--panel-bg);
}

.value-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.value-item {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 15px;
    text-align: center;
    border-top: 3px solid transparent;
}

.value-item:hover {
    border-top-color: var(--highlight-color);
}

.value-item h3 {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    font-size: 1.3rem;
}

.value-item h3 i {
    color: var(--highlight-color);
    font-size: 1.8rem;
}

.value-item p {
    line-height: 1.6;
    opacity: 0.9;
}

/* === ПОДХОД К РАЗРАБОТКЕ === */
.process-section {
    background: var(--bg-color);
}

.bullets {
    max-width: 900px;
    margin: 0 auto;
    list-style: none;
}

.bullets li {
    background: var(--card-bg);
    margin-bottom: 1.5rem;
    padding: 1.5rem 2rem;
    border-radius: 10px;
    border-left: 4px solid var(--highlight-color);
}

.bullets li strong {
    color: var(--highlight-color);
    display: block;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

/* === ТЕХНОЛОГИЧЕСКИЙ СТЕК === */
.stack-section {
    background: var(--panel-bg);
}

.stack-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    max-width: 900px;
    margin: 0 auto;
}

.tech-tag {
    background: rgba(255, 107, 53, 0.1);
    color: var(--highlight-color);
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 500;
    border: 1px solid rgba(255, 107, 53, 0.3);
}

.tech-tag:hover {
    background: rgba(255, 107, 53, 0.2);
}

/* === FAQ / ФОРМАТЫ СОТРУДНИЧЕСТВА === */
.faq-section {
    background: var(--bg-color);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.faq-item {
    background: var(--card-bg);
    border-radius: 10px;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.faq-header {
    padding: 1.5rem 2rem;
    font-weight: 600;
    font-size: 1.1rem;
    background: var(--panel-bg);
    border-bottom: 1px solid var(--border-color);
    color: var(--highlight-color);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.faq-header i {
    font-size: 1.2rem;
}

.faq-content {
    padding: 1.5rem 2rem;
    line-height: 1.6;
    opacity: 0.9;
    margin: 0;
}

.faq-content p {
    margin: 0;
}

/* === ОПЫТ РАБОТЫ === */
.experience-section {
    background: var(--panel-bg);
}

.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--gradient);
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    margin-bottom: 4rem;
    position: relative;
}

.timeline-item:nth-child(odd) {
    flex-direction: row-reverse;
}

.timeline-date {
    flex: 1;
    padding: 0 2rem;
    text-align: right;
    font-weight: 700;
    color: var(--highlight-color);
    font-size: 1.1rem;
}

.timeline-item:nth-child(odd) .timeline-date {
    text-align: left;
}

.timeline-content {
    flex: 2;
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    position: relative;
    border-top: 3px solid var(--highlight-color);
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 30px;
    width: 16px;
    height: 16px;
    background: var(--highlight-color);
    border-radius: 50%;
    border: 3px solid var(--bg-color);
}

.timeline-item:nth-child(even) .timeline-content::before {
    left: -8px;
}

.timeline-item:nth-child(odd) .timeline-content::before {
    right: -8px;
}

.timeline-content h3 {
    margin-bottom: 0.5rem;
}

.company {
    display: block;
    color: var(--highlight-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.timeline-content ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.timeline-content li {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.tech-tag {
    background: rgba(255, 107, 53, 0.1);
    color: var(--highlight-color);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    border: 1px solid rgba(255, 107, 53, 0.3);
}

/* === ПРОЕКТЫ === */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
}

.project-card {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 2.5rem;
    box-shadow: var(--shadow);
    border-top: 4px solid transparent;
}

.project-card:hover {
    border-top-color: var(--highlight-color);
}

.project-icon {
    font-size: 3rem;
    color: var(--highlight-color);
    margin-bottom: 1.5rem;
    text-align: center;
}

.project-content h3 {
    margin-bottom: 1.2rem;
    font-size: 1.4rem;
}

.project-details {
    margin: 1.5rem 0;
    padding-left: 1.2rem;
}

.project-details li {
    margin-bottom: 0.8rem;
    line-height: 1.5;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin: 1.5rem 0;
}

.project-tech span {
    background: rgba(255, 107, 53, 0.1);
    color: var(--highlight-color);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid rgba(255, 107, 53, 0.3);
}

.project-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
}

.project-result {
    display: inline-block;
    background: var(--gradient);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* === КОНТАКТЫ === */
.contact-section {
    background: var(--panel-bg);
}

.contact-content {
    display: flex;
    justify-content: center;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 900px;
    width: 100%;
}

.contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    padding: 2rem 1.5rem;
    background: var(--card-bg);
    border-radius: 15px;
    border: 1px solid var(--border-color);
}

.contact-item:hover {
    background: rgba(255, 107, 53, 0.05);
    border-color: var(--highlight-color);
}

.contact-item i {
    font-size: 2.5rem;
    color: var(--highlight-color);
    margin-bottom: 0.5rem;
}

.contact-item h3 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.contact-item a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1rem;
}

.contact-item a:hover {
    color: var(--highlight-color);
}

.resume-download {
    color: var(--highlight-color);
    text-decoration: none;
    font-weight: 600;
}

.resume-download:hover {
    text-decoration: underline;
    color: var(--accent-color);
}

/* === ФУТЕР === */
.main-footer {
    background: var(--panel-bg);
    padding: 1rem 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

/* === АДАПТИВНОСТЬ === */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--panel-bg);
        flex-direction: column;
        padding: 2rem;
        box-shadow: var(--shadow);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
    }
    
    .skills-container {
        grid-template-columns: 1fr;
    }
    
    .value-grid {
        grid-template-columns: 1fr;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item {
        flex-direction: row !important;
    }
    
    .timeline-date {
        flex: 0 0 120px;
        text-align: left !important;
        padding-right: 1rem;
    }
    
    .timeline-content::before {
        left: -8px !important;
        right: auto !important;
    }
    
    .stack-tags {
        justify-content: flex-start;
    }
    
    .faq-list summary {
        padding-right: 3rem;
    }
}

@media (max-width: 480px) {
    .contact-item {
        padding: 1.5rem 1rem;
    }
    
    .contact-item i {
        font-size: 2rem;
    }
    
    .contact-item h3 {
        font-size: 1.1rem;
    }
    
    .skill-category {
        padding: 1.5rem;
    }
    
    .value-item {
        padding: 1.5rem;
    }
    
    .project-card {
        padding: 1.5rem;
    }
    
    .bullets li {
        padding: 1.2rem 1.5rem;
    }
    
    .faq-list summary,
    .faq-list p {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

/* Улучшения для accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* Улучшения для фокуса */
button:focus, 
a:focus, 
.nav-link:focus,
summary:focus {
    outline: 2px solid var(--highlight-color);
    outline-offset: 2px;
}