/* Reset & Base */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background-color: #111; /* Темный фон */
    color: #eee;            /* Светлый текст */
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    line-height: 1.4;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

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

/* Typography */
h1, h2, h3 { font-weight: 400; margin-bottom: 15px; }
h1 { font-size: 48px; line-height: 1.1; margin-bottom: 20px; letter-spacing: -1px; }
h2 {
    font-size: 32px;
    border-bottom: 1px solid #333;
    padding-bottom: 15px;
    margin-top: 60px;
    margin-bottom: 30px;
    color: #fff;
}
h3 { font-size: 20px; color: #aaa; margin-bottom: 20px; border-bottom: none; padding-bottom: 0; }

a { color: inherit; text-decoration: none; border-bottom: 1px solid #555; transition: 0.2s; }
a:hover { border-bottom-color: #fff; }

ul, ol { list-style: none; }

/* Header / Profile Area */
.header-grid {
    display: grid;
    grid-template-columns: 300px 1fr; /* Фото 300px, остальное текст */
    gap: 60px;
    margin-bottom: 80px;
}

.photo {
    width: 100%;
    height: auto;
    display: block;
    /* filter удален, фото будет цветным */
}
.photo:hover { filter: grayscale(0%); }

.info-col {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.intro {
    font-size: 24px;
    margin-bottom: 40px;
    line-height: 1.4;
    max-width: 650px;
    color: #ccc;
}

.specialization {
    border-top: 1px solid #333;
    padding-top: 25px;
}
.spec-item {
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    color: #bbb;
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    margin-bottom: 60px;
}

.skill-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    border-bottom: 1px solid #2a2a2a;
    padding: 12px 0;
    font-size: 18px;
}
.skill-level { color: #555; font-family: monospace; font-size: 16px; }

/* Main Content Grid (Split Layout) */
.main-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr; /* Пропорция колонок */
    gap: 80px;
}

/* Left & Right Columns content */
.mb-section { margin-bottom: 50px; }

/* Experience List */
.experience-item { margin-bottom: 45px; }
.exp-header { font-size: 22px; margin-bottom: 5px; color: #fff; }
.exp-period { color: #666; margin-bottom: 15px; font-size: 14px; }
.exp-tasks li {
    position: relative;
    padding-left: 0;
    margin-bottom: 8px;
    color: #bbb;
    font-size: 16px;
    line-height: 1.5;
}

/* Soft Skills List */
.soft-list li {
    margin-bottom: 10px;
    color: #bbb;
    font-size: 18px;
}
.soft-list li::before { content: "• "; color: #444; margin-right: 8px;}

/* Looking For List */
.looking-list li {
    margin-bottom: 10px;
    color: #bbb;
    font-size: 16px;
}

/* Contacts */
.contact-row {
    margin-bottom: 15px;
    font-size: 18px;
}
.contact-label { color: #666; margin-right: 10px; }

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .header-grid, .skills-grid, .main-grid { grid-template-columns: 1fr; gap: 40px; }
    .photo { max-width: 100%; margin-bottom: 20px; }
    h1 { font-size: 36px; }
    .container { padding: 30px 20px; }
}
/* --- Projects Grid --- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.project-card {
    background: #1a1a1a; /* Под темную тему, если у тебя светлая - поменяй на #f5f5f5 */
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s;
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.project-preview {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* Aspect Ratio 16:9 */
    background: #333;
    overflow: hidden;
}

.project-preview img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s;
}

.project-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.project-overlay span {
    color: #fff;
    font-weight: 500;
    border: 1px solid #fff;
    padding: 8px 16px;
    border-radius: 20px;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-title {
    margin: 15px 15px 5px;
    font-size: 18px;
    font-weight: 600;
    color: #fff; /* или #000 для светлой темы */
}

.project-desc {
    margin: 0 15px 20px;
    font-size: 14px;
    color: #bbb;
    line-height: 1.4;
}

.no-image-placeholder {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: #2a2a2a;
}
/* --- Project Detail Page Styles --- */

.project-page-title {
    margin-bottom: 30px;
}

.main-image-wrapper {
    width: 100%;
    margin-bottom: 60px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #2a2a2a;
}

.main-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
}

/* Video Responsive Container */
.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    background: #000;
    border-radius: 8px;
    margin-bottom: 40px;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Две колонки картинок */
    gap: 20px;
}

.gallery-item img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    transition: opacity 0.2s;
    border: 1px solid #2a2a2a;
}

.gallery-item img:hover {
    opacity: 0.9;
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr; /* Одна колонка на мобильных */
    }
}
