@font-face {
  font-family: "Montserrat";
  src: url(/src/font/Montserrat-VariableFont_wght.ttf);
}

:root {
  /* colors */

  --white: #fff;
  --accent: #005252;
  --dark: #010006;
  --green: #00b800;
  --red: #ec0b43;
  --blue: #132350;
  --blue-2: #19c4d0;

  --gradient: linear-gradient(145deg, rgba(0, 11, 79, 1) 0%, rgba(0, 11, 79, 1) 40%, rgba(1, 0, 6, 1) 100%);
  --light-gradient: linear-gradient(90deg, rgba(0, 0, 0, 1) 0%, rgba(25, 196, 208, 1) 65%, rgba(25, 196, 208, 1) 100%);

  /* font-sizes */
  --fs-900: clamp(5rem, 8vw + 1rem, 9.375rem);
  --fs-800: 4rem;
  --fs-700: 3rem;
  --fs-650: 2.5rem;
  --fs-600: 2rem;
  --fs-550: 1.5rem;
  --fs-medium: clamp(1rem, 0.938vw + 0.625rem, 1.75rem);
  --fs-small: clamp(0.75rem, 1.875vw + 0.375rem, 1.125rem);
  --fs-nav: clamp(1rem, 1.25vw + 0.5rem, 2rem);

  /* font-families */
  --ff-serif: Arial, Helvetica, serif;
  --ff-sans-normal: "Montserrat", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  scroll-behavior: smooth;
}

/*  *::-webkit-scrollbar {
	width: 0;
  }
  
  *::-webkit-scrollbar-track {
	background: transparent;
  }
  
  *::-webkit-scrollbar-thumb {
	background: transparent;
	border: none;
  } */

body,
h1,
h2,
h3,
h4,
h5,
p,
figure,
picture {
  margin: 0;
  padding: 0;
}

html {
  overflow-y: scroll;
}

html,
body {
  position: relative;
  width: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

::-webkit-scrollbar {
  height: 12px;
  width: 12px;
  background: #000;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(0deg, rgba(255, 255, 255, 1) 0%, rgba(25, 196, 208, 1) 65%, rgba(25, 196, 208, 1) 100%);
  -webkit-border-radius: 10px;
  -webkit-box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.75);
}

::-webkit-scrollbar-corner {
  background: #000;
}

html,
body,
main {
  position: relative;
  z-index: -10;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
  font-weight: 400;
}

/* make images easier to work with */
img,
picture {
  max-width: 100%;
  display: block;
}

/* make forms elements easier to work with */
input,
button,
textarea,
select {
  font: inherit;
}

/* remove animations for people who have them turned off */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

button {
  cursor: pointer;
}

/* --------------------------  */
/* Utility Classes             */
/* --------------------------  */
.flex {
  display: flex;
  gap: var(--gap, 0.25rem);
}

.relative {
  position: relative;
}

.d-block {
  display: block;
}

.hidden {
  display: none;
}

.flow > *:where(:not(:first-child)) {
  margin-top: var(--flow-space, 1rem);
}

.container {
  padding: 4rem 2rem;
  margin-inline: auto;
  max-width: min(80rem, 95%);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap; /* added line */
  border: 0;
}

/* colors */
.bg-dark {
  background-color: var(--dark);
}
.bg-accent {
  background-color: var(--accent);
}
.bg-accent-2 {
  background-color: var(--accent-2);
}
.bg-accent-3 {
  background-color: var(--accent-3);
}
.bg-white {
  background-color: var(--white);
}

.text-black {
  color: #000;
}
.text-accent {
  color: var(--accent);
}
.text-accent-2 {
  color: var(--accent-2);
}
.text-white {
  color: var(--white);
}
.text-green {
  color: var(--green);
}
.text-red {
  color: var(--red);
}

/* typography */
.ff-serif {
  font-family: var(--ff-serif);
}
.ff-sans-normal {
  font-family: var(--ff-sans-normal);
}

.letter-spacing-1 {
  letter-spacing: 4.75px;
}
.letter-spacing-2 {
  letter-spacing: 2.7px;
}
.letter-spacing-3 {
  letter-spacing: 2.35px;
}

.uppercase {
  text-transform: uppercase;
}

.right {
  text-align: right;
}

.left {
  text-align: left;
}

.center {
  text-align: center;
}

.justify {
  text-align: justify;
}

.bold {
  font-weight: 700;
}

.fs-900 {
  font-size: var(--fs-900);
}
.fs-800 {
  font-size: var(--fs-800);
}
.fs-700 {
  font-size: var(--fs-700);
}
.fs-650 {
  font-size: var(--fs-650);
}
.fs-600 {
  font-size: var(--fs-600);
}
.fs-550 {
  font-size: var(--fs-550);
}
.fs-medium {
  font-size: var(--fs-medium);
}
.fs-small {
  font-size: var(--fs-small);
}
.fs-nav {
  font-size: var(--fs-nav);
}

.fs-900,
.fs-800,
.fs-medium {
  line-height: 1.2;
}

body {
  position: relative;

  background-image: url(/src/background.jpg);
  background-size: 100% 100%;
  z-index: -10;
}

.primary-header {
  gap: 1rem;
  width: 100%;
  max-width: 100%;
  height: 100px;

  align-items: center;
  background: rgb(0, 11, 79);
  background: var(--gradient);
  box-shadow: 0px 5px 2px var(--blue);
}

.mobile-nav-toggle {
  display: none;
}

/* button */
.btn {
  padding: 1rem 2rem;
  margin-inline: auto;

  font-family: var(--ff-serif);

  color: white;
  background: linear-gradient(145deg, rgba(0, 11, 79, 1) 0%, rgba(0, 11, 79, 1) 40%, rgba(1, 0, 6, 1) 100%);
  border: 0;
  border-radius: 20px;
}

.btn--x {
  width: clamp(25px, 4vw, 40px);
  height: clamp(25px, 4vw, 40px);
  margin-left: auto;

  background-image: url(/src/x-icon.png);
  background-color: transparent;
  background-size: cover;
  border: 0;
}

/* Navigation */
.primary-navigation {
  padding: 0;
  margin: 0;

  list-style: none;
  font-size: var(--fs-nav);
}

.primary-navigation li {
  position: relative;
}

.active {
  border-bottom: 2px solid white;
}

.primary-navigation a {
  text-decoration: none;
  font-weight: 400;
}

.primary-navigation a:visited,
.primary-navigation a {
  color: white;
  margin: 0 0 1rem;
}

.primary-navigation a:hover {
  border-bottom: 2px solid white;
}

button {
  margin: 0;
  padding: 0;
}

.header-logo {
  filter: saturate(1000%);
}

.header-pic {
  width: 100px;
  height: 100px;
  margin-left: 1rem;
  background-image: url(/src/globe-full.png);
  background-size: cover;
  background-position: center;
  opacity: 0.5;
}

.header-link {
  color: var(--white);
  text-decoration: none;
}

.header-link h2 {
  font-weight: 500;
  text-transform: uppercase;
  text-shadow: 0px 0px 10px var(--white);
  letter-spacing: 2px;
}

.logo {
  max-height: 80px;
  max-width: 33vw;

  object-fit: cover;
}

@media (max-width: 40em) {
  .primary-navigation {
    --gap: 2em;

    position: fixed;
    z-index: 9998;
    inset: 0 0 0 30%;

    flex-direction: column;
    padding: min(40vh, 30rem) 2em;

    background: #132350;
    transform: translateX(100%);
    transition: transform 350ms ease-out;
  }

  .primary-navigation[data-visible="true"] {
    transform: translateX(0%);
    transition: transform 350ms ease-in;
  }

  .active {
    border-bottom: 2px solid white;
  }

  .primary-navigation a:visited,
  .primary-navigation a {
    color: white;
    margin: 0 0 1rem;
  }

  .primary-navigation a:hover {
    border-bottom: 2px solid white;
  }

  .mobile-nav-toggle {
    display: block;
    position: relative;
    width: 2rem;
    margin-left: auto;
    margin-right: 2rem;
    aspect-ratio: 1;

    background-color: transparent;
    background-image: url("/src/menu-icon.svg");
    background-repeat: no-repeat;
    background-size: contain;
    border: 0;
    z-index: 9999;
  }

  .mobile-nav-toggle[aria-expanded="true"] {
    position: fixed;
    right: 1rem;
    background-color: transparent;
    background-image: url("/src/x-icon.png");
    background-size: cover;
    filter: invert(100%);
    z-index: 9999;
  }
}

@media (min-width: 40em) {
  nav {
    margin-left: auto;
  }
  .primary-navigation {
    --gap: clamp(0.5rem, 1vw + 0.7rem, 3rem);
    padding-block: 2rem;
    padding-inline: clamp(1rem, 2.5vw, 3rem);
  }
  .header-logo {
    flex-shrink: 0;
  }
}

.hero {
  position: relative;
  width: 100%;
  height: calc(100vh - 100px);
  /* background-color: white; */

  align-items: flex-end;
}

.hero__image {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 50%;
  transform: translateX(-50%);

  box-shadow: 5px 5px 2px var(--blue);
  border-radius: 0px 0px 5px 5px;
}

.hero__image::after {
  content: " ";
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;

  background-image: linear-gradient(rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.2) 75%, rgba(0, 0, 0, 1) 100%);
}

.hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0px 0px 5px 5px;
}

.hero__p {
  position: relative;
  width: 100%;
  max-width: min(80rem, 95%);
  margin-inline: auto;

  border-radius: 5px;
  z-index: 1;
}

.hero__header {
  font-size: clamp(2rem, 1.233vw + 1.711rem, 2.5rem);
  font-weight: 500;
  text-align: center;
  text-shadow: 2px 2px 0px var(--dark);
}

.page-content {
  position: relative;
  margin: 4rem auto;

  background-color: white;
  border-radius: 5px;
  box-shadow: 3px 3px 5px #333;
  z-index: -5;
}

.about-us {
  gap: 4rem;
  flex-direction: column;
}

.about-us__article {
  gap: 1rem;
  flex-direction: column;
}

.about-us__article h2 {
  position: relative;
  display: block;
  width: fit-content;
  margin: 1rem 0rem 1rem 3.75rem;

  font-weight: 700;
  letter-spacing: 1px;

  background: var(--light-gradient);
  border-radius: 10px;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* .about-us__article:nth-of-type(even) h2 {
    margin-left: auto;
} */

.about-us__article h2::after {
  content: " ";
  position: absolute;
  width: 60px;
  height: 60px;
  top: -10px;
  right: 102%;

  background-image: url(/src/circuit.svg);
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -1;
}

/* .about-us__article:nth-of-type(even) h2::after {
    left: -60px;
} */

.about-us__article ul {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
}

.about-us__article li {
  flex-basis: calc(450px - 1rem);
  display: flex;
  gap: 1rem;
  margin-inline: auto;

  align-items: center;
}

.list__img {
  min-width: 100px;
  min-height: 100px;
  object-fit: cover;
}

.board {
  position: relative;
  flex-wrap: wrap;
  gap: 2rem;
}

.about-us__board-header {
  position: relative;
}

.board > a {
  flex: 1 500px;
  position: relative;
}

.board__member {
  display: flex;
  position: relative;
  flex-direction: column;
  gap: 1rem;
  height: 100%;
  padding: 2rem;

  font-size: var(--fs-medium);

  border: 2px solid #333;
  border-radius: 5px;
  background-color: var(--white);
  text-align: center;
}

.board__member:hover {
  cursor: pointer;
}

.board__member::after {
  content: " ";
  position: absolute;
  width: 100%;
  height: 100%;
  top: 10px;
  left: -10px;
  z-index: -1;

  border-radius: 5px;
  background-image: var(--light-gradient);
}

.board__member img {
  width: 200px;
  height: 200px;
  margin-inline: auto;
  top: 0;
  left: 0;

  object-fit: cover;
  object-position: right center;
}

.bio {
  flex-direction: column;
  gap: 1rem;
  position: fixed;
  width: min(90%, 1024px);
  min-height: min-content;
  margin: auto;
  padding: 2rem;
  top: 25px;
  left: 50%;
  transform: translateX(-50%);

  background-color: white;
  border: 5px solid #333;
  border-radius: 10px;

  z-index: 1000;
}

.bio img {
  width: 150px;
  height: 150px;
  margin-inline: auto;
}

.bio p {
  max-width: 768px;
  margin-inline: auto;
}

.contact {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.contact__left,
.contact__right {
  width: 100%;
}

.contact__left a,
.contact__right a {
  display: flex;
  width: fit-content;
  padding: 0.5rem 0;

  color: var(--dark);
  text-decoration: none;
}

.contact__right img {
  padding-inline: 3px;
}

.contact__info {
  font-size: var(--fs-550);
  border-bottom: 2px solid var(--dark);
}

.contact h2 {
  width: 100%;
}

@media (min-width: 640px) {
  .contact__left,
  .contact__right {
    width: calc(50% - 1rem);
  }
}

footer {
  background: var(--gradient);
}

.footer__section {
  position: relative;
  justify-content: space-between;
  min-width: min(80rem, 95vw);
  margin-inline: auto;
}

.footer__logo {
  position: relative;
  width: 350px;
  height: 100px;
  margin-inline: auto;
  object-fit: contain;
}

/*   .footer__section::after {
      content: " ";
      position: absolute;
      width: calc(100vw / 4);
      min-height: 100%;
      top: 0;
      right: 100%;
  
      background-image: url(/src/globe-full.png);
      background-position: center;
      background-size: cover;
      opacity: .5;
  } */

footer ul {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  gap: 01rem;
  padding: 0;
}

footer li {
  list-style: none;
  text-align: center;
}

footer a {
  height: 175px;
  font-size: var(--fs-550);
  font-family: var(--ff-sans-normal);
  font-weight: 700;
  color: white;
  text-decoration: none;
}

footer a:visited {
  color: white;
}

.footer__section li > a:hover {
  border-bottom: 3px solid white;
}

@media (max-width: 768px) {
  .footer__section {
    flex-direction: column;
    --gap: 1rem;
  }

  .footer__logo {
    height: 175px;
  }
}

@media (min-width: 768px) {
  .footer__section {
    padding: 1rem 0rem;
  }

  footer a {
    height: 100px;
  }

  footer ul {
    flex-direction: row;
  }
}
