/* Основные стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #0a0a0a;
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Кастомная полоска скролла */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    transition: background-color 0.2s ease;
}

::-webkit-scrollbar-thumb:hover {
    background-color: rgba(255, 255, 255, 0.4);
}

::-webkit-scrollbar-thumb:active {
    background-color: rgba(255, 255, 255, 0.6);
}

::-webkit-scrollbar-corner {
    background: transparent;
}

/* Контейнер приложения */
#app {
    min-height: 100vh;
    background-color: #0a0a0a;
}

/* Страницы */
.page {
    display: none;
    min-height: 100vh;
    padding-top: 1rem;
}

.page.active {
    display: block;
}

/* Кнопка назад */
.back-button {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    z-index: 30;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #ffffff;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s ease;
}

.back-button:hover {
    color: #d1d5db;
}

/* Hero секция */
.hero-section {
    position: relative;
    height: 382px;
    margin: 0 1rem 1rem 1rem;
}

.hero-background {
    background-color: #0a0a0a;
    overflow: hidden;
    position: relative;
    border-radius: 1rem;
    height: 100%;
    width: 100%;
}

.hero-gradient {
    position: absolute;
    height: 740.536px;
    left: 122px;
    top: -233.04px;
    width: 1064.85px;
    opacity: 0.4;
}

.hero-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(71, 79, 234, 0.6) 0%, transparent 70%);
    filter: blur(194px);
}

.hero-logo {
    position: absolute;
    height: 34px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 113.682px;
    z-index: 20;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.hero-logo:hover {
    transform: translate(-50%, -50%) scale(1.05);
}

/* Проекты на главной странице */
.projects-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin: 0 1rem;
}

@media (min-width: 768px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Карточки проектов */
.project-card {
    position: relative;
    background-color: #0f0f0f;
    height: 260px;
    overflow: hidden;
    border-radius: 1rem;
    cursor: pointer;
    transition: all 0.5s ease;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.project-card:hover {
    background-color: #0A0A0A;
    transform: translateY(-2px);
}

.project-card-icon {
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    width: 24px;
    height: 24px;
    transition: all 0.2s ease;
}

.project-card:hover .project-card-icon {
    right: 0.25rem;
    top: 0.25rem;
}

.project-card-title {
    color: #ffffff;
    font-size: 18px;
    line-height: 24px;
    letter-spacing: 0.18px;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.project-card-description {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    line-height: 24px;
    letter-spacing: 0.14px;
    opacity: 0.7;
}

/* Заголовки проектов на страницах проектов */
.project-title {
    position: absolute;
    bottom: 4rem;
    left: 2.5rem;
    font-size: 24px;
    line-height: 32px;
    letter-spacing: 0.24px;
    z-index: 20;
    font-weight: 500;
}

@media (min-width: 768px) {
    .project-title {
        bottom: 2.5rem;
    }
}

/* Технологические теги */
.tech-tags {
    position: absolute;
    left: 2.5rem;
    bottom: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    justify-content: flex-start;
    width: 280px;
    z-index: 20;
}

@media (min-width: 768px) {
    .tech-tags {
        right: 2.5rem;
        bottom: 2.5rem;
        left: auto;
        justify-content: flex-end;
    }
}

.tech-tag {
    background-color: #0a0a0a;
    border-radius: 1.5rem;
    padding: 0.25rem 0.75rem 0.125rem 0.75rem;
    color: #bbbcda;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.tech-tag:hover {
    background-color: #1a1a1a;
    transform: translateY(-1px);
}

/* Информационные карточки */
.info-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin: 0 1rem;
}

@media (min-width: 1024px) {
    .info-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1280px) {
    .info-cards {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Видео карточка */
.video-card {
    background-color: #0f0f0f;
    border-radius: 1rem;
    padding: 1.5rem;
    height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.video-card:hover {
    background-color: #1a1a1a;
    transform: translateY(-2px);
}

.video-card-title {
    color: #ffffff;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 0.5rem;
    z-index: 10;
    position: relative;
}

.video-container {
    position: absolute;
    inset: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.demo-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0.5rem;
}

/* Карточка с картинкой */
.image-card {
    background-color: #0f0f0f;
    border-radius: 1rem;
    padding: 1.5rem;
    height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.image-card:hover {
    transform: translateY(-2px);
}

.image-card-title {
    color: #ffffff;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 0.5rem;
    z-index: 10;
    position: relative;
}

.image-container {
    position: absolute;
    inset: 1.5rem; /* отступы внутри блока */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.demo-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* чтобы картинка заполняла контейнер */
    border-radius: 0.5rem;
}

.info-card {
    background-color: #0f0f0f;
    border-radius: 1rem;
    padding: 1.5rem;
    height: 260px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s ease;
}

.info-card:hover {
    background-color: #1a1a1a;
    transform: translateY(-2px);
}

.info-card-title {
    color: #ffffff;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.info-card-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    line-height: 24px;
    letter-spacing: 0.14px;
}

.site-footer {
    background-color: #0f0f0f;
    border-top: 1px solid #1f1f1f;
    text-align: center;
    padding: 1.5rem 1rem;
    font-family: 'Inter', sans-serif;
}

.footer-links {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #ffffff;
    margin: 0 0.75rem;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #00aaff; /* Акцентный цвет */
}

.footer-copy {
    color: #777;
    font-size: 12px;
    margin: 0;
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Анимации для карточек проектов */
.project-card {
    animation: fadeInUp 0.6s ease forwards;
}

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

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

.project-card:nth-child(3) {
    animation-delay: 0.3s;
}

/* Анимации для информационных карточек */
.info-card {
    animation: fadeInUp 0.6s ease forwards;
}

.info-card:nth-child(1) {
    animation-delay: 0.8s;
}

.info-card:nth-child(2) {
    animation-delay: 1s;
}

.info-card:nth-child(3) {
    animation-delay: 1.1s;
}

/* Анимации для видео карточки */
.video-card {
    animation: fadeInUp 0.6s ease forwards;
}

.video-card:nth-child(4) {
    animation-delay: 1.25s;
}

/* Анимации для технологических тегов */
.tech-tag {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.tech-tag:nth-child(1) {
    animation-delay: 0.4s;
}

.tech-tag:nth-child(2) {
    animation-delay: 0.5s;
}

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

.tech-tag:nth-child(4) {
    animation-delay: 0.7s;
}

/* Анимация для заголовка проекта */
.project-title {
    animation: fadeInUp 0.6s ease forwards;
    animation-delay: 0.2s;
    opacity: 0;
}

/* Переходы между страницами */
.page {
    transition: opacity 0.5s ease;
}

.page.fade-out {
    opacity: 0;
}

.page.fade-in {
    opacity: 1;
}

/* Дополнительные градиенты для hero секции */
.hero-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(71, 79, 234, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(71, 79, 234, 0.2) 0%, transparent 50%);
    pointer-events: none;
}

/* Улучшенные hover эффекты */
.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(71, 79, 234, 0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 1rem;
    pointer-events: none;
}

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

/* Адаптивность для мобильных устройств */
@media (max-width: 640px) {
    .hero-section {
        height: 300px;
        margin: 0 0.5rem 0.5rem 0.5rem;
    }
    
    .projects-grid {
        margin: 0 0.5rem;
    }
    
    .info-cards {
        margin: 0 0.5rem;
    }
    
    .back-button {
        top: 1rem;
        left: 1rem;
    }
    
    .project-title {
        left: 1rem;
        bottom: 3rem;
        font-size: 20px;
        line-height: 28px;
    }
    
    .tech-tags {
        left: 1rem;
        bottom: 0.5rem;
        width: auto;
        max-width: calc(100% - 2rem);
    }
    
    /* Адаптивность для навигационного меню */
    .navigation-menu {
        top: 1rem;
    }
    
    .nav-container {
        gap: 1rem;
        padding: 0.5rem 0.75rem;
    }
    
    .nav-item {
        font-size: 12px;
    }
    
    /* Адаптивность для дорожной карты */
    .roadmap {
        margin: 0 0.5rem 1rem 0.5rem;
    }
    
    .version-container {
        padding: 1rem;
    }
    
    .features-list {
        padding: 1.5rem 0;
    }
    
    .feature-item {
        padding: 0.5rem 0.75rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .feature-type {
        margin-left: 0;
        align-self: flex-end;
    }
}

/* Улучшенные тени и эффекты */
.project-card,
.info-card {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.project-card:hover,
.info-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Навигационное меню */
.navigation-menu {
    position: fixed;
    top: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 40;
}

.nav-container {
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 28px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    display: flex;
    gap: 1.5rem;
    padding: 0.625rem 1rem;
    transition: all 0.6s ease;
    animation: fadeInUp 0.6s ease 0.3s forwards;
    opacity: 0;
}

.nav-item {
    color: #bbbcda;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.nav-item:hover {
    color: #ffffff;
}

.nav-item.active {
    color: #ffffff;
}

/* Дорожная карта */
.roadmap {
    margin: 0 1rem 2rem 1rem;
}

.version-section {
    margin-bottom: 1rem;
    scroll-margin-top: 6rem;
    transition: all 0.6s ease;
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.version-section:nth-child(1) { animation-delay: 1.3s; }
.version-section:nth-child(2) { animation-delay: 1.5s; }
.version-section:nth-child(3) { animation-delay: 1.7s; }
.version-section:nth-child(4) { animation-delay: 1.9s; }

.version-container {
    border: 1px solid rgba(71, 79, 234, 0.3);
    border-radius: 1rem;
    padding: 1.5rem;
}

.version-title {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #ffffff;
    margin-bottom: 1.5rem;
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 2.5rem 0;
}

.feature-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background-color: #0f0f0f;
    border-radius: 1rem;
    transition: all 0.3s ease;
}

.feature-item:hover {
    background-color: #1a1a1a;
    transform: translateY(-1px);
}

.feature-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    line-height: 24px;
    letter-spacing: 0.14px;
    flex: 1;
}

.feature-type {
    color: #bbbcda;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.14px;
    background: rgba(0, 0, 0, 0);
    border-radius: 1.5rem;
    padding: 0.25rem 0.75rem;
    white-space: nowrap;
    margin-left: 0.5rem;
}

/* Плавные переходы для всех интерактивных элементов */
* {
    transition: color 0.2s ease, background-color 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
} 
