/* Custom styles for Hitzfield's Automotive */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #061122;
}
::-webkit-scrollbar-thumb {
    background: #1e4d7c;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #2bb888;
}

/* Selection color */
::selection {
    background: rgba(43, 184, 136, 0.3);
    color: #f0f4f8;
}

/* Service card subtle lift */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(43, 184, 136, 0.3), transparent);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.service-card:hover::before {
    opacity: 1;
}

/* Fade-in animations for scroll reveal */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    html {
        scroll-behavior: auto;
    }
}

/* Mobile menu transitions */
#mobile-menu {
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

#mobile-menu.active {
    opacity: 1;
    pointer-events: all;
}

/* Navbar background transition */
#navbar.scrolled {
    background: rgba(6, 17, 34, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Form select arrow */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.3)' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
}

/* Map dark theme override */
iframe[title*="map"] {
    opacity: 0.85;
    transition: opacity 0.3s ease;
}

iframe[title*="map"]:hover {
    opacity: 1;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .font-serif {
        font-size: 2rem;
        line-height: 1.15;
    }
}

@media (min-width: 641px) and (max-width: 1023px) {
    .font-serif {
        font-size: 2.75rem;
    }
}
