/* ============================================================
   TROIX — Services Page Styles
   ============================================================ */

/* ─── Services Tab Nav ─── */
.services-tabs-nav {
  position: sticky;
  top: var(--navbar-h);
  z-index: 100;
  background: rgba(5,7,15,0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--clr-border);
  padding-block: 0;
}
.services-tabs {
  display: flex;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.services-tabs::-webkit-scrollbar { display: none; }
.services-tab {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--clr-text-muted);
  padding: 1rem 1.25rem;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color var(--transition-base), border-color var(--transition-base);
}
.services-tab:hover { color: var(--clr-text); }
.services-tab.active {
  color: var(--clr-primary-light);
  border-bottom-color: var(--clr-primary);
}

/* ─── Service Section Layout ─── */
.service-section__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}
.service-section__grid--reverse .service-section__content { order: 2; }
.service-section__grid--reverse .service-section__visual { order: 1; }
.service-section__desc {
  color: var(--clr-text-muted);
  line-height: 1.85;
  margin-bottom: 1rem;
  font-size: 1.0rem;
}
.service-section__features {
  margin: 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}
.service-section__features li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9375rem;
  color: var(--clr-text-muted);
}
.feature-icon {
  color: var(--clr-primary-light);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}
.service-section__tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
}
.tech-tag {
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.3rem 0.875rem;
  border-radius: var(--radius-full);
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  color: var(--clr-text-muted);
  transition: all var(--transition-base);
}
.tech-tag:hover {
  background: rgba(59,130,246,0.1);
  border-color: rgba(59,130,246,0.25);
  color: var(--clr-primary-light);
}

/* ─── Service Visuals ─── */
.service-section__visual { display: flex; justify-content: center; }
.service-visual { position: relative; width: 100%; max-width: 400px; }

/* Code Window */
.sv-code-window {
  background: #0d1117;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  animation: floatCard 4s ease-in-out infinite;
}
.sv-code-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1.25rem;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.sv-filename {
  font-size: 0.8rem;
  color: var(--clr-text-faint);
  font-family: 'Courier New', monospace;
  margin-left: auto;
}
.sv-code-body {
  padding: 1.5rem;
  font-family: 'Courier New', monospace;
  font-size: 0.85rem;
  line-height: 1.9;
}
.sv-line { color: var(--clr-text); }
.sv-indent { padding-left: 1.5rem; }
.sv-indent-2 { padding-left: 3rem; }
.sv-comment { color: #6a7383; }
.sv-cursor {
  display: inline-block;
  width: 2px; height: 1.1em;
  background: var(--clr-primary);
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: cursorBlink 1s step-end infinite;
}
@keyframes cursorBlink { 0%,100% { opacity: 1; } 50% { opacity: 0; } }

/* Floating Badges */
.sv-badge {
  position: absolute;
  background: rgba(11,14,26,0.92);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  padding: 0.625rem 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--clr-text);
  backdrop-filter: blur(12px);
  white-space: nowrap;
  animation: floatCard 3s ease-in-out infinite;
}
.sv-badge--1 { bottom: -20px; left: 10px; animation-delay: 0.5s; }
.sv-badge--2 { top: -20px; right: -10px; animation-delay: 1.5s; }

/* Phone mock */
.sv-phone {
  width: 200px;
  margin: 0 auto;
  background: #0d1117;
  border: 6px solid rgba(255,255,255,0.1);
  border-radius: 30px;
  padding: 16px 12px;
  box-shadow: var(--shadow-lg);
  animation: floatCard 4s ease-in-out infinite;
}
.sv-phone-screen { background: var(--clr-bg-3); border-radius: 18px; overflow: hidden; padding: 12px 10px 8px; min-height: 280px; display: flex; flex-direction: column; }
.sv-phone-status { width: 60px; height: 6px; background: rgba(255,255,255,0.08); border-radius: 3px; margin: 0 auto 12px; }
.sv-app-header { font-family: var(--font-display); font-size: 0.75rem; font-weight: 700; color: var(--clr-heading); margin-bottom: 10px; }
.sv-app-card { height: 70px; background: var(--grad-primary); border-radius: 10px; margin-bottom: 10px; opacity: 0.8; }
.sv-app-list { display: flex; flex-direction: column; gap: 6px; flex-grow: 1; }
.sv-app-list-item { height: 20px; background: var(--clr-surface); border-radius: 4px; }
.sv-app-list-item--short { width: 70%; }
.sv-app-tabs { display: flex; justify-content: space-around; padding-top: 8px; border-top: 1px solid var(--clr-border); font-size: 0.9rem; }
.sv-badge--mobile-1 { bottom: 0; left: -40px; animation-delay: 0.5s; }
.sv-badge--mobile-2 { top: 0; right: -40px; animation-delay: 1.5s; }

/* Design Board */
.sv-design-board {
  background: var(--clr-bg-3);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  box-shadow: var(--shadow-lg);
  animation: floatCard 4s ease-in-out infinite;
}
.sv-design-comp--nav { height: 24px; background: rgba(255,255,255,0.06); border-radius: 4px; }
.sv-design-row { display: grid; grid-template-columns: 2fr 1fr; gap: 0.75rem; }
.sv-design-comp--hero { height: 100px; background: var(--grad-card); border: 1px solid var(--clr-border); border-radius: 8px; }
.sv-design-comp--side { background: rgba(59,130,246,0.1); border: 1px solid rgba(59,130,246,0.2); border-radius: 8px; }
.sv-design-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 0.5rem; }
.sv-design-card { height: 48px; background: rgba(255,255,255,0.04); border: 1px solid var(--clr-border); border-radius: 6px; }
.sv-design-card--accent { background: rgba(139,92,246,0.1); border-color: rgba(139,92,246,0.2); }
.sv-badge--design-1 { bottom: -20px; right: 10px; animation-delay: 0.5s; }
.sv-badge--design-2 { top: -20px; left: 10px; animation-delay: 1.5s; }

/* No-code board */
.sv-nocode-board {
  background: var(--clr-bg-3);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-lg);
  animation: floatCard 4s ease-in-out infinite;
}
.sv-nc-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--clr-heading);
}
.sv-nc-logo { font-size: 1.25rem; }
.sv-nc-blocks { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; }
.sv-nc-block {
  width: 100%;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 500;
  text-align: center;
}
.sv-nc-block--blue { background: rgba(59,130,246,0.12); border: 1px solid rgba(59,130,246,0.25); color: var(--clr-primary-light); }
.sv-nc-block--purple { background: rgba(139,92,246,0.12); border: 1px solid rgba(139,92,246,0.25); color: #a78bfa; }
.sv-nc-block--green { background: rgba(16,185,129,0.12); border: 1px solid rgba(16,185,129,0.25); color: var(--clr-success); }
.sv-nc-arrow { color: var(--clr-text-faint); font-size: 1.25rem; line-height: 1; }
.sv-nc-footer { text-align: center; margin-top: 1.25rem; font-family: var(--font-display); font-size: 0.8rem; font-weight: 700; color: var(--clr-text-faint); letter-spacing: 0.1em; text-transform: uppercase; }

/* Team grid */
.sv-team-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.sv-team-card {
  background: var(--grad-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: border-color var(--transition-base);
}
.sv-team-card:hover { border-color: var(--clr-border-active); }
.sv-team-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}
.sv-team-name { font-size: 0.8rem; font-weight: 600; color: var(--clr-heading); }
.sv-team-role { font-size: 0.72rem; color: var(--clr-text-faint); margin-bottom: 3px; }
.sv-team-status { font-size: 0.7rem; font-weight: 600; padding: 2px 7px; border-radius: var(--radius-full); }
.sv-team-status--available { background: rgba(16,185,129,0.12); color: var(--clr-success); }
.sv-team-status--busy { background: rgba(245,158,11,0.12); color: #f59e0b; }
.sv-badge--res-1 { bottom: -30px; left: 50%; transform: translateX(-50%); animation-delay: 1s; }

/* Resources Plans */
.resources-plans {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}
.resources-plan {
  flex: 1;
  min-width: 100px;
  padding: 1rem;
  background: var(--grad-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  text-align: center;
}
.resources-plan--featured {
  background: rgba(59,130,246,0.08);
  border-color: rgba(59,130,246,0.25);
}
.resources-plan__name {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--clr-heading);
  margin-bottom: 4px;
}
.resources-plan--featured .resources-plan__name { color: var(--clr-primary-light); }
.resources-plan__detail { font-size: 0.75rem; color: var(--clr-text-faint); }

/* Responsive */
@media (max-width: 1024px) {
  .service-section__grid { grid-template-columns: 1fr; }
  .service-section__grid--reverse .service-section__content,
  .service-section__grid--reverse .service-section__visual { order: unset; }
  .service-section__visual { display: none; }
}
@media (max-width: 768px) {
  .services-tabs-nav { top: 60px; }
  .services-tab { padding: 0.875rem 1rem; font-size: 0.8rem; }
}
