/*==================== GOOGLE FONTS ====================*/
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

/*==================== VARIABLES CSS ====================*/
:root {
  --header-height: 8.5rem;

  /*========== Colors ==========*/
  /* Colors from Logo */
  --primary-blue: #1c3f60;
  /* Dark Navy Blue */
  --primary-blue-alt: #132a40;
  --secondary-orange: #f39c12;
  /* Vibrant Orange */
  --secondary-orange-alt: #e67e22;
  --accent-light: #f8fafc;
  --text-main: #334155;
  --text-light: #64748b;
  --white: #ffffff;
  --glass-bg: rgba(255, 255, 255, 0.75);
  --glass-border: rgba(255, 255, 255, 0.5);
  --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);

  /* Background */
  --bg-color: #f1f5f9;
  --container-color: #ffffff;
  --dark-bg: #0f172a;
  --dark-container: #1e293b;

  /*========== Font and typography ==========*/
  --body-font: 'Outfit', sans-serif;
  --biggest-font-size: 2.5rem;
  --h1-font-size: 2rem;
  --h2-font-size: 1.5rem;
  --h3-font-size: 1.125rem;
  --normal-font-size: .938rem;
  --small-font-size: .813rem;
  --smaller-font-size: .75rem;

  /*========== Font weight ==========*/
  --font-light: 300;
  --font-regular: 400;
  --font-medium: 500;
  --font-semi-bold: 600;
  --font-bold: 700;
  --font-extra-bold: 800;

  /*========== Margins Bottom ==========*/
  --mb-0-25: .25rem;
  --mb-0-5: .5rem;
  --mb-0-75: .75rem;
  --mb-1: 1rem;
  --mb-1-5: 1.5rem;
  --mb-2: 2rem;
  --mb-2-5: 2.5rem;
  --mb-3: 3rem;

  /*========== z index ==========*/
  --z-tooltip: 10;
  --z-fixed: 100;
  --z-modal: 1000;
}

@media screen and (min-width: 800px) {
  :root {
    --biggest-font-size: 4rem;
    --h1-font-size: 2.5rem;
    --h2-font-size: 2rem;
    --h3-font-size: 1.25rem;
    --normal-font-size: 1rem;
    --small-font-size: .875rem;
    --smaller-font-size: .813rem;
  }
}

/*==================== BASE ====================*/
* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  background-color: var(--bg-color);
  color: var(--text-main);
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
  line-height: 1.6;
}

h1,
h2,
h3,
h4 {
  color: var(--primary-blue);
  font-weight: var(--font-bold);
  line-height: 1.2;
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button,
input {
  border: none;
  font-family: var(--body-font);
  outline: none;
}

/*==================== REUSABLE CSS CLASSES ====================*/
.container {
  max-width: 1140px;
  margin-left: var(--mb-1-5);
  margin-right: var(--mb-1-5);
}

.grid {
  display: grid;
  gap: 1.5rem;
}

.section {
  padding: 5rem 0 2rem;
  overflow: hidden;
  /* Prevent wide children/orbs from expanding scrollbar */
}

.section__title {
  font-size: var(--h2-font-size);
  margin-bottom: var(--mb-2);
  text-align: center;
}

.section__subtitle {
  display: block;
  font-size: var(--small-font-size);
  color: var(--secondary-orange);
  font-weight: var(--font-semi-bold);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: var(--mb-0-5);
  text-align: center;
}

.text-center {
  text-align: center;
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-orange) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* GLASSMORPHISM UTILITY */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: 1.5rem;
  padding: 2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.15);
}

/*==================== HEADER & NAV ====================*/
.header {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: var(--z-fixed);
  background-color: transparent;
  transition: .4s;
}

.nav {
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav__logo img {
  height: 150px;
  object-fit: contain;
}

.nav__logo-img {
  height: 150px;
}

.nav__btns {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav__toggle,
.nav__close {
  font-size: 1.5rem;
  color: var(--primary-blue);
  cursor: pointer;
}

@media screen and (max-width: 799px) {
  .nav__menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100%;
    background: var(--glass-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    padding: 6rem 3rem;
    transition: .4s;
    box-shadow: -2px 0 16px hsla(0, 0%, 0%, .1);
    z-index: var(--z-fixed);
  }

  .d-none-mobile {
    display: none;
  }
}

.nav__list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.nav__link {
  color: var(--primary-blue);
  font-weight: var(--font-medium);
  font-size: var(--h3-font-size);
  transition: .3s;
}

.nav__link:hover {
  color: var(--secondary-orange);
}

.nav__close {
  position: absolute;
  top: 1.2rem;
  right: 1.5rem;
  font-size: 2rem;
}

/* Show menu */
.show-menu {
  right: 0;
}

/* Change background header */
.scroll-header {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 4px hsla(0, 0%, 0%, .1);
}

.active-link {
  color: var(--secondary-orange);
  position: relative;
}

.active-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--secondary-orange);
  border-radius: 2px;
}

/*==================== BUTTONS ====================*/
.button {
  display: inline-block;
  background-color: var(--secondary-orange);
  color: var(--white);
  padding: 1rem 2rem;
  border-radius: 3rem;
  font-weight: var(--font-medium);
  transition: .3s;
  box-shadow: 0 8px 24px hsla(28, 90%, 51%, .3);
}

.button:hover {
  background-color: var(--secondary-orange-alt);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px hsla(28, 90%, 51%, .4);
}

.button--ghost {
  background-color: transparent;
  color: var(--primary-blue);
  border: 2px solid var(--primary-blue);
  padding: 0.8rem 1.8rem;
  box-shadow: none;
}

.button--ghost:hover {
  background-color: var(--primary-blue);
  color: var(--white);
}

.button--link {
  background-color: transparent;
  color: var(--primary-blue);
  box-shadow: none;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: .25rem;
}

.button--link:hover {
  background-color: transparent;
  color: var(--secondary-orange);
  transform: translateX(5px);
  box-shadow: none;
}

/*==================== HOME ====================*/
.home {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 7rem;
  padding-bottom: 5rem;
  overflow: hidden;
}

.home__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(120deg, var(--bg-color) 0%, rgba(241, 245, 249, 0.8) 100%),
    url('logistics_map_1772237294186.png') center/cover no-repeat;
  z-index: -1;
  animation: bgZoom 20s infinite alternate ease-in-out;
}

@keyframes bgZoom {
  0% {
    transform: scale(1);
  }

  100% {
    transform: scale(1.1);
  }
}

.home__container {
  row-gap: 3rem;
  align-items: center;
}

.home__data {
  width: 100%;
  padding: 3rem;
}

.home__title {
  font-size: var(--biggest-font-size);
  margin-bottom: var(--mb-1);
  letter-spacing: -1px;
}

.home__description {
  margin-bottom: var(--mb-2);
  font-size: var(--h3-font-size);
  color: var(--text-main);
}

.home__buttons {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.home__cards {
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.home__card {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  border-left: 4px solid var(--secondary-orange);
}

.home__card i {
  font-size: 2.5rem;
  color: var(--primary-blue);
}

.home__card-title {
  font-size: var(--h3-font-size);
}

/*==================== SERVICES ====================*/
.services__container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  padding-top: 2rem;
}

.service__card {
  flex: 1 1 300px;
  max-width: 350px;
  text-align: left;
  position: relative;
  overflow: hidden;
}

.service__card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 4px;
  background-color: var(--secondary-orange);
  transition: .4s;
}

.service__img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 1rem;
  margin-bottom: 1.5rem;
  transition: transform 0.4s ease;
}

.service__card:hover .service__img {
  transform: scale(1.05);
  /* Slight zoom on hover for the image */
}

.service__card:hover::before {
  left: 0;
}

.service__icon {
  width: 60px;
  height: 60px;
  background-color: rgba(28, 63, 96, 0.1);
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 2rem;
  color: var(--primary-blue);
  transition: .3s;
}

.service__card:hover .service__icon {
  background-color: var(--primary-blue);
  color: var(--white);
  transform: scale(1.1);
}

.service__title {
  font-size: var(--h3-font-size);
  margin-bottom: var(--mb-1);
}

.service__description {
  margin-bottom: var(--mb-1-5);
  color: var(--text-light);
}

.service__button {
  color: var(--primary-blue);
  font-weight: var(--font-semi-bold);
  display: inline-flex;
  align-items: center;
  gap: .25rem;
}

.service__button:hover {
  color: var(--secondary-orange);
  transform: translateX(5px);
}

/*==================== ABOUT / PILLARS ====================*/
.about__container {
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

.about__data {
  text-align: left;
}

.about__data .section__subtitle,
.about__data .section__title {
  text-align: left;
}

.about__description {
  margin-bottom: var(--mb-2);
}

.about__pillars {
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.pillar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: var(--font-medium);
  color: var(--primary-blue);
}

.pillar i {
  color: var(--secondary-orange);
  font-size: 1.25rem;
}

.about__image-wrapper {
  position: relative;
  height: 350px;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1000px;
  overflow: hidden;
  border-radius: 2rem;
}

.about__image {
  width: 100%;
  height: 100%;
  position: relative;
}

.glass-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  z-index: -1;
  animation: float 6s ease-in-out infinite;
  max-width: 80vw;
}

.orb-1 {
  width: 200px;
  height: 200px;
  background: rgba(28, 63, 96, 0.4);
  top: 5%;
  left: 5%;
}

.orb-2 {
  width: 180px;
  height: 180px;
  background: rgba(243, 156, 18, 0.4);
  bottom: 5%;
  right: 5%;
  animation-delay: -3s;
}

.orb-3 {
  width: 150px;
  height: 150px;
  background: rgba(41, 128, 185, 0.3);
  top: 40%;
  left: 20%;
  animation-delay: -1.5s;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-20px) scale(1.05);
  }
}

.image-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  width: 80%;
  max-width: 300px;
}

.image-overlay:hover {
  transform: translate(-50%, -55%);
}

.image-overlay-title {
  font-size: var(--biggest-font-size);
  color: var(--primary-blue);
  margin-bottom: 0;
}

/*==================== LOCATIONS ====================*/
.locations__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  padding-top: 2rem;
}

.location__card {
  flex: 1 1 200px;
  max-width: 300px;
  text-align: center;
  padding: 2rem 1rem;
}

.location__card.featured {
  background: var(--primary-blue);
  color: var(--white);
}

.location__card.featured .location__title {
  color: var(--white);
}

.location__title {
  font-size: var(--h3-font-size);
  font-weight: var(--font-semi-bold);
}

/*==================== CTA ====================*/
.cta__container {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-alt) 100%);
  color: var(--white);
  text-align: center;
  padding: 4rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.cta__title {
  color: var(--white);
  font-size: var(--h1-font-size);
}

.cta__description {
  color: var(--accent-light);
  max-width: 600px;
}

.cta__container .button {
  background-color: var(--white);
  color: var(--primary-blue);
}

.cta__container .button:hover {
  background-color: var(--accent-light);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/*==================== CONTACT FORM ====================*/
.contact__form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  max-width: 500px;
  margin-top: 1rem;
}

.contact__input {
  width: 100%;
  padding: 1rem 1.5rem;
  border-radius: .5rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  font-size: var(--normal-font-size);
  font-family: var(--body-font);
  transition: .3s;
}

.contact__input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.contact__input:focus {
  background: rgba(255, 255, 255, 0.2);
  border-color: var(--white);
  outline: none;
}

.contact__form-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 0.5rem;
}

@media screen and (min-width: 576px) {
  .contact__form-buttons {
    flex-direction: row;
    justify-content: center;
  }
}

/*==================== FOOTER ====================*/
.footer {
  background-color: var(--dark-bg);
  color: var(--white);
  padding: 5rem 0 2rem;
}

.footer__container {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 3rem;
  margin-bottom: var(--mb-3);
}

.footer__logo {
  display: inline-block;
  margin-bottom: var(--mb-1);
}

.footer__logo-img {
  filter: brightness(0) invert(1);
  height: 180px;
}

.footer__description {
  color: var(--text-light);
  margin-bottom: var(--mb-1-5);
}

.footer__social {
  display: flex;
  gap: 1rem;
}

.footer__social-link {
  display: inline-flex;
  background-color: var(--dark-container);
  padding: .5rem;
  border-radius: .5rem;
  color: var(--white);
  font-size: 1.25rem;
  transition: .3s;
}

.footer__social-link:hover {
  background-color: var(--secondary-orange);
  transform: translateY(-3px);
}

.footer__title {
  font-size: var(--h3-font-size);
  color: var(--white);
  margin-bottom: var(--mb-1-5);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.footer__link {
  color: var(--text-light);
  transition: .3s;
}

.footer__link:hover {
  color: var(--secondary-orange);
}

.footer__info {
  display: flex;
  align-items: center;
  gap: .5rem;
  color: var(--text-light);
}

.footer__info i {
  font-size: 1.25rem;
  color: var(--secondary-orange);
}

.footer__copy {
  text-align: center;
  color: var(--text-light);
  font-size: var(--smaller-font-size);
  border-top: 1px solid var(--dark-container);
  padding-top: 2rem;
}

/*==================== SCROLL UP ====================*/
.scrollup {
  position: fixed;
  right: 1rem;
  bottom: -20%;
  background-color: var(--primary-blue);
  opacity: .8;
  padding: .3rem .5rem;
  border-radius: .4rem;
  z-index: var(--z-tooltip);
  transition: .4s;
}

.scrollup:hover {
  background-color: var(--secondary-orange);
  opacity: 1;
}

.scrollup i {
  font-size: 1.5rem;
  color: var(--white);
}

/* Show scroll */
.show-scroll {
  bottom: 3rem;
}

/*==================== MEDIA QUERIES ====================*/
/* For small devices */
@media screen and (max-width: 340px) {
  .container {
    margin-left: var(--mb-1);
    margin-right: var(--mb-1);
  }

  .home__buttons {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .home__cards {
    grid-template-columns: 1fr;
  }

  .locations__grid {
    grid-template-columns: 1fr;
  }
}

/* For medium devices */
@media screen and (min-width: 576px) {
  .home__cards {
    grid-template-columns: repeat(2, 1fr);
  }

}

@media screen and (min-width: 768px) {
  .about__container {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Added overflow: hidden; to .about__container as per instruction */
  .about__container,
  .locations__grid {
    overflow: hidden;
  }

  .about__image-wrapper {
    height: 500px;
    border-radius: 0;
    overflow: visible;
  }
  
  .orb-1 { width: 300px; height: 300px; top: 10%; left: 10%; }
  .orb-2 { width: 250px; height: 250px; bottom: 10%; right: 10%; }
  .orb-3 { width: 200px; height: 200px; top: 40%; left: 30%; }
}

/* For large devices */
@media screen and (min-width: 800px) {
  .container {
    margin-left: auto;
    margin-right: auto;
  }

  .nav {
    height: calc(var(--header-height) + 1.5rem);
  }

  .nav__toggle,
  .nav__close {
    display: none;
  }

  .d-none-mobile {
    display: inline-block;
  }

  .nav__list {
    flex-direction: row;
    column-gap: 3rem;
  }

  .home__container {
    row-gap: 3rem;
  }

  .home__cards {
    grid-template-columns: repeat(4, 1fr);
  }

  .home__data {
    max-width: 100%;
  }

  .home {
    padding-top: 9rem;
  }
}