/*
 * Niyutam Services Carousel — services-carousel.css
 * Depends on Satoshi already loaded via nav.css @import.
 */

/* ─── Design tokens ─────────────────────────────────────────── */
:root {
  --sc-bg-start:      #0B0F1A;
  --sc-bg-end:        #06080E;
  --sc-card-bg:       rgba(255, 255, 255, 0.03);
  --sc-accent:        #A3FF00;
  --sc-text:          #ffffff;
  --sc-text-muted:    rgba(255, 255, 255, 0.6);
  --sc-border-radius: 20px;
  --sc-gap:           24px;
  --sc-font:          'Satoshi', system-ui, sans-serif;
  --sc-font-head:     'Clash Display', system-ui, sans-serif;
}

/* ─── Scoped reset ──────────────────────────────────────────── */
.services-carousel *,
.services-carousel *::before,
.services-carousel *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ─── Section shell ─────────────────────────────────────────── */
.services-carousel {
  background: linear-gradient(135deg, var(--sc-bg-start) 0%, var(--sc-bg-end) 100%);
  padding-block: clamp(4rem, 8vw, 6.5rem);
  position: relative;
  overflow: hidden;
}

/* ─── Particles background ──────────────────────────────────── */
.services-carousel__bg-particles {
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(circle at 15% 50%, rgba(163, 255, 0, 0.03) 0%, transparent 50%),
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 100% 100%, 40px 40px, 40px 40px;
  background-position: 0 0, center center, center center;
  opacity: 0.5;
  pointer-events: none;
}

/* ─── Container ─────────────────────────────────────────────── */
.services-carousel__container {
  max-width: 1200px;
  margin: 0 auto;
  padding-inline: clamp(1rem, 4vw, 3rem);
  position: relative;
  z-index: 2;
}

/* ─── Header row ────────────────────────────────────────────── */
.services-carousel__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}

.services-carousel__heading {
  font-family: var(--sc-font-head);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--sc-text);
  line-height: 1.1;
}

.services-carousel__sub {
  font-family: var(--sc-font);
  font-size: 1rem;
  color: var(--sc-text-muted);
  margin-top: 0.5rem;
  line-height: 1.5;
}

/* ─── Track wrapper — clips the peek ───────────────────────── */
.services-carousel__track-outer {
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  /* Use mask to fade edges for a seamless marquee look */
  mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

/* ─── Flex track (Infinite Marquee) ─────────────────────────── */
.services-carousel__track {
  padding-top: 20px;
  display: flex;
  gap: var(--sc-gap);
  list-style: none;
  width: max-content;
  animation: sc-marquee 30s linear infinite;
}

.services-carousel__track:hover {
  animation-play-state: paused;
}

@keyframes sc-marquee {
  0% { transform: translateX(0); }
  /* Translate left by 50% plus half a gap since the content is doubled perfectly */
  100% { transform: translateX(calc(-50% - (var(--sc-gap) / 2))); }
}

/* ─── Card ──────────────────────────────────────────────────── */
.services-carousel__card {
  width: clamp(280px, 80vw, 360px);
  flex: 0 0 auto;
  background: var(--sc-card-bg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--sc-border-radius);
  padding: 2rem;
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 290px;
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1),
              box-shadow 0.3s cubic-bezier(0.25, 1, 0.5, 1),
              border-color 0.3s ease;
}

.services-carousel__card:hover {
  transform: scale(1.03) translateY(-5px);
  box-shadow: 0 0 30px rgba(163, 255, 0, 0.2), 0 20px 40px rgba(0, 0, 0, 0.4);
  border-color: var(--sc-accent);
}

/* ─── Badge ─────────────────────────────────────────────────── */
.services-carousel__badge {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 4px 12px;
  border-radius: 99px;
  font-family: var(--sc-font);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.5;
  pointer-events: none;
}

.services-carousel__badge--core {
  background: var(--sc-accent);
  color: #000;
  box-shadow: 0 0 15px rgba(163, 255, 0, 0.3);
}

.services-carousel__badge--new {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ─── Icon wrapper ──────────────────────────────────────────── */
.services-carousel__icon-wrap {
  width: 54px;
  height: 54px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--sc-text);
  margin-bottom: 1.5rem;
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.services-carousel__card:hover .services-carousel__icon-wrap {
  color: var(--sc-accent);
  border-color: rgba(163, 255, 0, 0.3);
  background: rgba(163, 255, 0, 0.05);
  transform: rotate(10deg) scale(1.1);
  filter: drop-shadow(0 0 8px rgba(163, 255, 0, 0.5));
}

.sc-icon-svg {
  display: block;
  flex-shrink: 0;
}

/* ─── Card title ────────────────────────────────────────────── */
.services-carousel__title {
  font-family: var(--sc-font);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--sc-text);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  line-height: 1.3;
}

/* ─── Description ───────────────────────────────────────────── */
.services-carousel__desc {
  font-family: var(--sc-font);
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--sc-text-muted);
  flex-grow: 1;
}

/* ─── Explore link ──────────────────────────────────────────── */
.services-carousel__explore {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--sc-font);
  font-size: 14px;
  font-weight: 600;
  color: var(--sc-accent);
  text-decoration: none;
  margin-top: 1.5rem;
  opacity: 0.8;
  transition: opacity 0.2s ease, transform 0.2s ease, filter 0.2s ease;
}

.services-carousel__explore:hover {
  opacity: 1;
  filter: drop-shadow(0 0 5px rgba(163, 255, 0, 0.4));
}

.services-carousel__explore svg {
  transition: transform 0.2s ease;
}

.services-carousel__explore:hover svg {
  transform: translateX(3px);
}

/* ─── Responsive ────────────────────────────────────────────── */
@media (max-width: 599px) {
  .services-carousel__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
  }
}
