/* Swiper Infinite Marquee Custom CSS */

.project-section-s3 {
  overflow: hidden;
  padding: 80px 0;
  background-color: transparent;
}

.project-wrapper {
  position: relative;
  width: 100%;
}

.project-section-s3 .swiper {
  width: 100%;
  overflow: visible; /* Allows shadows to display correctly */
  margin-bottom: 24px;
}

.project-section-s3 .swiper.s2 {
  margin-bottom: 0;
}

.project-section-s3 .swiper-slide {
  width: 420px; /* Consistent slide width */
  max-width: 90vw;
  height: 315px; /* 4:3 aspect ratio approximately */
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  position: relative;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background-color: #1e293b;
}

/* Seamless infinite marquee linear speed scroll */
.project-section-s3 .swiper-wrapper {
  transition-timing-function: linear !important;
}

.project-box {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.project-section-s3 .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Pixor Template Hover Effect: sliding scale, blur and opacity transitions */
.project-section-s3 .swiper-slide img:first-child {
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  transform: translateX(50%) scaleX(2);
  opacity: 0;
  filter: blur(10px);
  z-index: 2;
}

.project-section-s3 .swiper-slide:hover img:first-child {
  transform: translateX(0) scaleX(1);
  opacity: 1;
  filter: blur(0);
}

.project-section-s3 .swiper-slide:hover img:nth-child(2) {
  transform: translateX(-50%) scaleX(2);
  opacity: 0;
  filter: blur(10px);
}

/* Overlay caption on hover */
.project-box-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(18, 23, 37, 0.95) 0%, rgba(18, 23, 37, 0) 100%);
  padding: 24px 20px 20px;
  color: #fff;
  z-index: 3;
  opacity: 0;
  transform: translateY(12px);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.32, 1);
}

.project-section-s3 .swiper-slide:hover .project-box-caption {
  opacity: 1;
  transform: translateY(0);
}

.project-box-caption h4 {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  font-family: inherit;
}

.project-box-caption p {
  margin: 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
}

/* Premium Lightbox CSS */
.ploart-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(18, 23, 37, 0.94);
  backdrop-filter: blur(8px);
  z-index: 99999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ploart-lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

.ploart-lightbox-content {
  position: relative;
  width: 90%;
  max-width: 900px;
  transform: scale(0.9);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.ploart-lightbox.active .ploart-lightbox-content {
  transform: scale(1);
}

.ploart-lightbox-img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 75vh;
  border-radius: 16px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  object-fit: contain;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.ploart-lightbox-caption {
  color: #fff;
  margin-top: 16px;
  text-align: center;
}

.ploart-lightbox-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 4px;
}

.ploart-lightbox-desc {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
}

.ploart-lightbox-close {
  position: absolute;
  top: -48px;
  right: 0;
  background: none;
  border: none;
  color: #fff;
  font-size: 36px;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s, transform 0.2s;
  padding: 4px;
}

.ploart-lightbox-close:hover {
  color: #BAE900;
  transform: scale(1.1);
}

/* Page Transition styling - hides main content during load, keeping preloader visible */
html.page-loading body > div.flex {
  opacity: 0 !important;
  transform: translateY(8px);
}

body > div.flex {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.18s cubic-bezier(0.16, 1, 0.3, 1), transform 0.18s cubic-bezier(0.16, 1, 0.3, 1) !important;
  will-change: opacity, transform;
}

/* Snappy Top Progress Bar */
.ploart-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--color-primary, var(--primary, #BAE900));
  z-index: 999999;
  width: 0;
  transition: width 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 8px var(--color-primary, var(--primary, #BAE900));
}

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

.parallax-img {
  will-change: transform;
  transform: scale(1.1); /* Prevent margins from showing on scroll translation */
}

/* Preloader Overlay */
.ploart-preloader {
  position: fixed;
  inset: 0;
  background-color: #0f172a; /* Dark slate */
  z-index: 1000000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.15s ease, visibility 0.15s ease;
}

.ploart-preloader.fade-out {
  opacity: 0;
  visibility: hidden;
}

.preloader-content {
  text-align: center;
  color: #fff;
}

.printer-wrapper {
  margin-bottom: 16px;
}

.printer-svg {
  color: #94a3b8;
  overflow: visible;
  display: block;
  margin: 0 auto;
}

.paper-in {
  animation: paper-in-anim 2s infinite linear;
  transform-origin: center top;
}

.paper-out {
  animation: paper-out-anim 2s infinite linear;
  transform-origin: center bottom;
}

.print-line {
  stroke: var(--color-primary, var(--primary, #BAE900)) !important;
  animation: print-line-anim 1s infinite ease-in-out;
  transform-origin: center;
}

.preloader-text {
  font-family: var(--font-display, 'Space Grotesk', sans-serif);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #94a3b8;
  margin: 0;
}

.preloader-text::after {
  content: '...';
  display: inline-block;
  width: 0;
  overflow: hidden;
  vertical-align: bottom;
  animation: preloader-dots 1.5s infinite steps(4);
}

@keyframes paper-in-anim {
  0% {
    transform: translateY(0);
    opacity: 1;
  }
  45%, 100% {
    transform: translateY(4px);
    opacity: 0;
  }
}

@keyframes paper-out-anim {
  0%, 45% {
    transform: translateY(-4px);
    opacity: 0;
  }
  75% {
    transform: translateY(0);
    opacity: 1;
  }
  100% {
    transform: translateY(4px);
    opacity: 0;
  }
}

@keyframes print-line-anim {
  0%, 100% {
    transform: scaleX(0.2);
    opacity: 0;
  }
  30%, 70% {
    transform: scaleX(1);
    opacity: 1;
  }
}

@keyframes preloader-dots {
  to {
    width: 1.25em;
  }
}

/* Custom Product Card Grid Normalization */
.card-grid-custom {
  align-items: stretch !important;
}

.card-grid-custom > a.group {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
}

.card-grid-custom .relative.bg-muted {
  width: 100% !important;
  aspect-ratio: 16 / 10 !important;
  height: auto !important;
}

.card-grid-custom .relative.bg-muted img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

.card-grid-custom .p-6.flex-1 {
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  flex-grow: 1 !important;
}

/* Proteção de Layout: Restringe o tamanho do Banner Hero e Imagens de Cards */
main section .relative > .overflow-hidden.rounded-3xl {
  width: 100% !important;
  aspect-ratio: 4 / 3 !important;
  max-height: 450px !important;
}
@media (min-width: 1024px) {
  main section .relative > .overflow-hidden.rounded-3xl {
    aspect-ratio: 16 / 10 !important;
    max-height: 700px !important;
  }
}

main section img.parallax-img, 
main section .relative > .overflow-hidden.rounded-3xl > img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

/* Proteção para as imagens dos cards de seção */
main section .grid > div img:not(.parallax-img) {
  max-height: 350px;
  width: 100%;
  object-fit: cover;
}

/* Neutralizar animações nativas do template antigo (evita o piscar do texto/typewriter effect) */
h1, h1 *, h2, h2 * {
  animation: none !important;
}
.animate-caret-blink, .typewriter-cursor {
  display: none !important;
}
