/* 비교 섹션 스타일 */
.comparison-section {
  padding: 20px 0;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafb 50%, #f0f4f7 100%);
  position: relative;
  overflow: hidden;
  max-width: 1800px;
  width: 95vw;
  height: calc(95vh - 100px);
  margin: 120px auto;
  border-radius: 20px;
}

/* 배경 장식 효과 */
.comparison-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle at center,
    rgba(161, 217, 227, 0.05) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.comparison-container {
  max-width: 100%;
  margin: 0 auto;
  padding: 0 40px;
}

.comparison-content {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start; /* 세로 중앙 정렬 */
  gap: 80px;
  position: relative;
  max-width: 1600px;
  margin: 0 auto;
}

/* 좌우 컨텐츠 */
.comparison-left,
.comparison-right {
  width: 100%;
  /* max-width: 450px; */
}

.comparison-header {
  text-align: center;
  margin-bottom: 60px;
  opacity: 0;
  animation: fadeInDown 0.8s ease forwards;
  animation-delay: 0.2s;
}

.comparison-title {
  font-size: 36px;
  font-weight: 700;
  color: #000;
  margin-bottom: 4px; /* 간격 좍힘 */
}

.comparison-subtitle {
  font-size: 18px;
  color: #ff6b00;
  font-weight: 500;
  margin-bottom: 0;
}

/* 비교 항목들 */
.comparison-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.comparison-item {
  background: transparent; /* 배경 투명 */
  /* padding: 25px 0; */
  border: none; /* 테두리 제거 */
  box-shadow: none; /* 그림자 제거 */
  transition: all 0.3s ease;
  position: relative;
}

.comparison-item:hover {
  transform: none; /* 호버 효과 제거 */
}

.comparison-item h4 {
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  color: #000;
  position: relative;
}

/* 제목과 본문 사이 긴 가로줄 */
.item-divider {
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #a1d9e3 0%, #7395d2 50%, #8ab2e6 100%);
  margin-top: 8px;
  margin-bottom: 16px;
}

.comparison-item p {
  font-size: 21px;
  color: #666;
  line-height: 1.5;
  margin: 0;
  word-break: keep-all; /* 줄바꿈 방지 */
}

/* 인용구 섹션 특별 스타일 */
.quote-section {
  background: transparent;
  border: none;
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid #e0e0e0;
}

.quote-section h4 {
  color: #1a73e8;
  font-style: italic;
  font-size: 24px;
  margin-bottom: 8px;
}

/* 중앙 로고 */
.comparison-center {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 40px;
  position: relative;
}

.comparison-logo {
  width: 180px;
  height: 180px;
  object-fit: contain;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.15));
  position: relative;
  z-index: 10;
  animation: heartbeat 2s ease-in-out infinite;
}

/* 심장 박동 애니메이션 */
@keyframes heartbeat {
  0% {
    transform: scale(1);
  }
  14% {
    transform: scale(1.05);
  }
  28% {
    transform: scale(1);
  }
  42% {
    transform: scale(1.05);
  }
  56% {
    transform: scale(1);
  }
  100% {
    transform: scale(1);
  }
}

/* 동심원 효과 */
.comparison-center::before,
.comparison-center::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid rgba(161, 217, 227, 0.3);
  pointer-events: none;
}

.comparison-center::before {
  width: 240px;
  height: 240px;
  animation: ripple 3s ease-out infinite;
}

.comparison-center::after {
  width: 300px;
  height: 300px;
  animation: ripple 3s ease-out infinite 1.5s;
}

/* 추가 동심원 */
.comparison-center .ripple-1,
.comparison-center .ripple-2,
.comparison-center .ripple-3 {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid transparent;
  background: radial-gradient(
    circle,
    transparent 69%,
    rgba(115, 149, 210, 0.2) 70%,
    transparent 71%
  );
  pointer-events: none;
}

.comparison-center .ripple-1 {
  width: 360px;
  height: 360px;
  animation: ripple-fade 4s ease-out infinite;
}

.comparison-center .ripple-2 {
  width: 420px;
  height: 420px;
  animation: ripple-fade 4s ease-out infinite 1.3s;
}

.comparison-center .ripple-3 {
  width: 480px;
  height: 480px;
  animation: ripple-fade 4s ease-out infinite 2.6s;
}

/* 동심원 확산 애니메이션 */
@keyframes ripple {
  0% {
    opacity: 0.8;
    transform: translate(-50%, -50%) scale(0.8);
  }
  50% {
    opacity: 0.4;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.2);
  }
}

@keyframes ripple-fade {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.5);
  }
  30% {
    opacity: 0.3;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.5);
  }
}

/* 로고 주변 광채 효과 */
.comparison-logo::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120%;
  height: 120%;
  background: radial-gradient(
    circle,
    rgba(161, 217, 227, 0.2) 0%,
    transparent 70%
  );
  border-radius: 50%;
  z-index: -1;
  animation: glow 3s ease-in-out infinite;
}

@keyframes glow {
  0%,
  100% {
    opacity: 0.5;
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    opacity: 0.8;
    transform: translate(-50%, -50%) scale(1.1);
  }
}

/* 좌측 특별 스타일 */
.comparison-left .comparison-title {
  color: #000;
}

.comparison-left .comparison-subtitle {
  color: #ff6b00;
}

/* 우측 특별 스타일 */
.comparison-right .comparison-title {
  color: #000;
}

.comparison-right .comparison-subtitle {
  color: #1a73e8;
  opacity: 0.8;
}

/* 애니메이션 효과 */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes rotateIn {
  from {
    opacity: 0;
    transform: scale(0.8) rotate(-10deg);
  }
  to {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

/* 로고 회전 애니메이션 제거 - 심장박동으로 대체 */

/* 반응형 디자인 */
@media (max-width: 1200px) {
  .comparison-content {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .comparison-center {
    order: -1;
    padding: 0;
  }

  .comparison-left,
  .comparison-right {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .comparison-section {
    padding: 80px 0;
  }

  .comparison-title {
    font-size: 28px;
  }

  .comparison-logo {
    width: 150px;
    height: 150px;
  }

  .comparison-item {
    padding: 20px;
  }

  .comparison-item h4 {
    font-size: 18px;
  }

  .comparison-item p {
    font-size: 14px;
  }
}
