/* =========================================
   ANIMATIONS & VISUAL POLISH
   ========================================= */

/* Base Scroll Animation Class */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
  /* Smooth easing */
  will-change: opacity, transform;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Timeline Card Hover Effects - "More Life" */
.card-content {
  /* Existing transition: transform 0.3s ease, box-shadow 0.3s ease; is fine but let's enhance */
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
  /* Bouncy lift */
}

.card-content:hover {
  transform: translateY(-8px);
  /* Higher lift */
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
  /* Deeper shadow */
  border-color: rgba(74, 111, 165, 0.3);
  /* Subtle blue border reveal */
}

/* Icon Animation on Hover */
.card-content:hover .card-icon {
  transform: scale(1.1) rotate(5deg);
  background-color: #4a6fa5;
  /* Fill with blue */
  color: white;
  /* Make icon white */
  transition: all 0.3s ease;
}

.card-icon {
  transition: all 0.3s ease;
  /* Ensure transition exists */
}

/* Timeline Point Pulse Animation */
.timeline-point::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: rgba(74, 111, 165, 0.6);
  transform: translate(-50%, -50%) scale(1);
  z-index: -1;
  animation: pulse-blue 2s infinite;
}

@keyframes pulse-blue {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.7;
  }

  70% {
    transform: translate(-50%, -50%) scale(2.5);
    /* Expand */
    opacity: 0;
    /* Fade out */
  }

  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0;
  }
}

/* =========================================
   AQUECEDORES PAGE - SPLIT TIMELINE
   ========================================= */

.aquecedores-page {
  padding-top: 130px;
  padding-bottom: 80px;
  background-color: #EDECEC;
  /* Project Background */
  min-height: 100vh;
}

/* Page Header */
.page-header {
  text-align: center;
  margin-bottom: 50px;
  padding: 0 20px;
}

.page-header h1 {
  color: #05182d;
  /* Dark Blue */
  font-size: 2.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.page-header .subtitle {
  color: #4a6fa5;
  /* Light/Project Blue */
  font-size: 1.1rem;
  font-weight: 400;
  max-width: 700px;
  margin: 0 auto;
}

/* Filter Tabs */
.filter-tabs {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 60px;
  flex-wrap: wrap;
}

.tab-btn {
  background: transparent;
  border: 1px solid #4a6fa5;
  color: #4a6fa5;
  padding: 10px 25px;
  border-radius: 30px;
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.tab-btn.active,
.tab-btn:hover {
  background-color: #4a6fa5;
  color: white;
  box-shadow: 0 5px 15px rgba(74, 111, 165, 0.3);
}

/* Split Timeline Container */
.split-timeline {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 40px;
  /* Increased side padding */
}

/* Central Axis */
.split-axis {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background-color: rgba(74, 111, 165, 0.2);
  /* Very subtle line */
  transform: translateX(-50%);
}

/* Split Row */
.split-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 100px;
  position: relative;
}

.split-row:last-child {
  margin-bottom: 0;
}

/* Side Containers */
.split-side {
  width: 46%;
  /* Leave space for axis */
  position: relative;
  z-index: 1;
}

.split-side.left {
  text-align: right;
  /* Default alignment for left side content, unless it's image */
}

.split-side.right {
  text-align: left;
}

/* Specific Content Alignments */
.split-side.left.image-side {
  display: flex;
  justify-content: flex-end;
  /* Align image card to right (near axis) */
  padding-right: 30px;
}

.split-side.right.content-side {
  padding-left: 30px;
}

.split-side.left.content-side {
  text-align: right;
  padding-right: 30px;
}

.split-side.right.image-side {
  display: flex;
  justify-content: flex-start;
  /* Align image card to left (near axis) */
  padding-left: 30px;
}

/* Central Dot */
.split-point {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 16px;
  background-color: #4a6fa5;
  /* Vibrante Blue */
  border-radius: 50%;
  z-index: 2;
  box-shadow: 0 0 0 4px #EDECEC;
  /* Match background to cut line */
}

/* Pulse Effect for Split Point */
.split-point::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  background-color: rgba(74, 111, 165, 0.4);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: split-pulse 2s infinite;
  z-index: -1;
}

@keyframes split-pulse {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.6;
  }

  100% {
    transform: translate(-50%, -50%) scale(2.5);
    opacity: 0;
  }
}

/* Product Cards */
/* Product Cards - Shared Styles */
.product-content-card {
  background-color: #fff;
  border-radius: 20px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.06);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.product-image-card {
  background: transparent;
  /* Transparent for PNG images */
  border-radius: 20px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.06);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.product-image-card {
  width: 100%;
  max-width: 500px;
  aspect-ratio: 4/3;
  /* Standardize image shape */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  background: transparent;
  /* Allow PNG transparency */
}

.product-content-card {
  padding: 40px;
  text-align: left;
  /* Reset text align inside card */
  position: relative;
  border-top: 4px solid #4a6fa5;
  /* Top accent */
}

.product-content-card:hover,
.product-image-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

/* Tag */
.product-tag {
  position: absolute;
  top: 20px;
  left: 20px;
  background-color: #05182d;
  color: white;
  padding: 5px 15px;
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 20px;
  z-index: 10;
}

/* Img Placeholder */
.img-placeholder {
  font-size: 5rem;
  color: #4a6fa5;
  background: #f4f8fb;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Content Typography */
.product-content-card h2 {
  color: #05182d;
  font-size: 1.8rem;
  margin-bottom: 15px;
  font-weight: 700;
}

.product-content-card .description {
  color: #666;
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 25px;
}

/* Feature List */
.features-list {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
}

.features-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  color: #555;
  font-size: 0.95rem;
}

.features-list li i {
  color: #4a6fa5;
}

/* Buttons */
.btn-cta-primary {
  display: inline-block;
  padding: 12px 30px;
  background-color: #4a6fa5;
  color: white;
  text-decoration: none;
  border-radius: 30px;
  font-weight: 600;
  transition: all 0.3s;
  box-shadow: 0 5px 20px rgba(74, 111, 165, 0.3);
}

.btn-cta-primary:hover {
  background-color: #3b5b88;
  transform: translateY(-2px);
  color: white;
}

.btn-cta-secondary {
  display: inline-block;
  padding: 12px 30px;
  background-color: transparent;
  color: #4a6fa5;
  border: 2px solid #4a6fa5;
  text-decoration: none;
  border-radius: 30px;
  font-weight: 600;
  transition: all 0.3s;
}

.btn-cta-secondary:hover {
  background-color: #4a6fa5;
  color: white;
}

/* Responsive */
@media (max-width: 1100px) {
  .split-row {
    margin-bottom: 60px;
    gap: 20px;
  }

  .split-side {
    width: 48%;
    /* More room for content on tablet */
  }

  .product-content-card {
    padding: 30px;
  }

  .product-content-card h2 {
    font-size: 1.5rem;
  }

  .product-content-card .description {
    font-size: 0.95rem;
  }

  .hero-content-wrapper h1 {
    font-size: 2.8rem;
  }
}

/* Mobile - Break only BELOW iPad (768px) */
@media (max-width: 767px) {
  .split-timeline {
    padding: 0 20px;
  }

  .split-row {
    flex-direction: column !important;
    margin-bottom: 80px;
    gap: 20px;
  }

  .split-axis,
  .split-point {
    display: none;
  }

  .split-side {
    width: 100%;
    text-align: left !important;
    padding: 0 !important;
  }

  .image-side {
    display: block !important;
    order: -1;
    /* Image always on top for mobile */
  }

  .product-image-card {
    margin: 0 auto;
    max-width: 100%;
    aspect-ratio: 16/9;
  }

  .product-content-card {
    padding: 30px;
    border-top: none;
    border-left: 4px solid #4a6fa5;
  }
}

/* =========================================
   BRANDS MARQUEE
   ========================================= */

.brands-section {
  padding: 60px 0;
  background: linear-gradient(180deg, #EDECEC 0%, #f8f8f8 100%);
  overflow: hidden;
}

.brands-title {
  text-align: center;
  color: #05182d;
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 40px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.brands-marquee {
  overflow: hidden;
  position: relative;
  width: 100%;
  padding: 30px 0;
  /* Added vertical padding to prevent clipping on hover scale */
}

.marquee-track {
  display: flex;
  gap: 80px;
  width: max-content;
  animation: marquee-scroll 30s linear infinite;
}

/* Pause on hover */
.brands-marquee:hover .marquee-track {
  animation-play-state: paused;
}

@keyframes marquee-scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.brand-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  min-width: 120px;
  cursor: pointer;
  transition: all 0.4s ease;
  opacity: 0.5;
  filter: grayscale(100%);
}

.brand-item i {
  font-size: 2.5rem;
  color: #555;
  transition: all 0.4s ease;
}

.brand-item span {
  font-size: 0.9rem;
  font-weight: 600;
  color: #666;
  transition: all 0.4s ease;
}

/* Hover Effect - Turn Blue */
.brand-item:hover {
  opacity: 1;
  filter: grayscale(0%);
  transform: scale(1.15);
}

.brand-item:hover i,
.brand-item:hover span {
  color: #4a6fa5;
}