/* ═══ Dynamic visual layer — Wolfie Studios ═══ */

@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes float-orb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -40px) scale(1.08); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

@keyframes pulse-glow {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.75; }
}

@keyframes grid-drift {
  0% { transform: translateY(0); }
  100% { transform: translateY(60px); }
}

@keyframes shine-btn {
  0% { left: -100%; }
  100% { left: 200%; }
}

@keyframes line-flow {
  0% { background-position: 0 0; }
  100% { background-position: 200px 200px; }
}

/* Header glass on scroll */
.site-header {
  transition: background 0.35s ease, box-shadow 0.35s ease, backdrop-filter 0.35s ease;
}

.site-header.is-scrolled {
  background: rgba(12, 30, 61, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

/* Hero dynamic */
.hero--dynamic {
  min-height: 88vh;
  display: flex;
  align-items: center;
  padding: 100px 0 80px;
  background: #061428;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  animation: hero-kenburns 24s ease-in-out infinite alternate;
}

@keyframes hero-kenburns {
  0% { transform: scale(1.05) translate(0, 0); }
  100% { transform: scale(1.15) translate(-2%, -1%); }
}

.hero-bg__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(6, 20, 40, 0.92) 0%, rgba(12, 30, 61, 0.75) 45%, rgba(12, 30, 61, 0.55) 100%),
    linear-gradient(to top, rgba(6, 20, 40, 0.9) 0%, transparent 50%);
}

.hero-orbs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  animation: float-orb 14s ease-in-out infinite;
}

.orb-1 {
  width: 420px;
  height: 420px;
  background: rgba(0, 168, 232, 0.35);
  top: -10%;
  right: 5%;
  animation-duration: 18s;
}

.orb-2 {
  width: 320px;
  height: 320px;
  background: rgba(91, 79, 199, 0.3);
  bottom: 10%;
  left: -5%;
  animation-delay: -4s;
  animation-duration: 16s;
}

.orb-3 {
  width: 200px;
  height: 200px;
  background: rgba(0, 168, 232, 0.25);
  top: 40%;
  left: 40%;
  animation-delay: -8s;
  animation-duration: 12s;
}

.hero-grid-lines {
  position: absolute;
  inset: -50% 0 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  animation: grid-drift 20s linear infinite;
  mask-image: linear-gradient(to bottom, black 0%, transparent 80%);
  opacity: 0.6;
}

.hero--dynamic .hero-label {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(0, 168, 232, 0.15);
  border: 1px solid rgba(0, 168, 232, 0.35);
  border-radius: 100px;
  backdrop-filter: blur(8px);
}

.hero--dynamic h1 {
  text-shadow: 0 4px 40px rgba(0, 0, 0, 0.4);
  max-width: 720px;
}

.btn-primary {
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  animation: shine-btn 4s ease-in-out infinite;
}

/* Section with animated mesh bg */
.section-with-bg {
  position: relative;
  overflow: hidden;
}

.section-with-bg .section-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, #fff 0%, #f4f7fb 100%),
    url("https://images.unsplash.com/photo-1555066931-4365d14bab8c?auto=format&fit=crop&w=1600&q=60");
  background-size: cover, cover;
  background-blend-mode: normal, soft-light;
  opacity: 0.35;
  animation: line-flow 40s linear infinite;
  pointer-events: none;
}

.section-with-bg > .container {
  position: relative;
  z-index: 1;
}

/* Tile photos */
.tile-card__visual--img {
  background-size: cover !important;
  background-position: center !important;
  position: relative;
}

.tile-card__visual--img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 20%, rgba(12, 30, 61, 0.15) 100%);
  transition: opacity 0.4s;
}

.tile-card:hover .tile-card__visual--img::after {
  opacity: 0.5;
}

.tile-card:hover .tile-card__visual--img {
  transform: scale(1.05);
}

.tile-card__visual {
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  overflow: hidden;
}

.tile-featured__bg {
  background-size: cover !important;
  background-position: center !important;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.tile-featured:hover .tile-featured__bg {
  transform: scale(1.08);
}

.tile-card {
  box-shadow: 0 4px 20px rgba(12, 30, 61, 0.06);
}

.tile-card:hover {
  box-shadow: 0 20px 50px rgba(0, 168, 232, 0.18);
  transform: translateY(-10px) scale(1.01);
}

.tile-featured:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

/* Parallax section */
.section-parallax {
  position: relative;
  overflow: hidden;
}

.section-parallax__bg {
  position: absolute;
  inset: -20% 0;
  background-image: url("https://images.unsplash.com/photo-1497366811353-6870744d04b2?auto=format&fit=crop&w=1920&q=80");
  background-size: cover;
  background-position: center;
  will-change: transform;
}

.section-parallax::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(244, 247, 251, 0.92) 0%, rgba(244, 247, 251, 0.85) 100%);
  z-index: 0;
}

.section-parallax > .container {
  position: relative;
  z-index: 1;
}

/* Product cards with image strip */
.product-card {
  overflow: hidden;
  padding: 0 !important;
}

.product-card__media {
  height: 140px;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s ease;
}

.product-card:hover .product-card__media {
  transform: scale(1.08);
}

.product-card__icon,
.product-card__tag,
.product-card h3,
.product-card p,
.product-card .btn {
  margin-left: 28px;
  margin-right: 28px;
}

.product-card__icon {
  margin-top: -24px;
  position: relative;
  z-index: 2;
  background: #fff;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  box-shadow: var(--shadow);
  font-size: 1.5rem !important;
}

.product-card h3 {
  margin-top: 12px;
}

.product-card p {
  padding-bottom: 8px;
}

.product-card .btn {
  margin-bottom: 28px !important;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 48px rgba(12, 30, 61, 0.12);
}

/* Process steps glow */
.section-process {
  background: linear-gradient(180deg, #fff 0%, #eef4fa 100%);
}

.process-step {
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(8px);
}

.process-step:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0, 168, 232, 0.12);
}

/* CTA dynamic */
.cta-band--dynamic {
  position: relative;
  overflow: hidden;
}

.cta-band__bg {
  position: absolute;
  inset: 0;
  background:
    url("https://images.unsplash.com/photo-1551434678-e076c223a692?auto=format&fit=crop&w=1920&q=80") center/cover no-repeat;
  animation: hero-kenburns 30s ease-in-out infinite alternate;
}

.cta-band--dynamic::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(6, 20, 40, 0.88) 0%, rgba(30, 74, 138, 0.82) 100%);
  z-index: 0;
}

.cta-band--dynamic .container {
  position: relative;
  z-index: 1;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }
.reveal-delay-5 { transition-delay: 0.4s; }

/* Tech tags hover */
.tech-tag {
  transition: transform 0.25s ease, background 0.25s, border-color 0.25s;
}

.tech-tag:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  background: rgba(0, 168, 232, 0.08);
}

/* Subpages hero with image */
.hero-page-bg {
  position: relative;
  overflow: hidden;
}

.hero-page-bg.hero-sm {
  min-height: 320px;
  display: flex;
  align-items: center;
  color: #fff;
}

.hero-page-bg .container {
  position: relative;
  z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
  .hero-bg img,
  .orb,
  .hero-grid-lines,
  .cta-band__bg,
  .btn-primary::after {
    animation: none;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (max-width: 900px) {
  .hero--dynamic {
    min-height: auto;
  }
}
