/* Custom Styles for Bimbel PRIME - Optimized for Desktop & Android Mobile */
:root {
  --primary-blue: #0f4c81;
  --secondary-blue: #1d72b8;
  --accent-gold: #f59e0b;
  --dark-blue: #0a2540;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  -webkit-tap-highlight-color: transparent;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  touch-action: manipulation;
}

/* Smooth Android momentum scrolling */
* {
  -webkit-overflow-scrolling: touch;
}

/* Glassmorphism & Modern Shadows */
.glass-nav {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.hero-gradient {
  background: linear-gradient(135deg, #0a2540 0%, #0f4c81 50%, #1e3a8a 100%);
}

.gradient-blue-text {
  background: linear-gradient(135deg, #0f4c81 0%, #2563eb 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Smooth Card Hover & Mobile Active Feedback */
.card-hover {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, box-shadow;
}

@media (hover: hover) and (pointer: fine) {
  .card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 24px -4px rgba(15, 76, 129, 0.12), 0 6px 12px -4px rgba(15, 76, 129, 0.06);
  }
}

/* Android touch feedback: subtle press */
.card-hover:active,
.btn-press:active {
  transform: scale(0.985);
  transition: transform 0.1s ease;
}

/* Pulse badge animation */
@keyframes pulse-soft {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.04);
    opacity: 0.92;
  }
}

.pulse-soft {
  animation: pulse-soft 2.5s infinite ease-in-out;
}

/* Floating WhatsApp Button Animation with GPU Acceleration */
@keyframes pulse-ring {
  0% {
    transform: scale(0.96) translateZ(0);
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6);
  }
  70% {
    transform: scale(1) translateZ(0);
    box-shadow: 0 0 0 14px rgba(37, 211, 102, 0);
  }
  100% {
    transform: scale(0.96) translateZ(0);
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

.wa-pulse-btn {
  animation: pulse-ring 2.2s infinite;
  will-change: transform, box-shadow;
}

.wa-pulse-btn:active {
  transform: scale(0.92) !important;
  transition: transform 0.15s ease;
}

/* Smooth Android Mobile Menu Transitions */
#mobile-menu {
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease, transform 0.25s ease;
  transform-origin: top center;
}

#mobile-menu.menu-closed {
  max-height: 0 !important;
  opacity: 0 !important;
  pointer-events: none;
  overflow: hidden;
  transform: scaleY(0.95);
}

#mobile-menu.menu-open {
  max-height: 500px !important;
  opacity: 1 !important;
  pointer-events: auto;
  overflow: visible;
  transform: scaleY(1);
}

/* Mobile inputs: 16px font on mobile prevents Android & iOS auto-zoom */
@media (max-width: 640px) {
  input, select, textarea {
    font-size: 16px !important;
  }
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Lightbox & Registration Modal Animations */
.modal-overlay {
  background-color: rgba(7, 43, 84, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: opacity 0.25s ease;
}

.modal-content-animated {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
}

/* Smooth Tab Transitions */
.tab-content-active {
  display: block;
  animation: fadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hide scrollbar for horizontal mobile rails */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

