/* ==========================================================
   ThinkAIQ — Projects coverflow carousel
   LIGHT theme. Vanilla Swiper (coverflow effect).
   Accent gradient: cyan -> purple.
   ========================================================== */

.drift-projects-section {
  background: #f8fafc;
  position: relative;
  overflow: hidden;
}

.drift-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 44px;
  padding: 0 16px;
}

.drift-eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid rgba(6, 182, 212, 0.25);
  background: rgba(6, 182, 212, 0.08);
  color: #0891b2;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.drift-title {
  font-size: 28px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.25;
  margin: 0 0 12px;
}

.drift-subtitle {
  font-size: 15px;
  color: #64748b;
  line-height: 1.55;
  margin: 0;
}

/* ---------- Carousel ---------- */
.projects-coverflow {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 0 26px;
}

.projects-coverflow .swiper-wrapper {
  align-items: stretch;
}

.projects-coverflow .swiper-slide {
  height: auto;
}

/* ---------- Card ---------- */
.project-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
  border-color: rgba(6, 182, 212, 0.35);
}

.project-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, #cffafe, #ddd6fe);
}

.project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Image-only project card (real screenshots, no title/description/button) */
.project-card--media .project-thumb {
  aspect-ratio: 16 / 10;
}

.project-card--media .project-thumb img {
  object-position: top center;
}

.project-thumb.is-fallback img {
  display: none;
}

.project-thumb.is-fallback::after {
  content: attr(data-initial);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 44px;
  font-weight: 800;
  color: rgba(15, 23, 42, 0.5);
}

.project-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 20px;
}

.project-cat {
  align-self: flex-start;
  margin-bottom: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #0891b2;
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.2);
}

.project-title {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 8px;
  line-height: 1.3;
}

.project-desc {
  margin: 0 0 16px;
  font-size: 14px;
  color: #64748b;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.project-link {
  margin-top: auto;
  font-size: 13.5px;
  font-weight: 700;
  color: #06b6d4;
  text-decoration: none;
  transition: color 0.2s ease;
}

.project-link:hover {
  color: #8b5cf6;
}

/* ---------- Controls ---------- */
.projects-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 8px;
}

.projects-prev,
.projects-next {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #ffffff;
  color: #0f172a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.projects-prev:hover,
.projects-next:hover {
  border-color: #06b6d4;
  color: #06b6d4;
  transform: translateY(-2px);
}

.projects-dots {
  display: flex;
  align-items: center;
  gap: 6px;
  width: auto;
}

.projects-dots .swiper-pagination-bullet {
  width: 7px;
  height: 7px;
  margin: 0 !important;
  background: #cbd5e1;
  opacity: 1;
  transition: all 0.25s ease;
}

.projects-dots .swiper-pagination-bullet-active {
  width: 20px;
  border-radius: 999px;
  background: linear-gradient(135deg, #06b6d4, #8b5cf6);
}

/* ---------- CTA ---------- */
.drift-cta {
  margin-top: 56px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 30px 24px;
  border-radius: 20px;
  border: 1px solid rgba(6, 182, 212, 0.18);
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.08), rgba(139, 92, 246, 0.06));
}

.drift-cta-text h3 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 800;
  color: #0f172a;
}

.drift-cta-text p {
  margin: 0;
  font-size: 14px;
  color: #64748b;
}

.drift-cta-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.drift-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 22px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  transition: all 0.2s ease;
}

.drift-btn-primary {
  background: linear-gradient(135deg, #06b6d4, #8b5cf6);
  color: #ffffff;
  box-shadow: 0 10px 26px rgba(6, 182, 212, 0.28);
}

.drift-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(6, 182, 212, 0.36);
}

.drift-btn-ghost {
  background: #ffffff;
  color: #0f172a;
  border: 1px solid rgba(15, 23, 42, 0.12);
}

.drift-btn-ghost:hover {
  border-color: #06b6d4;
  color: #06b6d4;
}

/* ═══════════════════════════════════════════
   TABLET (≥ 768px)
═══════════════════════════════════════════ */
@media (min-width: 768px) {
  .drift-title {
    font-size: 32px;
  }

  .drift-subtitle {
    font-size: 16px;
  }

  .drift-cta {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 34px 36px;
  }

  .drift-cta-text h3 {
    font-size: 24px;
  }

  .drift-cta-actions {
    flex-direction: row;
    width: auto;
    flex-shrink: 0;
  }
}

/* ═══════════════════════════════════════════
   DESKTOP (≥ 1024px)
═══════════════════════════════════════════ */
@media (min-width: 1024px) {
  .drift-title {
    font-size: 36px;
  }
}

/* ═══════════════════════════════════════════
   REDUCED MOTION
═══════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  .project-card:hover,
  .projects-prev:hover,
  .projects-next:hover,
  .drift-btn-primary:hover {
    transform: none;
  }
}
