/* ═══════════════════ PREMIUM UX OVERRIDES ═══════════════════ */

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Glassmorphism Navigation */
@media (max-width: 991px) {
  .navbar.scrolled {
    background: rgba(255, 255, 255, 0.94) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08) !important;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06) !important;
  }
}

/* Button "Liquid" Effect */
.btn-primary {
  position: relative;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.5s ease-out;
  border-radius: 50%;
  pointer-events: none;
}

.btn-primary:active::after {
  transform: translate(-50%, -50%) scale(1);
  opacity: 0;
}

/* Floating Input Effect for Forms */
.contact-form-card input,
.contact-form-card textarea {
  border: 1px solid #e2e8f0;
  transition: all 0.3s ease;
  background: #f8fafc;
}

.contact-form-card input:focus,
.contact-form-card textarea:focus {
  border-color: #3b82f6;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
  outline: none;
}

/* Modern Card Hover */
.machine-card,
.event-card,
.blog-card {
  transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.machine-card:hover {
  background: #ffffff;
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 40px 80px -20px rgba(15, 23, 42, 0.12);
}

/* Smooth Image Entrances */
.rounded-img {
  opacity: 1;
  transform: scale(1);
  transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Premium Typography Spacing */
h1,
h2 {
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.text-gradient {
  background-size: 200% auto;
  animation: shine 3s linear infinite;
}

@keyframes shine {
  to {
    background-position: 200% center;
  }
}

/* ═══════════════════ TOP PROGRESS BAR & SKELETON LOADERS ═══════════════════ */
#top-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3.5px;
  background: linear-gradient(90deg, #2563eb 0%, #3b82f6 50%, #60a5fa 100%);
  box-shadow: 0 0 12px rgba(37, 99, 235, 0.8), 0 0 4px rgba(96, 165, 250, 0.9);
  z-index: 9999999;
  opacity: 0;
  pointer-events: none;
  transition: width 0.25s cubic-bezier(0.1, 0.7, 0.1, 1), opacity 0.3s ease;
}

#top-progress-bar::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100px;
  height: 100%;
  background: linear-gradient(90deg, transparent, #ffffff, transparent);
  box-shadow: 0 0 15px #60a5fa, 0 0 8px #ffffff;
  transform: rotate(3deg) translateY(-2px);
  opacity: 0.8;
}

/* Skeleton Shimmer Loaders for Images & UI Elements */
.skeleton-shimmer-wrapper {
  position: relative !important;
  overflow: hidden !important;
  background-color: #e2e8f0 !important;
  border-radius: inherit;
}

.skeleton-shimmer-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: -150%;
  width: 150%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.65) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  animation: skeleton-sweep 1.4s infinite cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 3;
  pointer-events: none;
}

@keyframes skeleton-sweep {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(200%);
  }
}

img.img-loading {
  opacity: 0 !important;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

img.img-loaded {
  opacity: 1 !important;
}