/* LUCRUM GLOBAL ENHANCEMENTS */

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Scroll Progress Bar */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, #DCB13C, #F5E4A9);
  z-index: 100;
  transition: width 0.1s ease-out;
}

/* Page Loader Overlay */
#page-loader {
  position: fixed;
  inset: 0;
  background-color: #0A1424;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(220, 177, 60, 0.1);
  border-top-color: #DCB13C;
  border-radius: 50%;
  animation: spin 1s cubic-bezier(0.55, 0.055, 0.675, 0.19) infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Back to Top Button */
#back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 46px;
  height: 46px;
  background: rgba(10, 20, 36, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(220, 177, 60, 0.3);
  border-radius: 50%;
  color: #DCB13C;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 90;
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

#back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#back-to-top:hover {
  background: #DCB13C;
  color: #0A1424;
  border-color: #DCB13C;
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(220, 177, 60, 0.3);
}

/* Active Link Glow Underline */
.nav-link-custom {
  position: relative;
}

.nav-link-custom::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #DCB13C;
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 8px rgba(220, 177, 60, 0.6);
}

.nav-link-custom:hover::after,
.nav-link-custom.active::after {
  width: 100%;
}

/* Ripple Click Effect */
.ripple {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  animation: ripple-animation 0.6s linear;
  background-color: rgba(220, 177, 60, 0.35);
  pointer-events: none;
}

@keyframes ripple-animation {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* Card Glow and Tilt */
.premium-card {
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.premium-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(800px circle at var(--mouse-x, 0) var(--mouse-y, 0), rgba(220, 177, 60, 0.05), transparent 40%);
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.premium-card:hover::before {
  opacity: 1;
}

.premium-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(10, 20, 36, 0.08);
  border-color: rgba(220, 177, 60, 0.3) !important;
}

/* Image Zoom */
.zoom-img-container {
  overflow: hidden;
}

.zoom-img-container img {
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.zoom-img-container:hover img {
  transform: scale(1.06);
}

/* Dynamic Inputs Styling */
.form-input-glow {
  transition: all 0.3s ease;
}

.form-input-glow:focus {
  border-color: #DCB13C !important;
  box-shadow: 0 0 0 4px rgba(220, 177, 60, 0.15) !important;
  background-color: #fff !important;
}

/* Form Validation Indicators */
.shake {
  animation: shake 0.4s ease-in-out;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

/* Skeleton Loading Effect */
.skeleton {
  background: linear-gradient(90deg, #f3f4f6 25%, #e5e7eb 50%, #f3f4f6 75%);
  background-size: 200% 100%;
  animation: loading-skeleton 1.5s infinite;
}

@keyframes loading-skeleton {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Frosted Navbar scroll styles */
.navbar-frosted {
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  background-color: rgba(255, 255, 255, 0.85) !important;
  border-bottom: 1px solid rgba(10, 20, 36, 0.05) !important;
}

/* Section Reveal Base */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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