@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;500&family=Rubik:wght@300;400;500;700&display=swap");

:root {
  --main-color: rgb(9 18 66);
  --secondary-items: rgb(13 27 100);
  --secondary-color: rgb(254 216 117);
  --text-color: rgb(208 149 37);
}

/*
Rare used colors
rgb(255 188 49)
rgb(255 230 165)
*/

.flex {
  display: flex;
}

.white {
  color: white;
}

* {
  font-family: "Open Sans", sans-serif;
  font-family: "Rubik", sans-serif;
  box-sizing: border-box;
  -webkit-box-sizing: border-box;
}

body {
  margin: 0;
}

/* For laptop display */
header,
section.first .container,
section.first nav,
section.second,
section.fourth,
footer {
  padding-left: 250px;
  padding-right: 250px;
}

section.third,
section.fifth {
  padding-left: 100px;
  padding-right: 100px;
}

header {
  background-color: var(--main-color);
  color: white;
  justify-content: space-between;
  padding-top: 45px;
  padding-bottom: 45px;
  flex-wrap: wrap;
}

header .logo {
  flex-basis: 50%;
  align-items: center;
}

.hamburger-menu {
  width: 40px;
  height: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
  background-color: #f8f8f8;
  border: 1px solid #ccc;
  cursor: pointer;
  border-radius: 8px;
  display: none;
}

.hamburger-menu span {
  width: 70%;
  height: 4px;
  background-color: #333;
  border-radius: 2px;
  display: block;
  transition: 0.3s;
}

.hamburger-menu:hover span {
  background-color: #555;
}

.topnav {
  overflow: hidden;
  background-color: #333;
  display: none;
  flex-direction: column;
  margin: 10px 0;
  width: 100%;
}

.topnav a {
  float: left;
  display: block;
  color: var(--secondary-items);
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
  font-size: 17px;
  background-color: white;
}

.topnav a:hover {
  background-color: #ddd;
  color: black;
}

.topnav a.active {
  background-color: var(--text-color);
  color: white;
}

header img {
  width: 30px;
}

header .contact {
  align-items: center;
  margin-right: 10px;
}

header .contact .icon {
  background-color: var(--secondary-items);
  margin-right: 13px;
  padding: 10px;
  border-radius: 50%;
  border: 1px solid rgb(38, 56, 148);
  height: 41.6px;
}

header .contact img {
  width: 20px;
}

header .contact .info {
  font-size: 10px;
}

header .logo .name {
  font-weight: 500;
  font-size: x-large;
}

/* Main styleing */
main nav {
  justify-content: space-between;
  background-color: rgba(0, 0, 0, 0.142);
  color: white;
}

main nav ul {
  list-style: none;
  padding: 0;
  flex-basis: 50%;
  align-items: center;
}

main nav ul li {
  margin-right: 50px;
  font-size: small;
  position: relative;
}

main nav ul li:not(:last-child)::after {
  content: "";
  background-color: rgba(255, 255, 255, 0.525);
  width: 0.5px;
  height: 100%;
  position: absolute;
  right: -25px;
}

main nav ul li span {
  font-weight: bold;
}

main nav ul li:hover {
  cursor: pointer;
}

main nav .sm {
  justify-content: center;
  align-items: center;
}

/* first section */
section.first h1 {
  font-size: 50px;
  margin: 10px 0;
}

section.first .links img {
  width: 20px;
  margin-right: 15px;
}

section.first {
  background: url(imgs/ship-owning-main.jpg);
  background-size: cover;
  height: fit-content;
}

section.first nav li:first-child::before {
  content: "";
  width: 30px;
  height: 1.5px;
  background-color: white;
  position: absolute;
  bottom: -20px;
  transform: translate(10%, 35%);
}

section.first .container {
  padding-top: 160px;
  padding-bottom: 160px;
  width: 64%;
}

section.first .container .details {
  /* font-weight: 300; */
  font-size: smaller;
  margin-bottom: 15px;
  color: rgba(255, 255, 255, 0.764);
}

section.first .container .exp {
  background-color: var(--secondary-color);
  width: fit-content;
  padding: 13px 30px;
}

section.first .container .exp:hover,
section.first .req:hover {
  cursor: pointer;
}

section.first .req {
  color: black;
  background-color: white;
  padding: 20px;
  font-size: smaller;
  font-weight: 500;
  border-color: transparent;
}

.title {
  width: fit-content;
  padding: 0 10px;
  font-size: small;
  position: relative;
}

section.first .title {
  color: white;
  background-color: rgba(0, 0, 0, 0.414);
}

section.second .title,
section.fourth .title,
section.fifth .title {
  color: unset;
  background-color: rgba(0, 0, 0, 0.044);
}

.title::after {
  content: "";
  background-color: yellow;
  position: absolute;
  height: 100%;
  width: 3px;
  left: 0;
}

/* second section */
section.second {
  padding-top: 100px;
  padding-bottom: 100px;
  gap: 10px;
}

section.second img {
  width: 40px;
}

section.second .focus {
  flex-basis: 70%;
}

section.second .services {
  flex-wrap: wrap;
  justify-content: space-between;
  align-content: space-between;
  height: 250px;
}

section.second .service {
  width: 42%;
}

section.second .bar {
  width: 1px;
  height: 100%;
  background-color: #acacac;
  margin: 0 25px;
}

section.second .details .serv_title {
  font-weight: 500;
  font-size: 20px;
  margin-bottom: 10px;
}

section.second .details .serv_detail {
  color: rgb(135, 135, 135);
  font-size: small;
}

/* Third section */
section.third {
  background: linear-gradient(90deg, rgb(255 185 45) 50%, rgb(255 216 141) 100%);
  padding: 50px 20px;
  position: relative;
  overflow: hidden;
}

section.third .header {
  text-align: center;
  font-weight: 600;
  font-size: 28px;
  margin-bottom: 20px;
  color: var(--main-color);
}

section.third article {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin-bottom: 30px;
}

section.third .card {
  height: 250px;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: transform 0.3s ease;
}

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

section.third .card .details {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
}

section.third .sentence1 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 5px;
}

section.third .sentence2 {
  color: var(--secondary-color);
  font-size: 14px;
}

section.third .more {
  display: block;
  width: fit-content;
  margin: 0 auto;
  padding: 12px 30px;
  background-color: var(--main-color);
  color: white;
  border-radius: 4px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

section.third .more:hover {
  background-color: var(--secondary-items);
  transform: translateY(-2px);
}

/* Background images for each card */
section.third .gas {
  background: url('imgs/gas_truck.jpg') center/cover no-repeat;
}

section.third .packaging {
  background: url('imgs/package_soultions.jpg') center/cover no-repeat;
}

section.third .contract {
  background: url('imgs/contract logis.jpg') center/cover no-repeat;
}

section.third .warehouse {
  background: url('imgs/Warehouse_&_Distribution.jpg') center/cover no-repeat;
}

section.third .transport {
  background: url('imgs/Transport_ship.jpg') center/cover no-repeat;
}

@media (max-width: 768px) {
  section.third article {
    grid-template-columns: 1fr;
  }
  
  section.third .header {
    font-size: 24px;
  }
}
/* fourth section */
section.fourth {
  padding: 80px 20px;
  background-color: #f9f9f9;
}

section.fourth .title {
  color: var(--text-color);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
  text-align: center;
}

section.fourth h2 {
  font-size: 36px;
  color: black;
  text-align: center;
  margin-bottom: 50px;
}

section.fourth .cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

section.fourth .card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

section.fourth .card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

section.fourth .img {
  height: 350px;
  overflow: hidden;
}

section.fourth .img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

section.fourth .card:hover .img img {
  transform: scale(1.05);
}

section.fourth .identity {
  padding: 25px;
  text-align: center;
}

section.fourth .name {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 5px;
}

section.fourth .job {
  color: var(--text-color);
  font-size: 14px;
}

section.fourth .links {
  justify-content: center;
  padding: 15px;
  background-color: var(--secondary-color);
  transform: translateY(100%);
  opacity: 0;
  transition: all 0.3s ease;
}

section.fourth .card:hover .links {
  transform: translateY(0);
  opacity: 1;
}

section.fourth .links img {
  width: 20px;
  height: 20px;
  margin: 0 10px;
  filter: brightness(0) saturate(100%) invert(9%) sepia(22%) saturate(2590%) hue-rotate(209deg) brightness(94%) contrast(96%);
  transition: all 0.3s ease;
}

section.fourth .links img:hover {
  transform: scale(1.2);
  filter: brightness(0) saturate(100%) invert(9%) sepia(22%) saturate(3590%) hue-rotate(209deg) brightness(94%) contrast(96%);
}

@media (max-width: 768px) {
  section.fourth h2 {
    font-size: 28px;
    margin-bottom: 30px;
  }
  
  section.fourth .cards {
    grid-template-columns: 1fr;
    max-width: 400px;
  }
  
  section.fourth .img {
    height: 300px;
  }
  
  section.fourth .links {
    transform: translateY(0);
    opacity: 1;
  }
}
/* fifth section */
section.fifth {
  background: linear-gradient(
    90deg,
    var(--main-color) 50%,
    rgb(244 244 244) 50% 100%
  );
  padding-top: 100px;
  padding-bottom: 100px;
  margin: 0 20px 20px 0;
}

section.fifth .plane {
  width: 750px;
}

section.fifth .plane img {
  width: 100%;
}

section.fifth .show img {
  width: 20px;
}

section.fifth .show {
  align-items: center;
}

section.fifth .features {
  flex-wrap: wrap;
  flex-direction: column;
  margin-top: 50px;
  height: 180px;
  width: 420px;
  justify-content: space-between;
  align-content: space-between;
}

section.fifth .features .img {
  padding: 12px 14px;
  margin-right: 10px;
  background: linear-gradient(90deg, rgb(255 200 64), rgb(255 223 158));
  border-radius: 50%;
}

section.fifth .details {
  padding: 40px;
  width: 410px;
}

section.fifth .details p {
  font-size: small;
  color: rgba(0, 0, 0, 0.49);
  font-weight: 500;
}

@media (max-width: 767px) {
  section.fifth {
    flex-direction: column;
    padding: 0;
  }
  section.fifth .plane {
    width: 100%;
  }
  section.fifth .features {
    width: 100%;
  }
  section.fifth .details {
    width: 100%;
  }
}

/* footer */
footer {
  background-color: var(--main-color);
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  padding-bottom: 10px;
}

footer .copy_rights {
  font-size: small;
  font-weight: 300;
}

footer ul {
  list-style: none;
  color: rgba(255, 255, 255, 0.451);
  font-size: small;
}

footer li {
  margin-right: 10px;
}

footer li:hover {
  cursor: pointer;
  color: white;
}
footer {
  background-color: var(--main-color);
  padding: 30px 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

footer .copy_rights {
  color: white;
  font-size: 14px;
  margin-bottom: 15px;
}

footer .links ul {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 20px;
}

footer .links li div {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  cursor: pointer;
  transition: color 0.3s ease;
}

footer .links li div:hover {
  color: white;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  footer {
    flex-direction: column;
    text-align: center;
    padding: 30px 20px;
  }

  footer .copy_rights {
    margin-bottom: 20px;
  }

  footer .links ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
  }
}

/* Mobile view */

@media (max-width: 767px) {
  header,
  section.first .container,
  section.first nav,
  section.second,
  section.fourth,
  footer {
    padding-left: 50px;
    padding-right: 50px;
  }

  section.first .container {
    padding-top: 100px;
    padding-bottom: 100px;
    width: 100%;
  }

  header .logo {
    margin-bottom: 3px;
  }

  section.first nav ul {
    display: none;
  }

  header .hamburger-menu {
    display: flex;
  }

  /* Second section */
  section.second {
    flex-wrap: wrap;
  }

  section.second .services {
    height: auto;
  }

  section.second .service {
    flex-basis: 100%;
    margin-bottom: 10px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
  }

  /* fifth section */
  section.fifth {
    background: white;
    padding: 50px 20px; /* Adjust padding for mobile */
    margin: 0; /* Remove the right margin */
  }

  section.fifth .container {
    flex-direction: column; /* Stack items vertically */
  }

  section.fifth .plane {
    width: 100%; /* Full width for the plane image */
    margin-bottom: 30px; /* Add space between image and content */
  }

  section.fifth .details {
    width: 100%; /* Full width for details */
    padding: 0; /* Remove the fixed padding */
    text-align: center; /* Center align text */
  }

  section.fifth .features {
    width: 100%; /* Full width for features */
    height: auto; /* Auto height to accommodate all items */
    flex-direction: row; /* Keep items in row */
    flex-wrap: wrap; /* Allow wrapping */
    justify-content: center; /* Center items */
    margin-top: 30px; /* Adjust margin */
  }

  section.fifth .show {
    width: 45%; /* Make each feature take about half width */
    margin-bottom: 15px; /* Add space between rows */
    justify-content: flex-start; /* Align items to start */
  }

  section.fifth h2 {
    font-size: 1.5rem; /* Reduce heading size for mobile */
  }
}

/* Meduim Screens */

@media (max-width: 991px) {
  header,
  section.first .container,
  section.first nav,
  section.second,
  section.fourth,
  footer {
    padding-left: 50px;
    padding-right: 50px;
  }

  section.first .container {
    padding-top: 100px;
    padding-bottom: 100px;
    width: 100%;
  }
}
