/* ==========================================================================
   SAI ADVERTISEMENT — ULTRA-PREMIUM 'IDEAS MADE VISIBLE' SERVICE HUB
   Rich Glassmorphism, Dynamic Gradients, Creative Interactive Buttons & Mobile Polish
   ========================================================================== */

#services {
  --hub-accent: #FF007F;
  position: relative;
  overflow: clip;
  padding-block: clamp(60px, 8vw, 110px);
  background: 
    radial-gradient(ellipse 60% 40% at 15% 15%, rgba(255, 0, 127, 0.05) 0%, transparent 70%),
    radial-gradient(ellipse 55% 45% at 85% 75%, rgba(0, 112, 243, 0.05) 0%, transparent 70%),
    radial-gradient(ellipse 50% 50% at 50% 50%, rgba(255, 107, 0, 0.03) 0%, transparent 80%);
}

#services .container {
  position: relative;
  z-index: 1;
}

/* --- SECTION HEADER & AMBIENT TAG --- */
#services .section-header {
  max-width: 860px;
  margin-inline: auto;
  margin-bottom: clamp(32px, 5vw, 48px);
  text-align: center;
}

#services .section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border-radius: 99px;
  font-family: var(--font-heading, 'Outfit', sans-serif);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #FF007F;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1.5px solid rgba(255, 0, 127, 0.28);
  box-shadow: 0 6px 24px -2px rgba(255, 0, 127, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  margin-bottom: 1rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

#services .section-tag:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px -2px rgba(255, 0, 127, 0.26);
}

#services .section-tag i {
  font-size: 0.95rem;
  color: #FF007F;
  animation: tagIconFloat 3s ease-in-out infinite;
}

@keyframes tagIconFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-2px) scale(1.1); }
}

#services .section-title {
  font-family: var(--font-heading, 'Outfit', sans-serif);
  font-weight: 900;
  font-size: clamp(2.3rem, 5vw, 3.5rem);
  line-height: 1.12;
  letter-spacing: -0.035em;
  color: #0F172A;
  margin-bottom: 1rem;
}

#services .section-title .text-gradient {
  background: linear-gradient(135deg, #FF007F 0%, #7928CA 32%, #0070F3 68%, #00D4FF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  filter: drop-shadow(0 2px 14px rgba(121, 40, 202, 0.2));
}

#services .section-subtitle {
  font-size: clamp(1rem, 1.6vw, 1.12rem);
  line-height: 1.75;
  color: #475569;
  max-width: 720px;
  margin-inline: auto;
}

/* ==========================================================================
   CATEGORY SWITCHER TABS (APPLE-GRADE FLOATING SEGMENTED CONTROL)
   ========================================================================== */
#services .service-tabs-wrapper {
  display: flex !important;
  gap: 12px !important;
  width: 100%;
  max-width: 1060px;
  margin: 0 auto clamp(28px, 4vw, 38px);
  padding: 8px !important;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1.5px solid rgba(255, 255, 255, 0.95);
  border-radius: 26px;
  box-shadow: 0 16px 42px -6px rgba(15, 23, 42, 0.08), 0 1px 3px rgba(0, 0, 0, 0.03);
  overflow: visible !important;
  position: relative;
}

#services .service-tab-btn {
  flex: 1 1 0;
  min-width: 0;
  min-height: 64px;
  padding: 10px 16px !important;
  display: flex;
  align-items: center;
  gap: 12px;
  background: transparent;
  border: 1.5px solid transparent;
  border-radius: 18px;
  cursor: pointer;
  text-align: left;
  color: #334155;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  user-select: none;
}

#services .service-tab-btn .tab-icon-wrap {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  background: rgba(15, 23, 42, 0.04);
  color: #64748B;
  transition: all 0.28s ease;
  flex-shrink: 0;
}

#services .service-tab-btn .tab-label-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

#services .service-tab-btn .tab-title {
  font-family: var(--font-heading, 'Outfit', sans-serif);
  font-weight: 750;
  font-size: 0.94rem;
  line-height: 1.25;
  color: #0F172A;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.28s ease;
}

#services .service-tab-btn .tab-count {
  font-size: 0.75rem;
  font-weight: 600;
  color: #64748B;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.28s ease;
}

/* Tab Hover State */
#services .service-tab-btn:hover {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(15, 23, 42, 0.08);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
}

#services .service-tab-btn:hover .tab-icon-wrap {
  transform: scale(1.08);
}

/* Category Active Styling */
#services .service-tab-btn[data-category="outdoor"].active {
  background: linear-gradient(135deg, #FF5E00 0%, #FF7A00 50%, #FFAA00 100%);
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 10px 28px -3px rgba(255, 94, 0, 0.45), 0 2px 8px rgba(255, 94, 0, 0.25);
  transform: translateY(-2px);
}

#services .service-tab-btn[data-category="indoor"].active {
  background: linear-gradient(135deg, #FF007F 0%, #E0006C 50%, #7928CA 100%);
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 10px 28px -3px rgba(255, 0, 127, 0.45), 0 2px 8px rgba(255, 0, 127, 0.25);
  transform: translateY(-2px);
}

#services .service-tab-btn[data-category="printing"].active {
  background: linear-gradient(135deg, #00B348 0%, #00D26A 50%, #00C853 100%);
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 10px 28px -3px rgba(0, 210, 106, 0.45), 0 2px 8px rgba(0, 210, 106, 0.25);
  transform: translateY(-2px);
}

#services .service-tab-btn[data-category="digital"].active {
  background: linear-gradient(135deg, #0070F3 0%, #6366F1 50%, #7928CA 100%);
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 10px 28px -3px rgba(0, 112, 243, 0.45), 0 2px 8px rgba(121, 40, 202, 0.25);
  transform: translateY(-2px);
}

#services .service-tab-btn.active .tab-icon-wrap {
  background: rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
  transform: scale(1.08);
}

#services .service-tab-btn.active .tab-title {
  color: #FFFFFF;
}

#services .service-tab-btn.active .tab-count {
  color: rgba(255, 255, 255, 0.9);
}

/* ==========================================================================
   CATEGORY HERO BANNER CARD
   ========================================================================== */
#services .category-hero-card {
  position: relative;
  overflow: hidden;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: center;
  justify-content: space-between;
  padding: clamp(24px, 3.5vw, 36px) clamp(24px, 4vw, 42px);
  margin-bottom: clamp(28px, 4vw, 38px);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1.5px solid rgba(255, 255, 255, 0.95);
  border-radius: 28px;
  box-shadow: 0 16px 45px -8px rgba(15, 23, 42, 0.07), 0 1px 3px rgba(0, 0, 0, 0.02);
}

#services .category-hero-glow {
  position: absolute;
  top: -80px;
  right: -60px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 94, 0, 0.12) 0%, transparent 70%);
  pointer-events: none;
  filter: blur(40px);
}

#services .category-hero-text {
  position: relative;
  z-index: 1;
  min-width: 0;
  flex: 1 1 380px;
}

#services .category-pill-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

#services .cat-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  border-radius: 99px;
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: linear-gradient(135deg, rgba(255, 0, 127, 0.1), rgba(121, 40, 202, 0.1));
  color: #D9006C;
  border: 1px solid rgba(255, 0, 127, 0.22);
}

#services .cat-hero-verified {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 99px;
  font-size: 0.76rem;
  font-weight: 650;
  background: rgba(0, 112, 243, 0.08);
  color: #0060D0;
  border: 1px solid rgba(0, 112, 243, 0.18);
}

#services .cat-hero-title {
  font-family: var(--font-heading, 'Outfit', sans-serif);
  font-size: clamp(1.65rem, 2.5vw, 2.2rem);
  font-weight: 850;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: #0F172A;
  margin: 0 0 10px;
}

#services .cat-hero-desc {
  font-size: 1rem;
  line-height: 1.7;
  color: #475569;
  max-width: 680px;
  margin: 0 0 16px;
}

#services .cat-hero-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
}

#services .feat-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #475569;
  background: rgba(15, 23, 42, 0.04);
  padding: 5px 11px;
  border-radius: 9px;
  border: 1px solid rgba(15, 23, 42, 0.06);
}

#services .feat-pill i {
  color: #00D26A;
  font-size: 0.85rem;
}

#services .category-hero-action {
  position: relative;
  z-index: 1;
}

/* Creative Hero WhatsApp Inquiry Button */
#services .btn-creative-inquiry {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  padding: 12px 22px;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  background: linear-gradient(135deg, #25D366 0%, #1EBE5D 50%, #128C7E 100%);
  color: #FFFFFF;
  box-shadow: 0 10px 28px -4px rgba(37, 211, 102, 0.48), 0 2px 6px rgba(18, 140, 126, 0.3);
  transition: all 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}

#services .btn-creative-inquiry::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -70%;
  width: 45%;
  height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: rotate(25deg);
  transition: left 0.7s ease;
}

#services .btn-creative-inquiry:hover::after {
  left: 140%;
}

#services .btn-creative-inquiry:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 16px 36px -4px rgba(37, 211, 102, 0.65), 0 0 20px rgba(37, 211, 102, 0.35);
}

#services .btn-creative-inquiry:active {
  transform: translateY(0) scale(0.98);
}

#services .inquiry-btn-inner {
  display: flex;
  align-items: center;
  gap: 14px;
}

#services .inquiry-icon-ring {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  color: #FFFFFF;
  flex-shrink: 0;
  transition: transform 0.28s ease;
}

#services .btn-creative-inquiry:hover .inquiry-icon-ring {
  transform: scale(1.12) rotate(-8deg);
}

#services .inquiry-text-col {
  display: flex;
  flex-direction: column;
  text-align: left;
}

#services .inquiry-lead {
  font-family: var(--font-heading, 'Outfit', sans-serif);
  font-weight: 800;
  font-size: 0.96rem;
  line-height: 1.25;
  color: #FFFFFF;
}

#services .inquiry-sub {
  font-size: 0.76rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
}

#services .inquiry-arrow {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
  transition: transform 0.25s ease;
  margin-left: 4px;
}

#services .btn-creative-inquiry:hover .inquiry-arrow {
  transform: translateX(4px);
  color: #FFFFFF;
}

/* ==========================================================================
   SERVICES GRID & SHOWCARDS
   ========================================================================== */
#services .services-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  align-items: stretch;
}

.service-showcard {
  --service-accent: #FF007F;
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1.5px solid rgba(255, 255, 255, 0.95);
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 14px 38px -6px rgba(20, 24, 45, 0.07), 0 1px 3px rgba(0, 0, 0, 0.02);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, border-color 0.35s ease;
  animation: service-arrive 0.5s ease both;
}

.service-showcard:nth-child(2n) {
  animation-delay: 80ms;
}

.service-showcard:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 55px -8px rgba(20, 24, 45, 0.13), 0 0 0 1.5px var(--service-accent);
  border-color: rgba(255, 255, 255, 1);
}

/* Photo Showcase Container */
.service-photo-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: linear-gradient(135deg, #F1F4F9 0%, #E6ECF4 100%);
  border-bottom: 1px solid rgba(15, 23, 42, 0.07);
}

.service-photo {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 14px;
  margin: 0;
  background: transparent;
  border: none;
  cursor: zoom-in;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.service-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 12px;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-showcard:hover .service-photo img {
  transform: scale(1.05);
}

.service-photo-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 14px;
}

.service-photo-action {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #0F172A;
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 0.8rem;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transition: all 0.25s ease;
}

.service-photo-action i {
  color: var(--service-accent);
  font-size: 0.85rem;
}

.service-showcard:hover .service-photo-action {
  background: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

/* Service Card Content */
.service-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 26px 28px 28px;
  gap: 14px;
}

.service-meta-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.cat-tag {
  font-size: 0.76rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748B;
  background: rgba(15, 23, 42, 0.05);
  padding: 4px 10px;
  border-radius: 99px;
}

.feature-tag {
  font-size: 0.76rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--service-accent);
  background: rgba(255, 0, 127, 0.08);
  padding: 4px 11px;
  border-radius: 99px;
  border: 1px solid rgba(255, 0, 127, 0.18);
}

.service-card-title {
  margin: 0;
  font-family: var(--font-heading, 'Outfit', sans-serif);
  font-size: clamp(1.35rem, 1.8vw, 1.65rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.025em;
  color: #0F172A;
}

.service-card-desc {
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.7;
  color: #475569;
}

.service-card-footer {
  margin-top: auto;
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  border-top: 1px solid rgba(15, 23, 42, 0.07);
}

/* Modern Pricing Chip */
.service-pricing-pill {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  width: fit-content;
  padding: 6px 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, #F8FAFD 0%, #EEF2F8 100%);
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.pricing-label {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748B;
}

.pricing-value {
  font-family: var(--font-heading, 'Outfit', sans-serif);
  font-size: 1.05rem;
  font-weight: 850;
  color: #0F172A;
  letter-spacing: -0.01em;
}

/* ==========================================================================
   CREATIVE INTERACTIVE ACTION BUTTONS
   ========================================================================== */
.service-card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* 1. Secondary Details Button */
.service-details-button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 12px 18px;
  border-radius: 15px;
  background: #FFFFFF;
  border: 1.5px solid rgba(15, 23, 42, 0.13);
  color: #0F172A;
  font-family: var(--font-body, 'Inter', sans-serif);
  font-weight: 750;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.service-details-button i {
  font-size: 0.85rem;
  transition: transform 0.25s ease;
  color: #64748B;
}

.service-details-button:hover {
  background: #FFFFFF;
  border-color: var(--service-accent);
  color: var(--service-accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.service-details-button:hover i {
  transform: translate(2px, -2px);
  color: var(--service-accent);
}

.service-details-button:active {
  transform: translateY(0) scale(0.97);
}

/* 2. Primary WhatsApp Quote Button */
.service-quote-button {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 12px 18px;
  border-radius: 15px;
  border: none;
  background: linear-gradient(135deg, #25D366 0%, #1EBE5D 50%, #128C7E 100%);
  color: #FFFFFF;
  font-family: var(--font-body, 'Inter', sans-serif);
  font-weight: 800;
  font-size: 0.88rem;
  letter-spacing: 0.01em;
  box-shadow: 0 8px 24px -3px rgba(37, 211, 102, 0.45), 0 2px 6px rgba(18, 140, 126, 0.25);
  cursor: pointer;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-quote-button i {
  font-size: 1.15rem;
  transition: transform 0.28s ease;
}

/* Shimmer Light Sweep */
.service-quote-button::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -70%;
  width: 45%;
  height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.42), transparent);
  transform: rotate(25deg);
  transition: left 0.65s ease;
}

.service-quote-button:hover::after {
  left: 140%;
}

.service-quote-button:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 30px -3px rgba(37, 211, 102, 0.65), 0 0 16px rgba(37, 211, 102, 0.35);
}

.service-quote-button:hover i {
  transform: scale(1.18) rotate(-10deg);
}

.service-quote-button:active {
  transform: translateY(0) scale(0.97);
}

#services button:focus-visible,
.service-image-viewer button:focus-visible {
  outline: 3px solid #7928CA;
  outline-offset: 3px;
}

/* Lightbox Image Viewer */
.service-image-viewer {
  inset: 0;
  width: min(1100px, calc(100% - 32px));
  max-height: 92dvh;
  margin: auto;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 22px;
  background: #14121E;
  color: #FFFFFF;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.6);
  overflow: auto;
}

.service-image-viewer::backdrop {
  background: rgba(16, 14, 27, 0.9);
  backdrop-filter: blur(10px);
}

.service-image-viewer form {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 12px;
}

.service-image-viewer form button {
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
  cursor: pointer;
  transition: all 0.2s ease;
}

.service-image-viewer form button:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.08);
}

.service-image-viewer figure {
  margin: 0;
  display: grid;
  justify-items: center;
  gap: 18px;
}

.service-image-viewer img {
  display: block;
  max-width: 100%;
  width: auto;
  height: auto;
  max-height: 70dvh;
  object-fit: contain;
  border-radius: 12px;
}

.service-image-viewer figcaption {
  font-size: 1rem;
  text-align: center;
  font-weight: 600;
}

html:has(.service-image-viewer[open]) {
  overflow: hidden;
}

#serviceDetailModal .modal-dialog {
  max-height: 90dvh;
  overflow: auto;
  width: min(860px, calc(100% - 24px));
}

#serviceDetailModal .modal-header-media {
  height: auto !important;
  padding: 20px;
  background: #F0F1F5;
}

#serviceDetailModal #modalServiceImg {
  display: block;
  height: auto !important;
  max-height: 55dvh;
  object-fit: contain !important;
}

#services .billboard-3d-showcase {
  grid-column: 1 / -1;
  min-width: 0;
  max-width: 100%;
}

@keyframes service-arrive {
  from { opacity: 0.5; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   RESPONSIVENESS & MOBILE ALIGNMENT
   ========================================================================== */
@media (max-width: 1024px) {
  #services .services-grid {
    gap: 24px;
  }
  .service-copy {
    padding: 22px 24px 24px;
  }
}

@media (max-width: 860px) {
  #services {
    padding-block: 54px;
    /* Safe bottom clearance for mobile floating buttons */
    padding-bottom: 100px;
  }

  #services .container {
    padding-inline: 16px;
  }

  /* HORIZONTAL SCROLLABLE TABS ON MOBILE */
  #services .service-tabs-wrapper {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 6px 16px !important;
    margin: 0 -16px 24px !important;
    width: calc(100% + 32px) !important;
    border-radius: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
  }

  #services .service-tabs-wrapper::-webkit-scrollbar {
    display: none;
  }

  #services .service-tab-btn {
    flex: 0 0 auto !important;
    scroll-snap-align: center;
    min-width: 175px;
    max-width: 220px;
    min-height: 58px;
    padding: 10px 14px !important;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 16px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
  }

  #services .service-tab-btn .tab-title {
    font-size: 0.88rem;
  }

  #services .service-tab-btn .tab-count {
    font-size: 0.72rem;
  }

  #services .category-hero-card {
    padding: 24px 20px;
    gap: 20px;
    border-radius: 22px;
  }

  #services .category-hero-text {
    flex-basis: 100%;
  }

  #services .category-hero-action {
    width: 100%;
  }

  #services .btn-creative-inquiry {
    width: 100%;
    justify-content: center;
    padding: 14px 18px;
  }

  #services .services-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .service-showcard {
    border-radius: 22px;
  }

  .service-copy {
    padding: 22px 20px 24px;
  }

  .service-copy h3 {
    font-size: 1.45rem;
  }
}

@media (max-width: 480px) {
  #services .section-title {
    font-size: clamp(2rem, 8.5vw, 2.7rem);
  }

  #services .service-tab-btn {
    min-width: 160px;
    padding: 8px 12px !important;
  }

  #services .service-tab-btn .tab-icon-wrap {
    width: 36px;
    height: 36px;
    font-size: 1rem;
    border-radius: 10px;
  }

  #services .service-card-actions {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .service-details-button,
  .service-quote-button {
    width: 100%;
    min-height: 48px;
  }

  .service-pricing-pill {
    width: 100%;
    justify-content: space-between;
  }
}

@media (prefers-reduced-motion: reduce) {
  .service-showcard,
  .service-showcard::before,
  .service-details-button,
  .service-quote-button,
  .btn-creative-inquiry {
    animation: none;
    transition: none;
    transform: none;
  }
}
