/*============================================
  CUSTOM ENHANCEMENTS — Premium Upgrade Layer
  All styles are additive to the Logisti template
============================================*/

/* ==========================================
   1. TOP INFO BAR
   ========================================== */
.top-info-bar {
  background: linear-gradient(90deg, #1a0a2e 0%, #2d1548 50%, #1a0a2e 100%);
  padding: 8px 0;
  font-size: 13px;
  color: rgba(255,255,255,0.8);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  position: relative;
  z-index: 1001;
}
.top-info-bar .info-items {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.top-info-bar .info-left {
  display: flex;
  gap: 25px;
  align-items: center;
}
.top-info-bar .info-left a,
.top-info-bar .info-left span {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: color 0.3s;
  font-size: 13px;
}
.top-info-bar .info-left a:hover {
  color: #fff;
}
.top-info-bar .info-left i {
  color: #b57edc;
  font-size: 13px;
}
.top-info-bar .info-right {
  display: flex;
  gap: 12px;
  align-items: center;
}
.top-info-bar .info-right a {
  color: rgba(255,255,255,0.55);
  font-size: 14px;
  transition: all 0.3s;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
}
.top-info-bar .info-right a:hover {
  color: #fff;
  background: rgba(181,126,220,0.3);
  transform: translateY(-1px);
}

@media (max-width: 767px) {
  .top-info-bar {
    display: none;
  }
}

/* ==========================================
   2. STICKY HEADER + GLASS EFFECT
   ========================================== */
.header.is-sticky {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  animation: slideDown 0.4s ease;
}
.header.is-sticky .navbar {
  padding-top: 5px;
  padding-bottom: 5px;
}
.header.is-sticky .navbar-brand img {
  max-height: 35px !important;
  transition: max-height 0.3s;
}

@keyframes slideDown {
  from { transform: translateY(-100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Animated gradient accent line under header */
.header::after {
  content: '';
  display: block;
  height: 3px;
  background: linear-gradient(90deg, #582A72, #b57edc, #F88A01, #582A72);
  background-size: 300% 100%;
  animation: gradientSlide 4s ease infinite;
}

@keyframes gradientSlide {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ==========================================
   3. BUTTON MICRO-ANIMATIONS
   ========================================== */
.btn {
  position: relative;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}
.btn:hover::before {
  width: 300px;
  height: 300px;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(88, 42, 114, 0.25);
}
.btn:active {
  transform: translateY(0);
}

/* ==========================================
   4. SERVICE CARD ENHANCEMENTS
   ========================================== */
.service-item {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-left: 4px solid transparent;
}
.service-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
  border-left-color: #582A72;
}
.service-item .service__icon i {
  transition: all 0.4s ease;
}
.service-item:hover .service__icon i {
  transform: scale(1.15);
  color: #582A72;
}

/* ==========================================
   5. HOW IT WORKS SECTION
   ========================================== */
.how-it-works {
  background: #fff;
  padding: 100px 0;
}
.how-it-works .step-item {
  text-align: center;
  position: relative;
  padding: 0 20px;
}
.how-it-works .step-number {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #582A72, #7b3fa0);
  color: #fff;
  font-size: 28px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  box-shadow: 0 10px 30px rgba(88, 42, 114, 0.3);
  position: relative;
  z-index: 2;
  transition: all 0.4s ease;
}
.how-it-works .step-item:hover .step-number {
  transform: scale(1.1);
  box-shadow: 0 15px 40px rgba(88, 42, 114, 0.4);
}
.how-it-works .step-icon {
  font-size: 30px;
  color: #582A72;
  margin-bottom: 16px;
}
.how-it-works .step-title {
  font-size: 20px;
  font-weight: 700;
  color: #222;
  margin-bottom: 12px;
  font-family: 'Work Sans', sans-serif;
}
.how-it-works .step-desc {
  font-size: 14px;
  color: #777;
  line-height: 1.7;
  max-width: 280px;
  margin: 0 auto;
}

/* Connecting line between steps */
.how-it-works .step-connector {
  position: absolute;
  top: 40px;
  right: -50%;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #582A72, #b57edc);
  opacity: 0.3;
  z-index: 1;
}
@media (max-width: 767px) {
  .how-it-works .step-connector {
    display: none;
  }
  .how-it-works .step-item {
    margin-bottom: 40px;
  }
}

/* ==========================================
   6. ANIMATED COUNTERS SECTION
   ========================================== */
.counters-section {
  background: linear-gradient(135deg, #582A72 0%, #3d1a54 100%);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
.counters-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(255,255,255,0.03);
}
.counters-section::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -5%;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(255,255,255,0.03);
}
.counter-item {
  text-align: center;
  padding: 20px;
  position: relative;
  z-index: 2;
}
.counter-item .counter-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 24px;
  color: #b57edc;
  transition: all 0.4s ease;
}
.counter-item:hover .counter-icon {
  background: rgba(255,255,255,0.18);
  transform: scale(1.1);
}
.counter-item .counter-number {
  font-size: 48px;
  font-weight: 800;
  color: #fff;
  font-family: 'Work Sans', sans-serif;
  line-height: 1;
  margin-bottom: 8px;
}
.counter-item .counter-suffix {
  font-size: 28px;
  font-weight: 700;
  color: #F88A01;
}
.counter-item .counter-label {
  font-size: 15px;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 500;
}

/* ==========================================
   7. NEWSLETTER SECTION
   ========================================== */
.newsletter-section {
  background: linear-gradient(135deg, #582A72 0%, #7b3fa0 50%, #582A72 100%);
  padding: 60px 0;
  position: relative;
  overflow: hidden;
}
.newsletter-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z' fill='%23ffffff' fill-opacity='0.03'/%3E%3C/g%3E%3C/svg%3E");
}
.newsletter-section .newsletter-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}
.newsletter-section h3 {
  color: #fff;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 12px;
  font-family: 'Work Sans', sans-serif;
}
.newsletter-section p {
  color: rgba(255,255,255,0.75);
  margin-bottom: 30px;
  font-size: 15px;
}
.newsletter-form {
  display: flex;
  gap: 12px;
  max-width: 500px;
  margin: 0 auto;
}
.newsletter-form input[type="email"] {
  flex: 1;
  padding: 15px 22px;
  border: 2px solid rgba(255,255,255,0.2);
  border-radius: 8px;
  background: rgba(255,255,255,0.1);
  color: #fff;
  font-size: 15px;
  transition: all 0.3s;
  backdrop-filter: blur(4px);
}
.newsletter-form input[type="email"]::placeholder {
  color: rgba(255,255,255,0.5);
}
.newsletter-form input[type="email"]:focus {
  outline: none;
  border-color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.15);
}
.newsletter-form button {
  padding: 15px 30px;
  background: #F88A01;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.3s;
  white-space: nowrap;
}
.newsletter-form button:hover {
  background: #e07d00;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(248, 138, 1, 0.4);
}

@media (max-width: 480px) {
  .newsletter-form {
    flex-direction: column;
  }
}

/* ==========================================
   8. REMOVED FLOATING WHATSAPP BUTTON (Replaced by Live Chat)
   ========================================== */

/* ==========================================
   9. TESTIMONIAL IMPROVEMENTS
   ========================================== */
.testimonial-item {
  transition: all 0.4s ease;
}
.testimonial-item:hover {
  transform: translateY(-5px);
}
.testimonial__rating i {
  color: #F88A01;
}

/* ==========================================
   10. FANCYBOX / FEATURE CARD IMPROVEMENTS
   ========================================== */
.fancybox-item {
  transition: all 0.4s ease;
}
.fancybox-item:hover {
  transform: translateY(-4px);
}

/* ==========================================
   11. BLOG CARD HOVER EFFECTS
   ========================================== */
.blog-item {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.blog-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}
.blog-item .blog__img img {
  transition: transform 0.5s ease;
}
.blog-item:hover .blog__img img {
  transform: scale(1.05);
}
.blog-item .blog__img {
  overflow: hidden;
}

/* ==========================================
   12. CONTACT PANEL ENHANCEMENTS
   ========================================== */
.contact-panel {
  transition: all 0.4s ease;
}
.contact-panel:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

/* ==========================================
   13. FORM INPUT FOCUS EFFECTS
   ========================================== */
.form-control {
  transition: all 0.3s ease !important;
  border: 2px solid #e8e8e8 !important;
}
.form-control:focus {
  border-color: #582A72 !important;
  box-shadow: 0 0 0 3px rgba(88, 42, 114, 0.1) !important;
}

/* ==========================================
   14. QUOTE RESULT ANIMATION
   ========================================== */
@keyframes resultPopIn {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}
#quoteResultData {
  animation: resultPopIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================
   15. BACK TO TOP BUTTON IMPROVEMENTS
   ========================================== */
#scrollTopBtn {
  transition: all 0.3s ease !important;
  background: linear-gradient(135deg, #582A72, #7b3fa0) !important;
  border: none !important;
  border-radius: 50% !important;
  width: 45px !important;
  height: 45px !important;
  box-shadow: 0 4px 15px rgba(88, 42, 114, 0.3) !important;
}
#scrollTopBtn:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 8px 25px rgba(88, 42, 114, 0.4) !important;
}

/* ==========================================
   16. CLIENT LOGO HOVER
   ========================================== */
.client a img {
  transition: all 0.4s ease;
  filter: grayscale(100%);
  opacity: 0.6;
}
.client a:hover img {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.05);
}

/* ==========================================
   17. IMPROVED PRELOADER
   ========================================== */
.preloader {
  background: linear-gradient(135deg, #1a0a2e, #582A72) !important;
}

/* ==========================================
   18. FOOTER LINK ANIMATIONS
   ========================================== */
.footer__widget-nav nav ul li a {
  transition: all 0.3s ease;
  position: relative;
}
.footer__widget-nav nav ul li a:hover {
  padding-left: 8px;
  color: #b57edc;
}

/* ==========================================
   19. HEADING SUBTITLE GLOW
   ========================================== */
.heading__subtitle {
  position: relative;
  display: inline-block;
}
.heading__subtitle::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, #582A72, #F88A01);
  border-radius: 2px;
}

/* ==========================================
   20. SMOOTH AOS OVERRIDES
   ========================================== */
[data-aos] {
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* ==========================================
   21. PAGE TITLE PARALLAX OVERLAY
   ========================================== */
.page-title .bg-overlay::after {
  background: linear-gradient(135deg, rgba(88,42,114,0.8), rgba(26,10,46,0.9)) !important;
}

/* ==========================================
   22. LOADING SKELETON FOR IMAGES
   ========================================== */
.service__img,
.blog__img {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.service__img img,
.blog__img img {
  position: relative;
  z-index: 1;
}

/* ==========================================
   23. SELECTION COLOR
   ========================================== */
::selection {
  background-color: #582A72;
  color: #fff;
}

/* ==========================================
   24. SMOOTH SCROLLING
   ========================================== */
html {
  scroll-behavior: smooth;
}
