
/* ============================================================
   HEVEA HK — Futuristic Animation System v2.0
   ============================================================ */

/* ── Typewriter cursor ───────────────────────────────────────── */
.hk-cursor {
  display: inline-block;
  color: #60A5FA;
  font-weight: 200;
  animation: hk-blink .7s step-end infinite;
  margin-left: 2px;
}
.hk-cursor-done {
  animation: hk-blink .7s step-end 3;
}
@keyframes hk-blink { 0%,100%{opacity:1} 50%{opacity:0} }

/* ── Word-by-word reveal ─────────────────────────────────────── */
.hk-word {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
}
.hk-word span {
  display: inline-block;
  transform: translateY(110%);
  opacity: 0;
  transition: transform 0.62s cubic-bezier(0.16,1,0.3,1), opacity 0.45s ease;
}
.hk-word span.hk-word-in {
  transform: translateY(0);
  opacity: 1;
}

/* ── Stagger children reveal ─────────────────────────────────── */
.hk-stagger > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.16,1,0.3,1);
}
.hk-stagger > *.hk-stagger-in {
  opacity: 1;
  transform: none;
}

/* ── Scroll reveal upgrade ──────────────────────────────────── */
.hk-rv {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.16,1,0.3,1);
}
.hk-rv.visible {
  opacity: 1;
  transform: none;
}
.hk-rv--left {
  transform: translateX(-40px);
}
.hk-rv--right {
  transform: translateX(40px);
}
.hk-rv--scale {
  transform: scale(0.92);
}

/* ── Image Slider (.hk-slides) ───────────────────────────────── */
.hk-slides {
  position: relative;
  overflow: hidden;
  border-radius: var(--hk-radius-lg);
  background: var(--hk-navy);
}

.hk-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateX(100%);
  transition: opacity 0.8s cubic-bezier(0.4,0,0.2,1),
              transform 0.8s cubic-bezier(0.4,0,0.2,1);
  will-change: transform, opacity;
}
.hk-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hk-slide.active {
  opacity: 1;
  transform: translateX(0);
  position: relative;
  z-index: 2;
}
.hk-slide.prev {
  opacity: 0;
  transform: translateX(-60px) scale(0.97);
  z-index: 1;
}

/* Dots */
.hk-slide-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 7px;
  z-index: 10;
}
.hk-slide-dot {
  width: 7px;
  height: 7px;
  border-radius: 99px;
  background: rgba(255,255,255,.4);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all .3s;
}
.hk-slide-dot.active {
  width: 22px;
  background: #fff;
}

/* Arrows */
.hk-slide-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  backdrop-filter: blur(8px);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}
.hk-slide-arrow:hover { background: rgba(255,255,255,.22); }
.hk-slide-prev { left: 14px; }
.hk-slide-next { right: 14px; }

/* ── Cursor glow (desktop) ───────────────────────────────────── */
.hk-cursor-glow {
  position: fixed;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37,99,235,.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 9999;
  transition: transform .08s linear;
  will-change: transform;
}
@media(max-width:1023px) { .hk-cursor-glow { display: none; } }

/* ── Scanline hero effect ────────────────────────────────────── */
.hk-scanline {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(96,165,250,.6), transparent);
  z-index: 6;
  animation: hk-scan 4.5s cubic-bezier(0.4,0,0.6,1) 0.5s 1 forwards;
  opacity: 0;
}
@keyframes hk-scan {
  0%   { top: 0%;    opacity: 0; }
  5%   { opacity: 1; }
  90%  { opacity: .7; }
  100% { top: 100%;  opacity: 0; }
}

/* ── Glowing separator line ──────────────────────────────────── */
.hk-glow-line {
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, #2563EB 40%, #4B8FD4 60%, transparent 100%);
  opacity: .35;
  margin: 60px 0;
}

/* ── Number ticker (enhanced) ───────────────────────────────── */
[data-count] {
  font-variant-numeric: tabular-nums;
  display: inline-block;
}

/* ── Section entry animation ─────────────────────────────────── */
@keyframes hk-section-in {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: none; }
}
.hk-sec-anim {
  animation: hk-section-in 0.65s cubic-bezier(0.16,1,0.3,1) both;
}

/* ── Gradient text animation ─────────────────────────────────── */
.hk-grad-text {
  background: linear-gradient(135deg, #60A5FA 0%, #93C5FD 40%, #BFDBFE 70%, #60A5FA 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: hk-grad-move 4s linear infinite;
}
@keyframes hk-grad-move {
  from { background-position: 0% center; }
  to   { background-position: 200% center; }
}

/* ── Hover lift cards ────────────────────────────────────────── */
.hk-lift {
  transition: transform .28s cubic-bezier(0.34,1.56,0.64,1),
              box-shadow .28s ease;
}
.hk-lift:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(11,27,46,.18);
}

/* ── Page hero — title reveal on load ───────────────────────── */
.hero-h1 {
  visibility: hidden; /* JS reveals */
}
.hero-h1.hk-ready {
  visibility: visible;
}

/* ── Image strip section ─────────────────────────────────── */
.hk-img-strip-sec {
  padding: 0;
  margin: 0;
}
.hk-img-strip {
  border-radius: 0;
  width: 100%;
}
.hk-slide-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 32px;
  background: linear-gradient(to top, rgba(11,27,46,.85) 0%, transparent 100%);
  z-index: 5;
}
.hk-slide-caption span {
  font-size: .85rem;
  color: rgba(255,255,255,.82);
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 500;
}
/* Slide states */
.hk-slide {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.hk-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  transition: transform 8s ease, opacity .9s ease;
  opacity: 0;
}
.hk-slide.active {
  z-index: 2;
  position: absolute;
}
.hk-slide.active img {
  opacity: 1;
  transform: scale(1);
}
.hk-slide.out img {
  opacity: 0;
  transform: scale(1.06);
}


