/* 
 * Premium Visual Enhancements
 * Custom enhancements for Transport Website
 * Adds smooth animations, micro-interactions, and premium feel
 */

/* ============================================
   LOGO SIZING
   ============================================ */

/* Header Layout Fixes */
.header .main-header .header-left .header-logo {
  margin-right: 15px !important;
  max-width: none !important;
  width: auto !important;
  flex: 0 0 auto !important;
}

.header .main-header .header-left .header-nav {
  padding-left: 15px !important;
  width: auto !important;
  flex: 1 1 auto !important;
}

.header .main-header .header-left .header-right {
  width: auto !important;
  flex: 0 0 auto !important;
  min-width: auto !important;
  padding-left: 15px !important;
}

.header-logo {
  margin-right: 15px !important;
}

.header-logo img {
  max-width: 80px;
  height: auto;
}

/* Footer logo sizing */
.footer-1 img[src*="j3s-logo"] {
  max-width: 100px;
  height: auto;
}

/* Mobile logo sizing */
@media (max-width: 768px) {
  .header-logo img {
    max-width: 60px;
  }

  .footer-1 img[src*="j3s-logo"] {
    max-width: 80px;
  }
}

/* ============================================
   SMOOTH SCROLL & PAGE TRANSITIONS
   ============================================ */
html {
  scroll-behavior: smooth;
}

/* Enhance page load animation */
body {
  animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* ============================================
   ENHANCED HOVER EFFECTS
   ============================================ */

/* Premium card hover with shadow and scale */
.card-offer,
.cardGrid,
.card-plan,
.card-testimonial-grid,
.card-blog-grid {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.card-offer:hover,
.cardGrid:hover,
.card-plan:hover,
.card-testimonial-grid:hover,
.card-blog-grid:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(3, 68, 96, 0.15);
}

/* Enhanced button interactions */
.btn {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

/* ============================================
   SMOOTH ANIMATIONS FOR SCROLL
   ============================================ */

/* Fade in from bottom */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   ENHANCED NAVIGATION
   ============================================ */

/* Smoother header transition */
.header {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.header.sticky-bar {
  box-shadow: 0 4px 20px rgba(3, 68, 96, 0.1);
}

/* Premium dropdown animation */
.sub-menu {
  animation: slideDown 0.3s ease;
  transform-origin: top;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   MICRO-INTERACTIONS
   ============================================ */

/* Icon pulse on hover */
.icon-16,
.icon-socials {
  transition: all 0.3s ease;
}

.icon-16:hover,
.icon-socials:hover {
  transform: scale(1.15);
}

/* Link underline animation */
.menu-footer li a,
.main-menu li a {
  position: relative;
  display: inline-block;
}

.menu-footer li a::after,
.main-menu li a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -2px;
  left: 0;
  background-color: #FEC201;
  transition: width 0.3s ease;
}

.menu-footer li a:hover::after,
.main-menu li a:hover::after {
  width: 100%;
}

/* ============================================
   FORM ENHANCEMENTS
   ============================================ */

/* Smooth form focus states */
.form-control {
  transition: all 0.3s ease;
}

.form-control:focus {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(3, 68, 96, 0.1);
}

/* Select dropdown enhancement */
select.form-control {
  cursor: pointer;
}

select.form-control:hover {
  border-color: #034460;
}

/* ============================================
   IMAGE EFFECTS
   ============================================ */

/* Image zoom on hover */
.cardImage img,
.card-image img,
.box-image-how img {
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.cardImage:hover img,
.card-image:hover img,
.box-image-how:hover img {
  transform: scale(1.05);
}

/* Smooth image loading */
img {
  image-rendering: -webkit-optimize-contrast;
  backface-visibility: hidden;
}

/* ============================================
   SWIPER/CAROUSEL ENHANCEMENTS
   ============================================ */

/* Smoother swiper pagination */
.swiper-pagination-bullet {
  transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
  background-color: #FEC201;
  transform: scale(1.3);
}

/* Enhanced swiper buttons */
.swiper-button-prev,
.swiper-button-next {
  transition: all 0.3s ease;
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
  transform: scale(1.1);
  background-color: rgba(254, 194, 1, 0.1);
}

/* ============================================
   LOADING & PRELOADER
   ============================================ */

/* Enhanced preloader */
#preloader-active {
  transition: opacity 0.5s ease;
}

.flip-square {
  animation: flipSquare 1.2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes flipSquare {

  0%,
  100% {
    transform: perspective(140px) rotateX(0deg) rotateY(0deg);
  }

  50% {
    transform: perspective(140px) rotateX(-180deg) rotateY(0deg);
  }
}

/* ============================================
   PREMIUM GLASSMORPHISM EFFECTS
   ============================================ */

/* Subtle glassmorphism for sections */
.bg-1,
.bg-2 {
  backdrop-filter: blur(10px);
}

/* ============================================
   ACCESSIBILITY - FOCUS STATES
   ============================================ */

/* Enhanced focus for keyboard navigation */
a:focus-visible,
button:focus-visible,
.btn:focus-visible {
  outline: 3px solid #FEC201;
  outline-offset: 3px;
}

/* ============================================
   PERFORMANCE OPTIMIZATIONS
   ============================================ */

/* GPU acceleration for smooth animations */
.hover-up,
.card-offer,
.cardGrid,
.btn {
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  perspective: 1000px;
}

/* ============================================
   RESPONSIVE ENHANCEMENTS
   ============================================ */

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Mobile optimizations */
@media (max-width: 768px) {
  .hover-up:hover {
    transform: translateY(-4px);
  }

  .card-offer:hover,
  .cardGrid:hover {
    transform: translateY(-4px);
  }
}