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

body {
    background: linear-gradient(135deg, #1a0005 0%, #2d0000 100%);
    color: #f0e6e6;
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    padding: 40px 20px;
}

.portfolio {
    max-width: 1100px;
    margin: 0 auto;
}

/* Header */
.header {
    margin-bottom: 80px;
}

.profile {
    display: flex;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
    justify-content: center;
}

.photo-wrapper {
    flex-shrink: 0;
}

.profile-photo {
    width: 240px;
    height: 240px;
    border-radius: 50%;
    object-fit: cover;
    border: 6px solid #ff1744;
    box-shadow: 0 15px 40px rgba(255, 23, 68, 0.3);
}

.info {
    max-width: 600px;
}

.name {
    font-family: 'Clash Display', sans-serif;
    font-size: 4.2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 10px;
    line-height: 1;
}

.subtitle {
    font-size: 1.4rem;
    color: #ff8a80;
    margin-bottom: 20px;
    font-weight: 500;
}

.bio {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #ddd;
}

/* Заголовки */
.section-title {
    font-family: 'Clash Display', sans-serif;
    font-size: 3rem;
    font-weight: 600;
    color: white;
    margin-bottom: 40px;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: #ff1744;
    border-radius: 2px;
}

/* Навички */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 60px;
}

.skill {
    background: rgba(255, 255, 255, 0.05);
    padding: 25px;
    border-radius: 16px;
    text-align: center;
    font-size: 1.3rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s;
}

.skill:hover {
    background: rgba(255, 23, 68, 0.15);
    transform: translateY(-8px);
    border-color: #ff1744;
}

/* Проєкти */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.project-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 20px;
    text-decoration: none;
    color: inherit;
    transition: all 0.4s;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.project-card:hover {
    transform: translateY(-12px);
    background: rgba(255, 23, 68, 0.1);
    border-color: #ff1744;
    box-shadow: 0 20px 40px rgba(255, 23, 68, 0.2);
}

.project-title {
    font-family: 'Clash Display', sans-serif;
    font-size: 1.6rem;
    margin-bottom: 12px;
    color: white;
}

.project-card p {
    color: #ccc;
    font-size: 1rem;
}

/* Про мене */
.about-content {
    font-size: 1.2rem;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto 60px;
    text-align: center;
    color: #e0e0e0;
}

.highlight {
    font-size: 1.4rem;
    color: #ff8a80;
    margin-top: 20px;
    font-weight: 500;
}

/* Контакти */
.contacts-list {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.contact-item {
    font-size: 1.2rem;
    color: #ff8a80;
    transition: color 0.3s;
}

.contact-item:hover {
    color: white;
}

/* Адаптив */
@media (max-width: 768px) {
    .profile {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .name {
        font-size: 3rem;
    }

    .section-title {
        font-size: 2.5rem;
    }

    .skills-grid,
    .projects-grid {
        grid-template-columns: 1fr;
    }
}

/* === СТРАНИЦЫ ПРОЕКТОВ === */
.project-header {
    text-align: center;
    padding: 80px 20px 40px;
    background: linear-gradient(135deg, #1a0005, #2d0000);
    border-bottom: 4px solid #ff1744;
    position: relative;
}

.back-link {
    position: absolute;
    left: 30px;
    top: 50%;
    transform: translateY(-50%);
    color: #ff8a80;
    font-weight: 600;
    font-size: 1.1rem;
    transition: color 0.3s;
}

.back-link:hover {
    color: white;
}

.project-header h1 {
    font-family: 'Clash Display', sans-serif;
    font-size: 3.5rem;
    color: white;
    margin-bottom: 10px;
}

.project-header p {
    font-size: 1.3rem;
    color: #ff8a80;
}

/* Контент проекта */
.project-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px;
}

.project-content {
    text-align: center;
}

/* Галерея дизайна */
.design-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.design-gallery img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
    transition: all 0.4s;
    border: 3px solid rgba(255, 255, 255, 0.1);
}

.design-gallery img:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 50px rgba(255, 23, 68, 0.4);
    border-color: #ff1744;
}

/* Карточка кода */
.code-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 40px;
    border-radius: 20px;
    max-width: 700px;
    margin: 0 auto;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.code-card p {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 30px;
    color: #e0e0e0;
}

.project-link {
    display: inline-block;
    background: #ff1744;
    color: white;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s;
}

.project-link:hover {
    background: #ff5252;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 23, 68, 0.4);
}