/* Global reset and layout rules */
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow-x: hidden;
}

/* Full-viewport background layer */
.anabasis_background_color {
  position: fixed;
  inset: 0; /* top:0; right:0; bottom:0; left:0; */
  z-index: -1;
  background-color: #330c0c;
}

/* Hero section background */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;                /* change from 100vh to 70vh (or use height:auto) */
  background-image: url('web_assets/background_content_upper_3840.jpg');
  background-position: center top;
  background-size: cover;
  background-repeat: no-repeat;
}

.anabasis_information_container_2 {
  box-sizing: border-box;
    flex-basis: 83.33333%;
    max-width: 83.33333%;
    padding: 0.6em;
}

.anabasis_information_container {
  position: relative;
  z-index: 2;
  min-height: 70vh;               /* visible when you scroll down */
  background-image: linear-gradient(to top, rgba(51,12,12,1) 0%, rgba(51,12,12,0) 28%), url('web_assets/background_content_below_3840.jpg');
  background-position: center top;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: scroll;   /* attach to element so it moves with this section */
  overflow: hidden;                /* keep decorative fades inside the section */
}

/* ensure any direct children (content) sit above the decorative fades */
.anabasis_information_container > * {
  position: relative;
  z-index: 2;
}

.anabasis_information2_container {
  position: relative;
  z-index: 2;
  min-height: 70vh;               /* visible when you scroll down */
  background-image: url('web_assets/background_content_belowbelow_3840.png');
  background-position: center top;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: scroll;   /* ensure it replaces the hero background when scrolled to */
}


.legal_container {
  position: relative;
  z-index: 2;
  margin-top: 0;
  padding: 2rem 1rem; /* give breathing room and avoid negative padding */
  min-height: 10vh;
  background-color: #252525;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.anabasis_information_container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 120px; /* height of the fade */
  background: linear-gradient(to top, #330C0C, rgba(51,12,12,0));
  pointer-events: none;
  z-index: 1; /* sit behind content but above background */
}

.anabasis_information_container::after {
  content: "";
  position: absolute;
  top: 120px;
  left: 0;
  right: 0;
  height: 120px; /* height of the fade */
  background: linear-gradient(to bottom, #330C0C, rgba(51,12,12,0));
  pointer-events: none;
  z-index: 1;
}

.anabasis_information2_container::after {
  content: "";
  position: absolute;
  top: 70px;
  left: 0;
  right: 0;
  height: 120px; /* height of the fade */
  background: linear-gradient(to bottom, #330C0C, rgba(51,12,12,0));
  pointer-events: none;
}

.anabasis_information2_container::before {
  content: "";
  position: absolute;
  top: -120px;
  left: 0;
  right: 0;
  height: 120px; /* height of the fade */
  background: linear-gradient(to top, #330C0C, rgba(51,12,12,0));
  pointer-events: none;
}



.anabasis_information3_container::before {
  content: "";
  position: absolute;
  top: -120px;
  left: 0;
  right: 0;
  height: 120px; /* height of the fade */
  background: linear-gradient(to top, #330C0C, rgba(51,12,12,0));
  pointer-events: none;
}



.anabasis_information3_container {
    
  position: relative;
  z-index: 2;
  min-height: 80vh;               /* visible when you scroll down */
  background-image: url('web_assets/background_content_belowbelowbelow_3840.png');
  background-position: center top;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: scroll;   /* ensure it replaces the hero background when scrolled to */
}

.nav {
  padding: 0.1rem 2rem;
}

.nav ul {
  display: flex;
  gap: 1rem; /* decreased spacing between items */
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
  justify-content: flex-start; /* align items to left inside island */
  width: 100%;
}

.nav li {
  position: relative;
  display: flex;
  align-items: center;
  padding: 0 .3rem; /* slight internal padding */

}

.container_top {
    max-width: 1920px;
    max-height: fit-content;
    height: 1em;
    max-height: 76%;
    margin: auto;
}

.nav li.play {
  margin-left: 2.5rem;
}

.nav li.play a {
  display: inline-block;
  background: linear-gradient(180deg,#35b86a,#2aa85a);
  color: #fff;
  padding: .45rem .9rem;
  border-radius: 8px;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(38,122,70,0.35);
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
  text-shadow: 0 1px 0 rgba(0,0,0,0.15);
}

/* hover / focus for button */
.nav li.play a:hover,
.nav li.play a:focus {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(38,122,70,0.32);
  filter: brightness(1.03);
  outline: none;
}

/* accessible focus ring */
.nav li.play a:focus {
  box-shadow: 0 0 0 4px rgba(42,168,90,0.18), 0 14px 30px rgba(38,122,70,0.32);
}

.nav_wrapper {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center; /* vertically center children */
  gap: 0;              /* no gap so island and play sit together */
  z-index: 30;
}

.nav_logo {
  flex: 0 0 auto;
  margin-right: -40px; /* overlap the island slightly */
  z-index: 32;
}

.hero_content {
    position: relative;
    z-index: 2;
    text-align: center;
    margin-top: 16rem; /* space below navbar */
    margin-bottom: 16rem;
    width: 100%;
}

.nav_logo img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
  filter: drop-shadow(0 10px 22px rgba(0,0,0,0.55)); /* non-box shadow that follows image shape */
}

.nav li a {
  transition: color .18s ease, text-shadow .18s ease, transform .12s ease;
}

/* stronger specificity for glass island when needed */
.nav_inner.glass .nav li a:hover,
.nav_inner.glass .nav li a:focus {
  color: #ffffff;
  text-shadow: 0 0 6px rgba(255,255,255,0.95);
}

@media (max-width: 480px) {
  .nav_wrapper {
    justify-content: flex-start;
    padding: 0 .75rem;
    width: 100%;
  }

  /* shrink island and prevent it from expanding if links overflow */
  .nav_inner,
  .nav_inner.glass {
    max-width: calc(100% - 96px); /* leave space for logo + play */
    padding: 0.2rem .6rem;
    min-height: 44px;
    border-radius: 8px 0 0 8px;
    overflow: hidden;             /* stop glass from growing when items wrap */
    background: rgba(255,255,255,0.04); /* simpler fallback on phones */
    -webkit-backdrop-filter: none;
    backdrop-filter: none;        /* turn off blur for performance and clarity */
  }

  /* keep links on one line, allow horizontal scroll if necessary */
  .nav_inner .nav ul {
    gap: 0.6rem;
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 6px; /* avoid clipping underline */
  }
  /* hide mobile scrollbar */
  .nav_inner .nav ul::-webkit-scrollbar { display: none; }

  .nav li {
    padding: 0 .35rem;
    white-space: nowrap; /* prevent wrapping into stacked column */
  }

  /* make play button sit snugly next to island */
  .play-btn {
    min-height: 44px;
    padding: 0 .6rem;
    margin-left: 6px;
    font-size: 1rem;
    border-radius: 0 8px 8px 0;
  }

  /* reduce nav font slightly on very small devices */
  .nav li a { font-size: 1rem; padding-top: 0; }
}

@media (max-width: 768px) {
  .hero { min-height: 50vh; }
  .hero_content { margin-top: 6rem; margin-bottom: 6rem; padding: 0 1rem; }

  .hero_image { width: 100%; max-width: 100%; }

  /* Nav: make the whole group centered and smaller */
  .nav_wrapper {
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    top: 8px;
    gap: 6px;
    padding: 0 0.5rem;
  }

  .nav_logo img { width: 64px; height: 64px; margin-right: -10px; }

  .nav_inner,
  .nav_inner.glass {
    padding: 0.35rem 0.9rem;
    min-height: 48px;
    border-radius: 10px 0 0 10px;
    max-width: calc(100% - 140px);
  }

  .nav_inner .nav ul { gap: 0.6rem; }

  .nav li a { font-size: 1.1rem; padding-top: 0.08rem; }

  .play-btn {
    min-height: 48px;
    padding: 0 .7rem;
    font-size: 1rem;
    border-radius: 0 10px 10px 0;
    margin-left: 2px;
  }

  .nav li + li::before { height: 45%; margin: 0 .35rem; }
}

/* Responsive: phones and very small screens */
@media (max-width: 480px) {
  .hero { min-height: 40vh; background-position: center 10%; }
  .hero_content { margin-top: 4rem; margin-bottom: 4rem; padding: 0 1rem; }

  /* make nav wrap if needed and keep compact */
  .nav_wrapper {
    position: relative;
    transform: none;
    left: 0;
    top: 8px;
    justify-content: center;
    gap: 4px;
    padding: 0 .5rem;
    width: 100%;
  }

  .nav_logo img { width: 56px; height: 56px; margin-right: -8px; }

  .nav_inner,
  .nav_inner.glass {
    padding: 0.25rem .75rem;
    min-height: 44px;
    border-radius: 8px 0 0 8px;
    max-width: calc(100% - 110px);
  }

  .nav_inner .nav ul {
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  .nav li a { font-size: 1rem; padding-top: 0; }

  .play-btn {
    min-height: 44px;
    padding: 0 .6rem;
    font-size: 0.95rem;
    border-radius: 0 8px 8px 0;
  }

  /* reduce large hero title / info spacing on phones */
  .anabasis_information_title,
  .anabasis_information_center { padding-top: 1.2rem; font-size: 1.6rem; margin-left: 1.25rem; margin-right: 1.25rem; }
  .anabasis_information_pg,
  .anabasis_information_pg_c { padding-top: 0.25rem; margin: 0 1.25rem 1.25rem 1.25rem; max-width: 100%; }

  /* ensure gutters don't produce horizontal scroll */
  html, body { overflow-x: hidden; }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .nav li a, .play-btn, .nav_inner { transition: none !important; }
}

/* Tweak: increase gap between island and PLAY and match nav link font-sizes */
.nav_wrapper .play-btn {
  margin-left: 0.0em;    /* more breathing room between island and play */
  font-size: 1.6rem;    /* match desktop nav link size */
}

@media (max-width: 768px) {
  .nav_wrapper .play-btn {
    margin-left: 0.5rem; /* slightly reduced gap on medium screens */
    font-size: 1.1rem;   /* match .nav li a at this breakpoint */
  }
}

@media (max-width: 480px) {
  .nav_wrapper .play-btn {
    margin-left: 0.6rem; /* mobile gap */
    font-size: 1rem;     /* match mobile nav link size */
  }
}

.hero_image {
  width: 60rem;  /* Sets a fixed width */
  height: auto;  /* Height adjusts proportionally */
  filter: drop-shadow(0 0px 7px rgba(0,0,0,0.95)); /* non-box shadow that follows image shape */

}

.hero_title {
    font-family: 'STIX Two Text', serif;
    font-size: 2.5rem;
    color: #f9e4e4;
    background: linear-gradient(#f5fbff, #ffe090);
    background-clip: text;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-weight: 1000;
}



.hero_subtitle {
    font-family: 'STIX Two Text', serif;
    font-size: 1.5rem;
    transform: translateY(-25px);
    color: #f9e4e4;
    background: linear-gradient(#f5fbff, #ffe090);
    background-clip: text;
    letter-spacing: 0.01em;
    font-weight: 100;
}

.anabasis_information_title {
    font-family: 'Lexend', serif;
    font-size: 1.8rem;
    padding-top: 10em;      /* push it downward into the section */
    margin: 1.5rem 1.5rem 0 0;
    margin-right: -.6rem;
    margin-left: 7rem;
    color: #e8bd47;
    background-clip: text;
    letter-spacing: 0.03em;
    font-weight: 600;
    margin-bottom: 2rem;
}

.anabasis_center_move_up{
    position: relative;
    top: -50px;
}

/* Example: styles for screens smaller than 768px */


.anabasis_information_center {
    font-family: 'Lexend', serif;
    font-size: 2.8rem;
    padding-top: 3em;      /* push it downward into the section */
    margin: 1.5rem 1.5rem 0 0;
    text-align: center;
    color: #e8bd47;
    background-clip: text;
    letter-spacing: 0.03em;
    font-weight: 600;
    margin-bottom: 2rem;
}

.anabasis_information_pg {
    font-family: 'Lexend', serif;
    font-size: 1.2rem;
    padding-top: 1em;      /* push it downward into the section */
    margin: 1.5rem 1.5rem 0 0;
    margin-right: -.6rem;
    margin-left: 7rem;
    color: #ffffff;
    background-clip: text;
    max-width: 40em;
    letter-spacing: 0.03em;
    font-weight: 200;
    margin-bottom: 2rem;
}
.anabasis_information_pg_c {
    font-family: 'Lexend', serif;
    font-size: 1.2rem;
    top: -80px;
    padding-top: 0em;      /* push it downward into the section */
    margin: 1.5rem 1.5rem 0 0;
    text-align: center;
    padding-bottom: 3em;

    color: #ffffff;
    background-clip: text;
    max-width: 40em;
    letter-spacing: 0.03em;
    font-weight: 200;
    margin-bottom: 2rem;
}
.anabasis_information_legal {
  font-family: 'Lexend', serif;
  font-size: 1.05rem;
  padding-top: 0.6rem;
  margin: 0;
  color: #ffffff;
  background-clip: text;
  font-weight: 200;
  text-align: center;
  max-width: 64rem;
  padding-bottom: 1rem;
}
.nav a:hover,
.nav a:focus {
  color: #ffffff;
  text-shadow: 0 0 5px rgba(255,255,255,0.95);
}

.nav li a::after{
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  height: 2px;
  width: 100%;
  background: rgba(255,255,255,0.85);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform .22s cubic-bezier(.2,.9,.2,1);
  pointer-events: none;
}



.nav_inner.glass {
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02)); /* fallback look */
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(8px) saturate(120%);
  -webkit-backdrop-filter: blur(8px) saturate(120%);
  box-shadow: 0 10px 30px rgba(0,0,0,0.45);
  color: #fff;
  z-index: 30;
  transition: background .2s ease, box-shadow .2s ease, transform .15s ease;
}



/* extra fine-tuning for contrast */
.nav_inner.glass .nav li a {
  color: #f7e6e6;
  text-shadow: 0 2px 0 rgba(0,0,0,0.5);
}

.nav_inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0.45rem 1rem;
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  border-radius: 12px 0 0 12px; /* left rounded only */
  box-shadow: 0 10px 30px rgba(0,0,0,0.45);
  width: auto;             /* shrink to content */
  max-width: calc(100% - 220px); /* leave room for logo + play; tweak if needed */
  min-height: 56px; /* keep same height as .play-btn */
}

.nav_inner .nav ul { display:flex; gap:1rem; margin:0; padding:0; }


/* small visual seam: subtle left inset on the island */
.nav_inner::before {
  content: "";
  position: absolute;
  pointer-events: none;
}

/* standalone play button (outside the glass) */
.nav_play { display: flex; align-items: center; z-index: 31; }

.play-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 .95rem;                 /* horizontal padding only */
  margin-left: 0px;                  /* tiny gap so seam can be smoothed; use 0 for flush */
  border-radius: 0 12px 12px 0;      /* right rounded */
  background: linear-gradient(180deg,#35b86a,#2aa85a);
  color: #fff;
  text-shadow: 0 2px 0 rgba(0,0,0,0.5);
    font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);

  z-index: 30;
  border: none;
  min-height: 65px;                  /* match island height */
  line-height: normal;
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
  transform: none;                   /* remove previous translateY */
}

.play-btn::before {
  content: "";
  display: block;
  width: 2px;
  margin-right: -2px;         /* overlaps seam slightly */
  height: 100%;
  background: rgba(0,0,0,0.08);
  pointer-events: none;
}

.play-btn:hover,
.play-btn:focus {
  box-shadow: 0 14px 30px rgba(38,122,70,0.32);
  filter: brightness(1.03);
  outline: none;
}

.nav_inner {
  position: relative;               /* inside wrapper so wrapper handles centering */
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0.45rem 1rem;
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  border-radius: 12px 0 0 12px;     /* left rounded */
  box-shadow: 0 10px 30px rgba(0,0,0,0.45);
  width: auto;                      /* shrink to content */
  min-height: 56px;                 /* ensure same height as play button */
  z-index: 30;
}

/* Option B — always follow (floating) */
.nav_inner.fixed {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
}

.nav li + li::before {
  content: "";
  display: inline-block;
  width: 1px;
  height: 40%; /* smaller line */
  background: rgba(255,255,255,0.06); /* fainter */
  margin: 0 .5rem; /* tighter spacing around separator */
  vertical-align: middle;
  pointer-events: none;
}

.nav_home {
  height: 25%;
  width: 25%;
}
.nav li a {
  display: inline-block;
  text-decoration: none;
  font-size: 1.6rem;
  font-family: 'STIX Two Text', serif;
  color: #f9e4e4;
  font-weight: bold;
  padding-top: 0.15rem; /* move navbar text down */

}

.nav a img {
  display: block;
  width: 24px;
  height: 24px;
}

/* ==========================
   MOBILE / TABLET FIXES
   Keep these scoped so desktop styles remain unchanged
   ========================== */
@media (max-width: 768px) {
  .hero {
    min-height: 55vh;
    background-position: center 10%;
  }

  /* center wrapper and make it flow for small screens */
  .nav_wrapper {
    position: relative !important;
    left: auto !important;
    transform: none !important;
    top: auto !important;
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 0 .75rem;
    width: 100%;
  }

  /* logo smaller and only slightly overlaps the island */
  .nav_logo img {
    width: 56px;
    height: 56px;
    margin-right: -8px;
  }

  /* make island shrink-to-content, disable heavy blur for performance */
  .nav_inner,
  .nav_inner.glass {
    position: static !important;
    transform: none !important;
    left: auto !important;
    top: auto !important;
    padding: 0.35rem .8rem;
    min-height: 48px;
    border-radius: 10px 0 0 10px;
    max-width: calc(100% - 120px);
    overflow: hidden;
    background: rgba(255,255,255,0.04);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  /* keep links on a single line and allow horizontal scrolling */
  .nav_inner .nav ul {
    gap: 0.6rem;
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 6px;
  }
  .nav_inner .nav ul::-webkit-scrollbar { display: none; }

  .nav li {
    padding: 0 .35rem;
    white-space: nowrap;
  }

  /* play button tuned for small screens */
  .play-btn {
    min-height: 61px;
    padding: 0 .7rem;
    margin-left: -6px;
    border-radius: 0 10px 10px 0;
    font-size: 1rem;
  }

  .nav li a { font-size: 1rem; padding-top: 0; }
  .nav li + li::before { height: 45%; margin: 0 .35rem; }
}

@media (max-width: 480px) {
  .hero { min-height: 45vh; }

  /* center the whole nav group (logo + island + play) */
  .nav_wrapper {
    position: relative !important;
    left: auto !important;
    transform: none !important;
    top: auto !important;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    padding-top: calc(env(safe-area-inset-top, 12px) + 6px);
    padding-left: 12px;
    padding-right: 12px;
    width: 100%;
  }

  .nav_logo img { width: 48px; height: 48px; margin-right: -6px; }

  /* island: center contents, allow wrapping so menu doesn't overflow vertically */
  .nav_inner,
  .nav_inner.glass {
    position: static !important;
    padding: 0.25rem .6rem;
    min-height: 44px;
    border-radius: 10px 0 0 10px;
    max-width: calc(100% - 96px);
    background: rgba(255,255,255,0.03);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    display: inline-flex;
    justify-content: center;
    align-items: center;
  }

  /* allow nav items to wrap and center inside the island */
  .nav_inner .nav ul {
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    padding: 0.15rem 0;
  }

  .nav li { padding: 0 .35rem; white-space: nowrap; }

  /* play button sits immediately to the right and aligns vertically */
  .play-btn {
    min-height: 48px;
    padding: 0 .6rem;
    font-size: 0.95rem;
    margin-left: 6px;
    border-radius: 0 10px 10px 0;
  }

  /* reduce heading sizes for phones */
  .hero_title { font-size: 2rem; bottom: 36%; }

  .anabasis_information_title,
  .anabasis_information_center { padding-top: 1rem; font-size: 1.4rem; margin-left: 1rem; margin-right: 1rem; }

  .anabasis_information_pg,
  .anabasis_information_pg_c { padding-top: 0.25rem; margin: 0 1rem 1rem 1rem; max-width: 100%; }

  /* ensure no horizontal overflow on very small devices */
  html, body { overflow-x: hidden; }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .nav li a, .play-btn, .nav_inner { transition: none !important; }
}
