/* Custom Styles for ELEPHANT CONSULTING S.A.S. */

/* Smooth scroll behaviour is handled via Tailwind HTML class, but we can ensure offset for the sticky header */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 5rem; /* For the fixed header */
}

/* Custom Scrollbar styled closely to the branding */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: #F8FAFC; 
}
::-webkit-scrollbar-thumb {
    background: #64748B; 
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: #0F172A; 
}

/* Glassmorphism utility */
.glass-card {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

/* Base custom classes to be used in intersection observer */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Marquee infinite scroll animation */
@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.animate-marquee {
    animation: marquee 20s linear infinite;
}

/* Pause animation on hover */
.marquee-container:hover .animate-marquee {
    animation-play-state: paused;
}

/* Forms input reset overrides */
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus, 
input:-webkit-autofill:active{
    -webkit-box-shadow: 0 0 0 30px #f8fafc inset !important;
}
