/* ============================================
   EXIMOTOR ATV - Custom Styles
   ============================================ */

/* Global Styles */
:root {
    --primary-color: #cc0000;
    --secondary-color: #000000;
    --text-color: #333333;
    --bg-light: #f5f5f5;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Supermolot', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

html {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Supermolot', sans-serif;
    font-weight: 700;
}

.text-primary {
    color: var(--primary-color) !important;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Section Spacing */
section {
    position: relative;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 48px;
    right: 44px;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    display: none !important;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(204,0,0,0.3);
    transition: var(--transition);
    z-index: 999;
}

.back-to-top[style*="display: inline-block"],
.back-to-top[style*="display: block"] {
    display: flex !important;
}

.back-to-top:hover {
    background: #a00000;
    transform: translateY(-5px);
    color: #fff;
}

/* Buttons */
.btn {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: linear-gradient(135deg, #cc0000 0%, #ff0000 100%);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #a00000 0%, #cc0000 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(204,0,0,0.3);
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Image Lazy Loading */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

/* Responsive Images */
img {
    max-width: 100%;
    height: auto;
}

/* Container Adjustments */
.container-fluid {
    max-width: 100%;
    overflow-x: hidden;
}

/* Container max-width как на оригинальном сайте */
@media (min-width: 1200px) {
    .container {
        max-width: 1200px !important;
    }
}

/* Fix Bootstrap row overflow */
.row {
    margin-left: 0;
    margin-right: 0;
    max-width: 100%;
}

.row > * {
    padding-left: 15px;
    padding-right: 15px;
}

/* Navbar Fixed Adjustments - REMOVED padding-top */
/* Hero section is full height, no padding needed */


/* Ken Burns Effect */
.kenburns-bg {
    animation: kenburns 20s ease-in-out infinite alternate;
}

@keyframes kenburns {
    0% {
        transform: scale(1) translateX(0);
    }
    100% {
        transform: scale(1.2) translateX(-5%);
    }
}

/* Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Selection Color */
::selection {
    background: var(--primary-color);
    color: #fff;
}

::-moz-selection {
    background: var(--primary-color);
    color: #fff;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a00000;
}

/* Print Styles */
@media print {
    .header-main,
    .footer-main,
    .back-to-top,
    .cta-form-section {
        display: none;
    }
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border-width: 0;
}

/* Focus Styles */
a:focus,
button:focus,
input:focus,
textarea:focus {

}

/* Mobile Optimizations */
@media (max-width: 768px) {
    /* Removed body padding-top for mobile */

    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
    
    section {
        padding: 60px 0 !important;
    }
}

/* Tablet Optimizations */
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        max-width: 960px;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Optimize images for retina displays */
}

/* Dark Mode Support (Optional) */
@media (prefers-color-scheme: dark) {
    /* Add dark mode styles if needed */
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ============================================
   Navigation Scroll Override - Белый фон при скролле
   ============================================ */

/* Белый фон при скролле */
.navbar.nav-scroll {
    background-color: #ffffff !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
    position: fixed !important;
    top: -100px !important;
    left: 0 !important;
    width: 100% !important;
    z-index: 999 !important;
    transition: transform 0.5s ease !important;
    transform: translateY(100px) !important;
}

/* Убираем темный фон Bootstrap */
.navbar.bg-white.nav-scroll {
    background-color: #ffffff !important;
}

/* Цвета текста при скролле - темный текст на белом фоне */
.navbar.nav-scroll .nav-link {
    color: #1b1b1b !important;
}

.navbar.nav-scroll .nav-link:hover,
.navbar.nav-scroll .nav-link.active {
    color: var(--primary-color) !important;
}

.navbar.nav-scroll .brand-text {
    color: #1b1b1b !important;
}

.navbar.nav-scroll .lang-link {
    color: #1b1b1b !important;
}

.navbar.nav-scroll .lang-link:hover,
.navbar.nav-scroll .lang-link.active {
    color: var(--primary-color) !important;
}

.navbar.nav-scroll .navbar-toggler-icon {
    filter: invert(0);
}

/* Кнопка телефона при скролле */
.navbar.nav-scroll .btn-primary {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: #fff !important;
}
