/* ═══════════════════════════════════════════════════════════
   PY INTERIORS — animations.css v2
   Scroll progress, back-to-top, nudge, spotlight, shimmer,
   img loaded fade-in, feat-card hover line, section BG texts
═══════════════════════════════════════════════════════════ */

/* ── SCROLL PROGRESS ─────────────────────────────────────── */
#scroll-progress {
  position: fixed; top: 0; left: 0; z-index: 1002;
  height: 2px; background: var(--red);
  width: 0%; transition: width 0.1s linear;
  pointer-events: none;
}

/* ── BACK TO TOP ─────────────────────────────────────────── */
#back-to-top {
  position: fixed; bottom: 96px; left: 30px; z-index: 800;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--dark2); border: 1px solid rgba(245,237,228,0.15);
  color: var(--ivory2); font-size: 13px;
  display: flex; align-items: center; justify-content: center;
  cursor: none; opacity: 0; pointer-events: none;
  transition: opacity 0.3s, transform 0.3s, background 0.3s;
  transform: translateY(10px);
}
#back-to-top.show { opacity: 1; pointer-events: all; transform: translateY(0); }
#back-to-top:hover { background: var(--red); border-color: var(--red); }

/* ── FLOATING ENQUIRY NUDGE ──────────────────────────────── */
.float-enquiry-nudge {
  position: fixed; bottom: 96px; right: 30px; z-index: 800;
  background: var(--dark);
  border: 1px solid rgba(235,84,63,0.28);
  border-radius: 10px; padding: 18px 20px 16px;
  max-width: 230px;
  box-shadow: 0 12px 48px rgba(0,0,0,0.4);
  opacity: 0; transform: translateY(18px) scale(0.95);
  pointer-events: none;
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.float-enquiry-nudge.show { opacity: 1; transform: translateY(0) scale(1); pointer-events: all; }
.fen-close {
  position: absolute; top: 8px; right: 10px;
  font-size: 14px; color: rgba(245,237,228,0.35);
  cursor: none; background: none; border: none;
  font-family: var(--font-ui); line-height: 1; padding: 2px 4px;
}
.fen-close:hover { color: var(--red); }
.float-enquiry-nudge p { font-size: 13px; color: rgba(245,237,228,0.65); line-height: 1.55; }

/* ── CURSOR SPOTLIGHT on DARK SECTIONS ──────────────────── */
.section-services, .section-process, .section-testimonials,
.portfolio-grid-section, .section-featured {
  --cx: 50%; --cy: 50%;
}
.section-services::after,
.section-featured::after,
.portfolio-grid-section::after {
  content: '';
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background: radial-gradient(
    500px circle at var(--cx) var(--cy),
    rgba(235,84,63,0.035),
    transparent 60%
  );
}
/* Keep BG quotes etc. from interfering */
.section-testimonials::after {
  pointer-events: none;
  z-index: 0;
}

/* ── LAZY IMG FADE-IN ────────────────────────────────────── */
img[loading="lazy"] {
  opacity: 0; transition: opacity 0.55s ease;
}
img[loading="lazy"].loaded { opacity: 1; }

/* ── GLOWING HERO TITLE ──────────────────────────────────── */
.hero-title em {
  animation: glowPulse 3.5s ease-in-out infinite;
}
@keyframes glowPulse {
  0%,100% { text-shadow: 0 0 80px rgba(235,84,63,0.25); }
  50%     { text-shadow: 0 0 120px rgba(235,84,63,0.45), 0 0 40px rgba(235,84,63,0.2); }
}

/* ── PORTFOLIO ITEM SHIMMER LOADING ──────────────────────── */
.pi-img::before {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, transparent 0%, rgba(245,237,228,0.04) 50%, transparent 100%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  pointer-events: none;
}
@keyframes shimmer { from{background-position:-200% 0} to{background-position:200% 0} }

/* ── ABOUT IMAGES LOADED SCALE-IN ────────────────────────── */
.about-img-main img,
.about-img-float img {
  transform: scale(1.05); opacity: 0;
  transition: transform 0.8s var(--ease), opacity 0.5s;
}
.about-img-main img.loaded,
.about-img-float img.loaded { transform: scale(1); opacity: 1; }

/* ── SERVICE CARD INNER HIGHLIGHT ───────────────────────── */
.service-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 2px; background: var(--red); transform: scaleX(0);
  transition: transform 0.4s var(--ease); transform-origin: left; z-index: 2;
}
.service-card:hover::before { transform: scaleX(1); }

/* ── PROCESS STEP GLOW ───────────────────────────────────── */
.process-step:hover .ps-icon {
  box-shadow: 0 0 24px rgba(235,84,63,0.4);
}

/* ── NUM CARD ICON BOUNCE ────────────────────────────────── */
.num-card:hover i { animation: iconBounce 0.5s ease; }
@keyframes iconBounce { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-6px)} }

/* ── TCARD ENTRANCE ──────────────────────────────────────── */
.tslide.active .tcard {
  animation: tcardIn 0.5s var(--ease) both;
}
@keyframes tcardIn { from{opacity:0;transform:translateY(16px)} to{opacity:1;transform:translateY(0)} }

/* ── MG ITEM STAGGER ─────────────────────────────────────── */
.mg-item { opacity: 0; transform: scale(0.97); transition: opacity 0.5s, transform 0.5s; }
.mg-item.visible { opacity: 1; transform: scale(1); }
.mg-item:nth-child(1){transition-delay:0s}    .mg-item:nth-child(2){transition-delay:0.06s}
.mg-item:nth-child(3){transition-delay:0.12s} .mg-item:nth-child(4){transition-delay:0.18s}
.mg-item:nth-child(5){transition-delay:0.24s} .mg-item:nth-child(6){transition-delay:0.30s}

/* ── OTHER INPUT WRAP ────────────────────────────────────── */
.other-input-wrap {
  max-height: 0; overflow: hidden; opacity: 0;
  transition: max-height 0.4s var(--ease), opacity 0.3s;
  margin-bottom: 0;
}
.other-input-wrap.show { max-height: 100px; opacity: 1; margin-bottom: 16px; }

/* ── ACTIVE LABEL ────────────────────────────────────────── */
.form-group label.active-label { color: var(--red) !important; }

/* ── HERO STATS PULSE ────────────────────────────────────── */
.stat strong.counted {
  animation: statPop 0.4s var(--ease) both;
}
@keyframes statPop { from{transform:scale(0.85);opacity:0.6} to{transform:scale(1);opacity:1} }

/* ── PORTFOLIO HERO PARTICLES ────────────────────────────── */
.ph-particle {
  position: absolute; width: 5px; height: 5px;
  border-radius: 50%; background: var(--red); opacity: 0.35;
  animation: floatPart 4s ease-in-out infinite;
}
@keyframes floatPart { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-20px)} }

/* ── PORTFOLIO COUNT BAR ─────────────────────────────────── */
.portfolio-count-bar {
  background: rgba(26,18,8,0.97); padding: 12px 0;
  border-bottom: 1px solid rgba(245,237,228,0.06);
}
.portfolio-count-bar .container {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1400px; margin: 0 auto; padding: 0 40px;
}
#count-label { font-size: 12px; color: rgba(245,237,228,0.38); }
#count-label strong { color: var(--red); }
.view-toggle { display: flex; gap: 4px; }
.vt-btn {
  width: 32px; height: 32px; border-radius: 2px;
  border: 1px solid rgba(245,237,228,0.1);
  color: rgba(245,237,228,0.32); font-size: 11px;
  display: flex; align-items: center; justify-content: center;
  cursor: none; transition: 0.3s; background: none;
}
.vt-btn.active, .vt-btn:hover { background: var(--red); border-color: var(--red); color: var(--ivory); }

/* ── PORTFOLIO VIDEO REEL ────────────────────────────────── */
.portfolio-reel { height: 460px; position: relative; overflow: hidden; }
.reel-inner { position: relative; height: 100%; }
.reel-bg { position: absolute; inset: 0; }
.reel-bg video { width: 100%; height: 100%; object-fit: cover; }
.reel-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(26,18,8,0.85), rgba(67,89,100,0.75)); }
.reel-content {
  position: relative; z-index: 1; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 40px;
}
.reel-content .section-eyebrow { color: var(--gold); }
.reel-content h2 { font-family: var(--font-display); font-size: clamp(32px,4.2vw,56px); color: var(--ivory); font-weight: 300; margin-bottom: 10px; }
.reel-content h2 em { font-style: italic; color: var(--gold); }
.reel-content p { font-size: 14px; color: rgba(245,237,228,0.5); margin-bottom: 32px; }
.reel-play-btn {
  width: 74px; height: 74px; border-radius: 50%;
  border: 2px solid rgba(245,237,228,0.4); color: var(--ivory); font-size: 20px;
  display: flex; align-items: center; justify-content: center;
  cursor: none; transition: 0.3s; background: rgba(235,84,63,0.28); backdrop-filter: blur(10px);
  animation: playPulse 2.2s infinite;
}
.reel-play-btn:hover { background: var(--red); border-color: var(--red); transform: scale(1.12); }
.reel-play-btn.is-playing { background: var(--red); border-color: var(--red); }
.reel-play-btn.is-playing { animation: none; }
@keyframes playPulse { 0%,100%{box-shadow:0 0 0 0 rgba(235,84,63,0.4)} 50%{box-shadow:0 0 0 18px rgba(235,84,63,0)} }

/* ── LOAD MORE BTN ───────────────────────────────────────── */
.btn-load-more {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 15px 44px; border: 1.5px solid rgba(245,237,228,0.15);
  color: rgba(245,237,228,0.55); font-size: 12px; letter-spacing: 0.18em;
  text-transform: uppercase; font-weight: 600; background: none; border-radius: 2px;
  cursor: none; transition: 0.3s; font-family: var(--font-ui);
}
.btn-load-more:hover { background: var(--red); border-color: var(--red); color: var(--ivory); transform: translateY(-2px); }
.btn-load-more i { transition: transform 0.3s; }
.btn-load-more:hover i { transform: translateY(4px); }

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 768px) {
  .float-enquiry-nudge { display: none; }
  #back-to-top { left: 16px; bottom: 88px; }
  .hero-side-text { display: none; }
}
@media (max-width: 600px) {
  .portfolio-count-bar .container { padding: 0 20px; }
  .reel-content { padding: 24px 20px; }
}
