:root {
  --primary-color: #0056b3;
  --secondary-color: #003366;
  --accent-color: #ffa500;
  --background-color: #f4f7f9;
  --text-color: #333333;
  --light-text-color: #ffffff;
  --border-color: #e0e0e0;
}

body {
  font-family: 'Roboto', Arial, sans-serif;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  background-color: var(--background-color);
  color: var(--text-color);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

header {
  background-color: var(--primary-color);
  color: var(--light-text-color);
  padding: 1rem 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

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

header .logo {
  font-size: 1.8rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--light-text-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

header .logo:hover {
  color: var(--accent-color);
}

nav ul {
  list-style-type: none;
  padding: 0;
  display: flex;
}

nav ul li {
  margin-right: 1.5rem;
}

nav ul li a {
  color: var(--light-text-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

nav ul li a:hover {
  color: var(--accent-color);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn-tracking {
  background-color: var(--accent-color);
  color: var(--secondary-color);
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.btn-tracking:hover {
  background-color: var(--light-text-color);
}

.language-switcher {
  display: flex;
  gap: 1rem;
}

.language-switcher a {
  color: var(--light-text-color);
  text-decoration: none;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.language-switcher a:hover {
  color: var(--accent-color);
}

main {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero {
  background-color: var(--secondary-color);
  color: var(--light-text-color);
  text-align: center;
  padding: 4rem 1rem;
  width: 100%;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.hero h1, .hero p {
  position: relative;
  z-index: 2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--light-text-color);
}

.hero p {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto;
  color: var(--light-text-color);
}

.content {
  max-width: 1200px;
  width: 100%;
  padding: 2rem 5%;
  box-sizing: border-box;
}

h1, h2 {
  color: var(--secondary-color);
  margin-bottom: 1.5rem;
}

.tracking-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    margin-bottom: 2rem;
}

.tracking-form-container {
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 2rem;
  margin-top: 2rem;
  width: 100%;
  max-width: 500px;
  flex: 1;
}

.tracking-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
}

.tracking-form label {
  align-self: flex-start;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--secondary-color);
}

.tracking-form input[type="text"] {
  width: 100%;
  padding: 1rem;
  margin-bottom: 1rem;
  border: 2px solid var(--border-color);
  border-radius: 4px;
  font-size: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.tracking-form input[type="text"]:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.2);
}

.tracking-form button {
  width: 100%;
  padding: 1rem;
  background-color: var(--primary-color);
  color: var(--light-text-color);
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.1s ease;
}

.tracking-form button:hover {
  background-color: var(--secondary-color);
}

.tracking-form button:active {
  transform: translateY(1px);
}

.last-scan {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    border-radius: 8px;
    padding: 1.5rem;
    margin-left: 2rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    color: #ffffff;
    width: 100%;
    max-width: 400px;
    flex: 1;
    transition: all 0.3s ease;
}

.last-scan:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.last-scan h2 {
    color: #ffffff;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.scan-info {
    font-size: 1.1rem;
}

.scan-status {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.scan-status i {
    margin-right: 0.5rem;
    font-size: 1.2rem;
}

.scan-status strong {
    font-size: 1.3rem;
}

.scan-location, .scan-time {
    margin: 0.5rem 0;
    opacity: 0.9;
}


.features {
  display: flex;
  justify-content: space-between;
  margin-top: 3rem;
}

.feature {
  flex: 1;
  text-align: center;
  padding: 1rem;
}

.feature i {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.tracking-info {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    margin-top: 2rem;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.tracking-timeline {
  list-style-type: none;
  padding: 0;
  position: relative;
}

.tracking-timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 20px;
  width: 2px;
  background-color: var(--primary-color);
}

.tracking-timeline li {
  margin-bottom: 1.5rem;
  padding-left: 3rem;
  position: relative;
}

.tracking-timeline li::before {
  content: '';
  position: absolute;
  left: 10px;
  top: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: var(--primary-color);
  z-index: 1;
}

.timeline-content {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.timeline-content strong {
    display: block;
    font-size: 1.1rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.timeline-content p {
    margin: 0.3rem 0;
    color: var(--text-color);
}

.tracking-timeline li strong {
  display: block;
  font-size: 1.1rem;
  color: var(--secondary-color);
}

.tracking-timeline li p {
  margin: 0.3rem 0;
  color: var(--text-color);
}

.error-message {
  background-color: var(--accent-color);
  color: var(--text-color);
  padding: 1rem;
  border-radius: 4px;
  margin-top: 1rem;
  text-align: center;
}

footer {
  background-color: var(--secondary-color);
  color: var(--light-text-color);
  text-align: center;
  padding: 2rem 1rem;
  margin-top: auto;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.footer-section {
  flex: 1;
  margin: 0 1rem;
}

.footer-section h3 {
  color: var(--accent-color);
  margin-bottom: 1rem;
}

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

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

.footer-section ul li a {
  color: var(--light-text-color);
  text-decoration: none;
}

.footer-section ul li a:hover {
  text-decoration: underline;
}

.copyright {
  margin-top: 2rem;
  font-size: 0.9rem;
  opacity: 0.8;
}

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

.service-card {
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 2rem;
  text-align: center;
  transition: transform 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
}

.service-card i {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.service-card .price {
  font-size: 1.25rem;
  font-weight: bold;
  margin: 1rem 0;
}

.btn {
  display: inline-block;
  background-color: var(--primary-color);
  color: var(--light-text-color);
  padding: 0.5rem 1rem;
  border-radius: 4px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

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

.about-content {
  max-width: 800px;
  margin: 0 auto;
}

.about-content h2 {
  margin-top: 2rem;
}

.about-content ul {
  list-style-type: none;
  padding-left: 0;
}

.about-content li {
  margin-bottom: 0.5rem;
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid var(--border-color);
  border-radius: 4px;
}

.form-group textarea {
  height: 150px;
}

.contact-info {
  margin-top: 2rem;
  text-align: center;
}

.contact-info p {
  margin-bottom: 0.5rem;
}

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

@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    align-items: center;
    padding: 1rem;
  }

  nav ul {
    flex-direction: column;
    align-items: center;
    margin-top: 1rem;
  }

  nav ul li {
    margin: 0.5rem 0;
  }

  .header-actions {
    flex-direction: column;
    align-items: center;
    margin-top: 1rem;
  }

  .btn-tracking {
    margin-bottom: 1rem;
  }

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

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

  .tracking-form-container {
    padding: 1rem;
  }

  .tracking-form input[type="text"],
  .tracking-form button {
    width: 100%;
  }

  .features {
    flex-direction: column;
  }

  .feature {
    margin-bottom: 2rem;
  }

  .footer-content {
    flex-direction: column;
  }

  .footer-section {
    margin-bottom: 2rem;
  }

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

  .service-card {
    margin-bottom: 1rem;
  }

  .about-content,
  .contact-form,
  .contact-info {
    padding: 1rem;
  }

  .form-group input,
  .form-group textarea {
    width: 100%;
  }
  .tracking-container {
        flex-direction: column;
    }

    .tracking-form-container,
    .last-scan {
        max-width: 100%;
    }

}

@media (max-width: 1024px) {
  .features {
    flex-direction: column;
  }

  .feature {
    margin-bottom: 2rem;
  }

  .services {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }

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

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

  .footer-content {
    flex-direction: column;
  }

  .footer-section {
    margin-bottom: 2rem;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 16px;
  }
  .header-content {
    flex-direction: column;
    padding: 0.5rem;
  }
  nav {
    position: fixed;
    top: 60px;
    left: -100%;
    width: 100%;
    height: calc(100% - 60px);
    background-color: var(--primary-color);
    transition: 0.3s;
    z-index: 1000;
  }
  nav.active {
    left: 0;
  }
  nav ul {
    flex-direction: column;
    align-items: center;
    padding-top: 2rem;
  }
  nav ul li {
    margin: 1rem 0;
  }
  .header-actions {
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
    margin-top: 0.5rem;
  }
  .btn-tracking,
  .language-switcher {
    font-size: 0.9rem;
  }
  .hero h1 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
  }
  .hero p {
    font-size: 1rem;
  }
  .content {
    padding: 1rem;
  }
  .tracking-form-container {
    padding: 1rem;
  }
  .tracking-form input[type="text"],
  .tracking-form button {
    font-size: 16px;
    padding: 0.8rem;
  }
  .feature i {
    font-size: 2.5rem;
  }
  .feature h3 {
    font-size: 1.2rem;
  }
  .tracking-table {
    font-size: 14px;
  }
  .tracking-timeline li {
    padding-left: 2rem;
  }
  .tracking-timeline li::before {
    width: 15px;
    height: 15px;
    left: 5px;
  }
  .form-group label {
    font-size: 0.9rem;
  }
  .form-group input,
  .form-group textarea {
    font-size: 16px;
    padding: 0.6rem;
  }
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
  .footer-section {
    margin-bottom: 1.5rem;
  }
  .footer-section h3 {
    font-size: 1.2rem;
  }
  .copyright {
    font-size: 0.8rem;
  }
  header .logo {
    font-size: 1.4rem;
  }
}

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

.tracking-table {
  width: 100%;
  overflow-x: auto;
  display: block;
}

.last-scan {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    color: #ffffff;
    width: 100%;
    max-width: 400px;
    flex: 1;
    transition: all 0.3s ease;
}

.last-scan h2 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.scan-info {
    font-size: 1.1rem;
}

.scan-info p {
    margin: 0.3rem 0;
}

.scan-info strong {
    color: var(--secondary-color);
}

