/* Custom styles for Indiana Custom Motorcycle */

/* Diagonal clip for hero */
.clip-diagonal-hero {
    clip-path: polygon(25% 0%, 100% 0, 100% 100%, 0% 100%);
}

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0F0F0F;
}
::-webkit-scrollbar-thumb {
    background: #7B1E3C;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #5A152C;
}

/* Service card hover effect */
.service-card {
    position: relative;
    overflow: hidden;
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: #7B1E3C;
    transition: height 0.4s ease;
}
.service-card:hover::before {
    height: 100%;
}

/* Gallery hover */
.gallery-item {
    cursor: pointer;
}

/* Navbar scroll effect */
nav.scrolled {
    background: rgba(15, 15, 15, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Mobile menu animation */
#mobile-menu.active {
    opacity: 1 !important;
    pointer-events: all !important;
}

/* Mobile menu link animation */
.mobile-menu-link {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}
#mobile-menu.active .mobile-menu-link {
    opacity: 1;
    transform: translateY(0);
}
#mobile-menu.active .mobile-menu-link:nth-child(1) { transition-delay: 0.1s; }
#mobile-menu.active .mobile-menu-link:nth-child(2) { transition-delay: 0.2s; }
#mobile-menu.active .mobile-menu-link:nth-child(3) { transition-delay: 0.3s; }
#mobile-menu.active .mobile-menu-link:nth-child(4) { transition-delay: 0.4s; }

/* Hamburger animation */
.menu-line {
    transform-origin: center;
}
#mobile-menu-btn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
#mobile-menu-btn.active .menu-line:nth-child(2) {
    opacity: 0;
}
#mobile-menu-btn.active .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 1.25rem;
}

/* Back to top button */
#back-to-top.visible {
    opacity: 1 !important;
    pointer-events: all !important;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .service-card,
    .gallery-item img,
    .service-card::before {
        transition: none;
    }
    .service-card:hover::before {
        height: 0;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .clip-diagonal-hero {
        clip-path: polygon(0% 0%, 100% 0, 100% 100%, 0% 100%);
    }
    
    #hero h1 {
        font-size: 3.5rem;
    }
    
    #hero h1 span {
        font-size: inherit;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    #hero h1 {
        font-size: 5rem;
    }
}

/* Print styles */
@media print {
    nav, #back-to-top, .gallery-item::before {
        display: none;
    }
    body {
        background: white;
        color: black;
    }
}
