/* Custom Styles & Animations for SparkClean Sweden */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Utility Animation Classes */
.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out both;
}

.animate-slide-in-left {
    animation: slideInLeft 0.6s ease-out both;
}

.animate-fade-in {
    animation: fadeIn 0.8s ease-out both;
}

/* Before / After Slider Container */
.slider-container {
    position: relative;
    width: 100%;
    height: 450px;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.slider-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.img-before {
    z-index: 10;
}

.img-after {
    z-index: 5;
}

/* Slider Handle Bar */
.slider-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #FECB00; /* Swedish Yellow */
    left: 50%;
    z-index: 20;
    cursor: ew-resize;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

/* Slider Handle Button */
.slider-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    background: #005293; /* Swedish Blue */
    border: 3px solid #FECB00;
    border-radius: 50%;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    pointer-events: none;
    transition: background 0.3s ease;
}

/* Sticky Header Accent */
.nav-active {
    color: #005293 !important;
    border-bottom: 2px solid #FECB00;
}

/* Cookie Consent Bar */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    max-width: 600px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    z-index: 99999;
    border-radius: 12px;
    transform: translateY(150%);
    transition: transform 0.5s ease-out;
}

.cookie-banner.show {
    transform: translateY(0);
}
