﻿/* ===== SLIDER CONTAINER ===== */
.slider {
  width: 100%;
  max-width: 950px;
  margin: 30px auto;
  aspect-ratio: 20 / 9;
  overflow: hidden;
  border-radius: 14px;

  background: transparent; /* ✅ */
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  position: relative;
}

/* subtle glow */
.slider::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 14px;
  pointer-events: none;
  box-shadow: 0 0 40px rgba(0,255,204,0.1);
}

/* ===== HEADER ===== */
.screenshots-header {
  text-align: center;
  margin-bottom: 20px;
}

.screenshots-header h2 {
  font-size: 2.2rem;
  font-weight: 800;
  display: inline-block;

  background: linear-gradient(90deg, #00c6ff, #00ffcc);
  background-clip: text;
  -webkit-background-clip: text;

  color: transparent;
  -webkit-text-fill-color: transparent;
}

/* underline */
.screenshots-header h2::after {
  content: '';
  display: block;
  width: 60%;
  height: 4px;
  margin: 8px auto 0;

  background: linear-gradient(90deg, #00c6ff, #00ffcc);
  border-radius: 4px;
  box-shadow: 0 0 10px rgba(0,255,204,0.5);
}

/* ===== IMAGE ===== */
.slider img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: transparent; /* ✅ */

  transition: transform 0.6s ease, opacity 0.6s ease;
}

/* active animation */
.slider img.slide-in {
  animation: slideIn 0.5s ease;
}

.slider img.slide-out {
  animation: slideOut 0.4s ease;
}

/* ===== ANIMATIONS ===== */
@keyframes slideIn {
  from {
    transform: translateX(40px) scale(0.98);
    opacity: 0;
  }
  to {
    transform: translateX(0) scale(1);
    opacity: 1;
  }
}

@keyframes slideOut {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(-40px);
    opacity: 0;
  }
}

/* ===== HOVER ZOOM EFFECT ===== */
.slider:hover img {
  transform: scale(1.02);
}

/* ===== DOT INDICATORS ===== */
.slider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}

.slider-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ccc;
  transition: 0.3s;
}

.slider-dots span.active {
  background: #00ffcc;
  transform: scale(1.3);
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {
  .slider {
    margin: 20px 10px;
    border-radius: 12px;
  }

  .screenshots-header h2 {
    font-size: 1.8rem;
  }
}

