/* Custom styles for Orellanas Tires Shop */

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

/* Custom animations */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-12px) rotate(2deg); }
}

@keyframes float-delayed {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-8px) rotate(-2deg); }
}

.hero-shape {
    animation: float 6s ease-in-out infinite;
}

.hero-shape2 {
    animation: float-delayed 8s ease-in-out infinite;
}

/* Scroll-triggered animations */
.service-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.service-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animation delays for service cards */
.service-card:nth-child(1) { transition-delay: 0.05s; }
.service-card:nth-child(2) { transition-delay: 0.1s; }
.service-card:nth-child(3) { transition-delay: 0.15s; }
.service-card:nth-child(4) { transition-delay: 0.2s; }
.service-card:nth-child(5) { transition-delay: 0.25s; }
.service-card:nth-child(6) { transition-delay: 0.3s; }

/* Navbar scroll state */
.nav-scrolled {
    background: rgba(250, 250, 245, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(45, 84, 45, 0.08);
}

/* Selection color */
::selection {
    background: #9dc49d;
    color: #1c361c;
}

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

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

::-webkit-scrollbar-thumb {
    background: #9dc49d;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #6fa36f;
}

/* Focus visible styles */
*:focus-visible {
    outline: 2px solid #4d8a4d;
    outline-offset: 2px;
}

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

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

/* Subtle hover tilt on cards */
.service-card:hover {
    transform: translateY(-4px) !important;
}

/* Ensure images don't cause layout shift */
img {
    max-width: 100%;
    height: auto;
}
