/* Custom styles for Americana Auto Tires & Auto Dealers */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #F5F0F3;
}
::-webkit-scrollbar-thumb {
    background: #D4BFCB;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #B894A8;
}

/* Navbar transitions */
.nav-logo-text {
    transition: color 0.3s ease;
}
.nav-link {
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #7B3F5B, #E88832);
    transition: width 0.3s ease;
    border-radius: 1px;
}
.nav-link:hover::after {
    width: 100%;
}

/* Navbar scrolled state */
nav.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(123, 63, 91, 0.08);
}
nav.scrolled .nav-logo-text {
    color: #5A2A3D;
}
nav.scrolled .nav-link {
    color: #7B3F5B;
}

/* Hero animations */
.hero-content {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}
.hero-image {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease 0.2s forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Service card hover effect */
.service-card {
    opacity: 0;
    transform: translateY(20px);
}
.service-card.visible {
    animation: cardAppear 0.5s ease forwards;
}
.service-card:nth-child(1).visible { animation-delay: 0.05s; }
.service-card:nth-child(2).visible { animation-delay: 0.1s; }
.service-card:nth-child(3).visible { animation-delay: 0.15s; }
.service-card:nth-child(4).visible { animation-delay: 0.2s; }
.service-card:nth-child(5).visible { animation-delay: 0.25s; }
.service-card:nth-child(6).visible { animation-delay: 0.3s; }

@keyframes cardAppear {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* About image animation */
.about-image {
    opacity: 0;
    transform: translateX(-30px);
}
.about-image.visible {
    animation: slideInLeft 0.7s ease forwards;
}

@keyframes slideInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Mobile menu */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}
#mobile-menu.open {
    max-height: 400px;
    padding: 0;
}
.mobile-nav-link {
    position: relative;
    padding-left: 0;
    transition: padding-left 0.2s ease;
}
.mobile-nav-link:hover {
    padding-left: 12px;
    color: #7B3F5B;
}

/* Floating elements animation */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}
.absolute.-bottom-6.-left-6 {
    animation: float 4s ease-in-out infinite;
}
.absolute.-top-4.-right-4 {
    animation: float 3.5s ease-in-out 0.5s infinite;
}

/* Focus styles */
input:focus, select:focus, textarea:focus {
    outline: none;
}

/* Selection */
::selection {
    background: #D4BFCB;
    color: #5A2A3D;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .font-serif.text-5xl {
        font-size: 2.75rem;
    }
}
