/* Index Page Specific Styles */

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

/* Hero Buttons - гарантируем видимость текста */
.hero a.bg-orange-500 {
    color: #ffffff !important;
    background-color: #f97316 !important;
}

.hero a.bg-orange-500:hover {
    background-color: #ea580c !important;
    color: #ffffff !important;
}

.hero a.bg-white {
    color: #ea580c !important;
    background-color: #ffffff !important;
}

.hero a.bg-white:hover {
    background-color: #ffffff !important;
    color: #c2410c !important;
}

/* CTA Section Buttons - гарантируем видимость на оранжевом фоне */
.cta-section a.bg-white {
    background-color: #ffffff !important;
    color: #ea580c !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2) !important;
}

.cta-section a.bg-white:hover {
    background-color: #f3f4f6 !important;
    color: #c2410c !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3) !important;
}

/* CTA Section - кнопка "Получить консультацию" */
.cta-section a.bg-transparent {
    background-color: transparent !important;
    color: #ffffff !important;
    border-color: #ffffff !important;
}

.cta-section a.bg-transparent:hover {
    background-color: #fb923c !important;
    color: #ffffff !important;
    border-color: #ffffff !important;
}

/* Quick Contact Button - всегда видна на любом фоне */
.quick-contact-btn {
    background-color: #f97316 !important;
    border: 2px solid #ffffff !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
}

.quick-contact-btn:hover {
    background-color: #ea580c !important;
    border-color: #ffffff !important;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4) !important;
}

.quick-contact-btn i {
    color: #ffffff !important;
}

.hero video {
    filter: brightness(0.8);
}

.hero .text-shadow {
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.scroll-indicator {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Quick Stats */
.quick-stats {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
}

/* Service Cards */
.service-card {
    transition: all 0.3s ease;
    border: 1px solid #f3f4f6;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: #fed7aa;
}

.service-card .bg-orange-100 {
    transition: transform 0.3s ease;
}

.service-card:hover .bg-orange-100 {
    transform: scale(1.1);
}

/* Car Cards */
.car-card {
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
}

.car-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.car-specs {
    border-top: 1px solid #f3f4f6;
    border-bottom: 1px solid #f3f4f6;
    padding: 1rem 0;
}

.price-grid {
    background: linear-gradient(135deg, #fef3e2 0%, #fef7ed 100%);
    padding: 1rem;
    border-radius: 0.5rem;
    border: 1px solid #fed7aa;
}

/* Advantage Cards */
.advantage-card {
    transition: all 0.3s ease;
}

.advantage-card:hover {
    transform: translateY(-3px);
}

.advantage-card .bg-orange-100 {
    transition: all 0.3s ease;
}

.advantage-card:hover .bg-orange-100 {
    background: #fed7aa !important;
    transform: scale(1.1);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000" opacity="0.1"><polygon fill="white" points="0,1000 1000,0 1000,1000"/></svg>');
    background-size: cover;
}

/* Modal Styles */
.modal {
    transition: opacity 0.3s ease;
}

.modal.show {
    display: flex !important;
    opacity: 1;
}

/* Loading Animation */
.loading-spinner {
    border: 3px solid #f3f4f6;
    border-top: 3px solid #f97316;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Success Message */
.success-message {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 1rem;
    border-radius: 0.5rem;
    text-align: center;
    margin: 1rem 0;
    animation: slideIn 0.5s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fade In Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.fade-in.show {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered Animations for Cards */
.service-card:nth-child(1) { transition-delay: 0.1s; }
.service-card:nth-child(2) { transition-delay: 0.2s; }
.service-card:nth-child(3) { transition-delay: 0.3s; }

.car-card:nth-child(1) { transition-delay: 0.1s; }
.car-card:nth-child(2) { transition-delay: 0.2s; }
.car-card:nth-child(3) { transition-delay: 0.3s; }

.advantage-card:nth-child(1) { transition-delay: 0.1s; }
.advantage-card:nth-child(2) { transition-delay: 0.2s; }
.advantage-card:nth-child(3) { transition-delay: 0.3s; }
.advantage-card:nth-child(4) { transition-delay: 0.4s; }

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero .text-xl {
        font-size: 1.125rem;
    }
    
    .service-card,
    .car-card,
    .advantage-card {
        margin-bottom: 1.5rem;
    }
    
    .price-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .quick-stats .grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 640px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero .flex {
        flex-direction: column;
    }
    
    .cta-section .flex {
        flex-direction: column;
    }
    
    .car-card .flex {
        flex-direction: column;
    }
    
    .car-card .flex space-x-2 {
        gap: 0.5rem;
    }
}

/* Print Styles */
@media print {
    .hero,
    .quick-stats,
    .cta-section {
        display: none !important;
    }
    
    .service-card,
    .car-card,
    .advantage-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }
}


