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

:root {
    --bg-primary: #0a0e17;
    --bg-secondary: #141821;
    --bg-card: #1a1f2e;
    --text-primary: #e4e6eb;
    --text-secondary: #a8b3cf;
    --accent: #4a9eff;
    --accent-dark: #2d7dd2;
    --border: #2a3142;
    --success: #4caf50;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 320px 1fr;
    min-height: 100vh;
}

.language-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}

.lang-btn {
    padding: 10px 20px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.lang-btn:hover {
    background: rgba(74, 158, 255, 0.1);
}

.lang-btn.active {
    background: var(--accent);
    color: white;
}

.sidebar {
    background: var(--bg-secondary);
    padding: 40px 30px;
    border-right: 1px solid var(--border);
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.profile-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border);
}

.profile-header h1 {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.profile-header .title {
    color: var(--accent);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.sidebar-section {
    margin-bottom: 35px;
}

.sidebar-section h3 {
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-primary);
    margin-bottom: 15px;
}

.sidebar-section p {
    color: var(--text-secondary);
}

.info-item {
    display: flex;
    align-items: start;
    margin-bottom: 12px;
    font-size: 14px;
    gap: 8px;
}

.info-item strong {
    color: var(--text-primary);
    min-width: 95px;
    font-weight: 600;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 13px;
    transition: all 0.2s;
}

.contact-link:hover {
    background: var(--accent);
    border-color: var(--accent);
    transform: translateX(3px);
}

.contact-link svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.main-content {
    padding: 40px 50px;
    overflow-y: auto;
}

.section {
    margin-bottom: 50px;
}

.section-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--text-primary);
    position: relative;
    padding-bottom: 12px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--accent);
}

.subsection-title {
    font-size: 18px;
    font-weight: 600;
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.profile-text {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-secondary);
    max-width: 900px;
}

.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-tag {
    background: linear-gradient(135deg, rgba(74, 158, 255, 0.05), rgba(74, 158, 255, 0.02));
    border: 1px solid rgba(74, 158, 255, 0.2);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    text-align: center;
    transition: all 0.2s;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.skill-tag:hover {
    background: linear-gradient(135deg, rgba(74, 158, 255, 0.15), rgba(74, 158, 255, 0.08));
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 158, 255, 0.25);
}

.skill-tag.learning {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.05), rgba(255, 193, 7, 0.02));
    border-style: dashed;
}

.skill-tag.learning:hover {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.15), rgba(255, 193, 7, 0.08));
    border-color: rgba(255, 193, 7, 0.6);
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.25);
}

.experience-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
    transition: all 0.2s;
}

.experience-item:hover {
    border-color: var(--accent);
    box-shadow: 0 4px 16px rgba(74, 158, 255, 0.1);
}

.experience-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.experience-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
}

.experience-period {
    font-size: 13px;
    color: var(--accent);
    font-weight: 600;
    background: rgba(74, 158, 255, 0.1);
    padding: 4px 12px;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.experience-duration {
    font-size: 11px;
    color: var(--text-secondary);
    font-weight: 500;
}

.experience-item ul {
    list-style: none;
    padding-left: 0;
}

.experience-item li {
    padding-left: 24px;
    margin-bottom: 8px;
    position: relative;
    color: var(--text-secondary);
    font-size: 15px;
    max-width: 800px;
}

.experience-item li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
}

.project-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
    transition: all 0.2s;
}

.project-item:hover {
    border-color: var(--accent);
    box-shadow: 0 4px 16px rgba(74, 158, 255, 0.1);
    transform: translateY(-2px);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 10px;
}

.project-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.project-link {
    color: var(--accent);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.project-link:hover {
    color: var(--accent-dark);
    transform: translateX(3px);
}

.project-link svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.project-badge {
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 4px;
    background: rgba(76, 175, 80, 0.1);
    color: var(--success);
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.project-description {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.7;
}

@media (max-width: 1024px) {
    .container {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: relative;
        height: auto;
        border-right: none;
        border-bottom: 1px solid var(--border);
    }

    .main-content {
        padding: 30px 25px;
    }

    .skills-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

    .language-toggle {
        top: 10px;
        right: 10px;
    }
}

@media (max-width: 640px) {
    .skills-grid {
        grid-template-columns: 1fr;
    }
}