/* ===== Custom Styles for Safecare Solutions Auto Glass ===== */

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

/* Base font settings */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Navbar scroll effect */
#navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(10, 37, 64, 0.08);
}

#navbar.scrolled {
    box-shadow: 0 4px 20px rgba(10, 37, 64, 0.1);
}

/* Nav links */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: #40E0D0;
    border-radius: 1px;
    transition: width 0.2s ease;
}

.nav-link:hover::after {
    width: 60%;
}

/* Mobile menu */
#mobile-menu {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-link {
    transition: all 0.2s ease;
}

/* Service cards */
.service-card {
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-4px);
}

/* Testimonial cards */
.bg-mint-50 {
    position: relative;
}

/* Fade-in animation */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Selection color */
::selection {
    background: #40E0D0;
    color: #0A2540;
}

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

::-webkit-scrollbar-track {
    background: #F0FFF8;
}

::-webkit-scrollbar-thumb {
    background: #40E0D0;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #2BC4B4;
}

/* 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='%230A2540' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%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;
    appearance: none;
    -webkit-appearance: none;
}

/* Image hover zoom */
img {
    transition: transform 0.3s ease;
}

/* Active nav link highlight */
.nav-link.active {
    color: #0A2540;
}

.nav-link.active::after {
    width: 60%;
}

/* Touch-friendly taps on mobile */
@media (max-width: 768px) {
    a, button {
        -webkit-tap-highlight-color: rgba(64, 224, 208, 0.2);
    }

    .service-card:hover {
        transform: none;
    }
}
