/* ================================================
   SCREENSHOTS SECTION - PREMIUM CINEMATIC STYLING
   ================================================ */

.screenshots-section {
  position: relative;
  overflow: hidden;
  padding: 40px 18px 60px;
  background: radial-gradient(circle at top, rgba(0, 255, 65, 0.06), transparent 18%), #020202;
}

.screenshots-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 18%, rgba(0, 255, 65, 0.08), transparent 24%), radial-gradient(circle at 16% 72%, rgba(0, 255, 65, 0.04), transparent 16%);
  pointer-events: none;
  z-index: 1;
}

.screenshots-container {
  position: relative;
  z-index: 2;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  padding: 0 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.screenshots-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  margin-bottom: 32px;
}

.screenshots-heading {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 18px 34px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(0, 255, 65, 0.24);
  box-shadow: 0 0 28px rgba(0, 255, 65, 0.12), inset 0 0 20px rgba(0, 255, 65, 0.04);
  backdrop-filter: blur(18px);
}

.screenshots-heading h2 {
  font-size: 34px;
  font-weight: 800;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin: 0;
  text-shadow: 0 0 18px rgba(0, 255, 65, 0.18);
}

.camera-icon {
  font-size: 22px;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.56);
  border: 1px solid rgba(0, 255, 65, 0.35);
  color: #00ff41;
  box-shadow: 0 0 18px rgba(0, 255, 65, 0.18);
}

.screenshots-showcase {
  position: relative;
  overflow: hidden;
  padding: 0;
  min-height: auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.showcase-glow {
  position: absolute;
  top: 14%;
  left: 50%;
  transform: translateX(-50%);
  width: 840px;
  height: 440px;
  background: radial-gradient(circle, rgba(0, 255, 65, 0.16) 0%, transparent 56%);
  filter: blur(96px);
  pointer-events: none;
  z-index: 1;
}

.screenshotsSwiper {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 100%;
  padding: 0;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.swiper-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  box-sizing: border-box;
  transform-style: preserve-3d;
}

.swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 260px;
  max-width: 260px;
  transition: transform 0.45s ease, opacity 0.45s ease;
  opacity: 0.82;
}

.swiper-slide-active {
  opacity: 1;
}

.swiper-slide-next,
.swiper-slide-prev {
  opacity: 0.88;
}

.swiper-slide-active .phone-frame {
  transform: scale(1.03);
  box-shadow: inset 0 0 28px rgba(255, 255, 255, 0.05), 0 36px 90px rgba(0, 0, 0, 0.55);
}

.phone-frame {
  position: relative;
  width: 260px;
  height: auto;
  border-radius: 48px;
  overflow: hidden;
  background: linear-gradient(180deg, #070707 0%, #0d0d0d 100%);
  border: 1px solid rgba(0, 255, 65, 0.22);
  box-shadow: inset 0 0 26px rgba(255, 255, 255, 0.04), 0 36px 90px rgba(0, 0, 0, 0.55);
  transition: transform 0.45s ease, box-shadow 0.45s ease;
}

.phone-frame::before {
  content: '';
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 14px;
  border-radius: 0 0 14px 14px;
  background: rgba(0, 0, 0, 0.78);
  border: 1px solid rgba(0, 255, 65, 0.14);
}

.phone-frame::after {
  content: '';
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 56px;
  height: 5px;
  border-radius: 999px;
  background: rgba(0, 255, 65, 0.12);
  filter: blur(1px);
}

.phone-frame img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  border-radius: 40px;
}

.swiper-button-prev,
.swiper-button-next {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 48px;
  height: 48px;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.42);
  border: 1px solid rgba(0, 255, 65, 0.48);
  border-radius: 50%;
  color: #00ff41;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 26px rgba(0, 255, 65, 0.24);
  transition: transform 0.24s ease, box-shadow 0.24s ease, background 0.24s ease;
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
  transform: translateY(-50%) scale(1.08);
  background: rgba(0, 255, 65, 0.08);
  box-shadow: 0 0 34px rgba(0, 255, 65, 0.35);
}

.swiper-button-prev {
  left: 20px;
}

.swiper-button-next {
  right: 20px;
}

.swiper-button-prev::after,
.swiper-button-next::after {
  font-size: 22px;
  font-weight: 800;
}

.swiper-button-prev::after {
  content: '‹';
}

.swiper-button-next::after {
  content: '›';
}

.swiper-pagination {
  text-align: center;
  margin-top: 46px;
}

.swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  margin: 0 7px;
  background: rgba(0, 255, 65, 0.22);
  border: 1px solid rgba(0, 255, 65, 0.32);
  opacity: 1;
  transition: transform 0.2s ease, background 0.2s ease;
}

.swiper-pagination-bullet-active {
  width: 12px;
  height: 12px;
  background: #00ff41;
  border-color: rgba(0, 255, 65, 0.85);
  box-shadow: 0 0 22px rgba(0, 255, 65, 0.32);
}

@media (max-width: 1199px) {
  .screenshots-section {
    padding: 40px 16px 60px;
  }

  .screenshots-heading {
    padding: 16px 28px;
  }

  .screenshots-heading h2 {
    font-size: 30px;
  }

  .showcase-glow {
    width: 680px;
    height: 360px;
  }

  .phone-frame {
    width: 220px;
    height: auto;
  }

  .swiper-slide {
    width: 220px;
    max-width: 220px;
  }

  .swiper-button-prev {
    left: 20px;
  }

  .swiper-button-next {
    right: 20px;
  }
}

@media (max-width: 768px) {
  .screenshots-section {
    padding: 32px 12px 70px;
    overflow: hidden;
  }

  .screenshots-heading {
    width: 100%;
    justify-content: center;
    padding: 14px 24px;
  }

  .screenshots-heading h2 {
    font-size: 28px;
  }

  .screenshots-showcase {
    width: 100%;
    min-height: auto;
    height: auto;
    overflow: hidden;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .showcase-glow {
    width: 420px;
    height: 240px;
    top: 16%;
  }

  .screenshotsSwiper {
    width: 100%;
    height: auto;
    min-height: 380px;
    overflow: hidden;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 0;
    margin: 0 auto;
  }

  .swiper-wrapper {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    gap: 0 !important;
  }

  .screenshotsSwiper .swiper-slide {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 75vw !important;
    max-width: 320px !important;
    flex-shrink: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
    position: relative !important;
    transition: opacity 0.4s ease !important;
  }

  .screenshotsSwiper .swiper-slide-active {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    z-index: 15 !important;
  }

  .swiper-slide-prev,
  .swiper-slide-next {
    opacity: 0 !important;
    pointer-events: none !important;
  }

  .phone-frame {
    width: 100% !important;
    max-width: 320px !important;
    height: auto !important;
    min-height: 280px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(0, 0, 0, 0.75) !important;
    border: 1px solid rgba(0, 255, 65, 0.35) !important;
    box-shadow: 0 0 28px rgba(0, 255, 65, 0.18) !important;
    border-radius: 32px !important;
    overflow: hidden !important;
  }

  .phone-frame img {
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  .phone-frame::before {
    width: 80px;
    height: 12px;
  }

  .phone-frame::after {
    width: 48px;
    height: 4px;
  }

  .swiper-button-prev,
  .swiper-button-next {
    width: 40px;
    height: 40px;
    z-index: 25 !important;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(0, 255, 65, 0.4);
    font-size: 20px;
    pointer-events: auto !important;
    cursor: pointer !important;
  }

  .swiper-button-prev {
    left: 10px;
  }

  .swiper-button-next {
    right: 10px;
  }

  .swiper-button-prev:hover,
  .swiper-button-next:hover {
    background: rgba(0, 255, 65, 0.12);
  }

  .swiper-pagination {
    position: static !important;
    margin-top: 28px !important;
    z-index: 15;
    text-align: center;
  }

  .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    margin: 0 5px;
  }
}

@media (max-width: 480px) {
  .screenshots-section {
    padding: 28px 10px 60px;
    overflow: hidden;
  }

  .screenshots-heading {
    gap: 10px;
    padding: 12px 18px;
  }

  .screenshots-heading h2 {
    font-size: 22px;
  }

  .camera-icon {
    width: 32px;
    height: 32px;
    font-size: 18px;
  }

  .showcase-glow {
    width: 280px;
    height: 180px;
    top: 18%;
  }

  .screenshotsSwiper {
    width: 100%;
    height: auto;
    min-height: 340px;
    overflow: hidden;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 0;
    margin: 0 auto;
  }

  .swiper-wrapper {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    gap: 0 !important;
  }

  .swiper-slide {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 80vw !important;
    max-width: 260px !important;
    flex-shrink: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
    position: relative !important;
    transition: opacity 0.4s ease !important;
  }

  .swiper-slide-active {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    z-index: 15 !important;
  }

  .swiper-slide-prev,
  .swiper-slide-next {
    opacity: 0 !important;
    pointer-events: none !important;
  }

  .phone-frame {
    width: 100% !important;
    max-width: 260px !important;
    height: auto !important;
    min-height: 260px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(0, 0, 0, 0.75) !important;
    border: 1px solid rgba(0, 255, 65, 0.35) !important;
    box-shadow: 0 0 22px rgba(0, 255, 65, 0.14) !important;
    border-radius: 28px !important;
    overflow: hidden !important;
  }

  .phone-frame img {
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  .swiper-slide-active {
    opacity: 1 !important;
    pointer-events: auto !important;
    position: relative !important;
    left: auto !important;
    transform: none !important;
    z-index: 10 !important;
  }

  .swiper-slide-prev,
  .swiper-slide-next {
    opacity: 0 !important;
    pointer-events: none !important;
  }

  .swiper-button-prev,
  .swiper-button-next {
    width: 36px;
    height: 36px;
    z-index: 25 !important;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(0, 255, 65, 0.4);
    font-size: 18px;
    pointer-events: auto !important;
    cursor: pointer !important;
  }

  .swiper-button-prev {
    left: 8px;
  }

  .swiper-button-next {
    right: 8px;
  }

  .swiper-button-prev:hover,
  .swiper-button-next:hover {
    background: rgba(0, 255, 65, 0.12);
  }

  .swiper-pagination {
    position: static !important;
    margin-top: 24px !important;
    z-index: 15;
    text-align: center;
  }

  .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    margin: 0 4px;
  }
}

.swiper-wrapper {
  transition-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.swiper-horizontal > .swiper-scrollbar {
  bottom: 5px;
}

.screenshotsSwiper {
  overflow: visible;
}

.swiper-wrapper {
  box-sizing: border-box;
}

/* Mobile fallback: keep screenshots visible even if Swiper classes load late. */
@media (max-width: 768px) {
  .screenshots-section .screenshots-showcase {
    width: 100%;
    min-height: clamp(430px, 122vw, 640px);
    overflow: hidden;
  }

  .screenshots-section .screenshotsSwiper {
    width: 100%;
    min-height: clamp(410px, 118vw, 620px);
    overflow: hidden !important;
    padding: 18px 0 42px;
  }

  .screenshots-section .screenshotsSwiper .swiper-wrapper {
    justify-content: flex-start !important;
    align-items: center !important;
    height: auto !important;
  }

  .screenshots-section .screenshotsSwiper .swiper-slide {
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
  }

  .screenshots-section .screenshotsSwiper .phone-frame {
    width: min(72vw, 300px) !important;
    max-width: 300px !important;
    min-height: 0 !important;
    aspect-ratio: 9 / 19.5;
    border-radius: 34px !important;
  }

  .screenshots-section .screenshotsSwiper .phone-frame img {
    width: 100% !important;
    height: 100% !important;
    display: block !important;
    object-fit: cover;
    opacity: 1 !important;
    visibility: visible !important;
  }
}

@media (max-width: 480px) {
  .screenshots-section .screenshots-showcase {
    min-height: clamp(390px, 128vw, 540px);
  }

  .screenshots-section .screenshotsSwiper {
    min-height: clamp(370px, 124vw, 520px);
    padding: 16px 0 38px;
  }

  .screenshots-section .screenshotsSwiper .phone-frame {
    width: min(74vw, 250px) !important;
    max-width: 250px !important;
    border-radius: 28px !important;
  }
}
