/* ============================================================
   Rayatavan — animation layer (v2)
   ============================================================ */

/* ---------- Hero photo with slow Ken Burns zoom ---------- */
.hero-photo {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: kenburns 22s ease-in-out infinite alternate;
}

@keyframes kenburns {
  from { transform: scale(1) translateX(0); }
  to   { transform: scale(1.1) translateX(-1.5%); }
}

/* navy overlay so text stays readable over the photo */
.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg,
    rgba(15, 17, 38, 0.93) 0%,
    rgba(30, 33, 68, 0.82) 45%,
    rgba(38, 42, 86, 0.55) 100%);
}

html[dir="rtl"] .hero-photo::after {
  background: linear-gradient(-100deg,
    rgba(15, 17, 38, 0.93) 0%,
    rgba(30, 33, 68, 0.82) 45%,
    rgba(38, 42, 86, 0.55) 100%);
}

/* keep the line-art above the photo, slightly dimmed */
.hero-art { opacity: 0.45; }

/* ---------- Energy flowing along the amber conductors ---------- */
.hero-art .flow path {
  stroke-dasharray: 16 210;
  animation: flowdash 3.2s linear infinite;
}

.hero-art .flow path:nth-child(2) { animation-delay: -0.6s; }
.hero-art .flow path:nth-child(3) { animation-delay: -1.2s; }
.hero-art .flow path:nth-child(4) { animation-delay: -1.8s; }
.hero-art .flow path:nth-child(5) { animation-delay: -2.4s; }
.hero-art .flow path:nth-child(6) { animation-delay: -3.0s; }

@keyframes flowdash {
  to { stroke-dashoffset: -226; }
}

/* ---------- Hero content entrance ---------- */
.hero-inner > * {
  opacity: 0;
  transform: translateY(26px);
  animation: heroup 0.85s cubic-bezier(.2,.7,.3,1) forwards;
}

.hero-inner > .kicker     { animation-delay: 0.15s; }
.hero-inner > h1          { animation-delay: 0.35s; }
.hero-inner > p           { animation-delay: 0.55s; }
.hero-inner > .btn        { animation-delay: 0.75s; }
.hero-inner > .btn-ghost  { animation-delay: 0.9s; }

@keyframes heroup {
  to { opacity: 1; transform: none; }
}

/* ---------- Scroll reveal (added by JS) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.3,1);
  transition-delay: var(--rd, 0s);
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ---------- Header shadow after scrolling ---------- */
.site-header {
  transition: box-shadow .3s ease;
}

.site-header.scrolled {
  box-shadow: 0 6px 24px rgba(16, 24, 40, .12);
}

/* ---------- Small touches ---------- */
.card .icon {
  transition: transform .35s cubic-bezier(.2,.7,.3,1), color .35s;
}

.card:hover .icon {
  transform: translateY(-4px) scale(1.08);
  color: var(--amber-text);
}

.member .avatar { transition: transform .35s, border-color .35s; }
.member:hover .avatar { transform: scale(1.08); border-color: var(--navy); }

.client { transition: transform .3s, box-shadow .3s; }
.client:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(16,24,40,.08); }

/* about photo */
.about-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about-art {
  border: none;
  border-inline-start: 6px solid var(--red);
  box-shadow: 0 18px 44px rgba(16, 24, 40, .18);
}

/* ---------- Respect reduced-motion preference ---------- */
@media (prefers-reduced-motion: reduce) {
  .hero-photo img,
  .hero-art .flow path,
  .hero-inner > * {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
