/* Splash screen */
#splash-screen {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100vh;
  background: var(--color-black);
  transition: opacity 0.8s ease;
}

#splash-screen img {
  width: 700px;
  max-width: 90%;
  opacity: 0;
  animation: logoIntro 1.5s ease forwards;
}

@keyframes logoIntro {
  0% {
    opacity: 0;
    transform: scale(0.7);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

#splash-screen.fade-out {
  opacity: 0;
  pointer-events: none;
}

/* Hero */
.main {
  grid-area: main;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  overflow: hidden;
  color: var(--color-white);
  text-align: center;
}

.main-video {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.main-overlay {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
}

.main-content {
  position: relative;
  z-index: 3;
  padding: 20px;
}

.main-content h1 {
  margin-bottom: 10px;
  font-size: 48px;
}

.main-content h3 {
  font-size: 24px;
  font-weight: 400;
}

/* Home-page About section */
.home-about {
  grid-area: about;
  padding: 100px 7% 130px;
  background: var(--color-section);
}

.home-about-wrapper {
  position: relative;
  max-width: 1200px;
  margin: auto;
}

.home-about-image-box {
  width: 75%;
  overflow: hidden;
  border-radius: 10px;
  background: var(--color-white);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

.home-about-image-box img {
  display: block;
  width: 100%;
  height: 500px;
  object-fit: cover;
}

.home-about-caption-box {
  position: absolute;
  right: 0;
  bottom: -55px;
  width: 45%;
  padding: 45px;
  border-radius: 10px;
  background: var(--color-navy);
  color: var(--color-white);
  text-align: left;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.home-about-label {
  margin-bottom: 12px;
  color: var(--color-blue);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.home-about-caption-box h2 {
  margin-bottom: 18px;
  color: var(--color-white);
}

.home-about-caption-box p {
  margin-bottom: 15px;
  color: var(--color-card);
}

.home-about-caption-box button {
  margin-top: 15px;
  padding: 13px 26px;
  border: none;
  border-radius: 5px;
  background: var(--color-white);
  color: var(--color-navy);
  font-weight: bold;
  cursor: pointer;
}

.home-about-caption-box button:hover {
  background: #dbeafe;
}

/* Fleet, industries, and contact sections */
.fleet {
  grid-area: fleet;
  background: var(--color-white);
  padding: 100px 10% 130px;
}

.fleet-see-more {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 35px;
}

.fleet-see-more button {
  padding: 14px 32px;
  background: #0d1b2a;
  color: white;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition:
    background 0.3s ease,
    transform 0.3s ease;
}

.fleet-see-more button:hover {
  background: #1b263b;
  transform: translateY(-3px);
}

.industries {
  grid-area: industries;
  background: var(--color-section);
}

.contact {
  grid-area: contact;
  background: var(--color-navy);
  color: var(--color-white);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.box {
  padding: 20px;
  border-radius: 8px;
  background: var(--color-card);
  transition: 0.3s;
}

.box:hover {
  background: #dbeafe;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  transform: translateY(-8px);
}

.box img {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: 15px;
  border-radius: 6px;
  object-fit: cover;
}

.industries .grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  max-width: 1400px;
  margin: 40px auto 0;
}

.industry-box {
  padding: 15px;
  overflow: hidden;
}

.industry-box img {
  display: block;
  width: 100%;
  height: 200px;
  margin-bottom: 15px;
  border-radius: 6px;
  object-fit: cover;
}

.industry-box h3 {
  margin: 0;
}

.contact .quote-container {
  margin: 40px auto;
}

/* Scroll animation */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Desktop */
@media only screen and (min-width: 1201px) {
  .container {
    display: grid;
    grid-template-columns: 0.8fr repeat(4, 1fr);
    grid-template-areas:
      "logo nav nav nav nav"
      "main main main main main"
      "about about about about about"
      "fleet fleet fleet fleet fleet"
      "industries industries industries industries industries"
      "contact contact contact contact contact"
      "footer footer footer footer footer";
  }
}

/* Tablet and small desktop */
@media only screen and (max-width: 1200px) and (min-width: 901px) {
  .container {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-areas:
      "logo"
      "nav"
      "main"
      "about"
      "fleet"
      "industries"
      "contact"
      "footer";
  }
}

/* Mobile */
@media only screen and (max-width: 900px) {
  .container {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-areas:
      "logo"
      "main"
      "about"
      "fleet"
      "industries"
      "contact"
      "footer";
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .main {
    width: 100%;
    height: 80vh;
    overflow: hidden;
  }

  .main-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .main-content {
    width: 100%;
    padding: 20px;
  }

  .main-content h1 {
    font-size: 30px;
    line-height: 1.2;
    word-break: normal;
  }

  .main-content h3 {
    font-size: 18px;
    line-height: 1.4;
  }

  .about p {
    width: 100%;
    text-align: center;
  }

  .grid {
    width: 100%;
    grid-template-columns: 1fr;
  }

  .box {
    width: 100%;
    min-width: 0;
  }

    .industries .grid {
    grid-template-columns: 1fr;
  }

  .industry-box img {
    width: 100%;
    height: 180px;
    object-fit: cover;
  }

  .home-about {
    padding: 60px 18px 80px;
  }

  .home-about-wrapper {
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .home-about-image-box {
    width: 100%;
    border-radius: 10px;
  }

  .home-about-image-box img {
    width: 100%;
    height: 280px;
    object-fit: cover;
  }

  .home-about-caption-box {
    position: relative;
    right: auto;
    bottom: auto;

    width: 92%;
    margin-top: -35px;

    padding: 28px 22px;
    box-sizing: border-box;

    text-align: center;
    border-radius: 10px;
  }

  .home-about-caption-box h2 {
    font-size: 26px;
    line-height: 1.25;
  }

  .home-about-caption-box p {
    font-size: 15px;
    line-height: 1.6;
  }

  .home-about-caption-box button {
    width: 100%;
    max-width: 220px;
    margin-top: 15px;
  }

}

