/* How2 Studio Custom Styles */

/* Base & Typography */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  color: #191c21;
  background-color: #f9f9ff;
  overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f2f3fb;
}
::-webkit-scrollbar-thumb {
  background: #cac3d9;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #5e17eb;
}

/* Animations */
@keyframes floatGentle {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-6px); }
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 15px rgba(94, 23, 235, 0.3); }
  50% { box-shadow: 0 0 25px rgba(94, 23, 235, 0.6); }
}

.floating-element {
  animation: floatGentle 4s ease-in-out infinite;
}

.glow-purple {
  animation: pulseGlow 3s infinite;
}

@media (prefers-reduced-motion: reduce) {
  .floating-element, .glow-purple {
    animation: none !important;
  }
}

/* Modal Backdrop Blur and Transitions */
.modal-backdrop {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease-out;
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  transform: scale(0.95) translateY(10px);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease-out;
}

.modal-backdrop.active .modal-card {
  transform: scale(1) translateY(0);
}

/* WhatsApp Floating Button & Tooltip */
.whatsapp-widget {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.whatsapp-widget:hover {
  transform: scale(1.05);
}

/* Glassmorphism helpers */
.glass-header {
  background: rgba(249, 249, 255, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.glass-dark {
  background: rgba(45, 48, 54, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

/* Toast Notifications */
#toast {
  transform: translateY(100px);
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease-out;
}

#toast.show {
  transform: translateY(0);
  opacity: 1;
}
