/* ========== GLOBAL RESET & BASICS ========== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  color: #ffffff;
  background-color: #020818;
}

/* ========== HOME / LANDING HERO ========== */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  text-align: center;

  background-image:
    radial-gradient(circle at top, rgba(0, 180, 255, 0.35), transparent 55%),
    url("blank_background.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.overlay-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.9) 0%,
      rgba(0, 0, 0, 0.45) 40%,
      rgba(0, 0, 0, 0.75) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 3vh 1.5rem 3.5rem; /* smaller top padding = higher logo */
  max-width: 1100px;
  width: 100%;
}

/* Main logo on home page – larger and more prominent */
.logo-main {
  width: min(520px, 80vw);
  height: auto;
  display: block;
  margin: 0 auto 2rem;
  filter: drop-shadow(0 0 30px rgba(0, 255, 255, 0.7));
}

.tagline {
  margin: 0 0 3rem;
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 400;
  letter-spacing: 0.08em;
  color: #f8fbff;
}

/* Four service buttons */
.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.4rem;
}

.service-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.9rem 1.3rem;
  border-radius: 14px;
  text-decoration: none;
  color: #f5fbff;
  font-size: 0.96rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  text-align: center;

  background: radial-gradient(circle at top, rgba(0, 120, 255, 0.16), transparent 60%);
  border: 1px solid rgba(158, 210, 255, 0.7);
  box-shadow:
    0 0 0 1px rgba(0, 255, 255, 0.05),
    0 10px 28px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease,
    background 0.22s ease;
}

.service-card span {
  max-width: 12rem;
}

.service-card:hover,
.service-card:focus-visible {
  transform: translateY(-6px);
  border-color: rgba(120, 235, 255, 0.95);
  box-shadow:
    0 0 0 1px rgba(0, 255, 255, 0.22),
    0 18px 40px rgba(0, 0, 0, 0.85);
  background: radial-gradient(circle at top, rgba(0, 200, 255, 0.3), transparent 65%);
  outline: none;
}

.hero-footer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1.5rem;
  z-index: 2;

  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.6rem;

  font-size: 0.85rem;
  color: #e0edf9;
  padding-inline: 1.5rem;
}

.hero-footer a {
  color: #9addff;
  text-decoration: none;
}

.hero-footer a:hover,
.hero-footer a:focus-visible {
  text-decoration: underline;
}

.dot-separator {
  opacity: 0.6;
}

/* ========== SUBPAGES (SHARED LAYOUT) ========== */

.subpage {
  min-height: 100vh;
  background-image:
    radial-gradient(circle at top, rgba(0, 180, 255, 0.35), transparent 55%),
    url("blank_background.png");
  background-size: cover;
  background-position: center;
  color: #f8fbff;
}

/* Top navigation for subpages */
.top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2.5rem;
  position: sticky;
  top: 0;
  z-index: 5;
  backdrop-filter: blur(12px);
  background: radial-gradient(circle at top, rgba(0,0,0,0.85), transparent 70%);
}

.nav-logo img {
  height: 40px;
}

.nav-links {
  display: flex;
  gap: 1.4rem;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-links a {
  text-decoration: none;
  color: #dbe9ff;
}

.nav-links a:hover {
  color: #9ee6ff;
}

/* Main content wrapper on subpages */
.sub-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3.5rem 2.5rem 4rem;
}

.sub-title {
  font-size: clamp(2rem, 3vw, 2.4rem);
  margin: 0 0 0.35rem;
}

.sub-tagline {
  font-size: 1.02rem;
  max-width: 640px;
  color: #e0ecff;
  margin: 0 0 2.5rem;
}

/* Image + text rows */
.image-row {
  display: flex;
  align-items: center;
  gap: 2.3rem;
  margin-bottom: 2.8rem;
}

.image-row:nth-of-type(even) {
  flex-direction: row-reverse;
}

.image-row img {
  width: 44%;
  max-width: 480px;
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.85);
  object-fit: cover;
}

.image-row-text {
  flex: 1;
}

.image-row-text h2 {
  font-size: 1.3rem;
  margin: 0 0 0.6rem;
}

.image-row-text p {
  font-size: 0.97rem;
  line-height: 1.6;
  margin: 0;
}

/* Subpage footer uses same markup but not absolutely positioned */
.subpage .hero-footer {
  position: static;
  margin-top: 1rem;
  padding-bottom: 1.5rem;
}

/* Per-page accent colors */
.page-asset .sub-title,
.page-asset .image-row-text h2 {
  color: #7fe6ff;
}

.page-logistics .sub-title,
.page-logistics .image-row-text h2 {
  color: #ffd97a;
}

.page-maritime .sub-title,
.page-maritime .image-row-text h2 {
  color: #7dffc4;
}

.page-remote .sub-title,
.page-remote .image-row-text h2 {
  color: #e2b3ff;
}

/* ========== RESPONSIVE ========== */

@media (max-width: 900px) {
  .hero-content {
    padding-top: 4vh;
  }

  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-card {
    padding: 1.6rem 1.1rem;
  }

  .top-nav {
    padding-inline: 1.5rem;
  }

  .sub-main {
    padding-inline: 1.5rem;
  }

  .image-row {
    flex-direction: column;
  }

  .image-row:nth-of-type(even) {
    flex-direction: column;
  }

  .image-row img {
    width: 100%;
  }
}

@media (max-width: 600px) {
  .hero {
    align-items: stretch;
  }

  .hero-content {
    padding-inline: 1.25rem;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .hero-footer {
    flex-direction: column;
    gap: 0.25rem;
    bottom: 1rem;
  }

  .nav-links {
    display: none;
  }

  .sub-main {
    padding-inline: 1.25rem;
  }
}
