@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

:root {
  --white: #fff;
  --black: #07111f;
  --primary: #06145f;
  --primary-dark: #030a2e;
  --accent: #d7192f;
  --accent-dark: #a90f20;
  --teal: #0f8b8d;
  --mist: #f4f7fb;
  --ink: #111827;
  --muted: #53606f;
  --line: rgba(15, 23, 42, 0.1);
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--mist);
  color: var(--ink);
}

html,
body {
  overflow-x: hidden;
  width: 100%;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 5;
  width: 100%;
  display: flex;
  justify-content: center;
  transition:
    background-color 0.5s ease,
    color 0.3s ease;
}

.navbar.scrolled {
  background: rgba(5, 7, 138, 0.92);
  backdrop-filter: blur(20px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

/* HOME STATE */

.navbar:not(.scrolled) {
  background: transparent !important;
  box-shadow: none;
  backdrop-filter: none;
}

.navbar {
  width: 100%;
  max-width: 1300px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 30px;
  border-radius: 0 0 16px 16px;
  background: transparent;
  transition: all 0.4s ease;
}

.navbar input#menu-toggler {
  display: none;
}

.navbar #hamburger-btn {
  cursor: pointer;
  display: none;
}

/* NAV LINKS */

.navbar .all-links {
  display: flex;
  align-items: center;
  gap: 34px;
}

.navbar .all-links li {
  position: relative;
  list-style: none;
}

/* =========================
   NAV LINKS
========================= */

.navbar .nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.2;
  transition:
    color 0.3s ease,
    background 0.3s ease;
}

/* HOVER BACKGROUND */

.navbar:not(.scrolled) .nav-link:hover {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

.navbar.scrolled .nav-link:hover {
  background: rgba(255, 255, 255, 0.18);
}

/* ACTIVE TEXT */

.nav-link.active {
  color: var(--accent);
}

/* UNDERLINE */

.nav-link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 70%;
  height: 2px;
  background: var(--accent);
  border-radius: 50px;
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
  opacity: 0;
  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
}

/* SHOW UNDERLINE */

.nav-link:hover::after,
.nav-link.active::after {
  opacity: 1;
  transform: translateX(-50%) scaleX(1);
}

.navbar .nav-logo .logo-image {
  padding-top: 0;
  height: 54px;
}

header a,
footer a {
  padding: 0 5px;
  color: var(--white);
  text-decoration: none;
  display: inline-block;
}

.nav-link:hover,
.nav-link:focus {
  color: var(--accent);
}

/* =========================
   DROPDOWN
========================= */

.dropdown {
  position: relative;
  display: flex;
  justify-content: center;
}

/* DROPDOWN MENU */

.dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;

  /* PERFECT CENTER */
  transform: translateX(-50%) translateY(10px);
  min-width: max-content;
  white-space: nowrap;
  padding: 10px;
  list-style: none;
  border-radius: 18px;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    transform 0.3s ease,
    visibility 0.3s ease;
  z-index: 9999;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

/* SCROLLED NAVBAR */

.navbar.scrolled .dropdown-menu {
  background: rgba(5, 7, 138, 0.95);
  border: none;
}

/* SHOW MENU */

.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* DROPDOWN LINKS */

.dropdown-menu li a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  margin: 0;
  width: 100%;
  color: white;
  border-radius: 12px;
  text-align: center;
  text-decoration: none;
  transition:
    background 0.3s ease,
    color 0.3s ease;
}

/* HERO SECTION */

.homepage {
  min-height: 100vh;
  min-height: 100svh;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(110deg, rgba(3, 10, 46, 0.95), rgba(6, 20, 95, 0.78) 48%, rgba(7, 17, 31, 0.5)),
    url("../images/Vessels/marine.jpg");
  background-size: cover;
  background-position: center;
}

.homepage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.14) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: linear-gradient(90deg, #000 0%, transparent 74%);
  mask-image: linear-gradient(90deg, #000 0%, transparent 74%);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(3, 10, 46, 0.12), rgba(3, 10, 46, 0.82)),
    linear-gradient(115deg, rgba(255, 255, 255, 0.12), transparent 34%);
  z-index: 1;
}

.hero-horizon {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  height: 30%;
  pointer-events: none;
  background: linear-gradient(to top, rgba(3, 10, 46, 0.96), transparent);
}

.homepage .content {
  position: relative;
  z-index: 2;
  width: min(calc(100% - 48px), 1300px);
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 104px 0 54px;
}

.text {
  position: relative;
  max-width: 1180px;
  text-align: center;
  animation: fadeUp 0.9s ease both;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  margin-bottom: 18px;
  padding: 0 12px;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  backdrop-filter: blur(12px);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 18px;
  width: 100%;
}

.hero-title h1 {
  max-width: 100%;
  margin-right: auto;
  margin-left: auto;
  font-size: clamp(3.1rem, 4.6vw, 4.1rem);
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 12px;
  color: white;
  white-space: nowrap;
}

.hero-subtitle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0;
  color: #ff5263;
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: 0;
  text-transform: uppercase;
}

.ship-icon {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  color: var(--white);
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 12px 24px rgba(215, 25, 47, 0.28);
}

.ship-icon::before {
  content: "\f21a";
  font-family: "Font Awesome 6 Free";
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
}

.hero-copy {
  max-width: 720px;
  margin-right: auto;
  margin-left: auto;
  font-size: 1.05rem;
  line-height: 1.75;
  text-align: center;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 28px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.hero-track-row {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}

.btn-track {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 300px);
  min-height: 50px;
  padding: 0 24px;
  color: white;
  background: rgba(5, 7, 138, 0.95);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  box-shadow: 0 16px 30px rgba(59, 131, 189, 0.28);
  transition:
    transform 0.3s ease,
    background 0.3s ease,
    box-shadow 0.3s ease;
}

.btn-track:hover {
  transform: translateY(-3px);
  background: rgba(4, 6, 110, 0.95);
  box-shadow: 0 20px 34px rgba(59, 131, 189, 0.34);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 24px;
  background: var(--accent);
  border-radius: 8px;
  color: white;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 16px 30px rgba(215, 25, 47, 0.28);
  transition:
    transform 0.3s ease,
    background 0.3s ease,
    box-shadow 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-3px);
  background: var(--accent-dark);
  box-shadow: 0 20px 34px rgba(215, 25, 47, 0.34);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 24px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 8px;
  text-decoration: none;
  color: white;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  font-weight: 700;
  transition:
    transform 0.3s ease,
    background 0.3s ease,
    color 0.3s ease;
}

.btn-secondary:hover {
  transform: translateY(-3px);
  background: white;
  color: var(--black);
}

.btn-track:focus-visible,
.btn-primary:focus-visible,
.btn-secondary:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.72);
  outline-offset: 4px;
}

.hero-route-strip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 100%;
  min-height: 44px;
  margin-top: 24px;
  padding: 10px 14px;
  color: rgba(255, 255, 255, 0.86);
  background: rgba(3, 10, 46, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  backdrop-filter: blur(12px);
  font-size: 14px;
  font-weight: 700;
}

.hero-route-strip i {
  color: #ff5263;
  font-size: 6px;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(60px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================
   LARGE MONITORS
========================= */

@media (min-width: 1600px) {
  .homepage .content {
    width: min(calc(100% - 72px), 1500px);
  }
}

@media (max-width: 1000px) {
  .homepage .content {
    width: min(calc(100% - 36px), 900px);
    justify-content: center;
    text-align: center;
    padding: 112px 0 54px;
  }

  .text {
    max-width: 760px;
    padding-left: 0;
    border-left: 0;
  }

  .hero-kicker {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-title {
    align-items: center;
    text-align: center;
  }

  .hero-title h1 {
    font-size: 3rem;
    white-space: normal;
  }

  .hero-subtitle {
    justify-content: center;
    font-size: 1.2rem;
  }

  .hero-copy {
    margin-right: auto;
    margin-left: auto;
    text-align: center;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-route-strip {
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .homepage .content {
    width: calc(100% - 28px);
    padding: 100px 0 36px;
  }

  .hero-kicker {
    min-height: 32px;
    font-size: 12px;
    text-align: center;
  }

  .hero-title h1 {
    font-size: 2.25rem;
  }

  .hero-subtitle {
    font-size: 1.05rem;
  }

  .ship-icon {
    width: 32px;
    height: 32px;
  }

  .ship-icon::before {
    font-size: 14px;
  }

  .hero-copy {
    font-size: 1rem;
  }

  .hero-buttons a {
    flex: 1 1 165px;
    justify-content: center;
    padding: 0 14px;
    font-size: 14px;
    white-space: nowrap;
  }

  .hero-route-strip {
    width: 100%;
    padding: 12px;
  }

  .hero-route-strip i {
    display: none;
  }
}

section:not(.homepage) {
  padding: 90px 8%;
  background: #fff;
  position: relative;
}

section:not(.homepage) h2 {
  text-align: center;
  font-size: 42px;
  margin-bottom: 15px;
  color: #1877f2;
}

section p {
  color: #666;
  line-height: 1.8;
}

.section-header {
  max-width: 760px;
  margin: 0 auto 50px;
  text-align: center;
}

.services .section-header h2,
.contact .section-header h2 {
  max-width: 720px;
  margin: 0 auto 16px;
  color: var(--white);
  font-size: clamp(34px, 4vw, 50px);
  line-height: 1.12;
}

.services .section-header p,
.contact .section-header p {
  color: rgba(255, 255, 255, 0.76);
}

.section-header p {
  max-width: 820px;
  margin: 0 auto;
  color: #53606f;
  font-size: 17px;
}

section.about {
  max-width: none;
  overflow: hidden;
  background: #fff;
}

.about-header {
  max-width: 860px;
  margin: 0 auto 55px;
  text-align: center;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  margin-bottom: 12px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.about .about-header h2 {
  max-width: 820px;
  margin: 0 auto 18px;
  color: var(--primary);
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.12;
}

.about-header p {
  max-width: 860px;
  margin: 0 auto;
  color: #53606f;
  font-size: 18px;
}

.about-story {
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(0, 1.05fr);
  align-items: center;
  gap: clamp(35px, 6vw, 80px);
  max-width: 1200px;
  margin: 0 auto;
}

.about-image {
  position: relative;
  min-height: 520px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(5, 7, 138, 0.16);
}

.about-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5, 7, 138, 0.55), transparent 45%);
}

.about-image img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  display: block;
  object-fit: cover;
}

.about-badge {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  color: var(--white);
  background: rgba(5, 7, 138, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  backdrop-filter: blur(12px);
}

.about-badge strong {
  color: var(--accent);
  font-size: 38px;
  line-height: 1;
}

.about-badge span {
  font-size: 14px;
  line-height: 1.5;
}

.about-content {
  padding: 8px 0;
}

.about-content h3,
.mission-vision h3 {
  margin-bottom: 18px;
  color: #111827;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.2;
}

.about-content p,
.mission-vision p {
  color: #53606f;
  font-size: 16px;
  line-height: 1.85;
}

.about-content p + p {
  margin-top: 18px;
}

.mission-vision {
  display: grid;
  gap: 28px;
  max-width: 1100px;
  margin: 70px auto 0;
  padding: clamp(28px, 5vw, 48px);
  color: #111827;
  background: var(--white);
  border: 1px solid rgba(5, 7, 138, 0.1);
  border-radius: 8px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.mission-vision-intro {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 24px;
}

.mission-icon {
  width: clamp(78px, 9vw, 120px);
  height: clamp(78px, 9vw, 120px);
  display: grid;
  place-items: center;
  background: rgba(24, 119, 242, 0.1);
  border-radius: 8px;
}

.mission-icon img {
  width: 64%;
  height: 64%;
  object-fit: contain;
}

.mission-vision-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.mission-vision-card {
  min-height: 100%;
  padding: 26px;
  background: #f8fafc;
  border: 1px solid rgba(5, 7, 138, 0.08);
  border-radius: 8px;
}

.mission-vision-card .section-eyebrow {
  margin-bottom: 10px;
}

section.branches {
  overflow: hidden;
  background: #fff;
}

.branches .section-header h2 {
  max-width: 720px;
  margin: 0 auto 16px;
  color: var(--primary);
  font-size: clamp(34px, 4vw, 50px);
  line-height: 1.12;
}

.branch-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 22px;
  max-width: 1220px;
  margin: 0 auto;
}

.branch-card {
  grid-column: span 2;
  overflow: hidden;
  background: #f8fafc;
  border: 1px solid rgba(5, 7, 138, 0.08);
  border-radius: 8px;
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.08);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

.branch-card:nth-child(-n + 2) {
  grid-column: span 3;
}

.branch-card:hover {
  transform: translateY(-6px);
  border-color: rgba(215, 25, 47, 0.2);
  box-shadow: 0 24px 54px rgba(15, 23, 42, 0.12);
}

.branch-image {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: #e5e7eb;
}

.branch-card:nth-child(-n + 2) .branch-image {
  aspect-ratio: 16/9;
}

.branch-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(3, 10, 46, 0.34), transparent 55%);
  pointer-events: none;
}

.branch-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.branch-card:hover .branch-image img {
  transform: scale(1.04);
}

.branch-content {
  padding: 24px;
}

.branch-content > span {
  display: inline-flex;
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.branch-content h3 {
  margin-bottom: 18px;
  color: #111827;
  font-size: 22px;
  line-height: 1.25;
}

.branch-content ul {
  display: grid;
  gap: 13px;
  list-style: none;
}

.branch-content li {
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: start;
  gap: 11px;
}

.branch-content i {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: var(--primary);
  border-radius: 8px;
  font-size: 14px;
}

.branch-content p {
  color: #53606f;
  font-size: 14px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

section.services {
  overflow: hidden;
  background-color: #06145f;
  background-image:
    linear-gradient(135deg, rgba(6, 20, 95, 0.96), rgba(3, 10, 46, 0.94)),
    url("../images/Vessels/ocean.jpg");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 22px;
  max-width: 1200px;
  margin: 0 auto;
}

.service-card {
  grid-column: span 2;
  min-height: 330px;
  padding: 30px;
  list-style: none;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.16);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

.service-card:nth-child(4),
.service-card:nth-child(5) {
  grid-column: span 3;
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 255, 255, 0.34);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.22);
}

.service-icon {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  margin-bottom: 24px;
  background: rgba(24, 119, 242, 0.1);
  border-radius: 8px;
}

.service-icon img {
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.service-card span,
.job-card span {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.service-card h3,
.job-card h3 {
  margin-bottom: 12px;
  color: #111827;
  font-size: 22px;
  line-height: 1.25;
}

.service-card p,
.job-card p {
  color: #53606f;
  font-size: 15px;
  line-height: 1.75;
}

section.careers {
  background: #fff;
  padding: 90px 8% 100px;
}

.careers-content {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
  align-items: start;
  gap: clamp(34px, 6vw, 70px);
  max-width: 1200px;
  margin: 0 auto;
}

.job-grid-wrapper {
  position: relative;
  width: 100%;
  max-width: 100%;
}

.careers .careers-copy h2 {
  max-width: 520px;
  margin-bottom: 18px;
  color: var(--primary);
  font-size: clamp(36px, 4vw, 54px);
  line-height: 1.1;
  text-align: left;
}

.careers-copy p {
  max-width: 520px;
  margin-bottom: 28px;
  color: #53606f;
  font-size: 17px;
}

.career-cta {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 22px;
  color: var(--white);
  background: var(--accent);
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  transition:
    transform 0.3s ease,
    background 0.3s ease;
}

.career-cta:hover {
  transform: translateY(-3px);
  background: #c90000;
}

.job-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 30px;
}

.job-card {
  display: flex;
  flex-direction: column;
  min-height: 240px;
  max-height: 300px;
  padding: 26px;
  background: #f8fafc;
  border: 1px solid rgba(5, 7, 138, 0.08);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
  transition: all 0.3s ease;
  overflow: hidden;
  cursor: pointer;
}

.job-card:hover,
.job-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.12);
  border-color: rgba(215, 25, 47, 0.15);
}

.job-card:focus-visible {
  outline: 3px solid rgba(215, 25, 47, 0.28);
  outline-offset: 3px;
}

.job-card i {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  color: var(--white);
  background: var(--primary);
  border-radius: 8px;
  font-size: 20px;
  flex-shrink: 0;
}

.job-card h3 {
  margin-bottom: 12px;
  color: #111827;
  font-size: 18px;
  line-height: 1.3;
  flex-shrink: 0;
}

.job-card p {
  color: #53606f;
  font-size: 14px;
  line-height: 1.6;
  flex: 1;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  text-overflow: ellipsis;
}

.job-card .job-card-action {
  align-items: center;
  gap: 8px;
  margin: 18px 0 0;
  color: var(--primary);
  font-size: 12px;
  line-height: 1;
}

.job-card .job-card-action i {
  width: auto;
  height: auto;
  margin: 0;
  color: inherit;
  background: transparent;
  border-radius: 0;
  font-size: 12px;
}

.job-card.hidden {
  display: none;
}

.job-card-placeholder {
  visibility: hidden;
  pointer-events: none;
}

html.sheet-open {
  overflow: hidden;
}

body.sheet-open {
  overflow: hidden;
  width: 100%;
}

.job-sheet-overlay {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(3, 10, 46, 0.58);
  backdrop-filter: blur(5px);
  overscroll-behavior: contain;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.25s ease,
    visibility 0.25s ease;
}

.job-sheet-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.job-sheet {
  width: min(760px, 100%);
  max-height: min(760px, calc(100vh - 48px));
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid rgba(5, 7, 138, 0.12);
  border-radius: 8px;
  box-shadow: 0 28px 70px rgba(3, 10, 46, 0.28);
  transform: translateY(18px);
  transition: transform 0.25s ease;
}

.job-sheet-overlay.is-open .job-sheet {
  transform: translateY(0);
}

.job-sheet-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: clamp(22px, 4vw, 34px);
  border-bottom: 1px solid #e5e7eb;
}

.job-sheet-title-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: center;
}

.job-sheet-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: var(--primary);
  border-radius: 8px;
  font-size: 22px;
}

.job-sheet h2 {
  margin-top: 4px;
  color: var(--primary);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.1;
}

.job-sheet-close {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  color: var(--primary);
  background: #f1f5f9;
  border: 1px solid rgba(6, 20, 95, 0.12);
  border-radius: 8px;
  cursor: pointer;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.job-sheet-close:hover,
.job-sheet-close:focus-visible {
  color: var(--white);
  background: var(--accent);
  transform: translateY(-2px);
}

.job-sheet-body {
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: clamp(22px, 4vw, 34px);
}

.job-sheet-summary {
  margin-bottom: 24px;
  color: #53606f;
  font-size: 16px;
  line-height: 1.75;
}

.job-sheet-section {
  margin-bottom: 26px;
}

.job-sheet-body h3 {
  margin-bottom: 14px;
  color: #111827;
  font-size: 18px;
}

.job-sheet-section p {
  color: #374151;
  font-size: 15px;
  line-height: 1.7;
}

.job-sheet-body ul {
  display: grid;
  gap: 12px;
  margin-bottom: 0;
  padding: 0;
  list-style: none;
}

.job-sheet-body li {
  position: relative;
  padding-left: 28px;
  color: #374151;
  font-size: 15px;
  line-height: 1.65;
}

.job-sheet-body li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 10px;
  height: 10px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(215, 25, 47, 0.12);
}

.job-sheet-apply {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 20px;
  color: var(--white);
  background: var(--accent);
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  transition:
    transform 0.3s ease,
    background 0.3s ease;
}

.job-sheet-apply:hover,
.job-sheet-apply:focus-visible {
  transform: translateY(-3px);
  background: #c90000;
}

.job-sheet-application {
  display: grid;
  gap: 14px;
  padding: 20px;
  background: #f8fafc;
  border: 1px solid rgba(5, 7, 138, 0.08);
  border-radius: 8px;
}

.job-sheet-application h3,
.job-sheet-application p {
  margin-bottom: 0;
}

.job-sheet-application .job-sheet-apply {
  width: fit-content;
}

/* Pagination */
.job-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 30px;
}

.job-page-btn {
  min-width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  background: rgba(6, 20, 95, 0.08);
  border: 1px solid rgba(6, 20, 95, 0.15);
  border-radius: 6px;
  color: var(--primary);
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.job-page-btn:hover {
  background: rgba(6, 20, 95, 0.12);
  border-color: rgba(6, 20, 95, 0.25);
  transform: translateY(-2px);
}

.job-page-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(6, 20, 95, 0.25);
}

.job-page-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

section.contact {
  overflow: hidden;
  padding-top: clamp(56px, 6vw, 74px);
  padding-bottom: clamp(56px, 6vw, 74px);
  background-color: #06145f;
  background-image:
    linear-gradient(135deg, rgba(6, 20, 95, 0.96), rgba(3, 10, 46, 0.94)),
    url("../images/Vessels/harbor.jpg");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(280px, 1040px);
  justify-content: center;
  gap: 24px;
  max-width: 1180px;
  margin: 0 auto;
}

.contact-panel {
  background: var(--white);
  border: 1px solid rgba(5, 7, 138, 0.1);
  border-radius: 8px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
  padding: clamp(20px, 3vw, 30px);
}

.contact-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid #e5e7eb;
}

.contact-item:first-child {
  padding-top: 0;
}

.contact-item i {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: var(--primary);
  border-radius: 8px;
}

.contact-item span {
  color: #111827;
  font-weight: 700;
}

.contact-item p {
  margin-top: 3px;
  color: #53606f;
  font-size: 15px;
}

.contact-branch-list,
.contact-hours-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.contact-branch-list p,
.contact-hours-list p {
  min-height: 44px;
  margin: 0;
  padding: 9px 10px;
  color: #53606f;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.35;
}

.contact-branch-list strong,
.contact-hours-list strong {
  display: block;
  margin-bottom: 2px;
  color: #111827;
  font-size: 12px;
}

.contact-branch-list p:last-child,
.contact-hours-list p:last-child {
  grid-column: auto;
}

@media screen and (max-width: 900px) {
  .contact-branch-list,
  .contact-hours-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

footer {
  width: 100%;
  display: flex;
  justify-content: center;
  background: #05078a;
  padding: 12px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-content {
  padding: 0 20px;
  max-width: 1200px;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

footer span {
  color: var(--white);
  font-size: 15px;
  font-weight: 400;
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  min-width: 0;
  white-space: nowrap;
}

.footer-logo-wrap {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

footer a {
  padding: 0;
  display: flex;
  align-items: center;
}

.footer-logo-image {
  height: clamp(45px, 5vw, 60px);
  width: auto;
  object-fit: contain;
}

/* SCROLL ANIMATIONS */
.hidden-left {
  opacity: 0;
  transform: translateX(-80px);
  transition: all 1s ease;
}

.hidden-right {
  opacity: 0;
  transform: translateX(80px);
  transition: all 1s ease;
}

.hidden-up {
  opacity: 0;
  transform: translateY(60px);
  transition: all 1s ease;
}

.show {
  opacity: 1;
  transform: translateX(0) translateY(0);
}

/* =========================
   NAVBAR
========================= */
@media screen and (max-width: 860px) {
  .navbar {
    padding: 8px 16px;
    border-radius: 0 0 16px 16px;
  }

  /* LOGO */

  .navbar .nav-logo .logo-image {
    height: 48px;
  }

  /* HAMBURGER */

  .navbar #hamburger-btn {
    display: block;
    font-size: 28px;
    color: white;
    cursor: pointer;
    z-index: 10001;
  }

  /* MOBILE MENU */

  .navbar .all-links {
    position: absolute;
    top: 68px;
    right: 20px;
    width: 220px;
    height: auto;
    padding: 12px;
    border-radius: 16px;
    background: rgba(5, 7, 138, 0.72);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-15px);
    transition: 0.35s ease;
    z-index: 9999;
  }

  /* SHOW MENU */

  .navbar #menu-toggler:checked ~ .all-links {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  /* NAV ITEMS */

  .navbar .all-links li {
    width: 100%;
  }

  /* NAV LINKS */

  .navbar .nav-link {
    width: 100%;
    padding: 12px 14px;
    justify-content: flex-start;
    font-size: 17px;
    border-radius: 8px;
  }

  /* HOVER */

  .navbar .nav-link:hover {
    background: rgba(255, 255, 255, 0.08);
  }

  .navbar .dropdown-menu .nav-link,
  .navbar .dropdown-menu .nav-link:hover,
  .navbar .dropdown-menu .nav-link:focus,
  .navbar .dropdown-menu .nav-link.active {
    background: transparent !important;
    backdrop-filter: none !important;
    box-shadow: none !important;
  }

  /* UNDERLINE */

  .nav-link::after {
    display: none;
  }

  .navbar .nav-link:hover,
  .navbar .nav-link.active {
    text-decoration-line: underline;
    text-decoration-color: var(--accent);
    text-decoration-thickness: 2px;
    text-underline-offset: 8px;
  }

  /* =========================
   DROPDOWN
========================= */

  .dropdown {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  /* DROPDOWN MENU */

  .dropdown-menu {
    position: static;
    width: 100%;
    margin-top: 0;
    padding: 0 0 0 12px !important;
    border-radius: 0 !important;
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: none !important;
    box-shadow: none !important;
    display: block;
    opacity: 1;
    visibility: visible;
    transform: none !important;
    gap: 0 !important;
    list-style: none !important;
  }

  /* SHOW DROPDOWN */

  .dropdown:hover .dropdown-menu,
  .dropdown:focus-within .dropdown-menu {
    display: block;
  }

  /* DROPDOWN LINKS */

  .dropdown-menu li a {
    padding: 8px 14px !important;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.92);
    background: transparent !important;
    border-radius: 0 !important;
    display: block !important;
    align-items: flex-start !important;
    text-align: left !important;
    margin: 0 !important;
    border: none !important;
    border-top: none !important;
    border-bottom: none !important;
    border-left: none !important;
    border-right: none !important;
    width: 100% !important;
    outline: none !important;
    box-shadow: none !important;
    justify-content: flex-start !important;
  }

  .dropdown-menu li {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    gap: 0 !important;
    list-style: none !important;
    width: 100%;
  }

  .dropdown-menu li a:hover,
  .dropdown-menu li a.active,
  .dropdown-menu li a:focus {
    background: transparent !important;
    border-radius: 0 !important;
    outline: none !important;
    color: rgba(255, 255, 255, 0.92) !important;
  }

  /* =========================
   SECTIONS
========================= */

  section:not(.homepage) {
    padding: 70px 20px;
  }

  .section-header {
    margin-bottom: 34px;
  }

  .about-header {
    margin-bottom: 35px;
  }

  .about-story {
    grid-template-columns: 1fr;
  }

  .about-image,
  .about-image img {
    min-height: 360px;
  }

  .about-content {
    padding: 0;
  }

  .mission-vision {
    margin-top: 45px;
  }

  .mission-vision-intro {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .mission-vision-grid {
    grid-template-columns: 1fr;
  }

  .mission-icon {
    margin: 0 auto;
  }

  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .branch-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .branch-card,
  .branch-card:nth-child(-n + 2) {
    grid-column: span 1;
  }

  .service-card,
  .service-card:nth-child(4),
  .service-card:nth-child(5) {
    grid-column: span 1;
  }

  .careers-content,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .job-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .job-grid-wrapper {
    gap: 10px;
  }

  .job-card {
    min-height: 200px;
    max-height: 260px;
    padding: 20px;
  }

  .job-card h3 {
    font-size: 16px;
  }

  .job-card p {
    font-size: 13px;
    -webkit-line-clamp: 2;
  }

  .job-pagination {
    gap: 6px;
  }

  .job-page-btn {
    min-width: 36px;
    height: 36px;
    font-size: 12px;
  }

  .job-sheet-overlay {
    align-items: end;
    padding: 18px;
  }

  .job-sheet {
    max-height: min(760px, calc(100vh - 36px));
  }

  .careers .careers-copy h2,
  .careers-copy p {
    max-width: none;
    text-align: center;
  }

  .careers-copy {
    text-align: center;
  }
}

/* MOBILE OVERLAY */

.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
  z-index: 9998;
}

/* SHOW OVERLAY */

#menu-toggler:checked ~ .mobile-overlay {
  opacity: 1;
  visibility: visible;
}

@media screen and (max-width: 560px) {
  .hero-title h1 {
    font-size: 33px;
  }

  .hero-buttons a {
    flex: 1 1 145px;
    justify-content: center;
  }

  .about .about-header h2 {
    font-size: 32px;
  }

  .about-header p,
  .about-content p,
  .mission-vision p {
    font-size: 15px;
  }

  .about-image,
  .about-image img {
    min-height: 300px;
  }

  .about-badge {
    left: 14px;
    right: 14px;
    bottom: 14px;
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .mission-vision {
    padding: 26px 18px;
  }

  .job-grid {
    gap: 16px;
  }

  .job-card {
    min-height: 220px;
    max-height: 280px;
  }

  .job-card h3 {
    font-size: 16px;
  }

  .job-card p {
    font-size: 13px;
    -webkit-line-clamp: 3;
  }

  .job-pagination {
    gap: 6px;
  }

  .job-page-btn {
    min-width: 36px;
    height: 36px;
    font-size: 13px;
  }

  .job-sheet-overlay {
    padding: 0;
  }

  .job-sheet {
    width: 100%;
    max-height: 88vh;
    border-radius: 8px 8px 0 0;
  }

  .job-sheet-header {
    padding: 22px 18px;
  }

  .job-sheet-title-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .job-sheet h2 {
    font-size: 28px;
  }

  .job-sheet-body {
    padding: 22px 18px 28px;
  }

  .job-sheet-apply {
    width: 100%;
    justify-content: center;
  }

  .branch-content,
  .service-card,
  .job-card,
  .contact-panel {
    padding: 24px 18px;
  }

  .contact-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .contact-item {
    grid-template-columns: 1fr;
  }

  .contact-branch-list,
  .contact-hours-list {
    grid-template-columns: 1fr;
  }
}

@media screen and (max-width: 360px) {
  .hero-buttons a {
    flex-basis: 100%;
  }
}

/* =========================
   AI CHATBOT RESPONSIVE
========================= */

.chat-toggle {
  position: fixed;
  bottom: clamp(15px, 2vw, 25px);
  right: clamp(15px, 2vw, 25px);
  width: clamp(56px, 5vw, 68px);
  height: clamp(56px, 5vw, 68px);
  display: grid;
  place-items: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border: 2px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  font-size: clamp(22px, 2vw, 28px);
  cursor: pointer;
  z-index: 9999;
  box-shadow: 0 14px 32px rgba(3, 10, 46, 0.32);
  transition:
    transform 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.chat-toggle:hover,
.chat-toggle:focus-visible,
.chat-toggle.is-open {
  border-color: rgba(215, 25, 47, 0.45);
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  box-shadow: 0 18px 38px rgba(215, 25, 47, 0.34);
  transform: translateY(-3px);
}

.chat-toggle:focus-visible,
.chat-close:focus-visible,
.chat-footer button:focus-visible,
.faq-chip:focus-visible {
  outline: 3px solid rgba(215, 25, 47, 0.24);
  outline-offset: 3px;
}

.chat-container {
  --chat-panel-top: clamp(84px, 12vh, 98px);
  --chat-panel-bottom: calc(clamp(56px, 5vw, 68px) + clamp(30px, 3vw, 42px));

  position: fixed;
  top: var(--chat-panel-top);
  right: clamp(15px, 2vw, 25px);
  bottom: var(--chat-panel-bottom);
  width: clamp(320px, 29vw, 390px);
  max-width: calc(100vw - 32px);
  height: auto;
  max-height: calc(100svh - var(--chat-panel-top) - var(--chat-panel-bottom));
  background: #fff;
  border: 1px solid rgba(5, 7, 138, 0.12);
  border-radius: 12px;
  overflow: hidden;
  display: none;
  flex-direction: column;
  z-index: 9999;
  box-shadow: 0 26px 70px rgba(3, 10, 46, 0.28);
}

.chat-container.is-open {
  display: flex;
}

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 78px;
  padding: 16px;
  color: white;
  background:
    linear-gradient(135deg, rgba(215, 25, 47, 0.22), transparent 48%),
    linear-gradient(135deg, var(--primary), var(--primary-dark));
}

.chat-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chat-title span {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  background: transparent;
  border: 0;
}

.chat-title img {
  width: 44px;
  height: 44px;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.18));
}

.chat-title strong,
.chat-title small {
  display: block;
}

.chat-title strong {
  font-size: 16px;
  line-height: 1.2;
}

.chat-title small {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  line-height: 1.35;
}

.chat-close {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  cursor: pointer;
  transition:
    background 0.3s ease,
    color 0.3s ease;
}

.chat-close:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.18);
}

.chat-body {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  background:
    linear-gradient(180deg, rgba(5, 7, 138, 0.06), transparent 38%),
    var(--mist);
  scroll-behavior: smooth;
}

.user-message,
.bot-message {
  width: fit-content;
  max-width: 88%;
  margin-bottom: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  word-wrap: break-word;
  font-size: clamp(13px, 0.9vw, 15px);
  line-height: 1.5;
}

.user-message {
  margin-left: auto;
  color: #fff;
  background: var(--primary);
  border-bottom-right-radius: 4px;
}

.bot-message {
  background: #fff;
  color: #1f2937;
  border: 1px solid rgba(5, 7, 138, 0.08);
  border-bottom-left-radius: 4px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.chat-faqs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 12px;
}

.faq-chip {
  min-height: 34px;
  padding: 0 11px;
  color: var(--primary);
  background: var(--white);
  border: 1px solid rgba(5, 7, 138, 0.12);
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease;
}

.faq-chip:hover {
  color: var(--accent);
  border-color: rgba(215, 25, 47, 0.28);
  transform: translateY(-2px);
}

.chat-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid #e5e7eb;
  background: white;
}

.chat-footer input {
  flex: 1;
  min-width: 0;
  padding: 12px 13px;
  color: #111827;
  background: #f8fafc;
  border: 1px solid #d7dce4;
  border-radius: 8px;
  outline: none;
  font-size: clamp(13px, 0.9vw, 15px);
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    background 0.3s ease;
}

.chat-footer input:focus {
  background: var(--white);
  border-color: rgba(5, 7, 138, 0.42);
  box-shadow: 0 0 0 4px rgba(5, 7, 138, 0.1);
}

.chat-footer button {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: var(--accent);
  color: white;
  cursor: pointer;
  transition:
    transform 0.3s ease,
    background 0.3s ease;
}

.chat-footer button:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .chat-container {
    --chat-panel-top: 78px;
    --chat-panel-bottom: 92px;

    width: min(380px, calc(100vw - 28px));
  }
}

@media (max-width: 480px) {
  .chat-container {
    --chat-panel-top: 78px;
    --chat-panel-bottom: 82px;

    left: 10px;
    right: 10px;
    width: auto;
    max-width: none;
    border-radius: 12px;
  }

  .chat-header,
  .chat-footer {
    padding: 10px;
  }

  .chat-body {
    padding: 12px;
  }

  .chat-footer input {
    padding: 10px;
  }

  .chat-title small {
    display: none;
  }
}

/* =========================
   OUR VESSELS
========================= */

section.vessel-gallery {
  overflow: hidden;
  position: relative;
  color: var(--white);
  background-color: #06145f;
  background-image:
    linear-gradient(135deg, rgba(6, 20, 95, 0.96), rgba(12, 31, 66, 0.96) 54%, rgba(17, 24, 39, 0.98)),
    url("../images/Vessels/ocean.jpg");
  background-position:
    center,
    center;
  background-size: auto, cover;
  background-repeat: no-repeat;
}

.vessel-gallery::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.08), transparent 38%),
    linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.28));
  opacity: 1;
}

.vessel-gallery > * {
  position: relative;
  z-index: 1;
}

.gallery-header {
  max-width: 820px;
  margin: 0 auto 44px;
  text-align: center;
}

.vessel-gallery .gallery-header h2 {
  max-width: 720px;
  margin: 0 auto 16px;
  color: var(--white);
  font-size: clamp(34px, 4vw, 50px);
  line-height: 1.12;
}

.gallery-header p {
  max-width: 700px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.76);
  font-size: 17px;
}

.vessel-showcase {
  max-width: 1320px;
  margin: 0 auto;
  padding: 30px 0 6px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(14px);
}

.vessel-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  max-width: 760px;
  margin: 0 auto 28px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
}

.vessel-meta div {
  padding: 20px 18px;
  text-align: center;
  background: rgba(255, 255, 255, 0.08);
}

.vessel-meta strong {
  display: block;
  margin-bottom: 5px;
  color: var(--accent);
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1;
}

.vessel-meta span {
  color: rgba(255, 255, 255, 0.76);
  font-size: 13px;
  font-weight: 600;
}

.slider-container {
  width: 100%;
  overflow: hidden;
  position: relative;
  padding: 24px 0 54px;
  outline: none;
}

.slider-container:focus-visible {
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.38);
}

.slider-container::before,
.slider-container::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 3;
  width: min(14vw, 170px);
  pointer-events: none;
}

.slider-container::before {
  left: 0;
  background: linear-gradient(to right, rgba(6, 20, 95, 0.96), transparent);
}

.slider-container::after {
  right: 0;
  background: linear-gradient(to left, rgba(17, 24, 39, 0.96), transparent);
}

.slider-track {
  display: flex;
  align-items: center;
  gap: 28px;
  will-change: transform;
  transform: translateZ(0);
  cursor: grab;
  user-select: none;
}

.slider-track.is-dragging {
  cursor: grabbing;
}

.slider-track.is-resetting,
.slider-track.is-resetting .slide,
.slider-track.is-resetting .slide img {
  transition: none !important;
}

/* SLIDES */

.slide {
  flex: 0 0 min(66vw, 700px);
  aspect-ratio: 16/9;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  opacity: 0.34;
  transform: scale(0.86) translateZ(0);
  transition:
    transform 0.7s ease,
    opacity 0.7s ease,
    filter 0.7s ease,
    box-shadow 0.7s ease;
  filter: saturate(0.72) brightness(0.62);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* ACTIVE */

.slide.active {
  transform: scale(1);
  opacity: 1;
  filter: saturate(1.06) brightness(1);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
  z-index: 2;
}

/* IMAGE */

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.02);
  transition: transform 0.7s ease;
  pointer-events: none;
  user-select: none;
}

.slide.active img {
  transform: scale(1);
}

/* OVERLAY */

.overlay {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  padding: clamp(20px, 3vw, 34px);
  background: linear-gradient(to top, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0));
  color: white;
}

.overlay span {
  display: inline-flex;
  margin-bottom: 8px;
  color: #ffb4b4;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.overlay h3 {
  font-size: 34px;
  line-height: 1.1;
}

.slider-control {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  cursor: pointer;
  backdrop-filter: blur(12px);
  transform: translateY(-50%);
  transition:
    background 0.25s ease,
    transform 0.25s ease;
}

.slider-control:hover,
.slider-control:focus-visible {
  background: var(--accent);
  transform: translateY(-50%) scale(1.04);
}

.slider-control-prev {
  left: clamp(14px, 3vw, 42px);
}

.slider-control-next {
  right: clamp(14px, 3vw, 42px);
}

.slider-status {
  position: absolute;
  left: 50%;
  bottom: 14px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 34px;
  max-width: calc(100% - 40px);
  padding: 0 14px;
  color: rgba(255, 255, 255, 0.86);
  background: rgba(0, 0, 0, 0.36);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  backdrop-filter: blur(10px);
  transform: translateX(-50%);
  font-size: 13px;
}

.slider-status span {
  color: #ffb4b4;
  font-weight: 700;
}

.slider-status strong {
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* MOBILE */

@media (max-width: 768px) {
  .vessel-showcase {
    margin: 0 -4px;
    padding-top: 22px;
  }

  .vessel-meta {
    grid-template-columns: 1fr;
    margin: 0 18px 18px;
  }

  .slide {
    flex: 0 0 82%;
  }

  .overlay h3 {
    font-size: 26px;
  }

  .slider-control {
    width: 42px;
    height: 42px;
  }

  .slider-status {
    width: calc(100% - 40px);
    justify-content: center;
  }

  .slider-container::before,
  .slider-container::after {
    width: 48px;
  }
}

/* SHIPMENT TRACKING PAGE */

.tracking-page {
  min-height: 100vh;
  background: var(--primary-dark);
}

.tracking-page header {
  background: transparent;
}

.tracking-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  padding: 88px 20px 22px;
  overflow: hidden;
  isolation: isolate;
  background: var(--primary-dark);
  color: var(--white);
  display: flex;
  align-items: center;
}

.tracking-bg-image {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.95;
  filter: saturate(1.12) contrast(1.08);
  pointer-events: none;
}

.tracking-hero::after {
  display: none;
}

.tracking-hero .hero-overlay {
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(3, 10, 46, 0.04), rgba(3, 10, 46, 0.68)),
    linear-gradient(110deg, rgba(3, 10, 46, 0.72), rgba(6, 20, 95, 0.42) 48%, rgba(7, 17, 31, 0.18));
}

.tracking-hero .hero-horizon {
  z-index: 1;
  background: linear-gradient(to top, rgba(3, 10, 46, 0.88), transparent);
}

.tracking-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.16;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.14) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: linear-gradient(90deg, #000 0%, transparent 78%);
  mask-image: linear-gradient(90deg, #000 0%, transparent 78%);
}

.tracking-hero-inner {
  position: relative;
  z-index: 2;
  width: min(1220px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}

.tracking-intro {
  animation: fadeUp 0.9s ease both;
}

.tracking-intro h1 {
  max-width: 760px;
  margin-top: 10px;
  color: white;
  font-size: clamp(42px, 5.2vw, 66px);
  font-weight: 800;
  line-height: 1.02;
}

.tracking-intro p {
  max-width: 680px;
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 16px;
  line-height: 1.65;
}

.tracking-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.tracking-highlights span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 38px;
  padding: 0 14px;
  color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(3, 10, 46, 0.34);
  backdrop-filter: blur(12px);
  font-size: 13px;
  font-weight: 800;
}

.tracking-highlights i {
  color: #ff5263;
}

.tracking-panel {
  display: grid;
  gap: 12px;
  animation: fadeUp 0.9s ease 0.1s both;
}

.tracking-form {
  padding: 18px 22px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(18px);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
}

.tracking-form label {
  display: block;
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.tracking-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.tracking-search input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  color: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  outline: none;
  font-size: 15px;
}

.tracking-search input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(215, 25, 47, 0.18);
}

.tracking-search button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 20px;
  color: var(--white);
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  font-weight: 800;
  cursor: pointer;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.tracking-search button:hover,
.tracking-search button:focus-visible {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

.tracking-search button:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.tracking-helper {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  line-height: 1.6;
}

.tracking-results {
  width: 100%;
  margin: 0;
  padding: 0 !important;
}

.tracking-results [hidden] {
  display: none !important;
}

.tracking-empty,
.tracking-alert,
.tracking-card {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
}

.tracking-empty {
  min-height: 245px;
  display: grid;
  place-items: center;
  padding: 22px;
  text-align: center;
}

.tracking-empty > * {
  max-width: 500px;
}

.tracking-empty i {
  color: var(--accent);
  font-size: 30px;
}

.tracking-empty h2 {
  margin-top: 10px;
  color: var(--primary);
  font-size: clamp(22px, 3vw, 34px);
}

.tracking-empty p {
  max-width: 460px;
  margin: 8px auto 0;
  color: var(--muted);
  line-height: 1.6;
}

.tracking-alert {
  padding: 18px 20px;
  color: #8a1020;
  background: #fff1f3;
  border-color: rgba(215, 25, 47, 0.22);
  font-weight: 700;
}

.tracking-alert.success {
  color: #075f62;
  background: #ecfeff;
  border-color: rgba(15, 139, 141, 0.26);
}

.tracking-card {
  overflow: hidden;
}

.tracking-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(6, 20, 95, 0.07), rgba(15, 139, 141, 0.08));
}

.tracking-card-header h2 {
  margin-top: 8px;
  color: var(--primary);
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.15;
  word-break: break-word;
}

.status-pill {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  color: var(--primary);
  border: 1px solid rgba(6, 20, 95, 0.18);
  border-radius: 8px;
  background: var(--white);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.status-pill[data-status="1"] {
  color: #075f62;
  border-color: rgba(15, 139, 141, 0.3);
  background: #ecfeff;
}

.status-pill[data-status="2"] {
  color: #13612f;
  border-color: rgba(34, 197, 94, 0.32);
  background: #effdf4;
}

.tracking-timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 14px 18px 0;
}

.timeline-step {
  min-height: 64px;
  display: grid;
  place-items: center;
  gap: 8px;
  padding: 12px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  font-weight: 800;
  text-align: center;
}

.timeline-step i {
  font-size: 21px;
}

.timeline-step.is-active {
  color: var(--white);
  border-color: transparent;
  background: linear-gradient(135deg, var(--primary), var(--teal));
}

.tracking-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 14px 18px 18px;
}

.tracking-detail {
  min-height: 82px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
}

.tracking-detail span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.tracking-detail strong {
  display: block;
  margin-top: 10px;
  color: var(--primary);
  font-size: 15px;
  line-height: 1.35;
  word-break: break-word;
}

@media (max-width: 920px) {
  .tracking-hero {
    align-items: flex-start;
    min-height: auto;
    padding-top: 96px;
  }

  .tracking-hero-inner {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .tracking-intro {
    text-align: center;
  }

  .tracking-intro p {
    margin-right: auto;
    margin-left: auto;
  }

  .tracking-highlights {
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .tracking-hero {
    align-items: flex-start;
    padding: 92px 14px 28px;
  }

  .tracking-intro h1 {
    font-size: 38px;
  }

  .tracking-intro p {
    font-size: 15px;
  }

  .tracking-highlights {
    display: none;
  }

  .tracking-form {
    padding: 18px;
  }

  .tracking-search {
    grid-template-columns: 1fr;
  }

  .tracking-search button {
    width: 100%;
  }

  .tracking-empty {
    min-height: 220px;
    padding: 20px 18px;
  }

  .tracking-card-header {
    align-items: flex-start;
    flex-direction: column;
    padding: 18px;
  }

  .tracking-timeline,
  .tracking-details {
    grid-template-columns: 1fr;
    padding-right: 18px;
    padding-left: 18px;
  }
}
