/* ==========================================================================
   OUR SERVICES SECTION - EXACT 100VH SCI-FI 3D CAROUSEL
   Fitted strictly within 100vh viewport with perfectly balanced proportions
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Michroma&family=Orbitron:wght@500;700;800&display=swap');

/* --- 1. MAIN CONTAINER (STRICT 100VH) --- */
.our_service_container {
  position: relative;
  width: 100%;
  height: 100vh;
  max-height: 100vh;
  background: url('../img/service-bg.png') no-repeat center center;
  background-size: cover;
  font-family: 'Outfit', sans-serif;
  color: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 3vh, 36px) clamp(16px, 2.5vw, 32px);
  box-sizing: border-box;
  overflow: hidden;
}

/* Subtle background vignette for depth */
.our_service_container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 50%, rgba(2, 6, 23, 0) 25%, rgba(2, 6, 23, 0.5) 100%);
  pointer-events: none;
  z-index: 1;
}

/* --- 2. INNER SECTION WRAPPER --- */
.service-section-inner {
  width: 100%;
  max-width: 1320px;
  height: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
  position: relative;
  z-index: 2;
  box-sizing: border-box;
}

/* --- 3. HEADER & TYPOGRAPHY --- */
.service-header-wrapper {
  text-align: center;
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}

/* Badge: — OUR SERVICES — */
.service-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: clamp(6px, 1.2vh, 12px);
}

.service-badge .badge-line {
  width: clamp(24px, 2.5vw, 32px);
  height: 1.5px;
  background: #38bdf8;
  border-radius: 2px;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.7);
}

.service-badge .badge-text {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(0.72rem, 0.95vw, 0.8rem);
  letter-spacing: 3.5px;
  color: #38bdf8;
  font-weight: 700;
  text-transform: uppercase;
  text-shadow: 0 0 12px rgba(56, 189, 248, 0.5);
}

/* Main Heading */
.service-main-heading {
  margin: 0 0 clamp(6px, 1.2vh, 12px) 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.15;
  gap: 3px;
}

.service-heading-white {
  font-family: 'Michroma', sans-serif;
  font-size: clamp(1.6rem, 2.8vw, 2.5rem);
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 1.5px;
  text-shadow: 0 2px 20px rgba(255, 255, 255, 0.35);
  text-transform: uppercase;
}

.service-heading-cyan {
  font-family: 'Michroma', sans-serif;
  font-size: clamp(1.6rem, 2.8vw, 2.5rem);
  font-weight: 700;
  color: #38bdf8;
  letter-spacing: 1.5px;
  text-shadow: 0 0 25px rgba(56, 189, 248, 0.65), 0 0 50px rgba(37, 99, 235, 0.45);
  text-transform: uppercase;
}

/* Subtext */
.service-subtext {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(0.82rem, 1.05vw, 0.94rem);
  color: #94a3b8;
  line-height: 1.5;
  max-width: 580px;
  margin: 0 auto;
  font-weight: 400;
  text-align: center;
}

/* --- 4. CAROUSEL WRAPPER & CONTROLS --- */
.service-carousel-container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Navigation Arrow Buttons */
.service-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: clamp(44px, 5vh, 50px);
  height: clamp(44px, 5vh, 50px);
  border-radius: 50%;
  background: rgba(10, 25, 60, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1.5px solid rgba(56, 189, 248, 0.45);
  color: #ffffff;
  font-size: clamp(1.1rem, 1.3vw, 1.25rem);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 25;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55), 0 0 15px rgba(56, 189, 248, 0.25);
  outline: none;
}

.service-nav-btn:hover {
  background: rgba(30, 64, 175, 0.7);
  border-color: #38bdf8;
  color: #38bdf8;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.65), 0 0 25px rgba(56, 189, 248, 0.7);
}

.service-nav-btn:active {
  transform: translateY(-50%) scale(0.95);
}

.service-nav-btn.prev-btn {
  left: -12px;
}

.service-nav-btn.next-btn {
  right: -12px;
}

/* 3D Track */
.service-cards-track {
  position: relative;
  width: 100%;
  height: clamp(330px, 46vh, 410px);
  perspective: 1200px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* --- 5. SERVICE CARDS ARCHITECTURE --- */
.service-card {
  position: absolute;
  width: clamp(265px, 22vw, 310px);
  height: clamp(310px, 42vh, 365px);
  border-radius: 22px;
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1),
              opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.65s cubic-bezier(0.22, 1, 0.36, 1);
  cursor: pointer;
  user-select: none;
}

/* Glassmorphic Shell */
.service-card-glass {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 22px;
  background: linear-gradient(170deg, rgba(14, 76, 180, 0.42) 0%, rgba(8, 28, 74, 0.68) 55%, rgba(4, 18, 52, 0.88) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1.5px solid rgba(56, 189, 248, 0.42);
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.55),
              inset 0 1.5px 2px rgba(255, 255, 255, 0.35),
              0 0 22px rgba(37, 99, 235, 0.22);
  padding: clamp(34px, 4.8vh, 42px) clamp(20px, 1.8vw, 26px) clamp(18px, 2.4vh, 22px) clamp(20px, 1.8vw, 26px);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: visible;
}

/* Glowing Top Circular Icon Badge */
.service-icon-badge {
  position: absolute;
  top: clamp(-30px, -3.8vh, -26px);
  left: 50%;
  transform: translateX(-50%);
  width: clamp(56px, 7.2vh, 64px);
  height: clamp(56px, 7.2vh, 64px);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #1d4ed8 0%, #0d2358 75%, #051336 100%);
  border: 2px solid #38bdf8;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: clamp(1.25rem, 2.3vh, 1.45rem);
  box-shadow: 0 0 24px rgba(56, 189, 248, 0.75),
              0 0 10px rgba(59, 130, 246, 0.85),
              inset 0 2px 4px rgba(255, 255, 255, 0.5);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  z-index: 5;
}

.service-card:hover .service-icon-badge {
  transform: translateX(-50%) scale(1.08);
}

/* Card Title */
.service-card-title {
  font-family: 'Michroma', sans-serif;
  font-size: clamp(1rem, 1.25vw, 1.15rem);
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin: 6px 0 clamp(6px, 1.2vh, 12px) 0;
  text-align: left;
}

/* Card Description Paragraph */
.service-card-desc {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(0.82rem, 0.98vw, 0.9rem);
  color: #cbd5e1;
  line-height: 1.55;
  text-align: left;
  margin: 0;
  flex: 1;
}

/* Card Footer */
.service-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: clamp(10px, 1.5vh, 16px);
  padding-top: clamp(8px, 1.2vh, 12px);
}

.service-footer-tags {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
}

.service-footer-tags .tag-accent {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(0.65rem, 0.78vw, 0.7rem);
  font-weight: 700;
  color: #38bdf8;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.service-footer-tags .tag-sub {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(0.65rem, 0.78vw, 0.7rem);
  font-weight: 600;
  color: #94a3b8;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

/* Large Watermark Number */
.service-watermark-num {
  font-family: 'Michroma', sans-serif;
  font-size: clamp(2.4rem, 3.4vw, 2.9rem);
  font-weight: 700;
  line-height: 0.85;
  color: rgba(56, 189, 248, 0.18);
  letter-spacing: -2px;
  user-select: none;
  transition: color 0.35s ease, text-shadow 0.35s ease;
}

/* --- 6. 3D POSITIONING STATES --- */

/* Center (Active) Card */
.service-card.card-center {
  z-index: 10;
  opacity: 1;
  pointer-events: all;
  transform: translate3d(0, -6px, 60px) scale(1.04);
}

.service-card.card-center .service-card-glass {
  border-color: rgba(56, 189, 248, 0.75);
  box-shadow: 0 26px 55px rgba(0, 0, 0, 0.65),
              inset 0 1.8px 3px rgba(255, 255, 255, 0.5),
              0 0 35px rgba(56, 189, 248, 0.45);
}

.service-card.card-center .service-icon-badge {
  box-shadow: 0 0 35px rgba(56, 189, 248, 0.95),
              0 0 15px rgba(59, 130, 246, 1),
              inset 0 2px 5px rgba(255, 255, 255, 0.6);
}

.service-card.card-center .service-watermark-num {
  color: rgba(56, 189, 248, 0.28);
  text-shadow: 0 0 15px rgba(56, 189, 248, 0.25);
}

/* Left Card (Tilted slightly counter-clockwise) */
.service-card.card-left {
  z-index: 5;
  opacity: 0.9;
  pointer-events: all;
  transform: translate3d(calc(-1 * clamp(270px, 24vw, 320px)), 12px, 0) rotateZ(-3.5deg) rotateY(6deg) scale(0.96);
}

/* Right Card (Tilted slightly clockwise) */
.service-card.card-right {
  z-index: 5;
  opacity: 0.9;
  pointer-events: all;
  transform: translate3d(clamp(270px, 24vw, 320px), 12px, 0) rotateZ(3.5deg) rotateY(-6deg) scale(0.96);
}

/* Hidden Cards (Waiting Offstage) */
.service-card.card-hidden-left {
  z-index: 1;
  opacity: 0;
  pointer-events: none;
  transform: translate3d(-480px, 35px, -120px) scale(0.8);
}

.service-card.card-hidden-right {
  z-index: 1;
  opacity: 0;
  pointer-events: none;
  transform: translate3d(480px, 35px, -120px) scale(0.8);
}

/* --- 7. PAGINATION DOTS --- */
.service-pagination {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  z-index: 10;
  flex-shrink: 0;
}

.pagination-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(56, 189, 248, 0.25);
  border: 1px solid rgba(56, 189, 248, 0.4);
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.pagination-dot:hover {
  background: rgba(56, 189, 248, 0.6);
  border-color: #38bdf8;
}

.pagination-dot.active {
  width: 24px;
  border-radius: 999px;
  background: #38bdf8;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.85);
  border-color: #38bdf8;
}

/* --- 8. RESPONSIVE DESIGN --- */

/* Laptops / Smaller Desktops */
@media (max-width: 1200px) {
  .service-nav-btn.prev-btn { left: 4px; }
  .service-nav-btn.next-btn { right: 4px; }
}

@media (max-width: 1080px) {
  .service-card {
    width: 270px;
    height: 340px;
  }
  .service-card.card-left {
    transform: translate3d(-260px, 12px, 0) rotateZ(-3deg) scale(0.95);
  }
  .service-card.card-right {
    transform: translate3d(260px, 12px, 0) rotateZ(3deg) scale(0.95);
  }
}

/* Tablets (Portrait & Landscape) */
@media (max-width: 860px) {
  .service-cards-track {
    height: 350px;
  }
  .service-card {
    width: 250px;
    height: 330px;
  }
  .service-card.card-left {
    transform: translate3d(-190px, 10px, -60px) scale(0.88);
    opacity: 0.55;
  }
  .service-card.card-right {
    transform: translate3d(190px, 10px, -60px) scale(0.88);
    opacity: 0.55;
  }
  .service-nav-btn {
    width: 42px;
    height: 42px;
    font-size: 1rem;
  }
  .service-nav-btn.prev-btn { left: 0; }
  .service-nav-btn.next-btn { right: 0; }
}

/* Mobile Devices */
@media (max-width: 576px) {
  .our_service_container {
    padding: 16px 12px;
  }
  .service-cards-track {
    height: 330px;
  }
  .service-card {
    width: 240px;
    height: 310px;
  }
  .service-card-glass {
    padding: 30px 18px 16px 18px;
  }
  .service-card-title {
    font-size: 0.98rem;
  }
  .service-card-desc {
    font-size: 0.8rem;
    line-height: 1.45;
  }
  .service-watermark-num {
    font-size: 2.2rem;
  }
  .service-icon-badge {
    width: 50px;
    height: 50px;
    top: -25px;
    font-size: 1.15rem;
  }
  .service-card.card-left {
    transform: translate3d(-130px, 12px, -90px) scale(0.8);
    opacity: 0.35;
  }
  .service-card.card-right {
    transform: translate3d(130px, 12px, -90px) scale(0.8);
    opacity: 0.35;
  }
  .service-nav-btn {
    width: 38px;
    height: 38px;
    font-size: 0.9rem;
    background: rgba(10, 25, 60, 0.85);
  }
  .service-nav-btn.prev-btn { left: -4px; }
  .service-nav-btn.next-btn { right: -4px; }
}
