/* Современные переменные для 2025 */
:root {
    --primary-color: #00ff88;
    --secondary-color: #0066ff;
    --accent-color: #ff3366;
    --dark-bg: #0a0a0a;
    --card-bg: #111111;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --border-color: #333333;
    --gradient-primary: linear-gradient(135deg, #00ff88, #0066ff);
    --gradient-dark: linear-gradient(135deg, #0a0a0a, #1a1a1a);
    --shadow-glow: 0 0 30px rgba(0, 255, 136, 0.3);
    --border-radius: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--dark-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    background: linear-gradient(180deg, rgba(10,10,10,0.97), rgba(10,10,10,0.9));
    box-shadow: 0 6px 24px rgba(0,0,0,0.6);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Desktop: меню всегда видно */
.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
    position: static;
    opacity: 1;
    pointer-events: auto;
    transition: var(--transition);
}

/* Mobile menu: will be toggled with .active */
.nav-menu.active {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: absolute;
    top: 64px;
    right: 2rem;
    background: rgba(15,15,15,0.98);
    padding: 1rem 1.2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Hamburger Menu - скрыт на desktop */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    margin: 3px 0;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    margin-top: 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--gradient-dark);
    position: relative;
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-avatar {
    width: 120px;
    height: 120px;
    margin: 0 auto 2rem;
    position: relative;
}

.avatar-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 30px rgba(0,255,136,0.3);
}

.avatar-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
    box-shadow: var(--shadow-glow);
    animation: float 3s ease-in-out infinite;
}

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

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: slideInUp 1s ease;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    animation: slideInUp 1s ease 0.2s both;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    animation: slideInUp 1s ease 0.4s both;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    animation: slideInUp 1s ease 0.6s both;
}

.btn {
    padding: 12px 28px;
    border-radius: var(--border-radius);
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-size: 1rem;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 40px rgba(0, 255, 136, 0.5);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Floating Elements */
.hero-visual {
    position: relative;
    height: 500px;
}

.floating-elements {
    position: relative;
    width: 100%;
    height: 100%;
}

.floating-element {
    position: absolute;
    font-size: 3rem;
    color: var(--primary-color);
    opacity: 0.6;
    animation: float 4s ease-in-out infinite;
}

.floating-element:nth-child(1) { top: 20%; left: 20%; animation-delay: 0s; }
.floating-element:nth-child(2) { top: 60%; right: 20%; animation-delay: 1s; }
.floating-element:nth-child(3) { bottom: 30%; left: 30%; animation-delay: 2s; }
.floating-element:nth-child(4) { top: 40%; right: 40%; animation-delay: 1.5s; }

/* Skills Section */
.skills {
    padding: 6rem 0;
    background: var(--card-bg);
}

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

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.skill-category {
    background: var(--dark-bg);
    border-radius: var(--border-radius);
    padding: 2rem;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.skill-category:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-glow);
}

.skill-category h3 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    font-size: 1.25rem;
}

.skill-item {
    margin-bottom: 1rem;
}

.skill-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.skill-bar {
    width: 100%;
    height: 8px;
    background: var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.skill-progress {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 4px;
    transition: width 1s ease;
    width: 0;
}

/* Projects Section */
.projects {
    padding: 6rem 0;
    background: var(--dark-bg);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.project-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 2rem;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
}

.project-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-bottom: 1rem;
    background: rgba(0, 255, 136, 0.2);
    color: var(--primary-color);
}

.project-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.project-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

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

.tech-tag {
    padding: 4px 12px;
    background: rgba(0, 102, 255, 0.2);
    color: var(--secondary-color);
    border-radius: 16px;
    font-size: 0.8rem;
}

/* Contact Section */
.contact {
    padding: 6rem 0;
    background: var(--card-bg);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    width: 40px;
}

.contact-form {
    background: var(--dark-bg);
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 1rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Footer */
.footer {
    background: var(--dark-bg);
    padding: 2rem 0;
    text-align: center;
    color: var(--text-secondary);
    border-top: 1px solid var(--border-color);
}

/* Уведомления */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
    z-index: 10000;
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.3s ease;
}

.notification.show {
    transform: translateX(0);
    opacity: 1;
}

.notification-success {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.notification-error {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

/* Анимации */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile версия */
@media (max-width: 768px) {
    /* Мобильное меню */
    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100vw;
        background: var(--card-bg);
        gap: 1.5rem;
        align-items: center;
        z-index: 999;
        padding: 2rem 0;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
        border-radius: 0 0 16px 16px;
        opacity: 0;
        pointer-events: none;
        transition: var(--transition);
    }
    
    .nav-menu.active {
        display: flex;
        opacity: 1;
        pointer-events: auto;
    }
    
    /* Показать гамбургер на мобильном */
    .hamburger {
        display: flex;
    }
    
    /* Hero адаптация */
    .hero-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
    
    .hero-stats {
        justify-content: center;
        gap: 1.5rem;
    }
    
    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .hero-visual {
        order: -1;
        height: 300px;
    }

    /* Hide decorative floating elements on small screens for clarity */
    .floating-elements {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    }
    
    /* Навигационные ссылки в мобильном */
    .nav-link {
        font-size: 1.1rem;
        padding: 0.5rem 0;
    }
    
    /* Секции адаптация */
    .skills,
    .projects,
    .contact {
        padding: 4rem 0;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .skills-grid,
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Очень маленькие экраны */
@media (max-width: 480px) {
    .nav-container {
        padding: 1rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .skill-category,
    .project-card,
    .contact-form {
        padding: 1.5rem;
    }

    /* Mobile tweaks for skills-list to match desktop look while staying compact */
    .skills-list-title {
        text-align: center;
        font-size: 1.18rem;
        margin-bottom: 1rem;
    }

    .skill-block {
        padding: 0.9rem 0.9rem 0.6rem 0.9rem;
        border-left: none;
        border: 1px solid rgba(51,51,51,0.25);
    }
}

.skills-list-section {
    margin: 3rem 0;
    padding: 2rem 1rem;
    background: #18191c;
    border-radius: 18px;
    box-shadow: 0 2px 24px 2px #13dd9822;
}
.skills-list-title {
    font-size: 1.35rem;
    color: #60ffe0;
    text-align: left;
    font-weight: 700;
    margin-bottom: 1.9rem;
}
.skill-block {
    background: #121212;
    border-radius: 12px;
    box-shadow: 0 0 9px #57efd944;
    margin-bottom: 1.2rem;
    padding: 1.1rem 1rem 0.3rem 1.3rem;
    border-left: 3px solid #33d1d1;
}
.skill-block h3 {
    font-size: 1.13rem;
    color: #70eaea;
    font-style: italic;
    display: flex;
    align-items: center;
    margin-bottom: .5rem;
    gap: 0.45em;
}
.skill-block ul {
    margin: 0 0 .3rem 0;
    padding: 0 0 0 1.5em;
    list-style: disc;
}
.skill-block ul li {
    color: #e7e7e7;
    font-size: 1.02rem;
    margin-bottom: .48em;
    letter-spacing: .01em;
}
.skill-block i {
    color: #9bffdd;
    font-size: 1.09em;
}
