/* Сброс стилей */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f5f5dc 0%, #e8e8d3 100%);
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Боковое меню */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 250px;
    height: 100vh;
    background-color: #f5f5dc;
    padding: 20px;
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
    z-index: 1000;
    overflow-y: auto;
}

.logo-img {
    width: 100%;
    margin: 20px 0;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s;
}

.logo-img:hover {
    transform: scale(1.02);
}

.language-select {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border-radius: 5px;
    border: 1px solid #ddd;
    background-color: #fff;
    font-size: 14px;
    cursor: pointer;
}

.nav-menu {
    list-style: none;
    margin-top: 20px;
}

.nav-menu li {
    margin: 10px 0;
}

.nav-menu a {
    display: block;
    padding: 12px 15px;
    text-decoration: none;
    color: #333;
    font-size: 17px;
    border-radius: 5px;
    transition: all 0.3s;
    cursor: pointer;
}

.nav-menu a:hover {
    background-color: #eee;
    transform: translateX(5px);
}

.nav-menu a.active {
    background-color: #cfcfb4;
    color: #333;
    font-weight: 600;
}

.nav-menu i {
    margin-right: 10px;
    color: darkorange;
    font-size: 20px;
}

/* Основной контент */
.main-content {
    margin-left: 250px;
    padding: 40px 20px 80px 20px;
    min-height: 100vh;
}

.section {
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(20px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

h1 {
    color: #333;
    margin-bottom: 30px;
    font-size: 2.5em;
    font-weight: 700;
}

h2 {
    color: #555;
    margin-bottom: 20px;
    font-size: 2em;
    font-weight: 600;
}

h3 {
    color: #666;
    margin-bottom: 15px;
    font-size: 1.5em;
    font-weight: 600;
}

/* About section */
.about-container {
    display: grid;
    grid-template-columns: 2fr 0.5fr 1fr;
    gap: 30px;
    align-items: start;
}

.about-text {
    line-height: 1.8;
    font-size: 1.1em;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.about-image img:hover {
    transform: scale(1.02);
}

/* Experience section */
.experience-item {
    display: grid;
    grid-template-columns: 1fr 5fr;
    gap: 20px;
    margin-bottom: 40px;
    align-items: start;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.experience-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.experience-image img {
    width: 100%;
    border-radius: 8px;
    max-height: 150px;
    object-fit: contain;
    background: #f9f9f9;
    padding: 10px;
}

.skills-badge {
    display: inline-block;
    background: #e8e8d3;
    padding: 5px 10px;
    border-radius: 5px;
    margin: 5px 5px 5px 0;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    font-weight: 600;
    color: #333;
}

/* Tech skills */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.tech-item {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.tech-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.tech-title {
    font-weight: bold;
    margin-bottom: 10px;
    color: #555;
    font-size: 1.1em;
}

.tech-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* Projects */
.project-item {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 20px;
    margin-bottom: 40px;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.project-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.project-image img {
    width: 100%;
    border-radius: 8px;
    max-height: 200px;
    object-fit: cover;
    transition: transform 0.3s;
}

.project-image img:hover {
    transform: scale(1.05);
}

/* Resume */
.resume-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.resume-image {
    width: 100%;
    max-width: 800px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    transition: transform 0.3s;
}

.resume-image:hover {
    transform: scale(1.01);
}

.download-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    margin-top: 20px;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.download-btn i {
    margin-right: 8px;
}

/* Social icons */
.social-icons {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 999;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.social-icon:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Divider */
.divider {
    height: 2px;
    background: linear-gradient(90deg, transparent, #667eea, transparent);
    margin: 40px 0;
}

/* Subtitle */
.subtitle {
    color: #666;
    font-size: 1.2em;
    margin-bottom: 20px;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        position: relative;
        width: 100%;
        height: auto;
        padding: 10px;
    }

    .main-content {
        margin-left: 0;
        padding: 20px 10px 80px 10px;
    }

    .about-container,
    .experience-item,
    .project-item {
        grid-template-columns: 1fr;
    }

    .tech-grid {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 2em;
    }

    h2 {
        font-size: 1.5em;
    }

    h3 {
        font-size: 1.2em;
    }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #cfcfb4;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #b8b894;
}

/* Links */
a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* Testimonial link */
.testimonial-link {
    display: inline-block;
    margin-top: 10px;
    color: #667eea;
    font-weight: 500;
}

.testimonial-link:hover {
    color: #764ba2;
}

/* Новый стиль для контейнера с фото и именем */
.logo-container {
    text-align: center;
    margin: 20px 0;
    position: relative;
}

.logo-name {
    font-weight: bold;
    font-size: 1.4em;
    color: #333;
    margin-top: 10px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* Улучшенные стили для меню */
.nav-menu {
    list-style: none;
    margin-top: 15px;
}

.nav-menu li {
    margin: 12px 0;
}

.nav-menu a {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    text-decoration: none;
    color: #333;
    font-size: 17px;
    border-radius: 5px;
    transition: all 0.3s;
    cursor: pointer;
    width: 100%;
}

.nav-menu a i {
    margin-right: 15px;
    color: #667eea;
    font-size: 20px;
    width: 24px;
    text-align: center;
}

.nav-menu a span {
    flex: 1;
}

.language-selector {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.language-label {
    display: flex;
    align-items: center;
    color: #555;
    font-size: 14px;
    margin-bottom: 8px;
    font-weight: 500;
}

.language-select {
    width: 100%;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ddd;
    background-color: #fff;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s;
}

.language-select:hover {
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
}
.resume-iframe-container {
    width: 100%;
    height: 800px; /* Можно регулировать под ваше содержимое */
    overflow: auto;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    background: white;
}

.resume-iframe {
    width: 100%;
    height: 100%;
    border: none;
    min-height: 800px;
}

/* Стили для выбора языка */
.language-selector {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.language-label {
    display: flex;
    align-items: center;
    color: #555;
    font-size: 14px;
    margin-bottom: 8px;
    font-weight: 500;
}

.language-select {
    width: 100%;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ddd;
    background-color: #fff;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s;
}

.language-select:hover {
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
}

/* Подпись под фото */
.logo-name {
    font-weight: bold;
    font-size: 1.4em;
    color: #333;
    margin-top: 10px;
    text-align: center;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* Стили для листаемого резюме через iframe */
.resume-iframe-container {
    width: 100%;
    height: 800px;
    overflow: auto;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    background: white;
}

.resume-iframe {
    width: 100%;
    height: 100%;
    border: none;
    min-height: 800px;
}

/* Резервный контейнер для изображений резюме */
.resume-images-container {
    width: 100%;
    height: 800px;
    overflow-y: auto;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.resume-images-container img {
    width: 100%;
    max-width: 800px;
    display: block;
    margin: 0 auto 30px;
    border: 1px solid #eee;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    background: #f9f9f9;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .resume-iframe-container,
    .resume-images-container {
        height: 600px;
    }
    
    .resume-iframe {
        min-height: 600px;
    }
    
    .resume-images-container {
        padding: 10px;
    }
    
    .resume-images-container img {
        max-width: 100%;
        margin-bottom: 20px;
    }
}