body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #1e1e1e;
    color: #ffffff;
    line-height: 1.6;
}

header {
    background-color: #333;
    padding: 20px 0;
    text-align: center;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

    nav ul li {
        display: inline;
        margin: 0 15px;
    }

        nav ul li a {
            color: #ffffff;
            text-decoration: none;
            font-weight: bold;
            font-size: 18px;
            transition: color 0.3s ease;
            padding: 10px 20px;
            border-radius: 5px;
        }

            nav ul li a:hover {
                background-color: #444;
            }

            nav ul li a.active {
                background-color: #4CAF50;
                color: #fff;
            }

.container {
    padding: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

h1 {
    font-size: 50px;
    margin-bottom: 20px;
    color: #4CAF50;
    text-align: center;
}

h2 {
    font-size: 24px;
    color: #cccccc;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes zoomIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.fade-in {
    animation: fadeIn 1s ease-out forwards;
    opacity: 0;
}

.zoom-in {
    animation: zoomIn 1s ease-out forwards;
    opacity: 0;
}

.main-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
}

.left-block {
    flex: 1;
    text-align: left;
}

.right-block {
    flex: 1;
    text-align: right;
}

.name {
    font-size: 53px;
    color: #4CAF50;
    margin-bottom: 10px;
    font-weight: bold;
}

.student {
    font-size: 24px;
    color: #cccccc;
    margin-bottom: 10px;
}

.group {
    font-size: 20px;
    color: #cccccc;
    margin-bottom: 20px;
}

.divider {
    width: 100%;
    height: 2px;
    background-color: #4CAF50;
    margin: 20px 0;
}

.contacts {
    font-size: 18px;
    margin: 10px 0;
}

    .contacts a {
        color: #4CAF50;
        text-decoration: none;
        transition: color 0.3s ease;
    }

        .contacts a:hover {
            color: #008000;
        }

.social-links {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.social-icon {
    width: 24px;
    height: 24px;
    transition: opacity 0.3s ease;
}

    .social-icon:hover {
        opacity: 0.7;
    }

.profile-photo {
    width: 412px;
    height: 550px;
    border-radius: 10px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

    .profile-photo:hover {
        transform: scale(1.05);
    }

/* Проекты */
.project-list {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.project-item {
    background-color: #333;
    padding: 15px;
    border-radius: 10px;
    width: 600px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .project-item:hover {
        transform: translateY(-10px);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    }

    .project-item h3 {
        font-size: 20px;
        color: #4CAF50;
    }

    .project-item p {
        font-size: 16px;
        color: #cccccc;
    }

.loading-gif {
    width: 500px;
    height: 225px;
    margin-bottom: 10px;
    border-radius: 10px;
}

.about-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
}

.about-photo {
    width: 300px;
    height: 300px;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

    .about-photo:hover {
        transform: scale(1.05);
    }

.about-content p {
    font-size: 18px;
    color: #cccccc;
    max-width: 600px;
}

.tab-content {
    display: none;
}

    .tab-content.active {
        display: block;
    }

/* Мобильная версия */
@media (max-width: 768px) {
    h1 {
        font-size: 24px;
        line-height: 1.2;
        margin-bottom: 10px;
    }

    h2 {
        font-size: 18px;
        line-height: 1.2;
        margin-bottom: 10px;
    }

    .main-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .name {
        font-size: 30px;
        margin-bottom: 10px;
        font-weight: bold;
        order: 1;
        text-align: center
    }

    .student {
        font-size: 18px;
        margin-bottom: 10px;
        order: 1;
        text-align: center
    }

    .group {
        font-size: 16px;
        margin-bottom: 20px;
        order: 3;
        text-align: center
    }

    .right-block {
        order: 4;
        text-align: center
    }

    .divider {
        margin: 20px auto;
        width: 80%;
        order: 5;
        text-align: center
    }

    .contacts {
        font-size: 16px;
        margin: 10px 0;
        order: 6;
        text-align: center
    }

    .social-links {
        justify-content: center;
        margin-top: 10px;
        order: 7;
        text-align: center
    }

    .profile-photo {
        width: 100%;
        max-width: 300px;
        height: auto;
        aspect-ratio: 3 / 4;
        border-radius: 10px;
        margin-bottom: 20px;
    }

    .project-list {
        flex-direction: column;
        align-items: center;
    }

    .project-item {
        width: 100%;
        max-width: 300px;
    }

    .loading-gif {
        width: 100%;
        height: auto;
        max-width: 300px;
        border-radius: 10px;
    }

    .about-content {
        flex-direction: column;
        text-align: center;
    }

    .about-photo {
        width: 100%;
        max-width: 300px;
        height: 300px;
        border-radius: 10px;
        object-fit: cover;
    }

    nav ul {
        display: flex;
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
    }

        nav ul li {
            margin: 5px;
        }

            nav ul li a {
                padding: 5px 10px;
                font-size: 16px;
            }
}
