/* Custom styles for White's Mobile Auto Glass */

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

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

::-webkit-scrollbar-track {
    background: #0a1628;
}

::-webkit-scrollbar-thumb {
    background: #1e3a5f;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #c8a44e;
}

/* Selection color */
::selection {
    background: rgba(200, 164, 78, 0.3);
    color: #fff;
}

/* Hero image animation */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Service card hover effects */
.service-card {
    transform: translateY(0);
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease, background 0.4s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* Navbar scroll state */
header.scrolled {
    background: rgba(10, 22, 40, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Mobile menu animations */
.mobile-link {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#mobile-menu.open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

#mobile-menu.open .mobile-link:nth-child(1) { transition-delay: 0.05s; }
#mobile-menu.open .mobile-link:nth-child(2) { transition-delay: 0.1s; }
#mobile-menu.open .mobile-link:nth-child(3) { transition-delay: 0.15s; }
#mobile-menu.open .mobile-link:nth-child(4) { transition-delay: 0.2s; }
#mobile-menu.open .mobile-link:nth-child(5) { transition-delay: 0.25s; }

/* Hamburger animation */
.menu-line {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

#menu-btn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

#menu-btn.active .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 1.5rem;
}

/* Fade in on scroll */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Stagger children */
.fade-in.stagger > * {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

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

.fade-in.stagger.visible > *:nth-child(1) { transition-delay: 0.05s; }
.fade-in.stagger.visible > *:nth-child(2) { transition-delay: 0.1s; }
.fade-in.stagger.visible > *:nth-child(3) { transition-delay: 0.15s; }
.fade-in.stagger.visible > *:nth-child(4) { transition-delay: 0.2s; }
.fade-in.stagger.visible > *:nth-child(5) { transition-delay: 0.25s; }
.fade-in.stagger.visible > *:nth-child(6) { transition-delay: 0.3s; }

/* Select styling */
select option {
    background: #1e3a5f;
    color: #fff;
}

/* Form input focus animation */
input:focus, textarea:focus, select:focus {
    background: rgba(255, 255, 255, 0.08);
}

/* Gold accent line animation */
@keyframes expandWidth {
    from { width: 0; }
    to { width: 3rem; }
}

/* Button ripple effect */
button, a {
    position: relative;
    overflow: hidden;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .service-card:hover {
        transform: none;
    }
}
