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

:root {
    --primary-color: #4F46E5;
    --primary-dark: #4338CA;
    --primary-light: #818CF8;
    --secondary-color: #06B6D4;
    --accent-color: #F59E0B;
    --text-primary: #1F2937;
    --text-secondary: #6B7280;
    --text-light: #9CA3AF;
    --bg-primary: #FFFFFF;
    --bg-secondary: #F9FAFB;
    --bg-sidebar: #0F172A;
    --bg-card: #FFFFFF;
    --border-color: #E5E7EB;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-primary);
    line-height: 1.6;
}

.wrapper {
    max-width: 1200px;
    margin: 0 auto;
    background-color: var(--bg-primary);
    display: grid;
    grid-template-columns: 1fr 370px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    animation: fadeIn 0.6s ease-out;
}

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

/* Main Content */
.main-content {
    padding: 60px;
    background-color: var(--bg-primary);
}

/* Profile Info */
.my-info {
    margin-bottom: 48px;
    animation: slideInLeft 0.6s ease-out 0.2s both;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.name-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.my-name {
    font-size: 48px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    line-height: 1.2;
    letter-spacing: -1px;
}

.my-profession {
    font-size: 20px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.my-descr {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 600px;
}

/* Section Titles */
.section-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--primary-color);
    position: relative;
}

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

/* Projects */
.my-project-container {
    margin-bottom: 48px;
    animation: slideInLeft 0.6s ease-out 0.3s both;
}

.project-card {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s ease;
}

.project-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

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

.project-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.project-badge {
    background: var(--bg-secondary);
    color: var(--primary-color);
    padding: 6px 16px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
}

.project-description {
    color: var(--text-secondary);
    font-size: 14px;
}

/* Experience */
.work-experience-container {
    margin-bottom: 48px;
    animation: slideInLeft 0.6s ease-out 0.4s both;
}

.experience-card {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 16px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.experience-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: var(--primary-color);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

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

.experience-card:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-md);
    transform: translateX(4px);
}

.experience-card.highlight {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.05), rgba(129, 140, 248, 0.05));
    border-color: var(--primary-light);
}

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

.experience-company {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 4px;
}

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

.experience-period {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    padding: 6px 14px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

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

.experience-duties li {
    color: var(--text-secondary);
    font-size: 15px;
    padding: 6px 0;
    padding-left: 24px;
    position: relative;
}

.experience-duties li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 700;
}

/* Education */
.education-container {
    animation: slideInLeft 0.6s ease-out 0.5s both;
}

.education-card {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s ease;
}

.education-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.education-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
}

.education-name a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.education-name a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.education-details {
    display: flex;
    gap: 16px;
    align-items: center;
}

.education-lvl {
    background: var(--bg-secondary);
    color: var(--text-primary);
    padding: 6px 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
}

.education-period {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
}

/* Sidebar */
.sidebar {
    background: var(--bg-sidebar);
    color: white;
    display: flex;
    flex-direction: column;
}

.profile-section {
    position: relative;
    overflow: hidden;
}

.my-photo {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.profile-section:hover .my-photo {
    transform: scale(1.05);
}

.profile-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.95), transparent);
    padding: 24px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.profile-section:hover .profile-overlay {
    transform: translateY(0);
}

.profile-status {
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-dot {
    width: 10px;
    height: 10px;
    background: #10B981;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    50% {
        opacity: 0.8;
        box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
    }
}

.status-text {
    font-size: 13px;
    font-weight: 600;
    color: white;
}

.sidebar-content {
    padding: 32px 24px;
    flex: 1;
}

.sidebar-title {
    font-size: 18px;
    font-weight: 700;
    color: white;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 14px;
}

/* Contacts */
.contacts-container {
    margin-bottom: 32px;
}

.contacts-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(4px);
}

.contact-icon {
    font-size: 24px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.contact-label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.contact-value {
    color: white;
    font-size: 14px;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.contact-value:hover {
    color: var(--primary-light);
}

/* Skills */
.skills-container {
    margin-bottom: 32px;
}

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

.skill-tag {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.skill-tag:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.4);
}

/* Soft Skills */
.soft-container {
    margin-bottom: 32px;
}

.soft-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.soft-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    transition: all 0.3s ease;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
}

.soft-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(4px);
}

.soft-icon {
    font-size: 20px;
}

/* Responsive Design */
@media screen and (max-width: 1024px) {
    .wrapper {
        grid-template-columns: 1fr;
    }

    .sidebar {
        order: -1;
    }

    .main-content {
        padding: 40px;
    }

    .profile-overlay {
        transform: translateY(0);
    }
}

@media screen and (max-width: 768px) {
    body {
        padding: 10px;
    }

    .wrapper {
        border-radius: 16px;
    }

    .main-content {
        padding: 32px 24px;
    }

    .my-name {
        font-size: 36px;
    }

    .my-profession {
        font-size: 18px;
    }

    .section-title {
        font-size: 20px;
    }

    .experience-header {
        flex-direction: column;
        gap: 8px;
    }

    .experience-period {
        align-self: flex-start;
    }

    .sidebar-content {
        padding: 24px 20px;
    }
}

@media screen and (max-width: 480px) {
    .main-content {
        padding: 24px 16px;
    }

    .my-name {
        font-size: 28px;
    }

    .name-badge {
        font-size: 12px;
        padding: 6px 16px;
    }

    .project-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .experience-card,
    .project-card,
    .education-card {
        padding: 16px;
    }

    .skills-grid {
        gap: 6px;
    }

    .skill-tag {
        font-size: 12px;
        padding: 6px 12px;
    }
}

/* Print styles */
@media print {
    body {
        background: white;
        padding: 0;
    }

    .wrapper {
        box-shadow: none;
        border-radius: 0;
    }

    .sidebar {
        background: #f3f4f6;
        color: var(--text-primary);
    }

    .sidebar-title,
    .contact-value,
    .soft-item {
        color: var(--text-primary);
    }

    .contact-item,
    .soft-item {
        background: transparent;
        border: 1px solid var(--border-color);
    }

    .skill-tag {
        background: var(--bg-secondary);
        color: var(--text-primary);
        border-color: var(--border-color);
    }

    .experience-card,
    .project-card,
    .education-card {
        break-inside: avoid;
    }
}