/* Base Styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Outfit:wght@700;800&family=Poppins:wght@600&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--text-body);
  background-color: var(--bg-snow);
  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;
  margin-bottom: 1rem;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 700;
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
}

p {
  margin-bottom: 1rem;
}

a {
  text-decoration: none;
  color: var(--primary);
  transition: var(--transition-fast);
}

a:hover {
  color: var(--primary-dark);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  list-style: none;
}

/* Utilities */
.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-accent { color: var(--accent); }
.fw-bold { font-weight: 700; }
.fw-medium { font-weight: 500; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

.section-title {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem;
}

.section-subtitle {
  color: var(--primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
  display: block;
}

/* Pre-footer CTA Banner */
.cta-banner {
  background: var(--gradient-cta);
  padding: 80px 0;
  text-align: center;
  color: white;
}
.cta-banner h2 {
  color: white;
  font-size: 2.5rem;
  margin-bottom: 1rem;
}
.cta-banner p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0.9;
  color: white;
}
.btn-white {
  background: white;
  color: var(--accent);
  font-weight: 700;
  padding: 14px 36px;
  border-radius: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: inline-block;
  text-decoration: none;
}
.btn-white:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  color: var(--accent);
  background: #f8f9fa;
}
.btn-glass {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: white;
  font-weight: 700;
  padding: 14px 36px;
  border-radius: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  display: inline-block;
  text-decoration: none;
}
.btn-glass:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
  background: rgba(255, 255, 255, 0.3);
  color: white;
}


/* Preloader Styles */
#logivite-preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--bg-snow, #f8fafc);
  z-index: 999999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

#logivite-preloader.fade-out {
  opacity: 0;
  visibility: hidden;
}

.loader-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.truck-animation {
  position: relative;
  display: inline-block;
  animation: truckDrive 0.3s infinite alternate ease-in-out;
}

.truck-img {
  width: 120px; /* Adjust based on preference */
  height: auto;
  display: block;
}

/* Speed lines effect */
.truck-animation::after {
  content: "";
  position: absolute;
  top: 75%;
  right: 105%;
  width: 30px;
  height: 4px;
  background-color: var(--primary, #1e3a8a);
  border-radius: 4px;
  box-shadow: -20px -20px 0 0 var(--accent, #ea580c), -35px 15px 0 0 var(--primary, #1e3a8a);
  animation: speedLines 0.5s infinite linear;
}

@keyframes truckDrive {
  0% { transform: translateY(0) rotate(0deg); }
  100% { transform: translateY(-4px) rotate(-1deg); }
}

@keyframes speedLines {
  0% { transform: translateX(10px); opacity: 0; }
  30% { opacity: 1; }
  70% { opacity: 1; }
  100% { transform: translateX(-35px); opacity: 0; }
}

.loader-text {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 2.2rem;
  color: var(--primary, #1e3a8a);
  opacity: 0;
  animation: fadeInText 1s forwards;
  animation-delay: 0.3s;
  letter-spacing: -0.5px;
}

.loader-text span {
  color: var(--accent, #ea580c);
}

@keyframes fadeInText {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.loader-text-img {
  height: 28px;
  width: auto;
  opacity: 0;
  animation: fadeInText 1s forwards;
  animation-delay: 0.3s;
  margin-top: 8px;
}
