/* ==========================================================================
   Samline Garage - Ultra Premium Automotive Styling
   ========================================================================== */

/* 1. Custom Ultra Sleek Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #030305;
}
::-webkit-scrollbar-thumb {
    background: #222230;
    border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
    background: #FF5500;
}

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

/* 2. Header & Navigation Transitions */
#navbar.scrolled {
    background-color: rgba(3, 3, 5, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 10px 35px -10px rgba(0, 0, 0, 0.7);
}
#navbar.scrolled #navbar-inner {
    height: 4.5rem; /* Shrinks on scroll */
    border-color: rgba(255, 255, 255, 0.05);
}

/* Nav Item Underline Accent */
.nav-item::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0%;
    height: 1.5px;
    background: linear-gradient(90deg, #FF5500, #FFA726);
    transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-item:hover::after {
    width: 100%;
}

/* 3. Hero Swiper Styling */
.heroSwiper {
    width: 100%;
    height: 100%;
}
.heroSwiper .swiper-slide {
    overflow: hidden;
}

/* 4. Marquee Infinite Loop */
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.animate-marquee {
    display: flex;
    width: max-content;
    animation: marquee 25s linear infinite;
}
.animate-marquee:hover {
    animation-play-state: paused;
}

/* 5. Service & Feature Cards */
.service-card {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease, box-shadow 0.4s ease;
}
.service-card:hover {
    box-shadow: 0 20px 40px -15px rgba(255, 85, 0, 0.18);
}

/* 6. 3D Projects Coverflow Slider */
.projectsSwiper {
    width: 100%;
    padding-top: 25px;
    padding-bottom: 45px;
}
.projectsSwiper .swiper-slide {
    background-position: center;
    background-size: cover;
    width: 310px;
    height: 460px;
    border-radius: 1.25rem;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.85);
    transition: all 0.4s ease;
}
@media (min-width: 640px) {
    .projectsSwiper .swiper-slide {
        width: 440px;
        height: 530px;
    }
}
.projectsSwiper .swiper-slide-active {
    border-color: rgba(255, 85, 0, 0.6);
    box-shadow: 0 30px 60px -10px rgba(255, 85, 0, 0.4);
}
.projects-pagination .swiper-pagination-bullet {
    width: 24px;
    height: 4px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.2);
    opacity: 1;
    transition: all 0.3s ease;
}
.projects-pagination .swiper-pagination-bullet-active {
    width: 40px;
    background: #FF5500;
    box-shadow: 0 0 15px rgba(255, 85, 0, 0.8);
}

/* 7. FAQ Accordion */
.faq-card {
    transition: border-color 0.3s ease, background-color 0.3s ease;
}
.faq-card.active {
    border-color: rgba(255, 85, 0, 0.4);
    background-color: rgba(14, 14, 22, 0.95);
}
.faq-card.active .faq-icon {
    transform: rotate(45deg);
    background-color: #FF5500;
    color: #ffffff;
    border-color: #FF5500;
}

/* 8. 3D Testimonials Coverflow Slider */
.testimonialSwiper {
    width: 100%;
    padding-top: 25px;
    padding-bottom: 45px;
}
.testimonialSwiper .swiper-slide {
    width: 310px;
    height: 380px;
    border-radius: 1.25rem;
    overflow: hidden;
    transition: all 0.4s ease;
    box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.85);
}
@media (min-width: 640px) {
    .testimonialSwiper .swiper-slide {
        width: 390px;
        height: 400px;
    }
}
.testimonialSwiper .swiper-slide-active > div {
    border-color: rgba(255, 85, 0, 0.6);
    box-shadow: 0 25px 60px -10px rgba(255, 85, 0, 0.35);
}
.testi-pagination .swiper-pagination-bullet {
    width: 24px;
    height: 4px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.2);
    opacity: 1;
    transition: all 0.3s ease;
}
.testi-pagination .swiper-pagination-bullet-active {
    width: 40px;
    background: #FF5500;
    box-shadow: 0 0 15px rgba(255, 85, 0, 0.8);
}

/* 9. Mobile Menu Animation */
#mobile-menu.open {
    display: block;
    animation: slideDown 0.3s ease forwards;
}
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
