/* ============================================================
   DECORA1967 — ANIMATIONS LIBRARY
   Heavy, Premium, Non-AI Feeling Motion
   ============================================================ */

/* ─── PAGE LOADER — PREMIUM INTRO ─────────────────────────────────────────── */
#page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: all;
  transition: opacity 0.5s ease 0.1s, visibility 0.5s ease 0.1s;
}

#page-loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* The letter container sits centre-screen, then transforms to nav position */
#loader-letters {
  display: flex;
  align-items: baseline;
  gap: 0.04em;
  font-family: var(--font-display), serif;
  font-size: clamp(44px, 8vw, 88px);
  font-weight: 300;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-black, #111);
  will-change: transform, font-size, opacity;
  transform-origin: top left;
}

/* Each letter starts invisible, slides up into place */
.ll {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.45s ease, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.ll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Gold underline that draws in after letters appear */
#loader-underline {
  width: 0;
  height: 1px;
  background: var(--gold, #c9a84c);
  margin-top: 10px;
  transition: width 0.5s cubic-bezier(0.77, 0, 0.18, 1);
}

#loader-underline.drawn {
  width: clamp(120px, 18vw, 250px);
}


/* â”€â”€â”€ HERO ANIMATIONS â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.hero-line-wrapper {
  overflow: hidden;
  display: block;
}

.hero-line-inner {
  display: block;
  animation: hero-line-up 1.1s cubic-bezier(0.77, 0, 0.18, 1) both;
}

.hero-line-inner.delay-1 { animation-delay: 0.15s; }
.hero-line-inner.delay-2 { animation-delay: 0.30s; }
.hero-line-inner.delay-3 { animation-delay: 0.45s; }
.hero-line-inner.delay-4 { animation-delay: 0.60s; }

@keyframes hero-line-up {
  from { transform: translateY(110%); opacity: 0; }
  to   { transform: translateY(0%);   opacity: 1; }
}


/* â”€â”€â”€ PARALLAX HERO IMAGE â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.parallax-wrap {
  overflow: hidden;
  position: relative;
}

.parallax-img {
  transform: scale(1.12) translateY(0);
  transition: transform 0s linear;
  will-change: transform;
}

/* â”€â”€â”€ NUMBER COUNTER â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.count-up {
  display: inline-block;
}

/* â”€â”€â”€ HOVER LINE EXPAND â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.hover-line {
  position: relative;
  display: inline-block;
  padding-bottom: 4px;
}

.hover-line::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s cubic-bezier(0.77, 0, 0.18, 1);
}

.hover-line:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* â”€â”€â”€ FLOATING ELEMENTS â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.float-slow {
  animation: float-slow 7s ease-in-out infinite;
}

.float-med {
  animation: float-med 5s ease-in-out infinite;
}

@keyframes float-slow {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-18px); }
}

@keyframes float-med {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-10px); }
}

/* â”€â”€â”€ SPIN â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.spin-slow {
  animation: spin-slow 20s linear infinite;
}

@keyframes spin-slow {
  to { transform: rotate(360deg); }
}

/* â”€â”€â”€ HERO BADGE PULSE â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.badge-dot-live {
  width: 8px; height: 8px;
  background: #22c55e;
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
}

.badge-dot-live::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: rgba(34,197,94,0.3);
  animation: ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes ping {
  75%, 100% { transform: scale(2); opacity: 0; }
}

/* â”€â”€â”€ HORIZONTAL SCROLL PROGRESS â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  z-index: 9999;
  width: 0%;
  transition: width 0.05s linear;
}

/* â”€â”€â”€ STAGGER CHILDREN â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.stagger-children > * {
  opacity: 0;
  transform: translateY(30px);
}

.stagger-children.revealed > *:nth-child(1)  { animation: stagger-up 0.75s 0.0s  cubic-bezier(0.25,0.46,0.45,0.94) forwards; }
.stagger-children.revealed > *:nth-child(2)  { animation: stagger-up 0.75s 0.1s  cubic-bezier(0.25,0.46,0.45,0.94) forwards; }
.stagger-children.revealed > *:nth-child(3)  { animation: stagger-up 0.75s 0.2s  cubic-bezier(0.25,0.46,0.45,0.94) forwards; }
.stagger-children.revealed > *:nth-child(4)  { animation: stagger-up 0.75s 0.3s  cubic-bezier(0.25,0.46,0.45,0.94) forwards; }
.stagger-children.revealed > *:nth-child(5)  { animation: stagger-up 0.75s 0.4s  cubic-bezier(0.25,0.46,0.45,0.94) forwards; }
.stagger-children.revealed > *:nth-child(6)  { animation: stagger-up 0.75s 0.5s  cubic-bezier(0.25,0.46,0.45,0.94) forwards; }
.stagger-children.revealed > *:nth-child(7)  { animation: stagger-up 0.75s 0.6s  cubic-bezier(0.25,0.46,0.45,0.94) forwards; }
.stagger-children.revealed > *:nth-child(8)  { animation: stagger-up 0.75s 0.7s  cubic-bezier(0.25,0.46,0.45,0.94) forwards; }
.stagger-children.revealed > *:nth-child(9)  { animation: stagger-up 0.75s 0.8s  cubic-bezier(0.25,0.46,0.45,0.94) forwards; }
.stagger-children.revealed > *:nth-child(10) { animation: stagger-up 0.75s 0.9s  cubic-bezier(0.25,0.46,0.45,0.94) forwards; }

@keyframes stagger-up {
  to { opacity: 1; transform: translateY(0); }
}

/* â”€â”€â”€ MAGNETIC BUTTON â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.magnetic {
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  display: inline-block;
}

/* â”€â”€â”€ GRADIENT TEXT â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.text-gradient {
  background: linear-gradient(135deg, var(--gold) 0%, #f0c060 50%, var(--gold-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* â”€â”€â”€ CLIP PATH REVEAL â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.clip-reveal {
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1.2s cubic-bezier(0.77, 0, 0.18, 1);
}

.clip-reveal.revealed {
  clip-path: inset(0 0% 0 0);
}

/* â”€â”€â”€ SCALE IN â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.scale-in {
  opacity: 0;
  transform: scale(0.88);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scale-in.revealed {
  opacity: 1;
  transform: scale(1);
}

/* â”€â”€â”€ TICKER / HEADLINE SCROLL â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.ticker-track {
  display: flex;
  gap: 64px;
  width: max-content;
  animation: marquee-scroll 20s linear infinite;
}

/* â”€â”€â”€ BORDER ANIMATION â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.animated-border {
  position: relative;
}

.animated-border::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: linear-gradient(135deg, transparent, var(--gold), transparent);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.animated-border:hover::before { opacity: 1; }

/* --- 3D FLOATING ANIMATION --- */
.floating-3d {
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.4s ease;
  will-change: transform;
}
.card:hover .floating-3d {
  transform: translateY(-8px) scale(1.05);
  filter: drop-shadow(0 15px 25px rgba(0,0,0,0.15)) !important;
}

/* --- HOVER VIDEO BACKGROUNDS --- */
.card {
  position: relative;
  overflow: hidden;
}
.card-bg-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  z-index: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}
.card-video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(12,12,12,0.9), rgba(12,12,12,0.2));
  opacity: 0;
  z-index: 1;
  transition: opacity 0.5s ease;
  pointer-events: none;
}
.card-content {
  position: relative;
  z-index: 2;
  transition: color 0.4s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.card:hover .card-bg-video {
  opacity: 1;
}
.card:hover .card-video-overlay {
  opacity: 1;
}
.card:hover .heading,
.card:hover .body-sm {
  color: var(--white) !important;
}
.card:hover .hover-line {
  color: var(--white) !important;
}


/* ─── ACCESSIBILITY: Reduced Motion ────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal, .reveal-left, .reveal-right, .scale-in, .clip-reveal {
    opacity: 1 !important;
    transform: none !important;
  }
  #tsparticles-home, #tsparticles-contact { display: none !important; }
  .loader-bar-fill { animation: none !important; width: 100% !important; }
}

/* ─── ACCESSIBILITY: Focus States ──────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--gold) !important;
  outline-offset: 3px;
  border-radius: 4px;
}

a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--gold) !important;
  outline-offset: 3px;
}

/* Tooltip Animations */
.tooltip-show {
  visibility: visible;
  opacity: 1;
  transform: scale(1);
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.tooltip-hide {
  visibility: hidden;
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), visibility 0s 0.2s;
}
