/* Custom CSS for Canalview Auto */

:root {
    --midnight-900: #0A2540;
    --midnight-800: #0D2F4F;
    --midnight-700: #103A60;
    --midnight-600: #144570;
    --midnight-500: #1A5585;
    --midnight-200: #A8C5D9;
    --midnight-100: #D0E0EA;
    --midnight-50: #EAF2F7;
    --mint-400: #5EEAD4;
    --mint-300: #8FF3E0;
    --mint-600: #2DD4BF;
}

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

/* Selection color */
::selection {
    background-color: var(--mint-400);
    color: var(--midnight-900);
}

/* Navbar scroll effect */
.navbar-scrolled {
    box-shadow: 0 4px 20px rgba(10, 37, 64, 0.15);
}

/* Service card hover */
.service-card {
    transform: translateY(0);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.4s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(10, 37, 64, 0.2);
}

/* Mobile menu animation */
.mobile-menu-open .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-open .menu-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-open .menu-line:nth-child(3) {
    width: 24px;
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Scroll reveal animations */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.revealed {
    opacity: 1;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .service-card {
        transition: none;
    }
    
    .service-card:hover {
        transform: none;
    }
    
    .reveal {
        opacity: 1;
        transform: none;
    }
    
    @keyframes fadeIn {
        from { opacity: 1; }
        to { opacity: 1; }
    }
    
    .reveal {
        animation: none;
    }
}

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

::-webkit-scrollbar-track {
    background: var(--midnight-50);
}

::-webkit-scrollbar-thumb {
    background: var(--midnight-200);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--midnight-500);
}

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

/* Image loading placeholder */
img {
    background: linear-gradient(135deg, var(--midnight-50) 0%, var(--midnight-100) 100%);
}

/* Subtle pattern overlay for hero */
#hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(94, 234, 212, 0.03) 1px, transparent 0);
    background-size: 40px 40px;
    pointer-events: none;
}
