/* Base styles */
:root {
    --blue-300: #93c5fd;
    --blue-400: #60a5fa;
    --gray-100: #f3f4f6;
    --gray-400: #9ca3af;
    --gray-700: #374151;
    --gray-900: #111827;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--gray-900);
    color: var(--gray-100);
    line-height: 1.5;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header styles */
.header {
    position: fixed;
    width: 100%;
    background-color: rgba(17, 24, 39, 0.95);
    backdrop-filter: blur(4px);
    border-bottom: 1px solid rgba(96, 165, 250, 0.1);
    z-index: 50;
}

.nav-container {
    padding: 1rem;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

.logo {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--blue-300);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--gray-100);
    text-decoration: none;
    position: relative;
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--blue-300);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: rgba(96, 165, 250, 0.5);
    transition: width 0.3s;
}

.nav-link:hover::after {
    width: 100%;
}

/* Hero section */
.hero-section {
    padding: 8rem 1rem 5rem;
}

.hero-content {
    display: flex;
    align-items: flex-start;
    gap: 3rem;
}

.profile-image {
    width: 24rem;
    height: 24rem;
    border-radius: 50%;
    border: 4px solid rgba(96, 165, 250, 0.3);
    overflow: hidden;
    transition: border-color 0.3s;
    flex-shrink: 0;
}

.profile-image:hover {
    border-color: rgba(96, 165, 250, 0.5);
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-text h1 {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, var(--blue-300), var(--gray-100));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.job-title {
    font-size: 1.5rem;
    color: var(--blue-400);
    margin-bottom: 2rem;
}

.description {
    max-width: 42rem;
    color: var(--gray-400);
    margin-bottom: 2rem;
}

/* Button styles */
.btn {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    background-color: rgba(96, 165, 250, 0.2);
    color: var(--blue-300);
    border-radius: 0.5rem;
    text-decoration: none;
    border: 1px solid rgba(96, 165, 250, 0.3);
    transition: all 0.3s;
}

.btn:hover {
    background-color: rgba(96, 165, 250, 0.3);
    border-color: rgba(96, 165, 250, 0.5);
    color: var(--gray-100);
    transform: scale(1.05);
}

/* Experience section */
.experience-section {
    padding: 5rem 1rem;
    background-color: rgba(96, 165, 250, 0.05);
}

.experience-section h2 {
    font-size: 1.875rem;
    font-weight: bold;
    color: var(--blue-300);
    margin-bottom: 3rem;
}

.experience-cards {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.experience-card {
    background-color: rgba(17, 24, 39, 0.5);
    padding: 1.5rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(96, 165, 250, 0.1);
    transition: all 0.3s;
}

.experience-card:hover {
    border-color: rgba(96, 165, 250, 0.3);
}

.experience-header {
    display: flex;
    justify-content: space-between;
}

.experience-header h3 {
    font-size: 1.25rem;
    color: var(--blue-300);
}

.experience-header p {
    color: var(--gray-400);
}

.date {
    color: var(--blue-400);
}

.toggle-details {
    background: none;
    border: none;
    color: var(--gray-400);
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.3s;
    display: flex;
    justify-content: center; /* Центрирование */
    align-items: center;
    width: 100%; /* Растягивание на всю ширину */
}


/* Skills section */
.skills-section {
    padding: 5rem 1rem;
}

.skills-section h2 {
    font-size: 1.875rem;
    font-weight: bold;
    color: var(--blue-300);
    margin-bottom: 3rem;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.skill-card {
    background-color: rgba(17, 24, 39, 0.5);
    padding: 1.5rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(96, 165, 250, 0.1);
    transition: all 0.3s;
}

.skill-card:hover {
    border-color: rgba(96, 165, 250, 0.3);
}

.skill-card h3 {
    font-size: 1.25rem;
    color: var(--blue-300);
    margin-bottom: 1rem;
}

.skill-bar {
    width: 100%;
    height: 0.625rem;
    background-color: var(--gray-700);
    border-radius: 9999px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background-color: rgba(96, 165, 250, 0.5);
    border-radius: 9999px;
    transition: width 1s;
}

.tech-skills {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.tech-card {
    background-color: rgba(17, 24, 39, 0.5);
    padding: 1.5rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(96, 165, 250, 0.1);
    transition: all 0.3s;
}

.tech-card:hover {
    border-color: rgba(96, 165, 250, 0.3);
}

.tech-card h3 {
    font-size: 1.125rem;
    color: var(--blue-300);
    margin-bottom: 0.5rem;
}

.tech-card p {
    color: var(--gray-400);
    font-size: 0.875rem;
}

/* Languages section */
.languages h3 {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--blue-300);
    margin-bottom: 1.5rem;
}

.language-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.language-card {
    background-color: rgba(17, 24, 39, 0.5);
    padding: 1rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(96, 165, 250, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s;
}

.language-card:hover {
    border-color: rgba(96, 165, 250, 0.3);
}

.language-card span:first-child {
    font-weight: 500;
    color: var(--blue-300);
}

.language-card span:last-child {
    color: var(--blue-400);
}

/* Contact section */
.contact-section {
    padding: 5rem 1rem;
    background-color: rgba(96, 165, 250, 0.05);
}

.contact-section h2 {
    font-size: 1.875rem;
    font-weight: bold;
    color: var(--blue-300);
    margin-bottom: 3rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.contact-grid .btn {
    justify-content: center;
}

/* Footer */
footer {
    padding: 2rem 1rem;
    text-align: center;
    color: var(--gray-400);
    border-top: 1px solid rgba(96, 165, 250, 0.1);
}

/* Responsive design */
@media (max-width: 768px) {
    .hero-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .profile-image {
        width: 16rem;
        height: 16rem;
    }

    .nav-links {
        display: none;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .job-title {
        font-size: 1.25rem;
    }
}

@media (max-width: 640px) {
    .skills-grid,
    .tech-skills,
    .language-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }
}