/**************************************************************
 * GLOBAL RESET & BASE SETTINGS
 **************************************************************/
html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden; 
  font-family: 'Work Sans', sans-serif;
  background: #F4F4F4;
  scroll-snap-type: y mandatory;
}

body.no-scroll {
  scroll-snap-type: y mandatory;
}

#intro-text,
.project-intro,
.graphic-results,
.footer-container {
  width: 80%;
  max-width: 1200px;
  margin: 0 auto;
}

/**************************************************************
 * HEADER
 **************************************************************/
#topHeader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
  background: transparent;
}

.header-container {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  padding: 1rem 2rem;
  justify-items: center;
}

.header-col-left {
    justify-self: start;
}

.header-col-right {
    justify-self: end;
    text-align: right;
}


.header-col-left a.logo,
.header-col-right a.logo {
  color: #d7d9e6; /* default white-ish */
  mix-blend-mode: multiply;
}

#topHeader.scrolled-content .header-col-left a.logo,
#topHeader.scrolled-content .header-col-right a.logo {
  color: rgb(29, 45, 84); /* dark blue/black when scrolled */
}

/* Header center – hidden by default; revealed when scrolled */
.header-col-center {
  pointer-events: none;
  justify-content: center;
  justify-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

#topHeader.scrolled-content .header-col-center {
  opacity: 1;
  pointer-events: auto;
}

/* SVG sizing */
.header-col-left svg,
.header-col-right svg {
  height: 1.3rem;
  width: auto;
}

.header-col-left svg {
  height: 1.4rem;
}

/* Header title text */
.header-title-text {
  font-family: 'Oxanium', sans-serif;
  font-size: 1.5rem;
  font-weight: 500;
}
.header-title-text .fiber {
  color: #0637D7;
}
.header-title-text .space {
  color: rgb(29, 45, 84);
}

.highlight-text {
  font-weight: 500;
  color: #031755;
}

/**************************************************************
 * LANDING SECTION & INTRO TEXT
 **************************************************************/
#landing {
  height: 100vh;
  background: #0e33c0; /* Last override applies */
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
  color: #e2e4f0;
  position: relative;
  overflow: hidden;
}

#intro-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 2;
  color: #d9eaee;
}

#landing img {
  height: 80px;
  mix-blend-mode: multiply;
}

#landing h1 {
  font-size: 80px;
  font-family: 'Oxanium', sans-serif;
  margin: 0;
  font-weight: 500;
  transition: opacity 1s ease;
}

#landing h2 {
  font-size: 30px;
  font-family: 'Work Sans', sans-serif;
  font-weight: 200;
  margin: 0;
}

#arrow-indicator {
  position: absolute;
  bottom: 6rem;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  border: 1px solid #e8e8e8;
  border-radius: 50%;
  background: rgba(206,206,206,0.1);
  cursor: pointer;
}

#arrow-indicator::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 10px;
  border: 1.5px solid #e3e3e3;
  border-right: none;
  border-top: none;
  transform: translate(-50%, -50%) rotate(-45deg);
}

/**************************************************************
 * MAP SECTION & CANVAS
 **************************************************************/
.content-wrapper {
  position: relative;
  background: #F4F4F4;
  height: auto;
}

#mapCanvas {
  position: absolute;
  width: 100vw;
  height: 100vh;
  top: 0;
  left: 0;
  background-color: transparent;
  pointer-events: none;
  z-index: 0;
}

.big-map-image {
  position: absolute;
  top: 18rem;
  left: 10rem;
  width: 100%;
  z-index: 0;
  opacity: 0;
  transition: opacity 1s ease;
}

/* Big map image visibility */
.big-map-image.map-visible:not(.findings-visible) {
  opacity: 0.9;
}
.big-map-image.findings-visible {
  opacity: 0.2;
}

#mapSection {
  position: relative;
  background: transparent;
  z-index: 1;
  padding: 2rem 0;
  color: rgb(29,45,84);
  display: block;
  height: 100vh;
}

.map-top-row {
  width: 80%;
  margin: 0 auto;
  padding-bottom: 1rem;
  text-align: center;
}

.map-top-row .project-intro {
  padding-top: 10rem;
}

.map-bottom-row {
  width: 100%;
  margin: 0 auto;
  position: relative;
}

.map-right-col {
  width: 100%;
}

/**************************************************************
 * TECHNICAL TERM POPUP
 **************************************************************/
.technical-term {
  height: 0.8rem;
  margin: 1px 8px 4px 2px;
  cursor: pointer;
}

#infoPopup {
  position: absolute;
  min-width: 180px;
  max-width: 300px;
  padding: 25px;
  background: rgba(7,85,208,0.33);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  color: #fff;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.8;
  z-index: 999999;
  display: none;
}

/**************************************************************
 * FINDINGS SECTION
 **************************************************************/
#findingsSection {
  position: relative;
  background: transparent;
  z-index: 1;
  padding: 2rem 0;
  color: rgb(29,45,84);
  display: block;
  height: 100vh;
  justify-content: center;
}

#findingsSection .scroll-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow-y: hidden;
}

.findings-block {
  height: 100vh;
  scroll-snap-align: start;
}

#findingsSection .scroll-container {
  scroll-snap-type: y mandatory;
  -webkit-overflow-scrolling: touch;
}

#findingsSection .project-intro {
  padding-top: 13rem;
}

/* Graphic Results */
.graphic-results {
  display: grid;
  grid-auto-rows: auto;
  gap: 1rem;
  width: 80%;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  padding-top: 3.5rem;
}

.graphic-label-col {
  display: flex;
  text-align: left;
}

.vertical-label {
  font-size: 0.8rem;
}

.graphic-charts-col {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.graphic-charts-col img {
  width: 28%;
  height: auto;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.project-intro {
  text-align: left;
  padding-top: 8rem;
  width: 80%;
  font-size: 18px;
  font-family: 'Work Sans', sans-serif;
  font-weight: 400;
  margin: 0 auto 2rem;
  color: rgb(29,45,84);
}

/**************************************************************
 * ENDING SECTION
 **************************************************************/
.end-page {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem 0;
  box-sizing: border-box;
  text-align: center;
  z-index: 2;
  color: rgb(29,45,84);
}

#findingsSection .findings-block-2 .project-intro {
  padding-top: 0;
}

#findingsSection .scroll-container {
    scroll-behavior: smooth;
}

/**************************************************************
 * FOOTER
 **************************************************************/
.footer-content {
  height: 100vh;
  box-sizing: border-box;
  padding: 2rem 0;
  z-index: 2;
}

.footer-container {
  display: flex;
  gap: 5rem;
  max-width: 1200px;
  margin: 0 auto;
  justify-content: space-around;
  margin-top: 7rem;
  width: 80%;
  background: #f4f4f492;
  color: rgb(29,45,84);
}

.footer-col-left,
.footer-col-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.footer-row h2 {
  font-family: 'Oxanium';
  margin: 0 0 0.5rem;
  font-size: 1.35rem;
  font-weight: 600;
  color: rgb(29,45,84);
}

.footer-row p {
  font-family: 'Work Sans', sans-serif;
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.4;
  font-weight: 400;
  color: rgb(29,45,84);
}

.role { 
  font-style: italic;
  margin-left: 0.4rem;
  color: rgb(94,104,127);
}

.team-title {
  font-weight: 500 !important;
}

.presslink a,
.publication-link,
.info-text a {
  outline: none;
  color: rgb(29,45,84);
}

.image-placeholder a {
  text-decoration: none;
  color: rgb(29,45,84);
  font-size: 0.95rem;
  line-height: 1.4;
}

a:hover {
  color: #0637D7;
}

.desc-text {
  padding-bottom: 0.7rem;
}

.header-background {
   background: #f4f4f41d;
   backdrop-filter: blur(1px);
   -webkit-backdrop-filter: blur(1px);
}
  

/**************************************************************
 * RESPONSIVE STYLES
 **************************************************************/
/* Tablet Landscape / Small Desktop (max-width: 1024px) */
@media only screen and (max-width: 1024px) {
  .header-container {
    padding: 0.75rem 1.5rem;
  }
  #intro-text,
  .project-intro,
  .graphic-results,
  .footer-container {
    width: 85%;
    max-width: 100%;
  }
  .section {
    height: auto;
    padding: 1.5rem 0;
  }
  #landing h1 {
    font-size: 3rem;
  }
  #landing h2 {
    font-size: 2rem;
    font-weight: 300;
  }
  .project-intro,
  .desc-text,
  .footer-row h2,
  .footer-row p {
  font-size: 1rem;
  }

  .vertical-label{
    font-size: .75rem;
  }

  .big-map-image {
    position: absolute;
    top: 18rem;
    left: 7rem;
    width: 150%;
    height: auto;
    z-index: 0;
  }

  .footer-content {
    height: 100vh;
    overflow-y: auto;
  }

  .header-container {
    grid-template-columns: 1fr auto 1fr;
  }
  
  .header-col-center {
    justify-self: center;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
  }

  .header-col-right {
    justify-self: end; 
    text-align: right; 
  }


}

/* Tablet Portrait (min-width: 481px) and (max-width: 768px) */
@media only screen and (min-width: 481px) and (max-width: 768px) {
  .header-container {
    padding: 1rem;
  }
  .header-col-left svg,
  .header-col-right svg {
    height: 1rem;
    width: auto;
  }
  .header-col-left svg {
    height: 1.1rem;
  }

  .header-container {
    grid-template-columns: 1fr auto 1fr;
  }

  .header-col-center {
    justify-self: center;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
  }

  .header-col-right {
    justify-self: end; 
    text-align: right; 
  }

  #landing img {
    height: 3rem;
    mix-blend-mode: multiply;
  }
  .header-title-text {
    font-family: 'Oxanium', sans-serif;
    font-size: 1.3rem;
  }
  #intro-text,
  .project-intro,
  .graphic-results,
  .footer-container {
    width: 90%;
    max-width: 100%;
  }
  .section {
    height: auto;
    padding: 1rem 0;
  }
  #landing h1 {
    font-size: 2rem;
  }
  #landing h2 {
    font-size: 1.4rem;
    font-weight: 300;
  }
  .project-intro,
  .desc-text,
  .footer-row h2,
  .footer-row p {
    font-size: 0.9rem;
  }
  .vertical-label {
    font-size: 0.7rem;
  }
  .big-map-image {
    position: absolute;
    top: 22rem;
    left: 0;
    width: 260%;
    height: auto;
    z-index: 0;
  }

  .footer-content {
    height: 100vh;
    overflow-y: auto;
  }

  #findingsSection .project-intro {
    padding-top: 10rem;
  }
  .graphic-results {
    padding-top: 0;
  }
  .graphic-charts-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }
  .graphic-charts-col img {
    width: 50%;
  }
  .footer-content {
    height: 100vh;
    overflow-y: auto;
  }
  .footer-container {
    flex-direction: column;
    gap: 1rem;
  }
  .footer-col-left,
  .footer-col-right {
    display: contents;
  }
  .footer-row {
    width: 100%;
    margin-bottom: 1rem;
  }
  .footer-row.desc { order: 1; }
  .footer-row.pub { order: 2; }
  .footer-row.press { order: 3; }
  .footer-row.team { order: 4; }
  .footer-row.support { order: 5; }
  .footer-row.more { order: 6; }
  
  .big-map-image {
    position: absolute;
    top: 30rem;
    left: 7rem;
    width: 150%;
    height: auto;
    z-index: 0;
  }
  #infoPopup {
    padding: 18px;
    font-size: 13px;
    line-height: 1.6;
    background: rgba(7,85,208,0.33);
  }
}

/* Mobile Small Devices (max-width: 480px) */
@media only screen and (max-width: 480px) {
  .header-container {
    padding: 1rem;
  }
  .header-col-left svg,
  .header-col-right svg {
    height: 1rem;
    width: auto;
  }
  .header-col-left svg {
    height: 1.1rem;
  }

  .header-container {
    grid-template-columns: 1fr auto 1fr;
  }
  .header-col-center {
    justify-self: center;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
  }

  .header-col-right {
    justify-self: end; 
    text-align: right; 
  }
  
  #landing img {
    height: 2.95rem;
    mix-blend-mode: multiply;
  }

  .header-title-text {
    font-family: 'Oxanium', sans-serif;
    font-size: 1.3rem;
  }
  #intro-text,
  .project-intro,
  .graphic-results,
  .footer-container {
    width: 90%;
    max-width: 100%;
  }
  .section {
    height: auto;
    padding: 1rem 0;
  }
  #landing h1 {
    font-size: 2rem;
  }
  #landing h2 {
    font-size: 1.4rem;
    font-weight: 200;
  }
  .project-intro,
  .desc-text,
  .footer-row h2,
  .footer-row p {
    font-size: 0.9rem;
  }
  .vertical-label {
    font-size: 0.7rem;
  }
  .big-map-image {
    position: absolute;
    top: 19rem;
    left: 0;
    width: 230%;
    height: auto;
    z-index: 0;
  }

  #findingsSection .scroll-container {
    scroll-behavior: smooth;
  }

  #findingsSection .project-intro {
    padding-top: 10rem;
  }
  .graphic-results {
    padding-top: 0;
  }
  .graphic-charts-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }
  .graphic-charts-col img {
    width: 50%;
  }
  .footer-content {
    height: 100vh;
    overflow-y: auto;
  }
  .footer-container {
    flex-direction: column;
    gap: 1rem;
  }
  .footer-col-left,
  .footer-col-right {
    display: contents;
  }
  .footer-row {
    width: 100%;
    margin-bottom: 1rem;
  }
  .footer-row.desc { order: 1; }
  .footer-row.pub { order: 2; }
  .footer-row.press { order: 3; }
  .footer-row.team { order: 4; }
  .footer-row.support { order: 5; }
  .footer-row.more { order: 6; }
  #infoPopup {
    padding: 18px;
    font-size: 13px;
    line-height: 1.6;
    background: rgba(7,85,208,0.33);
  }
}
