/* Custom styles for 24 Hour Locksmith Albuquerque */

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

/* Body background */
body {
    background-color: #050a18;
}

/* Hero orb animations */
@keyframes float-slow {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

@keyframes float-medium {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-25px, 25px) scale(1.08); }
    66% { transform: translate(15px, -15px) scale(0.92); }
}

@keyframes float-fast {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(20px, -20px); }
}

.animate-float-slow {
    animation: float-slow 12s ease-in-out infinite;
}

.animate-float-medium {
    animation: float-medium 8s ease-in-out infinite;
}

.animate-float-fast {
    animation: float-fast 6s ease-in-out infinite;
}

/* Scroll line animation */
@keyframes scroll-line {
    0% { opacity: 0; transform: scaleY(0); transform-origin: top; }
    50% { opacity: 1; transform: scaleY(1); transform-origin: top; }
    51% { transform-origin: bottom; }
    100% { opacity: 0; transform: scaleY(0); transform-origin: bottom; }
}

.animate-scroll-line {
    animation: scroll-line 2s ease-in-out infinite;
}

/* Scroll reveal animations (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        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);
    }
    
    /* Staggered delays for grid items */
    .service-card.revealed:nth-child(1) { transition-delay: 0.05s; }
    .service-card.revealed:nth-child(2) { transition-delay: 0.1s; }
    .service-card.revealed:nth-child(3) { transition-delay: 0.15s; }
    .service-card.revealed:nth-child(4) { transition-delay: 0.2s; }
    .service-card.revealed:nth-child(5) { transition-delay: 0.25s; }
    .service-card.revealed:nth-child(6) { transition-delay: 0.3s; }
}

/* Navbar glass effect */
.nav-glass {
    background: rgba(5, 10, 24, 0.85) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(52, 211, 153, 0.1);
}

/* Service card shimmer on hover */
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(52, 211, 153, 0.03), transparent);
    transition: left 0.6s ease;
    z-index: 1;
    border-radius: inherit;
}

.service-card:hover::before {
    left: 100%;
}

/* Gold accent glow */
.gold-glow {
    box-shadow: 0 0 30px rgba(251, 191, 36, 0.15);
}

/* Mint glow */
.mint-glow {
    box-shadow: 0 0 30px rgba(52, 211, 153, 0.2);
}

/* Selection color */
::selection {
    background-color: rgba(52, 211, 153, 0.3);
    color: #f0fdf4;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #34d399;
}

/* Select dropdown styling */
select option {
    background-color: #0f2140;
    color: #fff;
}

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

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Focus visible styles */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 2px solid #34d399;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Image lazy loading fade-in */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.5s ease;
}

img[loading="lazy"].loaded {
    opacity: 1;
}
