/* Custom styles for J.Sombke Motorcycle Repair */

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

/* Base styles */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Navigation scroll effect */
.nav.scrolled {
    box-shadow: 0 1px 0 rgba(10, 37, 64, 0.05);
}

/* Hamburger animation */
#menuToggle.active .hamburger-line:nth-child(1) {
    top: 50%;
    transform: rotate(45deg);
}

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

#menuToggle.active .hamburger-line:nth-child(3) {
    top: 50%;
    transform: rotate(-45deg);
    width: 24px;
    left: 50%;
    transform: translateX(-50%) rotate(-45deg);
}

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

.mobile-menu.hidden {
    animation: slideUp 0.2s ease-in;
}

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

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

/* Service card hover */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #7dd3c0, transparent);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.service-card:hover::before {
    opacity: 1;
}

/* Gallery hover */
.gallery-item {
    position: relative;
    overflow: hidden;
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(10, 37, 64, 0);
    transition: background 0.3s ease;
}

.gallery-item:hover::after {
    background: rgba(10, 37, 64, 0.1);
}

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

/* Subtle line animations */
.line-anim {
    position: relative;
    overflow: hidden;
}

.line-anim::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #7dd3c0, transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.line-anim:hover::after {
    transform: translateX(100%);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .service-card,
    .gallery-item img,
    .nav-link,
    a {
        transition: none;
    }
    
    .mobile-menu {
        animation: none;
    }
}

/* Image aspect ratio utilities */
.aspect-custom-4-5 {
    aspect-ratio: 4 / 5;
}

/* Subtle text selection color */
::selection {
    background: rgba(125, 211, 192, 0.3);
    color: #0a2540;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 6px;
}

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

::-webkit-scrollbar-thumb {
    background: #7dd3c0;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #99f6e0;
}

/* Mobile menu link active state */
.mobile-menu-link:hover {
    padding-left: 8px;
    transition: padding-left 0.2s ease;
}
