/* ==========================================================================
   EDUTIME INDONESIA - ULTRA SMOOTH UI ENHANCEMENTS
   ========================================================================== */

/* 1. Global Smoothness & Font Optimization */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* 2. Hardware Acceleration for Specific Elements */
.floating-wa-smooth {
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform: translateZ(0);
}

/* 3. Smooth Button Interactions */
a.elementor-button,
.elementor-button,
button,
.btn-smooth {
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
  will-change: transform, box-shadow;
}

a.elementor-button:hover,
.elementor-button:hover,
button:hover {
  transform: translateY(-3px) scale(1.02) !important;
  box-shadow: 0 10px 25px -5px rgba(243, 189, 4, 0.45) !important;
}

a.elementor-button:active,
.elementor-button:active,
button:active {
  transform: translateY(-1px) scale(0.99) !important;
}

/* 4. Smooth Course / Program Cards */
.elementor-widget-image-box,
.elementor-widget-icon-box,
.elementor-widget-pricing,
.elementor-column-wrap,
.elementor-widget-container:has(img) {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* Image hover zoom inside containers */
.elementor-widget-image img,
.elementor-image img {
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), filter 0.5s ease !important;
  will-change: transform;
}

.elementor-widget-image:hover img,
.elementor-image:hover img {
  transform: scale(1.04) !important;
}

/* 5. Smooth Scroll-Triggered Reveal Animations */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

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

/* Staggered delay for grid items */
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* 6. Floating Action WhatsApp Smooth Animation */
@keyframes floatBob {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-6px) scale(1.03);
  }
}

.floating-wa-smooth {
  animation: floatBob 3.5s ease-in-out infinite;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
}

.floating-wa-smooth:hover {
  animation-play-state: paused;
  transform: scale(1.12) rotate(4deg);
  box-shadow: 0 15px 35px rgba(37, 211, 102, 0.6);
}

/* 7. Smooth Modal Animations */
@keyframes modalBackdropFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modalContentPop {
  from {
    opacity: 0;
    transform: scale(0.92) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modal-animate-backdrop {
  animation: modalBackdropFade 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.modal-animate-content {
  animation: modalContentPop 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* 8. Sticky Header Smooth Blur Transition */
#main-header.is-scrolled {
  background-color: rgba(255, 255, 255, 0.96) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.08) !important;
  padding-top: 10px !important;
  padding-bottom: 10px !important;
}

/* 9. CMS Admin Quick Badge */
.edutime-cms-admin-badge {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 9999;
  background: rgba(33, 37, 41, 0.92);
  backdrop-filter: blur(8px);
  color: #ffffff;
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.edutime-cms-admin-badge:hover {
  background: #F3BD04;
  color: #212529;
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 12px 28px rgba(243, 189, 4, 0.4);
}
