.phone-mockup-row-fullwidth {
  width: 100%;
  padding-left: 1rem;
  padding-right: 1rem;
  padding-top: 1rem;
}

@media (min-width: 640px) {
  .phone-mockup-row-fullwidth {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    padding-top: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .phone-mockup-row-fullwidth {
    padding-left: 2rem;
    padding-right: 2rem;
    padding-top: 4rem;
  }
}

/* App name and store badges above phone mockups */
.phone-mockup-app-header {
  text-align: center;
  padding-top: 0.5rem;
  padding-bottom: 1rem;
}

.phone-mockup-app-name {
  font-size: 2.5rem;
  font-weight: 700;
  color: #171717;
  margin: 0 0 1rem;
  line-height: 1.25;
}

@media (min-width: 768px) {
  .phone-mockup-app-name {
    font-size: 2.75rem;
  }
}

@media (min-width: 1024px) {
  .phone-mockup-app-name {
    font-size: 4rem;
  }
}

.phone-mockup-store-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.phone-mockup-store-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: #171717;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 9999px;
  transition: background 0.2s, transform 0.2s, color 0.2s;
}

.phone-mockup-store-btn:hover {
  background: #262626;
  color: #fff;
  transform: translateY(-2px);
}

.phone-mockup-store-btn-download {
  background: #f5f5f5;
  color: #171717;
  border: 2px solid #e5e5e5;
}

.phone-mockup-store-btn-download:hover {
  background: #e5e5e5;
  color: #171717;
  border-color: #d4d4d4;
}

.phone-mockup-store-icon {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}

/* Horizontal row of multiple phone mockups (each with same carousel) */
/* Wide view: centered carousel – center phone big, sides smaller, with prev/next */
.phone-mockup-centered {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  width: 100%;
  padding: 1rem 0.5rem 3rem;
  margin-bottom: 1rem;
  overflow: visible;
}

.phone-mockup-centered-inner {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  display: flex;
  justify-content: center;
}

.phone-mockup-centered-track {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 1rem;
  transition: transform 0.4s ease-out;
  --phone-slot-width: 260px;
  --phone-gap: 1rem;
}

.phone-mockup-centered-track .phone-mockup-centered-item {
  flex: 0 0 var(--phone-slot-width);
  width: var(--phone-slot-width);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  transition: transform 0.35s ease-out;
  transform: scale(0.82);
}

.phone-mockup-centered-track .phone-mockup-centered-item.is-center {
  transform: scale(1);
  z-index: 2;
}

.phone-mockup-centered-track .phone-mockup-centered-item .phone-mockup-wrap-inline .phone-mockup-frame {
  max-width: 260px;
}

.phone-mockup-nav-btn-wide {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid #e5e5e5;
  background: #fff;
  color: #262626;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
  z-index: 10;
}

.phone-mockup-nav-btn-wide:hover {
  background: #f5f5f5;
  border-color: #d4d4d4;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.phone-mockup-nav-btn-wide svg {
  width: 22px;
  height: 22px;
}

@media (min-width: 1000px) {
  .phone-mockup-nav-btn-wide {
    display: flex;
  }

  .phone-mockup-single-view .phone-mockup-nav-btn {
    display: none !important;
  }
}

@media (max-width: 999px) {
  .phone-mockup-centered {
    display: none !important;
  }

  .phone-mockup-nav-btn-wide {
    display: none !important;
  }
}

.phone-mockup-row {
  display: none;
  /* replaced by phone-mockup-centered on wide */
}

.phone-mockup-row::-webkit-scrollbar {
  display: none;
}

/* Narrow view: one phone at a time with prev/next (used when width < 1000px) */
.phone-mockup-single-view {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  width: 100%;
  padding: 1rem 0.5rem 3rem;
  margin-bottom: 1rem;
  overflow: visible;
}

.phone-mockup-single-view-inner {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 360px;
  overflow: hidden;
}

.phone-mockup-single-view .phone-mockup-single-track {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  transition: transform 0.35s ease-out;
}

.phone-mockup-single-view .phone-mockup-single-track>* {
  flex: 0 0 100%;
  width: 100%;
  min-width: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.phone-mockup-single-view .phone-mockup-wrap-inline {
  min-width: 0;
}

.phone-mockup-single-view .phone-mockup-wrap-inline .phone-mockup-frame {
  max-width: 320px;
  width: 100%;
  margin: 0 auto;
}

.phone-mockup-nav-btn {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid #e5e5e5;
  background: #fff;
  color: #262626;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
  z-index: 10;
}

.phone-mockup-nav-btn:hover {
  background: #f5f5f5;
  border-color: #d4d4d4;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.phone-mockup-nav-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.phone-mockup-nav-btn.prev {
  order: -1;
}

.phone-mockup-nav-btn.next {
  order: 1;
}

.phone-mockup-nav-btn svg {
  width: 20px;
  height: 20px;
}

/* Narrow viewport: keep mockup section fully visible, no horizontal cut-off */
@media (max-width: 570px) {
  .phone-mockup-row-fullwidth {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    box-sizing: border-box;
    overflow-x: hidden;
  }

  .phone-mockup-single-view {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    gap: 0.5rem;
    min-width: 0;
  }

  .phone-mockup-single-view-inner {
    max-width: min(360px, calc(100vw - 1.5rem - 44px - 44px - 1rem));
    min-width: 0;
  }

  .phone-mockup-single-view .phone-mockup-wrap-inline .phone-mockup-frame {
    max-width: min(320px, calc(100vw - 1.5rem - 44px - 44px - 1rem - 0.5rem));
  }

  .phone-mockup-nav-btn {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
  }

  .phone-mockup-nav-btn svg {
    width: 18px;
    height: 18px;
  }
}

@media (min-width: 1000px) {
  .phone-mockup-single-view {
    display: none !important;
  }
}

@media (max-width: 999px) {
  .phone-mockup-row {
    display: none !important;
  }
}

.phone-mockup-wrap-inline {
  flex: 0 0 auto;
  min-width: 200px;
  padding-bottom: 0;
  margin-bottom: 0;
  display: inline-flex;
  justify-content: center;
  align-items: flex-start;
}

.phone-mockup-wrap-inline .phone-mockup-frame {
  max-width: 220px;
  width: 100%;
}

@media (min-width: 640px) {
  .phone-mockup-wrap-inline .phone-mockup-frame {
    max-width: 240px;
  }
}

@media (min-width: 1024px) {
  .phone-mockup-wrap-inline .phone-mockup-frame {
    max-width: 260px;
  }
}

/* Phone mockup above services (single) */
.phone-mockup-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-bottom: 3rem;
  margin-bottom: 1rem;
}

/* Prevent drag on click – stop image following cursor */
.phone-mockup-frame,
.phone-mockup-frame img {
  -webkit-user-drag: none;
  user-drag: none;
}

.phone-mockup-frame {
  position: relative;
  max-width: 280px;
  width: 100%;
}

.phone-mockup-frame img.phone-mockup-device {
  width: 100%;
  height: auto;
  display: block;
}

.phone-mockup-screen {
  position: absolute;
  /* Tighter insets so content fills screen edge-to-edge like reference mockups */
  left: 3.7%;
  right: 3.7%;
  top: 1.7%;
  bottom: 1.7%;
  /* Scale radius with viewport: 25px on narrow, up to 40px on wide */
  border-radius: clamp(25px, 6vw, 40px);
  overflow: hidden;
  background: #000;
  /* So inner content corners align with screen cutout */
  isolation: isolate;
}

@media (min-width: 400px) and (max-width: 600px) {
  .phone-mockup-screen {
    /* Larger radius in 400–600px width range */
    border-radius: clamp(32px, 7.5vw, 40px);
  }
}

/* Swipeable carousel inside phone screen – horizontal (left/right) */
.phone-mockup-carousel {
  touch-action: pan-y pinch-zoom;
  cursor: grab;
  user-select: none;
}

.phone-mockup-carousel:active {
  cursor: grabbing;
}

.phone-mockup-carousel-track {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 400%;
  display: flex;
  flex-direction: row;
  will-change: transform;
}

/* Swipe left → content slides left (next slide enters from right) */
.phone-mockup-carousel-track[data-direction="left"] {
  transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Swipe right → content slides right (previous slide enters from left) */
.phone-mockup-carousel-track[data-direction="right"] {
  transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.phone-mockup-carousel-slide {
  flex: 0 0 25%;
  width: 25%;
  height: 100%;
  position: relative;
  min-width: 0;

}

.phone-mockup-carousel-slide img {
  object-fit: cover;
  object-position: top;
}

.phone-mockup-carousel-dots {
  position: absolute;
  bottom: 8px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 6px;
  z-index: 2;
  pointer-events: none;
}

.phone-mockup-carousel-dots .phone-mockup-dot {
  pointer-events: auto;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.phone-mockup-carousel-dots .phone-mockup-dot:hover {
  background: rgba(255, 255, 255, 0.7);
}

.phone-mockup-carousel-dots .phone-mockup-dot.active {
  background: #fff;
  transform: scale(1.2);
}

/* In the wide centered carousel, show dots only on the center phone */
.phone-mockup-centered-track .phone-mockup-centered-item .phone-mockup-carousel-dots {
  display: none;
}

.phone-mockup-centered-track .phone-mockup-centered-item.is-center .phone-mockup-carousel-dots {
  display: flex;
}

/* First-time hint inside phone screen: full-screen "Swipe to see more" */
.phone-mockup-swipe-hint {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem;
  background: rgba(2, 2, 2, 0.8);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  z-index: 3;
  pointer-events: none;
}

.phone-mockup-swipe-hint-arrows {
  font-size: 1.5rem;
  opacity: 0.95;
  letter-spacing: 0.25em;
}

.phone-mockup-swipe-hint-text {
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Next Image fill wrapper + img: cover full screen area (edge-to-edge) */
/* Exclude carousel track, dots, and swipe hint so they keep their own layout */
.phone-mockup-screen>*:not(.phone-mockup-carousel-track):not(.phone-mockup-carousel-dots):not(.phone-mockup-swipe-hint) {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
}

.phone-mockup-screen img {
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Project detail: single phone (no multi-app carousel) */
.phone-mockup-centered--solo {
  display: flex;
  padding-bottom: 2rem;
}

.phone-mockup-centered-track--solo {
  justify-content: center;
  transform: none !important;
}

.phone-mockup-centered-track--solo .phone-mockup-centered-item {
  transform: scale(1);
}

.projectDetail__mockup {
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 1000px) {
  .phone-mockup-single-view--solo {
    display: none !important;
  }
}

@media (max-width: 999px) {
  .phone-mockup-centered--solo {
    display: none !important;
  }

  .phone-mockup-single-view--solo {
    display: flex;
  }
}
