/* ================================================================
   LLAHH — PREMIUM LOADING ANIMATION + ELEVATED DESIGN LAYER
   ================================================================ */

/* ── LOADER OVERLAY ─────────────────────────────────────────── */
#site-loader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: #060810;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: opacity 0.7s cubic-bezier(0.76, 0, 0.24, 1),
              visibility 0.7s cubic-bezier(0.76, 0, 0.24, 1);
}
#site-loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Loader canvas bg */
.loader-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 30% 40%, rgba(46,184,160,0.14) 0%, transparent 55%),
    radial-gradient(ellipse 55% 60% at 75% 60%, rgba(201,168,76,0.10) 0%, transparent 55%),
    #060810;
}

/* Dot grid */
.loader-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(201,168,76,0.13) 1px, transparent 1px);
  background-size: 36px 36px;
  animation: loaderDotsShift 6s linear infinite;
  opacity: 0.6;
}
@keyframes loaderDotsShift {
  0%   { background-position: 0 0; }
  100% { background-position: 36px 36px; }
}

/* Animated rings */
.loader-rings {
  position: absolute;
  width: 500px;
  height: 500px;
}
.loader-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(201,168,76,0.15);
  animation: loaderRingExpand 3s ease-in-out infinite;
}
.loader-ring:nth-child(2) {
  inset: 40px;
  animation-delay: 0.4s;
  border-color: rgba(46,184,160,0.12);
}
.loader-ring:nth-child(3) {
  inset: 80px;
  animation-delay: 0.8s;
  border-color: rgba(201,168,76,0.10);
}
@keyframes loaderRingExpand {
  0%   { opacity: 0; transform: scale(0.7); }
  40%  { opacity: 1; }
  100% { opacity: 0; transform: scale(1.3); }
}

/* Central logo */
.loader-logo-wrap {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.loader-logo-ring {
  position: relative;
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loader-logo-ring svg.ring-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  animation: loaderRingSpin 2s linear infinite;
}
@keyframes loaderRingSpin {
  to { transform: rotate(360deg); }
}

.loader-logo-inner {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0d1525 0%, #1a2540 100%);
  border: 1px solid rgba(201,168,76,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 0 40px rgba(201,168,76,0.15), inset 0 1px 0 rgba(255,255,255,0.06);
  animation: loaderLogoPulse 2s ease-in-out infinite;
}
@keyframes loaderLogoPulse {
  0%, 100% { box-shadow: 0 0 40px rgba(201,168,76,0.15), inset 0 1px 0 rgba(255,255,255,0.06); }
  50%       { box-shadow: 0 0 60px rgba(201,168,76,0.30), inset 0 1px 0 rgba(255,255,255,0.06); }
}

.loader-logo-inner img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  animation: loaderLogoFade 0.6s ease forwards;
}
@keyframes loaderLogoFade {
  from { opacity: 0; transform: scale(0.8); }
  to   { opacity: 1; transform: scale(1); }
}

/* Loader text */
.loader-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.04em;
  text-align: center;
  line-height: 1.25;
  animation: loaderTextReveal 0.8s 0.3s ease both;
}
.loader-title span {
  background: linear-gradient(135deg, #c9a84c, #e8cc80 50%, #2eb8a0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
@keyframes loaderTextReveal {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.loader-sub {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(201,168,76,0.7);
  margin-top: -20px;
  animation: loaderTextReveal 0.8s 0.5s ease both;
}

/* Progress bar */
.loader-progress-wrap {
  width: 200px;
  height: 2px;
  background: rgba(255,255,255,0.07);
  border-radius: 1px;
  overflow: hidden;
  animation: loaderTextReveal 0.6s 0.6s ease both;
}
.loader-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #c9a84c, #2eb8a0);
  border-radius: 1px;
  transition: width 0.08s linear;
  box-shadow: 0 0 8px rgba(201,168,76,0.6);
}

.loader-pct {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.1em;
  margin-top: -14px;
  animation: loaderTextReveal 0.6s 0.7s ease both;
  min-width: 3.5ch;
  text-align: center;
}

/* Loader reveal - curtain wipe */
.loader-curtain {
  position: absolute;
  inset: 0;
  background: #060810;
  transform-origin: top;
  transform: scaleY(1);
  transition: transform 0.85s cubic-bezier(0.76, 0, 0.24, 1);
}
#site-loader.reveal .loader-curtain {
  transform: scaleY(0);
}

/* ── PAGE CONTENT REVEAL ────────────────────────────────────── */
body > *:not(#site-loader) {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.8s 0.1s ease, transform 0.8s 0.1s ease;
}
body.loaded > *:not(#site-loader) {
  opacity: 1;
  transform: translateY(0);
}

/* ── SCROLL REVEAL ──────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}
.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}
.reveal-scale {
  opacity: 0;
  transform: scale(0.94);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}

/* Stagger delays */
.delay-1 { transition-delay: 0.1s !important; }
.delay-2 { transition-delay: 0.2s !important; }
.delay-3 { transition-delay: 0.3s !important; }
.delay-4 { transition-delay: 0.4s !important; }
.delay-5 { transition-delay: 0.5s !important; }
.delay-6 { transition-delay: 0.6s !important; }

/* ── PREMIUM NAVBAR UPGRADE ─────────────────────────────────── */
#navbar {
  background: rgba(6,8,16,0.97) !important;
  border-bottom: 1px solid rgba(201,168,76,0.12) !important;
}

/* Glowing nav logo */
#navbar picture img, #navbar img[alt*="Logo"] {
  filter: drop-shadow(0 0 12px rgba(201,168,76,0.3));
  transition: filter 0.3s ease, transform 0.3s ease;
}
#navbar a:hover picture img, #navbar a:hover img[alt*="Logo"] {
  filter: drop-shadow(0 0 20px rgba(201,168,76,0.55));
  transform: scale(1.06);
}

/* ── PREMIUM HERO PARTICLES ─────────────────────────────────── */
.hero-particle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  animation: heroParticleFloat linear infinite;
}
@keyframes heroParticleFloat {
  0%   { transform: translateY(100vh) rotate(0deg); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { transform: translateY(-20vh) rotate(720deg); opacity: 0; }
}

/* ── PREMIUM SECTION HEADING LINE ───────────────────────────── */
.heading-line {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: center;
  margin-bottom: 4px;
}
.heading-line::before,
.heading-line::after {
  content: '';
  flex: 1;
  max-width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
  opacity: 0.5;
}
.heading-line::after {
  background: linear-gradient(270deg, transparent, var(--gold));
}

/* ── CURSOR GLOW ────────────────────────────────────────────── */
.cursor-glow {
  position: fixed;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(circle, rgba(201,168,76,0.06) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  transition: transform 0.15s linear;
  mix-blend-mode: screen;
}

/* ── STAT CARD GLOW UPGRADE ─────────────────────────────────── */
.stat-card {
  background: linear-gradient(145deg, #ffffff 0%, #fafaf8 100%) !important;
}
.stat-card:hover {
  background: linear-gradient(145deg, #ffffff 0%, #fffdf5 100%) !important;
}

/* ── PREMIUM CTA SECTION ────────────────────────────────────── */
.cta-premium {
  position: relative;
  background:
    radial-gradient(ellipse 80% 60% at 50% 50%, rgba(201,168,76,0.08) 0%, transparent 60%),
    linear-gradient(135deg, #070910 0%, #0e1826 60%, #080e10 100%);
  overflow: hidden;
}
.cta-premium::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(201,168,76,0.07) 1px, transparent 1px);
  background-size: 32px 32px;
}

/* ── PREMIUM FOOTER ─────────────────────────────────────────── */
footer {
  position: relative;
  overflow: hidden;
}
footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201,168,76,0.4), rgba(46,184,160,0.3), transparent);
}

/* ── ANIMATED GRADIENT BORDER CARDS ────────────────────────── */
.premium-card-border {
  position: relative;
  border-radius: var(--radius-lg) !important;
}
.premium-card-border::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(201,168,76,0.0), rgba(201,168,76,0.4), rgba(46,184,160,0.2), rgba(201,168,76,0.0));
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: -1;
}
.premium-card-border:hover::before {
  opacity: 1;
}

/* ── GLOWING DIVIDER ────────────────────────────────────────── */
.glow-divider {
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(201,168,76,0.6) 30%,
    rgba(46,184,160,0.6) 70%,
    transparent 100%);
  border: none;
  position: relative;
  overflow: visible;
}
.glow-divider::after {
  content: '';
  position: absolute;
  top: -2px;
  left: 20%;
  right: 20%;
  height: 5px;
  background: linear-gradient(90deg, transparent, rgba(201,168,76,0.3), rgba(46,184,160,0.3), transparent);
  filter: blur(4px);
}

/* ── FLOATING BADGE ANIMATION ───────────────────────────────── */
.hero-float-card {
  animation: heroCardFloat 4s ease-in-out infinite;
}
.hero-float-card:nth-child(2) {
  animation-delay: -2s;
  animation-duration: 5s;
}
@keyframes heroCardFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%       { transform: translateY(-10px) rotate(1.5deg); }
}

/* ── SHIMMER TEXT ────────────────────────────────────────────── */
.shimmer-text {
  background: linear-gradient(
    90deg,
    #c9a84c 0%,
    #f0d878 30%,
    #2eb8a0 50%,
    #f0d878 70%,
    #c9a84c 100%
  );
  background-size: 300% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmerText 5s ease-in-out infinite;
}
@keyframes shimmerText {
  0%   { background-position: 100% 50%; }
  50%  { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

/* ── PREMIUM GLOW BUTTONS ────────────────────────────────────── */
.btn-accent {
  position: relative;
  overflow: hidden;
}
.btn-accent::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.5s ease, height 0.5s ease;
}
.btn-accent:hover::before {
  width: 300px;
  height: 300px;
}

/* ── SECTION NUMBER LABEL ────────────────────────────────────── */
.section-number {
  font-family: 'Cormorant Garamond', serif;
  font-size: 7rem;
  font-weight: 700;
  line-height: 1;
  color: rgba(201,168,76,0.05);
  position: absolute;
  top: -20px;
  left: -10px;
  pointer-events: none;
  user-select: none;
  letter-spacing: -0.04em;
}

/* ── NOISE TEXTURE OVERLAY ───────────────────────────────────── */
.noise-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  mix-blend-mode: overlay;
}

/* ── ANIMATED COUNTER GLOW ───────────────────────────────────── */
.counter-value {
  text-shadow: 0 0 30px rgba(201,168,76,0.3);
}

/* ── PREMIUM SCROLLBAR ───────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: #060810; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #c9a84c 0%, #2eb8a0 100%);
  border-radius: 3px;
}

/* ── HERO IMAGE GLOW ─────────────────────────────────────────── */
.hero-img-glow {
  filter: drop-shadow(0 20px 60px rgba(46,184,160,0.25)) drop-shadow(0 0 40px rgba(201,168,76,0.15));
  transition: filter 0.5s ease;
}
.hero-img-glow:hover {
  filter: drop-shadow(0 24px 80px rgba(46,184,160,0.35)) drop-shadow(0 0 60px rgba(201,168,76,0.25));
}

/* ── PREMIUM TESTIMONIAL QUOTE ───────────────────────────────── */
.testimonial-card::before {
  font-size: 120px;
  background: linear-gradient(135deg, rgba(201,168,76,0.15), rgba(46,184,160,0.08));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── PREFERS REDUCED MOTION ─────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .loader-dots, .loader-ring, .loader-logo-ring svg,
  .hero-particle, .shimmer-text, .float-anim,
  .animate-marquee, .live-dot {
    animation: none !important;
  }
  .reveal, .reveal-left, .reveal-right, .reveal-scale {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
