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

body {
  font-family: 'Poppins', sans-serif;
  color: #1e1e1e;
  background-color: #f9f9f9;
  scroll-behavior: smooth;
}

/* Navigation Bar */
.top-nav {
  position: fixed;
  top: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: transparent;
  padding: 15px 40px;
  z-index: 1000;
  transition: background 0.3s ease;
}

.top-nav.scrolled {
  background-color: #003366;
}

.top-nav .brand a {
  color: white;
  font-size: 1.5em;
  font-weight: bold;
  text-decoration: none;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 25px;
}

nav ul li a {
  color: white;
  text-decoration: none;
  font-weight: 500;
}

.quote-btn {
  background-color: #f1c40f;
  padding: 8px 15px;
  border-radius: 6px;
  color: #003366;
}

.hamburger {
  display: none;
  font-size: 1.8em;
  color: white;
  cursor: pointer;
}

/* Hero Section */
.hero {
  background: url('images/cargoship.jpg') no-repeat center center/cover;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.hero-content h1 {
  font-size: 2.8em;
  color: white;
}

.hero-content p {
  color: #f0f0f0;
  margin: 15px 0;
  font-size: 1.3em;
}

.hero-content button {
  background-color: #f1c40f;
  border: none;
  color: #003366;
  padding: 10px 25px;
  font-size: 1.1em;
  border-radius: 6px;
  cursor: pointer;
}

/* Section Base */
.section {
  padding: 80px 10%;
  background-color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  border-bottom: 1px solid #e5e5e5;
}

.section-content {
  display: flex;
  align-items: center;
  gap: 50px;
  flex-wrap: wrap;
  max-width: 1200px;
}

.section-image {
  width: 400px;
  height: 280px;
  object-fit: cover;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.large-image {
  width: 500px;
  height: 350px;
}

.section-text {
  flex: 1;
}

.section-text h2 {
  color: #003366;
  margin-bottom: 15px;
}

.section-text p {
  line-height: 1.6;
  margin-bottom: 15px;
}

/* Services Grid */
.services-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 20px 0;
}

.service-box {
  width: 160px;
  height: 120px;
  background: #ffffff;
  border: 2px solid #004aad;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  color: #004aad;
  border-radius: 8px;
  transition: 0.3s;
  text-align: center;
}

.service-box:hover {
  background-color: #cce0ff;
}

/* Products Layout */
.products-layout {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.product-images {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.small-product-image {
  width: 220px;
  height: 150px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 5px 12px rgba(0,0,0,0.2);
}

/* Product Boxes */
.products-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin: 20px 0;
}

.product-box {
  width: 160px;
  height: 120px;
  background: #ffffff;
  border: 2px solid #004aad;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  color: #004aad;
  border-radius: 8px;
  transition: 0.3s;
  text-align: center;
}

.product-box:hover {
  background-color: #cce0ff;
}

/* Footer */
.footer {
  background-color: #003366;
  color: white;
  text-align: center;
  padding: 25px 10px;
  font-size: 0.95em;
}

.footer a {
  color: #f1c40f;
  text-decoration: none;
}

/* Brand Logo */
.brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-logo {
  height: 40px; /* restored original size */
  width: auto;
  border-radius: 6px;
}

/* Responsive */
@media (max-width: 768px) {
  .section-content {
    flex-direction: column;
    align-items: center;
  }

  /* Services image centered */
  #services .section-content {
    flex-direction: column-reverse;
    align-items: center;
  }

  /* Products text first, then images vertically */
  #products .section-content {
    flex-direction: column;
    align-items: center;
  }

  /* Service boxes in 2 columns */
  .services-grid, .products-grid {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }

  .services-grid .service-box, .products-grid .product-box {
    width: calc(50% - 10px);
    margin-bottom: 10px;
  }

  /* Product images stacked vertically below text */
  .product-images {
    flex-direction: column !important;
    gap: 20px;
    margin-top: 20px;
    width: 100%;
    align-items: center;
  }

  .product-images img {
    width: 80%;
    max-width: 300px;
    height: auto;
  }

  /* Hamburger menu */
  nav ul {
    display: none;
    flex-direction: column;
    background-color: #003366;
    position: absolute;
    top: 60px;
    right: 0;
    width: 200px;
    padding: 10px 0;
    gap: 10px;
  }

  nav ul li {
    text-align: center;
  }

  nav ul.show {
    display: flex !important;
  }

  .hamburger {
    display: block;
  }
}
