/* ==========================================================================
   Infinity Power India — International cinematic layer
   Loaded on every page. Motion photography, marquees, glass header,
   live stats and machine-photo cards. Respects prefers-reduced-motion.
   ========================================================================== */

/* ---- Scroll progress ---- */
.cine-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  z-index: 80;
  background: linear-gradient(90deg, #ed2626, #4793ff);
  pointer-events: none;
}

/* ---- Header glass ---- */
.site-header {
  z-index: 40;
  transition: background 0.35s ease, box-shadow 0.35s ease, backdrop-filter 0.35s ease;
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  box-shadow: 0 10px 32px rgba(5, 31, 64, 0.12);
}
.site-header.is-scrolled .header__inner {
  min-height: 68px;
  transition: min-height 0.3s ease;
}

/* ---- Cinematic heroes ---- */
.hero.cinematic-hero,
.cinematic-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  isolation: isolate;
}
.hero.cinematic-hero {
  aspect-ratio: auto;
  min-height: min(92vh, 880px);
  display: flex;
  align-items: flex-end;
  background: #031833;
}
.cinematic-hero:not(.hero) {
  min-height: clamp(340px, 46vh, 520px);
  display: flex;
  align-items: flex-end;
  padding: 0 !important;
  background: #021226 !important;
}
.cinematic-hero > .container,
.cinematic-hero > .au-hero__content {
  position: relative;
  z-index: 4;
  width: 100%;
  padding-top: clamp(72px, 10vw, 140px);
  padding-bottom: clamp(48px, 7vw, 96px);
}
.hero.cinematic-hero .hero__content {
  padding-top: clamp(90px, 12vw, 170px);
  padding-bottom: clamp(108px, 12vw, 148px);
}
.cinematic-hero .hero__image,
.cinematic-hero .hero__wash,
.cinematic-hero .au-hero__bg,
.cinematic-hero .au-hero__overlay {
  display: none;
}
.cinematic-hero::before,
.cinematic-hero::after {
  display: none !important;
  content: none !important;
  background: none !important;
}

.cinematic-hero .container,
.cinematic-hero .au-hero__content {
  position: relative !important;
  z-index: 4 !important;
}

.cinematic-hero:not(.hero) .cine-overlay {
  background:
    linear-gradient(180deg, rgba(2, 14, 36, 0.58) 0%, rgba(2, 14, 36, 0.78) 100%),
    radial-gradient(700px 240px at 90% 110%, rgba(229, 38, 38, 0.2), transparent 65%);
}

.cine-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.cine-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.1s ease;
  overflow: hidden;
}
.cine-slide.is-active {
  opacity: 1;
  z-index: 1;
}
.cine-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  will-change: transform;
}
.cine-slide.is-active img {
  animation: cineKen 8.5s ease-out forwards;
}
@keyframes cineKen {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to { transform: scale(1.16) translate3d(-1.6%, 1.2%, 0); }
}

.cine-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(105deg, rgba(1, 10, 28, 0.88) 0%, rgba(1, 14, 36, 0.62) 42%, rgba(1, 14, 36, 0.28) 72%, rgba(1, 14, 36, 0.22) 100%),
    radial-gradient(800px 280px at 80% 120%, rgba(229, 38, 38, 0.22), transparent 60%);
}
.cine-grid {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0.14;
  background-image:
    linear-gradient(rgba(120, 170, 230, 0.35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 170, 230, 0.35) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(90deg, #000 0%, transparent 70%);
}
.cine-scan {
  position: absolute;
  left: 0;
  right: 0;
  height: 140px;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(transparent, rgba(71, 147, 255, 0.16), transparent);
  animation: cineScan 9s linear infinite;
}
@keyframes cineScan {
  from { top: -140px; }
  to { top: 110%; }
}

.cine-dots {
  position: absolute;
  z-index: 5;
  right: var(--side-padding, 40px);
  bottom: 36px;
  display: flex;
  gap: 8px;
}
.hero.cinematic-hero .cine-dots {
  bottom: 118px;
}
.hero.cinematic-hero .cine-scroll-hint {
  left: auto;
  right: var(--side-padding, 40px);
  bottom: 118px;
  transform: none;
}
.cine-dots button {
  width: 36px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.28);
  cursor: pointer;
}
.cine-dots button.is-active {
  background: #ed2626;
  box-shadow: 0 0 10px rgba(237, 38, 38, 0.6);
}

.cine-scroll-hint {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: #cfe0f5;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  pointer-events: none;
}
.cine-scroll-hint i {
  display: block;
  width: 18px;
  height: 28px;
  border: 1.5px solid rgba(207, 224, 245, 0.55);
  border-radius: 12px;
  position: relative;
}
.cine-scroll-hint i::after {
  content: "";
  position: absolute;
  top: 5px;
  left: 50%;
  width: 3px;
  height: 7px;
  margin-left: -1.5px;
  border-radius: 2px;
  background: #fff;
  animation: cineWheel 1.5s ease-in-out infinite;
}
@keyframes cineWheel {
  0% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(10px); }
}

.hero.cinematic-hero h1 {
  max-width: 760px;
  font-size: clamp(36px, 5.2vw, 64px);
  animation: cineRise 0.9s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}
.hero.cinematic-hero .hero__content > p:not(.eyebrow) {
  animation: cineRise 0.9s 0.12s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}
.hero.cinematic-hero .hero__actions {
  animation: cineRise 0.9s 0.22s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}
.hero.cinematic-hero .hero-pills {
  animation: cineRise 0.9s 0.32s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}
@keyframes cineRise {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}

/* ---- Live stats strip (home) ---- */
.cine-stats {
  position: absolute;
  z-index: 6;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: linear-gradient(180deg, rgba(1, 10, 28, 0.08), rgba(1, 10, 28, 0.9));
  backdrop-filter: blur(10px);
}
.cine-stat {
  padding: 18px 16px 22px;
  text-align: center;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}
.cine-stat:first-child { border-left: 0; }
.cine-stat b {
  display: block;
  font-family: Outfit, sans-serif;
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: #fff;
}
.cine-stat b::after {
  content: "+";
  color: #ed2626;
  margin-left: 2px;
  font-size: 0.7em;
}
.cine-stat span {
  display: block;
  margin-top: 6px;
  color: #b7c9e0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---- Filmstrip marquee ---- */
.cine-marquee {
  background: #07152c;
  overflow: hidden;
  padding: 14px 0;
  border-block: 1px solid rgba(71, 147, 255, 0.16);
}
.cine-marquee__track {
  display: flex;
  gap: 12px;
  width: max-content;
  animation: cineMarquee 48s linear infinite;
}
.cine-marquee:hover .cine-marquee__track {
  animation-play-state: paused;
}
.cine-marquee figure {
  margin: 0;
  position: relative;
  flex: none;
  width: 210px;
  height: 118px;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.cine-marquee img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92);
  transition: transform 0.5s ease, filter 0.4s ease;
}
.cine-marquee figure:hover img {
  transform: scale(1.08);
  filter: saturate(1.1);
}
.cine-marquee figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 18px 10px 8px;
  background: linear-gradient(transparent, rgba(0, 10, 28, 0.88));
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}
@keyframes cineMarquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---- Floating dock ---- */
.cine-dock {
  position: fixed;
  right: 18px;
  bottom: 22px;
  z-index: 45;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cine-dock a,
.cine-dock button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 48px;
  height: 48px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  font: 700 12px/1 'DM Sans', sans-serif;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.cine-dock a:hover,
.cine-dock button:hover {
  transform: translateY(-3px);
}
.cine-dock__wa { background: #1fad4a; }
.cine-dock__inq { background: #ed2626; }
.cine-dock svg { width: 18px; height: 18px; fill: currentColor; }

/* ---- Product / service richness ---- */
.section--products .product-card img {
  height: 168px;
}
.service-card {
  min-height: 168px;
}
.service-card .service-art.is-photo {
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  filter: saturate(0.95) contrast(1.05);
}

/* ---- Shine on cards ---- */
.product-card,
.industry-card,
.project-card,
.cat-card,
.ind-full-card,
.gal-item {
  position: relative;
}
.product-card::after,
.industry-card::after,
.project-card::after,
.cat-card::after,
.ind-full-card::after,
.gal-item::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 38%, rgba(255, 255, 255, 0.22) 50%, transparent 62%);
  transform: translateX(-130%);
  transition: transform 0.7s ease;
}
.product-card:hover::after,
.industry-card:hover::after,
.project-card:hover::after,
.cat-card:hover::after,
.ind-full-card:hover::after,
.gal-item:hover::after {
  transform: translateX(130%);
}

/* ---- Industries machine photo cards ---- */
.indmach-list li.cine-mach {
  padding: 0 0 14px !important;
  overflow: hidden;
  gap: 10px !important;
}
.indmach-list li.cine-mach::before {
  display: none !important;
}
.indmach-list li.cine-mach .cine-mach-thumb {
  width: 100%;
  height: 118px;
  object-fit: cover;
  border-radius: 13px 13px 0 0;
  background: #e8eef6;
  transition: transform 0.55s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.indmach-list li.cine-mach .cine-mach-name {
  padding: 0 10px;
}
.indmach-list li.cine-mach:hover .cine-mach-thumb {
  transform: scale(1.08);
}

/* ---- Image parallax helper ---- */
[data-parallax] {
  will-change: transform;
}

/* ---- Inner page titles over cinema ---- */
.cinematic-hero h1 {
  text-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
}
.cinematic-hero p,
.cinematic-hero .au-hero__tagline {
  color: #d7e6f8 !important;
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .cine-stats { grid-template-columns: repeat(2, 1fr); }
  .cine-dots { right: 16px; bottom: auto; top: 24px; }
  .cine-scroll-hint { display: none; }
  .hero.cinematic-hero { min-height: min(100svh, 760px); }
  .hero.cinematic-hero .hero__content { padding-bottom: 168px; }
  .cine-marquee figure { width: 160px; height: 96px; }
}
@media (max-width: 560px) {
  .cine-dock span { display: none; }
  .cine-dock a,
  .cine-dock button { width: 48px; padding: 0; }
  .cine-stat { padding: 14px 8px 16px; }
  .cine-stat span { font-size: 9px; }
  .cinematic-hero:not(.hero) { min-height: 280px; }
}

@media (prefers-reduced-motion: reduce) {
  .cine-slide.is-active img,
  .cine-scan,
  .cine-marquee__track,
  .cine-scroll-hint i::after,
  .hero.cinematic-hero h1,
  .hero.cinematic-hero .hero__content > p,
  .hero.cinematic-hero .hero__actions,
  .hero.cinematic-hero .hero-pills {
    animation: none !important;
  }
  .cine-slide img { transform: none; }
}

@media print {
  .cine-dock,
  .cine-progress-bar,
  .cine-marquee,
  .cine-scan,
  .cine-grid { display: none !important; }
}
