/* ============================================
   SERVICE-DETAIL.CSS — Service detail page
   ============================================ */

/* === Hero === */
.sdetail-hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  padding: 130px 2rem 80px;
  overflow: hidden;
  gap: 3rem;
}

.sdetail-hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  transition: background 0.5s ease;
}

.sdetail-hero-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,212,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,212,255,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

.sdetail-hero-content {
  position: relative;
  z-index: 2;
  flex: 1;
  max-width: 660px;
}

/* === Hero Breadcrumb is in shared.css === */

.sdetail-tag {
  margin-bottom: 1rem;
}

.sdetail-title {
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  font-weight: 900;
  color: #f1f5f9;
  line-height: 1.1;
  letter-spacing: -0.04em;
  margin-bottom: 1rem;
}

.sdetail-tagline {
  font-size: 1.1rem;
  font-style: italic;
  color: var(--srv-color, #00d4ff);
  margin-bottom: 1.2rem;
  opacity: 0.8;
}

.sdetail-desc {
  font-size: 1rem;
  color: #64748b;
  line-height: 1.85;
  margin-bottom: 2.2rem;
}

/* === Stats row === */
.sdetail-stats {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
  padding: 1.5rem 2rem;
  background: rgba(8,20,48,0.5);
  border: 1px solid rgba(0,212,255,0.1);
  border-radius: 16px;
  backdrop-filter: blur(10px);
}

.sdetail-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sdetail-stat-value {
  font-size: 2rem;
  font-weight: 900;
  background: var(--srv-gradient, linear-gradient(135deg,#00d4ff,#7b2dff));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.sdetail-stat-label {
  font-size: 0.72rem;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 500;
}

.sdetail-stat-div {
  width: 1px;
  height: 36px;
  background: rgba(0,212,255,0.1);
}

.sdetail-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* === Hero Visual (Rings) === */
.sdetail-hero-visual {
  position: relative;
  width: 380px;
  height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  z-index: 2;
}

.sdetail-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid;
  animation: orbit 12s linear infinite;
}

.sdetail-ring-1 { width: 200px; height: 200px; animation-duration: 10s; }
.sdetail-ring-2 { width: 290px; height: 290px; animation-duration: 16s; animation-direction: reverse; }
.sdetail-ring-3 { width: 370px; height: 370px; animation-duration: 24s; border-style: dashed; }

.sdetail-ring::after {
  content: '';
  position: absolute;
  width: 10px; height: 10px;
  background: var(--srv-color, #00d4ff);
  border-radius: 50%;
  top: -5px; left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 14px var(--srv-color, #00d4ff);
}

.sdetail-ring-2::after { background: var(--srv-color, #a855f7); box-shadow: 0 0 14px var(--srv-color,#a855f7); }
.sdetail-ring-3::after { width: 7px; height: 7px; top: -4px; }

.sdetail-icon-center {
  width: 90px;
  height: 90px;
  border-radius: 24px;
  animation: spin 14s linear infinite;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  z-index: 1;
}

/* === Sub-services section === */
.sdetail-subs-section {
  padding: 7rem 2rem;
  position: relative;
  z-index: 1;
}

.sdetail-subs-inner {
  max-width: 1300px;
  margin: 0 auto;
}

.sdetail-subs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}

/* === Sub-service card === */
.ssub-card {
  position: relative;
  background: rgba(8,20,48,0.65);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 22px;
  padding: 2.2rem;
  overflow: hidden;
  backdrop-filter: blur(12px);
  transition: all 0.4s cubic-bezier(0.16,1,0.3,1);
  will-change: transform;
  display: flex;
  flex-direction: column;
}

.ssub-card:hover {
  border-color: color-mix(in srgb, var(--srv-color) 30%, transparent);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 40px var(--srv-glow);
}

.ssub-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.ssub-icon {
  font-size: 2rem;
  width: 56px;
  height: 56px;
  background: color-mix(in srgb, var(--srv-color) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--srv-color) 25%, transparent);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s var(--ease-bounce);
}
.ssub-card:hover .ssub-icon { transform: scale(1.1) rotate(-5deg); }

.ssub-num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--srv-color);
  opacity: 0.4;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.ssub-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #f1f5f9;
  margin-bottom: 0.4rem;
  line-height: 1.3;
  transition: color 0.3s;
}
.ssub-card:hover .ssub-title { color: var(--srv-color); }

.ssub-tagline {
  font-size: 0.78rem;
  font-style: italic;
  color: var(--srv-color);
  opacity: 0.6;
  margin-bottom: 0.9rem;
}

.ssub-desc {
  font-size: 0.87rem;
  color: #64748b;
  line-height: 1.75;
  flex: 1;
  margin-bottom: 1.5rem;
}

.ssub-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--srv-color);
  text-decoration: none;
  padding: 9px 18px;
  border: 1px solid color-mix(in srgb, var(--srv-color) 25%, transparent);
  border-radius: 100px;
  background: color-mix(in srgb, var(--srv-color) 5%, transparent);
  transition: all 0.25s;
  align-self: flex-start;
  margin-top: auto;
}

.ssub-cta:hover {
  background: color-mix(in srgb, var(--srv-color) 14%, transparent);
  border-color: var(--srv-color);
  transform: translateY(-2px);
}

/* === Approach Section === */
.sdetail-approach {
  padding: 7rem 2rem;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.sdetail-approach::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,212,255,0.15), transparent);
}

.sdetail-approach-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.approach-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.approach-text {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.approach-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.approach-bullet {
  font-size: 1.2rem;
  color: var(--c-cyan);
  font-weight: 700;
  margin-top: 2px;
  flex-shrink: 0;
  width: 28px;
}

.approach-item h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #f1f5f9;
  margin-bottom: 6px;
}

.approach-item p {
  font-size: 0.87rem;
  color: #64748b;
  line-height: 1.75;
}

/* === Card Stack Visual === */
.approach-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.approach-card-stack {
  position: relative;
  width: 260px;
  height: 280px;
}

.acs-card {
  position: absolute;
  background: rgba(8,20,48,0.8);
  border: 1px solid rgba(0,212,255,0.15);
  border-radius: 20px;
  padding: 1.2rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  backdrop-filter: blur(10px);
  font-size: 0.9rem;
  font-weight: 600;
  color: #f1f5f9;
  transition: transform 0.4s var(--ease-out);
  width: 200px;
}

.acs-card:hover { transform: translateY(-5px) scale(1.03); }

.acs-icon { font-size: 1.5rem; }

.acs-card-1 { top: 0;   left: 0;   animation: floatA 6s ease-in-out infinite;     z-index: 4; }
.acs-card-2 { top: 30%; right: 0;  animation: floatB 8s ease-in-out infinite 1s;  z-index: 3; }
.acs-card-3 { bottom: 30%; left: 5%; animation: floatC 7s ease-in-out infinite 2s; z-index: 2; }
.acs-card-4 { bottom: 0; right: 5%; animation: floatA 9s ease-in-out infinite 0.5s; z-index: 1; }

/* === Other Services === */
.sdetail-others {
  padding: 6rem 2rem 2rem;
  position: relative;
  z-index: 1;
}

.others-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.other-card {
  display: block;
  padding: 1.8rem;
  background: rgba(8,20,48,0.5);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 18px;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.16,1,0.3,1);
  backdrop-filter: blur(8px);
}

.other-card:hover {
  border-color: color-mix(in srgb, var(--srv-color) 30%, transparent);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}

.other-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.7rem;
}

.other-title {
  font-size: 1rem;
  font-weight: 700;
  color: #f1f5f9;
  transition: color 0.2s;
}

.other-card:hover .other-title { color: var(--srv-color); }

.other-card-top svg {
  color: rgba(255,255,255,0.2);
  transition: all 0.25s;
}

.other-card:hover .other-card-top svg {
  color: var(--srv-color);
  transform: translate(3px,-3px);
}

.other-desc {
  font-size: 0.83rem;
  color: #64748b;
  line-height: 1.6;
}

/* === Responsive === */
@media (max-width: 1100px) {
  .sdetail-subs-grid { grid-template-columns: repeat(2, 1fr); }
  .others-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .sdetail-hero { flex-direction: column; min-height: auto; padding: 130px 1.5rem 60px; }
  .sdetail-hero-visual { display: none; }
  .approach-cols { grid-template-columns: 1fr; gap: 3rem; }
  .approach-visual { display: none; }
}

@media (max-width: 768px) {
  .sdetail-subs-grid { grid-template-columns: 1fr; }
  .others-grid { grid-template-columns: 1fr; }
  .sdetail-stats { padding: 1rem 1.2rem; gap: 1.2rem; }
}
