/* Custom styles for Shine Auto Detailing */
:root {
    --primary: #ffae2b;
    --primary-dark: #ff9800;
    --primary-light: #f57c00;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #000;
    color: #fff;
    margin: 0;
    overflow-x: hidden;
}

/* Custom Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.reveal {
    opacity: 0;
    transition: all 0.8s ease-out;
}

.reveal.visible {
    opacity: 1;
    transform: translate(0, 0) !important;
}

/* Shine Effect */
.shine-effect {
    position: relative;
    overflow: hidden;
}

.shine-effect::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: skewX(-25deg);
    transition: 0.75s;
}

.shine-effect:hover::after {
    left: 125%;
}

/* Floating Stats Glassmorphism */
.stats-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 1.5rem;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hero-slider img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-slider img.active {
    display: block !important;
    opacity: 0.3 !important;
}

/* Before After Slider */
.before-after-container {
    user-select: none;
}

.before-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Ensure the before image container maintains the full image width for correct clipping */
.before-after-container .before-image img {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.before-after-container .before-image {
    border-right: 2px solid rgba(255, 255, 255, 0.5);
}

/* Logo Marquee Slider */
.logo-slider-container {
    overflow: hidden;
    padding: 20px 0;
    position: relative;
    width: 100%;
}

.logo-track {
    display: flex;
    width: calc(250px * 22); /* Adjust based on logo count * 2 */
    animation: scroll 40s linear infinite;
}

.logo-track:hover {
    animation-play-state: paused;
}

.logo-item {
    width: 250px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 40px;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-250px * 11)); } /* Adjust based on logo count */
}

.logo-item img {
    max-height: 40px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.3;
    transition: all 0.3s ease;
}

.logo-item:hover img {
    opacity: 1;
    transform: scale(1.1);
}

/* CTA Button Glow */
.cta-button {
    box-shadow: 0 0 40px rgba(255, 174, 43, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cta-button:hover {
    box-shadow: 0 0 60px rgba(255, 174, 43, 0.5);
    background-color: #ffb845;
}

.slider-input::-webkit-slider-thumb {
    appearance: none;
    width: 40px;
    height: 100vh;
    cursor: ew-resize;
}

.slider-input::-moz-range-thumb {
    width: 40px;
    height: 100vh;
    cursor: ew-resize;
}

/* FAQ Rotation */
button.active i {
    transform: rotate(180deg);
}

.faq-answer {
    transition: all 0.3s ease-in-out;
}

.hero-slider .bg-gradient-to-b{
    background-image: linear-gradient(0deg, transparent, #0000009e);
}

.before-after-container{
    height: 400px;
}

.before-after-container .before-img-state > img{
    width: auto !important;
    height: 400px;
    object-fit: contain;
    position: absolute;
    left: 110px;
    max-width: none !important;
}

.before-after-container .before-image > img{
    width: auto !important;
    height: 400px !important;
    object-fit: contain;
    position: absolute;
    left: 110px !important;
    
}

@media screen and (max-width: 1200px){
    .before-after-container{
        height: 350px;
    }
    
    .before-after-container .before-img-state > img{
        height: 350px;
    }
    
    .before-after-container .before-image > img{
        height: 350px !important;
        margin-left: 2px;
    }
}

@media screen and (max-width: 1025px){
    .before-after-container{
        height: 300px;
    }
    
    .before-after-container .before-img-state > img{
        height: 300px;
    }
    
    .before-after-container .before-image > img{
        height: 300px !important;
        margin-left: 2px;
    }
}

@media screen and (max-width: 900px){
    .before-after-container{
        height: 280px;
    }
    
    .before-after-container .before-img-state > img{
        height: 280px;
        left: 80px !important;
    }
    
    .before-after-container .before-image > img{
        height: 280px !important;
        margin-left: 2px;
        left: 80px !important;
    }
}

@media screen and (max-width: 768px){
    .before-after-container{
        height: 250px;
    }
    
    .before-after-container .before-img-state > img{
        height: 250px;
        left: 50px !important;
    }
    
    .before-after-container .before-image > img{
        height: 250px !important;
        margin-left: 2px;
        left: 50px !important;
    }
}

@media screen and (max-width: 680px){
    .before-after-container{
        height: 220px;
    }
    
    .before-after-container .before-img-state > img{
        height: 220px;
        left: 50px !important;
    }
    
    .before-after-container .before-image > img{
        height: 220px !important;
        margin-left: 2px;
        left: 50px !important;
    }
}