:where([class^="ri-"])::before {
    content: "\f3c2";
}

body {
    font-family: 'Poppins', sans-serif;
    scroll-behavior: smooth;
}

.gradient-bg {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 50%, #bfdbfe 100%);
}

.liver-journey-step {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.liver-journey-step:hover {
    transform: translateY(-8px) scale(1.03);
}

.research-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.research-card:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 25px 50px -12px rgba(59, 130, 246, 0.3);
    border-color: #3b82f6;
}

.hidden {
    display: none;
}

/* Chat Widget Styles */
#chat-widget-button {
    animation: pulse-blue 2s infinite;
}

#chat-widget-window {
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

#chat-widget-messages::-webkit-scrollbar {
    width: 8px;
}

#chat-widget-messages::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 10px;
}

#chat-widget-messages::-webkit-scrollbar-thumb {
    background: #3b82f6;
    border-radius: 10px;
}

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

/* Inline chat button styles */
.inline-chat-button {
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.inline-chat-button:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.4);
}

/* Booking form styles */
#booking-form input.border-red-500 {
    border-color: #ef4444 !important;
}

#booking-form input:focus {
    outline: none;
}

#booking-form button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Enhanced animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

@keyframes pulse-blue {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7);
    }
    50% {
        box-shadow: 0 0 0 15px rgba(59, 130, 246, 0);
    }
}

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

.animate-slide-up {
    animation: slideUp 0.8s ease-out;
}

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

.animate-slide-in-right {
    animation: slideInRight 0.8s ease-out;
}

.animate-scale-in {
    animation: scaleIn 0.5s ease-out;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

.animate-pulse-slow {
    animation: pulse 3s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.animate-gradient {
    background-size: 200% 200%;
    animation: gradient 3s ease infinite;
}

@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Gradient text effect */
.gradient-text {
    background: linear-gradient(135deg, #3b82f6, #2563eb, #60a5fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradient 3s ease infinite;
}

/* Enhanced hover effects */
.hover-lift {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.25);
}

/* Smooth transitions for interactive elements */
.consultation-step,
.research-card,
.faq-btn {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.consultation-step:hover,
.research-card:hover {
    transform: translateY(-8px) scale(1.05);
}

/* Custom scrollbar for better UX */
::-webkit-scrollbar {
    width: 12px;
}

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #3b82f6, #2563eb);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #2563eb, #1e40af);
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .liver-journey-step {
        flex-direction: column !important;
        text-align: center;
    }
    
    .liver-journey-step > div {
        width: 100% !important;
        padding: 0 !important;
        margin-bottom: 1.5rem;
    }
    
    .consultation-step {
        margin-bottom: 1.5rem;
    }
    
    #chat-widget-window {
        width: calc(100vw - 2rem) !important;
        right: 1rem !important;
        bottom: 5rem !important;
        height: calc(100vh - 6rem) !important;
        max-height: 600px;
    }
    
    #chat-widget-button {
        width: 3.5rem;
        height: 3.5rem;
        bottom: 1rem;
        right: 1rem;
    }
    
    .animate-slide-in-left,
    .animate-slide-in-right {
        animation: fadeIn 0.6s ease-out;
    }
}

/* Loading states */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.loading {
    animation: shimmer 2s infinite;
    background: linear-gradient(
        to right,
        #f6f7f8 0%,
        #edeef1 20%,
        #f6f7f8 40%,
        #f6f7f8 100%
    );
    background-size: 1000px 100%;
}

/* Focus states for accessibility */
*:focus-visible {
    outline: 3px solid rgba(59, 130, 246, 0.5);
    outline-offset: 2px;
}

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

/* Enhanced button animations */
button,
a[role="button"] {
    position: relative;
    overflow: hidden;
}

button::before,
a[role="button"]::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

button:hover::before,
a[role="button"]:hover::before {
    width: 300px;
    height: 300px;
}
