/* =============================== */
/* INTERACTIVE FEATURES CSS */
/* =============================== */

/* 파티클 캔버스 */
#particle-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
}

/* 타이핑 효과 커서 */
.typing-text {
  color: #4da3ff;
  border-right: 3px solid #4da3ff;
  padding-right: 5px;
  animation: blink-cursor 0.7s step-end infinite;
}

@keyframes blink-cursor {
  from, to { border-color: transparent; }
  50% { border-color: #4da3ff; }
}

/* 펄스 버튼 효과 */
.pulse-btn {
  position: relative;
  overflow: visible;
}

.pulse-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  border-radius: 30px;
  background: rgba(37, 99, 235, 0.4);
  transform: translate(-50%, -50%);
  animation: pulse-ring 2s ease-out infinite;
  z-index: -1;
}

@keyframes pulse-ring {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.5);
    opacity: 0;
  }
}

/* 스크롤 다운 인디케이터 */
.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: #fff;
  opacity: 0.8;
  animation: bounce 2s infinite;
  z-index: 2;
}

.scroll-indicator .mouse {
  width: 26px;
  height: 42px;
  border: 2px solid rgba(255, 255, 255, 0.8);
  border-radius: 20px;
  position: relative;
}

.scroll-indicator .wheel {
  width: 4px;
  height: 8px;
  background: #fff;
  border-radius: 2px;
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  animation: scroll-wheel 1.5s infinite;
}

.scroll-indicator span {
  font-size: 0.75rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(-10px); }
  60% { transform: translateX(-50%) translateY(-5px); }
}

@keyframes scroll-wheel {
  0% { opacity: 1; top: 8px; }
  100% { opacity: 0; top: 20px; }
}

/* 스크롤 프로그레스 바 */
.scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, #4da3ff, #2563eb, #1e3a8a);
  width: 0%;
  z-index: 10000;
  transition: width 0.1s ease-out;
  box-shadow: 0 0 10px rgba(77, 163, 255, 0.5);
}

/* =============================== */
/* 숫자 통계 섹션 */
/* =============================== */
.stats-section {
  background: linear-gradient(135deg, #f8fbff 0%, #e8f4ff 100%);
  padding: 100px 10%;
  text-align: center;
}

.stats-section h2 {
  font-size: 2.2rem;
  font-weight: 700;
  color: #2563eb;
  margin-bottom: 10px;
}

.stats-section .subtitle {
  font-size: 1rem;
  color: #666;
  margin-bottom: 60px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.stat-item {
  background: #fff;
  border-radius: 20px;
  padding: 40px 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.stat-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #4da3ff, #2563eb);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.stat-item:hover::before {
  transform: scaleX(1);
}

.stat-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(37, 99, 235, 0.15);
}

.stat-item i {
  font-size: 3rem;
  color: #4da3ff;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.stat-item:hover i {
  transform: scale(1.1);
  color: #2563eb;
}

.stat-number {
  font-size: 3.5rem;
  font-weight: 800;
  color: #1e3a8a;
  display: inline;
  line-height: 1;
}

.stat-suffix {
  font-size: 2rem;
  font-weight: 700;
  color: #4da3ff;
  margin-left: 2px;
}

.stat-item p {
  margin-top: 15px;
  color: #666;
  font-size: 1rem;
  font-weight: 500;
}

/* =============================== */
/* 고객 후기 슬라이더 */
/* =============================== */
.testimonials-section {
  background: #fff;
  padding: 100px 10%;
  text-align: center;
  overflow: hidden;
}

.testimonials-section h2 {
  font-size: 2.2rem;
  font-weight: 700;
  color: #2563eb;
  margin-bottom: 10px;
}

.testimonials-section .subtitle {
  font-size: 1rem;
  color: #666;
  margin-bottom: 50px;
}

.testimonial-slider {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  overflow: hidden;
}

.testimonial-track {
  display: flex;
  gap: 30px;
  animation: slide-testimonials 20s linear infinite;
  width: max-content;
}

.testimonial-track:hover {
  animation-play-state: paused;
}

@keyframes slide-testimonials {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.testimonial-card {
  background: linear-gradient(135deg, #f8fbff 0%, #fff 100%);
  border-radius: 20px;
  padding: 35px;
  min-width: 350px;
  max-width: 350px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(77, 163, 255, 0.1);
  transition: all 0.3s ease;
  text-align: left;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(37, 99, 235, 0.12);
  border-color: rgba(77, 163, 255, 0.3);
}

.testimonial-content {
  margin-bottom: 25px;
}

.testimonial-content i {
  font-size: 1.8rem;
  color: #4da3ff;
  opacity: 0.5;
  margin-bottom: 15px;
  display: block;
}

.testimonial-content p {
  font-size: 1rem;
  color: #333;
  line-height: 1.8;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 15px;
  padding-top: 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.author-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4da3ff, #2563eb);
  display: flex;
  align-items: center;
  justify-content: center;
}

.author-avatar i {
  font-size: 1.2rem;
  color: #fff;
}

.author-info strong {
  display: block;
  color: #1e3a8a;
  font-size: 1rem;
  margin-bottom: 3px;
}

.author-info span {
  color: #888;
  font-size: 0.85rem;
}

.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 30px;
}

.testimonial-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ddd;
  cursor: pointer;
  transition: all 0.3s ease;
}

.testimonial-dots .dot.active {
  background: #2563eb;
  transform: scale(1.2);
}

/* =============================== */
/* 실시간 알림 팝업 */
/* =============================== */
.notification-popup {
  position: fixed;
  bottom: 100px;
  left: 30px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.15);
  padding: 20px 25px;
  display: flex;
  align-items: center;
  gap: 15px;
  z-index: 9999;
  transform: translateX(-150%);
  transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  max-width: 350px;
  border-left: 4px solid #2563eb;
}

.notification-popup.show {
  transform: translateX(0);
}

.notification-icon {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4da3ff, #2563eb);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.notification-icon i {
  font-size: 1.2rem;
  color: #fff;
}

.notification-content {
  flex: 1;
}

.notification-text {
  font-size: 0.95rem;
  color: #333;
  margin: 0 0 5px 0;
  font-weight: 500;
}

.notification-time {
  font-size: 0.8rem;
  color: #999;
}

.notification-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #ccc;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  transition: color 0.3s;
}

.notification-close:hover {
  color: #999;
}

/* =============================== */
/* 플로팅 버튼 */
/* =============================== */
.floating-contact {
  display: none !important;
}

.floating-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  text-decoration: none;
}

.floating-btn.main-btn {
  width: auto;
  border-radius: 30px;
  padding: 0 25px;
  background: linear-gradient(135deg, #2563eb, #1e3a8a);
  color: #fff;
  gap: 8px;
}

.floating-btn.main-btn span {
  font-size: 0.95rem;
  font-weight: 600;
}

.floating-btn.main-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.4);
}

.floating-btn.phone-btn {
  background: #25d366;
  color: #fff;
}

.floating-btn.phone-btn:hover {
  background: #20b858;
  transform: scale(1.1);
}

.floating-btn.top-btn {
  background: #fff;
  color: #2563eb;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
}

.floating-btn.top-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.floating-btn.top-btn:hover {
  background: #2563eb;
  color: #fff;
}

.floating-btn i {
  font-size: 1.3rem;
}

/* =============================== */
/* 다크모드 토글 */
/* =============================== */
.dark-mode-toggle {
  display: none !important;
}

.dark-mode-toggle:hover {
  transform: rotate(15deg);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.dark-mode-toggle i {
  font-size: 1.3rem;
  position: absolute;
  transition: all 0.3s ease;
}

.dark-mode-toggle .fa-moon {
  color: #1e3a8a;
  opacity: 1;
}

.dark-mode-toggle .fa-sun {
  color: #f59e0b;
  opacity: 0;
  transform: rotate(-90deg);
}

/* 다크모드 활성화 시 */
body.dark-mode .dark-mode-toggle {
  background: #1e293b;
  border-color: #334155;
}

body.dark-mode .dark-mode-toggle .fa-moon {
  opacity: 0;
  transform: rotate(90deg);
}

body.dark-mode .dark-mode-toggle .fa-sun {
  opacity: 1;
  transform: rotate(0);
}

/* =============================== */
/* 다크모드 전역 스타일 */
/* =============================== */
body.dark-mode {
  background: #0f172a;
  color: #e2e8f0;
}

body.dark-mode .navbar {
  background: rgba(15, 23, 42, 0.95);
  border-bottom: 1px solid #1e293b;
}

body.dark-mode .nav-links a {
  color: #e2e8f0;
}

body.dark-mode .section {
  background: #0f172a !important;
}

body.dark-mode .section h2 {
  color: #60a5fa;
}

body.dark-mode .section .subtitle {
  color: #94a3b8;
}

body.dark-mode .about-card p {
  color: #cbd5e1;
}

body.dark-mode .about-card strong {
  color: #60a5fa;
}

body.dark-mode .service-card,
body.dark-mode .stat-item,
body.dark-mode .testimonial-card {
  background: #1e293b;
  border-color: #334155;
}

body.dark-mode .service-card h3,
body.dark-mode .stat-number {
  color: #60a5fa;
}

body.dark-mode .service-card p,
body.dark-mode .stat-item p {
  color: #94a3b8;
}

body.dark-mode .testimonial-content p {
  color: #cbd5e1;
}

body.dark-mode .author-info strong {
  color: #60a5fa;
}

body.dark-mode .partner-item {
  background: #1e293b;
  border-color: #334155;
}

body.dark-mode .stats-section {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}

body.dark-mode .testimonials-section {
  background: #0f172a;
}

body.dark-mode .notification-popup {
  background: #1e293b;
  border-color: #3b82f6;
}

body.dark-mode .notification-text {
  color: #e2e8f0;
}

body.dark-mode .floating-btn.top-btn {
  background: #1e293b;
  color: #60a5fa;
}

body.dark-mode #business.service-section,
body.dark-mode #business.service-section .service-card {
  background: #0f172a !important;
}

/* =============================== */
/* 반응형 */
/* =============================== */
@media (max-width: 1024px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .stat-item {
    padding: 30px 20px;
  }

  .stat-number {
    font-size: 2.5rem;
  }

  .testimonial-card {
    min-width: 280px;
    max-width: 280px;
  }

  .notification-popup {
    left: 15px;
    right: 15px;
    max-width: none;
    bottom: 80px;
  }

  .floating-contact {
    bottom: 20px;
    right: 20px;
  }

  .floating-btn.main-btn span {
    display: none;
  }

  .floating-btn.main-btn {
    width: 56px;
    padding: 0;
  }

  .dark-mode-toggle {
    top: 80px;
    right: 15px;
    width: 44px;
    height: 44px;
  }

  .scroll-indicator {
    display: none;
  }
}
