/* ===== Custom Styles for Innovative Auto Solutions ===== */

/* Base animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Scroll-triggered animations */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1a0d14;
}

::-webkit-scrollbar-thumb {
    background: #743a4d;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #8e4a60;
}

/* Selection color */
::selection {
    background: rgba(232, 168, 23, 0.3);
    color: #f5ebee;
}

/* Navbar scroll state */
nav.scrolled {
    background: rgba(26, 13, 20, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(116, 58, 77, 0.3);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Mobile menu open state */
.mobile-menu-open {
    opacity: 1 !important;
    pointer-events: all !important;
}

/* Mobile menu lines animation */
.menu-toggle-active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

.menu-toggle-active .menu-line:nth-child(2) {
    opacity: 0;
}

.menu-toggle-active .menu-line:nth-child(3) {
    width: 24px;
    transform: rotate(-45deg) translate(4px, -4px);
}

/* Input focus styles */
input:focus,
textarea:focus {
    outline: none;
}

/* Image lazy loading placeholder */
img {
    background: linear-gradient(135deg, #1a0d14 0%, #2d1a24 100%);
}

/* Subtle hover lift for cards */
.group:hover {
    transform: translateY(-2px);
}

/* Hero decorative pulse */
@keyframes pulse-ring {
    0% {
        box-shadow: 0 0 0 0 rgba(232, 168, 23, 0.3);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(232, 168, 23, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(232, 168, 23, 0);
    }
}

.pulse-dot {
    animation: pulse-ring 2s infinite;
}

/* Prevent layout shift for images */
img {
    content-visibility: auto;
}

/* Print styles */
@media print {
    nav, #contact-form, .animate-fade-in {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: #1a1a1a !important;
    }
}
