/* =========================================================
   ROOT VARIABLES
========================================================= */
:root {
  /* === COLOURS === */
  --blue-900: #0b0d17;
  --blue-300: #d0d6f9;
  --white: #ffffff;

  /* === SPACING SCALE === */
  --spacing-1600: 128px;
  --spacing-1200: 96px;
  --spacing-1000: 80px;
  --spacing-800: 64px;
  --spacing-600: 48px;
  --spacing-500: 40px;
  --spacing-400: 32px;
  --spacing-300: 24px;
  --spacing-200: 16px;
  --spacing-150: 12px;
  --spacing-100: 8px;
  --spacing-50: 4px;
  --spacing-25: 2px;
}

/* =========================================================
   GLOBAL RESET
========================================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Barlow Condensed", sans-serif;
}

html,
body {
  min-height: 100vh;
  background-color: var(--blue-900);
}

/* =========================================================
   UNIVERSAL SECTION BASE
========================================================= */
.section {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 100vh;
  width: 100%;
  color: var(--white);
  display: flex;
  flex-direction: column;
}

/* =========================================================
   PAGE BACKGROUNDS
========================================================= */
.home {
  background-image: url("../assets/home/background-home-desktop.jpg");
  justify-content: space-between;
}

.destination {
  background-image: url("../assets/destination/background-destination-desktop.jpg");
}

.crew {
  background-image: url("../assets/crew/background-crew-desktop.jpg");
  position: relative;
}

.technology {
  background-image: url("../assets/technology/background-technology-desktop.jpg");
}

/* =========================================================
   NAVIGATION
========================================================= */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 136px;
  padding-top: var(--spacing-500);
}

.logo {
  height: var(--spacing-600);
  margin-left: var(--spacing-800);
  display: flex;
  align-items: center;
  gap: var(--spacing-800);
  z-index: 1;
}

.line {
  height: var(--spacing-25);
  flex: 1;
  background-color: var(--white);
  opacity: 0.25;
  margin-right: -32px;
}

.menu {
  background-color: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  display: flex;
  gap: var(--spacing-600);
  padding: 0 var(--spacing-800);
}

.menu a {
  height: var(--spacing-1200);
  color: var(--white);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: var(--spacing-150);
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease-in-out;
}

.menu a.current,
.menu a:hover {
  border-color: var(--white);
}

/* =========================================================
   TEXT PRESETS
========================================================= */
.text-preset-8-bold {
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 2.7px;
}

.text-preset-8 {
  font-weight: 400;
  font-size: 16px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.text-preset-5 {
  color: var(--blue-300);
  font-size: 28px;
  letter-spacing: 4px;
  margin-bottom: var(--spacing-300);
  text-transform: uppercase;
}

.text-preset-1 {
  font-family: "Bellefair", serif;
  font-weight: 400;
  font-size: 144px;
  text-transform: uppercase;
}

.text-preset-9 {
  color: var(--blue-300);
  font-family: "Barlow", sans-serif;
  font-size: 18px;
  line-height: 180%;
  margin: var(--spacing-300) 0 var(--spacing-600);
}

/* =========================================================
   HOME PAGE
========================================================= */
.main-home {
  padding: var(--spacing-1600) 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-left: var(--spacing-1600);
  max-width: 540px;
}

.hero-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 var(--spacing-1600);
}

.explore {
  background-color: var(--white);
  border: none;
  border-radius: 50%;
  color: var(--blue-900);
  cursor: pointer;
  font-family: "Bellefair", serif;
  font-size: 32px;
  height: 272px;
  width: 272px;
  text-transform: uppercase;
  transition: all 0.3s ease-in-out;
}

.explore:hover {
  box-shadow: 0 0 0 88px rgba(255, 255, 255, 0.1);
  color: hsla(230, 35%, 7%, 0.5);
}

/* =========================================================
   DESTINATION PAGE
========================================================= */
main {
  padding: var(--spacing-1600) 0;
  display: flex;
  justify-content: center;
}

.main-content {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-300);
  max-width: 1110px;
}

.page-title {
  display: flex;
  gap: var(--spacing-300);
}

.page-number {
  color: hsla(0, 0%, 100%, 0.25);
  font-size: 28px;
  letter-spacing: 4.72px;
  text-transform: uppercase;
}

.page-content {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 200px;
}

.destination-img {
  grid-area: 1 / 1 / 8 / 2;
  justify-self: center;
}

.destination-links {
  grid-area: 1 / 2 / 2 / 3;
}

.destination-links a {
  color: var(--white);
  text-decoration: none;
  margin-right: 32px;
  padding-bottom: 8px;
  border-bottom: 2px solid transparent;
}

.destination-links a.current,
.destination-links a:hover {
  border-bottom-color: var(--white);
}

.dest-place {
  grid-area: 3 / 2 / 4 / 3;
  font-family: "Bellefair", serif;
  font-size: 96px;
  text-transform: uppercase;
}

.dest-detail {
  grid-area: 4 / 2 / 5 / 3;
  font-family: "Barlow", sans-serif;
  font-size: 18px;
  line-height: 180%;
  color: var(--blue-300);
}

.separator {
  grid-area: 5 / 2 / 6 / 3;
  height: 1px;
  background-color: hsla(0, 0%, 100%, 0.25);
}

.stats {
  grid-area: 7 / 2 / 8 / 3;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.dist-title {
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--blue-300);
}

.stat-detail {
  font-family: "Bellefair", serif;
  font-size: 28px;
  text-transform: uppercase;
}

/* =========================================================
   CREW PAGE
========================================================= */
.crewpage-content {
  max-width: 1110px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: var(--spacing-500);
  align-items: center;
  height: 100%;
  background: transparent;
}

.crew-text {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--spacing-600);
  height: 100%;
  padding-bottom: 4rem;
}

.crew-role {
  font-family: "Bellefair", serif;
  font-size: 32px;
  text-transform: uppercase;
  opacity: 0.5;
}

.crew-name {
  font-family: "Bellefair", serif;
  font-size: 56px;
  text-transform: uppercase;
}

.crew-bio {
  font-family: "Barlow", sans-serif;
  font-size: 18px;
  line-height: 1.8;
  color: var(--blue-300);
  max-width: 444px;
}

.crew-selector {
  display: flex;
  gap: var(--spacing-300);
}

.crew-selector button {
  background-color: var(--white);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  height: 16px;
  width: 16px;
  opacity: 0.17;
  transition: all 0.3s ease-in-out;
}

.crew-selector button:hover,
.crew-selector button.active {
  opacity: 1;
  background-color: var(--white);
}

.crew-img {
  max-width: 539px;
  max-height: 734px;
  -webkit-mask-image: linear-gradient(to bottom, black 75%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 75%, transparent 100%);
  background: transparent;
}

/* =========================================================
   TECHNOLOGY PAGE
========================================================= */
.tech-main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 1450px;
  width: 100%;
  gap: var(--spacing-600);
}

.tech-main-content-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 80px;
}

.tech-text {
  display: flex;
  flex-direction: row;
  gap: var(--spacing-600);
  align-items: flex-start;
}

.tech-selector {
  width: 80px;
  height: 304px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.tech-selector > button {
  border: 1px solid var(--white);
  background-color: transparent;
  border-radius: 50%;
  cursor: pointer;
  height: 80px;
  width: 80px;
  font-family: "Bellefair", serif;
  font-size: 32px;
  color: var(--white);
  transition: all 0.3s ease-in-out;
}

.tech-selector > button.active {
  background-color: var(--white);
  color: var(--blue-900);
}

.tech-subtext {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 16px;
  letter-spacing: 2.7px;
  text-transform: uppercase;
  color: var(--blue-300);
}

.tech-name {
  font-family: "Bellefair", serif;
  font-size: 56px;
  text-transform: uppercase;
}

.tech-desc {
  font-family: "Barlow", sans-serif;
  font-size: 18px;
  line-height: 1.8;
  color: var(--blue-300);
  max-width: 444px;
}

.tech-img {
  max-width: 515px;
  max-height: 527px;
  background: transparent;
}
/* =========================================================
   🌐 RESPONSIVE DESIGN
   ========================================================= */

/* === TABLET (768px – 1024px) === */
@media (max-width: 1024px) {
  .home {
    background-image: url("../assets/home/background-home-tablet.jpg");
  }
  .destination {
    background-image: url("../assets/destination/background-destination-tablet.jpg");
  }
  .crew {
    background-image: url("../assets/crew/background-crew-tablet.jpg");
  }
  .technology {
    background-image: url("../assets/technology/background-technology-tablet.jpg");
  }

  nav {
    padding: var(--spacing-400);
    height: auto;
  }

  .menu {
    gap: var(--spacing-300);
    padding: var(--spacing-300) var(--spacing-600);
  }

  .main-home,
  .page-content,
  .crewpage-content,
  .tech-main-content-wrapper,
  .tech-main {
    text-align: center;
    display: flex;
    flex-direction: column;
    row-gap: 10px;
    max-width: 650px;
  }

  /* === HOME PAGE === */
  .hero-content {
    margin: 0 auto;
    padding: 0 var(--spacing-400);
    text-align: center;
    max-width: 650px;
  }

  .hero-btn {
    padding: var(--spacing-600);
  }

  .explore {
    height: 220px;
    width: 220px;
    font-size: 28px;
  }

  /* === DESTINATION === */
  .destination-img {
    margin: 0 auto;
  }

  .dest-place {
    font-size: 72px;
  }

  .dest-detail {
    font-size: 16px;
  }

  .stats {
    grid-template-columns: 1fr;
    gap: var(--spacing-400);
  }

  /* === CREW === */
  .crewpage-content {
    grid-template-columns: 1fr;
    text-align: center;
    align-items: center;
    gap: var(--spacing-600);
  }

  .crew-text {
    align-items: center;
    padding-bottom: var(--spacing-400);
    gap: 0;
  }

  .crew-bio {
    max-width: 90%;
  }

  .crew-img {
    margin: 0 auto;
    max-width: 70%;
  }
  .crew-selector {
    margin-top: var(--spacing-400);
  }

  /* === TECHNOLOGY === */
  .tech-main-content-wrapper {
    flex-direction: column-reverse;
    gap: var(--spacing-600);
    align-items: center;
  }

  .tech-selector {
    flex-direction: row;
    justify-content: center;
    height: auto;
    gap: var(--spacing-400);
    width: 100%;
  }

  .tech-selector > button {
    height: 60px;
    width: 60px;
    font-size: 24px;
  }

  .tech-main-content {
    text-align: center;
    width: 100%;
  }
  .tech-text {
    align-items: center;
    flex-direction: column;
    gap: var(--spacing-300);
  }
}

/* === MOBILE (≤ 599px) === */
@media (max-width: 599px) {
  .home {
    background-image: url("../assets/home/background-home-mobile.jpg");
  }
  .destination {
    background-image: url("../assets/destination/background-destination-mobile.jpg");
  }
  .crew {
    background-image: url("../assets/crew/background-crew-mobile.jpg");
  }
  .technology {
    background-image: url("../assets/technology/background-technology-mobile.jpg");
  }
  nav {
    flex-direction: column;
    gap: var(--spacing-300);
    padding: var(--spacing-300);
  }

  .logo {
    margin: 0;
  }

  .menu {
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--spacing-200);
    padding: var(--spacing-300);
  }

  /* === HOME PAGE === */
  .text-preset-5 {
    font-size: 18px;
    letter-spacing: 2px;
  }

  .text-preset-1 {
    font-size: 80px;
  }

  .text-preset-9 {
    font-size: 16px;
    line-height: 1.6;
  }

  .explore {
    height: 180px;
    width: 180px;
    font-size: 20px;
  }

  /* === DESTINATION === */
  .dest-place {
    font-size: 48px;
  }

  .dest-detail {
    font-size: 16px;
    max-width: 90%;
    margin: 0 auto;
  }

  .destination-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }

  /* === CREW === */
  .crew-role {
    font-size: 18px;
  }

  .crew-name {
    font-size: 32px;
  }

  .crew-bio {
    font-size: 16px;
    line-height: 1.6;
    padding: 0 var(--spacing-300);
  }

  .crew-selector {
    justify-content: center;
    margin-top: var(--spacing-300);
  }

  .crew-img {
    max-width: 90%;
  }

  /* === TECHNOLOGY === */
  .tech-selector {
    width: 100%;
  }
  .tech-selector > button {
    height: 40px;
    width: 40px;
    font-size: 18px;
  }

  .tech-name {
    font-size: 32px;
  }

  .tech-desc {
    font-size: 16px;
    line-height: 1.6;
  }

  .tech-img {
    max-width: 100%;
    max-height: 322px;
    margin: 0 auto;
  }
  .tech-text {
    align-items: center;
    flex-direction: column;
    gap: var(--spacing-300);
  }

  /* Reduce global padding for main sections */
  main {
    padding: var(--spacing-600) var(--spacing-300);
  }
  .destination-img {
    margin: 0 auto;
    max-width: 60%;
  }
}

/* =========================================================
   🍔 MOBILE NAVIGATION (≤768px)
   ========================================================= */

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 21px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001; /* above menu */
}

.menu-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: var(--white);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* --- Mobile only --- */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
    margin-right: var(--spacing-800);
  }

  nav {
    position: relative;
    z-index: 1000;
    flex-direction: row;
  }

  /* Hide menu by default */
  .menu {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 70%;
    background-color: rgba(11, 13, 23, 0.95);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: var(--spacing-600);
    padding: var(--spacing-800);
    transition: right 0.3s ease-in-out;
  }

  .menu.show {
    right: 0;
  }

  /* Animate hamburger into X */
  .menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translateY(9px);
  }

  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(-9px);
  }

  /* Style links for mobile */
  .menu a {
    font-size: 20px;
    width: 100%;
    display: flex;
    align-items: center;
    gap: var(--spacing-200);
  }

  .menu a:hover,
  .menu a.current {
    border: none;
    text-decoration: underline;
  }
}

/* --- Tablet and Desktop --- */
@media (min-width: 769px) {
  .menu {
    position: static;
    height: auto;
    width: auto;
    flex-direction: row;
    justify-content: flex-end;
    padding: 0 var(--spacing-800);
    gap: var(--spacing-600);
    transition: none;
  }
}
