/* ==================================================
   SERVICES PAGE – PREMIUM (OPTIMIZED)
================================================== */

/* ---------------- HERO ---------------- */
/* Hero Section */

.premium-hero {
  position: relative;
  padding: 140px 0 130px;
  background-image: url("https://images.unsplash.com/photo-1522202176988-66273c2fd55f");
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.premium-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 40, 75, 0.95),
    rgba(0, 40, 75, 0.75)
  );
  z-index: 1;
}

/* CONTENT */
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

/* EYEBROW */
.hero-eyebrow {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #e5e7eb;
  background: rgba(255, 255, 255, 0.12);
  padding: 8px 18px;
  border-radius: 999px;
  margin-bottom: 26px;
}

/* TITLE */
.hero-title {
  font-size: 46px;
  font-weight: 800;
  line-height: 1.15;
  color: #ffffff;
  margin-bottom: 26px;
}

.hero-title span {
  color: #dc2d27;
}

/* DESCRIPTION */
.hero-desc {
  font-size: 18px;
  line-height: 1.75;
  color: #e2e8f0;
  max-width: 760px;
  margin: 0 auto 44px;
}

/* ACTIONS */
.hero-actions {
  display: flex;
  justify-content: center;
  gap: 22px;
  flex-wrap: wrap;
}

/* PRIMARY CTA */
.hero-primary {
  background: #dc2d27;
  color: #ffffff;
  padding: 16px 38px;
  border-radius: 999px;
  font-weight: 700;
  transition: all 0.3s ease;
}

.hero-primary:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 45px rgba(220, 45, 39, 0.5);
}

/* SECONDARY CTA */
.hero-secondary {
  border: 2px solid rgba(255, 255, 255, 0.7);
  color: #ffffff;
  padding: 16px 38px;
  border-radius: 999px;
  font-weight: 600;
  background: transparent;
  transition: all 0.3s ease;
}

.hero-secondary:hover {
  background: #ffffff;
  color: #020617;
  transform: translateY(-4px);
}

/* MOBILE RESPONSIVE */
@media (max-width: 768px) {
  .premium-hero {
    padding: 110px 0 100px;
  }

  .hero-title {
    font-size: 34px;
  }

  .hero-desc {
    font-size: 16px;
  }
}

/* ---------------- SERVICES GRID ---------------- */
.services-section {
  padding: 90px 0;
  background: #f8fafc;
}

/* CARD */
.premium-card {
  background: #ffffff;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(2, 6, 23, 0.08);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  will-change: transform;
  cursor: pointer;
}

.premium-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 28px 60px rgba(2, 6, 23, 0.18);
}
.service-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.service-card-link:hover {
  text-decoration: none;
  color: inherit;
}

/* IMAGE */
.service-image {
  height: 190px;
  background: #e5e7eb;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* CONTENT */
.service-content {
  padding: 28px 24px 30px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.service-content h4 {
  font-size: 22px;
  font-weight: 800;
  color: #003258;
  margin-bottom: 12px;
}

.service-content p {
  font-size: 15.5px;
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 20px;
}

/* LIST */
.service-content ul {
  list-style: none;
  padding-top:;
  padding: 0;
  margin: 0 0 22px;
}

.service-content ul li {
  font-size: 14.5px;
  text-align: center;
  color: #374151;
  margin-bottom: 6px;
  padding-left: 18px;
  position: relative;
}

.service-content ul li::before {
  content: "✔";
  position: absolute;
  left: 10px;
  color: #dc2d27;
  font-size: 12px;
  font-weight: 700;
}

/* CTA */
.service-btn {
  margin-top: auto;
  font-weight: 700;
  color: #003258;
  border-bottom: 2px solid transparent;
  display: inline;
  align-items: center;
  gap: 8px;
  transition: all 0.25s ease;
}

.service-btn:hover {
  color: #dc2d27;
  border-color: #fff;
  transform: translateX(4px);
}

/* ================= TIMELINE SECTION ================= */

.process-section {
  padding: 120px 0;

  background: linear-gradient(180deg, #ffffff, #f9fafc);
}

/* center line */

.timeline {
  position: relative;

  max-width: 900px;

  margin: auto;

  padding: 40px 0;
}

.timeline::after {
  content: "";

  position: absolute;

  width: 4px;

  background: linear-gradient(#dc2d27, #ff6a5f);

  top: 0;

  bottom: 0;

  left: 50%;

  margin-left: -2px;
}

/* timeline item */

.timeline-item {
  padding: 30px 40px;

  position: relative;

  width: 50%;
}

/* left */

.timeline-item.left {
  left: 0;

  text-align: right;
}

/* right */

.timeline-item.right {
  left: 50%;

  text-align: left;
}

/* content */

.timeline-content {
  background: white;

  padding: 30px;

  border-radius: 15px;

  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);

  display: inline-block;

  max-width: 320px;

  transition: 0.3s;
}

.timeline-content:hover {
  transform: translateY(-10px);

  box-shadow: 0 30px 70px rgba(220, 45, 39, 0.2);
}

/* dot */

.timeline-dot {
  position: absolute;

  width: 60px;

  height: 60px;

  background: linear-gradient(135deg, #dc2d27, #ff6a5f);

  border-radius: 50%;

  top: 35px;

  display: flex;

  align-items: center;

  justify-content: center;

  color: white;

  font-weight: bold;

  font-size: 18px;

  box-shadow: 0 10px 30px rgba(220, 45, 39, 0.4);
}

/* dot left */

.timeline-item.left .timeline-dot {
  right: -30px;
}

/* dot right */

.timeline-item.right .timeline-dot {
  left: -30px;
}
/* progress line */

.timeline-progress {
  position: absolute;

  width: 4px;

  background: linear-gradient(#dc2d27, #ff6a5f);

  top: 0;

  left: 50%;

  transform: translateX(-50%);

  height: 0;

  transition: height 0.3s ease;

  z-index: 1;
}

/* inactive line */

.timeline::after {
  content: "";

  position: absolute;

  width: 4px;

  background: #e5e7eb;

  top: 0;

  bottom: 0;

  left: 50%;

  transform: translateX(-50%);

  z-index: 0;
}

/* dot active glow */

.timeline-dot.active {
  box-shadow:
    0 0 0 6px rgba(220, 45, 39, 0.15),
    0 10px 30px rgba(220, 45, 39, 0.5);
}

/* content animation */

.timeline-content {
  opacity: 0.3;

  transform: translateY(40px);

  transition: 0.6s;
}

.timeline-content.active {
  opacity: 1;

  transform: translateY(0);
}
/* mobile */

/* ================= MOBILE TIMELINE FIX ================= */

@media screen and (max-width: 768px) {
  /* move center grey line to left */

  .timeline::after {
    left: 30px;

    transform: none;
  }

  /* move progress red line to same position */

  .timeline-progress {
    left: 30px;

    transform: none;
  }

  /* full width items */

  .timeline-item {
    width: 100%;

    padding-left: 90px;

    padding-right: 15px;

    text-align: left;

    left: 0 !important;
  }

  /* fix dots position */

  .timeline-dot {
    left: 0 !important;

    right: auto !important;

    top: 30px;
  }

  /* full width card */

  .timeline-content {
    max-width: 100%;

    display: block;
  }

  /* spacing between items */

  .timeline-item {
    margin-bottom: 30px;
  }
}
/* ---------------- CTA ---------------- */
.cta-premium {
  background: linear-gradient(135deg, #003258, #001f3f);
  padding: 90px 20px;
  text-align: center;
}

.cta-premium h2 {
  font-size: 36px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 14px;
}

.cta-premium p {
  font-size: 17px;
  color: #dbeafe;
  max-width: 700px;
  margin: 0 auto 28px;
}

.cta-premium .btn {
  background: #dc2d27;
  color: #fff;
  padding: 14px 38px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.25s ease;
}

.cta-premium .btn:hover {
  transform: translateY(-2px);
}

/* ---------------- MOBILE ---------------- */
@media (max-width: 768px) {
  .services-hero h1 {
    font-size: 34px;
  }

  .services-hero p {
    font-size: 16px;
  }

  .service-image {
    height: 170px;
  }

  .service-content h4 {
    font-size: 18px;
  }
}

/* ==================================================
   SERVICE Detials HERO – PREMIUM
================================================== */
.service-hero {
  padding: 160px 0 140px;
  background:
    radial-gradient(
      circle at top right,
      rgba(255, 255, 255, 0.18),
      transparent 45%
    ),
    linear-gradient(135deg, #dc2626 0%, #7c2d12 45%, #020617 100%);
  color: #ffffff;
  text-align: center;
}

.service-hero h1 {
  font-size: 56px;
  font-weight: 800;
  margin-bottom: 20px;
  color: #ffffff;
}

.service-hero p {
  font-size: 18px;
  max-width: 720px;
  margin: 0 auto 40px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.92);
}

.service-badge {
  display: inline-block;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  margin-bottom: 18px;
}

/* Hero Button */
.hero-btn {
  padding: 16px 42px;
  font-size: 18px;
  font-weight: 600;
  border-radius: 14px;
  background: #ffffff;
  color: #020617;
  transition: all 0.35s ease;
}

.hero-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 25px 50px rgba(255, 255, 255, 0.35);
}

/* ==================================================
   SERVICE SECTION
================================================== */
.service-section {
  padding: 120px 0 60px 0;
  background: #ffffff;
}

.section-title {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 30px;
  color: #020617;
}

/* Checklist */
.premium-service-list li {
  display: flex;

  align-items: center;

  gap: 14px;

  padding: 14px 0;

  font-size: 17px;

  color: #334155;

  transition: 0.3s;

  cursor: pointer;
}

.premium-service-list li i {
  width: 32px;

  height: 32px;

  background: #dc2626;

  color: white;

  border-radius: 8px;

  display: flex;

  align-items: center;

  justify-content: center;

  font-size: 14px;

  transition: 0.3s;
}

/* HOVER EFFECT */

.premium-service-list li:hover {
  transform: translateX(10px);

  color: #dc2626;
}

.premium-service-list li:hover i {
  transform: scale(1.15);

  box-shadow: 0 10px 25px rgba(220, 38, 38, 0.4);
}

/* Image Card */
.row.align-items-center {
  align-items: stretch !important;
}

.service-image-wrap {
  background: #ffffff;

  padding: 40px;

  border-radius: 20px;

  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.1);

  transition: 0.4s;

  display: flex;

  align-items: center;

  justify-content: center;

  height: 100%;

  min-height: 100%;
}

.service-image-wrap img {
  max-height: 420px;

  width: auto;

  height: auto;

  object-fit: contain;

  transition: 0.5s;
}

/* HOVER */

.service-image-wrap:hover {
  transform: translateY(-10px);

  box-shadow: 0 50px 120px rgba(220, 38, 38, 0.25);
}

.service-image-wrap:hover img {
  transform: scale(1.05);
}
/* ==================================================
   PROCESS SECTION
================================================== */
.process-section {
  padding: 100px 0;
  background: linear-gradient(180deg, #ffffff 0%, #f6f9fc 100%);
}

.process-section .section-title {
  font-size: 42px;
  font-weight: 700;
  color: #0f172a;
}

/* Process Card */
.process-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 40px 28px;
  height: 100%;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
  transition: all 0.4s ease;
}

.process-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 6px;
  width: 100%;
  background: linear-gradient(90deg, #e11d48, #9333ea);
}

.process-card:hover {
  transform: translateY(-12px) rotateX(4deg) rotateY(-4deg);
  box-shadow: 0 40px 80px rgba(15, 23, 42, 0.18);
}

.process-card h4 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 12px;
  color: #020617;
}

.process-card p {
  font-size: 16px;
  color: #475569;
  margin: 0;
}

/* ==================================================
   PREMIUM CTA SECTION
================================================== */
.cta-premium {
  padding: 120px 0 140px;
  margin-bottom: 80px;
  background:
    radial-gradient(
      circle at top right,
      rgba(255, 255, 255, 0.12),
      transparent 45%
    ),
    linear-gradient(135deg, #020617 0%, #042f4a 100%);
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.cta-premium h2 {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #ffffff;
}

.cta-premium p {
  font-size: 18px;
  max-width: 720px;
  margin: 0 auto 45px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
}

.cta-premium .btn {
  padding: 16px 40px;
  font-size: 18px;
  font-weight: 600;
  border-radius: 14px;
  background: #ffffff;
  color: #020617;
  transition: all 0.35s ease;
}

.cta-premium .btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 50px rgba(255, 255, 255, 0.25);
  background: #f8fafc;
}

.cta-premium::after {
  content: "";
  position: absolute;
  bottom: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.08),
    transparent 70%
  );
  filter: blur(60px);
  pointer-events: none;
}

/* ==================================================
   MOBILE OPTIMIZATION
================================================== */
@media (max-width: 991px) {
  .service-hero {
    padding: 140px 20px 100px;
  }

  .service-hero h1 {
    font-size: 36px;
  }

  .service-hero p {
    font-size: 16px;
  }

  .section-title {
    font-size: 32px;
  }

  .process-card {
    padding: 32px 22px;
  }

  .cta-premium h2 {
    font-size: 34px;
  }
}

/* =========================
   BACK TO TOP – PREMIUM (REFINED)
========================= */
.back-to-top-btn {
  position: fixed;
  right: 22px;
  left: auto;
  bottom: 22px; /* stays at bottom */
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #003258;
  color: #ffffff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.35s ease,
    transform 0.35s ease,
    background 0.35s ease;
  z-index: 998; /* 👈 lower priority than WhatsApp */
  box-shadow: 0 10px 30px rgba(0, 50, 88, 0.35);
}

/* Show on scroll */
.back-to-top-btn.show {
  opacity: 1;
  pointer-events: auto;
}

/* Hover – controlled, not playful */
.back-to-top-btn:hover {
  transform: translateY(-4px);
  background: #dc2d27;
}

/* Icon */
.back-to-top-btn i {
  font-size: 18px;
}

/* Subtle floating for back-to-top */
@keyframes backToTopFloat {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
  100% {
    transform: translateY(0);
  }
}
.back-to-top-btn.show {
  opacity: 1;
  pointer-events: auto;
  animation: backToTopFloat 6s ease-in-out infinite;
}
.back-to-top-btn:hover {
  transform: translateY(-6px);
  background: #dc2d27;
}
.back-to-top-btn.show {
  animation-delay: 1.2s;
}

/* =========================
   WHATSAPP FLOAT – PREMIUM (SMART)
========================= */
.whatsapp-float {
  position: fixed;
  left: 22px;
  right: auto;
  bottom: 22px; /* 👈 clearly separated from back-to-top */
  width: 56px;
  height: 56px;
  background: #25d366;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  z-index: 999;
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.45);
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.35s ease,
    transform 0.35s ease,
    background 0.35s ease;
}

/* Show WhatsApp after scroll */
.whatsapp-float.show {
  opacity: 1;
  transform: translateY(0);
  animation: whatsapp-float 5s ease-in-out infinite;
}

/* Hover – friendly tilt */
.whatsapp-float:hover {
  transform: translateY(-6px) rotate(8deg);
  background: #1ebe5b;
}

/* Gentle floating animation (premium) */
@keyframes whatsapp-float {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
  100% {
    transform: translateY(0);
  }
}
/* ==================================================
   PREMIUM ADDITIONS — DIGIKEY CENTRO
   Floating Icons + Scroll Animations + Premium Effects
================================================== */

/* ===============================
   HERO FLOATING ICONS
=============================== */

.service-hero {
  position: relative;
  overflow: hidden;
}

.hero-floating-icon {
  position: absolute;

  font-size: 60px;

  opacity: 0.08;

  animation: heroFloat 8s ease-in-out infinite;
}

.hero-floating-icon.icon1 {
  top: 20%;
  left: 10%;
}

.hero-floating-icon.icon2 {
  bottom: 20%;
  left: 15%;

  animation-delay: 2s;
}

.hero-floating-icon.icon3 {
  top: 25%;
  right: 12%;

  animation-delay: 3s;
}

.hero-floating-icon.icon4 {
  bottom: 18%;
  right: 15%;

  animation-delay: 4s;
}

@keyframes heroFloat {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-30px);
  }
}

/* ===============================
   PREMIUM SCROLL REVEAL
=============================== */

.reveal {
  opacity: 0;

  transform: translateY(60px);

  transition: all 1s ease;
}

.reveal.active {
  opacity: 1;

  transform: translateY(0);
}

/* ===============================
   PREMIUM CARD GLASS EFFECT
=============================== */

.process-card {
  transition: all 0.45s ease;
}

.process-card:hover {
  transform: translateY(-14px) scale(1.02);

  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.15);
}

/* ===============================
   PREMIUM IMAGE EFFECT
=============================== */

.service-image-wrap img {
  transition: all 0.6s ease;
}

.service-image-wrap:hover img {
  transform: scale(1.08);
}

/* ===============================
   CTA GLOW EFFECT
=============================== */

.cta-premium {
  position: relative;

  overflow: hidden;
}

.cta-premium::before {
  content: "";

  position: absolute;

  width: 500px;

  height: 500px;

  background: radial-gradient(circle, rgba(255, 255, 255, 0.12), transparent);

  top: -200px;

  left: -200px;

  animation: heroFloat 10s infinite;
}

.cta-premium::after {
  content: "";

  position: absolute;

  width: 500px;

  height: 500px;

  background: radial-gradient(circle, rgba(255, 255, 255, 0.08), transparent);

  bottom: -200px;

  right: -200px;

  animation: heroFloat 12s infinite;
}

/* ===============================
   HERO BUTTON PREMIUM
=============================== */

.hero-btn {
  transition: 0.4s;
}

.hero-btn:hover {
  transform: translateY(-6px) scale(1.04);

  box-shadow: 0 25px 60px rgba(255, 255, 255, 0.35);
}
