/* Responsive glassmorphic icon pill */
.icon-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
}

@media (min-width: 640px) {
  .icon-pill {
    width: 44px;
    height: 44px;
  }
}

/* Contrast enhancement for feature cards */
.feature-card {
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.95), 0 1px 3px rgba(0, 0, 0, 0.85);
}

/* Initially hidden: revealed ONLY when scrolling begins */
.phase-container {
  opacity: 0;
  visibility: hidden;
  transform: translateY(30px);
}

/* Discipline Card Hover Zoom */
.discipline-card:hover .card-bg-img {
  transform: scale(1.06);
}

/* Active Thumbnail state on White Background */
.thumb-item {
  border: 1px solid #e5e7eb;
  opacity: 0.75;
  transition: all 0.2s ease;
}

.thumb-item:hover {
  opacity: 1;
}

.thumb-item.thumb-active {
  border: 2px solid #000000 !important;
  opacity: 1 !important;
}

/* Modal Scrollbar on White Background */
#serviceModal ::-webkit-scrollbar {
  width: 6px;
}
#serviceModal ::-webkit-scrollbar-track {
  background: #f7f7f7;
}
#serviceModal ::-webkit-scrollbar-thumb {
  background: #d4d4d8;
  border-radius: 3px;
}
#serviceModal ::-webkit-scrollbar-thumb:hover {
  background: #a1a1aa;
}

/* Force dark typography inside the white modal */
#serviceModal,
#serviceModal h2,
#serviceModal h3,
#serviceModal button,
#serviceModal span,
#serviceModal p {
  color: #111827;
}

#serviceModal #modalCategoryTag {
  color: #6b7280 !important;
}

#serviceModal #modalDescription {
  color: #4b5563 !important;
}

/* Maintain invert for the dark buttons */
#serviceModal #addShortlistBtn,
#serviceModal #addShortlistBtn span {
  color: #ffffff !important;
}

/* Filter Pill Buttons */
.filter-pill {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 6px 14px;
  border-radius: 9999px;
  background: transparent;
  color: #4b5563;
  border: 1px solid #d1d5db;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-pill:hover {
  border-color: #111827;
  color: #111827;
}

.filter-pill.active-pill {
  background: #111827;
  color: #ffffff;
  border-color: #111827;
}

/* Service Card Container */
.catalog-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.catalog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px -6px rgba(0, 0, 0, 0.08);
}

/* Quick View Overlay Button */
.quick-view-btn {
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.catalog-card:hover .quick-view-btn {
  opacity: 1;
  transform: translateY(0);
}

/* Hide scrollbar for horizontal gallery */
.scrollbar-none::-webkit-scrollbar {
  display: none;
}
.scrollbar-none {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

#galleryShowcase {
  position: relative;
  width: 100%;
  overflow: hidden;
}

#horizontalGalleryTrack {
  display: flex;
  width: max-content;
}

/* =========================================================================
   HOTSPOT INTERACTIVE STYLING
   ========================================================================= */
.hotspot-pin {
  position: absolute;
  width: 32px;
  height: 32px;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 10;
  transition: transform 0.2s ease;
}

.hotspot-pin:hover {
  transform: translate(-50%, -50%) scale(1.15);
}

/* Central White Core Dot */
.hotspot-dot {
  position: relative;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background-color: #ffffff;
  border: 2px solid #111827;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
  z-index: 2;
  transition: all 0.2s ease;
}

/* Pulsing radar ring */
.hotspot-ping {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.4);
  animation: hotspot-pulse 2s cubic-bezier(0, 0, 0.2, 1) infinite;
  z-index: 1;
}

/* Active Pin Highlight */
.hotspot-pin.active .hotspot-dot {
  background-color: #111827;
  border-color: #ffffff;
  transform: scale(1.15);
}

.hotspot-pin.active .hotspot-ping {
  background-color: rgba(0, 0, 0, 0.5);
}

@keyframes hotspot-pulse {
  0% {
    transform: scale(0.6);
    opacity: 1;
  }
  100% {
    transform: scale(2.2);
    opacity: 0;
  }
}

/* Ensure the methodology section allows sticky tracking */
#methodologySection {
  overflow: visible !important;
}

/* Stage Tags */
.stage-tag {
  display: inline-block;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: #374151;
  background-color: #e5e2da;
  border: 1px solid #d4cfc5;
  padding: 4px 10px;
  border-radius: 2px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.stage-tag:hover {
  background-color: #111827;
  border-color: #111827;
  color: #ffffff;
}

/* Subtle active highlight transition on right-side items */
.methodology-stage {
  opacity: 0.45;
  transform: translateX(0);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.methodology-stage.active-stage {
  opacity: 1;
}

/* =========================================================================
   STUDIO PRINCIPLES CARDS
   ========================================================================= */
.principle-card {
  min-height: 290px;
  position: relative;
}

.principle-card:hover {
  transform: translateY(-3px);
}
/* Smooth anchor linking padding compensation */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

footer a {
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}