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

body {
    font-family: sans-serif;
    background-color: #000;
    color: #fff;
    overflow: hidden;
    height: 100vh;
    width: 100vw;
    position: relative;
    
}



.content {
    position: relative;
    z-index: 10;
    padding: 30px;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.nav-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-end;
    position: relative;
    z-index: 20;
}

.nav-link {
    color: #fff;
    text-decoration: none;
    background-color: rgba(0, 0, 0, 0.7) !important;
    padding: 10px 15px;
    border-radius: 4px;
    display: inline-block;
    font-size: 14px;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    width: fit-content;
}

.nav-link:hover {
    transform: translateX(5px);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

.arrow {
    display: inline-block;
    margin-left: 5px;
}

.taglines {
    margin: 40px 0;
    font-size: 18px;
    text-align: right;
}

.taglines p {
    margin-bottom: 10px;
    opacity: 0.8;
}

.logo h1 {
    font-size: 160px;
    font-weight: 900;
    letter-spacing: -5px;
    line-height: 0.9;
    margin-bottom: 20px;
}

/* Контейнер для кристаллической структуры */
.bubble-container {
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100vh;
    overflow: hidden;
    z-index: 1;
    perspective: 1200px;
}

/* Стили для кристаллической структуры */
.crystal-sphere {
    position: absolute;
    width: 800px;
    height: 800px;
    right: -200px;
    top: 50%;
    transform: translateY(-50%) rotateY(30deg) rotateX(10deg);
    transform-style: preserve-3d;
    transition: transform 1.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
                top 1.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
                right 1.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
                width 1.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
                height 1.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    will-change: transform, top, right, width, height;
}

.crystal-face {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0.6;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(70, 120, 250, 0.2));
    border: 1px solid rgba(255, 255, 255, 0.2);
    transform-style: preserve-3d;
    backface-visibility: visible;
    transition: transform 1.2s cubic-bezier(0.19, 1, 0.22, 1), 
                opacity 1.2s cubic-bezier(0.19, 1, 0.22, 1), 
                background 1.2s cubic-bezier(0.19, 1, 0.22, 1);
    box-shadow: 0 0 20px rgba(100, 150, 255, 0.3);
    will-change: transform, opacity, background;
}

.face1 {
    transform: translateZ(200px) rotateY(0deg);
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

.face2 {
    transform: translateZ(-200px) rotateY(180deg);
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

.face3 {
    transform: translateX(200px) rotateY(90deg);
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

.face4 {
    transform: translateX(-200px) rotateY(-90deg);
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

.face5 {
    transform: translateY(200px) rotateX(90deg);
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

.face6 {
    transform: translateY(-200px) rotateX(-90deg);
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

.face7 {
    transform: translateZ(100px) scale(0.7) rotateZ(45deg);
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    background: linear-gradient(135deg, rgba(255, 100, 255, 0.2), rgba(100, 100, 250, 0.2));
}

.face8 {
    transform: translateZ(-100px) scale(0.7) rotateZ(-45deg);
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    background: linear-gradient(135deg, rgba(100, 200, 255, 0.2), rgba(150, 100, 250, 0.2));
}

/* Стиль для кнопки переключения */
.style-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 20;
}

#toggleStyle {
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

#toggleStyle:hover {
    background-color: rgba(50, 50, 50, 0.7);
    border-color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 992px) {
    /* Скрываем контейнер с кристаллом полностью */
    .bubble-container {
        display: none;
    }

    /* Убираем overflow: hidden, чтобы контент мог прокручиваться, если он не помещается */
    body {
        overflow: auto;
        /* Добавляем красивый градиентный фон */
        background: linear-gradient(135deg, 
            #0f0f23 0%, 
            #1a1a3a 25%, 
            #2d1b69 50%, 
            #1a1a3a 75%, 
            #0f0f23 100%);
        background-attachment: fixed;
        position: relative;
    }
    
    /* Добавляем анимированный градиентный оверлей */
    body::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: 
            radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
            radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.3) 0%, transparent 50%),
            radial-gradient(circle at 40% 40%, rgba(120, 219, 255, 0.2) 0%, transparent 50%);
        animation: gradientShift 15s ease-in-out infinite;
        z-index: 0;
        pointer-events: none;
    }
    
    /* Анимация для градиента */
    @keyframes gradientShift {
        0%, 100% {
            opacity: 0.7;
            transform: scale(1);
        }
        50% {
            opacity: 1;
            transform: scale(1.1);
        }
    }
    
    /* Меняем расположение контента, чтобы он занимал всю ширину экрана */
    .content {
        justify-content: flex-start;
        height: auto;
        padding-top: 20px;
        padding-bottom: 20px;
        position: relative;
        z-index: 10;
    }
    
    /* Изменяем размер и расположение логотипа */
    .logo {
        text-align: center;
        margin-top: 40px;
    }
    
    .logo h1 {
        font-size: 80px;
        letter-spacing: -2px;
        margin: 20px auto;
        /* Добавляем текстовый градиент для логотипа */
        background: linear-gradient(135deg, #ffffff 0%, #a8a8ff 50%, #ffffff 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        text-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
    }
    
    /* Адаптируем навигацию, чтобы она была более удобной на мобильных */
    .nav-links {
        align-items: center;
        margin-bottom: 30px;
    }
    
    .nav-link {
        font-size: 16px;
        padding: 12px 20px;
        margin-bottom: 10px;
        min-width: 200px;
        text-align: center;
        /* Улучшаем touch-интерфейс */
        -webkit-tap-highlight-color: rgba(255, 255, 255, 0.3);
        touch-action: manipulation;
        /* Добавляем градиентный фон для кнопок */
        background: linear-gradient(135deg, 
            rgba(255, 255, 255, 0.1) 0%, 
            rgba(255, 255, 255, 0.05) 100%) !important;
        border: 1px solid rgba(255, 255, 255, 0.2);
        backdrop-filter: blur(10px);
        transition: all 0.3s ease;
    }
    
    .nav-link:hover {
        background: linear-gradient(135deg, 
            rgba(255, 255, 255, 0.2) 0%, 
            rgba(255, 255, 255, 0.1) 100%) !important;
        border-color: rgba(255, 255, 255, 0.4);
        box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
    }
    
    /* Центрируем теги */
    .taglines {
        text-align: center;
        margin: 30px 0;
    }
    
    .taglines p {
        font-size: 16px;
        margin-bottom: 8px;
        /* Добавляем легкий градиент для текста */
        background: linear-gradient(135deg, #ffffff 0%, #e0e0ff 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }
}

@media (max-width: 768px) {
    .logo h1 {
        font-size: 100px;
    }
    
    .bubble-container {
        width: 100%;
    }
    
    .crystal-sphere {
        width: 500px;
        height: 500px;
        right: -150px;
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 80px;
    }
    
    .crystal-sphere {
        width: 300px;
        height: 300px;
        right: -100px;
    }
    
    .nav-link {
        font-size: 14px;
        padding: 10px 15px;
        min-width: 180px;
    }
    
    .taglines p {
        font-size: 14px;
    }
    
    /* Дополнительные улучшения для очень маленьких экранов */
    .content {
        padding: 15px;
    }
    
    .logo h1 {
        font-size: 60px;
        letter-spacing: -1px;
    }
} 