/* ============================================================
   Quicklink Sky — Carousel & Extra Animations
   ============================================================ */

/* ── Hero Carousel (replaces marquee) ───────────────────────── */
.hero-carousel-section {
  background: var(--dark2);
  padding: 80px 0;
  overflow: hidden;
  position: relative;
}

.carousel-heading {
  text-align: center;
  margin-bottom: 48px;
}

/* Main Full-Width Image Carousel */
.main-carousel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  background: var(--dark3);
}

.carousel-track {
  display: flex;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.carousel-slide {
  flex: 0 0 100%;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.carousel-slide img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  display: block;
  transition: transform 8s ease;
}

.carousel-slide.active img {
  transform: scale(1.06);
}

.carousel-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.75) 0%,
    rgba(0,0,0,0.2) 50%,
    transparent 100%
  );
  display: flex;
  align-items: flex-end;
  padding: 40px 48px;
}

.carousel-slide-content {
  transform: translateY(10px);
  opacity: 0;
  transition: transform 0.6s ease 0.3s, opacity 0.6s ease 0.3s;
}

.carousel-slide.active .carousel-slide-content {
  transform: translateY(0);
  opacity: 1;
}

.carousel-slide-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(232,71,26,0.85);
  border-radius: 999px;
  padding: 5px 16px;
  font-size: 0.72rem;
  font-weight: 700;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
  backdrop-filter: blur(8px);
}

.carousel-slide-title {
  font-size: clamp(1.3rem, 3vw, 2rem);
  font-weight: 700;
  color: white;
  margin-bottom: 8px;
  line-height: 1.3;
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}

.carousel-slide-caption {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.75);
  max-width: 520px;
}

/* Carousel Controls */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 1.5px solid rgba(255,255,255,0.2);
  backdrop-filter: blur(12px);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: var(--tr);
  z-index: 10;
}

.carousel-btn:hover {
  background: var(--orange);
  border-color: var(--orange);
  transform: translateY(-50%) scale(1.08);
  box-shadow: 0 8px 24px rgba(232,71,26,0.4);
}

.carousel-btn-prev { left: 20px; }
.carousel-btn-next { right: 20px; }

/* Carousel Dots */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.2);
  cursor: pointer;
  transition: var(--tr);
  border: none;
}

.carousel-dot.active {
  background: var(--orange);
  width: 28px;
}

/* Carousel Thumbnails */
.carousel-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 14px;
}

.carousel-thumb {
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  position: relative;
  aspect-ratio: 16/9;
  border: 2px solid transparent;
  transition: var(--tr);
  background: var(--dark3);
}

.carousel-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--tr);
}

.carousel-thumb.active {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(232,71,26,0.2);
}

.carousel-thumb:hover img { transform: scale(1.05); }

.carousel-thumb-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--tr);
}

.carousel-thumb.active .carousel-thumb-overlay,
.carousel-thumb:hover .carousel-thumb-overlay { opacity: 1; }

/* ── Testimonial / Quote Carousel ────────────────────── */
.quote-carousel {
  position: relative;
  overflow: hidden;
  min-height: 200px;
}

.quote-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.quote-slide {
  flex: 0 0 100%;
  padding: 0 48px;
  text-align: center;
}

.quote-slide-text {
  font-size: clamp(1.05rem, 2.5vw, 1.4rem);
  font-weight: 500;
  color: white;
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 24px;
  position: relative;
}

.quote-slide-text::before {
  content: '"';
  font-size: 5rem;
  color: var(--orange);
  font-family: Georgia, serif;
  line-height: 0.6;
  position: absolute;
  top: 0;
  left: -20px;
  opacity: 0.35;
}

.quote-author {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 999px;
  padding: 8px 20px 8px 8px;
}

.quote-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange), var(--teal));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: white;
  flex-shrink: 0;
}

.quote-name { font-size: 0.85rem; font-weight: 600; color: white; }
.quote-role { font-size: 0.72rem; color: rgba(255,255,255,0.4); }

.quote-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
}

.quote-nav-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--tr);
  font-size: 0.9rem;
}

.quote-nav-btn:hover {
  background: var(--orange);
  border-color: var(--orange);
}

.quote-dots {
  display: flex;
  gap: 6px;
}

.quote-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  border: none;
  cursor: pointer;
  transition: var(--tr);
}

.quote-dot.active {
  background: var(--orange);
  transform: scale(1.3);
}

/* ── Top Ticker (news scroll) ─────────────────────── */
.ticker-bar {
  background: linear-gradient(90deg, var(--orange-dk), var(--orange));
  padding: 11px 0;
  overflow: hidden;
  position: relative;
}

.ticker-bar::before,
.ticker-bar::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 60px;
  z-index: 2;
  pointer-events: none;
}

.ticker-bar::before {
  left: 0;
  background: linear-gradient(to right, var(--orange-dk), transparent);
}

.ticker-bar::after {
  right: 0;
  background: linear-gradient(to left, var(--orange), transparent);
}

.ticker-label {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  background: var(--dark);
  display: flex;
  align-items: center;
  padding: 0 20px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  z-index: 3;
  white-space: nowrap;
  border-right: 1px solid rgba(255,255,255,0.1);
}

.ticker-track {
  display: flex;
  animation: tickerScroll 40s linear infinite;
  width: max-content;
  padding-left: 140px;
}

.ticker-track:hover { animation-play-state: paused; }

.ticker-item {
  white-space: nowrap;
  font-size: 0.82rem;
  font-weight: 600;
  color: white;
  padding: 0 36px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.ticker-item::after {
  content: '◆';
  font-size: 0.4rem;
  opacity: 0.5;
}

@keyframes tickerScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── Feature Cards Carousel (mobile) ─────────────── */
.cards-carousel {
  position: relative;
}

.cards-track-wrapper {
  overflow: hidden;
}

.cards-track {
  display: flex;
  gap: 20px;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.cards-nav {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
}

/* ── Progress Bar on Carousel ────────────────────── */
.carousel-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: var(--orange);
  border-radius: 0 2px 2px 0;
  transition: width 0.1s linear;
  z-index: 10;
}

/* ── Responsive overrides ────────────────────────── */
@media (max-width: 768px) {
  .carousel-slide img { height: 300px; }
  .carousel-slide-overlay { padding: 24px; }
  .carousel-slide-title { font-size: 1.2rem; }
  .carousel-thumbs { grid-template-columns: repeat(2, 1fr); }
  .quote-slide { padding: 0 16px; }
  .carousel-btn { width: 40px; height: 40px; font-size: 0.9rem; }
}
