:root {
    --bg-color: #121212;
    --text-color: #e0e0e0;
    --accent-color: #64ffda;
    --secondary-color: #8892b0;
    --card-bg: #1e1e1e;
    --hover-bg: rgba(100, 255, 218, 0.1);
}

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

body {
    font-family: 'Inter', 'Roboto', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

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

header {
    padding: 30px 0;
    position: fixed;
    width: 100%;
    top: 0;
    background-color: rgba(18, 18, 18, 0.9);
    backdrop-filter: blur(5px);
    z-index: 100;
    transition: all 0.3s ease;
}

header.scrolled {
    padding: 15px 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

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

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--accent-color);
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: rotate(5deg);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s;
    position: relative;
    padding: 5px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--accent-color);
    transition: width 0.3s;
}

.nav-links a:hover {
    color: var(--accent-color);
}

.nav-links a:hover::after {
    width: 100%;
}

.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
}

.hero-content {
    max-width: 800px;
}

.hero-subtitle {
    color: var(--accent-color);
    font-size: 18px;
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeInUp 0.5s ease forwards;
}

.hero-title {
    font-size: 60px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.1;
    opacity: 0;
    animation: fadeInUp 0.5s ease forwards;
    animation-delay: 0.2s;
}

.hero-title.secondary {
    color: var(--secondary-color);
    font-size: 33px;
    opacity: 0;
    animation: fadeInUp 0.5s ease forwards;
    animation-delay: 0.4s;
}

.hero-description {
    font-size: 20px;
    color: var(--secondary-color);
    margin-bottom: 30px;
    max-width: 600px;
    opacity: 0;
    animation: fadeInUp 0.5s ease forwards;
    animation-delay: 0.6s;
}

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

.btn {
    display: inline-block;
    background: transparent;
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
    border-radius: 4px;
    padding: 12px 24px;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
    opacity: 0;
    animation: fadeInUp 0.5s ease forwards;
    animation-delay: 0.8s;
}

.btn:hover {
    background: var(--hover-bg);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(100, 255, 218, 0.2);
}

section {
    padding: 30px 0;
}

.section-title {
    font-size: 32px;
    margin-bottom: 50px;
    display: flex;
    align-items: center;
    position: relative;
}

.section-title::after {
    content: "";
    display: block;
    height: 1px;
    width: 300px;
    background-color: var(--secondary-color);
    margin-left: 20px;
    opacity: 0.3;
}

.about-content {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 50px;
    align-items: center;
}

.about-text p {
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.about-text .btn {
    margin-top: 20px;
    animation: none;
    opacity: 1;
}

.skills-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.skills-category h3 {
    margin-bottom: 20px;
    color: var(--accent-color);
}

.skills-list {
    list-style: none;
}

.skills-list li {
    margin-bottom: 10px;
    color: var(--secondary-color);
    position: relative;
    padding-left: 20px;
}

.skills-list li::before {
    content: "▹";
    color: var(--accent-color);
    position: absolute;
    left: 0;
}

.profile-img {
    width: 100%;
    max-width: 300px;
    border-radius: 5px;
    filter: grayscale(20%);
    transition: all 0.3s;
    border: 2px solid var(--accent-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.profile-img:hover {
    filter: grayscale(0%);
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(100, 255, 218, 0.2);
}

.experience-item {
    margin-bottom: 50px;
    padding: 30px;
    background-color: rgba(30, 30, 30, 0.5);
    border-radius: 5px;
    transition: transform 0.3s;
    position: relative;
    overflow: hidden;
}

.experience-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background-color: var(--accent-color);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.3s;
}

.experience-item:hover {
    transform: translateX(5px);
}

.experience-item:hover::before {
    transform: scaleY(1);
}

.experience-title {
    font-size: 22px;
    margin-bottom: 5px;
}

.experience-company {
    color: var(--accent-color);
}

.experience-period {
    color: var(--secondary-color);
    font-size: 14px;
    margin-bottom: 15px;
}

.experience-description {
    color: var(--secondary-color);
    padding-left: 20px;
}

.experience-description li {
    margin-bottom: 10px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.project-card {
    background-color: var(--card-bg);
    border-radius: 5px;
    padding: 25px;
    transition: all 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--accent-color);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s;
}

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

.project-card:hover::before {
    transform: scaleX(1);
}

.project-title {
    font-size: 22px;
    margin-bottom: 15px;
}

.project-description {
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.project-tech span {
    font-size: 14px;
    color: var(--secondary-color);
    background-color: rgba(136, 146, 176, 0.1);
    padding: 3px 10px;
    border-radius: 3px;
    transition: all 0.3s;
}

.project-tech span:hover {
    color: var(--accent-color);
    background-color: var(--hover-bg);
}

.project-links {
    display: flex;
    gap: 15px;
}

.project-links a {
    color: var(--text-color);
    font-size: 20px;
    transition: all 0.3s;
}

.project-links a:hover {
    color: var(--accent-color);
    transform: translateY(-3px);
}

.contact-content {
    text-align: center;
    max-width: 450px;
    margin: 0 auto;
    padding: 40px;
    background-color: rgba(30, 30, 30, 0.5);
    border-radius: 5px;
    transition: transform 0.3s;
}

.contact-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.contact-text {
    color: var(--secondary-color);
    margin-bottom: 30px;
}

footer {
    padding: 30px 0;
    text-align: center;
    color: var(--secondary-color);
    font-size: 14px;
    border-top: 1px solid rgba(136, 146, 176, 0.1);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.social-links a {
    color: var(--text-color);
    font-size: 20px;
    transition: all 0.3s;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    background-color: rgba(30, 30, 30, 0);
}

.social-links a:hover {
    color: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Медиа-запросы для адаптивности */
@media (max-width: 992px) {
    .skills-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 40px;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        text-align: center;
        order: -1;
    }
    
    .section-title::after {
        width: 100px;
    }
    
    .skills-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 32px;
    }
    
    .nav-links {
        gap: 15px;
        font-size: 14px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .section-title::after {
        width: 50px;
    }
    
    .experience-title {
        font-size: 18px;
    }
}

/* Добавление скрипта для анимации при прокрутке */
@media (prefers-reduced-motion: no-preference) {
    .fade-in {
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
    
    .fade-in.visible {
        opacity: 1;
        transform: translateY(0);
    }
}
