/* ==========================================================================
   3D Coverflow Projects Showcase (Widescreen Landscape Glassmorphism)
   Theme: Electric Purple & Amethyst Glassmorphism
   ========================================================================== */

:root {
  --coverflow-purple-deep: #4c1d95;
  --coverflow-purple-royal: #6d28d9;
  --coverflow-purple-electric: #8b5cf6;
  --coverflow-purple-neon: #a855f7;
  --coverflow-purple-lavender: #c084fc;
  --coverflow-glass-bg: rgba(18, 10, 34, 0.85);
  --coverflow-glass-stroke: rgba(168, 85, 247, 0.4);
}

/* Coverflow Section Container */
.coverflow-section {
  position: relative;
  width: 100%;
  padding: 2.5rem 1rem 3rem;
  margin-bottom: 3rem;
  background: radial-gradient(circle at 50% 40%, rgba(139, 92, 246, 0.2) 0%, rgba(10, 6, 20, 0.6) 70%, transparent 100%);
  border-radius: 2rem;
  border: 1px solid rgba(168, 85, 247, 0.3);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

/* Ambient Purple Glow Background */
.coverflow-ambient-glow {
  position: absolute;
  top: 35%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 650px;
  height: 350px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.35) 0%, rgba(109, 40, 217, 0.12) 60%, transparent 80%);
  filter: blur(60px);
  pointer-events: none;
  z-index: 1;
}

/* Header Badge */
.coverflow-header {
  text-align: center;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 5;
}

.coverflow-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1.1rem;
  background: rgba(139, 92, 246, 0.18);
  border: 1px solid rgba(168, 85, 247, 0.45);
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--coverflow-purple-lavender);
  text-transform: uppercase;
  box-shadow: 0 0 25px rgba(168, 85, 247, 0.3);
}

.coverflow-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #c084fc;
  box-shadow: 0 0 12px #e9d5ff;
  animation: coverflowPulse 2s infinite ease-in-out;
}

@keyframes coverflowPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.6; }
}

/* Swiper Coverflow Viewport */
.projects-coverflow-slider {
  width: 100%;
  padding-top: 1.5rem;
  padding-bottom: 2rem;
  position: relative;
  z-index: 5;
}

/* Swiper Slide (Wide Landscape Rectangular 3D Glassmorphic Card) */
.projects-coverflow-slide {
  width: 520px;
  height: 360px;
  border-radius: 22px;
  background: var(--coverflow-glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--coverflow-glass-stroke);
  box-shadow:
    0 18px 45px rgba(0, 0, 0, 0.7),
    inset 0 1px 1px rgba(255, 255, 255, 0.25);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  user-select: none;
}

/* Active Center Slide Highlight (Neon Morphism & Scale) */
.projects-coverflow-slider .swiper-slide-active {
  border-color: rgba(233, 213, 255, 0.9);
  box-shadow:
    0 25px 60px rgba(168, 85, 247, 0.6),
    0 0 35px rgba(139, 92, 246, 0.5),
    inset 0 1px 2px rgba(255, 255, 255, 0.5);
  transform: scale(1.06);
}

/* Widescreen 16:9 Slide Image Box */
.coverflow-img-wrapper {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: #090514;
}

.coverflow-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.projects-coverflow-slide:hover .coverflow-img {
  transform: scale(1.06);
}

.coverflow-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(18, 10, 34, 0.3) 55%, rgba(18, 10, 34, 0.95) 100%);
  pointer-events: none;
}

/* Top Status Tags inside Image */
.coverflow-top-badges {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
}

.coverflow-status-pill {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.7rem;
  border-radius: 9999px;
  background: rgba(10, 5, 20, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #a7f3d0;
  text-transform: uppercase;
}

.coverflow-featured-star {
  background: linear-gradient(135deg, #a855f7 0%, #c084fc 100%);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  box-shadow: 0 0 15px rgba(168, 85, 247, 0.8);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

/* Slide Content Area (Wide Glass Bar) */
.coverflow-content {
  padding: 1rem 1.35rem 1.15rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: space-between;
  background: linear-gradient(180deg, rgba(22, 12, 40, 0.65) 0%, rgba(14, 7, 28, 0.98) 100%);
}

.coverflow-category {
  font-size: 0.6875rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0.03em;
  color: #c084fc;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.coverflow-tag {
  color: #c084fc;
  opacity: 0.9;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.coverflow-tag:hover {
  color: #f3e8ff;
  opacity: 1;
}

.coverflow-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.25;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.coverflow-headline {
  font-size: 0.8125rem;
  color: #cbd5e1;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 6px;
}

/* Bottom Action Row */
.coverflow-action-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 6px;
  border-top: 1px solid rgba(168, 85, 247, 0.25);
}

.coverflow-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.9rem;
  background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 0 18px rgba(168, 85, 247, 0.55);
  transition: all 0.3s ease;
  text-decoration: none;
}

.coverflow-cta-btn:hover {
  background: linear-gradient(135deg, #8b5cf6 0%, #c084fc 100%);
  transform: translateY(-2px);
  box-shadow: 0 0 28px rgba(168, 85, 247, 0.9);
}

.coverflow-demo-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.8rem;
  background: rgba(16, 185, 129, 0.15);
  backdrop-filter: blur(10px);
  color: #34d399;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 9999px;
  border: 1px solid rgba(52, 211, 153, 0.4);
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.25);
  transition: all 0.3s ease;
  text-decoration: none;
}

.coverflow-demo-btn:hover {
  background: rgba(16, 185, 129, 0.3);
  border-color: rgba(52, 211, 153, 0.8);
  color: #a7f3d0;
  transform: translateY(-2px);
  box-shadow: 0 0 22px rgba(16, 185, 129, 0.6);
}

.coverflow-tech-icons {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.coverflow-tech-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
}

/* Centered Navigation Controls (Tightly Grouped in Center) */
.coverflow-controls {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 1.25rem !important;
  margin: 1.25rem auto 0 !important;
  width: auto !important;
  max-width: max-content !important;
  position: relative !important;
  z-index: 20 !important;
  left: auto !important;
  right: auto !important;
}

.coverflow-nav-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(24, 13, 44, 0.9);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(168, 85, 247, 0.45);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  flex-shrink: 0;
  position: static !important;
  margin: 0 !important;
}

.coverflow-nav-btn:hover {
  background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
  transform: scale(1.12);
  box-shadow: 0 0 25px rgba(168, 85, 247, 0.8);
  border-color: rgba(255, 255, 255, 0.6);
}

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

/* Swiper Pagination Bullets (Override Swiper's Full-Width Absolute Default) */
.coverflow-pagination {
  position: static !important;
  width: auto !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.5rem !important;
  margin: 0 !important;
  transform: none !important;
  left: auto !important;
  bottom: auto !important;
}

.coverflow-pagination .swiper-pagination-bullet {
  width: 9px !important;
  height: 9px !important;
  background: rgba(168, 85, 247, 0.45) !important;
  opacity: 1 !important;
  border-radius: 9999px !important;
  transition: all 0.35s ease !important;
  margin: 0 !important;
}

.coverflow-pagination .swiper-pagination-bullet-active {
  width: 28px !important;
  background: linear-gradient(90deg, #8b5cf6, #c084fc) !important;
  box-shadow: 0 0 15px rgba(168, 85, 247, 0.9) !important;
}

/* Mobile & Tablet Responsiveness */
@media (max-width: 768px) {
  .projects-coverflow-slide {
    width: 420px;
    height: 330px;
  }
  .coverflow-img-wrapper {
    height: 190px;
  }
}

@media (max-width: 640px) {
  .projects-coverflow-slide {
    width: 300px;
    height: 300px;
  }
  .coverflow-img-wrapper {
    height: 160px;
  }
  .coverflow-title {
    font-size: 0.95rem;
  }
  .coverflow-headline {
    display: none;
  }
}
