/* ============================================
   MODERN, PROFESSIONAL LOGISTICS SITE DESIGN
   ============================================ */

:root {
  --primary: #1e3a8a; /* Deep elegant corporate blue */
  --primary-dark: #1e40af;
  --primary-light: #2563eb;
  --accent: #059669; /* Refined emerald */
  --accent-light: #10b981;
  --dark: #ffffff; /* Was dark, now absolute white */
  --dark-secondary: #f8fafc; /* Very soft gray */
  --dark-tertiary: #f1f5f9;
  --light: #0f172a; /* Inverted: Light backgrounds are now dark slate text */
  --light-text: #334155; /* Soft dark text for subtitles */
  --text: #0f172a; /* Main text is dark */
  --border: rgba(148, 163, 184, 0.4);
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  background: var(--dark); /* Base white */
  color: var(--text); /* Dark text */
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Global Watermark */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: url('logo.png');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: 50vw;
  opacity: 0.03;
  pointer-events: none;
  z-index: 0;
}

/* ============= HEADER STYLES ============= */

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.3s ease;
}

.brand:hover {
  transform: translateY(-2px);
}

.logo {
  height: 50px;
  width: auto;
  object-fit: contain;
  filter: brightness(1.1);
}

.brand-text {
  font-size: 1.4rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--accent-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
}

nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

nav a {
  color: var(--light-text);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  transition: color 0.3s ease;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-light), var(--accent-light));
  transition: width 0.3s ease;
}

nav a:hover {
  color: var(--primary-light);
}

nav a:hover::after {
  width: 100%;
}

/* ============= HERO SECTION ============= */

.hero {
  margin-top: 70px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.03) 0%, rgba(16, 185, 129, 0.02) 100%),
    url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="30" fill="rgba(37,99,235,0.02)"/></svg>');
  background-size: cover, 300px 300px;
  background-attachment: fixed, fixed;
  background-position: center, center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 20s infinite ease-in-out;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -5%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 25s infinite ease-in-out reverse;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
  animation: slideInDown 0.8s ease forwards;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: var(--light-text);
  margin-bottom: 2.5rem;
  animation: slideInUp 0.8s ease forwards;
  animation-delay: 0.2s;
  font-weight: 500;
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: slideInUp 0.8s ease forwards;
  animation-delay: 0.4s;
}

.btn {
  padding: 1rem 2.5rem;
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  font-family: 'Poppins', sans-serif;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
  color: white;
  box-shadow: var(--shadow-lg);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  transition: left 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-secondary {
  background: white;
  border: 2px solid var(--primary-light);
  color: var(--primary-light);
}

.btn-secondary:hover {
  background: var(--primary-light);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.2);
}

/* ============= SECTION STYLES ============= */

section {
  padding: 6rem 2rem;
  position: relative;
  overflow: hidden;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3.5rem);
  margin-bottom: 3rem;
  text-align: center;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: slideInDown 0.6s ease forwards;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

/* ============= FLEET SECTION ============= */

.fleet-section {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, rgba(16, 185, 129, 0.05) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.vehicle-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  animation: slideInUp 0.8s ease forwards;
}

.vehicle-image {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.vehicle-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: radial-gradient(circle at center, rgba(37, 99, 235, 0.05), transparent);
}

.vehicle-info h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--accent-light);
}

.vehicle-features {
  list-style: none;
  margin-bottom: 2rem;
}

.vehicle-features li {
  padding: 0.8rem 0;
  padding-left: 2rem;
  position: relative;
  font-size: 1.1rem;
  color: var(--light-text);
}

.vehicle-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent-light);
  font-weight: bold;
  font-size: 1.3rem;
}

/* ============= CARDS GRID ============= */

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 15px;
  padding: 2.5rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-light), var(--accent-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.card:hover {
  transform: translateY(-8px);
  border-color: rgba(37, 99, 235, 0.2);
  box-shadow: var(--shadow-xl);
  background: #ffffff;
}

.card:hover::before {
  transform: scaleX(1);
}

.card-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--primary-light);
}

.card p {
  color: var(--light-text);
  line-height: 1.8;
}

/* ============= FOOTER ============= */

footer {
  background: var(--dark-secondary);
  border-top: 1px solid var(--border);
  padding: 3rem 2rem;
  color: var(--light-text);
  text-align: center;
}

footer .container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  text-align: left;
  margin-bottom: 2rem;
}

.footer-section h4 {
  color: var(--primary-light);
  margin-bottom: 1rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: var(--light-text);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
}

/* ============= FORM STYLES ============= */

.contact-form {
  display: grid;
  gap: 1.5rem;
  max-width: 600px;
  margin: 2rem auto 0;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.contact-form label {
  font-weight: 600;
  color: var(--primary-light);
  font-size: 1rem;
}

.contact-form input,
.contact-form textarea {
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #ffffff;
  color: var(--text);
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary-light);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

/* ============= ANIMATIONS ============= */

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

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

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

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============= RESPONSIVE DESIGN ============= */

@media (max-width: 768px) {
  header {
    padding: 1rem 0;
  }

  .header-content {
    padding: 0 1rem;
  }

  nav {
    gap: 1rem;
    font-size: 0.9rem;
  }

  .hero {
    margin-top: 70px;
  }

  .vehicle-showcase {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  section {
    padding: 4rem 1rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .hero-buttons {
    gap: 1rem;
  }

  .btn {
    padding: 0.8rem 1.8rem;
    font-size: 0.9rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  footer .container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .brand-text {
    display: none;
  }

  nav {
    gap: 0.5rem;
  }

  nav a {
    font-size: 0.85rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 0.95rem;
  }

  .card {
    padding: 1.5rem;
  }
}
