/* ============================================================
   SkyGroupGh — Homepage enhancements
   ============================================================ */

/* --- Gradient text ------------------------------------------------------- */
.text-gradient {
  background: linear-gradient(135deg, #0d6efd 0%, #5b8def 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* --- Hero: dark gradient overlay ---------------------------------------- */
.hero-wrap { position: relative; }
.hero-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6,20,41,.35) 0%, rgba(6,20,41,.7) 100%);
  pointer-events: none;
}
.hero-wrap .carousel-caption { z-index: 2; }
.hero-title { text-shadow: 0 4px 24px rgba(0,0,0,.4); }

/* --- Stats strip -------------------------------------------------------- */
.stats-wrap { position: relative; z-index: 3; margin-top: -60px; }
.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  background: #fff;
  padding: 2.5rem 2rem;
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(13,110,253,.12);
}
.stats-strip .stat {
  text-align: center;
  padding: 0 1rem;
  border-right: 1px solid #eef1f6;
}
.stats-strip .stat:last-child { border-right: 0; }
.stats-strip .stat .num {
  font-size: 2.6rem;
  font-weight: 800;
  color: #0d6efd;
  line-height: 1;
  display: inline-block;
}
.stats-strip .stat .num::after {
  content: "+";
  font-size: 1.5rem;
  vertical-align: top;
  margin-left: 2px;
}
.stats-strip .stat.no-plus .num::after { content: ""; }
.stats-strip .stat .label {
  font-size: .9rem;
  color: #6b7280;
  margin-top: .5rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 600;
}

/* --- Card lift ---------------------------------------------------------- */
.card-lift {
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
  border: 1px solid transparent;
  height: 100%;
}
.card-lift:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(13,110,253,.12);
  border-color: rgba(13,110,253,.15);
}

/* --- Service cards ------------------------------------------------------ */
.service-card {
  background: #fff;
  border-radius: 18px;
  padding: 2rem 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  height: 100%;
}
.service-card::before {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 4px;
  background: linear-gradient(90deg, #0d6efd, #5b8def);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s ease;
}
.service-card:hover::before { transform: scaleX(1); }
.service-card .icon-wrap {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e7f0ff, #d5e5ff);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: #0d6efd;
  font-size: 1.75rem;
  transition: transform .4s ease, background .4s ease, color .4s ease;
}
.service-card:hover .icon-wrap {
  transform: rotate(-8deg) scale(1.08);
  background: linear-gradient(135deg, #0d6efd, #5b8def);
  color: #fff;
}
.service-card .service-arrow {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin-top: .75rem;
  color: #0d6efd;
  font-weight: 600;
  font-size: .9rem;
  text-decoration: none;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .35s ease, transform .35s ease;
}
.service-card:hover .service-arrow { opacity: 1; transform: translateY(0); }

/* --- About floating badge ---------------------------------------------- */
.about-badge {
  position: absolute;
  bottom: 24px;
  right: -20px;
  background: #0d6efd;
  color: #fff;
  padding: 1.5rem 1.75rem;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(13,110,253,.35);
  text-align: center;
  animation: float-badge 4s ease-in-out infinite;
}
.about-badge .num { font-size: 2.25rem; font-weight: 800; line-height: 1; }
.about-badge .label { font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; margin-top: .35rem; opacity: .9; }
@keyframes float-badge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* --- Why choose us feature tiles --------------------------------------- */
.feature-tile {
  background: #fff;
  border-radius: 16px;
  padding: 1.75rem;
  height: 100%;
  border: 1px solid #eef1f6;
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}
.feature-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(13,110,253,.1);
  border-color: rgba(13,110,253,.25);
}
.feature-tile .icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(13,110,253,.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #0d6efd;
  font-size: 1.25rem;
  margin-bottom: 1rem;
  transition: background .35s ease, color .35s ease, transform .35s ease;
}
.feature-tile:hover .icon-wrap {
  background: #0d6efd;
  color: #fff;
  transform: rotate(-6deg);
}
.feature-tile h4 { font-size: 1.15rem; margin-bottom: .5rem; }
.feature-tile p { color: #6b7280; font-size: .95rem; margin: 0; }

/* --- Testimonials ------------------------------------------------------ */
.quote-card {
  background: #fff;
  border-radius: 18px;
  padding: 2rem;
  height: 100%;
  border: 1px solid #eef1f6;
  position: relative;
}
.quote-card::before {
  content: "\201C";
  position: absolute;
  top: -1rem;
  right: 1.5rem;
  font-size: 5rem;
  line-height: 1;
  color: rgba(13,110,253,.12);
  font-family: Georgia, serif;
}
.quote-card p { color: #4b5563; font-style: italic; margin-bottom: 1.25rem; }
.quote-card .who { display: flex; align-items: center; gap: .75rem; }
.quote-card .who img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  background: #e7f0ff;
}
.quote-card .who strong { display: block; color: #111827; }
.quote-card .who small { color: #6b7280; }

/* --- Partner marquee --------------------------------------------------- */
.partner-strip {
  background: #f8f9fc;
  padding: 2.5rem 0;
  overflow: hidden;
  border-top: 1px solid #eef1f6;
  border-bottom: 1px solid #eef1f6;
}
.partner-track {
  display: flex;
  gap: 4rem;
  animation: marquee 30s linear infinite;
  width: max-content;
}
.partner-track:hover { animation-play-state: paused; }
.partner-track img {
  height: 48px;
  width: auto;
  opacity: .65;
  transition: opacity .3s ease, filter .3s ease;
  filter: grayscale(100%);
}
.partner-track img:hover { opacity: 1; filter: grayscale(0%); }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* --- CTA band ---------------------------------------------------------- */
.cta-band {
  background: linear-gradient(135deg, #0d6efd 0%, #084ec9 100%);
  color: #fff;
  border-radius: 24px;
  padding: 4rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band::before,
.cta-band::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  pointer-events: none;
}
.cta-band::before { width: 300px; height: 300px; top: -120px; left: -80px; }
.cta-band::after { width: 400px; height: 400px; bottom: -160px; right: -100px; }
.cta-band h2,
.cta-band p,
.cta-band .btn { position: relative; z-index: 1; }
.cta-band p { opacity: .95; }

/* --- Button shine ------------------------------------------------------ */
.btn-primary { position: relative; overflow: hidden; }
.btn-primary::after {
  content: "";
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.25), transparent);
  transition: left .6s ease;
}
.btn-primary:hover::after { left: 100%; }

/* --- Responsive -------------------------------------------------------- */
@media (max-width: 991.98px) {
  .stats-strip { grid-template-columns: repeat(2, 1fr); padding: 2rem 1.5rem; }
  .stats-strip .stat:nth-child(2) { border-right: 0; }
  .stats-strip .stat:nth-child(-n+2) { padding-bottom: 1rem; border-bottom: 1px solid #eef1f6; }
  .stats-strip .stat:nth-child(n+3) { padding-top: 1rem; }
  .stats-strip .stat:nth-child(4) { border-right: 0; }
}
@media (max-width: 767.98px) {
  .stats-wrap { margin-top: -30px; }
  .stats-strip { grid-template-columns: 1fr 1fr; gap: 1rem; padding: 1.5rem 1rem; }
  .stats-strip .stat .num { font-size: 2rem; }
  .about-badge { position: static; display: inline-block; margin-top: 1.5rem; animation: none; }
  .cta-band { padding: 3rem 1.5rem; border-radius: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .about-badge,
  .partner-track { animation: none; }
  .card-lift,
  .service-card .icon-wrap,
  .feature-tile,
  .feature-tile .icon-wrap { transition: none; }
}