@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.animate-marquee {
    display: flex;
    width: fit-content;
    animation: marquee 20s linear infinite;
}

body {
    font-family: 'Manrope', sans-serif;
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Card hover effects */
.product-card {
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-4px);
}

/* Button pulse animation */
@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(19, 91, 236, 0.4);
    }

    50% {
        box-shadow: 0 0 0 10px rgba(19, 91, 236, 0);
    }
}

.btn-pulse:hover {
    animation: pulse 1.5s infinite;
}

/* Gradient text */
.gradient-text {
    background: linear-gradient(135deg, #135bec 0%, #6366f1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* =============================================
   MODAL STYLES
   ============================================= */

@keyframes modal-in {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(10px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.animate-modal-in {
    animation: modal-in 0.2s ease-out;
}

/* Variant button active state */
.variant-btn.active {
    border-color: #135bec;
    background-color: rgba(19, 91, 236, 0.05);
}

/* =============================================
   CATEGORY TABS
   ============================================= */

.category-tab {
    flex-shrink: 0;
}

/* Hide scrollbar but keep functionality */
.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

/* =============================================
   CAROUSEL STYLES
   ============================================= */

#carouselTrack {
    transition: transform 0.5s ease-out;
}

.carousel-slide {
    flex-shrink: 0;
    width: 100%;
}

.carousel-dot {
    transition: all 0.3s ease;
}

/* Touch cursor for carousel */
#carouselContainer {
    cursor: grab;
    touch-action: pan-y;
}

#carouselContainer:active {
    cursor: grabbing;
}

/* =============================================
   FLOATING BUTTON
   ============================================= */

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}

.float-animation {
    animation: float 3s ease-in-out infinite;
}

/* =============================================
   RESPONSIVE IMPROVEMENTS
   ============================================= */

@media (max-width: 640px) {
    .product-card {
        padding: 12px;
    }

    #modalContent {
        padding: 16px;
    }
}

/* =============================================
   PRICE TABLE HOVER
   ============================================= */

#priceTable tr {
    transition: background-color 0.15s ease;
}

#priceTable tr:hover td {
    background-color: rgba(19, 91, 236, 0.05);
}

/* Dark mode table hover */
.dark #priceTable tr:hover td {
    background-color: rgba(19, 91, 236, 0.1);
}

/* =============================================
   FAQ ACCORDION
   ============================================= */

.faq-item {
    transition: all 0.2s ease;
}

.faq-item:hover {
    border-color: #135bec;
}

.faq-content {
    animation: faq-expand 0.2s ease-out;
}

@keyframes faq-expand {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.faq-icon {
    transition: transform 0.2s ease;
}

/* =============================================
   MOBILE BOTTOM NAVIGATION
   ============================================= */

@media (max-width: 768px) {

    /* Add padding to body for mobile nav */
    body {
        padding-bottom: 70px;
    }

    /* Hide floating WhatsApp on mobile */
    .fixed.bottom-6.right-6 {
        bottom: 80px;
    }

    /* Adjust back to top position */
    #backToTop {
        bottom: 80px;
        left: 1rem;
    }
}

/* Bottom nav safe area for iOS */
.pb-safe {
    padding-bottom: env(safe-area-inset-bottom, 0);
}

/* =============================================
   BACK TO TOP BUTTON
   ============================================= */

#backToTop {
    transition: all 0.3s ease;
}

#backToTop.opacity-0 {
    pointer-events: none;
}

/* =============================================
   TRUST STATS ANIMATION
   ============================================= */

@keyframes count-up {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.counter {
    animation: count-up 0.5s ease-out;
}

/* =============================================
   TESTIMONI CARDS
   ============================================= */

#testimoni .grid>div {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#testimoni .grid>div:hover {
    transform: translateY(-4px);
}

/* =============================================
   PREMIUM TRUST BADGES
   ============================================= */

.trust-badge {
    transition: all 0.3s ease;
}

.trust-badge:hover {
    transform: translateY(-6px);
}

/* Gradient text fallback */
.trust-badge p.font-black {
    -webkit-background-clip: text;
    background-clip: text;
}

/* Icon hover animation */
.trust-badge .w-16 {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.trust-badge:hover .w-16 {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* =============================================
   VIEW TRANSITION API
   ============================================= */

::view-transition-old(root),
::view-transition-new(root) {
    animation: none;
    mix-blend-mode: normal;
}

/* =============================================
   SKELETON LOADING
   ============================================= */

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

.skeleton {
    background: linear-gradient(90deg,
            rgba(0, 0, 0, 0.06) 25%,
            rgba(0, 0, 0, 0.1) 50%,
            rgba(0, 0, 0, 0.06) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

.dark .skeleton {
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 0.06) 25%,
            rgba(255, 255, 255, 0.1) 50%,
            rgba(255, 255, 255, 0.06) 75%);
    background-size: 200% 100%;
}