/* ============================================================
   SL Service — Custom Styles
   Animations, glass effects, gradients, scrollbar
   ============================================================ */

/* Google Fonts */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap");

/* Alpine.js cloak — hide until initialized */
[x-cloak] { display: none !important; }

/* Smooth scrolling */
html { scroll-behavior: smooth; }

/* Glassmorphism */
.glass {
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

/* Hero gradient */
.hero-gradient {
  background: linear-gradient(135deg, rgba(220,38,38,0.92) 0%, rgba(185,28,28,0.88) 50%, rgba(153,27,27,0.82) 100%);
}

/* Card hover glow */
.card-glow:hover {
  box-shadow: 0 20px 40px rgba(220, 38, 38, 0.15);
}

/* Gradient text */
.gradient-text {
  background: linear-gradient(135deg, #dc2626, #f87171);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Staggered animation delays */
.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }
.stagger-5 { animation-delay: 0.5s; }
.stagger-6 { animation-delay: 0.6s; }

/* Scrollbar styling */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: #dc2626; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #b91c1c; }

/* Hide scrollbar utility */
.scrollbar-hide { scrollbar-width: none; -ms-overflow-style: none; }
.scrollbar-hide::-webkit-scrollbar { display: none; }

/* Shake animation */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
  20%, 40%, 60%, 80% { transform: translateX(5px); }
}
.shake { animation: shake 0.6s ease-in-out; }

/* Heartbeat */
@keyframes heartbeat {
  0% { transform: scale(1); }
  25% { transform: scale(1.3); }
  50% { transform: scale(1); }
  75% { transform: scale(1.3); }
  100% { transform: scale(1); }
}
.heartbeat { animation: heartbeat 0.6s ease-in-out; }

/* Password strength meter */
.strength-meter { transition: all 0.3s ease; }

/* Service card image zoom */
.service-img { transition: transform 0.3s ease; }
.service-card:hover .service-img { transform: scale(1.05); }

/* Form focus ring */
input:focus, select:focus, textarea:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.2);
}

/* Toast animations */
@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
@keyframes slideOutRight {
  from { transform: translateX(0); opacity: 1; }
  to { transform: translateX(100%); opacity: 0; }
}
.toast-enter { animation: slideInRight 0.3s ease-out; }
.toast-leave { animation: slideOutRight 0.3s ease-in; }

/* YouTube play button overlay */
.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.3);
  opacity: 0;
  transition: opacity 0.2s;
}
.group:hover .play-overlay { opacity: 1; }

/* Typing animation */
.typing-text {
  overflow: hidden;
  white-space: nowrap;
  border-right: 3px solid rgba(255,255,255,0.75);
  animation: typing 3s steps(35) 0.5s forwards, blink 0.75s step-end infinite;
  width: 0;
}
@keyframes typing { from { width: 0; } to { width: 100%; } }
@keyframes blink { 50% { border-color: transparent; } }
