/* Base Styles */
* { box-sizing: border-box; }
body { overflow-x: hidden; font-family: 'DM Sans', sans-serif; -webkit-font-smoothing: antialiased; }
.font-display { font-family: 'Space Grotesk', sans-serif; }

/* Animations */
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
@keyframes marquee-reverse { 0% { transform: translateX(-50%); } 100% { transform: translateX(0); } }
@keyframes pulse-glow { 0%, 100% { box-shadow: 0 0 20px rgba(0, 168, 204, 0.3); } 50% { box-shadow: 0 0 40px rgba(0, 168, 204, 0.6); } }
@keyframes slide-up { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: translateY(0); } }
@keyframes zoom-in-out { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }
@keyframes best-deal-glow { 0% { box-shadow: 0 0 5px rgba(34, 197, 94, 0.4); } 50% { box-shadow: 0 0 20px rgba(34, 197, 94, 0.8); } 100% { box-shadow: 0 0 5px rgba(34, 197, 94, 0.4); } }
@keyframes text-gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.animate-pulse-glow { animation: pulse-glow 2s ease-in-out infinite; }
.animate-slide-up { animation: slide-up 0.8s ease-out forwards; }
.animate-zoom-in-out { animation: zoom-in-out 2s ease-in-out infinite; }
.animate-best-deal { animation: best-deal-glow 2s ease-in-out infinite; }
.animate-text-gradient {
    background-size: 200% 200%;
    animation: text-gradient 3s ease infinite;
}

.reveal { opacity: 0; transform: translateY(30px); transition: all 0.8s ease-out; }
.reveal.active { opacity: 1; transform: translateY(0); }

/* Component Styles */
.btn-primary { background: linear-gradient(135deg, #FF5733 0%, #FF7B54 100%) !important; color: #FFFFFF !important; text-decoration: none !important; border: none !important; display: inline-block; }
.btn-primary:hover { background: linear-gradient(135deg, #E64525 0%, #FF5733 100%) !important; transform: scale(1.02); }

.glass { background: rgba(255, 255, 255, 0.05); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.1); }

/* Layout Styles */
.sticky-cta { position: fixed; bottom: 0; left: 0; right: 0; z-index: 100; transition: transform 0.3s ease, opacity 0.3s ease; transform: translateY(0); opacity: 1; }
.sticky-cta.hidden-sticky { transform: translateY(100%); opacity: 0; pointer-events: none; }

.marquee-container { overflow: hidden; white-space: nowrap; }
.marquee-content { display: inline-flex; animation: marquee 25s linear infinite; } /* Speed up slightly */
.marquee-content-reverse { display: inline-flex; animation: marquee-reverse 30s linear infinite; }

.sales-notification { position: fixed; bottom: 90px; left: 20px; z-index: 99; max-width: 320px; opacity: 0; transform: translateX(-100%); transition: all 0.5s ease; }
.sales-notification.show { opacity: 1; transform: translateX(0); }

.timeline-step { opacity: 0.2; transform: translateY(20px); transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1); }
.timeline-step.active { opacity: 1; transform: translateY(0); }
.timeline-step.active .timeline-circle { background: #00A8CC; border-color: #00A8CC; box-shadow: 0 0 0 4px rgba(0, 168, 204, 0.2); transform: scale(1.1); }

/* Responsive Adjustments */
@media (max-width: 768px) { 
    .sales-notification { left: 10px; bottom: 100px; max-width: 280px; } 
    .marquee-content, .marquee-content-reverse { animation-duration: 15s; }
}
/* Animasi Modal */
#previewModal.showing {
    display: flex;
    opacity: 1;
}
#previewModal.hiding {
    display: flex;
    opacity: 0;
    pointer-events: none;
}

/* Animasi Zoom In untuk Modal Content */
@keyframes zoom-in {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
.animate-zoom-in {
    animation: zoom-in 0.3s ease-out forwards;
}

/* Hide scrollbar for Chrome, Safari and Opera */
.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
.scrollbar-hide {
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}

/* Active Testimonial State */
.testimonial-slide.active-testimonial {
    transform: scale(1);
    opacity: 1;
}
/* Testimonial Slider - STABLE VERSION */
/* Hide Scrollbar */
.scrollbar-hide::-webkit-scrollbar { display: none; }
.scrollbar-hide { -ms-overflow-style: none; scrollbar-width: none;
scroll-padding: 0 10%; }

/* Card Default State */
.testimonial-card {
    transform: scale(0.85);
    opacity: 0.5;
    filter: blur(3px) grayscale(50%);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Card Active State */
.testimonial-card.is-active {
    transform: scale(1);
    opacity: 1;
    filter: blur(0) grayscale(0);
    z-index: 10;
}

/* Glow Effect */
.testimonial-card.is-active > div {
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 40px rgba(0, 168, 204, 0.2);
}