/* ===== БОКОВОЕ МЕНЮ ===== */
.sidebar {
    width: 280px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--text-light);
    padding: 2.5rem 1.5rem;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    box-shadow: 4px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.sidebar h1 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    margin-bottom: 3rem;
    color: var(--accent-color);
    position: relative;
    padding-bottom: 1rem;
}

.sidebar h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--accent-color);
    border-radius: 3px;
}

.sidebar ul {
    list-style: none;
}

.sidebar li {
    margin-bottom: 1.2rem;
    position: relative;
    overflow: hidden;
    border-radius: 6px;
}

.sidebar li::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.sidebar li:hover::before {
    left: 0;
}

.sidebar a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    padding: 0.7rem 1rem;
    display: block;
    transition: var(--transition);
    border-radius: 6px;
}

.sidebar a:hover {
    color: var(--accent-color);
    transform: translateX(5px);
}

/* ===== ОСНОВНОЙ КОНТЕНТ ===== */
.content {
    margin-left: 280px;
    padding: 3rem;
    width: calc(100% - 280px);
}

.intro {
    margin-bottom: 4rem;
    animation: fadeIn 0.8s ease-out;

    & .profile-name {
        color: black;
    }
}

.intro h2 {
    font-family: 'Helvetica', sans-serif;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-dark);
    position: relative;
    display: inline-block;
}

.intro h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 70px;
    height: 4px;
    background: var(--accent-color);
    border-radius: 2px;
}

.intro p {
    font-size: 1.1rem;
    max-width: 700px;
    color: var(--text-dark);
    opacity: 0.9;
}

/* ===== КАРТОЧКИ ПРОЕКТОВ ===== */
.projects-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
    animation: fadeInUp 0.8s ease-out;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--primary-dark);
    grid-column: 1 / -1;
}

.project-card {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;

    & a {
        text-decoration: none;
    }
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.3));
    opacity: 0;
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.project-card:hover::before {
    opacity: 1;
}

.project-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: var(--transition);
}

.project-card:hover img {
    transform: scale(1.05);
}

.project-card h3 {
    padding: 1.5rem;
    font-size: 1.3rem;
    color: var(--primary-dark);
    font-weight: 600;
    position: relative;
}



.project-card:hover h3::after {
    width: 80px;
}

/* Карточка "Обо мне" */
.about-card {
    grid-column: 1 / -1;
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    padding: 2.5rem;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, rgba(255,255,255,0.9), rgba(245,249,252,0.9));
    border: 1px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.about-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(251,191,36,0.1) 0%, rgba(0,0,0,0) 70%);
    animation: rotate 15s linear infinite;
    z-index: -1;
}

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.about-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--primary-dark);
    position: relative;
    display: inline-block;
}

.about-card h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--accent-color);
    border-radius: 3px;
}

.about-card p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1rem;
}

.skill {
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary-dark);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition);
}

.skill:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* Адаптивность */
@media (max-width: 1024px) {
    .sidebar {
        width: 240px;
    }
    .content {
        margin-left: 240px;
        width: calc(100% - 240px);
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    body {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        padding: 1.5rem;
    }

    .sidebar h1 {
        margin-bottom: 1.5rem;
    }

    .sidebar ul {
        display: flex;
        flex-wrap: wrap;
        gap: 0.8rem;
    }

    .sidebar li {
        margin-bottom: 0;
    }

    .sidebar a {
        padding: 0.5rem 1rem;
    }

    .content {
        margin-left: 0;
        width: 100%;
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .intro h2 {
        font-size: 2rem;
    }
    
    .projects-preview {
        grid-template-columns: 1fr;
    }
    
    .about-card {
        padding: 1.5rem;
    }
}
/* ===== ПРОФИЛЬ И ФОТО ===== */
.profile-header {
    display: flex;
    align-items: center;
    gap: 3rem;
    margin-bottom: 4rem;
}

.profile-photo {
    width: var(--photo-size);
    height: var(--photo-size);
    border-radius: 50%;
    overflow: hidden;
    border: var(--photo-border) solid var(--accent-color);
    box-shadow: var(--shadow);
    transition: var(--transition);
    flex-shrink: 0;
}

.profile-photo:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-hover);
}

.profile-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-info {
    flex: 1;
}

/* Адаптивность для фото */
@media (max-width: 768px) {
    .profile-header {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .profile-photo {
        width: 120px;
        height: 120px;
    }
    
    .intro h2::after {
        left: 50%;
        transform: translateX(-50%);
    }
}
.tagline {
    font-size: 1.2rem;
    color: var(--primary-dark);
    margin-bottom: 1rem;
    font-weight: 500;
}

.social-links {
    display: flex;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.social-icon {
    display: inline-block;
    transition: var(--transition);
    opacity: 0.8;
    border-radius: 50%;
    padding: 8px;
    background: rgba(37, 99, 235, 0.1);
}

.social-icon:hover {
    opacity: 1;
    transform: translateY(-3px) scale(1.1);
    background: rgba(37, 99, 235, 0.2);
}

.social-icon img {
    display: block;
    width: 32px;
    height: 32px;
}

.social-link {
    padding: 0.5rem 1rem;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary-color);
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--primary-color);
    color: white;
}

