/* ==========================================================
   services.css
   Page-specific styles for service pages
   SMEdigital - smedigital.in
   ========================================================== */

/* ── Base resets (page-scoped) ── */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Montserrat', sans-serif !important;
  background: #000 !important;
  color: #fff !important;
  overflow-x: hidden;
}

.doc-industry-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(235, 96, 31, 0.1);
  border: 1px solid rgba(235, 96, 31, 0.3);
  color: #eb601f;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  font-family: 'Montserrat', sans-serif;
  text-transform: uppercase;
}

/* ── Custom Cursor ── */
.custom-cursor {
  position: fixed;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #eb601f;
  pointer-events: none;
  z-index: 9999;
  transition: transform 0.2s ease;
}

/* ── Hero Section ── */
.hero-section {
  padding-top: 12rem !important;
  padding-bottom: 12rem !important;
  min-height: auto !important;
}

@media (max-width: 768px) {
  .hero-section {
    padding-top: 16rem !important;
    padding-bottom: 10rem !important;
  }
}

/* ── Hero title characters ── */
.hero-title .char {
  display: inline-block;
  will-change: transform, opacity;
}

/* ── Scrolling Banner ── */
.scrolling-banner {
  background: #eb601f;
  color: #000;
  padding: 1rem 0;
  overflow: hidden;
  white-space: nowrap;
}

.scrolling-content {
  display: inline-block;
  animation: dm-scroll 30s linear infinite;
  will-change: transform;
}

@keyframes dm-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@media (max-width: 768px) {
  .scrolling-content {
    animation-duration: 16s;
  }
}

body {
  position: relative;
  z-index: 0;
}

main {
  position: relative;
  z-index: 2;
}

/* ── Glow Particles Canvas ── */
#glow-particles {
  position: fixed;
  top: 0;
  left: 0;
  z-index: -1;

  transform: translateZ(0);
  will-change: transform;
  backface-visibility: hidden;

  pointer-events: none;
}


@media (max-width: 768px) {
  #glow-particles {
    width: 100vw !important;
    height: 100vh !important;
    overflow: hidden;
  }
}

/* ── Service Cards ── */
.service-card {
  background: rgba(17, 17, 17, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1.5rem;
  padding: 2rem;
  transition: all 0.3s ease;
  height: 100%;
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: rgba(235, 96, 31, 0.5);
  box-shadow: 0 10px 40px rgba(235, 96, 31, 0.2);
}


/* ── Service Images ── */
.service-image {
  width: 100%;
  height: 100%;
  min-height: 320px;
  border-radius: 1.5rem;
  overflow: hidden;
  position: relative;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.service-image:hover img {
  transform: scale(1.1);
}

.service-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.5), transparent);
  opacity: 0.6;
  z-index: 1;
  transition: opacity 0.3s;
}

.service-image:hover::before {
  opacity: 0.8;
}

.service-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, transparent, rgba(255,255,255,0.2), transparent);
  transform: translateX(-100%);
  transition: transform 0.7s;
  z-index: 2;
}

.service-image:hover::after {
  transform: translateX(100%);
}

.service-badge {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
  .service-image {
    min-height: 200px;
  }
}

/* ── Timeline ── */
.timeline-container {
  position: relative;
  padding: 3rem 0;
}

.timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, transparent, #eb601f, transparent);
  transform: translateX(-50%);
}

.timeline-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 20px;
  height: 20px;
  background: #eb601f;
  border: 4px solid #000;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  box-shadow: 0 0 0 4px rgba(235, 96, 31, 0.2);
  animation: dm-pulse 2s infinite;
}

@keyframes dm-pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(235, 96, 31, 0.2); }
  50%       { box-shadow: 0 0 0 8px rgba(235, 96, 31, 0.1); }
}

.timeline-content {
  width: calc(50% - 4rem);
}

.timeline-item.right .timeline-content {
  margin-left: auto;
  padding-left: 2rem;
}

.timeline-item.left .timeline-content {
  margin-right: auto;
  padding-right: 2rem;
  text-align: right;
}

.content-card {
  background: rgba(17, 17, 17, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1.5rem;
  padding: 2rem;
  transition: all 0.3s ease;
  height: 100%;
}

.content-card:hover {
  transform: translateY(-5px);
  border-color: rgba(235, 96, 31, 0.5);
  box-shadow: 0 10px 40px rgba(235, 96, 31, 0.2);
}

.step-badge {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.step-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: rgba(235, 96, 31, 0.2);
  border: 2px solid #eb601f;
  border-radius: 12px;
}

.timeline-image {
  width: 100%;
  height: 320px;
  border-radius: 1.5rem;
  overflow: hidden;
  position: relative;
  margin-top: 1.5rem;
}

.timeline-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.timeline-image:hover img {
  transform: scale(1.1);
}

.timeline-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.5), transparent);
  opacity: 0.6;
  z-index: 1;
  transition: opacity 0.3s;
}

.timeline-image:hover::before {
  opacity: 0.8;
}

.timeline-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, transparent, rgba(255,255,255,0.2), transparent);
  transform: translateX(-100%);
  transition: transform 0.7s;
  z-index: 2;
}

.timeline-image:hover::after {
  transform: translateX(100%);
}

/* Timeline — mobile */
@media (max-width: 768px) {
  .timeline-line {
    left: 2rem;
  }

  .timeline-dot {
    left: 2rem;
  }

  .timeline-content {
    width: calc(100% - 5rem);
    margin-left: 5rem !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    text-align: left !important;
  }

  .timeline-item.left .step-badge,
  .timeline-item.right .step-badge {
    justify-content: flex-start;
  }

  .timeline-item {
    margin-bottom: 4rem;
  }

  .timeline-image {
    height: 200px;
  }
}

/* ── FAQ ── */
.faq-item {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 1rem;
  transition: all 0.3s;
}

.faq-item:hover {
  transform: scale(1.01);
}

.faq-question {
  width: 100%;
  padding: 1.5rem;
  background: transparent;
  border: none;
  color: #fff;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.125rem;
  font-weight: 600;
  transition: background 0.3s;
  font-family: 'Montserrat', sans-serif;
}

.faq-question:hover {
  background: rgba(255, 255, 255, 0.05);
}

.faq-icon {
  color: #eb601f;
  flex-shrink: 0;
  margin-left: 1rem;
  transition: transform 0.3s;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease-out, padding 0.35s ease-out;
  padding: 0 1.5rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
}

.faq-item.active .faq-answer {
  max-height: 600px;
  padding: 0 1.5rem 1.5rem;
}

/* ── [data-animate] initial hide ── */
[data-animate] {
  opacity: 0;
}

/* ── Feature list hover ── */
.feature-item span {
  display: inline-block;
}

/* ── CTA Section ── */
.get-in-touch-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.3;
}

/* ── Mobile overflow guards ── */
@media (max-width: 768px) {
  html,
  body {
    overflow-x: hidden !important;
    position: relative;
  }

  .group,
  .service-card,
  .content-card,
  .timeline-image,
  .service-image,
  .main-image,
  .feature-image {
    overflow: hidden;
  }

  .scrolling-banner,
  .cta-section {
    overflow: hidden;
  }

  [data-animate],
  .char {
    will-change: transform;
    backface-visibility: hidden;
  }
}