/* Custom styles for Emerging Logistics landing page */
:root{
  --primary:#1a5490;
  --primary-light:#2575c7;
  --accent:#ff8c42;
  --accent-light:#ffb088;
  --dark:#1a2332;
  --muted:#666666;
  --light-bg:#f5f7fa;
  --border-color:#e0e4e8;
}
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body{
  font-family:Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  color: var(--dark);
  overflow-x: hidden;
  touch-action: pan-y;
}

/* Navbar styling */
.navbar {
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  transition: box-shadow 0.3s ease;
}
.navbar:hover {box-shadow: 0 2px 8px rgba(0,0,0,0.12);}
.navbar-brand {transition: transform 0.3s ease;}
.navbar-brand:hover {transform: scale(1.05);}

/* Navbar logo */
.navbar-logo {
  height: 50px;
  width: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.navbar-logo.logo-click-pulse {
  animation: logoPulse 0.6s ease;
}

@media (max-width: 576px) {
  .navbar-logo {
    height: 40px;
  }
}

/* Logo click animation */
@keyframes logoPulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.15) rotate(5deg);
  }
  100% {
    transform: scale(1) rotate(0deg);
  }
}

/* Navbar close icon (X) for mobile menu */
.navbar-close-icon {
  font-size: 1.5rem;
  color: var(--dark);
  cursor: pointer;
  transition: transform 0.2s ease;
}

.navbar-close-icon:hover {
  transform: rotate(90deg);
}

/* Mobile menu styling */
.navbar-menu {
  max-height: 100vh;
  overflow-y: auto;
  transition: all 0.3s ease;
}

.navbar-menu:not(.show) {
  display: none;
}

.navbar-menu.show {
  display: block;
}

@media (min-width: 992px) {
  .navbar-menu {
    display: flex !important;
  }
}

.nav-link {
  position: relative;
  transition: color 0.3s ease;
  color: var(--dark) !important;
}
.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background: var(--primary);
  transition: width 0.3s ease;
}
.nav-link:hover::after {width: 100%;}

/* Home icon in navbar */
.navbar .bi-house-fill {
  transition: color 0.3s ease, transform 0.2s ease;
  color: var(--primary);
}
.nav-link .bi-house-fill:hover {
  color: var(--primary-light);
  transform: scale(1.2);
}

/* Floating return to top button */
#returnToTopBtn {
  position: fixed;
  bottom: 120px;
  right: 20px;
  width: 50px;
  height: 50px;
  padding: 0;
  display: none;
  z-index: 999;
  box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
  transition: opacity 0.3s ease-in-out, transform 0.2s ease;
  opacity: 0;
}

#returnToTopBtn[style*="display: block"] {
  opacity: 1;
  animation: fadeInIcon 0.3s ease-in-out;
}

#returnToTopBtn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(13, 110, 253, 0.4);
}

#returnToTopBtn i {
  font-size: 1.2rem;
}

/* Form alert styling */
.form-alerts {
  margin-bottom: 1.5rem;
}

.alert-success {
  background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
  border-left: 5px solid #28a745 !important;
}

.alert-success h5 {
  color: #155724;
  font-weight: 600;
}

.alert-success p {
  color: #1e7e34;
  font-weight: 500;
}

.alert-danger {
  background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
  border-left: 5px solid #dc3545 !important;
}

.alert-danger h5 {
  color: #721c24;
  font-weight: 600;
}

.alert-danger p {
  color: #8a1d1d;
  font-weight: 500;
}

/* Alert animation */
.alert {
  animation: slideInUp 0.4s ease-out;
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 576px) {
  #returnToTopBtn {
    bottom: 100px;
    right: 15px;
    width: 45px;
    height: 45px;
  }

  #returnToTopBtn i {
    font-size: 1rem;
  }
}

/* Hero section */
.hero{
  background: linear-gradient(90deg, rgba(26,84,144,0.08), rgba(26,84,144,0.04));
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: rgba(26,84,144,0.05);
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
}
.hero .badge{
  background: var(--primary);
  color: white;
  font-size: 0.85rem;
  padding: 0.5rem 0.8rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  animation: slideInDown 0.6s ease-out;
}

.hero-company-name {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.5rem;
  margin-top: -0.5rem;
  letter-spacing: -0.5px;
  animation: slideInDown 0.5s ease-out;
  line-height: 1.1;
}
.hero h1 {
  animation: slideInUp 0.7s ease-out;
  line-height: 1.3;
  font-size: 1.8rem;
}
.hero p {animation: slideInUp 0.8s ease-out;}
.hero .btn {animation: slideInUp 0.9s ease-out;}

/* Hero Truck Graphic */
.hero-truck-graphic {
  max-width: 100%;
  height: auto;
  animation: slideInRight 0.8s ease-out;
}

.truck-container {
  animation: truckDrive 3s ease-in-out infinite;
}

.motion-lines {
  animation: motionPulse 2s ease-in-out infinite;
}

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

/* Hero Truck Image */
.hero-truck-image {
  max-width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: contain;
  animation: slideInRight 0.8s ease-out, float 4s ease-in-out infinite;
  filter: drop-shadow(0 8px 16px rgba(13, 110, 253, 0.15));
}

@keyframes truckDrive {
  0%, 100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(10px);
  }
}

@keyframes motionPulse {
  0%, 100% {
    opacity: 0.3;
  }
  50% {
    opacity: 0.8;
  }
}

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

.contact-card {
  animation: slideInUp 1s ease-out;
}

/* Section titles with icons */
.section-title {
  position: relative;
  padding-bottom: 0.75rem;
  color: #222;
  font-weight: 600;
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), transparent);
  border-radius: 2px;
}

/* Service cards */
.card-service{
  border: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: #fff;
  border-top: 3px solid var(--primary);
  overflow: hidden;
}
.card-service::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 0;
  background: rgba(13,110,253,0.05);
  transition: height 0.3s ease;
}
.card-service:hover{
  transform: translateY(-6px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.15) !important;
}
.card-service:hover .service-icon {
  animation: bounce 0.6s ease;
}

/* Service icons */
.service-icon{
  font-size: 2rem;
  color: var(--primary);
  transition: transform 0.3s ease;
}

/* Services Truck Image */
.services-truck-image {
  max-width: 100%;
  height: auto;
  max-height: 350px;
  object-fit: contain;
  animation: slideInLeft 0.8s ease-out;
  filter: drop-shadow(0 8px 16px rgba(13, 110, 253, 0.15));
}

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

/* Testimonial cards */
.card-testimonial{
  border: none;
  background: #fff;
  border-left: 4px solid var(--primary);
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.card-testimonial:hover{
  background: var(--light-bg);
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.12);
}
.card-testimonial .bi-star-fill {
  transition: transform 0.2s ease;
}
.card-testimonial:hover .bi-star-fill {
  animation: pulse 0.5s ease;
}

/* Form styling */
.form-control, .form-label {
  transition: all 0.3s ease;
}
.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.2rem rgba(13,110,253,0.25);
}
.form-control::placeholder {color: #ccc;}

/* Button styling */
.btn {
  transition: all 0.3s ease;
  font-weight: 500;
  letter-spacing: 0.5px;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border: none;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(26,84,144,0.3);
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
}
.btn-outline-secondary {
  color: var(--accent);
  border-color: var(--accent);
}
.btn-outline-secondary:hover {
  transform: translateY(-2px);
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

/* Links styling */
a:not(.nav-link):not(.btn) {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.3s ease;
  border-bottom: 1px dotted var(--primary);
}
a:not(.nav-link):not(.btn):hover {
  color: var(--primary-light);
  border-bottom-color: var(--primary-light);
}

/* List items with icon animation */
.list-unstyled li {
  transition: transform 0.3s ease;
}
.list-unstyled li:hover {
  transform: translateX(4px);
}

/* Footer */
.footer{
  background: linear-gradient(180deg, var(--light-bg), #e8e9eb);
  padding: 3rem 0 2rem;
  margin-top: 4rem;
  border-top: 1px solid #ddd;
}

.footer p {
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.footer a {
  color: var(--primary);
  font-weight: 600;
  transition: color 0.3s ease;
}

.footer a:hover {
  color: var(--accent);
}

/* Footer logo */
.footer-logo {
  height: 60px;
  width: auto;
  object-fit: contain;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.footer-credit {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(0,0,0,0.1);
  font-size: 0.9rem;
}

@media (max-width: 576px) {
  .footer-logo {
    height: 50px;
  }
  
  .footer {
    padding: 2rem 0 1.5rem;
    margin-top: 3rem;
  }
}

/* Navbar responsive */
.navbar-nav .nav-link {
  padding: 0.5rem 0;
  margin-bottom: 0.5rem;
  color: var(--dark) !important;
  font-weight: 500;
}
.navbar-nav .btn {margin-top: 0.5rem;}

/* Keyframe animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

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

/* Medium screens (tablets) */
@media (min-width: 576px) and (max-width: 991.98px) {
  .hero {
    padding: 3rem 0;
  }
  .hero h1 {
    font-size: 2rem;
  }
  .hero-truck-image {
    max-height: 300px;
  }
  .services-truck-image {
    max-height: 300px;
  }
  .btn-lg {
    padding: 0.6rem 1.2rem;
    font-size: 0.95rem;
  }
  .d-flex.gap-2 {
    gap: 0.75rem;
    flex-wrap: wrap;
  }
  #returnToTopBtn {
    width: 48px;
    height: 48px;
    bottom: 110px;
    right: 18px;
  }
}

/* Large screens */
@media (min-width: 992px) {
  .navbar-nav .nav-link {
    padding: 0.5rem 0;
    margin: 0 0.75rem;
    margin-bottom: 0;
  }
  .navbar-nav .btn {margin-top: 0;}
}

/* Mobile optimization */
@media (max-width:575.98px){
  .hero{padding: 2.5rem 0;}
  .hero h1 {
    font-size: 1.75rem;
    line-height: 1.2;
  }
  .btn-lg {padding: .5rem 1rem; font-size: 1rem;}
  .d-flex.gap-2 {
    flex-direction: column;
  }
  .d-flex.gap-2 > * {
    width: 100%;
  }
  .section-title {font-size: 1.1rem;}
  .card-service {border-top: 2px solid var(--primary);}
  .service-icon {font-size: 1.5rem;}
  .hero-truck-graphic {
    max-width: 90%;
    margin: 1.5rem auto;
  }
  .hero-truck-image {
    max-height: 250px;
  }
  .services-truck-image {
    max-height: 250px;
    margin-top: 1.5rem;
  }
  .contact-card {
    margin: 0 auto;
  }
  .navbar-brand span {
    font-size: 1rem;
  }
  main {
    padding: 2rem 0;
  }
  .row.g-4 {
    gap: 1.5rem !important;
  }
  .card {
    font-size: 0.95rem;
  }
  .card-body {
    padding: 1.25rem;
  }
  #returnToTopBtn {
    width: 45px;
    height: 45px;
    bottom: 100px;
  }
}
