/* Дополнительные стили для vos9.su */

/* Кастомный скроллбар */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* Дополнительные анимации */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Анимации для карточек статистики */
.stat-card:nth-child(1) {
    animation: slideInLeft 0.8s ease-out 0.2s both;
}

.stat-card:nth-child(2) {
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.stat-card:nth-child(3) {
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.stat-card:nth-child(4) {
    animation: slideInRight 0.8s ease-out 0.8s both;
}

/* Анимации для кнопок */
.btn-primary {
    animation: scaleIn 0.6s ease-out 1s both;
}

.btn-secondary {
    animation: scaleIn 0.6s ease-out 1.2s both;
}

/* Анимации для социальных ссылок */
.social-link:nth-child(1) { animation: scaleIn 0.4s ease-out 1.4s both; }
.social-link:nth-child(2) { animation: scaleIn 0.4s ease-out 1.5s both; }
.social-link:nth-child(3) { animation: scaleIn 0.4s ease-out 1.6s both; }
.social-link:nth-child(4) { animation: scaleIn 0.4s ease-out 1.7s both; }
.social-link:nth-child(5) { animation: scaleIn 0.4s ease-out 1.8s both; }

/* Эффекты при наведении */
.navbar {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-section {
    transition: transform 0.3s ease;
}

/* Дополнительные медиа-запросы */
@media (max-width: 480px) {
    .main-title {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .stat-card {
        padding: 1.5rem;
    }
    
    .stat-icon {
        font-size: 2rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .social-link {
        width: 45px;
        height: 45px;
    }
}

@media (min-width: 1400px) {
    .nav-container,
    .hero-section {
        max-width: 1400px;
    }
}

/* Темы для разного времени суток */
@media (prefers-color-scheme: light) {
    /* Можно добавить светлую тему если понадобится */
}

/* Анимации для производительности */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Печать */
@media print {
    .animated-bg,
    .navbar,
    .social-links,
    .cta-buttons {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .main-title {
        background: none;
        color: black;
    }
}

/* Высокие DPI экраны */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .avatar img {
        image-rendering: -webkit-optimize-contrast;
    }
}

/* Фокус для доступности */
.btn:focus,
.nav-links a:focus,
.social-link:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Дополнительные утилиты */
.hidden {
    display: none !important;
}

.fade-in {
    animation: fadeInUp 0.6s ease-out;
}

.scale-in {
    animation: scaleIn 0.6s ease-out;
}

/* Кастомные свойства для JavaScript */
.js-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.js-animate.visible {
    opacity: 1;
    transform: translateY(0);
}
