* {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0px 20px;
  background: #33424f;
  color: white;
}
.logo {
  border-radius: 20px;
  margin-left: 50px;
  margin-top: 10px;
}
.logo img {
  width: 120px;
  font-weight: bold;
  padding: 5px 10px;
}
nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
  padding: 0;
  margin: 0;
}
nav ul li {
  cursor: pointer;
  transition: 0.3s;
}
nav ul li:hover {
  color: orange;
}
.login-btn {
  background: orange;
  border: none;
  padding: 10px 15px;
  cursor: pointer;
  transition: 0.3s;
}
.login-btn:hover {
  background: darkorange;
}
.container {
  display: flex;
}
aside {
  width: 250px;
  background: #33424f;
  color: white;
  padding: 20px;
}
aside ul {
  list-style: none;
  padding: 0;
  border: 1px #fff solid;
  border-radius: 10px;
  padding: 10px;
}
aside ul li {
  padding: 15px 0;
  cursor: pointer;
  transition: 0.3s;
  border-bottom: 1px solid #fff;
}
aside ul li:hover {
  color: orange;
}
main {
  flex: 1;
  padding: 20px;
}
.hero {
  background: url("/images/hero-image.jpg") no-repeat center center/cover;
  color: white;
  padding: 50px;
  text-align: center;
  height: 350px;
}

.hero h1 {
  font-size: 60px;
}
.hero h2 {
  margin-top: 20px;
  font-size: 50px;
}
.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 20px;
  padding: 20px;
}
.service-box {
  background: #f4f4f4;
  padding: 20px;
  text-align: center;
  transition: 0.3s;
  border-radius: 8px;
}
.service-box:hover {
  background: #ddd;
  transform: scale(1.05);
}
button {
  background: orange;
  border: none;
  padding: 10px;
  cursor: pointer;
  margin-top: 10px;
  transition: 0.3s;
  border-radius: 5px;
  padding: 10px 20px;
  color: #fff;
}
button:hover {
  background: darkorange;
  color: #000;
}

input {
  width: 90%;
  padding: 12px;
  margin: 8px 0;
  border: 2px solid #ddd;
  border-radius: 5px;
  font-size: 16px;
  transition: 0.3s;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

input:focus {
  border-color: orange;
  outline: none;
  box-shadow: 0 0 8px rgba(255, 165, 0, 0.5);
}

/* About Us */

.about-us {
  padding: 0 70px;
  margin-top: 100px;
  display: flex;
  gap: 100px;
}

.about-us .about-text {
  line-height: 1.5;
}

.about-us .about-text p {
  text-align: justify;
  text-align-last: justify;
}

.about-text h1 {
  font-size: 40px;
  color: #33424f;
}

.line {
  height: 5px;
  width: 100px;
  background-color: #33424f;
  margin-top: -25px;
}

.about-img img {
  margin-top: 50px;
  height: 600px;
}

/* Footer */

footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  background-color: #33424f;
}

footer h2 {
  color: #fff;
}

.section-p1 {
  padding: 40px 80px;
}

footer .logo {
  margin-bottom: 30px;
  margin-left: 0;
}

footer .follow {
  margin-top: 20px;
}

footer .follow i {
  color: #fff;
  padding-right: 4px;
  cursor: pointer;
}

footer h4 {
  font-size: 14px;
  padding-bottom: 20px;
  color: #fff !important;
}

footer p {
  font-size: 13px;
  margin: 0 0 8px 0;
  color: #fff;
}

footer .col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 20px;
}

footer a {
  font-size: 13px;
  text-decoration: none;
  margin-bottom: 10px;
  color: #fff;
}

footer .install .row img {
  border: 1px solid #fff;
  border-radius: 6px;
}

footer .install img {
  margin: 10px 0 15px 0;
}

footer .copyright {
  width: 100%;
  text-align: center;
}

footer .follow i:hover,
footer a:hover {
  color: #fff;
}

/* Tracking */

.tracking {
  margin-top: 100px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-bottom: 200px;
}

.tracking h1 {
  font-size: 60px;
  color: #33424f;
  text-align: center;
}

.tracking .search-input {
  padding: 10px;
  border: 2px solid #ccc;
  border-radius: 4px;
  font-size: 16px;
  width: 650px;
  outline: none;
  transition: border-color 0.2s;
}

.tracking-table-wrapper {
  overflow-x: auto !important;
}

.tracking .search-input:focus {
  border-color: #369;
}

.tracking .search {
  display: flex;
  gap: 20px;
}

.tracking .search-button {
  background-color: #33424f;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 13px 20px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.tracking .search-button:hover {
  background-color: #202931;
}

.tracking-result {
  display: flex;
  justify-content: center;
  align-items: center;
}

.tracking-table {
  background-color: #f2f2f2;
  padding: 20px 0;
  transition: 0.5s;
}

.tracking-table:hover {
  background-color: #33424f;
}

.tracking-table:hover th,
.tracking-table:hover h3,
.tracking-table:hover td {
  color: #fff;
}

.tracking-table table {
  width: 1100px;
  border-collapse: collapse;
}

.tracking-table th,
.tracking-table td {
  padding: 10px;
  border: 1px solid #ddd;
  text-align: left;
  white-space: nowrap;
}

.tracking-table th {
  color: #33424f;
}

.tracking-table h3 {
  font-weight: bolder;
  color: #33424f;
  text-align: center;
}

.tracking-table-wrapper {
  overflow-x: auto !important;
}

.tracking-table {
  display: block;
  overflow: hidden;
}

.tracking-table table {
  border-collapse: collapse;
}

/* Responsive Design Enhancements */
@media (max-width: 1320px) {
  .tracking-table table {
    width: 1000px;
    border-collapse: collapse;
  }
}

@media (max-width: 1217px) {
  .hero h1 {
    font-size: 40px;
  }
  .hero h2 {
    font-size: 30px;
  }
  .about-us {
    flex-direction: column;
    gap: 30px;
    padding: 0 30px;
  }
  .about-img img {
    width: 100%;
    height: auto;
  }

  .tracking-table table {
    width: 900px;
    border-collapse: collapse;
  }
}

@media (max-width: 1119px) {
  .tracking .search-input {
    width: 500px;
  }

  .tracking-table table {
    width: 800px;
    border-collapse: collapse;
  }
}

@media (max-width: 1020px) {
  .tracking-table table {
    width: 500px;
    border-collapse: collapse;
  }
}

@media (max-width: 980px) {
  .tracking .search-input {
    width: 400px;
  }
}

@media (max-width: 870px) {
  .tracking .search-input {
    width: 300px;
  }
}

@media (max-width: 768px) {
  header {
    text-align: center;
    padding: 10px 20px;
  }
  nav ul {
    flex-direction: column;
    display: none; /* Hide by default */
    width: 100%;
    text-align: center;
  }
  nav ul.active {
    display: flex; /* Show when toggled */
  }
  .container {
    flex-direction: column;
  }
  aside {
    width: auto;
    text-align: center;
  }
  .services {
    grid-template-columns: 1fr;
  }
  .tracking .search-input {
    width: 90% !important;
  }
}

@media (max-width: 375px) {
  header {
    flex-direction: column;
  }
  .logo {
    margin-left: 0;
  }
}
