/* Custom styles and animations for R-Mart Auto Repair */

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

/* Fade-in animation for hero elements */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scrollLine {
    0%, 100% {
        opacity: 0.4;
        transform: scaleY(1);
    }
    50% {
        opacity: 0.1;
        transform: scaleY(0.5);
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.animate-fadeIn {
    animation: fadeInUp 0.8s ease-out forwards;
}

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

/* Service card hover effect */
.service-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

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

/* Navbar scroll behavior */
.nav-scrolled {
    background: rgba(10, 13, 10, 0.95) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(45, 84, 45, 0.2);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Gold gradient text */
.text-gold-gradient {
    background: linear-gradient(135deg, #e8d5a3, #c9a84c, #b8943f);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

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

::-webkit-scrollbar-thumb {
    background: #2d542d;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #3a6b3a;
}

/* Selection color */
::selection {
    background: rgba(45, 84, 45, 0.4);
    color: #f5f0e8;
}

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

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

/* Focus visible styles */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #6fa86f;
    outline-offset: 2px;
}

/* Intersection observer reveal animation */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Subtle gold shimmer on hover for CTA buttons */
.cta-shimmer {
    position: relative;
    overflow: hidden;
}

.cta-shimmer::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(201, 168, 76, 0.1),
        transparent
    );
    transition: left 0.5s ease;
}

.cta-shimmer:hover::after {
    left: 100%;
}

/* Map dark mode override */
iframe[title*="map"] {
    border-radius: 0 0 1rem 1rem;
}
