/* FREIGHTLX Logistics - Enhanced Styles */
:root {
  --primary-blue: #4aa1e0;
  --secondary-blue: #4aa1e0;
  --dark-text: #201f1f;
  --gray-text: #777e90;
  --light-gray: #9f9f9f;
  --border-gray: #e5e7eb;
  --bg-light: #fcfcfd;
  --success-green: #10b981;
  --warning-orange: #f59e0b;
  --error-red: #ef4444;
}

/* Base Styles */
* {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  line-height: 1.6;
}


.max-w-7xl
{
  max-width: 85rem !important;
}

.shadow-lg , .shadow , .shadow-md, .shadow-sm, .shadow-xl
{
  box-shadow: rgba(67, 71, 85, 0.27) 0px 0px 0.25em, rgba(90, 125, 188, 0.05) 0px 0.25em 1em !important;
}

.shadow-custom
{
  box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
}
.filter-custom
{
  filter: grayscale(1) !important;
}

/* Typography */
.text-balance {
  text-wrap: balance;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  line-height: 1.2;
  font-weight: 700;
}

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

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

::-webkit-scrollbar-thumb {
  background: var(--secondary-blue);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-blue);
}



/* Mobile Navigation - Left to Right Slide */
.sidebar-menu {
  transform: translateX(-100%);
  transition: transform 0.3s ease-in-out;
  visibility: hidden;
}

.sidebar-menu.active {
  transform: translateX(0);
  visibility: visible;
  height: 100vh !important;
}

#mobileMenuOverlay {
  transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
  visibility: hidden;
}

#mobileMenuOverlay.active {
  opacity: 1 !important;
  visibility: visible;
  pointer-events: auto;
  height: 100vh !important;
}

/* Smooth slide animation */
.slide-in {
  animation: slideInFromLeft 0.3s ease-out;
}

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

/* Hero Background */
.hero-gradient {
  background-image: url('/images/frontend/hero-bg.svg');
  background-repeat: no-repeat;
  background-size: 100% !important;
  background-size: cover !important;
}
/* Focus States */
.focus-ring:focus-visible {
  outline: 2px solid var(--primary-blue);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Button Styles */
.btn-primary {
  background: #4aa1e0;
  background: linear-gradient(to right, #1b1c4c, #1d4d91, #4aa1e0);
  transition: all 0.2s ease-in-out;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--secondary-blue);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 74, 153, 0.3);
}

.btn-secondary {
  background: transparent;
  border: 2px solid var(--primary-blue);
  color: var(--primary-blue);
  transition: all 0.2s ease-in-out;
}

.btn-secondary:hover {
  background: var(--primary-blue);
  color: white;
}

/* Card Hover Effects */
.card-hover {
  transition: all 0.3s ease-in-out;
}

.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Skip Link for Accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--primary-blue);
  color: white;
  padding: 8px;
  text-decoration: none;
  border-radius: 4px;
  z-index: 1000;
}

.skip-link:focus {
  top: 6px;
}

/* Loading Animation */


@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* Intersection Observer Animations - Fixed */
.fade-in-element {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in-element.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Fixed Header on Scroll */
.header-fixed {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgb(17 24 39 / var(--tw-bg-opacity, 1)) !important;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease-in-out;
  /* background: linear-gradient(135deg, #0B3B70, #4B1F4F) !important; */
  /* background-size: 200% 200%; */
}

.header-fixed .hero-gradient {
  min-height: auto !important;
  padding: 0.5rem 0 !important;
}

.header-fixed nav {
  padding: 0.75rem 0 !important;
}



@keyframes fadeIn {
  /* Keep this but don't auto-apply */
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile Specific Styles */
@media (max-width: 768px) {
  .mobile-px {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .mobile-form {
    padding: 1.5rem;
    margin: 0 1rem;
  }

  /* Better touch targets */
  button,
  a {
    min-height: 44px;
    min-width: 44px;
  }

  /* Improved mobile typography */
  h1 {
    font-size: 2rem;
    line-height: 1.1;
  }

  h2 {
    font-size: 1.75rem;
    line-height: 1.2;
  }

  h3 {
    font-size: 1.5rem;
    line-height: 1.3;
  }
}

/* Tablet Styles */
@media (min-width: 769px) and (max-width: 1024px) {
  .container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* Form Enhancements */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
select,
textarea {
  transition: all 0.2s ease-in-out;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(0, 74, 153, 0.1);
}

/* Error States */
.error {
  border-color: var(--error-red) !important;
}

.error:focus {
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
}

/* Success States */
.success {
  border-color: var(--success-green) !important;
}

/* Utility Classes */
.text-primary {
  color: var(--primary-blue);
}

.text-secondary {
  color: var(--secondary-blue);
}

.bg-primary {
  background: #4aa1e0 !important;
}

.bg-secondary {
  background-color: var(--secondary-blue);
}

.border-primary {
  border-color: var(--primary-blue);
}

/* Print Styles */
@media print {
  .no-print {
    display: none !important;
  }

  body {
    background: white !important;
    color: black !important;
  }

  a {
    text-decoration: underline;
  }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  .btn-primary {
    border: 2px solid currentColor;
  }

  .card-hover {
    border: 2px solid var(--dark-text);
  }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}

/* Dark Mode Support (Future Enhancement) */
@media (prefers-color-scheme: dark) {
  :root {
    --dark-text: #f9fafb;
    --gray-text: #d1d5db;
    --bg-light: #111827;
    --border-gray: #374151;
  }
}

/* Video Section Styling */
.video-container {
  position: relative;
  background: linear-gradient(135deg, #1e3a8a 0%, #3730a3 50%, #581c87 100%);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.video-preview {
  position: relative;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #1e3a8a 0%, #3730a3 50%, #581c87 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.play-button {
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.play-button:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.play-button svg {
  width: 32px;
  height: 32px;
  color: white;
  margin-left: 4px;
}

.video-duration {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
}

/* Mobile Menu Styles */
#mobileMenu {
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 80%;
    max-width: 320px;
    background: white;
    z-index: 50;
    visibility: hidden;
}

#mobileMenu.active {
    transform: translateX(0);
    visibility: visible;
}

#mobileMenuOverlay {
    transition: opacity 0.3s ease-in-out;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 40;
    visibility: hidden;
}

#mobileMenuOverlay.active {
    opacity: 1 !important;
    pointer-events: auto !important;
    visibility: visible;
}

#closeMobileMenu {
    cursor: pointer;
}

[x-cloak] {
  display: none;
}


/* fialment */
