/* ========================================
   ESKO — 컴포넌트 CSS
   원본 React 인라인 스타일 → CSS 클래스 변환
   ======================================== */

/* --- 공통 --- */
.pulse-dot { animation: pulse-red 2s infinite; }
.float { animation: float 3s ease-in-out infinite; }

/* --- TickerBand --- */
.ticker-wrap { overflow: hidden; white-space: nowrap; }
.ticker-inner { display: inline-block; animation: ticker 22s linear infinite; }

/* --- Gallery --- */
.card-anim { animation: fadeInUp 0.45s ease forwards; }
.filter-btn-active::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, transparent, rgba(220,38,38,0.15), transparent);
  background-size: 600px 100%;
  animation: shimmer 2.5s infinite linear;
  pointer-events: none;
}

/* --- Partners Marquee --- */
.marquee-track-left  { display: flex; animation: marquee-left 28s linear infinite; }
.marquee-track-right { display: flex; animation: marquee-right 22s linear infinite; }
.marquee-wrap:hover .marquee-track-left,
.marquee-wrap:hover .marquee-track-right { animation-play-state: paused; }

/* --- DynamicShowcase --- */
.sc-word { display: inline-block; animation: sc-word-in 0.65s cubic-bezier(0.22,1,0.36,1) both; }
.sc-line { transform-origin: left center; animation: sc-line-grow 1.2s cubic-bezier(0.22,1,0.36,1) both; }
.sc-stat { animation: sc-stat-in 0.6s cubic-bezier(0.22,1,0.36,1) both; }
.sc-glow-orb { animation: sc-glow-pulse 5s ease-in-out infinite; }
.sc-corner { animation: sc-corner-blink 2.5s ease-in-out infinite; }
.sc-ticker-track { display: flex; white-space: nowrap; animation: sc-ticker 22s linear infinite; }
.sc-ticker-track-rev { display: flex; white-space: nowrap; animation: sc-ticker-rev 28s linear infinite; }
.sc-float-el { animation: sc-float 4s ease-in-out infinite; }

/* --- ServicesSection --- */
.service-card {
  position: relative;
  overflow: hidden;
  transition: transform 0.38s cubic-bezier(0.34,1.4,0.64,1), border-color 0.25s ease, box-shadow 0.3s ease;
}
.service-card:hover {
  transform: translateY(-6px) scale(1.015);
  box-shadow: 0 0 20px rgba(220,38,38,0.12), 0 12px 40px rgba(0,0,0,0.08);
}
.service-card:hover .service-icon { animation: icon-bounce 0.55s ease forwards; }
.service-card::after {
  content: '';
  position: absolute; top: 0; left: -80%;
  width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(220,38,38,0.06), transparent);
  transform: skewX(-15deg); pointer-events: none;
}
.service-card:hover::after { animation: shine-sweep 0.6s ease forwards; }
.service-card .card-underline {
  position: absolute; bottom: 0; left: 0;
  height: 2px;
  width: 0;
  transition: width 0.4s cubic-bezier(0.4,0,0.2,1);
}
.service-card:hover .card-underline { width: 100%; }
.section-num {
  font-family: 'Share Tech Mono', monospace;
  font-size: 80px;
  font-weight: 900;
  color: rgba(220,38,38,0.04);
  position: absolute;
  top: -10px;
  right: -10px;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}
.srv-badge { animation: badge-pop 0.4s cubic-bezier(0.34,1.56,0.64,1) 0.15s both; }

/* --- TestimonialsSection --- */
.t-card {
  position: relative;
  transition: transform 0.32s cubic-bezier(0.34,1.4,0.64,1), border-color 0.25s ease;
}
.t-card:hover { transform: translateY(-6px); }
.t-card:hover .t-border-line { width: 100% !important; }
.t-quote-bg { animation: t-quote-glow 4s ease-in-out infinite; }
.t-badge-pop { animation: t-badge-pop 0.5s cubic-bezier(0.34,1.56,0.64,1) 0.4s both; }

/* --- Footer --- */
.footer-neon-line { animation: neon-top-line 3s ease-in-out infinite; }
.blink-dot { animation: blink-dot 1.8s ease-in-out infinite; }

/* --- Contact --- */
.contact-card { animation: form-glow 4s ease-in-out infinite; }
.contact-scan {
  position: absolute; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(220,38,38,0.2), transparent);
  pointer-events: none;
  animation: scan-horizontal 8s linear infinite;
}

/* --- AboutSection cards --- */
.ek-card { position: relative; overflow: hidden; cursor: pointer; }
.ek-card .ek-img { transition: transform 0.7s ease; }
.ek-card:hover .ek-img { transform: scale(1.08); }

.ek-card .ek-circle {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%) translateY(54%);
  width: 140%;
  aspect-ratio: 1/1;
  border-radius: 9999px;
  background-color: #dc2626;
  transition: transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: 20;
}
.ek-card:hover .ek-circle {
  transform: translateX(-50%) translateY(28%);
}

.ek-card .ek-title-wrap {
  position: absolute;
  bottom: 2.2rem; left: 0; right: 0;
  z-index: 30; text-align: center;
  transition: bottom 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  pointer-events: none;
}
.ek-card:hover .ek-title-wrap { bottom: clamp(8rem, 12vw, 16rem); }

.ek-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  color: white;
  white-space: pre-line;
  line-height: 1.1;
  font-size: clamp(1.6rem, 3.2vw, 4.8rem);
  text-shadow: 0 1px 6px rgba(0,0,0,0.35);
}

@media (max-width: 639px) {
  .ek-title {
    font-size: clamp(2rem, 8vw, 3rem);
  }
  .ek-card:hover .ek-title-wrap { bottom: clamp(5rem, 10vw, 8rem); }
  .ek-card:hover .ek-circle {
    transform: translateX(-50%) translateY(35%);
  }
}

.ek-desc {
  color: rgba(255,255,255,0.88);
  line-height: 1.55;
  font-size: clamp(0.78rem, 1.1vw, 0.95rem);
}
@media (max-width: 639px) {
  .ek-desc { font-size: 0.85rem; }
}

.ek-stat-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  color: white;
  line-height: 1;
  font-size: clamp(1.4rem, 2vw, 3rem);
}
@media (max-width: 639px) {
  .ek-stat-num { font-size: 1.8rem; }
}

.ek-card .ek-desc-wrap {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 30; padding: 0 1.2rem 1.4rem;
  text-align: center; opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.32s ease 0.22s, transform 0.32s ease 0.22s;
  pointer-events: none;
}
.ek-card:hover .ek-desc-wrap { opacity: 1; transform: translateY(0); }

.ek-card .ek-badge {
  position: absolute; bottom: 1.3rem; left: 50%;
  transform: translateX(-50%) translateY(8px);
  z-index: 30; opacity: 0; white-space: nowrap;
  transition: opacity 0.3s ease 0.28s, transform 0.3s ease 0.28s;
}
.ek-card:hover .ek-badge { opacity: 1; transform: translateX(-50%) translateY(0); }

.ek-corner-label-wrap {
  position: absolute; top: 0; right: 0;
  width: 80px; height: 80px;
  overflow: hidden; z-index: 40; pointer-events: none;
  border-radius: 0 0.4rem 0 0;
}
.ek-corner-inner {
  position: absolute; top: 16px; right: -24px;
  width: 100px; text-align: center; padding: 4px 0;
  font-size: 8px; font-weight: 900; letter-spacing: 0.18em;
  color: #fff;
  animation: corner-pop 0.5s cubic-bezier(0.34,1.56,0.64,1) 0.4s both;
  transform: rotate(45deg);
  font-family: 'Share Tech Mono', monospace;
}

.ek-label-strip {
  position: absolute; top: 0; left: 0; right: 0;
  z-index: 35; pointer-events: none;
  animation: label-strip-in 0.5s ease 0.6s both;
}

.ek-card:hover .ek-scan {
  animation: ek-scan 1.5s linear infinite;
}
.ek-scan {
  position: absolute; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), rgba(220,38,38,0.4), rgba(255,255,255,0.2), transparent);
  z-index: 50; pointer-events: none; top: -100%;
}

.ek-card::after {
  content: '';
  position: absolute; inset: 0;
  border: 1px solid rgba(220,38,38,0);
  border-radius: 0;
  pointer-events: none;
  z-index: 60;
  transition: border-color 0.3s ease;
}
.ek-card:hover::after { border-color: rgba(220,38,38,0.35); }

/* --- Business ServiceRow --- */
.service-row { transition: all 0.3s ease; }
.service-row:hover .photo-slot { transform: scale(1.03); }
.photo-slot { transition: transform 0.4s ease; }
.step-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px 4px 4px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  font-family: 'Share Tech Mono', monospace;
}
.item-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 10px;
}
.flow-btn:hover .flow-hover-fill { opacity: 1 !important; }

/* --- Contact form inputs --- */
.esko-input {
  width: 100%;
  background: #141414;
  border: 1px solid rgba(153, 27, 27, 0.25);
  color: #e5e5e5;
  font-size: 0.875rem;
  border-radius: 0.375rem;
  padding: 0.75rem 1rem;
  outline: none;
  transition: border-color 0.2s;
}
.esko-input:focus {
  border-color: rgba(220, 38, 38, 0.5);
}
.esko-input::placeholder {
  color: #6b7280;
}
.esko-label {
  display: block;
  color: white;
  font-size: 10px;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 900;
}
