/* Comparison Section Styles - Traditional vs AAYUNA Approach */

.comparison-section {
  padding: 2rem 0;
  background: #fff;
}

.comparison-section .container-xl {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Toggle Buttons */
.comparison-toggle-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 2.5rem;
}

.comparison-toggle {
  display: inline-flex;
  background: #f5f5f5;
  border-radius: 30px;
  padding: 4px;
  gap: 4px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.comparison-toggle-btn {
  padding: 0.6rem 1.5rem;
  border: none;
  border-radius: 25px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  background: transparent;
  color: #666;
}

.comparison-toggle-btn.active {
  background: linear-gradient(135deg, #FF6B00 0%, #ff8533 100%);
  color: #fff;
  box-shadow: 0 4px 12px rgba(255, 107, 0, 0.3);
}

.comparison-toggle-btn:not(.active):hover {
  background: rgba(255, 107, 0, 0.1);
  color: #FF6B00;
}

.toggle-vs {
  display: flex;
  align-items: center;
  padding: 0 0.5rem;
  font-weight: 600;
  color: #999;
  font-size: 0.85rem;
}

/* Main Comparison Grid */
.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

/* Comparison Column */
.comparison-column {
  background: #fafafa;
  border-radius: 16px;
  padding: 1rem;
  border: 1px solid #e0e0e0;
  transition: all 0.3s ease;
}

.comparison-column:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.comparison-column.traditional {
  border-top: 4px solid #888;
  background: linear-gradient(135deg, #f0f0f0 0%, #e5e5e5 100%);
}

.comparison-column.aayuna {
  border-top: 4px solid #FF6B00;
  background: linear-gradient(135deg, #fff5eb 0%, #ffe8d6 100%);
}

/* Column Header */
.column-header {
  text-align: center;
  margin-bottom: 1rem;
}

.column-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
}

.comparison-column.traditional .column-title {
  color: #555;
}

.comparison-column.aayuna .column-title {
  color: #FF6B00;
}

/* Image Container */
.comparison-image-container {
  position: relative;
  margin-bottom: 1.5rem;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  padding: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.comparison-image {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  display: block;
  border-radius: 8px;
  object-fit: contain;
}

/* ============================================
   ANCHOR POINTS & LABEL LINES
   ============================================ */

/* Anchor points - invisible markers on the image */
.traditional-pic-anchor,
.traditional-fiber-anchor,
.aayuna-pic-anchor,
.aayuna-fiber-anchor {
  position: absolute;
  width: 0;
  height: 0;
  z-index: 10;
  pointer-events: none;
}

/* TRADITIONAL - PIC Mode anchor */
.traditional-pic-anchor {
  left: 25%;
  top: 49%;
}

/* TRADITIONAL - Fiber Mode anchor */
.traditional-fiber-anchor {
  right: 58%;
  top: 61%;
}

/* AAYUNA - PIC Mode anchor */
.aayuna-pic-anchor {
  left: 26%;
  top: 50%;
}

/* AAYUNA - Fiber Mode anchor */
.aayuna-fiber-anchor {
  right: 58%;
  top: 67%;
}

/* Text labels - shared styles */
.comparison-label {
  position: absolute;
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  z-index: 10;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* TRADITIONAL - PIC label */
.comparison-label.traditional-pic-label {
  left: 8%;
  bottom: 12%;
  background: #2ecc71;
  color: #fff;
}

/* TRADITIONAL - Fiber label */
.comparison-label.traditional-fiber-label {
  right: 58%;
  bottom: 12%;
  background: #e91e63;
  color: #fff;
}

/* AAYUNA - PIC label */
.comparison-label.aayuna-pic-label {
  left: 8%;
  bottom: 12%;
  background: #2ecc71;
  color: #fff;
}

/* AAYUNA - Fiber label */
.comparison-label.aayuna-fiber-label {
  right: 58%;
  bottom: 12%;
  background: #e91e63;
  color: #fff;
}

/* SVG Line Connector */
.comparison-line-connector {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 5;
  overflow: visible;
}

.comparison-line-connector line {
  stroke-linecap: round;
  stroke-width: 2;
  transition: stroke-dashoffset 1s ease-out;
}

/* Line animation - starts hidden, animates when visible */
.comparison-line-connector line.animate {
  stroke-dashoffset: 0 !important;
}


/* Bullet Points */
.comparison-points {
  list-style: none;
  padding: 0;
  margin: 0;
}

.comparison-points li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  font-size: 1rem;
  line-height: 1.5;
  color: #444;
}

.comparison-points li:last-child {
  border-bottom: none;
}

.point-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.comparison-column.traditional .point-icon {
  background: #ddd;
  color: #666;
}

.comparison-column.aayuna .point-icon {
  background: linear-gradient(135deg, #FF6B00 0%, #ff8533 100%);
  color: #fff;
}

.point-icon svg {
  width: 12px;
  height: 12px;
}

/* Responsive */
@media (max-width: 992px) {
  .comparison-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .comparison-title {
    font-size: 1.75rem;
    padding: 0 1rem;
  }

  .comparison-toggle-btn {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }
}

@media (max-width: 576px) {
  .comparison-section {
    padding: 1.5rem 0;
  }

  .comparison-title {
    font-size: 1.4rem;
  }

  .comparison-column {
    padding: 1rem;
  }

  .column-title {
    font-size: 1.25rem;
  }

  .comparison-image-container {
    height: 200px;
  }

  .comparison-points li {
    font-size: 0.85rem;
    padding: 0.6rem 0;
  }

  .image-label {
    font-size: 0.65rem;
    padding: 0.25rem 0.5rem;
  }
}