@tailwind base;
@tailwind components;
@tailwind utilities;

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}
.dark .service-card:hover {
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.1);
}
.testimonial-card {
    backdrop-filter: blur(10px);
}
.transition-all {
    transition: all 0.3s ease;
}

/* Scroll Animation */
.scroll-animate {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.scroll-animate.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Before/After Slider */
.comparison-slider {
    position: relative;
    width: 100%;
    max-width: 700px; /* Control max size */
    margin: auto;
    overflow: hidden;
    border-radius: 0.5rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}
.comparison-slider img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.comparison-slider .top-image {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    clip-path: polygon(0 0, 50% 0, 50% 100%, 0 100%);
}
.comparison-slider .slider-handle {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background-color: white;
    cursor: ew-resize;
    display: flex;
    align-items: center;
    justify-content: center;
}
.comparison-slider .slider-handle .handle-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: white;
    color: #ce198e; /* primary color */
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

/* Lightbox Modal */
.lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.85);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.lightbox-modal.is-visible {
    opacity: 1;
    visibility: visible;
}
.lightbox-modal img {
    max-width: 90%;
    max-height: 80%;
    border-radius: 0.5rem;
}
.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    color: white;
    cursor: pointer;
}

/* Pagination Styles */
.pagination-btn {
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    border-radius: 0.375rem;
    font-weight: 600;
    transition: background-color 0.2s, color 0.2s;
}
.pagination-btn.active {
    background-color: #ce198e; /* primary color */
    color: white;
}
.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}