:root {
    --primary-color: #00bfff;
    --background-color: #1a1a1a;
    --text-color: #ffffff;
    --hover-color: #333333;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Oxygen', Arial, sans-serif;
    color: var(--text-color);
    background-color: var(--background-color);
}

body::-webkit-scrollbar {
    width: 8px;
}

body::-webkit-scrollbar-track {
    background: var(--background-color);
}

body::-webkit-scrollbar-thumb {
    background: var(--text-color);
    border-radius: 4px;
}

body::-webkit-scrollbar-thumb:hover {
    background: var(--hover-color);
}

.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.container-transparent {
    background-color: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

header {
    animation: fadeIn 1.5s ease-out;
    will-change: opacity, transform;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

h1,
h2 {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

p,
a,
li,
span {
    font-weight: 400;
}

p {
    line-height: 1.6;
    font-size: 1rem;
}

.social-icons a {
    color: var(--text-color);
    margin: 0 15px;
    font-size: 1.75rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.social-icons a:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
}

footer {
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--background-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: opacity 0.5s, visibility 0.5s;
}

.about-section,
.section-gap {
    margin: 2rem 0;
}

nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.nav-link {
    color: var(--text-color) !important;
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

.nav-link.active {
    color: var(--text-color) !important;
    font-weight: normal;
}

main {
    padding-top: 60px;
}

.project-link {
    text-decoration: none;
    color: var(--text-color);
    display: inline-block;
    transition: transform 0.3s ease;
}

.project-link:hover {
    color: var(--primary-color);
    transform: scale(1.05);
}

.project-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.project-icon {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 15px;
}

.project-title {
    margin-top: 10px;
    font-size: 1.1rem;
}

.about-photo {
    width: 150px;
    height: auto;
    border-radius: 50%;
    margin-bottom: 20px;
}

.blog-section {
    margin: 3rem 0;
}

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

.blog-post {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.blog-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    background-color: rgba(255, 255, 255, 0.15);
}

.post-title {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.post-date {
    font-size: 0.9rem;
    color: #d9d9d9;
    margin-bottom: 15px;
}

.post-content {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 15px;
    color: white;
}

.education-section {
    margin: 3rem 0;
}

.education-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.education-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.1));
}

.education-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.education-title {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.education-duration {
    font-size: 0.9rem;
    color: var(--hover-color);
    margin-bottom: 10px;
}

.education-description {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-color);
}

.goals-section {
    margin: 3rem 0;
}

/* Основные стили для таймлайна */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    background: var(--primary-color);
}

.timeline-item {
    padding: 20px 40px;
    position: relative;
    width: 50%;
}

.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-icon {
    position: absolute;
    top: 20px;
    right: -25px;
    background: var(--background-color);
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.timeline-item:nth-child(even) .timeline-icon {
    left: -25px;
}

.timeline-content {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    position: relative;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.timeline-content h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.timeline-content p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-color);
}

.timeline-date {
    display: block;
    font-size: 0.9rem;
    color: #cccccc;
    margin-top: 10px;
}

/* Адаптация для мобильных устройств */
@media (max-width: 768px) {
    .timeline::before {
        display: none;
        /* Убираем вертикальную линию */
    }

    .timeline-item,
    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        width: 100%;
        left: 0;
        text-align: center;
        padding: 20px 0;
    }

    .timeline-icon {
        position: static;
        margin: 0 auto 15px auto;
    }

    .timeline-content {
        background: rgba(255, 255, 255, 0.1);
        padding: 20px;
        border-radius: 10px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    }
}