/* Лабораторная работа 1: CSS свойства для оформления текста, форм, графики и других элементов html */
/* Цель: изучение основных свойств CSS; приобретение навыков форматирования элементов веб-страницы с помощью CSS свойств */

:root {
    --primary: #00f5ff;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --bg-primary: #0a0a0a;
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-accent: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --radius: 12px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Стиль выделения текста */
::selection {
    background: var(--primary);
    color: #000000;
}

::-moz-selection {
    background: var(--primary);
    color: #000000;
}

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

/* Кастомный ползунок прокрутки */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: rgba(10, 10, 10, 0.6);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-accent);
    border-radius: 6px;
    border: 2px solid rgba(10, 10, 10, 0.6);
    transition: all var(--transition);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
    border-color: rgba(0, 245, 255, 0.3);
}

/* Для Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: #00f5ff rgba(10, 10, 10, 0.6);
}

/* Свойства CSS для изменения форматирования текста - обязателен по требованиям лабораторной работы */
body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    /* изменение межстрочного интервала в тексте */
    overflow-x: hidden;
    min-height: 100vh;
}

/* Фоновая анимация */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.floating-shapes {
    position: relative;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    background: var(--gradient-accent);
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.1;
    animation: float 20s infinite linear;
}

.shape-1 {
    width: 300px;
    height: 300px;
    top: 10%;
    left: 10%;
    animation-duration: 25s;
}

.shape-2 {
    width: 200px;
    height: 200px;
    top: 60%;
    right: 10%;
    animation-duration: 30s;
}

.shape-3 {
    width: 150px;
    height: 150px;
    bottom: 20%;
    left: 50%;
    animation-duration: 35s;
}

.shape-4 {
    width: 250px;
    height: 250px;
    top: 30%;
    right: 30%;
    animation-duration: 28s;
}

.shape-5 {
    width: 180px;
    height: 180px;
    bottom: 10%;
    left: 20%;
    animation-duration: 22s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    25% {
        transform: translateY(-20px) rotate(90deg);
    }

    50% {
        transform: translateY(-40px) rotate(180deg);
    }

    75% {
        transform: translateY(-20px) rotate(270deg);
    }
}

/* Кнопка возвращения назад */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: rgba(10, 10, 10, 0.6);
    backdrop-filter: blur(15px) saturate(120%);
    -webkit-backdrop-filter: blur(15px) saturate(120%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all var(--transition);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    z-index: 1000;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3);
}

.back-to-top:hover {
    background: rgba(10, 10, 10, 0.8);
    color: var(--primary);
    transform: translateY(-5px);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Скрыть кнопки на телефоне */
@media (max-width: 768px) {
    .back-to-top {
        display: none;
    }
}

/* Навигация */
.navbar {
    position: fixed;
    top: 1rem;
    left: 2rem;
    right: 2rem;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.6);
    backdrop-filter: blur(15px) saturate(120%);
    -webkit-backdrop-filter: blur(15px) saturate(120%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 30px;
    transition: all var(--transition);
    max-width: 1200px;
    margin: 0 auto;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

/* Удаление подчеркивания ссылок - обязателен по требованиям лабораторной работы */
.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    /* удаление подчеркивания ссылок */
    font-weight: 500;
    position: relative;
    transition: color var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-accent);
    transition: width var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.main-container {
    margin-top: 100px;
}

/* Главная */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

/* Плавающие контейнеры */
.download-containers {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.download-container {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(0, 245, 255, 0.2);
    border-radius: 20px;
    padding: 2rem 1.5rem;
    width: 180px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 245, 255, 0.1);
    transition: all 0.3s ease;
}

.download-container.left {
    left: 2rem;
    animation: swayLeft 6s ease-in-out infinite;
}

.download-container.right {
    right: 2rem;
    animation: swayRight 6s ease-in-out infinite;
}

.download-container:hover {
    transform: translateY(-50%) scale(1.05);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(0, 245, 255, 0.4);
    box-shadow: 0 12px 40px rgba(0, 245, 255, 0.2);
}

.download-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 10px rgba(0, 245, 255, 0.5));
}

.download-number {
    font-size: 2rem;
    font-weight: 800;
    background: var(--gradient-accent);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.download-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 500;
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Покачивающаяся анимация */
@keyframes swayLeft {

    0%,
    100% {
        transform: translateY(-50%) translateX(0) rotate(0deg);
    }

    25% {
        transform: translateY(-50%) translateX(-8px) rotate(-2deg);
    }

    50% {
        transform: translateY(-50%) translateX(0) rotate(0deg);
    }

    75% {
        transform: translateY(-50%) translateX(8px) rotate(2deg);
    }
}

@keyframes swayRight {

    0%,
    100% {
        transform: translateY(-50%) translateX(0) rotate(0deg);
    }

    25% {
        transform: translateY(-50%) translateX(8px) rotate(2deg);
    }

    50% {
        transform: translateY(-50%) translateX(0) rotate(0deg);
    }

    75% {
        transform: translateY(-50%) translateX(-8px) rotate(-2deg);
    }
}

.hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(0, 245, 255, 0.1) 0%, transparent 70%);
    animation: heroGlow 8s ease-in-out infinite alternate;
}

@keyframes heroGlow {
    0% {
        opacity: 0.3;
        transform: translate(-50%, -50%) scale(1);
    }

    100% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
    z-index: 1;
    position: relative;
}

.hero-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
}

.hero-description-section {
    max-width: 600px;
    margin: 0 auto;
}



.main-title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 0.5rem;
    animation: fadeInUp 1s ease-out 0.2s both;
    text-align: center;
}

.title-highlight {
    background: var(--gradient-accent);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.role-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    min-height: 80px;
    height: 80px;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.role-text {
    transition: opacity 0.3s ease-in-out;
}

.hero-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 600px;
    animation: fadeInUp 1s ease-out 0.6s both;
}

/* Индикатор прокрутки */
.scroll-indicator {
    position: absolute;
    bottom: 10rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.5rem;
    color: var(--text-secondary);
    animation: bounce 3s infinite;
    cursor: pointer;
    z-index: 10;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-20px);
    }

    60% {
        transform: translateX(-50%) translateY(-10px);
    }
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.8s both;
    justify-content: center;
    margin-bottom: 1rem;
}

.hero-buttons .btn {
    min-width: 160px;
    max-width: 180px;
    justify-content: center;
    padding: 0.6rem 1.8rem;
    font-size: 0.9rem;
    border-radius: 25px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-accent);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Обо мне */
.about {
    padding: 6rem 2rem;
    position: relative;
    overflow: hidden;
}

.about-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.about-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
    align-items: start;
}

.about-info {
    text-align: left;
}

.about-intro {
    margin-bottom: 3rem;
}

.about-text {
    font-size: 1.4rem;
    line-height: 1.;
    color: var(--text-secondary);
    margin-bottom: 2.6rem;
}

.about-text strong {
    color: var(--primary);
    font-weight: 600;
}

.age-highlight {
    background: var(--gradient-accent);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
    font-size: 1.3em;
    display: inline-block;
    animation: ageGlow 2s ease-in-out infinite alternate;
}

@keyframes ageGlow {
    0% {
        filter: brightness(1);
    }

    100% {
        filter: brightness(1.2) drop-shadow(0 0 8px rgba(0, 245, 255, 0.3));
    }
}

.education-text {
    margin-bottom: 2rem;
}

.education-text .about-text {
    margin-bottom: 2rem;
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-self: flex-start;
    position: sticky;
    top: 6rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(25px) saturate(200%);
    -webkit-backdrop-filter: blur(25px) saturate(200%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-card:hover {
    transform: translateY(-10px) scale(1.05);
    border-color: rgba(0, 245, 255, 0.4);
    box-shadow: 0 15px 40px rgba(0, 245, 255, 0.2);
}

.stat-icon {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient-accent);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 1;
}

/* Для телефона для секции "Обо мне" */
@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-info {
        text-align: left;
    }

    .about-stats {
        position: static;
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem;
    }

    .stat-card {
        min-width: 140px;
        padding: 1.5rem;
    }

    .about-intro {
        margin-bottom: 1.5rem;
    }

    .about-text {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
        line-height: 1.6;
    }
}

/* Образование */
.education {
    padding: 6rem 2rem;
    position: relative;
    overflow: hidden;
}

.education-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.education-timeline {
    margin-top: 4rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: stretch;
}

/* Timeline Chart */
.timeline-chart {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 580px;
    transition: all var(--transition);
}

.timeline-chart:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 245, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0, 245, 255, 0.1);
}

.chart-header {
    margin-bottom: 2rem;
    text-align: center;
}

.chart-header h3 {
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.chart-legend {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 3px;
}

.legend-color.yandex {
    background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
}

.legend-color.college {
    background: var(--gradient-accent);
}

.legend-color.university {
    background: linear-gradient(135deg, #a29bfe, #6c5ce7);
}

/* Описание диаграммы */
.chart-description {
    margin-top: 2rem;
    padding: 1rem 0;
    text-align: center;
}

.timeline-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
    font-style: italic;
}

/* Контейнер для диаграмм */
.chart-container {
    position: relative;
    height: 300px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.year-axis {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding: 0 1rem;
    position: relative;
}

.year-mark {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
    position: relative;
}

.year-mark::before {
    content: "";
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 260px;
    background: rgba(255, 255, 255, 0.1);
    z-index: -1;
}

.education-bars {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    height: 240px;
    position: relative;
}

.education-bar {
    height: 60px;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    animation: barGrow 1s ease-out forwards;
    transform-origin: left;
    opacity: 0;
}

.education-bar.yandex-bar {
    background: linear-gradient(90deg, rgba(255, 107, 107, 0.8), rgba(255, 142, 142, 0.6));
    animation-delay: 0.2s;
}

.education-bar.college-bar {
    background: var(--gradient-accent);
    animation-delay: 0.4s;
    opacity: 0.9;
}

.education-bar.university-bar {
    background: linear-gradient(90deg, rgba(162, 155, 254, 0.8), rgba(108, 92, 231, 0.6));
    animation-delay: 0.6s;
}

@keyframes barGrow {
    from {
        transform: scaleX(0);
        opacity: 0;
    }

    to {
        transform: scaleX(1);
        opacity: 1;
    }
}

.bar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0 1rem;
    z-index: 1;
    position: relative;
}

.bar-label {
    font-weight: 600;
    color: white;
    font-size: 0.9rem;
}

.bar-status {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.95);
    background: rgba(255, 255, 255, 0.2);
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Детали образования */
.education-details {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.education-detail-item {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    display: flex;
    gap: 1.5rem;
    align-items: center;
    min-height: 120px;
    transition: all var(--transition);
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

.education-detail-item:nth-child(1) {
    animation-delay: 0.8s;
}

.education-detail-item:nth-child(2) {
    animation-delay: 1s;
}

.education-detail-item:nth-child(3) {
    animation-delay: 1.2s;
}

.education-detail-item:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 245, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0, 245, 255, 0.1);
}

.detail-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.detail-icon.yandex {
    background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
}

.detail-icon.college {
    background: var(--gradient-accent);
}

.detail-icon.university {
    background: linear-gradient(135deg, #a29bfe, #6c5ce7);
}

.detail-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 60px;
}

.detail-content h4 {
    color: var(--text-primary);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.detail-period {
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.detail-description {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.95rem;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

/* Для телефона для секции "Образование" */
@media (max-width: 768px) {
    .education-timeline {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .chart-legend {
        gap: 1rem;
    }

    .chart-description {
        margin-top: 1.5rem;
    }

    .timeline-text {
        font-size: 0.85rem;
    }

    .education-detail-item {
        flex-direction: column;
        text-align: center;
        align-items: center;
        min-height: auto;
        padding: 1.5rem;
    }

    .detail-content {
        min-height: auto;
    }

    .detail-icon {
        align-self: center;
    }

    .chart-container {
        height: 250px;
    }

    .education-bars {
        height: 190px;
    }

    .education-bar {
        height: 50px;
    }

    .bar-content {
        flex-direction: row;
        gap: 0.3rem;
        justify-content: space-between;
    }

    .bar-label {
        font-size: 0.8rem;
    }

    .bar-status {
        font-size: 0.8rem;
        padding: 0.25rem 0.7rem;
    }
}

/* Опыт работы */
.experience {
    padding: 6rem 2rem;
    position: relative;
    overflow: hidden;
}

.experience-content {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.experience-timeline {
    margin-top: 4rem;
    position: relative;
}

.experience-item {
    margin-bottom: 3rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
    animation-delay: 0.3s;
}

.experience-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2.5rem;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.experience-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 245, 255, 0.3);
    box-shadow: 0 20px 50px rgba(0, 245, 255, 0.15);
}

.company-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.company-icon {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    position: relative;
}

.company-icon::before {
    content: '';
    position: absolute;
    inset: 2px;
    background: inherit;
    border-radius: 14px;
    filter: blur(8px);
    opacity: 0.7;
    z-index: -1;
}

/* Лого компании */
.company-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.company-icon.gazprom {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.company-icon.gazprom::before {
    display: none;
}

/* Оформление образовательных ссылок */
.edu-link {
    color: #c1d3da;
    text-decoration: none;
    transition: all var(--transition);
    border-bottom: 1px solid transparent;
}

.edu-link:hover {
    color: var(--text-primary);
    border-bottom-color: #c1d3da;
    text-shadow: 0 0 10px rgba(0, 245, 255, 0.3);
}

.company-name {
    color: var(--text-primary);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.position {
    color: var(--primary);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

.experience-details {
    text-align: left;
}

.tech-stack {
    margin-bottom: 2rem;
}

.tech-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 1rem;
}

.tech-tags {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.tech-tag {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0, 245, 255, 0.1);
    border: 1px solid rgba(0, 245, 255, 0.3);
    padding: 0.6rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--primary);
    transition: all var(--transition);
}

.tech-tag:hover {
    background: rgba(0, 245, 255, 0.2);
    transform: translateY(-2px);
}

.tech-tag.kotlin {
    border-color: rgba(124, 77, 255, 0.4);
    background: rgba(124, 77, 255, 0.1);
    color: #7c4dff;
}

.tech-tag.android {
    border-color: rgba(76, 175, 80, 0.4);
    background: rgba(76, 175, 80, 0.1);
    color: #4caf50;
}

.tech-tag.rest-api {
    background: rgba(160, 160, 160, 0.05);
    border-color: rgba(160, 160, 160, 0.15);
    color: rgba(180, 180, 180, 0.8);
}

.tech-tag.sip {
    background: rgba(160, 160, 160, 0.05);
    border-color: rgba(160, 160, 160, 0.15);
    color: rgba(180, 180, 180, 0.8);
}

.experience-description {
    margin-bottom: 2rem;
}

.experience-description p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 1rem;
}

.experience-achievements h5 {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.experience-achievements ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.experience-achievements li {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 0.8rem;
    position: relative;
    padding-left: 1.5rem;
}

.experience-achievements li::before {
    content: '▸';
    color: var(--primary);
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 0;
}

/* Для телефона секция "Опыт работы" */
@media (max-width: 768px) {
    .company-header {
        flex-direction: column;
        text-align: center;
    }

    .experience-details {
        text-align: center;
    }

    .tech-tags {
        justify-content: center;
    }

    .experience-achievements {
        text-align: left;
    }
}

/* Проекты */
.projects {
    padding: 6rem 2rem;
    position: relative;
    overflow: hidden;
}

.projects-content {
    max-width: 1500px;
    margin: 0 auto;
    text-align: center;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.project-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2.5rem;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
    text-align: left;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

.project-card:nth-child(1) {
    animation-delay: 0.2s;
}

.project-card:nth-child(2) {
    animation-delay: 0.4s;
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: rgba(0, 245, 255, 0.3);
    box-shadow: 0 20px 50px rgba(0, 245, 255, 0.15);
}

.project-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.project-icon {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    position: relative;
}

.project-icon.telegram {
    background: linear-gradient(135deg, #0088cc, #229ed9);
}

.project-icon.android {
    background: linear-gradient(135deg, #3ddc84, #4caf50);
}

.project-icon::before {
    content: '';
    position: absolute;
    inset: 2px;
    background: inherit;
    border-radius: 14px;
    filter: blur(8px);
    opacity: 0.7;
    z-index: -1;
}

.project-title {
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.project-subtitle {
    color: #52c5ff;
    font-size: 1rem;
    font-weight: 500;
    margin: 0;
}

.project-description {
    margin-bottom: 2rem;
}

.project-description p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 1rem;
}

.project-tech {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.project-tech .tech-tag {
    display: flex;
    align-items: center;
    padding: 0.6rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all var(--transition);
    border: 1px solid;
}

.tech-tag.python {
    background: rgba(160, 160, 160, 0.05);
    border-color: rgba(160, 160, 160, 0.15);
    color: rgba(180, 180, 180, 0.8);
}

.tech-tag.pyrogram {
    background: rgba(160, 160, 160, 0.05);
    border-color: rgba(160, 160, 160, 0.15);
    color: rgba(180, 180, 180, 0.8);
}

.tech-tag.peewee {
    background: rgba(160, 160, 160, 0.05);
    border-color: rgba(160, 160, 160, 0.15);
    color: rgba(180, 180, 180, 0.8);
}

.tech-tag.kotlin {
    background: rgba(160, 160, 160, 0.05);
    border-color: rgba(160, 160, 160, 0.15);
    color: rgba(180, 180, 180, 0.8);
}

.tech-tag.compose {
    background: rgba(160, 160, 160, 0.05);
    border-color: rgba(160, 160, 160, 0.15);
    color: rgba(180, 180, 180, 0.8);
}

.tech-tag.zxing {
    background: rgba(160, 160, 160, 0.05);
    border-color: rgba(160, 160, 160, 0.15);
    color: rgba(180, 180, 180, 0.8);
}

.tech-tag:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.1);
}

.project-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.project-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.5rem;
    border: none;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
    min-width: 120px;
    justify-content: center;
}

.project-btn.github {
    background: rgba(36, 41, 47, 0.8);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.project-btn.github:hover {
    background: rgba(36, 41, 47, 1);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(36, 41, 47, 0.3);
}

.project-btn.telegram {
    background: linear-gradient(135deg, #0088cc, #229ed9);
    color: white;
}

.project-btn.telegram:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 136, 204, 0.4);
}

.project-btn.rustore {
    background: linear-gradient(135deg, #0088cc, #229ed9);
    color: white;
}

.project-btn.rustore:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 136, 204, 0.4);
}

/* Значок количества пользователей */
.user-count-badge {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background: rgba(160, 160, 160, 0.03);
    border: 1px solid rgba(160, 160, 160, 0.08);
    border-radius: 12px;
    padding: 0.5rem 0.9rem;
    min-width: 90px;
    text-align: center;
    transition: all var(--transition);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.user-count-badge:hover {
    transform: translateY(-1px);
    background: rgba(160, 160, 160, 0.05);
    border-color: rgba(160, 160, 160, 0.12);
}

.count-number {
    font-size: 1.1rem;
    font-weight: 600;
    color: rgba(180, 180, 180, 0.7);
    line-height: 1.2;
    margin-bottom: 0.1rem;
}

.count-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: rgba(160, 160, 160, 0.6);
    line-height: 1;
    text-transform: lowercase;
}

/* Стиль значка кнопки */
.btn-icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

/* Разработка дизайна логотипа проекта */
.project-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.project-icon.mention-bot {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.project-icon.seacard {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Для телефона секция "Проекты" */
@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .project-header {
        flex-direction: column;
        text-align: center;
    }

    .project-tech {
        justify-content: center;
    }

    .project-actions {
        justify-content: center;
    }

    .project-btn {
        flex: 1;
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .projects {
        padding: 4rem 1rem;
    }

    .project-card {
        padding: 2rem;
    }

    .project-actions {
        flex-direction: column;
    }

    .project-btn {
        width: 100%;
    }

    .user-count-badge {
        position: absolute;
        top: 1rem;
        right: 1rem;
        bottom: auto;
        left: auto;
        margin: 0;
        padding: 0.4rem 0.7rem;
        min-width: 70px;
    }

    .count-number {
        font-size: 0.9rem;
    }

    .count-label {
        font-size: 0.65rem;
    }

    .project-tech {
        gap: 0.5rem;
    }

    .project-tech .tech-tag {
        padding: 0.4rem 0.8rem;
        font-size: 0.75rem;
    }

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

/* Технологии */
.technologies {
    padding: 4rem 2rem;
    position: relative;
    overflow: hidden;
}

.technologies-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.tech-category {
    margin-bottom: 2.5rem;
    animation: fadeInUp 0.8s ease-out both;
}

.tech-category:nth-child(1) {
    animation-delay: 0.2s;
}

.tech-category:nth-child(2) {
    animation-delay: 0.4s;
}

.tech-category:nth-child(3) {
    animation-delay: 0.6s;
}

.tech-category:nth-child(4) {
    animation-delay: 0.8s;
}

.category-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    text-align: left;
    padding: 0.6rem 1rem;
    border-left: 3px solid var(--primary);
    background: rgba(0, 245, 255, 0.05);
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s ease-out;
}

.section-description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 4rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.tech-card {
    position: relative;
    min-height: 160px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    cursor: default;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.tech-card:hover {
    transform: translateY(-5px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.tech-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.tech-icon i {
    font-size: 2rem;
    color: var(--primary);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 2px 8px rgba(0, 245, 255, 0.3));
}

.tech-logo {
    width: 2rem;
    height: 2rem;
    object-fit: contain;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 2px 8px rgba(0, 245, 255, 0.3)) brightness(0) saturate(100%) invert(50%) sepia(96%) saturate(6544%) hue-rotate(174deg) brightness(160%) contrast(101%);
}

.tech-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    text-align: center;
}

.tech-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    transition: all 0.4s ease;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.tech-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    align-items: center;
}

.skill-badge {
    background: rgba(0, 245, 255, 0.1);
    border: 1px solid rgba(0, 245, 255, 0.3);
    color: var(--primary);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
    text-align: center;
}

.tech-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
    text-align: center;
    opacity: 0.9;
    transition: all 0.3s ease;
}

.certificate-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 245, 255, 0.1);
    border: 1px solid rgba(0, 245, 255, 0.3);
    color: var(--primary);
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 245, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.certificate-badge i {
    font-size: 0.9rem;
}

/* Интерактивные карты */
.tech-card-clickable {
    cursor: pointer;
    position: relative;
}

.tech-card-clickable:hover {
    cursor: pointer;
}

/* Анимации */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

/* Адаптив */
@media (max-width: 1024px) {
    .hero-content {
        gap: 2rem;
    }

    .download-container {
        width: 140px;
        padding: 1.5rem 1rem;
    }

    .download-container.left {
        left: 1rem;
    }

    .download-container.right {
        right: 1rem;
    }

    .download-icon {
        font-size: 2rem;
    }

    .download-number {
        font-size: 1.6rem;
    }

    .download-label {
        font-size: 0.75rem;
    }

    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.2rem;
    }

    .category-title {
        font-size: 1.6rem;
        padding: 0.8rem 1.2rem;
    }

    .tech-card {
        min-height: 150px;
        padding: 1.2rem;
    }

    .tech-icon i {
        font-size: 2.2rem;
    }

    .tech-logo {
        width: 2.2rem;
        height: 2.2rem;
        filter: drop-shadow(0 2px 8px rgba(0, 245, 255, 0.3)) brightness(0) saturate(100%) invert(50%) sepia(96%) saturate(6544%) hue-rotate(174deg) brightness(160%) contrast(101%);
    }

    .tech-name {
        font-size: 1.1rem;
    }

    .tech-description {
        font-size: 0.85rem;
    }
}

@media (max-width: 768px) {
    .navbar {
        left: 1rem;
        right: 1rem;
        top: 0.5rem;
    }

    .nav-container {
        padding: 1rem;
    }

    .nav-links {
        gap: 1rem;
    }

    .hero {
        padding: 1rem;
    }

    /* Скрытие плавающих контейнеров */
    .download-containers {
        display: none;
    }

    .hero-buttons {
        justify-content: center;
    }

    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }

    .technologies {
        padding: 3rem 1rem;
    }

    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .category-title {
        font-size: 1.2rem;
        padding: 0.5rem 0.8rem;
    }

    .tech-category {
        margin-bottom: 2rem;
    }

    .tech-card {
        min-height: 140px;
        padding: 1rem;
    }

    .tech-icon i {
        font-size: 2rem;
    }

    .tech-logo {
        width: 2rem;
        height: 2rem;
        filter: drop-shadow(0 2px 8px rgba(0, 245, 255, 0.3)) brightness(0) saturate(100%) invert(50%) sepia(96%) saturate(6544%) hue-rotate(174deg) brightness(160%) contrast(101%);
    }

    .tech-name {
        font-size: 1rem;
    }

    .tech-description {
        font-size: 0.8rem;
    }

    .skill-badge {
        font-size: 0.7rem;
        padding: 0.25rem 0.6rem;
    }

    .certificate-badge {
        font-size: 0.65rem;
        padding: 0.3rem 0.5rem;
    }
}

@media (max-width: 480px) {
    .navbar {
        display: none;
    }

    .nav-links {
        display: none;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 280px;
    }

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

    .section-description {
        font-size: 1rem;
        margin-bottom: 3rem;
    }

    .about,
    .education,
    .experience,
    .projects,
    .technologies {
        padding: 3rem 1rem;
    }

    .education {
        padding: 1.5rem 1rem;
    }

    .education-timeline {
        gap: 1.5rem;
        margin-top: 1.5rem;
    }

    .timeline-chart {
        min-height: 350px;
        padding: 1.2rem;
    }

    .chart-container {
        height: 180px;
    }

    .education-bars {
        height: 130px;
        gap: 0.8rem;
    }

    .education-bar {
        height: 35px;
    }

    .bar-content {
        padding: 0 0.4rem;
    }

    .bar-label {
        font-size: 0.65rem;
    }

    .bar-status {
        font-size: 0.65rem;
        padding: 0.15rem 0.4rem;
    }

    .education-details {
        gap: 0.8rem;
    }

    .education-detail-item {
        padding: 0.8rem;
        gap: 0.6rem;
        min-height: auto;
    }

    .detail-icon {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }

    .detail-content h4 {
        font-size: 0.85rem;
    }

    .detail-period {
        font-size: 0.7rem;
    }

    .detail-description {
        font-size: 0.75rem;
        line-height: 1.3;
    }

    .tech-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }

    .category-title {
        font-size: 1rem;
        padding: 0.4rem 0.6rem;
        text-align: center;
        border-left: none;
        border-top: 2px solid var(--primary);
        justify-content: center;
        font-weight: 600;
    }

    .tech-category {
        margin-bottom: 1.8rem;
    }

    .tech-card {
        min-height: auto;
        padding: 0.6rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .tech-icon {
        margin-bottom: 0.4rem;
    }

    .tech-icon i {
        font-size: 1.4rem;
    }

    .tech-logo {
        width: 1.4rem;
        height: 1.4rem;
        filter: drop-shadow(0 2px 8px rgba(0, 245, 255, 0.3)) brightness(0) saturate(100%) invert(50%) sepia(96%) saturate(6544%) hue-rotate(174deg) brightness(160%) contrast(101%);
    }

    .tech-info {
        gap: 0;
    }

    .tech-name {
        font-size: 0.8rem;
        margin-bottom: 0;
    }

    .tech-description {
        display: none;
    }

    .skill-badge {
        display: none;
    }

    .tech-skills {
        display: none;
    }

    .certificate-badge {
        display: none;
    }

    .experience-card {
        padding: 1.5rem;
    }

    .company-header {
        gap: 1rem;
        margin-bottom: 1.5rem;
    }

    .company-icon {
        width: 50px;
        height: 50px;
        font-size: 1.4rem;
    }

    .company-name {
        font-size: 1.2rem;
    }

    .position {
        font-size: 1rem;
    }

    .tech-tags {
        gap: 0.5rem;
    }

    .tech-tag {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }

    .experience-description {
        margin-bottom: 1.5rem;
    }

    .experience-description p {
        font-size: 0.9rem;
    }

    .experience-achievements h5 {
        font-size: 1rem;
    }

    .experience-achievements li {
        font-size: 0.9rem;
        margin-bottom: 0.6rem;
        padding-left: 1.2rem;
    }

    .project-card {
        padding: 1.5rem;
    }

    .project-header {
        gap: 1rem;
        margin-bottom: 1.5rem;
    }

    .project-icon {
        width: 50px;
        height: 50px;
        font-size: 1.4rem;
    }

    .project-title {
        font-size: 1.2rem;
    }

    .project-subtitle {
        font-size: 0.9rem;
    }

    .project-tech {
        gap: 0.5rem;
        margin-bottom: 1.5rem;
    }

    .project-tech .tech-tag {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }

    .project-description {
        margin-bottom: 1.5rem;
        text-align: center;
    }

    .project-description p {
        font-size: 0.9rem;
    }

    .project-actions {
        gap: 0.5rem;
    }

    .project-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }

    .user-count-badge {
        padding: 0.3rem 0.6rem;
        min-width: 60px;
    }

    .count-number {
        font-size: 0.8rem;
    }

    .count-label {
        font-size: 0.6rem;
    }

    .about-stats {
        gap: 0.8rem;
        flex-direction: row;
        justify-content: center;
    }

    .stat-card {
        padding: 1.2rem;
        min-width: 130px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.6rem;
        flex-direction: row;
    }

    .stat-icon {
        font-size: 1.3rem;
        margin-bottom: 0;
    }

    .stat-number {
        font-size: 1.6rem;
        margin-bottom: 0;
    }

    .stat-label {
        font-size: 0.85rem;
        margin-bottom: 0;
    }

    .stat-content {
        display: flex;
        flex-direction: row;
        align-items: baseline;
        gap: 0.4rem;
    }

    .about-text {
        font-size: 1rem;
        margin-bottom: 1rem;
        text-align: left;
        line-height: 1.6;
    }

    .about-info {
        text-align: left;
    }

    .about-intro {
        margin-bottom: 1.2rem;
    }

    .age-highlight {
        font-size: 1.1em;
    }

    .hero {
        padding: 1rem;
        min-height: 90vh;
    }

    .download-containers {
        display: none;
    }

    .hero-content {
        gap: 1rem;
        margin-top: 2rem;
    }

    .hero-center {
        gap: 0.5rem;
    }

    .main-title {
        font-size: clamp(2.5rem, 8vw, 4rem);
        margin-bottom: 0.5rem;
        line-height: 1;
    }

    .role-container {
        gap: 0.4rem;
        font-size: clamp(1.5rem, 4vw, 2.2rem);
        margin-bottom: 1.2rem;
        min-height: 65px;
        height: 65px;
    }

    .hero-description-section {
        max-width: 100%;
    }

    .hero-description {
        font-size: 1rem;
        margin-bottom: 2rem;
        line-height: 1.6;
        padding: 0 1rem;
    }

    .hero-buttons {
        gap: 1rem;
        flex-direction: row;
        align-items: center;
        width: 100%;
        justify-content: center;
    }

    .btn {
        padding: 0.8rem 2rem;
        font-size: 1rem;
        width: auto;
        max-width: none;
        justify-content: center;
        min-width: 120px;
    }

    .scroll-indicator {
        font-size: 1.8rem;
        bottom: 1rem;
    }
}

/* Модальное окно сертификатов */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    animation: modalFadeIn 0.3s ease-out;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    max-width: 90vw;
    max-height: 90vh;
    position: relative;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    color: var(--text-primary);
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    background: rgba(0, 0, 0, 0.3);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: var(--primary);
    background: rgba(0, 245, 255, 0.2);
    transform: scale(1.1);
}

.modal-header {
    padding: 2rem 2rem 1rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header h3 {
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    text-align: center;
}

.modal-body {
    padding: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.certificate-img {
    max-width: 100%;
    max-height: 70vh;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    object-fit: contain;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(-50px);
    }

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

/* Адаптив для модального окна */
@media (max-width: 768px) {
    .modal-content {
        margin: 1rem;
        max-width: calc(100vw - 2rem);
        max-height: calc(100vh - 2rem);
    }

    .modal-header {
        padding: 1.5rem 1.5rem 1rem 1.5rem;
    }

    .modal-body {
        padding: 1.5rem;
    }

    .modal-header h3 {
        font-size: 1.3rem;
    }

    .certificate-img {
        max-height: 60vh;
    }
}

/* Форма обратной связи */
.contact {
    padding: 6rem 2rem;
    position: relative;
    overflow: hidden;
}

.contact-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.contact-form-wrapper {
    max-width: 600px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2.5rem;
    transition: all var(--transition);
}

.contact-form-wrapper:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 245, 255, 0.3);
    box-shadow: 0 20px 50px rgba(0, 245, 255, 0.15);
}

.contact-form {
    text-align: left;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    background: rgba(10, 10, 10, 0.6);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: all var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 245, 255, 0.2);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form .btn-primary {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
}

/* Адаптив для формы */
@media (max-width: 768px) {
    .contact {
        padding: 3rem 1rem;
    }

    .contact-form-wrapper {
        padding: 1.5rem;
    }

    .form-group input,
    .form-group textarea {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
}

/* Таблица навыков */
.skills-table {
    padding: 6rem 2rem;
    position: relative;
    overflow: hidden;
}

.skills-table-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.table-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2.5rem;
    overflow-x: auto;
}

.skills-table-element {
    width: 100%;
    border-collapse: collapse;
    color: var(--text-primary);
}

.skills-table-element th,
.skills-table-element td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.skills-table-element th {
    background: rgba(0, 245, 255, 0.1);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.skills-table-element tr:last-child td {
    border-bottom: none;
}

.skills-table-element tr:hover td {
    background: rgba(255, 255, 255, 0.05);
}

/* Адаптив для таблицы */
@media (max-width: 768px) {
    .skills-table {
        padding: 3rem 1rem;
    }

    .table-wrapper {
        padding: 1rem;
    }

    .skills-table-element th,
    .skills-table-element td {
        padding: 0.75rem 0.5rem;
        font-size: 0.9rem;
    }

    .skills-table-element {
        min-width: 500px;
    }
}

/* Стили для jQuery UI компонентов */
.skill-progress {
    width: 100%;
    height: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    margin-top: 10px;
}

.skill-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), #4facfe);
    border-radius: 10px;
    transition: width 0.5s ease;
}

/* Лабораторная работа: Изучение основ JavaScript, библиотек jQuery и jQuery UI */
/* Цель: приобретение навыков применения методов jQuery и jQuery UI на веб-странице */
/* ○ Применение минимум 5 методов jQuery: .ready(), .click(), .addClass(), .css(), .animate() */
/* ○ Продемонстрировать минимум 2 компонента из библиотеки jQuery UI: Accordion, Dialog */

/* Кастомные стили для jQuery UI */
.ui-widget {
    font-family: 'Inter', sans-serif;
}

.ui-accordion .ui-accordion-header {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border-radius: 12px !important;
    margin-bottom: 5px;
    padding: 1rem 1.5rem;
    font-weight: 600;
    transition: all var(--transition);
}

.ui-accordion .ui-accordion-header:hover {
    background: rgba(0, 245, 255, 0.1);
    border-color: rgba(0, 245, 255, 0.3);
}

.ui-accordion .ui-accordion-header-active {
    background: rgba(0, 245, 255, 0.2);
    border-color: var(--primary);
}

.ui-accordion .ui-accordion-content {
    background: rgba(10, 10, 10, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: none;
    border-radius: 0 0 12px 12px;
    padding: 1.5rem;
    color: var(--text-secondary);
}

.ui-dialog {
    background: rgba(255, 255, 255, 0.03) !important;
    backdrop-filter: blur(25px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(25px) saturate(180%) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 20px !important;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3) !important;
    color: var(--text-primary);
}

.ui-dialog .ui-dialog-titlebar {
    background: rgba(10, 10, 10, 0.6);
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px 20px 0 0 !important;
    padding: 1.5rem !important;
    color: var(--text-primary);
}

.ui-dialog .ui-dialog-title {
    font-weight: 600;
    font-size: 1.3rem;
}

.ui-dialog .ui-dialog-content {
    padding: 1.5rem !important;
    color: var(--text-secondary);
}

.ui-dialog .ui-dialog-buttonpane {
    background: rgba(10, 10, 10, 0.6);
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 0 0 20px 20px !important;
    padding: 1rem 1.5rem !important;
}

.ui-button {
    background: var(--gradient-accent) !important;
    border: none !important;
    border-radius: 25px !important;
    color: white !important;
    font-weight: 600 !important;
    padding: 0.6rem 1.5rem !important;
    transition: all var(--transition);
}

.ui-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 245, 255, 0.3);
}

.ui-widget-content a {
    color: var(--primary);
}

/* Адаптив для jQuery UI */
@media (max-width: 768px) {
    .ui-accordion .ui-accordion-header {
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }

    .ui-accordion .ui-accordion-content {
        padding: 1rem;
    }

    .ui-accordion .ui-accordion-content p {
        margin-bottom: 1rem;
        line-height: 1.6;
    }

    .ui-accordion .ui-accordion-content p:last-child {
        margin-bottom: 0;
    }

    .ui-dialog {
        margin: 1rem !important;
    }
}

/* Кастомные стили для jQuery UI */
.ui-widget {
    font-family: 'Inter', sans-serif;
}

.ui-accordion .ui-accordion-header {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border-radius: 12px !important;
    margin-bottom: 5px;
    padding: 1rem 1.5rem;
    font-weight: 600;
    transition: all var(--transition);
}

.ui-accordion .ui-accordion-header:hover {
    background: rgba(0, 245, 255, 0.1);
    border-color: rgba(0, 245, 255, 0.3);
}

.ui-accordion .ui-accordion-header-active {
    background: rgba(0, 245, 255, 0.2);
    border-color: var(--primary);
}

.ui-accordion .ui-accordion-content {
    background: rgba(10, 10, 10, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: none;
    border-radius: 0 0 12px 12px;
    padding: 1.5rem;
    color: var(--text-secondary);
}

.ui-dialog {
    background: rgba(255, 255, 255, 0.03) !important;
    backdrop-filter: blur(25px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(25px) saturate(180%) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 20px !important;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3) !important;
    color: var(--text-primary);
}

.ui-dialog .ui-dialog-titlebar {
    background: rgba(10, 10, 10, 0.6);
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px 20px 0 0 !important;
    padding: 1.5rem !important;
    color: var(--text-primary);
}

.ui-dialog .ui-dialog-title {
    font-weight: 600;
    font-size: 1.3rem;
}

.ui-dialog .ui-dialog-content {
    padding: 1.5rem !important;
    color: var(--text-secondary);
}

.ui-dialog .ui-dialog-buttonpane {
    background: rgba(10, 10, 10, 0.6);
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 0 0 20px 20px !important;
    padding: 1rem 1.5rem !important;
}

.ui-button {
    background: var(--gradient-accent) !important;
    border: none !important;
    border-radius: 25px !important;
    color: white !important;
    font-weight: 600 !important;
    padding: 0.6rem 1.5rem !important;
    transition: all var(--transition);
}

.ui-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 245, 255, 0.3);
}

.ui-widget-content a {
    color: var(--primary);
}

/* Футер */
.footer {
    background: rgba(10, 10, 10, 0.8);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-info {
    flex: 1;
    min-width: 300px;
}

.footer-info p {
    margin: 0.5rem 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-info p:first-child {
    font-weight: 600;
    color: var(--text-primary);
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--transition);
}

.footer-links a:hover {
    color: var(--primary);
}

/* Адаптив для футера */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-info {
        min-width: unset;
    }

    .footer-links {
        justify-content: center;
    }
}

/* Адаптив для jQuery UI */
@media (max-width: 768px) {
    .ui-accordion .ui-accordion-header {
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }

    .ui-accordion .ui-accordion-content {
        padding: 1rem;
    }

    .ui-dialog {
        margin: 1rem !important;
    }
}