/* Sarraf Dent Custom Styles - Modern Blue & Pink Palette */

@keyframes subtleBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-6px);
    }
}

.animate-bounce-subtle {
    animation: subtleBounce 4s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% {
        opacity: 0.6;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
}

.animate-pulse-glow {
    animation: pulseGlow 6s ease-in-out infinite;
}

/* Glassmorphism effects */
.glass {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.glass-dark {
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

/* Gradient text utilities */
.text-gradient-primary {
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 50%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gradient-pink {
    background: linear-gradient(135deg, #ec4899 0%, #f43f5e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* FAQ transitions */
.faq-content {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.active {
    border-color: #2563eb;
    box-shadow: 0 4px 20px -2px rgba(37, 99, 235, 0.15), 0 0 12px rgba(236, 72, 153, 0.08);
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
    color: #ec4899;
}

/* Smooth transitions for links & buttons */
a, button {
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

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

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

::-webkit-scrollbar-thumb:hover {
    background: #2563eb;
}

/* Before After Comparison Slider Styles */
.ba-slider {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    touch-action: none;
    cursor: ew-resize;
}

.ba-slider img.ba-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
    -webkit-user-select: none;
    display: block;
}

.ba-slider img.ba-after-img {
    z-index: 1;
}

.ba-slider img.ba-before-img {
    z-index: 2;
    clip-path: inset(0 50% 0 0);
    -webkit-clip-path: inset(0 50% 0 0);
    will-change: clip-path;
}

.ba-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 44px;
    margin-left: -22px;
    z-index: 30;
    cursor: ew-resize;
    pointer-events: auto;
    touch-action: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ba-handle-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    background: #ffffff;
    box-shadow: 0 0 12px rgba(37, 99, 235, 0.7), 0 0 6px rgba(236, 72, 153, 0.7);
    pointer-events: none;
}

.ba-handle-button {
    position: relative;
    z-index: 2;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb 0%, #ec4899 100%);
    color: #ffffff;
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.5), 0 2px 10px rgba(236, 72, 153, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #ffffff;
    cursor: ew-resize;
    transition: transform 0.12s ease, box-shadow 0.12s ease;
    touch-action: none;
    pointer-events: none;
}

.ba-handle:hover .ba-handle-button,
.ba-handle:active .ba-handle-button,
.ba-slider.is-dragging .ba-handle-button {
    transform: scale(1.15);
    box-shadow: 0 6px 26px rgba(37, 99, 235, 0.65), 0 4px 16px rgba(236, 72, 153, 0.8);
}

/* Language Switcher Styling */
.lang-btn.active {
    background: #ffffff;
    color: #2563eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.lang-btn:not(.active) {
    color: #64748b;
}

.lang-btn:not(.active):hover {
    color: #1e293b;
}
