/* Styles */

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

* {
  margin : 0;
  scroll-behavior: smooth;
}

html {
  height: 100%;
}

body {
  min-height: 100%;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  color: white;
  background-color: #0F0F0F;
}

img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
}

input,
button,
textarea,
select {
    font: inherit;
}

p,h1,h2,h3,h4,h5,h6 {
    overflow-wrap: break-word;
}

a {
  text-decoration: none;
}

#root,
#__next {
    isolation: isolate;
}

#myCanvas {
  position: fixed;
  top:0;
  left:0;
  z-index: -10;
  opacity: 60%;
  width:100%;
  height:100%;
}

.wrapper {
  padding: 3em 5em;
}

.topbar {
  display : flex;
  justify-content: space-between;
}

header {
    margin-bottom : 12em;
}

.logo {
  display: flex;
  flex-direction: row;
  align-content: center;
  gap: 2em;
}

.logo img {
  width: 6em;
}

.logo h2 {
  font-size: 1.8rem;
  font-family: "Inter", sans-serif;
  color: white;
  font-weight: 600;
  font-style: normal;
  margin: auto;
  transition : all linear 0.3s;
}

.logo h2:hover {
  transform: rotate3d(1,0,0,180deg);
}

.stick {
  display: flex;
  flex-direction : row;
  gap: 2em;
}

nav {
  display: flex;
  flex-direction: column;
  gap: 2em;
  font-size: 1rem;
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-style: normal;
  align-items: center;
  /* width: 70%; */
}

nav >img {
  flex-shrink: 0;
  width: 5rem;
}

nav p {
  width: 100%;
  text-align: right;
  margin:auto;
  opacity: 50%;
  transition: all 0.5s linear;
}

.stick:hover>p {
  opacity: 100%;
}

#navlinks a.fadeIn {
  opacity: 1;
  transform: translateY(0px);
}

#navlinks {
  display :flex;
  position : absolute;
  flex-direction: column;
  gap: 2em;
  color : #FFFFFF;
  width: fit-content;
  font-size: 1rem;
  font-family: "Inter", sans-serif;
  right: 0.7rem;
  top: -10em;
}

#navlinks a {
  opacity: 0;
  text-align: center;
  color: #FFFFFF;
  transform: translateY(-10px);
  -webkit-transition: all 1s linear;
  -moz-transition: all 1s linear;
  -o-transition: all 1s linear;
  transition: all 1s linear;
}

#navlinks a:nth-child(2) { transition-delay: .1s }
#navlinks a:nth-child(3) { transition-delay: .2s }
#navlinks a:nth-child(4) { transition-delay: .3s }
#navlinks a:nth-child(5) { transition-delay: .4s }
#navlinks a:nth-child(6) { transition-delay: .5s }
#navlinks a:nth-child(7) { transition-delay: .6s }
#navlinks a:nth-child(8) { transition-delay: .7s }


.body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position : relative;
}

.splash {
  width:60%;
  font-size: 2rem;
  font-family: "Major Mono Display", monospace;
  text-shadow: 0px 0px 5px #FFF;
  font-weight: 400;
  font-style: normal;
  text-align: center;
  margin-bottom: 30em; /* Space between mains, probably will be tweaked*/
}

.stats {
    font-family: "Inter",sans-serif;
    display: flex;
    flex-direction: column;
    align-content: center;
    gap: 3em;
    margin-bottom: 60em;
}

.stats h1 {
  text-align: center;
  font-size: 5rem;
}

.statbox {
  display : flex;
  flex-direction: row;
  gap : 6em;
}

.services {
  padding-top: 5em;
  display : flex;
  flex-direction: column;
  gap : 5em;
  font-family : "Inter", sans-serif;
  text-align: center;
  margin-bottom: 5em;
}

.services h1 {
  text-align: center;
  font-size: 5rem;
}

.services-list {
  display : flex;
  flex-direction: row;
  justify-content: space-around;
}

.service {
  border-radius: 20px;
  align-content: center;
  justify-content: center;
  padding : 3em;
  width: 25%;
  display : flex;
  flex-direction: column;
  gap: 3em;
  backdrop-filter: blur(40px);
  box-shadow: 5px 5px 5px black;
  opacity: 0;
  animation-fill-mode: forwards;
}

.service > img {
  margin: 0px auto;
  width:80%;
}

.mission {
  font-family : "Inter", sans-serif;
  text-align: center;
  display : flex;
  flex-direction : column;
  gap : 3em;
  align-content: center;
  align-items: center;
}

.mission h1 {
    font-size: 5rem;
}


.mission-text img {
  width: 100%;
  object-fit: contain;
}

.mission-text {
  display : flex;
  flex-direction: row;
  gap: 3em;
  width: 80%;
  margin: 0px auto;
  backdrop-filter: blur(40px);
  box-shadow: 5px 5px 5px black;
  border-radius: 20px;
  padding : 3em;
  justify-content: center;
  align-items: center;
}

.join-us {
  margin-top: 20em;
  padding-top: 3em;
  font-family : "Inter", sans-serif;
  text-align: center;
  display : flex;
  flex-direction : row;
  gap : 3em;
  align-content: center;
  align-items: center;
}

.join-us h1 {
  font-size: 5rem;
  width: 80%;
}


.join-list {
  display : flex;
  flex-direction: column;
  justify-content: space-around;
  gap: 2em;
}

.join {
  border-radius: 20px;
  align-content: center;
  justify-content: center;
  padding : 2em;
  width: 100%;
  display : flex;
  flex-direction: column;
  text-align: left;
  backdrop-filter: blur(40px);
  box-shadow: 5px 5px 5px black;
  gap:2em;
  justify-content: space-around;
  animation-fill-mode: forwards;
}

.join-us h3 {
  text-align: left;


}

.positions {
  margin-top: 6em;
  padding-top: 3em;
  font-family : "Inter", sans-serif;
  text-align: center;
  display : flex;
  flex-direction : column;
  gap : 3em;
  align-content: center;
  align-items: center;
}

.positions h1 {
  font-size: 5rem;
}

.positions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2em;
  width: 100%;
}

.position {
  backdrop-filter: blur(40px);
  border-radius: 10px;
  padding: 1.5em;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s;
}

.position h3 {
  margin-bottom: 0.5em;
  font-size: 1.5rem;
  font-weight: 600;
}

.position p {
  margin-bottom: 0;
  font-size: 1rem;
  font-weight: 400;
}

.special {
  display: flex;
  flex-direction: row-reverse;
  gap: 2em;
}

.form-links {
  display: flex;
  flex-direction: row;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 2em;

}

.form-links {
  display: flex;
  flex-direction: row;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 2em;
  opacity: 0;
  animation: fadeIn 1s forwards;
}

.form-links a, .form-links a:visited {
  padding: 1em 1em;
  color: white;
  border-radius: 2%;
  background-color: rgb(93, 0, 255);
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.form-links a:hover {
  transform: scale(1.1);
  background-color: rgb(53, 0, 155);
}


@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.position:hover {
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .positions-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .positions-grid {
    grid-template-columns: 1fr;
  }
}



.links {

  display: flex;
  flex-direction:row;
  gap: 2em;
  width: fit-content;
  align-content: center;

}

.contact-us {
  padding: 2em;
  margin-top: 10em;
  display: flex;
  flex-direction : column;
  gap: 2em;
  width: fit-content;
  align-content: center;
  text-align: center;
    font-family: "Inter", sans-serif;
  font-size: 1em;
}

.contact-us img {
  width: 3em;
}

.links p {
  font-family: "Inter", sans-serif;
  font-size: 2em;
}

@keyframes slide {
  0% {
    transform: translate(0px,5px) scale(1.2);
    opacity: 0%;
  }
  100% {
    transform: translate(0px,0px) scale(1);
    opacity: 100%;
  }
}



.slideIn {
  animation : slide 0.5s cubic-bezier(.18,.89,.32,1.28);
  animation-fill-mode: both;
}
#service-list{ animation-delay : 0.3s}
#two{ animation-delay: 0.5s;}
#three{ animation-delay: 1s;}


/* spotlight css begins here */


.spot-container {
  margin-top: -5em;
  font-family: "Inter", sans-serif;
  display : flex;
  flex-direction : column;
  gap: 5em;
  max-width: 100vw;
}

.research {
  margin : 0px auto;
  width: 80%;
  display : flex;
  flex-direction : column;
  gap: 3em;
}

.research h1 {
  font-size: 4em;
  text-align : center;
}

.articles {
  display: flex;
  height: fit-content;

  overflow-x: auto;
  scroll-snap-type: x mandatory;
  align-content: center;


  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  gap: 3em;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.articles::-webkit-scrollbar {
  display: none;
}
.articles::-webkit-scrollbar-track {
  background: transparent;
}

.article {
  justify-content: space-around;
  width: 100%;
  background-color: rgb(14,14,14,0.3);
  padding: 4em;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 20px;
  display : flex;
  flex-direction : column;
  gap: 2em;
  scroll-snap-align: start;
  flex-shrink: 0;
  transform-origin: center center;
transform: scale(1);
transition: transform 0.5s;
position: relative;
}

.images {
  display: flex;
  flex-direction: row;
  gap: 2em;
}

.image a {
  color: #FFF;
}

.image img {
  border-radius: 4px;
}

.bound-box {
  display: flex;
  flex-direction: column;
  gap: 1em;
  justify-content: center;
}

.scroll-links {
  display: flex;
  flex-direction: row;
  gap: 3em;
  align-items: center;
  justify-content: center;
}

.scroll-links a {
  color: #FFF;
  padding: 2em;
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border-radius:2em;
  background-color: rgba(14,14,14,0.2);
  transition: all 0.5s cubic-bezier(.18,.89,.32,1.28);
}

.scroll-links a:hover {
  transform: scale(1.1);
}

.scroll-links a:active {
  transform: scale(1.2);
}

.algorithms {
  margin : 0px auto;
  width: 80%;
  display : flex;
  flex-direction : column;
  gap: 3em;
}

.algorithms h1 {
  font-size: 4em;
  text-align : center;
}

.emergency {
  display : flex;
  flex-direction: column;
}

@media (max-width: 1250px) {
  header {
    margin-bottom: 46em;
  }
  .splash {
    margin-bottom: 40em;
  }
  .services-list {
    flex-direction :column;
    gap: 3em;
  }
  .service {
    width: 100%;
    flex-direction : row;
  }
  .emergency {
    justify-content: space-around;
  }
  .mission-text {
    flex-direction: column;
  }
  .mission-text img {
    width: 50%;
  }
  .join-us {
    margin-top: 40em;
  }
  .join-us h1 {
    width: 200%;
  }
  .special {
    flex-direction: column;
  }
}
