/* ==========================================================================
   CSS Variables & Resets
   ========================================================================== */
:root {
  /* Colors - Premium Logistics Palette (Logo match) */
  --primary: #18419B;        /* Dark Blue */
  --primary-light: #2654B5;
  --secondary: #d82732;      /* Red */
  --secondary-hover: #b51c25;
  --accent: #48bbde;         /* Light Blue */
  
  --text-dark: #1e293b;
  --text-body: #475569;
  --text-light: #f8fafc;
  --text-muted: #cbd5e1;
  
  --bg-main: #ffffff;
  --bg-light: #f8fafc;
  --bg-dark: #0a1120;        /* Very dark blue for dark sections */
  
  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* Utilities */
  --transition-fast: 0.2s ease-in-out;
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text-body);
  background-color: var(--bg-main);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-dark);
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-normal);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ==========================================================================
   Layout & Utilities
   ========================================================================== */
.container {
  width: 90%;
  max-width: 1280px;
  margin: 0 auto;
}

.section {
  padding: 100px 0;
}

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

.text-center {
  text-align: center;
}

.mt-4 {
  margin-top: 2rem;
}

/* Typography Utilities */
.section-subtitle {
  color: var(--secondary);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
}

.section-subtitle.light {
  color: var(--secondary);
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
}

.section-title.light {
  color: var(--text-light);
}

.section-desc {
  max-width: 700px;
  margin: 0 auto 3rem;
  font-size: 1.125rem;
}

.section-desc.light {
  color: var(--text-muted);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-heading);
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 2px solid transparent;
  gap: 0.5rem;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.15);
  transition: var(--transition-normal);
  z-index: -1;
}

.btn:hover::before {
  width: 100%;
}

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

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

.btn-outline {
  background-color: transparent;
  border-color: white;
  color: white;
}

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

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

.btn-white:hover {
  background-color: var(--bg-light);
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: var(--transition-normal);
}

.header.scrolled {
  background-color: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(10px);
}

.header.scrolled .top-bar {
  height: 0;
  padding: 0;
  overflow: hidden;
  opacity: 0;
}

.header.scrolled .nav-links a {
  color: var(--text-dark);
}

.header.scrolled .logo-text {
  color: var(--primary);
}

.top-bar {
  background-color: var(--primary-light);
  color: var(--text-light);
  font-size: 0.875rem;
  padding: 0.5rem 0;
  transition: var(--transition-normal);
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.contact-info {
  display: flex;
  gap: 1.5rem;
}

.contact-info i {
  color: var(--secondary);
  margin-right: 0.25rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  color: var(--text-light);
}

.social-links a:hover {
  color: var(--secondary);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 0;
}

.brand-logo {
  display: flex;
  align-items: center;
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: 1px;
}

.logo-boxes {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-right: 8px;
  height: 30px;
}

.box-lb, .box-db, .box-r {
  width: 12px;
  flex: 1;
}

.box-lb { background-color: var(--accent); }
.box-db { background-color: var(--primary); }
.box-r { background-color: var(--secondary); }

.logo-text {
  color: white;
  transition: var(--transition-normal);
}

.logo-highlight {
  color: var(--secondary);
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  color: white;
  font-family: var(--font-heading);
  font-weight: 500;
  letter-spacing: 0.5px;
  position: relative;
  transition: var(--transition-normal);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--secondary);
  transition: var(--transition-normal);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--secondary);
}

.header.scrolled .nav-links a:hover,
.header.scrolled .nav-links a.active {
  color: var(--secondary);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
}

.header.scrolled .mobile-menu-btn {
  color: var(--text-dark);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('assets/hero_bg.png');
  background-size: cover;
  background-position: center;
  z-index: -2;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(15, 28, 63, 0.95) 0%, rgba(15, 28, 63, 0.8) 50%, rgba(15, 28, 63, 0.5) 100%);
  z-index: -1;
}

.hero-content {
  color: white;
  max-width: 800px;
  z-index: 1;
}

.badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--accent);
  color: var(--accent);
  font-family: var(--font-heading);
  font-weight: 600;
  border-radius: 50px;
  margin-bottom: 1.5rem;
  letter-spacing: 1px;
}

.hero h1 {
  font-size: 4.5rem;
  color: white;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

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

.hero p {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 600px;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
}

.hero-stats {
  position: absolute;
  bottom: -50px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 2rem;
  width: 90%;
  max-width: 1000px;
  z-index: 10;
}

.stat-card {
  flex: 1;
  background-color: white;
  padding: 2rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 1.5rem;
  transition: var(--transition-normal);
  border-bottom: 4px solid transparent;
}

.stat-card:hover {
  transform: translateY(-10px);
  border-bottom-color: var(--secondary);
}

.stat-icon {
  width: 60px;
  height: 60px;
  background-color: rgba(72, 187, 222, 0.1);
  color: var(--secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.stat-info h3 {
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

.stat-info p {
  color: var(--text-body);
  font-size: 0.875rem;
  margin: 0;
}

/* ==========================================================================
   About Section
   ========================================================================== */
.about {
  padding-top: 150px; /* Account for overhanging stats */
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-images {
  position: relative;
}

.img-main {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  width: 85%;
}

.img-secondary {
  position: absolute;
  bottom: -40px;
  right: 0;
  width: 55%;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 10px solid white;
}

.experience-badge {
  position: absolute;
  top: 40px;
  right: -20px;
  background-color: var(--secondary);
  color: white;
  padding: 1.5rem;
  border-radius: 50%;
  width: 130px;
  height: 130px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  box-shadow: var(--shadow-md);
  animation: float 4s ease-in-out infinite;
}

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

.experience-badge .number {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1;
}

.experience-badge .text {
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 600;
  margin-top: 0.25rem;
}

.divider {
  width: 60px;
  height: 4px;
  background-color: var(--secondary);
  margin-bottom: 1.5rem;
  border-radius: 2px;
}

.about-text p {
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}

.about-quote {
  border-left: 4px solid var(--secondary);
  padding: 1.25rem 1.5rem;
  background-color: var(--bg-light);
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* ==========================================================================
   Services Section
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.service-card {
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2.5rem 2rem;
  border-radius: var(--radius-md);
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0;
  background: linear-gradient(180deg, rgba(72, 187, 222, 0.15), transparent);
  transition: var(--transition-normal);
  z-index: 0;
}

.service-card:hover {
  transform: translateY(-10px);
  border-color: rgba(72, 187, 222, 0.5);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.service-card:hover::before {
  height: 100%;
}

.service-icon {
  width: 70px;
  height: 70px;
  background-color: var(--secondary);
  color: white;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
  transition: var(--transition-normal);
}

.service-card:hover .service-icon {
  background-color: white;
  color: var(--secondary);
  transform: scale(1.1);
}

.service-card h3 {
  color: white;
  font-size: 1.35rem;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.service-card p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
  flex-grow: 1;
}

.service-link {
  color: var(--secondary);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  z-index: 1;
}

.service-link:hover {
  color: white;
}

.service-link i {
  transition: var(--transition-fast);
}

.service-link:hover i {
  transform: translateX(5px);
}

/* Make bottom two cards span properly if needed, but auto-fill handles it usually. Let's force an attractive layout */
@media (min-width: 1024px) {
  .service-card:nth-child(4),
  .service-card:nth-child(5) {
      grid-column: span 1.5; /* Not valid syntax for auto-fit grid, let's keep it simple auto-fit, it wraps nicely. */
  }
}

/* ==========================================================================
   Call to Action Banner
   ========================================================================== */
.cta-banner {
  background: linear-gradient(135deg, var(--secondary) 0%, #aa1c25 100%);
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -5%;
  width: 400px;
  height: 400px;
  background-image: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 70%);
  border-radius: 50%;
}

.cta-banner .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 1;
}

.cta-content h2 {
  color: white;
  font-size: 2.25rem;
  margin-bottom: 0.5rem;
}

.cta-content p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.15rem;
  max-width: 600px;
  margin: 0;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background-color: #030a1c; /* Even darker blue */
  color: var(--text-muted);
  padding: 5rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-col h3 {
  color: white;
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.75rem;
}

.footer-col h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--secondary);
}

.footer-logo {
  display: block;
  margin-bottom: 1.5rem;
}

.footer-desc {
  margin-bottom: 1.5rem;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255,255,255,0.05);
  border-radius: 50%;
  margin-right: 0.5rem;
  transition: var(--transition-normal);
}

.footer-social a:hover {
  background-color: var(--secondary);
  color: white;
  transform: translateY(-3px);
}

.links-col ul li {
  margin-bottom: 0.75rem;
}

.links-col ul li a {
  display: inline-block;
  color: var(--text-muted);
}

.links-col ul li a:hover {
  color: var(--secondary);
  transform: translateX(5px);
}

.contact-list li {
  display: flex;
  margin-bottom: 1.5rem;
  gap: 1rem;
  align-items: flex-start;
}

.contact-list li div {
  line-height: 1.4;
}

.contact-list li i {
  color: var(--secondary);
  font-size: 1.25rem;
  margin-top: 0.15rem;
  min-width: 24px;
  flex-shrink: 0;
}

.contact-list strong {
  color: white;
  display: block;
  margin-bottom: 0.4rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
}

.footer-legal a {
  margin-left: 1.5rem;
}

.footer-legal a:hover {
  color: white;
}

/* Floating WhatsApp Button */
.whatsapp-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #25D366;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  transition: var(--transition-normal);
  animation: pulse 2s infinite;
}

.whatsapp-btn:hover {
  background-color: #128C7E;
  transform: scale(1.1);
  color: white;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
  70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ==========================================================================
   Animations & Reveals
   ========================================================================== */
.slide-in-up {
  opacity: 0;
  transform: translateY(30px);
  animation: slideInUp 0.8s forwards;
}

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

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }
.delay-4 { animation-delay: 0.8s; }
.delay-5 { animation-delay: 1.0s; }

/* Scroll Reveals */
.reveal {
  opacity: 0;
  transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
  opacity: 1;
  transform: translate(0, 0) scale(1);
}

.fade-up { transform: translateY(50px); }
.fade-left { transform: translateX(50px); }
.slide-right { transform: translateX(-50px); }
.scale-up { transform: scale(0.9); }

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 1024px) {
  .hero h1 { font-size: 3.5rem; }
  .about-grid { gap: 2rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .top-bar { display: none; }
  
  .mobile-menu-btn { display: block; }
  
  .nav-actions .btn { display: none; }
  
  .nav-links {
      position: absolute;
      top: 100%;
      left: 0;
      width: 100%;
      background-color: var(--primary);
      flex-direction: column;
      padding: 2rem;
      gap: 1.5rem;
      text-align: center;
      transform: translateY(-150%);
      opacity: 0;
      transition: var(--transition-normal);
      z-index: -1;
  }
  
  .nav-links.active {
      transform: translateY(0);
      opacity: 1;
      box-shadow: var(--shadow-md);
  }
  
  .hero h1 { font-size: 2.75rem; }
  
  .hero-stats {
      flex-direction: column;
      position: relative;
      bottom: 0;
      margin-top: 3rem;
  }
  
  .stat-card {
      padding: 1.5rem;
  }
  
  .about-grid {
      grid-template-columns: 1fr;
      text-align: center;
  }
  
  .divider { margin: 0 auto 1.5rem; }
  
  .about-images { margin-bottom: 5rem; }
  
  .img-secondary { bottom: -20px; right: 10%; width: 60%; }
  
  .experience-badge { right: 0; top: 10px; width: 100px; height: 100px; padding: 1rem; }
  
  .experience-badge .number { font-size: 1.25rem; }
  
  .cta-banner .container {
      flex-direction: column;
      text-align: center;
      gap: 2rem;
  }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 2.25rem; }
  .hero-buttons { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
}
