body {
  background: #f8fafd;
  font-family: 'Segoe UI', 'Roboto', Arial, sans-serif;
}

/* Navbar Styling */
.navbar {
  background-color: #fff !important;
  box-shadow: 0 2px 8px rgba(3,41,64,0.06); /* Subtle shadow for separation */
}
.navbar-brand {
  color: #285978 !important;       /* Maritime Blue */
  font-size: 2.2rem !important;    /* Large font size */
  font-weight: 800 !important;     /* Bold */
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: color 0.2s;
}
@media (max-width: 768px) {
  .navbar-brand {
    font-size: 1.55rem !important;
  }
}

.nav-link, .navbar-toggler {
  color: #032940 !important;       /* Ensure links are visible on white */
}
.navbar-logo {
  height: 120px;
  width: auto;
  margin-left: 16px;
}
@media (max-width: 768px) {
  .navbar-logo {
    height: 60px;
    margin-left: 8px;
  }
}

/* ...the rest of your CSS remains as you provided... */
.hero {
  position: relative;
  min-height: 70vh;
  background:
    linear-gradient(rgba(3,41,64,0.6), rgba(0,119,190,0.4)),
    url('images/ship-image.jpg') center center no-repeat;
  /* Start background-size at 100% cover */
  background-size: 100% 100%;
  
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;

  animation: heroZoom 15s ease-in-out infinite alternate;
}

/* Animate background-size from 100% to 120% */
@keyframes heroZoom {
  0% {
    background-size: 100% 100%;
  }
  100% {
    background-size: 120% 120%;
  }
}


@keyframes hero-fade-in {
  from { opacity: 0; transform: scale(1.04);}
  to { opacity: 1; transform: scale(1);}
}



.hero-content { 
  position: relative; 
  z-index: 2; 
  padding: 40px 0 30px 0;
}
.hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(3,41,64,0.3);
  z-index: 1;
}

.section-title {
  color: #54dbdb;
  margin-top: 40px;
  margin-bottom: 20px;
  font-weight: 600;
}

 .about-card {
  background: #fff;
  border-radius: 12px;
  border: none;
  box-shadow: 0 2px 12px rgba(3,41,64,0.07);
  padding: 28px 20px 18px 20px;
  transition: box-shadow 0.18s cubic-bezier(.23,1.02,.36,.98);
  position: relative;
}
.about-card:hover {
  box-shadow: 0 6px 20px rgba(0,119,190,0.15);
}
.about-card .card-title {
  color: #032940;
  font-weight: 700;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 0.7px;
}
.about-card .card-text {
  color: #333;
  font-size: 1rem;
  line-height: 1.5;
}
@media (max-width: 768px) {
  .about-card {
    margin-bottom: 24px;
    padding: 22px 14px;
  }
}



  .service-card {
    min-height: 240px;
    border-radius: 10px;
    border: none;
    background: #fff;
    box-shadow: 0 2px 8px rgba(3,41,64,0.07);
    transition: box-shadow 0.16s;
  }
  .service-card:hover {
    box-shadow: 0 6px 24px rgba(0,119,190,0.13);
  }
  
  /* Override blue Bootstrap text color for card headings inside .service-card */
.service-card .card-title.text-primary {
  color: #fff !important;
}
  .service-card {
  position: relative;
  color: #fff;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(3,41,64,0.5); /* overlay for readability */
}

/* Unique backgrounds for each card */
.port-consultancy-bg {
  background: url('images/port-consultancy.jpg') center center/cover no-repeat;
}
.container-logistics-bg {
  background: url('images/container-logistics.jpg') center center/cover no-repeat;
}
.port-captaincy-bg {
  background: url('images/port-captaincy.jpeg') center center/cover no-repeat;
}
.surveys-bg {
  background: url('images/surveys.jpeg') center center/cover no-repeat;
}
.compass-bg {
  background: url('images/compass.jpg') center center/cover no-repeat;
}

/* Place card content above the overlay */
.service-card .card-body {
  position: relative;
  z-index: 2;
}

  .gallery-img {
      width: 100%;
      height: 500px;
      object-fit: cover;
      object-position: center;
      border-radius: 8px;
  }
  @media (max-width: 768px) {
    .gallery-img { max-height: 160px;}
  }


.client-band {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 32px;
  /* Remove overflow-x: auto */
  /* width: 100vw or suitable value */
  overflow: hidden; /* ensures images stay inside the container */
  position: relative;
  /* Optional height if needed */
  padding: 10px 0;
}

.client-band__wrapper {
  display: flex;
  gap: 32px;
  animation: scroll-logos 30s linear infinite;
}

@keyframes scroll-logos {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Images styling remains same */



.gallery-img-client {
  width: 200 px;                 /* Or your preferred fixed width for consistency */
  height: 80px;                /* Adjust height to match your band */
  object-fit: cover;          /* contain Keeps the whole logo visible and scaled */
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}


  .contact-table td {
    vertical-align: top;
    padding: 4px 8px;
  }
  footer {
    font-size: 0.97rem;
    letter-spacing: 0.3px;
  }
  
  .contact-section {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 48px;
  margin: 48px 0 40px 0;
}

.contact-details {
  flex: 1 1 320px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(3,41,64,0.07);
  padding: 32px 28px;
  max-width: 410px;
  min-width: 250px;
}

.contact-details h2 {
  color: #0d1b23;
  margin-bottom: 24px;
  font-size: 1.28rem;
  font-weight: 700;
  letter-spacing: 0.8px;
}

.contact-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
}
.contact-2col-section {
  display: flex;
  flex-direction: row;
  gap: 44px;
  justify-content: center;
  align-items: flex-start;
  width: 100%;
  margin: 48px 0 40px 0;
}

.contact-2col-details {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(3,41,64,0.07);
  padding: 32px 28px;
  max-width: 370px;
  min-width: 220px;
  flex: 1 1 320px;
}

.contact-2col-details h2 {
  color: #010913;
  margin-bottom: 20px;
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.contact-table {
  width: 100%;
  border-collapse: collapse;
}

.contact-table td {
  padding: 6px 8px 6px 0;
  color: #444;
  vertical-align: top;
  font-size: 1rem;
}

.contact-2col-form {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 18px rgba(3,41,64,0.09);
  padding: 28px 32px;
  max-width: 420px;
  min-width: 240px;
  flex: 2 1 420px;
  display: flex;
  align-items: flex-start;
}

.contact-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* Form field styling already provided in previous answer */

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #e2e6ea;
  border-radius: 6px;
  background: #fafbfc;
  font-size: 1rem;
  outline: none;
  transition: border 0.2s;
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form textarea:focus {
  border: 1.5px solid #031621;
  background: #fff;
}

.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

.contact-btn {
  background: #03162b;
  color: #fff;
  font-size: 1.18rem;
  font-weight: 600;
  border: none;
  border-radius: 6px;
}


@media (max-width: 768px) {
  .contact-2col-section {
    flex-direction: column;
    gap: 22px;   /* Reduce the gap for mobile */
    align-items: stretch; /* Makes cards use full width */
  }
  .contact-2col-details {
    max-width: 100%;
    min-width: 0;
    padding: 18px 10px;
  }
}
