/* ==========================================================================
   DST GROUP COMPLETE MOTION & ANIMATION SYSTEM (AWWWARDS EDITION)
   ========================================================================== */

/* ─── 1. TOP SCROLL PROGRESS BAR ───────────────────────── */
#dst-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #e09d37, #78d6df, #e09d37);
  z-index: 999999;
  transform-origin: 0 50%;
  transform: scaleX(0);
  transition: transform 0.1s linear;
  box-shadow: 0 0 10px rgba(224, 157, 55, 0.8);
}

/* ─── 2. CUSTOM CURSOR & LERP ELASTIC RING ────────────────── */
#dst-cursor {
  position: fixed;
  width: 8px;
  height: 8px;
  background: #e09d37;
  border-radius: 50%;
  pointer-events: none !important;
  z-index: 999999;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 12px rgba(224, 157, 55, 0.8), 0 0 4px #ffffff;
  transition: width 0.25s ease, height 0.25s ease, background-color 0.25s ease;
}

#dst-cursor-ring {
  position: fixed;
  width: 38px;
  height: 38px;
  border: 1.5px solid rgba(224, 157, 55, 0.55);
  border-radius: 50%;
  pointer-events: none !important;
  z-index: 999998;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(224, 157, 55, 0.05) 0%, transparent 70%);
  transition: width 0.3s cubic-bezier(0.22, 1, 0.36, 1),
              height 0.3s cubic-bezier(0.22, 1, 0.36, 1),
              border-color 0.3s ease,
              background-color 0.3s ease;
}

body.dst-cursor-hover #dst-cursor {
  width: 14px;
  height: 14px;
  background: #78d6df;
  box-shadow: 0 0 16px rgba(120, 214, 223, 0.9);
}

body.dst-cursor-hover #dst-cursor-ring {
  width: 58px;
  height: 58px;
  border-color: rgba(120, 214, 223, 0.6);
  background: radial-gradient(circle, rgba(120, 214, 223, 0.12) 0%, transparent 80%);
}

/* ─── 3. SCROLL REVEAL ANIMATIONS ───────────────────────── */
.dst-reveal {
  opacity: 0 !important;
  transform: translateY(35px) scale(0.98);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.6s cubic-bezier(0.22, 1, 0.36, 1) !important;
  will-change: opacity, transform;
}

.dst-revealed {
  opacity: 1 !important;
  transform: translateY(0) scale(1) !important;
}

/* ─── 4. CARD HOVER SPOTLIGHT & GLASS GLOW ─────────────── */
.dst-spotlight-card {
  position: relative;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1),
              border-color 0.35s ease !important;
}

.dst-spotlight-card:hover {
  transform: translateY(-5px) scale(1.008);
  box-shadow: 0 16px 40px rgba(24, 63, 64, 0.1), 0 0 25px rgba(224, 157, 55, 0.18) !important;
}

.dst-spotlight-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: radial-gradient(
    450px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(224, 157, 55, 0.6),
    transparent 45%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none !important;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
}

.dst-spotlight-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    550px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(224, 157, 55, 0.09),
    transparent 45%
  );
  pointer-events: none !important;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.dst-spotlight-card:hover::before,
.dst-spotlight-card:hover::after {
  opacity: 1;
}

/* ─── 5. GLOWING TEXT SHIMMER ───────────────────────────── */
.dst-shimmer {
  background: linear-gradient(120deg, #183f40 0%, #e09d37 40%, #78d6df 60%, #183f40 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: dstShimmer 4s linear infinite;
}

@keyframes dstShimmer {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

/* ─── 6. ANIMATED SVG VECTOR ICONS ──────────────────────── */
.dst-svg-icon {
  display: inline-block;
  vertical-align: middle;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), filter 0.3s ease;
}

.dst-svg-icon:hover {
  transform: scale(1.15) rotate(4deg);
  filter: drop-shadow(0 0 8px rgba(224, 157, 55, 0.7));
}

.dst-magnetic {
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

/* ─── 7. FLOATING SCROLL-TO-TOP BUTTON ───────────────────── */
#dst-scroll-top {
  position: fixed;
  right: 24px;
  bottom: 28px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, #183f40, #0f766e);
  color: #ffffff;
  border: 1px solid rgba(224, 157, 55, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 9999;
  opacity: 0;
  transform: translateY(20px) scale(0.8);
  pointer-events: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  transition: opacity 0.35s ease, transform 0.35s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

#dst-scroll-top.dst-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

#dst-scroll-top:hover {
  background: linear-gradient(135deg, #e09d37, #c98829);
  box-shadow: 0 12px 30px rgba(224, 157, 55, 0.4);
  transform: translateY(-3px) scale(1.05);
}

/* ─── 8. PARTICLE CANVAS BACKGROUND ──────────────────────── */
#dst-particles {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  pointer-events: none !important;
  z-index: 0 !important;
  opacity: 0.45 !important;
}


/* === CARD IMAGE & BUTTON ALIGNMENT FIX (ZERO OFFSET) === */
article {
  box-sizing: border-box !important;
}

article button {
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  display: block !important;
  box-sizing: border-box !important;
  text-align: left !important;
}

article div.relative {
  width: 100% !important;
  margin: 0 !important;
  box-sizing: border-box !important;
}

article img {
  max-width: 100% !important;
  margin: 0 auto !important;
  display: block !important;
  object-fit: contain !important;
}


/* === PREVENT MAGNETIC TRANSLATION ON CARD WRAPPER BUTTONS === */
article button,
.dst-spotlight-card button {
  transform: none !important;
}
