
/* ========================================
   Services Section
   ======================================== */

.services-section {
  position: relative;
  padding: 120px 0;
  background: var(--main-dark);
  overflow: hidden;
}

/* 배경 그리드 */
.about-background-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(13, 110, 253, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(13, 110, 253, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  opacity: 0.5;
  z-index: 1;
  animation: gridPulse 4s ease-in-out infinite;
}

@keyframes gridPulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.6; }
}

/* 움직이는 그라데이션 구체 */
.floating-orbs {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}

.orb-1 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(13, 110, 253, 0.6), transparent);
  top: 10%;
  left: 10%;
  animation: float1 20s infinite;
}

.orb-2 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(102, 126, 234, 0.5), transparent);
  top: 60%;
  right: 10%;
  animation: float2 15s infinite;
}

.orb-3 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(240, 147, 251, 0.4), transparent);
  bottom: 10%;
  left: 50%;
  animation: float3 18s infinite;
}

@keyframes float1 {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(100px, -50px) scale(1.1);
  }
  66% {
    transform: translate(-50px, 100px) scale(0.9);
  }
}

@keyframes float2 {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(-80px, 80px) scale(1.2);
  }
  66% {
    transform: translate(60px, -60px) scale(0.8);
  }
}

@keyframes float3 {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(-100px, -80px) scale(1.15);
  }
  66% {
    transform: translate(80px, 60px) scale(0.85);
  }
}

/* 빛나는 라인 효과 */
.light-beams {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.beam {
  position: absolute;
  width: 2px;
  height: 100%;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(13, 110, 253, 0.5),
    transparent
  );
  opacity: 0;
  animation: beamMove 8s ease-in-out infinite;
}

.beam-1 {
  left: 20%;
  animation-delay: 0s;
}

.beam-2 {
  left: 50%;
  animation-delay: 2.5s;
}

.beam-3 {
  left: 80%;
  animation-delay: 5s;
}

@keyframes beamMove {
  0% {
    opacity: 0;
    transform: translateY(-100%);
  }
  50% {
    opacity: 0.6;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(100%);
  }
}

.services-section .container {
  position: relative;
  z-index: 2;
}

/* 섹션 헤더 */
.about-header {
  text-align: center;
  margin-bottom: 80px;
}

.about-badge {
  display: inline-block;
  padding: 8px 20px;
  background: linear-gradient(135deg, var(--accent-blue), #667eea);
  color: white;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
  box-shadow: 0 4px 15px rgba(13, 110, 253, 0.3);
  animation: badgePulse 2s infinite;
}

@keyframes badgePulse {
  0% {
    box-shadow: 0 0 0 0 rgba(13, 110, 253, 0.7);
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(13, 110, 253, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(13, 110, 253, 0);
  }
}

.about-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 24px;
  color: var(--text-white);
}

.gradient-text {
  background: linear-gradient(135deg, var(--accent-blue), #667eea, #f093fb);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.about-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.8;
  max-width: 700px;
  margin: 0 auto;
}

/* 카드 그리드 */
.about-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-bottom: 80px;
}

/* 글래스모피즘 카드 */
.about-card {
  position: relative;
  padding: 40px 30px;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.about-card:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(13, 110, 253, 0.3);
  box-shadow: 0 20px 60px rgba(13, 110, 253, 0.2);
}

/* 카드 아이콘 */
.card-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--accent-blue), #667eea);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  box-shadow: 0 8px 24px rgba(13, 110, 253, 0.3);
  transition: transform 0.3s ease;
}

.about-card:hover .card-icon {
  transform: scale(1.1) rotate(5deg);
}

.card-icon i {
  font-size: 32px;
  color: white;
}

.about-card h3 {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-white);
  margin-bottom: 16px;
}

.about-card p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
  margin: 0;
}

/* 카드 글로우 효과 */
.card-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(13, 110, 253, 0.1) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.about-card:hover .card-glow {
  opacity: 1;
}

/* 통계 섹션 (리디자인) */
.stats-container {
  display: grid;
  grid-template-columns: 1.2fr 1.8fr;
  gap: 30px;
  margin-top: 60px;
}

/* 공통 카드 스타일 */
.stat-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 30px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
  border-color: rgba(13, 110, 253, 0.3);
}

/* 메인 통계 (원형 차트) */
.main-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
}

.circular-progress {
  position: relative;
  width: 160px;
  height: 160px;
  margin-bottom: 20px;
}

.circular-progress svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.circular-progress circle {
  fill: none;
  stroke-width: 8;
  stroke-linecap: round;
}

.circular-progress .bg {
  stroke: rgba(255, 255, 255, 0.1);
}

.circular-progress .fg {
  stroke: var(--accent-blue);
  stroke-dasharray: 283; /* 2 * PI * 45 */
  stroke-dashoffset: 283;
  animation: progressAnimation 2s ease-out forwards;
}

@keyframes progressAnimation {
  to {
    stroke-dashoffset: 0; /* 100% 채움 */
  }
}

.value-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.value-container .stat-number {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  color: var(--text-white);
  display: block;
}

.value-container .unit {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.6);
}

.stat-info h4 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 5px;
  color: var(--accent-blue);
}

.stat-info p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

/* 서브 통계 그리드 */
.sub-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.sub-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 25px 15px;
}

.stat-icon-wrapper {
  width: 50px;
  height: 50px;
  background: rgba(13, 110, 253, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
  color: var(--accent-blue);
  font-size: 1.2rem;
}

.stat-text .stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-white);
}

.stat-text .unit {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.6);
  margin-left: 2px;
}

.stat-text p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 5px;
  margin-bottom: 0;
}

/* 반응형 */
@media (max-width: 992px) {
  .stats-container {
    grid-template-columns: 1fr;
  }
  
  .sub-stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .sub-stats-grid {
    grid-template-columns: 1fr;
  }
  
  .sub-stat {
    flex-direction: row;
    justify-content: flex-start;
    text-align: left;
    padding: 20px;
  }
  
  .stat-icon-wrapper {
    margin-bottom: 0;
    margin-right: 20px;
  }
  
  .stat-text p {
    margin-top: 0;
  }
}
