/* ============================================
   DARK THEME - Vipart
   Темная тема для автоматизации ресторанов
   ============================================ */

/* Сброс и база */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    background: #111827;
    color: #FFFFFF;
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* Кастомный скроллбар */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #1A1F2A;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #0066FF, #00E5FF);
    border-radius: 3px;
}

/* Стеклянные карточки */
.glass-card {
    background: rgba(30, 41, 59, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card:hover {
    background: rgba(51, 65, 85, 0.6);
    border-color: rgba(0, 102, 255, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -15px rgba(0, 102, 255, 0.2);
}

/* Градиентный текст */
.text-gradient {
    background: linear-gradient(135deg, #0066FF 0%, #00E5FF 50%, #7C3AED 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 8s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Ссылки навигации */
.nav-link {
    position: relative;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #0066FF, #00E5FF);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover {
    color: #00E5FF;
}

/* Кнопки */
.btn-primary {
    background: linear-gradient(135deg, #0066FF, #7C3AED);
    color: white;
    font-weight: 600;
    padding: 12px 28px;
    border-radius: 12px;
    transition: all 0.3s;
    border: none;
    box-shadow: 0 8px 20px -6px rgba(0, 102, 255, 0.4);
    display: inline-block;
    cursor: pointer;
    text-decoration: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px -8px rgba(0, 102, 255, 0.5);
}

.btn-outline {
    background: transparent;
    color: white;
    font-weight: 500;
    padding: 12px 28px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.3s;
    display: inline-block;
    cursor: pointer;
    text-decoration: none;
}

.btn-outline:hover {
    border-color: #0066FF;
    background: rgba(0, 102, 255, 0.05);
}

/* Мобильное меню */
#mobileMenu {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

#mobileMenu.active {
    transform: translateX(0);
}

#burgerBtn.active span:first-child {
    transform: rotate(45deg) translate(5px, 5px);
}

#burgerBtn.active span:nth-child(2) {
    opacity: 0;
}

#burgerBtn.active span:last-child {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Бегущая строка */
.marquee-content {
    display: flex;
    animation: marquee 30s linear infinite;
}

.marquee-content:hover {
    animation-play-state: paused;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Адаптивность */
@media (max-width: 768px) {
    .btn-primary, 
    .btn-outline {
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* Анимации */
@keyframes slideUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-slide-up {
    animation: slideUp 0.8s ease-out forwards;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-15px) rotate(1deg);
    }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

/* Для пользователей с motion sensitivity */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .animate-float,
    .animate-slide-up,
    .marquee-content {
        animation: none !important;
    }
    
    .glass-card:hover {
        transform: none !important;
    }
}