/* ===================================
   KCPL â€“ Custom Styles
   Logistify-inspired Design
=================================== */

/* ---- Keyframe Animations ---- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---- Hero Animations (JS-triggered) ---- */
.hero-animate {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.hero-animate.animated {
  opacity: 1;
  transform: translateY(0);
}

@keyframes slideRight {
  from { opacity: 0; transform: translateX(-40px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes slideLeft {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes pulse-ring {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.2); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* ---- Animation Utilities ---- */
.animate-fade-up {
  animation: fadeUp 0.8s ease forwards;
}

.animation-delay-100 { animation-delay: 0.1s; }
.animation-delay-200 { animation-delay: 0.2s; }
.animation-delay-300 { animation-delay: 0.3s; }
.animation-delay-400 { animation-delay: 0.4s; }

.animate-ticker {
  animation: ticker 25s linear infinite;
  display: inline-flex;
  gap: 3rem;
}

.animate-float {
  animation: float 4s ease-in-out infinite;
}

/* ---- Scroll Reveal ---- */
[data-animate] {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

[data-animate="slide-right"] {
  transform: translateX(-30px);
}

[data-animate="slide-left"] {
  transform: translateX(30px);
}

[data-animate].revealed {
  opacity: 1;
  transform: none !important;
}

/* ---- Preloader ---- */
#preloader {
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

#preloader.hide {
  opacity: 0;
  visibility: hidden;
}

/* ---- Header ---- */
#main-header.scrolled #nav-main {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 30px rgba(0,0,0,0.08);
}

.nav-link.active {
  color: #f36903;
}

.nav-link.active::after {
  width: 100%;
}

/* ---- Mega Menu ---- */
.mega-menu,
.dropdown-menu {
  box-shadow: 0 20px 60px rgba(0,0,0,0.12);
}

/* ---- Hero ---- */
.hero-slide {
  transition: opacity 1s ease;
}

.hero-slide.active {
  opacity: 1;
  z-index: 2;
}

.slide-dot {
  transition: all 0.3s ease;
  cursor: pointer;
}

/* ---- Service Cards ---- */
.service-card {
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #f36903, #ff8226);
  transform: scaleX(0);
  transition: transform 0.3s ease;
  transform-origin: left;
}

.service-card:hover::before {
  transform: scaleX(1);
}

/* ---- Company Cards ---- */
.company-card {
  cursor: pointer;
}

/* ---- Counter ---- */
.counter {
  display: inline-block;
  transition: all 0.1s;
}

/* ---- Quote Form ---- */
#quote-form input,
#quote-form select,
#quote-form textarea {
  background: #F8FAFF;
  color: #041c3e;
}

#quote-form input:focus,
#quote-form select:focus,
#quote-form textarea:focus {
  background: #fff;
}

/* ---- Back to Top ---- */
#back-to-top {
  transition: all 0.3s ease;
}

#back-to-top.show {
  opacity: 1;
  visibility: visible;
}

/* ---- Mobile Menu ---- */
#mobile-menu.open {
  max-height: 600px;
}

/* ---- Page Hero (inner pages) ---- */
.page-hero {
  background: linear-gradient(135deg, #041c3e 0%, #062a5e 50%, #f36903 100%);
  padding: 232px 0 80px;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 800 600"><circle cx="600" cy="300" r="400" fill="rgba(243,105,3,0.15)"/></svg>') no-repeat right center;
  background-size: cover;
}

/* ---- Breadcrumb ---- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
}

.breadcrumb a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumb a:hover {
  color: #fff;
}

.breadcrumb .sep {
  color: rgba(255,255,255,0.3);
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background: #f36903;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #c25302;
}

/* ---- Selection ---- */
::selection {
  background: #f36903;
  color: white;
}

/* ---- Utility ---- */
.text-gradient {
  background: linear-gradient(135deg, #f36903, #ff8226);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---- Responsive tweaks ---- */
@media (max-width: 1024px) {
  .mega-menu {
    display: none !important;
  }
}


/* ===================================
   STICKY HEADER STYLES
=================================== */
#main-header > div:first-child {
  transition: max-height 0.3s ease, opacity 0.3s ease, transform 0.3s ease, margin 0.3s ease;
  max-height: 100px;
  opacity: 1;
  transform: translateY(0);
  overflow: hidden;
}

#main-header.scrolled > div:first-child {
  max-height: 0;
  opacity: 0;
  transform: translateY(-100%);
}

#main-header.scrolled #nav-main {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}
