* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* General Styles */
body {
  background: #F4F4F4; /* Light gray background */
  color: #333333; /* Dark gray text */
  line-height: 1.6;
  overflow-x: hidden;
}

header {
  background: linear-gradient(90deg, #002B5B, #004080); /* Dark blue gradient */
  color: #ffffff; /* White text */
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 1rem 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

nav {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center; /* Ensures vertical alignment */
}

.company_logo {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin-right: 15px;
}

.logo {
  display: flex;
  align-items: center; /* Aligns the logo text and image vertically */
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem; /* Adjust spacing between items */
  align-items: center; /* Ensures vertical alignment */
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: #ffffff; /* White text for navbar links */
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: opacity 0.3s, transform 0.2s;
}

.nav-links a:hover {
  color: #DAA520; /* Gold hover effect */
  transform: translateY(-2px);
}

.menu-toggle {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: #fff;
}

.dark-mode-toggle {
  font-size: 1.5rem;
  margin-left: 1rem;
  cursor: pointer;
  color: #ffffff; /* White moon icon */
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(rgba(0, 43, 91, 0.85), rgba(0, 64, 128, 0.85)), 
              url('https://images.unsplash.com/photo-1586528116311-ad8dd3a8a7f7?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') 
              center/cover no-repeat;
  color: #ffffff; /* White text */
  text-align: center;
  padding: 2rem;
  position: relative;
}

.hero-content {
  max-width: 1000px;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s ease forwards 0.5s;
}

.hero-content h1 {
  animation: fadeInDown 1s ease forwards;
}

.hero-content p {
  animation: fadeInUp 1s ease forwards 0.5s;
}

.hero h1 {
  font-size: 4.5rem;
  font-weight: 800;
  color: #DAA520; /* Gold heading */
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.hero p {
  font-size: 1.4rem;
  color: #ffffff; /* White paragraph text */
  margin-bottom: 2rem;
  opacity: 0.9;
}

.track-shipment {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.track-shipment input {
  padding: 0.8rem;
  width: 300px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
}

.track-shipment button {
  padding: 0.8rem 2rem;
  background: linear-gradient(45deg, #1E3A8A, #6B21A8);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
}

.track-shipment button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

button, .app-button {
  background: #008080; /* Teal buttons */
  color: #ffffff; /* White text */
  transition: background-color 0.3s, transform 0.3s;
}

button:hover, .app-button:hover {
  background: #004D4D; /* Darker teal on hover */
  transform: scale(1.05);
}

/* Improved app buttons */
.app-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.app-button {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 2rem;
  background: #008080; /* Teal buttons */
  color: #ffffff; /* White text */
  font-weight: 700;
  text-decoration: none;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s, box-shadow 0.3s, background-color 0.3s;
  text-align: left;
  width: 280px;
}

.app-button img {
  width: 40px;
  height: 40px;
}

.app-button .text {
  display: flex;
  flex-direction: column;
}

.app-button .text span:first-child {
  font-size: 0.9rem;
  color: #ffffff; /* White small text */
  opacity: 0.8;
}

.app-button .text span:last-child {
  font-size: 1.2rem;
  font-weight: 800;
  color: #DAA520; /* Gold large text */
}

.app-button:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  background: linear-gradient(45deg, #6B21A8, #1E3A8A);
}

.section {
  padding: 6rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
  text-align: center;
}

.section h2 {
  font-size: 3.2rem;
  font-weight: 800;
  color: #002B5B; /* Dark blue headings */
  margin-bottom: 1.5rem;
}

.section p {
  font-size: 1.2rem;
  color: #555555; /* Medium gray text */
  max-width: 900px;
  margin: 0 auto;
}

.services-grid, .why-us-grid, .trusted-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
}

.card {
  background: #ffffff; /* White card background */
  color: #333333; /* Dark gray text */
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
  opacity: 0;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #1E3A8A, #6B21A8);
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 43, 91, 0.2); /* Dark blue shadow */
}

.card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 1rem;
}

.card h3 {
  font-size: 1.9rem;
  color: #002B5B; /* Dark blue card headings */
  margin-bottom: 0.5rem;
}

.trusted-grid img {
  width: 120px;
  height: auto;
  opacity: 0.7;
  transition: opacity 0.3s;
}

.trusted-grid img:hover {
  opacity: 1;
}

.stats {
  background: linear-gradient(rgba(30, 58, 138, 0.9), rgba(107, 33, 168, 0.9)), url('https://images.unsplash.com/photo-1600585154340-be6161a56a0c?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
  color: #fff;
  padding: 4rem 2rem;
  text-align: center;
}

.stats h2 {
  color: #fff;
}

.stats-counter {
  font-size: 2.5rem;
  font-weight: 800;
  margin: 1rem 0;
}

.contact {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.1);
  padding: 4rem;
  margin: 2rem auto;
  opacity: 0;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 700px;
  margin: 2rem auto;
}

.contact-form input, .contact-form textarea {
  background: #ffffff; /* White input background */
  color: #333333; /* Dark gray text */
  padding: 1rem;
  border: 1px solid #cccccc; /* Light gray border */
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s;
}

.contact-form input:focus, .contact-form textarea:focus {
  border-color: #008080; /* Teal border on focus */
  outline: none;
}

.contact-form button {
  background: #008080; /* Teal button */
  color: #ffffff; /* White text */
  padding: 1rem;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
}

.contact-form button:hover {
  background: #004D4D; /* Darker teal on hover */
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.sticky-cta {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: linear-gradient(45deg, #1E3A8A, #6B21A8);
  color: #fff;
  padding: 0.8rem 1.5rem;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  z-index: 1000;
  transition: transform 0.3s, opacity 0.3s;
  opacity: 0;
}

.sticky-cta.visible {
  opacity: 1;
}

.sticky-cta:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.back-to-top {
  background: #008080; /* Teal button */
  color: #ffffff; /* White text */
  position: fixed;
  bottom: 20px;
  right: 20px;
  padding: 15px 20px;
  border-radius: 50%;
  font-size: 1.5rem;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  z-index: 1000;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: #004D4D; /* Darker teal on hover */
}

footer {
  background: #002B5B; /* Dark blue footer */
  color: #ffffff; /* White text */
  padding: 4rem 2rem;
  text-align: center;
}

footer .footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto 3rem;
}

footer a {
  color: #DAA520; /* Gold links */
  text-decoration: none;
  opacity: 0.8;
}

footer a:hover {
  color: #ffffff; /* White on hover */
}

.social-icons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 1rem;
}

.social-icons img {
  width: 24px;
  height: 24px;
  opacity: 0.8;
  transition: opacity 0.3s;
}

social-icons img:hover {
  opacity: 1;
}

.newsletter {
  background: #1E3A8A;
  padding: 2rem;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  color: #fff;
}

.newsletter input {
  padding: 0.8rem;
  width: 300px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
}

.newsletter button {
  padding: 0.8rem 2rem;
  background: #6B21A8;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
}

.newsletter button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

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

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

.parallax {
  background-image: linear-gradient(rgba(30, 58, 138, 0.7), rgba(107, 33, 168, 0.7)), url('hero.png');
  background-attachment: fixed;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  color: #fff;
  padding: 6rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.parallax h1 {
  font-size: 4rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.parallax p {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  opacity: 0.9;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.parallax .cta-button {
  display: inline-block;
  padding: 1rem 2rem;
  background: #008080; /* Teal button */
  color: #ffffff; /* White text */
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s, box-shadow 0.3s;
}

.parallax .cta-button:hover {
  background: #004D4D; /* Darker teal on hover */
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #1E3A8A;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 5px solid #fff;
  border-top: 5px solid #000000;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
      transform: rotate(0deg);
  }
  100% {
      transform: rotate(360deg);
  }
}

.dark-mode-toggle {
  background: none;
  border: none;
  color: #ffffff; /* White moon icon */
  font-size: 1.5rem;
  cursor: pointer;
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 1000;
}

body.dark-mode {
  background: #121212;
  color: #e0e0e0;
}

body.dark-mode header {
  background: #1f1f1f;
}

body.dark-mode .card {
  background: #1f1f1f;
  color: #e0e0e0;
}

body.dark-mode footer {
  background: #1f1f1f;
}

@media (max-width: 768px) {
  .menu-toggle {
      display: block;
  }

  .nav-links {
      display: none;
      flex-direction: column;
      position: absolute;
      top: 70px;
      left: 0;
      width: 100%;
      background: #1E3A8A;
      padding: 1rem;
  }

  .nav-links.active {
      display: flex;
  }

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

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

  .track-shipment input {
      width: 200px;
  }

  .app-buttons {
      flex-direction: column;
      align-items: center;
  }

  .section h2 {
      font-size: 2.2rem;
  }

  .sticky-cta {
      bottom: 10px;
      right: 10px;
      padding: 0.6rem 1rem;
  }
}
