@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bookingPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.15);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(212, 175, 55, 0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.5s ease-out forwards;
}

.booking-banner {
    animation: bookingPulse 3s ease-in-out infinite;
}

.service-card {
    transition: border-color 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
}

.service-card:hover {
    border-color: rgba(212, 175, 55, 0.4);
    transform: translateY(-2px);
    background-color: rgba(29, 29, 29, 0.6);
}

/* Before / After slider */
.ba-slider {
    position: relative;
    overflow: hidden;
    touch-action: none;
    user-select: none;
    aspect-ratio: 4 / 3;
    background: #141414;
}

.ba-slider .ba-img-after,
.ba-slider .ba-img-before {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.ba-slider .ba-img-after {
    position: relative;
    z-index: 1;
}

.ba-slider .ba-before-clip {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 50%;
    overflow: hidden;
    z-index: 2;
    border-right: 3px solid #d4af37;
}

.ba-slider .ba-img-before {
    position: absolute;
    top: 0;
    left: 0;
    max-width: none;
    height: 100%;
    object-fit: cover;
}

.ba-slider .ba-handle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 4;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #d4af37;
    color: #0e0e0e;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
    pointer-events: none;
    font-size: 14px;
}

.ba-slider .ba-range {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: ew-resize;
    z-index: 5;
}

.ba-slider .ba-label {
    position: absolute;
    top: 12px;
    z-index: 3;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 4px 10px;
    border-radius: 6px;
    background: rgba(14, 14, 14, 0.75);
    color: #fff;
    pointer-events: none;
}

.ba-slider .ba-label-before {
    left: 12px;
}

.ba-slider .ba-label-after {
    right: 12px;
}

.ba-slider-hint {
    text-align: center;
    font-size: 11px;
    color: #94a3b8;
    margin-top: 8px;
}

/* Gallery Hover Overlay */
.gallery-item {
    cursor: pointer;
}

.gallery-item .gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(14, 14, 14, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 10;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item .gallery-overlay-icon {
    transform: scale(0.8);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: #d4af37;
    color: #0e0e0e;
    width: 52px;
    height: 52px;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.3);
    font-size: 20px;
}

.gallery-item:hover .gallery-overlay-icon {
    transform: scale(1);
}

/* Lightbox Modal Animation & Styling */
#lightbox {
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s;
    visibility: hidden;
    background-color: rgba(6, 6, 6, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

#lightbox.active {
    visibility: visible;
    opacity: 1;
}

#lightbox-img {
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

#lightbox.active #lightbox-img {
    transform: scale(1);
}

#lightbox-prev, #lightbox-next {
    background: rgba(29, 29, 29, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

#lightbox-prev:hover, #lightbox-next:hover {
    background: rgba(212, 175, 55, 0.2);
    border-color: rgba(212, 175, 55, 0.4);
    color: #d4af37;
}

#lightbox-prev:hover {
    transform: translateY(-50%) scale(1.05);
}

#lightbox-next:hover {
    transform: translateY(-50%) scale(1.05);
}

#lightbox-close {
    background: rgba(29, 29, 29, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

#lightbox-close:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.4);
    color: #ef4444;
    transform: rotate(90deg);
}

/* line clamp helper for old browsers if needed */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;  
    overflow: hidden;
}

/* Swipe styling */
.lightbox-swipe-transition {
    transition: transform 0.25s ease-out, opacity 0.25s ease-out;
}

