/* ============================================================
   SLIDES.CSS — COVERFLOW row with auto-advancing active card.
   ============================================================ */

.colorlib-experience[data-section="experience"],
.colorlib-experience[data-section="achievements"] {
  padding: 100px 0 !important;
  background: linear-gradient(180deg, #ffffff 0%, #faf6ef 100%);
  overflow: hidden;
}

/* ── Coverflow viewport — visible window holding the row ── */
.colorlib-experience[data-section="experience"] .timeline-centered,
.colorlib-experience[data-section="achievements"] .timeline-centered {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  gap: 18px !important;
  padding: 50px 0 !important;
  margin-top: 32px;
  min-height: 380px;
  overflow: visible;
  position: relative;
  counter-reset: slide-counter;
  /* JS will set transform: translateX() to slide row left/right */
  transition: transform 0.85s cubic-bezier(.32,.72,.0,1);
  will-change: transform;
}

/* Kill timeline line + terminator + any old rotations */
.colorlib-experience[data-section="experience"] .timeline-centered::before,
.colorlib-experience[data-section="achievements"] .timeline-centered::before { display: none !important; }
.colorlib-experience[data-section="experience"] .timeline-entry.begin,
.colorlib-experience[data-section="achievements"] .timeline-entry.begin { display: none !important; }

/* Override all nth-child shuffle rotations from previous design */
.colorlib-experience .timeline-entry:nth-child(n) .timeline-entry-inner {
  transform: none;
}

/* Each tile = fixed-width card in the row */
.colorlib-experience[data-section="experience"] .timeline-entry,
.colorlib-experience[data-section="achievements"] .timeline-entry {
  flex: 0 0 240px;
  margin: 0 !important;
  padding: 0 !important;
  counter-increment: slide-counter;
}

/* The tile card itself — DIM + SMALL + BLURRED by default */
.colorlib-experience[data-section="experience"] .timeline-entry-inner,
.colorlib-experience[data-section="achievements"] .timeline-entry-inner {
  padding: 0 !important;
  aspect-ratio: 1 / 1.15;
  min-height: 260px;
  height: auto !important;
  display: flex !important;
  flex-direction: column !important;
  background: #ffffff;
  border: 1px solid rgba(0, 100, 255, 0.08);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0, 30, 90, 0.05);

  /* Default state: ALL CARDS in the back */
  opacity: 0.20;
  transform: scale(0.78);
  filter: blur(2.5px);

  transition:
    opacity   0.85s cubic-bezier(.32,.72,.0,1),
    transform 0.85s cubic-bezier(.32,.72,.0,1),
    filter    0.85s cubic-bezier(.32,.72,.0,1),
    box-shadow 0.85s cubic-bezier(.32,.72,.0,1);
  position: relative;
  isolation: isolate;
  will-change: transform, opacity, filter;
}

/* Neighbors of the active card — medium opacity */
.colorlib-experience .timeline-entry.ck-near .timeline-entry-inner {
  opacity: 0.55;
  transform: scale(0.90);
  filter: blur(1px);
}

/* THE ACTIVE TILE — front, glowing, full opacity */
.colorlib-experience .timeline-entry.ck-active .timeline-entry-inner {
  opacity: 1;
  transform: scale(1.10) translateY(-6px);
  filter: blur(0);
  border-color: rgba(0, 180, 255, 0.5);
  box-shadow:
    0 35px 70px rgba(0, 120, 255, 0.30),
    0 14px 28px rgba(0, 80, 200, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
  z-index: 10;
}

/* Hover still works — bring any card to the front when hovered */
.colorlib-experience .timeline-entry-inner:hover {
  opacity: 1 !important;
  transform: scale(1.05) translateY(-4px) !important;
  filter: blur(0) !important;
  z-index: 20;
}

/* Soft radial accent on the active card */
.colorlib-experience .timeline-entry.ck-active .timeline-entry-inner::before {
  content: '';
  position: absolute;
  top: -50px; right: -50px;
  width: 200px; height: 200px;
  background: radial-gradient(closest-side, rgba(0, 180, 255, 0.20), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* Slide number top-left */
.colorlib-experience .timeline-entry-inner > div:not(.timeline-icon)::after {
  content: '';
}
.colorlib-experience .timeline-entry-inner::after {
  content: counter(slide-counter, decimal-leading-zero);
  position: absolute;
  top: 16px; left: 20px;
  font-family: var(--ck-mono, 'JetBrains Mono', monospace);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 3px;
  color: rgba(0, 100, 255, 0.45);
  z-index: 2;
}

/* Brand-logo orb — centered top */
.colorlib-experience .timeline-icon {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  margin: 32px auto 14px !important;
  width: 72px !important;
  height: 72px !important;
  border-radius: 20px !important;
  font-size: 26px !important;
  z-index: 2;
}
.colorlib-experience .hk-brand i { font-size: 26px !important; }
.colorlib-experience .hk-brand.ibm span    { font-size: 14px !important; padding: 5px 9px !important; }
.colorlib-experience .hk-brand.aws span    { font-size: 18px !important; }
.colorlib-experience .hk-brand.coursera span,
.colorlib-experience .hk-brand.udemy span  { font-size: 26px !important; }

/* Card text content */
.colorlib-experience .timeline-label {
  flex: 1 !important;
  padding: 6px 18px 22px !important;
  background: transparent !important;
  backdrop-filter: none !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  text-align: center !important;
  transform: none !important;
}

.colorlib-experience .timeline-label h2 {
  display: block !important;
  font-family: var(--ck-display, 'Fraunces', serif) !important;
  font-variation-settings: "opsz" 60, "SOFT" 50, "WONK" 1 !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  line-height: 1.18 !important;
  letter-spacing: -0.01em !important;
  color: #0a0a14 !important;
  margin: 0 0 12px !important;
  text-align: center;
}
.colorlib-experience .timeline-label h2 a {
  color: #0a0a14 !important;
  text-decoration: none !important;
}
.colorlib-experience .timeline-label h2 span {
  display: inline-block;
  font-family: var(--ck-mono, 'JetBrains Mono', monospace) !important;
  font-size: 9px !important;
  font-weight: 700 !important;
  letter-spacing: 2px !important;
  text-transform: uppercase;
  color: var(--ck-blue, #0066ff) !important;
  background: rgba(0, 120, 255, 0.06) !important;
  border: 1px solid rgba(0, 120, 255, 0.18) !important;
  padding: 4px 10px !important;
  border-radius: 999px !important;
  margin-top: 8px !important;
}

/* Decorative bottom accent — visible only on active card */
.colorlib-experience .timeline-label::after {
  content: '';
  display: block;
  height: 3px;
  margin: 12px auto 0;
  background: linear-gradient(90deg, var(--ck-blue), var(--ck-cyan));
  border-radius: 2px;
  width: 36px;
  transition: width 0.7s cubic-bezier(.32,.72,.0,1);
}
.colorlib-experience .timeline-entry.ck-active .timeline-label::after { width: 60%; }

/* Outer wrapper — fade-out edges with mask */
.colorlib-experience[data-section="experience"] .col-md-12:has(.timeline-centered),
.colorlib-experience[data-section="achievements"] .col-md-12:has(.timeline-centered) {
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(90deg, transparent 0%, #fff 8%, #fff 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #fff 8%, #fff 92%, transparent 100%);
}

/* SHUFFLE button (existing) — kept but restyled to fit */
.ck-shuffle-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding: 12px 22px;
  background: #0a0a14;
  color: #fff;
  border: none;
  border-radius: 999px;
  font-family: var(--ck-mono, 'JetBrains Mono', monospace);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 4px;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(10, 10, 20, 0.20);
  transition: all 0.28s cubic-bezier(.2,.8,.2,1);
  position: relative;
}
.ck-shuffle-btn:hover {
  background: linear-gradient(135deg, #0066ff, #00d4ff);
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(0, 120, 255, 0.42);
}

/* Active-indicator dots below the row */
.ck-cover-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}
.ck-cover-dots span {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(0, 100, 255, 0.20);
  transition: all 0.35s;
}
.ck-cover-dots span.on {
  background: linear-gradient(135deg, #0066ff, #00d4ff);
  width: 22px;
  border-radius: 4px;
  box-shadow: 0 0 8px rgba(0, 180, 255, 0.5);
}

/* ── Mobile ─────────────────────────────────────── */
@media (max-width: 600px) {
  .colorlib-experience[data-section="experience"] .timeline-entry,
  .colorlib-experience[data-section="achievements"] .timeline-entry {
    flex: 0 0 200px;
  }
  .colorlib-experience .timeline-entry-inner { min-height: 220px; border-radius: 22px; }
  .colorlib-experience .timeline-icon {
    width: 56px !important;
    height: 56px !important;
    margin: 22px auto 8px !important;
    border-radius: 16px !important;
  }
}
