/* Font loading optimization with fallbacks */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: local('Inter Light'), local('Inter-Light');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: local('Inter Regular'), local('Inter-Regular');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: local('Inter SemiBold'), local('Inter-SemiBold');
}

@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: local('Montserrat Regular'), local('Montserrat-Regular');
}

@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: local('Montserrat SemiBold'), local('Montserrat-SemiBold');
}

@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: local('Montserrat Bold'), local('Montserrat-Bold');
}

@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: local('Montserrat ExtraBold'), local('Montserrat-ExtraBold');
}

/* Hide scrollbar */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Custom border width for loading spinner */
.border-3 {
    border-width: 3px;
}

/* Page Loader Styles */
#page-loader {
    opacity: 1;
    visibility: visible;
}

#page-loader.fade-out {
    opacity: 0;
    visibility: hidden;
}

/* Animations */
.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shimmer {
    100% {
        transform: translateX(100%);
    }
}

/* Accordion */
.accordion-content {
    transition: max-height 0.3s ease-out, opacity 0.3s ease-out;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
}

.accordion-content.active {
    opacity: 1;
}

/* Timeline Animations */
.timeline-item {
    opacity: 0;
    transition: all 1s ease;
}

.timeline-item.show {
    opacity: 1;
    transform: translateY(0);
}

.slide-left {
    transform: translateX(-50px);
}

.slide-right {
    transform: translateX(50px);
}

.timeline-item.show.slide-left,
.timeline-item.show.slide-right {
    transform: translateX(0);
}

/* Pulse Animation for Timeline Steps */
@keyframes pulse-ring {
    0% {
        transform: scale(0.8);
        opacity: 0.5;
    }

    100% {
        transform: scale(2);
        opacity: 0;
    }
}

.timeline-step-active::before {
    content: '';
    position: absolute;
    left: -5px;
    top: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    border: 2px solid currentColor;
    animation: pulse-ring 2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

/* Lightbox zoom & pan */
.lightbox-zoom-container {
    overflow: hidden;
    touch-action: none;
    cursor: default;
}

.lightbox-zooming {
    cursor: grab;
}

.lightbox-zooming-dragging {
    cursor: grabbing;
}

.lightbox-zoom-controls {
    pointer-events: none;
}

.lightbox-zoom-controls button {
    pointer-events: auto;
}

/* Testimonials Ticker */
@keyframes scroll-ticker {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.testimonial-ticker-wrapper {
    position: relative !important;
    overflow: hidden !important;
    width: 100% !important;
    mask-image: linear-gradient(
        to right,
        transparent 0%,
        black 8%,
        black 92%,
        transparent 100%
    ) !important;
    -webkit-mask-image: linear-gradient(
        to right,
        transparent 0%,
        black 8%,
        black 92%,
        transparent 100%
    ) !important;
}

.testimonial-ticker {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 1.5rem !important;
    width: max-content !important;
    animation: scroll-ticker 35s linear infinite !important;
    padding: 0.5rem 0 !important;
}

.testimonial-ticker:hover {
    animation-play-state: paused !important;
}

.testimonial-card {
    flex-shrink: 0 !important;
    width: 340px !important;
    transition: transform 0.3s ease !important;
}

.testimonial-card:hover {
    transform: translateY(-4px) !important;
}

@media (max-width: 640px) {
    .testimonial-card {
        width: 290px !important;
    }
}

/* Floating Animation for Hero Badge */
@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}