:root {
    --display-font: 'Plus Jakarta Sans', sans-serif;
    --sans-font: 'Inter', sans-serif;
}

/* Semua transisi lebih cepat */
.duration-300 { transition-duration: 150ms !important; }

.promo-bar {
    background-color: #1A5FB4;
    color: rgb(255, 255, 255);
    text-align: center;
    padding: 12px 0;
    /* Padding for height, horizontal padding by marquee */
    font-size: 14px;
    font-weight: 600;
    position: relative;
    z-index: 100;
    overflow: hidden;
    white-space: nowrap;
}

.animate-marquee {
    display: inline-block;
    animation: marquee 30s linear infinite;
}

@keyframes slideDownPromo {
    from {
        opacity: 0;
        transform: translateY(-15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-promo-slide {
    animation: slideDownPromo 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

body {
    font-family: var(--sans-font);
    background-color: #fcfdfd;
    color: #334155;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Dark mode khusus untuk body berdasarkan pilihan sebelumnya */
.dark body {
    background-color: #080e16;
    color: #f1f5f9;
}

.font-display {
    font-family: var(--display-font);
}

/* Header Glassmorphism */
.header-sticky {
    position: sticky;
    top: 0;
    z-index: 50;
    background-color: transparent;
    backdrop-filter: blur(0px);
    border-bottom: 1px solid transparent;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.header-sticky.scrolled {
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

.dark .header-sticky {
    background-color: transparent;
    border-bottom: 1px solid transparent;
}

.dark .header-sticky.scrolled {
    background-color: rgba(8, 14, 22, 0.85);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2), 0 2px 4px -1px rgba(0, 0, 0, 0.1);
}

/* Navigation Underline Effect */
.nav-link-underline {
    position: relative;
    padding-bottom: 4px;
}

.nav-link-underline::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: rgb(255, 174, 0);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dark .nav-link-underline::after {
    background-color: white;
}

.nav-link-underline:hover::after {
    width: 100%;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-150px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.7);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.4s ease-out forwards;
}

.animate-fade-in-right {
    animation: fadeInRight 0.4s ease-out forwards;
}

.animate-fade-in-down {
    animation: fadeInDown 0.4s ease-in-out forwards;
}

.animate-zoom-in {
    animation: zoomIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* WA Price Badge */
.wa-price-badge {
    background-color: #def6e5;
    border-radius: 16px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    transition: all 0.3s ease;
}

.wa-price-badge .material-symbols-outlined {
    font-size: 15px;
    color: #166534;
}

.wa-price-badge .price-val {
    font-weight: 800;
    font-size: 1rem;
    color: #166534;
}

.wa-price-badge .label-text {
    margin-left: auto;
    font-size: 11px;
    font-weight: 600;
    color: #15803d;
    opacity: 0.8;
}

/* Dark Mode adjustment for badge */
.dark .wa-price-badge {
    background-color: #0d2e1a;
}

.dark .wa-price-badge .price-val,
.dark .wa-price-badge .material-symbols-outlined {
    color: #4ade80;
}

.dark .wa-price-badge .label-text {
    color: #86efac;
}

/* Other animations... */
#lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    cursor: zoom-out;
}

#lightbox.active {
    display: flex;
}

#lightbox img {
    max-width: 90%;
    max-height: 85vh;
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    opacity: 0;
}

#lightbox.active img {
    animation: zoomIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

#lightbox-close {
    position: absolute;
    top: 30px;
    right: 30px;
    color: white;
    cursor: pointer;
    font-size: 40px;
    transition: transform 0.3s ease;
}

#lightbox-close:hover {
    transform: rotate(90deg);
}

/* Background Grid Decorator */
.grid-bg {
    opacity: 0.03;
    background-image: linear-gradient(#000 1px, transparent 1px), linear-gradient(90deg, #000 1px, transparent 1px);
    background-size: 40px 40px;
}

.dark .grid-bg {
    opacity: 0.05;
    background-image: linear-gradient(#fff 1px, transparent 1px), linear-gradient(90deg, #fff 1px, transparent 1px);
}

/* Media Card Effects */
.media-card {
    transition: transform 0.5s;
}

.media-card:hover {
    transform: scale(1.02);
}

/* Feature Card Hover Effect */
.feature-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    padding: 1.5rem;
    border-radius: 1.5rem;
}

.feature-card:hover {
    background-color: rgb(255, 255, 255);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    transform: translateY(-8px);
}

.dark .feature-card:hover {
    background-color: rgba(30, 41, 59, 0.5);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.feature-card:hover .rounded-full {
    background-color: #1A5FB4;
    color: white;
}

.feature-card .rounded-full {
    transition: all 0.3s ease;
}

/* FAQ Interaction */
.faq-content {
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

/* Lenis Recommended CSS */
html.lenis,
html.lenis body {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

.lenis.lenis-smooth iframe {
    pointer-events: none;
}

/* Testimonials Infinite Scroll */
.testimonials-track {
    display: flex;
    gap: 1.5rem;
    width: max-content;
    animation: infiniteScroll 30s linear infinite;
    padding: 1rem 0;
}

@keyframes infiniteScroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(calc(-50% - 0.75rem));
    }
}

.testimonials-track:hover {
    animation-play-state: paused;
}

.testimonial-card {
    width: 320px;
    height: 420px;
    position: relative;
    border-radius: 1.5rem;
    overflow: hidden;
    flex-shrink: 0;
}

.testimonial-card img,
.testimonial-card video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
}

.testimonial-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 20%, rgba(0, 0, 0, 0.8) 100%);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: white;
}

.testi-text {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    opacity: 0.9;
    font-weight: 500;
}

.testi-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.testi-info h4 {
    font-weight: 700;
    font-size: 0.9rem;
}

.testi-info p {
    font-size: 0.75rem;
    opacity: 0.7;
}

.platform-mini-badge {
    padding: 0.3rem 0.6rem;
    border-radius: 0.5rem;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
}

.platform-shopee {
    background: #ee4d2d;
    color: white;
}

.platform-tokopedia {
    background: #03ac0e;
    color: white;
}

.platform-wa {
    background: #25d366;
    color: white;
}

/* Hide scrollbars but keep functionality */
.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Navigation buttons (hidden for auto-scroll) */
.nav-hidden {
    display: none !important;
}

/* Marquee Animation for Mobile Trust Info */
@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.animate-marquee {
    display: flex;
    width: max-content;
    animation: marquee 80s linear infinite;
}

.animate-marquee-fast {
    display: flex;
    width: max-content;
    animation: marquee 20s linear infinite;
}

.animate-marquee:hover {
    animation-play-state: paused;
}

/* Custom Modal Scrollbar */
.custom-modal-scroll::-webkit-scrollbar {
    width: 6px;
}

.custom-modal-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.custom-modal-scroll::-webkit-scrollbar-thumb {
    background-color: rgba(148, 163, 184, 0.3);
    border-radius: 20px;
}

.custom-modal-scroll::-webkit-scrollbar-thumb:hover {
    background-color: rgba(148, 163, 184, 0.5);
}

.dark .custom-modal-scroll::-webkit-scrollbar-thumb {
    background-color: rgba(100, 116, 139, 0.3);
}

/* Cover card in modal */
.modal-cover-card {
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.modal-cover-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px -6px rgba(0, 0, 0, 0.15);
}

.modal-cover-card.selected {
    box-shadow: 0 0 0 3px #1A5FB4;
    transform: translateY(-2px);
}

.modal-cover-card .cover-check {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.2s ease;
    z-index: 10;
}

.modal-cover-card.selected .cover-check {
    opacity: 1;
    transform: scale(1);
}

/* Success toast animation */
@keyframes slideInUp {
    from {
        transform: translateY(100%) translateX(-50%);
        opacity: 0;
    }

    to {
        transform: translateY(0) translateX(-50%);
        opacity: 1;
    }
}

@keyframes slideOutDown {
    from {
        transform: translateY(0) translateX(-50%);
        opacity: 1;
    }

    to {
        transform: translateY(100%) translateX(-50%);
        opacity: 0;
    }
}

.toast-in {
    animation: slideInUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.toast-out {
    animation: slideOutDown 0.3s ease-in forwards;
}

/* Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Logo Mengantar Styling */
.logo-mengantar {
    filter: brightness(0) saturate(100%) invert(24%) sepia(89%) saturate(1588%) hue-rotate(222deg) brightness(91%) contrast(100%);
    transition: all 0.3s ease;
}

.dark .logo-mengantar {
    filter: brightness(0) invert(1);
    opacity: 0.7;
}