/* =========================================================
   Versail Cleaning Services - Custom Stylesheet
   ========================================================= */

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleUp {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.animate-fadeIn {
  animation: fadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-scaleUp {
  animation: scaleUp 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Custom Selection */
::selection {
  background-color: #009ee2;
  color: #ffffff;
}

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

/* Navigation link active underline indicator */
.nav-link.active {
  color: #0f172a;
  font-weight: 800;
}

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1rem;
  height: 2px;
  background-color: #009ee2;
  border-radius: 9999px;
}

/* Range input styling for Before & After comparison */
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 40px;
  height: 40px;
  cursor: ew-resize;
}

input[type="range"]::-moz-range-thumb {
  width: 40px;
  height: 40px;
  cursor: ew-resize;
}

/* Header transition when scrolled */
#nav-container.scrolled {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  box-shadow: 0 20px 25px -5px rgba(15, 23, 42, 0.12), 0 8px 10px -6px rgba(15, 23, 42, 0.12);
}

/* Custom Scrollbar for modals */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* =========================================
   PARTNERS AUTO-SLIDER
========================================= */

.partners-slider {
    width: 100%;
    overflow: hidden;
    position: relative;
}

/* =========================================
   EDGE FADE EFFECT
========================================= */

.partners-slider::before,
.partners-slider::after {
    content: "";
    position: absolute;
    top: 0;
    width: 80px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.partners-slider::before {
    left: 0;
    background: linear-gradient(
        to right,
        #f8fafc,
        transparent
    );
}

.partners-slider::after {
    right: 0;
    background: linear-gradient(
        to left,
        #f8fafc,
        transparent
    );
}


/* =========================================
   MOVING TRACK
========================================= */

.partners-track {
    display: flex;
    width: max-content;
    gap: 20px;

    animation: partnersScroll 30s linear infinite;

    will-change: transform;
}


/* Pause animation when mouse is over slider */
.partners-slider:hover .partners-track {
    animation-play-state: paused;
}


/* =========================================
   PARTNER CARD
========================================= */

.partner-card {
    width: 190px;
    min-width: 190px;
    height: 155px;

    padding: 18px;

    border-radius: 16px;

    background: #ffffff;

    border: 1px solid rgba(226, 232, 240, 0.9);

    box-shadow: 0 2px 5px rgba(15, 23, 42, 0.04);

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: center;

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;

    flex-shrink: 0;
}


/* =========================================
   CARD HOVER
========================================= */

.partner-card:hover {
    transform: translateY(-6px);

    box-shadow:
        0 10px 25px rgba(15, 23, 42, 0.10);
}


/* =========================================
   PARTNER LOGO
========================================= */

.partner-logo {
    width: 180px;
    height: 100px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 12px;

    overflow: hidden;
}


/* Logo image */

.partner-logo img {
    width: 100%;
    height: 100%;

    object-fit: contain;

    display: block;

    transition:
        transform 0.3s ease;
}


/* Logo hover */

.partner-card:hover .partner-logo img {
    transform: scale(1.08);
}


/* =========================================
   PARTNER NAME
========================================= */

.partner-name {
    font-size: 14px;

    font-weight: 900;

    color: #0f172a;

    line-height: 1.2;

    letter-spacing: -0.2px;
}


/* =========================================
   PARTNER DESCRIPTION
========================================= */

.partner-description {
    margin-top: 5px;

    font-size: 10px;

    font-weight: 600;

    color: #94a3b8;

    text-transform: uppercase;

    letter-spacing: 0.08em;
}


/* =========================================
   INFINITE AUTO-SCROLL
========================================= */

@keyframes partnersScroll {

    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(calc(-50% - 10px));
    }

}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 640px) {

    .partners-track {
        gap: 14px;

        animation-duration: 25s;
    }


    .partner-card {
        width: 160px;

        min-width: 160px;

        height: 140px;

        padding: 15px;
    }


    .partner-logo {
        width: 105px;

        height: 60px;

        margin-bottom: 10px;
    }


    .partner-name {
        font-size: 12px;
    }


    .partner-description {
        font-size: 9px;
    }


    .partners-slider::before,
    .partners-slider::after {
        width: 40px;
    }

}


/* =========================================
   VERY SMALL SCREENS
========================================= */

@media (max-width: 380px) {

    .partner-card {
        width: 145px;

        min-width: 145px;

        height: 135px;
    }


    .partner-logo {
        width: 95px;

        height: 55px;
    }

}


/* =========================================
   REDUCE MOTION ACCESSIBILITY
========================================= */

@media (prefers-reduced-motion: reduce) {

    .partners-track {
        animation: none;
    }

}