/* =========================
   HERO BASE
========================= */

.logistics-hero {
  position: relative;
  padding: 120px 6%;
  background: radial-gradient(circle at 20% 30%, #0f2a44 0%, #050b18 70%);
  color: #fff;
  overflow: hidden;
}

.hero-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
}

/* =========================
   LEFT CONTENT
========================= */

.hero-content {
  max-width: 560px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.05);
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 13px;
  color: #7aa8ff;
  margin-bottom: 24px;
}

.hero-badge .dot {
  width: 6px;
  height: 6px;
  background: #ff6a00;
  border-radius: 50%;
}

/* TITLE */

.hero-title {
  font-size: 64px;
  font-weight: 700;
  line-height: 1.05;
  margin-bottom: 24px;
}

.hero-title span {
  background: linear-gradient(90deg, #4da3ff, #ff6a00);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* DESC */

.hero-desc {
  font-size: 16px;
  color: #a0b3c9;
  line-height: 1.7;
  margin-bottom: 32px;
}

/* BUTTONS */

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-primary {
  background: linear-gradient(90deg, #ff6a00, #ff8c3a);
  padding: 14px 22px;
  border-radius: 10px;
  color: #fff;
  font-weight: 600;
  transition: 0.3s;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(255,106,0,0.3);
}

.btn-secondary {
  background: rgba(255,255,255,0.06);
  padding: 14px 22px;
  border-radius: 10px;
  color: #cfd9e6;
  transition: 0.3s;
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.1);
}

/* =========================
   RIGHT IMAGE
========================= */

.hero-media {
  flex: 1;
  display: flex;
  justify-content: center;
}

.hero-image-wrap {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  max-width: 520px;
}

.hero-image-wrap img {
  width: 100%;
  display: block;
  border-radius: 20px;
}

/* =========================
   FLOATING CARD
========================= */

.floating-card {
  position: absolute;
  bottom: -20px;
  left: 20px;
  background: rgba(20, 30, 50, 0.9);
  backdrop-filter: blur(12px);
  padding: 16px 20px;
  border-radius: 14px;
  display: flex;
  gap: 12px;
  align-items: center;
  box-shadow: 0 10px 40px rgba(0,0,0,0.4);
}

.floating-card span {
  font-size: 12px;
  color: #8aa2c0;
}

.floating-card strong {
  font-size: 18px;
  color: #fff;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1024px) {
  .hero-container {
    flex-direction: column;
    text-align: center;
  }

  .hero-actions {
    justify-content: center;
  }

  .floating-card {
    left: 50%;
    transform: translateX(-50%);
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 42px;
  }

  .hero-desc {
    font-size: 14px;
  }
}

.floating-card {
  position: absolute;
  bottom: -20px;
}

.hero-image-wrap {
  overflow: visible;   /* ✅ FIX */
  position: relative;
}
.hero-image-wrap img {
  border-radius: 20px;
}

.hero-image-wrap {
  position: relative;
}

.hero-image-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 20px;
  overflow: hidden;
}
.floating-card {
  z-index: 10;  /* ✅ ensure visibility */
}
.hero-image-wrap {
  position: relative;
  overflow: visible;  /* 🔥 THIS FIXES IT */
}

.floating-card {
  position: absolute;
  bottom: -20px;
  left: 20px;
  z-index: 10;        /* 🔥 safety */
}

.hero-image-wrap,
.floating-card {
  will-change: transform;
  transform: translateZ(0);   /* 🔥 kills shimmer */
  backface-visibility: hidden;
}

.logistics-hero {
  transform: translateZ(0);
  will-change: transform;
}

.hero-image-wrap img {
  image-rendering: -webkit-optimize-contrast;
  transform: translateZ(0);
}

/* 🔥 SHIMMER FIX */

.logistics-hero,
.hero-image-wrap,
.floating-card {
  transform: translateZ(0);
  will-change: transform;
  backface-visibility: hidden;
}

/* safer glass */
.floating-card {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* image stability */
.hero-image-wrap img {
  transform: translateZ(0);
}

/* =========================
   HERO BACKGROUND SYSTEM
========================= */

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;

  background:
    url("../images/logistics/herobg.jpg") center/cover no-repeat,
    radial-gradient(circle at 20% 30%, #0f2a44 0%, #050b18 70%);
    
  opacity: 0.5;
}

/* dark overlay for contrast */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(5,11,24,0.95) 30%,
    rgba(5,11,24,0.6) 60%,
    rgba(5,11,24,0.2) 100%
  );
  z-index: 1;
}

/* STATS */

/* =========================
   STATS SECTION
========================= */

.logistics-stats {
  background: linear-gradient(180deg, #081424, #050b18);
  padding: 60px 6%;
  border-top: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.stats-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

/* each stat */
.stat-item {
  flex: 1;
}

/* numbers */
.stat-item h2 {
  font-size: 42px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
}

/* orange highlight */
.stat-item .orange {
  color: #ff6a00;
}

/* labels */
.stat-item p {
  font-size: 14px;
  color: #8fa3bd;
  letter-spacing: 0.3px;
}
@media (max-width: 1024px) {
  .stats-container {
    flex-wrap: wrap;
    gap: 30px;
  }

  .stat-item {
    flex: 1 1 45%;
  }
}

@media (max-width: 600px) {
  .stats-container {
    flex-direction: column;
    gap: 25px;
  }

  .stat-item h2 {
    font-size: 32px;
  }
}
.stat-item {
  position: relative;
}

.stat-item:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -20px;
  top: 50%;
  transform: translateY(-50%);
  height: 40px;
  width: 1px;
  background: rgba(255,255,255,0.08);
}

@media (max-width: 1024px) {
  .stat-item::after {
    display: none;
  }
}

/* CARDS  */


/* =========================
   SECTION BASE
========================= */

.logistics-solutions {
  padding: 100px 6%;
  background: #f7f8fa;
}

/* HEADER */

.solutions-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 60px;
  gap: 40px;
}

.solutions-header .tag {
  color: #ff6a00;
  font-size: 13px;
  letter-spacing: 1px;
  font-weight: 600;
}

.solutions-header h2 {
  font-size: 56px;
  font-weight: 700;
  color: #0f1b2d;
  margin-top: 12px;
}

.solutions-header p {
  max-width: 380px;
  color: #5b6b80;
  line-height: 1.6;
}

/* GRID */

.solutions-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

/* CARD */

.solution-card {
  background: #1c3557;
  border-radius: 18px;
  padding: 30px;
  color: #fff;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

/* ICON */

.solution-card .icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 20px;
}

/* TITLE */

.solution-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
}

/* TEXT */

.solution-card p {
  font-size: 14px;
  color: #9fb3cc;
  line-height: 1.6;
}
/* =========================
   HOVER EFFECT
========================= */

.solution-card:hover {
  transform: translateY(-8px);
  background: #20406a;
}

/* glow overlay */
.solution-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(255,255,255,0.08), transparent 60%);
  opacity: 0;
  transition: 0.4s;
}

.solution-card:hover::before {
  opacity: 1;
}

/* icon animation */
.solution-card .icon {
  transition: all 0.4s ease;
}

.solution-card:hover .icon {
  background: rgba(255,255,255,0.1);
  transform: scale(1.1);
}

/* text lift */
.solution-card h3,
.solution-card p {
  transition: 0.4s ease;
}

.solution-card:hover h3 {
  transform: translateY(-2px);
}

.solution-card:hover p {
  transform: translateY(-2px);
  color: #cfe0ff;
}
@media (max-width: 1200px) {
  .solutions-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {

  .solutions-header {
    flex-direction: column;
  }

  .solutions-header h2 {
    font-size: 36px;
  }

  .solutions-grid {
    grid-template-columns: 1fr;
  }
}
.solution-card:hover {
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
}

.solutions-header {
  align-items: flex-start;
  gap: 56px;
}

.solutions-header .right {
  padding-top: 26px; /* pushes paragraph slightly down */
}

.solutions-header p {
  max-width: 430px;
  font-size: 18px;   /* bigger */
  line-height: 1.65;
  color: #273244;
}

.solution-card p {
  font-size: 16px;   /* bigger card paragraph */
  line-height: 1.75;
  color: #aebfd6;
}

/* ARCHITECTURE */

/* =========================
   SECTION BASE
========================= */

.tms-section {
  padding: 100px 6%;
  background: #0b1a2d;
  color: #fff;
}

/* LAYOUT */

.tms-container {
  display: flex;
  align-items: center;
  gap: 60px;
}

/* IMAGE */

.tms-media {
  flex: 1;
}

.tms-media img {
  width: 100%;
  border-radius: 16px;
  display: block;
}

/* CONTENT */

.tms-content {
  flex: 1;
  max-width: 520px;
}

.tms-content h2 {
  font-size: 40px;
  font-weight: 700;
  margin-bottom: 20px;
}

.tms-desc {
  color: #9fb3cc;
  line-height: 1.7;
  margin-bottom: 30px;
}

/* LIST */

.tms-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.tms-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.tms-item .icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255,106,0,0.1);
  color: #ff6a00;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
  margin-top: 4px;
}

.tms-item h4 {
  font-size: 16px;
  margin-bottom: 4px;
}

.tms-item p {
  font-size: 14px;
  color: #9fb3cc;
}
/* image hover */
.tms-media img {
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.tms-media:hover img {
  transform: scale(1.02);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

/* list interaction */
.tms-item {
  transition: transform 0.3s ease;
}

.tms-item:hover {
  transform: translateX(6px);
}

.tms-item .icon {
  transition: all 0.3s ease;
}

.tms-item:hover .icon {
  background: #ff6a00;
  color: #fff;
}
@media (max-width: 1024px) {
  .tms-container {
    flex-direction: column;
  }

  .tms-content {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .tms-content h2 {
    font-size: 30px;
  }

  .tms-desc {
    font-size: 14px;
  }
}
.tms-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 50%, rgba(0,150,255,0.15), transparent 60%);
  pointer-events: none;
}