/* General */
* {
  box-sizing: border-box;
  /* margin: 0;
    padding: 0; */
  line-height: 1.5rem;
}
.flex {
  align-items: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
html {
  scroll-behavior: smooth;
}
h1,
h4,
p {
  margin: 0;
  padding: 0;
}

/* Nav */
.navbar_header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 200;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 20px 60px;
  background-color: rgb(0, 10, 34);
  /* background-color: #24252a; */
}
.logo,
.logo:hover,
.logo:active,
.logo:visited {
  margin-right: auto;
  color: white;
  text-decoration: none;
  font-size: 24px;
  font-weight: 500;
}
.nav__links {
  list-style: none;
  display: flex;
}
.nav__links a,
.cta {
  font-family: "Montserrat", sans-serif;
  font-weight: 500;
  color: #edf0f1;
  text-decoration: none;
}
.nav__links li {
  padding: 0px 20px;
}
.nav__links li a {
  transition: all 0.3s ease 0s;
}
.nav__links li a:hover {
  color: #0088a9;
}
.cta {
  margin-left: 20px;
  padding: 9px 25px;
  background-color: rgba(0, 136, 169, 1);
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease 0s;
}
.cta:hover {
  background-color: rgba(0, 136, 169, 0.8);
}
.menu {
  display: none;
}
.langSlash {
  color: #edf0f1;
  padding: 0 10px;
}
.langLink {
  padding: 0 !important;
}
.activeLang {
  text-decoration: underline !important;
  text-underline-position: under;
}
.menu_additional {
  display: none;
}

/* Mobile Nav */
@media only screen and (max-width: 800px) {
  .navbar_header {
    flex-wrap: wrap;
    align-items: center;
    padding: 20px 8%;
  }
  .cta {
    display: none;
  }
  .menu {
    display: initial;
  }
  nav {
    order: 3;
  }
  .navbar_container {
    width: 100%;
  }
  .nav__links {
    display: none;
    width: 100%;
    flex-direction: column;
  }
  .nav__links li {
    text-align: center;
    padding: 0;
  }
  .nav__links li a {
    display: block;
    width: 100%;
    padding: 1rem;
  }
  .nav__links li a:hover {
    background-color: #555;
  }
  .nav__links.active {
    display: flex;
    margin-top: 20px;
  }
  .menu_additional {
    display: initial;
  }
}

/* Index */
body,
html {
  height: 100%;
  min-height: 250px;
  margin: 0;
}
.slogan {
  font-family: "Montserrat", sans-serif;
  font-weight: 500;
  color: #edf0f1;
  text-align: center;
  padding: 8vh;
  padding-top: 20vh;
  font-variant: small-caps;
  font-style: oblique;
}
.services {
  display: grid;
  grid-template-rows: 1fr 1fr 1fr;
  grid-template-columns: 1fr 1fr;
  row-gap: 15vh;
  text-align: center;
  font-family: "Montserrat", sans-serif;
  font-weight: 500;
  color: #edf0f1;
  padding-top: 0vh;
  font-variant: small-caps;
  font-style: oblique;
}
.services a {
  color: #edf0f1;
  padding: 20px;
  border-radius: 20px;
  text-decoration: none;
}
.services a:hover {
  background-color: rgb(48, 60, 97);
  border: solid black 2px;
}
#AI_Service {
  grid-column: span 2;
}
#home {
  background: rgb(1, 8, 32);
  height: 100%;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-size: cover !important;
  margin: 0;
  padding: 0;
}

/* About Section */
.about {
  padding-top: 8vh;
  padding-bottom: 3vh;
}
.sectionTitle {
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  color: black;
  text-align: center;
  margin-top: 6vh;
  font-variant: small-caps;
  font-style: oblique;
}
.about_grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  font-family: "Montserrat", sans-serif;
  text-align: center;
  margin: 3vh 3vw;
}
.about_container {
  margin: 0 2rem;
  justify-content: flex-start;
}
.profilePic {
  display: block;
  width: 250px;
  height: 250px;
  object-fit: cover;
  border-radius: 50%;
  border: solid;
  border-color: rgb(218, 228, 255);
  margin: 2vh auto;
}
.about p {
  font-family: "Montserrat", sans-serif;
  font-size: 17px;
  font-weight: 400;
  max-width: 500px;
  margin: 0 auto;
}
.skills_grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-width: 600px;
  width: 100%;
  max-width: 1000px;
}
.tableSkills {
  margin: 0.5rem;
  padding: 0.5rem 1rem 1rem 1rem;
  text-align: left;
  border: 3px solid rgb(130, 146, 194);
  border-radius: 5px;
  min-width: 200px;
  /* width: 32vw; */
}
.tableSkills th {
  height: 4vh;
  text-align: center;
}
.tableSkills td {
  height: 2.2rem;
  position: relative;
}
.skillName {
  width: 12em;
  font-size: 14px;
}
.tableSkills p {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1.4rem;
  margin-top: -0.8rem;
  text-align: end;
  padding-right: 0.5rem;
  font-size: 12px;
  z-index: 100;
}
.bar {
  background: rgba(230, 230, 230, 0.425);
  z-index: 0 !important;
}
.tableSkills div {
  position: absolute;
  top: 50%;
  left: 0;
  background: rgb(167, 190, 253);
  height: 1.4rem;
  margin-top: -0.8rem;
  z-index: 50;
}

/* Mobile About */
@media only screen and (max-width: 1000px) {
  .about_grid {
    grid-template-columns: 1fr;
    margin-left: 0;
    margin-right: 0;
  }
  .about_container {
    margin-bottom: 6rem;
  }
  .tableSkills {
    width: 70vw;
  }
  .skills_grid {
    grid-template-columns: 1fr;
    min-width: 300px;
    width: auto;
  }
}

/* Projects Section */
.projects {
  background: rgb(8, 23, 63);
  /* color: #edf0f1; */
  padding: 5vh 0;
}
.projects h1 {
  color: #edf0f1;
}
.projectsSelectorGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(5rem, 14rem));
  margin-top: 50px;
  justify-content: center;
}
.projectsSelectorGrid > button {
  color: #edf0f1;
  font-size: 18px;
  margin: 10px 0;
  padding: 0.5rem;
  background: none;
  border: none;
  border-radius: 5px;
  transition: all 0.5s ease-in-out;
}
.projectsSelectorGrid > button:hover {
  cursor: pointer;
}
.projectsSelectorGrid > button.activeSelector {
  background: white;
  color: black;
}
.projectsGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, 18rem);
  grid-auto-rows: 18rem;
  gap: 20px;
  color: black;
  margin: 2vh 10vw;
  padding: 10px;
  justify-content: center;
}
.projectComponent {
  position: relative;
  display: inline-block;
  background: white;
  font-family: "Montserrat", sans-serif;
  font-weight: 500;
  transition: all 0.2s ease-in-out;
}
.projectComponent:hover {
  transform: scale(1.05);
}
.projectComponent img {
  width: 100%;
  height: 75%;
  object-fit: cover;
}
.projectComponent p {
  padding: 0 1rem;
}
.moreInfoButtonWrapper {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  justify-content: center;
  width: 100%;
  height: 75%;
  z-index: 5;
  /* transition: all .2s ease-in-out; */
}
.moreInfoButtonWrapper:hover {
  background: rgba(255, 255, 255, 0.75);
}
.moreInfoButton {
  font-size: 18px;
  position: absolute;
  top: 7rem;
  background: white;
  padding: 0.5rem;
  border: rgb(167, 190, 253) 5px solid;
  border-radius: 5px;
  text-decoration: none;
  color: black;
  opacity: 0;
  transition: all 0.2s ease-in-out;
}
.moreInfoButtonWrapper:hover .moreInfoButton {
  display: initial;
  opacity: 1;
}
.moreInfoButton:hover {
  cursor: pointer;
}

/* Modal */
.modal-wrap-whatever {
  height: 100vh;
  position: fixed;
  width: 100vw;
  top: 0;
  left: 0;
  z-index: 300;
  pointer-events: none;
}
.modal {
  font-family: "Montserrat", sans-serif;
  position: fixed;
  opacity: 0;
  transition: 200ms ease-in-out;
  z-index: 1000;
  background-color: white;
  width: 750px;
  max-width: 750px;
  max-height: 90%;
  overflow: hidden;
  overflow-y: auto;
}
.modal.active {
  opacity: 1;
  pointer-events: all;
}
@media only screen and (max-width: 1000px) {
  .modal {
    width: 80vw;
  }
}
@media only screen and (max-height: 900px) {
  .modal {
    width: 80vh;
  }
}
@media only screen and (max-height: 600px) {
  .modal {
    width: 450px !important;
  }
}
/* Mobile Modal */
@media only screen and (max-width: 800px) {
  .modal {
    width: 90vw;
    height: 90vh;
  }
}

/* Modal Image */
.modal-image {
  width: 100%;
  height: 50vh;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 3px solid black;
}
.modal-image img {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

/* Modal Body */
.modal-body {
  padding: 10px 30px;
}
.modal-body > h3 {
  margin: 1rem 0;
}
.modal-body > h4 {
  margin: 1rem 0;
}
.modal-body > p {
  line-height: 1.5em;
  text-align: justify;
}
.keywords {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  margin: 1rem 0;
}
.keywords h4 {
  display: inline-block;
}
.keywords p {
  display: inline-block;
  text-align: center;
  margin: 0 0.2rem;
  padding: 0.1rem 0.2rem;
  background: rgb(253, 252, 167);
  border: 1px rgb(145, 114, 48) solid;
  border-radius: 0.5rem;
}

/* Modal Close Button */
.modal-body .close-button {
  display: inline-block;
  margin-left: auto;
  cursor: pointer;
  border: 1px solid black;
  outline: none;
  background: none;
  font-size: 1.5rem;
  font-weight: bold;
  border-radius: 5px;
  height: 1.5em;
  line-height: 1.5em;
  width: 1.5em;
  text-align: center;
  vertical-align: center;
}

.modal-body .close-button.active {
  pointer-events: all;
}

/* Overlay */
#overlay {
  position: fixed;
  opacity: 0;
  transition: 200ms ease-in-out;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgb(0, 0, 0);
  pointer-events: none;
  z-index: 20;
}
#overlay.active {
  opacity: 0.7;
  pointer-events: all;
  cursor: pointer;
}

/* Contact Section */
.contact {
  font-family: "Montserrat", sans-serif;
}

.contact > h3 {
  text-align: center;
  margin: 50px;
}

.contact > form {
  display: grid;
  text-align: center;
  margin: 50px auto;
  padding: 30px;
  border-radius: 20px;
  background: rgb(8, 23, 63);
  max-width: 600px;
}

.contact > form > .field {
  background: rgb(214, 239, 250);
  color: black;
  border: none;
  padding: 5px 10px;
  margin: 5px;
  border-radius: 5px;
}

.contact > form > .field:focus {
  background: rgb(241, 251, 255);
}

.contact > form > .button {
  color: #edf0f1;
  font-size: 18px;
  width: 25%;
  padding: 5px;
  margin: 5px auto;
  margin-top: 20px;
  background: rgb(27, 42, 82);
  border: #edf0f1 3px solid;
  border-radius: 10px;
}

.contact > form > .button:hover {
  cursor: pointer;
  /* color: #0088a9; */
  background: rgb(79, 139, 119);
  /* border: #0088a9 3px solid; */
}

.contact > form > textarea {
  height: 200px;
}
.messages {
  text-align: center;
}

/* Services Mobile Version */
@media only screen and (max-width: 500px) {
  .services {
    grid-template-rows: 1fr 1fr 1fr 1fr 1fr 1fr;
    grid-template-columns: 1fr;
    row-gap: 0;
  }
  .services > h2 {
    margin: 15px auto;
  }
  #AI_Service {
    grid-column: span 1;
  }
  .slogan {
    margin-bottom: 30vh;
  }
  .tableSkills {
    width: 90vw;
  }
}

/* Services Thin Height */
@media only screen and (max-height: 600px) {
  .services {
    row-gap: 0;
  }
}

/* Services Ultra-Thin Height */
@media only screen and (max-height: 400px) {
  .services {
    padding-top: 0;
  }
}

/* Experience Section */
.sectionTitleExp {
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  color: black;
  text-align: center;
  /* margin-top: 6vh; */
  margin-bottom: 3vh;
  font-variant: small-caps;
  font-style: oblique;
}
.experience {
  background: rgb(0, 10, 34);
  min-height: calc(100% - 200px);
  color: #edf0f1;
  padding: 4vh 0;
}
.experience h1 {
  color: #edf0f1;
}
.experience a {
  color: #edf0f1;
}
.experienceTree {
  margin: 0 60px;
}
.experienceTree li {
  margin-top: 10px;
  font-size: medium;
}
/* First level titles */
.experienceTree > ul > li {
  font-size: large;
  margin-top: 20px;
}
/* Remove margins and padding from the parent ul */
#myUL {
  margin: 0;
  padding: 0;
}
/* Remove default bullets */
ul,
#myUL {
  list-style-type: none;
}
/* Style the caret/arrow */
.caret {
  cursor: pointer;
  /* user-select: none;  Prevent text selection */
}
/* Create the caret/arrow with a unicode, and style it */
.caret::before {
  transition: all 0.5s ease;
  content: "\25B6";
  color: #edf0f1;
  display: inline-block;
  margin-right: 6px;
}
/* Rotate the caret/arrow icon when clicked on (using JavaScript) */
.caret-down::before {
  transition: all 0.5s ease;
  transform: rotate(90deg);
}
/* Show the nested list when the user clicks on the caret/arrow (with JavaScript) */
.active {
  display: block;
}

/* Footer */
footer {
  color: #edf0f1;
  text-align: center;
  background: rgb(0, 10, 34);
  padding: 20px;
}
.highlight {
  color: rgb(167, 190, 253);
}
.fa {
  color: white;
  background: #007bb5;
  /* margin: 20px; */
  padding: 15px 17px;
  font-size: 25px !important;
  text-decoration: none;
}
.fa:hover {
  opacity: 0.7;
}
footer div {
  padding: 20px;
}
