/* =====================================================================
   WAYNE FLEET — HI-TECH LAYER
   Additive effects layer. Loads on top of style.css.
   Everything degrades gracefully and respects reduced-motion / touch.
   ===================================================================== */

:root {
  --ht-glow: rgba(201, 162, 39, 0.55);
  --ht-glow-soft: rgba(201, 162, 39, 0.18);
}

/* ---------------------------------------------------------------------
   1. PARTICLE / NETWORK CANVAS — sits behind everything
   --------------------------------------------------------------------- */
#ht-particles {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.9;
}

/* keep page content above the canvas (navbar keeps its own fixed positioning) */
.hero, .page-hero, .section, footer { position: relative; z-index: 1; }
#navbar { z-index: 1000; }

/* ---------------------------------------------------------------------
   2. SCROLL PROGRESS BAR
   --------------------------------------------------------------------- */
#ht-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  z-index: 2000;
  background: linear-gradient(90deg, var(--gold-dim), var(--gold-light), var(--gold));
  box-shadow: 0 0 14px var(--ht-glow);
  transition: width 0.08s linear;
  pointer-events: none;
}

/* ---------------------------------------------------------------------
   3. CUSTOM CURSOR (desktop, fine-pointer only)
   --------------------------------------------------------------------- */
.ht-cursor-on, .ht-cursor-on * { cursor: none !important; }

#ht-cursor, #ht-cursor-dot {
  position: fixed;
  top: 0; left: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 3000;
  transform: translate(-50%, -50%);
  will-change: transform;
}

#ht-cursor {
  width: 34px; height: 34px;
  border: 1.5px solid var(--gold);
  box-shadow: 0 0 16px var(--ht-glow-soft), inset 0 0 8px var(--ht-glow-soft);
  transition: width 0.22s ease, height 0.22s ease, background 0.22s ease, border-color 0.22s ease;
}

#ht-cursor-dot {
  width: 5px; height: 5px;
  background: var(--gold-light);
  box-shadow: 0 0 10px var(--gold);
}

#ht-cursor.ht-hover {
  width: 58px; height: 58px;
  background: rgba(201, 162, 39, 0.12);
  border-color: var(--gold-light);
}

#ht-cursor.ht-down { width: 26px; height: 26px; }

/* ---------------------------------------------------------------------
   4. PRELOADER
   --------------------------------------------------------------------- */
#ht-preloader {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 26px;
  background: var(--black);
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

#ht-preloader.ht-hide { opacity: 0; visibility: hidden; }

.ht-pre-logo {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 1.6rem;
  letter-spacing: 6px;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
}

.ht-pre-bar {
  width: 180px;
  height: 2px;
  background: rgba(201, 162, 39, 0.15);
  border-radius: 2px;
  overflow: hidden;
}

.ht-pre-bar::after {
  content: '';
  display: block;
  height: 100%;
  width: 40%;
  background: linear-gradient(90deg, transparent, var(--gold-light), transparent);
  animation: htPreSlide 1.1s ease-in-out infinite;
}

@keyframes htPreSlide {
  0%   { transform: translateX(-120%); }
  100% { transform: translateX(360%); }
}

/* ---------------------------------------------------------------------
   5. SHIMMER GOLD TEXT
   --------------------------------------------------------------------- */
.gold-text {
  background: linear-gradient(100deg, var(--gold) 20%, var(--gold-light) 40%, #fff6d8 50%, var(--gold-light) 60%, var(--gold) 80%);
  background-size: 250% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: htShimmer 6s linear infinite;
}

@keyframes htShimmer {
  to { background-position: -250% center; }
}

/* ---------------------------------------------------------------------
   6. CARD TILT + SPOTLIGHT GLOW
   --------------------------------------------------------------------- */
.ht-tilt {
  transform-style: preserve-3d;
  transition: transform 0.18s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  will-change: transform;
}

.ht-tilt > * { transform: translateZ(0.01px); }

/* spotlight follows the pointer via CSS vars set in JS */
.ht-spotlight {
  position: relative;
  overflow: hidden;
}

.ht-spotlight::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    260px circle at var(--mx, 50%) var(--my, 50%),
    rgba(201, 162, 39, 0.16),
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 0;
}

.ht-spotlight:hover::before { opacity: 1; }
.ht-spotlight > * { position: relative; z-index: 1; }

/* lift glow on interactive cards */
.service-card.ht-tilt:hover,
.testimonial-card.ht-tilt:hover,
.why-item.ht-tilt:hover {
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.55), 0 0 0 1px var(--ht-glow-soft);
  border-color: var(--ht-glow) !important;
}

/* ---------------------------------------------------------------------
   7. ENHANCED SCROLL REVEAL (extends existing .fade-in)
   --------------------------------------------------------------------- */
.fade-in {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* stagger children of a grid when revealed */
.services-grid .fade-in.visible,
.why-grid .fade-in.visible,
.testimonials-grid .fade-in.visible { transition-delay: var(--ht-delay, 0s); }

/* ---------------------------------------------------------------------
   8. MAGNETIC BUTTONS — JS sets translate; CSS smooths return
   --------------------------------------------------------------------- */
.ht-magnetic { transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1); will-change: transform; }

/* sheen sweep on primary buttons */
.btn-primary, .btn-gold {
  position: relative;
  overflow: hidden;
}

.btn-primary::after, .btn-gold::after {
  content: '';
  position: absolute;
  top: 0; left: -120%;
  width: 60%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s ease;
  pointer-events: none;
}

.btn-primary:hover::after, .btn-gold:hover::after { left: 140%; }

/* ---------------------------------------------------------------------
   9. NAV LINK UNDERLINE SWEEP
   --------------------------------------------------------------------- */
.nav-links a:not(.btn-gold) {
  position: relative;
}

.nav-links a:not(.btn-gold)::after {
  content: '';
  position: absolute;
  left: 0; bottom: -6px;
  width: 100%;
  height: 1.5px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.nav-links a:not(.btn-gold):hover::after,
.nav-links a.nav-active:not(.btn-gold)::after { transform: scaleX(1); }

/* ---------------------------------------------------------------------
   10. HERO ENHANCEMENTS — aurora + scan line
   --------------------------------------------------------------------- */
.hero-bg::before {
  content: '';
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(circle at 20% 30%, rgba(201, 162, 39, 0.10), transparent 35%),
    radial-gradient(circle at 80% 70%, rgba(201, 162, 39, 0.08), transparent 40%);
  filter: blur(30px);
  animation: htAurora 16s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes htAurora {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(4%, -3%) scale(1.08); }
  100% { transform: translate(-3%, 4%) scale(1.04); }
}

/* glowing badge pulse */
.hero-badge {
  position: relative;
  box-shadow: 0 0 0 0 rgba(201, 162, 39, 0.4);
  animation: htBadgePulse 2.8s ease-out infinite;
}

@keyframes htBadgePulse {
  0%   { box-shadow: 0 0 0 0 rgba(201, 162, 39, 0.35); }
  70%  { box-shadow: 0 0 0 12px rgba(201, 162, 39, 0); }
  100% { box-shadow: 0 0 0 0 rgba(201, 162, 39, 0); }
}

/* scroll-down hint */
#ht-scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--gold);
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.7;
  pointer-events: none;
}

#ht-scroll-hint .ht-mouse {
  width: 22px; height: 34px;
  border: 1.5px solid var(--gold);
  border-radius: 12px;
  position: relative;
}

#ht-scroll-hint .ht-mouse::after {
  content: '';
  position: absolute;
  left: 50%; top: 7px;
  width: 3px; height: 7px;
  background: var(--gold-light);
  border-radius: 2px;
  transform: translateX(-50%);
  animation: htWheel 1.6s ease-in-out infinite;
}

@keyframes htWheel {
  0%   { opacity: 0; transform: translate(-50%, 0); }
  40%  { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, 12px); }
}

/* ---------------------------------------------------------------------
   10b. HERO BRAND BANNER — full-bleed background behind hero text
   --------------------------------------------------------------------- */
.hero .hero-bg {
  background-image:
    radial-gradient(ellipse 95% 85% at 50% 48%, rgba(8,8,8,0.55), rgba(8,8,8,0.78) 70%, rgba(8,8,8,0.94)),
    linear-gradient(180deg, rgba(8,8,8,0.85) 0%, rgba(8,8,8,0.25) 35%, rgba(8,8,8,0.45) 70%, var(--black) 100%),
    url('images/hero-banner.jpg');
  background-size: cover, cover, cover;
  background-position: center, center, center 42%;
  background-repeat: no-repeat;
}

/* keep the text crisp on top of the imagery */
.hero h1 {
  text-shadow: 0 2px 30px rgba(0,0,0,0.85), 0 0 60px rgba(0,0,0,0.6);
}

.hero-sub {
  text-shadow: 0 1px 16px rgba(0,0,0,0.9);
}

@media (max-width: 700px) {
  .hero .hero-bg { background-position: center, center, center; }
}

/* ---------------------------------------------------------------------
   11. STAT COUNTER GLOW + animated number rolling cursor
   --------------------------------------------------------------------- */
.stat-num { text-shadow: 0 0 22px rgba(201, 162, 39, 0.25); }

/* ---------------------------------------------------------------------
   12. SECTION DIVIDER — animated tech line
   --------------------------------------------------------------------- */
.section-header h2 { position: relative; }

/* ---------------------------------------------------------------------
   13. REDUCED MOTION + TOUCH FALLBACKS
   --------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .gold-text, .hero-bg::before, .hero-badge,
  #ht-scroll-hint .ht-mouse::after, .ht-pre-bar::after {
    animation: none !important;
  }
  .fade-in { transition-duration: 0.01s; }
}

@media (hover: none), (pointer: coarse) {
  #ht-cursor, #ht-cursor-dot { display: none !important; }
  .ht-cursor-on, .ht-cursor-on * { cursor: auto !important; }
  #ht-particles { opacity: 0.5; }
}
