/* Premier Logistics - Custom Styles
   Professional blue/teal palette + polished enhancements
   Works alongside Tailwind CDN
*/

:root {
  --primary: #0F766E;       /* Deep teal */
  --primary-dark: #0D5C58;
  --accent: #14B8A6;        /* Bright teal */
  --navy: #0A2540;          /* Deep navy for text/hero */
  --navy-light: #1E3A5F;
  --slate: #64748B;
  --light: #F8FAFC;
  --white: #FFFFFF;
  --success: #10B981;
}

/* Base enhancements */
body {
  font-family: 'Inter', system_ui, -apple-system, sans-serif;
}

/* Tailwind CDN doesn't include Inter by default, we set it via classes too */

/* Navbar */
.navbar {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar.scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 0 rgba(15, 118, 110, 0.08);
}

.nav-link {
  position: relative;
  transition: color 0.2s ease;
}

.nav-link:after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(to right, var(--primary), var(--accent));
  transition: width 0.3s ease;
}

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

/* Mobile nav */
.mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.3s ease;
  opacity: 0;
}

.mobile-menu.open {
  max-height: 320px;
  opacity: 1;
}

/* Hero Parallax Splash */
.hero-parallax {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.parallax-img {
  position: absolute;
  top: -10%;
  left: 0;
  width: 100%;
  height: 130%; /* Extra height gives room for parallax movement */
  object-fit: cover;
  will-change: transform;
  pointer-events: none;
}

/* Dark gradient overlay for text readability */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(10, 37, 64, 0.82) 0%,
    rgba(15, 118, 110, 0.68) 45%,
    rgba(13, 92, 88, 0.78) 100%
  );
  z-index: 1;
}

/* Subtle radial highlights */
.hero-parallax::after {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 80% 20%, rgba(20, 184, 166, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 20% 80%, rgba(255,255,255,0.04) 0%, transparent 60%);
  z-index: 2;
  pointer-events: none;
}

/* Content sits above parallax */
header .max-w-7xl {
  position: relative;
  z-index: 10;
}

/* Extra splash polish for parallax hero */
.parallax-img {
  filter: saturate(1.05) contrast(1.02);
}

/* Glassmorphism card */
.glass {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.6);
}

/* Service cards */
.service-card {
  transition: transform 0.3s cubic-bezier(0.4, 0.0, 0.2, 1), 
              box-shadow 0.3s cubic-bezier(0.4, 0.0, 0.2, 1),
              border-color 0.2s ease;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  border-color: var(--accent);
}

.service-icon {
  transition: transform 0.3s ease, color 0.3s ease;
}

.service-card:hover .service-icon {
  transform: scale(1.05) rotate(3deg);
  color: var(--accent);
}

/* Stats */
.stat-number {
  font-variant-numeric: tabular-nums;
}

/* Tracker */
.tracker-container {
  transition: all 0.4s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.tracker-result {
  animation: slideUp 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

.timeline {
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 10px;
  bottom: 10px;
  width: 3px;
  background: #E2E8F0;
}

.timeline-step {
  position: relative;
  padding-left: 48px;
  margin-bottom: 1.25rem;
}

.timeline-step:last-child {
  margin-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: 7px;
  top: 3px;
  width: 19px;
  height: 19px;
  background: var(--white);
  border: 3px solid var(--primary);
  border-radius: 9999px;
  transition: all 0.2s ease;
  z-index: 2;
}

.timeline-step.completed .timeline-dot {
  background: var(--primary);
  border-color: var(--primary);
}

.timeline-step.active .timeline-dot {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 0 5px rgba(20, 184, 166, 0.2);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 5px rgba(20, 184, 166, 0.2); }
  50% { box-shadow: 0 0 0 12px rgba(20, 184, 166, 0.1); }
}

/* Shipment status badges */
.status-badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.875rem;
  border-radius: 9999px;
  letter-spacing: 0.025em;
}

.status-in-transit { background: #FEF3C7; color: #92400E; }
.status-delivered { background: #D1FAE5; color: #065F46; }
.status-pending { background: #DBEAFE; color: #1E40AF; }

/* Testimonials */
.testimonial-card {
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-4px);
}

/* Contact form */
.form-input {
  transition: all 0.2s ease;
}

.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.1);
  outline: none;
}

.form-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: #334155;
}

/* Buttons */
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 15px -3px rgb(15 118 110 / 0.3), 0 4px 6px -4px rgb(15 118 110 / 0.3);
}

.btn-primary:active {
  transform: scale(0.985);
}

.btn-secondary {
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background-color: #F1F5F9;
  border-color: #CBD5E1;
}

/* Modal */
.modal {
  animation: modalPop 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

/* Footer */
.footer-link {
  transition: color 0.15s ease;
}

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

/* Utility */
.section-header {
  position: relative;
  display: inline-block;
}

.section-header:after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 48px;
  height: 3px;
  background: linear-gradient(to right, var(--primary), var(--accent));
  border-radius: 3px;
}

/* Subtle scroll animations support */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Trust logos */
.trust-logo {
  filter: grayscale(100%);
  opacity: 0.7;
  transition: all 0.2s ease;
}

.trust-logo:hover {
  filter: grayscale(0%);
  opacity: 1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero-parallax {
    height: 100%;
  }
  
  .service-card {
    padding: 1.5rem;
  }
}

/* Print friendliness */
@media print {
  .navbar, .btn-primary, footer { display: none !important; }
}