:root {
    --primary: #ff7b00;    /* Оранжевый */
    --secondary: #ff4800;  /* Темно-оранжевый */
    --accent: #ffd700;    /* Желтый */
    --dark: #121212;
    --light: #ffffff;
}

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

body {
    background: var(--dark);
    color: var(--light);
    font-family: 'Space Grotesk', sans-serif;
    overflow-x: hidden;
}

#particles-js {
    display: none;
}

.content-wrapper {
    position: relative;
    z-index: 2;
}

.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 2;
}

/* Эффект глитча для заголовка */
.glitch {
    font-size: 5rem;
    font-weight: bold;
    position: relative;
    text-shadow: 0.05em 0 0 var(--primary), 
                -0.05em -0.025em 0 var(--secondary),
                -0.025em 0.05em 0 #ff2c75;
    animation: glitch 725ms infinite;
}

.glitch span {
    position: absolute;
    top: 0;
    left: 0;
}

/* Добавляем новые стили для анимированного текста */
.typing-text {
    font-size: 2.5rem;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    transition: opacity 0.5s ease;
    text-align: center;
    margin: 1rem 0;
}

/* Обновляем стили для секции "Обо мне" */
.about-section {
    position: relative;
    padding: 4rem 2rem;
    background: rgba(255, 255, 255, 0.02);
}

.about-section h2 {
    font-size: 3.5rem;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
}

/* Удаляем старые стили для .about-section h2::before и ::after */
.about-section h2::before,
.about-section h2::after {
    content: none;
}

.about-content {
    position: relative;
    z-index: 2;
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
}

.about-description {
    position: relative;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    margin-top: 2rem;
}

.about-description::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 10px;
    border: 2px solid transparent;
    background: linear-gradient(45deg, var(--primary), var(--secondary)) border-box;
    -webkit-mask:
        linear-gradient(#fff 0 0) padding-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

.about-description p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
}

/* Добавляем анимацию для текста "Обо мне" при наведении */
.about-section h2:hover::before {
    animation: gradient-shift 3s linear infinite;
}

@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Обновляем стили для градиентного текста */
.gradient-text {
    font-size: 1.8rem;
    font-weight: bold;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
    padding: 0.5rem 0;
    position: relative;
}

.gradient-text::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: width 0.3s ease;
}

.gradient-text:hover::after {
    width: 100%;
}

/* Обновляем стили для секции навыков */
.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding: 2rem;
}

.skill-card {
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    padding: 2rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.36s ease;
    cursor: pointer;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        45deg,
        rgba(255, 123, 0, 0.1),
        rgba(255, 215, 0, 0.1),
        rgba(255, 72, 0, 0.1)
    );
    opacity: 0;
    transition: opacity 0.36s ease;
}

.skill-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 123, 0, 0.3);
}

.skill-card:hover::before {
    opacity: 1;
}

.skill-icon {
    font-size: 2.8rem;
    margin-bottom: 1.2rem;
    color: initial;
    opacity: 1;
    transition: all 0.36s ease;
    background: none;
    -webkit-background-clip: initial;
    background-clip: initial;
}

.skill-card:hover .skill-icon {
    transform: scale(1.1) rotate(5deg);
}

.skill-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--light);
}

.skill-description {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.skill-tag {
    padding: 0.3rem 0.8rem;
    background: rgba(255, 123, 0, 0.1);
    border-radius: 15px;
    font-size: 0.8rem;
    color: var(--primary);
    transition: all 0.36s ease;
}

.skill-card:hover .skill-tag {
    background: linear-gradient(45deg, var(--primary), var(--accent));
    color: var(--dark);
}

/* Стили для секции проектов */
.projects-section {
    padding: 4rem 2rem;
    position: relative;
}

.projects-section h2 {
    font-size: 3.5rem;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
}

.projects-section h2::after {
    /* Удаляем этот блок полностью */
    content: none; /* или можно просто удалить весь блок .projects-section h2::after */
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    padding: 2rem;
}

.project-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 300px;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.1);
}

.project-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, 
        rgba(255, 123, 0, 0.1) 0%,
        rgba(255, 72, 0, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.project-card:hover::after {
    opacity: 1;
}

.project-content {
    padding: 2rem;
    position: relative;
    z-index: 2;
}

.project-content h3 {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.project-content h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: width 0.3s ease;
}

.project-card:hover .project-content h3::after {
    width: 100%;
}

.project-content p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.project-tech span {
    padding: 0.4rem 1rem;
    background: rgba(255, 123, 0, 0.1);
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--primary);
    transition: all 0.3s ease;
}

.project-tech span:hover {
    background: var(--primary);
    color: var(--dark);
}

/* Добавляем декоративный элемент */
.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 123, 0, 0.1),
        transparent
    );
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.project-card:hover::before {
    transform: translateX(100%);
}

/* Добавляем иконку для проектов */
.project-icon {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 123, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-icon svg {
    width: 20px;
    height: 20px;
    fill: var(--primary);
}

/* Медиа-запросы */
@media (max-width: 768px) {
    .glitch {
        font-size: 3rem;
    }
    
    .skills-container {
        grid-template-columns: 1fr;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .project-card {
        min-height: 250px;
    }
}

/* Обновляем стили для секции с именем */
.hero-content {
    text-align: center;
    margin-top: 2rem;
}

.hero-name {
    font-size: 2.8rem;
    position: relative;
    display: inline-block;
    padding: 0.5rem 2rem;
    margin: 2rem 0;
    background: linear-gradient(
        45deg,
        rgba(255, 123, 0, 0.1),
        rgba(255, 72, 0, 0.1)
    );
    border-radius: 8px;
    backdrop-filter: blur(5px);
}

.hero-name::before,
.hero-name::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    transition: all 0.3s ease;
}

.hero-name::before {
    top: 0;
    left: 0;
    border-top: 2px solid var(--primary);
    border-left: 2px solid var(--primary);
}

.hero-name::after {
    bottom: 0;
    right: 0;
    border-bottom: 2px solid var(--secondary);
    border-right: 2px solid var(--secondary);
}

.hero-name:hover::before,
.hero-name:hover::after {
    width: 100%;
    height: 100%;
}

/* Добавляем градиентный текст для имени */
.hero-name span {
    background: linear-gradient(
        45deg,
        var(--primary),
        var(--secondary)
    );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 600;
    letter-spacing: 2px;
    animation: shimmer 3s infinite linear;
    background-size: 200% 200%;
}

@keyframes shimmer {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Удаляем старые стили для .mouse и добавляем новые для индикатора прокрутки */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0.8;
}

.chevrons {
    padding: 1rem 0;
    margin-top: 3rem;
}

.chevron {
    position: relative;
    width: 28px;
    height: 8px;
    opacity: 0;
    transform: scale(0.3);
    animation: move-chevron 3s ease-out infinite;
}

.chevron:first-child {
    animation: move-chevron 3s ease-out 1s infinite;
}

.chevron:nth-child(2) {
    animation: move-chevron 3s ease-out 2s infinite;
}

.chevron:before,
.chevron:after {
    content: '';
    position: absolute;
    top: 0;
    height: 100%;
    width: 50%;
    background: var(--primary);
}

.chevron:before {
    left: 0;
    transform: skewY(30deg);
}

.chevron:after {
    right: 0;
    width: 50%;
    transform: skewY(-30deg);
}

@keyframes move-chevron {
    25% {
        opacity: 1;
        transform: translateY(9px) scale(0.8);
    }
    75% {
        opacity: 0;
        transform: translateY(25px) scale(0.5);
    }
    100% {
        opacity: 0;
        transform: translateY(35px) scale(0.3);
    }
}

/* Добавляем эффект градиента для шевронов при наведении */
.scroll-indicator:hover .chevron:before,
.scroll-indicator:hover .chevron:after {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

/* Обновляем базовые стили для анимируемых элементов */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Общие стили для всех заголовков секций */
.section-title {
    font-size: 3.5rem;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
}

/* Обновляем стили для секции "Обо мне" */
.about-section {
    position: relative;
    padding: 4rem 2rem;
    background: rgba(255, 255, 255, 0.02);
}

.about-section h2 {
    font-size: 3.5rem;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
}

/* Обновляем стили для секции навыков */
.skills-section {
    padding: 4rem 2rem;
    position: relative;
}

.skills-section h2 {
    font-size: 3.5rem;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
}

/* Общий стиль для всех заголовков секций */
.section-title,
.about-section h2,
.skills-section h2,
.projects-section h2 {
    font-size: 3.5rem;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
    background: linear-gradient(45deg, 
        var(--primary), 
        var(--accent),
        var(--secondary));
    background-size: 200% auto;
    animation: gradient 3s ease infinite;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    transition: all 0.3s ease;
}

/* Добавляем подчеркивание для всех заголовков */
.section-title::after,
.about-section h2::after,
.skills-section h2::after,
.projects-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: width 0.6s ease;
}

/* Эффект при наведении для всех заголовков */
.section-title:hover::after,
.about-section h2:hover::after,
.skills-section h2:hover::after,
.projects-section h2:hover::after {
    width: 100%;
}

/* Добавляем эффект свечения при наведении */
.section-title:hover,
.about-section h2:hover,
.skills-section h2:hover,
.projects-section h2:hover {
    text-shadow: 0 0 15px rgba(255, 123, 0, 0.3);
}

/* Добавляем эффект свечения для текста */
.glow-text {
    text-shadow: 0 0 10px rgba(255, 123, 0, 0.5);
    transition: text-shadow 0.3s ease;
}

.glow-text:hover {
    text-shadow: 0 0 20px rgba(255, 123, 0, 0.8);
}

/* Обновляем стили для карточек с контентом */
.content-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 2rem;
    transition: all 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.content-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 123, 0, 0.3);
    transform: translateY(-5px);
}

/* Добавляем стили для ссылки на GitHub */
.github-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 1.5rem;
    padding: 0.6rem 1.2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    color: var(--light);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.github-link:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 123, 0, 0.2);
    border-color: var(--primary);
}

.github-icon {
    display: flex;
    align-items: center;
    color: var(--primary);
}

.github-link:hover .github-icon {
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

/* Стили для таймлайна */
.timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 0;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background: linear-gradient(180deg, var(--primary), var(--secondary));
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.timeline-item.animate {
    opacity: 1;
    transform: translateY(0);
}

.timeline-item.left {
    left: 0;
}

.timeline-item.right {
    left: 50%;
}

.timeline-content {
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.timeline-content:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.1);
}

/* Точки на таймлайне */
.timeline-item::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    background: var(--primary);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    box-shadow: 0 0 10px var(--primary);
    transition: all 0.3s ease;
}

.timeline-item.left::after {
    right: -8px;
}

.timeline-item.right::after {
    left: -8px;
}

/* Медиа-запросы для мобильной версии */
@media screen and (max-width: 768px) {
    .nickname {
        font-size: clamp(2.5rem, 8vw, 4.5rem);
        white-space: nowrap;
    }

    .timeline::after {
        left: 31px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
        left: 0;
    }
    
    .timeline-item.right {
        left: 0;
    }
    
    .timeline-item::after {
        left: 23px;
        right: auto;
        transform: translateY(-50%);
    }

    .timeline-item.right::after {
        left: 23px;
        right: auto;
    }

    .timeline-content {
        margin-left: 0;
    }
    
    .timeline-item.left .timeline-content::before {
        left: -30px;
        border-right-color: rgba(255, 255, 255, 0.05);
        border-left-color: transparent;
    }
}

/* Обновляем стили для анимации затмения */
.eclipse-loader {
    position: fixed;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at bottom, #090909 0%, #000000 100%);
    z-index: 9999;
    overflow: hidden;
}

.space-container {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.stars-field {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    animation: rotate 300s linear infinite;
    background: 
        radial-gradient(1px 1px at 15% 15%, rgba(255, 255, 255, 0.9) 1px, transparent 0),
        radial-gradient(2px 2px at 25% 45%, rgba(255, 255, 255, 0.7) 1px, transparent 0),
        radial-gradient(1px 1px at 35% 25%, rgba(255, 255, 255, 0.8) 1px, transparent 0),
        radial-gradient(1.5px 1.5px at 45% 65%, rgba(255, 255, 255, 0.9) 1px, transparent 0),
        radial-gradient(2px 2px at 55% 35%, rgba(255, 255, 255, 0.8) 1px, transparent 0),
        radial-gradient(1px 1px at 65% 85%, rgba(255, 255, 255, 0.7) 1px, transparent 0),
        radial-gradient(1.5px 1.5px at 75% 55%, rgba(255, 255, 255, 0.9) 1px, transparent 0),
        radial-gradient(2px 2px at 85% 25%, rgba(255, 255, 255, 0.8) 1px, transparent 0);
    background-size: 800px 800px;
    background-repeat: repeat;
    opacity: 0.8;
}

.nebula {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        circle at 50% 50%,
        rgba(255, 123, 0, 0.05),
        transparent 80%
    );
    filter: blur(30px);
    opacity: 0;
    animation: nebula-appear 3s ease-in forwards;
}

.eclipse-scene {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100vmin;
    height: 100vmin;
}

.corona-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60vmin;
    height: 60vmin;
}

.corona {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        circle at center,
        rgba(255, 215, 0, 1) 0%,
        rgba(255, 123, 0, 0.6) 30%,
        rgba(255, 72, 0, 0.3) 50%,
        transparent 70%
    );
    filter: blur(15px);
    animation: corona-pulse 4s ease-in-out infinite;
}

.sun-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40vmin;
    height: 40vmin;
    background: linear-gradient(45deg, var(--primary), #fff);
    border-radius: 50%;
    box-shadow: 0 0 50px rgba(255, 123, 0, 0.5);
    animation: sun-glow 4s ease-in-out infinite;
}

.moon-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 42vmin;
    height: 42vmin;
    animation: moon-movement 4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.moon {
    width: 100%;
    height: 100%;
    background: #1a1a1a;
    border-radius: 50%;
    box-shadow: inset -10px -10px 50px rgba(0,0,0,0.8);
    transform: scale(0.95);
    opacity: 0;
    animation: moon-appear 4s ease-in-out forwards;
}

.title-reveal {
    position: absolute;
    bottom: 20%;
    width: 100%;
    text-align: center;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    animation: none;
}

.title-reveal span {
    opacity: 0;
    display: inline-block;
    transform: translateY(100px) rotate(20deg);
    animation: letter-appear 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes letter-appear {
    0% {
        opacity: 0;
        transform: translateY(100px) rotate(20deg);
        filter: blur(10px);
    }
    60% {
        opacity: 0.8;
        transform: translateY(-20px) rotate(-5deg);
        filter: blur(0);
    }
    80% {
        transform: translateY(10px) rotate(2deg);
    }
    100% {
        opacity: 1;
        transform: translateY(0) rotate(0);
    }
}

.title-reveal .glitch {
    display: flex;
    gap: 0.5rem;
}

.title-reveal span:nth-child(1) { animation-delay: 2.0s; }
.title-reveal span:nth-child(2) { animation-delay: 2.1s; }
.title-reveal span:nth-child(3) { animation-delay: 2.2s; }
.title-reveal span:nth-child(4) { animation-delay: 2.3s; }
.title-reveal span:nth-child(5) { animation-delay: 2.4s; }
.title-reveal span:nth-child(6) { animation-delay: 2.5s; }
.title-reveal span:nth-child(7) { animation-delay: 2.6s; }
.title-reveal span:nth-child(8) { animation-delay: 2.7s; }
.title-reveal span:nth-child(9) { animation-delay: 2.8s; }

@keyframes rotate {
    from {
        transform: rotate(0deg) scale(2) translateY(5%);
    }
    to {
        transform: rotate(360deg) scale(2) translateY(5%);
    }
}

@keyframes nebula-appear {
    0% { opacity: 0; }
    100% { opacity: 0.2; }
}

@keyframes corona-pulse {
    0%, 100% { 
        transform: scale(1);
        filter: blur(15px);
    }
    50% { 
        transform: scale(1.1);
        filter: blur(20px);
    }
}

@keyframes sun-glow {
    0%, 100% { 
        box-shadow: 0 0 50px rgba(255, 123, 0, 0.5);
        transform: translate(-50%, -50%) scale(1);
    }
    50% { 
        box-shadow: 0 0 100px rgba(255, 123, 0, 0.7);
        transform: translate(-50%, -50%) scale(1.05);
    }
}

@keyframes moon-movement {
    0% { transform: translate(-150%, -50%); }
    40% { transform: translate(-50%, -50%); }
    60% { transform: translate(-50%, -50%); }
    100% { transform: translate(50%, -50%); }
}

@keyframes moon-appear {
    0% { opacity: 0; }
    40% { opacity: 1; }
    60% { opacity: 1; }
    100% { opacity: 0; }
}

/* Добавляем медиа-запрос для мобильных устройств */
@media (max-width: 768px) {
    .corona-wrapper {
        width: 80vmin;
        height: 80vmin;
    }
    
    .sun-core {
        width: 60vmin;
        height: 60vmin;
    }
    
    .moon-wrapper {
        width: 62vmin;
        height: 62vmin;
    }
}

/* Скрываем основной контент во время анимации */
.content-wrapper {
    opacity: 0;
    transition: opacity 1s ease;
}

.content-wrapper.visible {
    opacity: 1;
}

.nickname {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 700;
    background: linear-gradient(45deg, 
        var(--primary),
        var(--accent),
        var(--secondary));
    background-size: 200% auto;
    animation: gradient 3s ease infinite;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-transform: uppercase;
    letter-spacing: 4px;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.9;
    white-space: nowrap;
    max-width: 100%;
    overflow: visible;
}

.nickname::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg,
        transparent,
        var(--primary),
        var(--accent),
        var(--primary),
        transparent
    );
    transform: scaleX(0);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nickname:hover {
    opacity: 1;
    text-shadow: 0 0 15px rgba(255, 123, 0, 0.2);
}

.nickname:hover::before {
    transform: scaleX(1);
    opacity: 1;
}

/* Удаляем ненужные стили */
.nickname::after {
    display: none;
}

/* Добавим для всего текстового контента */
.section-title,
.skill-card,
.about-section,
.projects-section,
.timeline {
    position: relative;
    z-index: 2;
}

/* Обновляем стили для проектов */
.project-content {
    padding: 2rem;
    position: relative;
    z-index: 2;
}

.project-description {
    height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.36s ease;
}

.project-description.active {
    height: auto;
    opacity: 1;
    margin-top: 1rem;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.tech-stack span {
    padding: 0.4rem 1rem;
    background: rgba(255, 123, 0, 0.1);
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--primary);
    transition: all 0.3s ease;
}

.tech-stack span:hover {
    background: var(--primary);
    color: var(--dark);
    transform: translateY(-2px);
}

.project-details-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 1rem;
    padding: 0.5rem 1.2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    color: var(--light);
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.36s ease;
}

.project-details-btn:hover {
    background: rgba(255, 123, 0, 0.1);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.project-details-btn .arrow {
    transition: transform 0.36s ease;
}

.project-details-btn.active .arrow {
    transform: rotate(180deg);
}

/* Добавляем анимацию градиента */
@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Стили для точек таймлайна */
.timeline-dot {
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--primary);
    border-radius: 50%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    box-shadow: 0 0 10px var(--primary);
    transition: all 0.3s ease;
}

.timeline-dot:hover {
    transform: translateX(-50%) scale(1.2);
    box-shadow: 0 0 20px var(--primary);
}

/* Добавляем анимацию пульсации */
@keyframes dot-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 123, 0, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 123, 0, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 123, 0, 0);
    }
}

.timeline-dot::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    animation: dot-pulse 2s infinite;
}

/* Стили для выделения текста */
::selection {
    background: rgba(255, 123, 0, 0.3);
    color: #ffffff;
}

::-moz-selection {
    background: rgba(255, 123, 0, 0.3);
    color: #ffffff;
}

.star-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at bottom, #090909 0%, #000000 100%);
    overflow: hidden;
    z-index: 1;
}

.stars {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    animation: rotate 300s linear infinite;
    background: 
        radial-gradient(1px 1px at 15% 15%, rgba(255, 255, 255, 0.9) 1px, transparent 0),
        radial-gradient(2px 2px at 25% 45%, rgba(255, 255, 255, 0.7) 1px, transparent 0),
        radial-gradient(1px 1px at 35% 25%, rgba(255, 255, 255, 0.8) 1px, transparent 0),
        radial-gradient(1.5px 1.5px at 45% 65%, rgba(255, 255, 255, 0.9) 1px, transparent 0),
        radial-gradient(2px 2px at 55% 35%, rgba(255, 255, 255, 0.8) 1px, transparent 0),
        radial-gradient(1px 1px at 65% 85%, rgba(255, 255, 255, 0.7) 1px, transparent 0),
        radial-gradient(1.5px 1.5px at 75% 55%, rgba(255, 255, 255, 0.9) 1px, transparent 0),
        radial-gradient(2px 2px at 85% 25%, rgba(255, 255, 255, 0.8) 1px, transparent 0),
        radial-gradient(1px 1px at 95% 75%, rgba(255, 255, 255, 0.7) 1px, transparent 0),
        radial-gradient(1.5px 1.5px at 5% 85%, rgba(255, 255, 255, 0.9) 1px, transparent 0),
        radial-gradient(2px 2px at 12% 62%, rgba(255, 255, 255, 0.6) 1px, transparent 0),
        radial-gradient(1px 1px at 18% 92%, rgba(255, 255, 255, 0.8) 1px, transparent 0),
        radial-gradient(1.5px 1.5px at 28% 38%, rgba(255, 255, 255, 0.9) 1px, transparent 0),
        radial-gradient(2px 2px at 38% 72%, rgba(255, 255, 255, 0.7) 1px, transparent 0),
        radial-gradient(1px 1px at 48% 18%, rgba(255, 255, 255, 0.8) 1px, transparent 0),
        radial-gradient(1.5px 1.5px at 58% 82%, rgba(255, 255, 255, 0.9) 1px, transparent 0),
        radial-gradient(2px 2px at 68% 42%, rgba(255, 255, 255, 0.7) 1px, transparent 0),
        radial-gradient(1px 1px at 78% 92%, rgba(255, 255, 255, 0.8) 1px, transparent 0),
        radial-gradient(1.5px 1.5px at 88% 32%, rgba(255, 255, 255, 0.9) 1px, transparent 0),
        radial-gradient(2px 2px at 92% 68%, rgba(255, 255, 255, 0.6) 1px, transparent 0);
    background-size: 800px 800px;
    background-repeat: repeat;
    opacity: 0.8;
}

.stars::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        circle at 50% 50%,
        rgba(255, 123, 0, 0.05),
        transparent 80%
    );
    animation: nebula 30s ease infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg) scale(2) translateY(5%);
    }
    to {
        transform: rotate(360deg) scale(2) translateY(5%);
    }
}

@keyframes nebula {
    0%, 100% {
        opacity: 0.2;
        transform: scale(1);
    }
    50% {
        opacity: 0.3;
        transform: scale(1.1);
    }
}

/* Удаляем все стили для созвездий */
.constellation,
.star-dot,
.constellation-line,
.ursa-major,
.cassiopeia {
    display: none;
}

.github-project-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    padding: 0.5rem 1.2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    color: var(--light);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.36s ease;
}

.github-project-link:hover {
    background: rgba(255, 123, 0, 0.1);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.github-project-link svg {
    height: 24px;
    width: 24px;
    fill: currentColor;
}

.timeline-date {
    display: inline-block;
    padding: 0.3rem 1rem;
    background: rgba(255, 123, 0, 0.1);
    border: 1px solid var(--primary);
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--light);
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

/* Полностью убираем правило hover для даты */
.timeline-date:hover {
    /* Ничего не делаем при наведении */
}

.language-switcher {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
}

.language-switcher input[type="checkbox"] {
    display: none;
}

.language-switcher label {
    cursor: pointer;
    user-select: none;
}

.toggle-container {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 5px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 30px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 123, 0, 0.2);
    transition: all 0.3s ease;
}

.toggle-container:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 123, 0, 0.4);
}

.toggle-track {
    position: relative;
    width: 60px;
    height: 30px;
    background: rgba(255, 123, 0, 0.1);
    border-radius: 15px;
    transition: all 0.3s ease;
    overflow: hidden;
}

.toggle-track::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(255, 123, 0, 0.2), rgba(255, 215, 0, 0.2));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.toggle-thumb {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 26px;
    height: 26px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
}

.thumb-circle {
    width: 100%;
    height: 100%;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(255, 123, 0, 0.5);
    transition: all 0.3s ease;
}

#language-toggle:checked + label .toggle-track {
    background: rgba(255, 215, 0, 0.1);
}

#language-toggle:checked + label .toggle-track::before {
    opacity: 1;
}

#language-toggle:checked + label .toggle-thumb {
    transform: translateX(30px);
}

#language-toggle:checked + label .thumb-circle {
    background: var(--accent);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
}

.toggle-text {
    padding: 0 10px;
}

.lang-text {
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 14px;
    color: var(--primary);
    transition: all 0.3s ease;
    text-shadow: 0 0 10px rgba(255, 123, 0, 0.3);
}

#language-toggle:checked + label .lang-text {
    color: var(--accent);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

/* Добавляем анимацию при наведении */
.toggle-thumb:hover .thumb-circle {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(255, 123, 0, 0.7);
}

#language-toggle:checked + label .toggle-thumb:hover .thumb-circle {
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.7);
}

/* Добавляем эффект нажатия */
.toggle-thumb:active .thumb-circle {
    transform: scale(0.95);
}

.profile-section,
.case-studies-section,
.contact-section {
    position: relative;
    padding: 4rem 2rem;
}

.section-kicker {
    font-size: 0.9rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 1rem;
}

.profile-intro,
.contact-copy,
.availability-note,
.experience-company,
.experience-description {
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.8;
}

.quick-facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.quick-fact {
    padding: 1rem 1.1rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.fact-label {
    display: block;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary);
    margin-bottom: 0.45rem;
}

.fact-value {
    display: block;
    font-size: 0.95rem;
    color: var(--light);
    line-height: 1.6;
}

.summary-list,
.metrics-list {
    margin: 1.5rem 0 0;
    padding-left: 1.2rem;
    color: rgba(255, 255, 255, 0.82);
}

.summary-list li,
.metrics-list li {
    margin-bottom: 0.7rem;
    line-height: 1.7;
}

.action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
}

.secondary-link {
    background: rgba(255, 123, 0, 0.08);
}

.experience-timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.experience-card h3 {
    font-size: 1.2rem;
    margin: 0.4rem 0 0.5rem;
}

.experience-company {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.64);
    margin-bottom: 0.75rem;
}

.case-grid {
    padding-top: 0;
}

.case-card {
    cursor: default;
}

.case-label {
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 0.9rem;
}

.contact-section .content-card {
    max-width: 980px;
    margin: 0 auto;
}

.availability-note {
    margin-top: 1.25rem;
    font-size: 0.95rem;
}

@media screen and (max-width: 768px) {
    .profile-section,
    .case-studies-section,
    .contact-section {
        padding: 3rem 1.2rem;
    }

    .quick-facts {
        grid-template-columns: 1fr;
    }

    .summary-list,
    .metrics-list {
        padding-left: 1rem;
    }
}
