/* General styling */
body, html {
  margin: 0;
  padding: 0;
  height: 100%;
  scroll-behavior: smooth;
}

html {
  font-size: 100%;
}

body::-webkit-scrollbar {
  display: none;
}

/* Font styles */
body {
  font-family: "Figtree", sans-serif;
  font-weight: 300;
  background-color: #101010;
  color: #F5EFEB;
  margin: 0 auto;
  font-size: 0.95rem;
}

h4, h5, h6 {
  font-family: "Figtree", sans-serif;
  font-weight: 500;
}

h1, h2, h3 {
  font-family: "Lora", serif;
  font-weight: 300 !important;
}

h1 {
  font-size: 2.8em;
}

h2 {
  font-style: italic;
}

p {
  margin: 0.6em 0;
}

.center {
  text-align: center;
}

.right {
  text-align: right;
}

/* Colours */
.yellow {
  color: #F4FF77;
}

.green {
  color: #2BC2A4;
}

.blue {
  color: #41AACA;
}

.purple {
  color: #7C90F6;
}

.red {
  color: #FF7180;
}

.pink {
  color: #EE9B9C;
}

.dark {
  color: #101010;
}

/* Link styles */
a {
  text-decoration: none;
  color: #F5EFEB;
}

#footer a {
  font-size: 1.4em;
}

/* Text decorations */
.yellow-highlight {
  background-color: #f4ff77d0;
  font-weight: 500;
  color: #101010;
  padding: 0 5px;
  line-height: 1em;
  display: inline-block;
}

/* Containers and divs */
.container {
  margin: 0 auto;
  width: 850px;
}

.flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.flex-align-center {
  display: flex;
  align-items: center;
  gap: 0.25em;
}

.flex-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-direction: row;
  width: 100%;
  gap: 3em;
}

.flex-align-justify-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

.flex-container p, .flex-left, .flex-right {
  width: 100%;
}

/* Styling the tabs */
.flex-col {
  display: flex;
  justify-content: space-between;
  flex-direction: column;
  width: 100%;
}

.flex-col h4 {
  margin: 0.8em 0;
}

.flex-row {
  gap: 1em;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  position: relative;
}

.light-vertical-line {
  top:0;
  bottom: 0;
  align-self: stretch;
  background-color: #F5EFEB;
  width: 1px;
  z-index: 1;
}

.dark-vertical-line {
  top: 0;
  bottom: 0;
  align-self: stretch;
  background-color: #101010;
  width: 1px;
  z-index: 1;
}

.flex-50 {
  width: 50%;
  align-self: flex-start;
}

.flex-50 img {
  max-width: 100%;
  max-height: 32px;
  object-fit: contain;
}

.flex-col-50:last-child {
  border-right: none;
}

.flex-align-end {
  align-items: flex-end;
}

#learning .flex-50 {
  margin-bottom: 0.8em;
}

/* Margins */
.no-margin {
  margin: 0;
}

.mb0 {
  margin-bottom: 0;
}

.mb03 {
  margin-bottom: 0.3em;
}

.mt0 {
  margin-top: 0;
}

.add-mt-responsive {
  margin-top: 0;
}

.t1 {
  margin-top: 1em;
}

.t4 {
  margin-top: 4em;
}

.t3 {
  margin-top: 3em;
}

.t2 {
  margin-top: 2em;
}

.article {
  padding-bottom: 0.8em;
}

/* sections */
section {
  padding: 3em 0 3em 0;
  min-height: calc(100vh - 90px);
}

#skills, #development, #intro, #learning {
  background-color: #101010;
  color: #F5EFEB;
}

#teaching, #managing, #languages {
  background-color: #F5EFEB;
  color: #101010;
}

/* header */
header {
  position: fixed;
  width: 100%;
  top: 0;
  margin: 0 auto;
  padding: 10px 0;
  height: 40px;
  z-index: 1000;
  display: flex;
  justify-content: center;
}

nav {
  width: 90%;
  margin: 0 auto;
  padding: 0.5em 0;
}

.background-transition {
  transition: background-color 0.3s ease;
}

#desktop-navbar {
  display: block;
}

#mobile-navbar {
  display: none;
}

#mobile-navbar ul {
  gap: 1em;
}

#desktop-navbar ul {
  gap: 0.5em;
}

nav ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: fit-content;
}

.nav-item {
  font-weight: 400;
  padding: 6px 9px;
  color: #F5EFEB;
}

.nav-item-hover:hover {
  color: #A6A2A0 !important;
}

.nav-item-hover-light:hover {
  color: #F5EFEB;
}

.nav-item-hover-dark:hover {
  color: #101010;
}

.logo-nav a{
  display: flex;
  justify-content: center;
  align-items: center;
}

#logo img {
  max-width: 38px;
  max-height: 38px;
  object-fit: contain;
}

.dark-text-border {
  text-shadow:
    -1px -1px 0 #101010,
    1px -1px 0 #101010,
    -1px 1px 0 #101010,
    1px 1px 0 #101010;
}

.light-text-border {
  text-shadow:
    -1px -1px 0 #F5EFEB,
    1px -1px 0 #F5EFEB,
    -1px 1px 0 #F5EFEB,
    1px 1px 0 #F5EFEB;
}

/* footer */
footer {
  position: fixed;
  bottom: 0;
  height: 50px;
  width: 100%;
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background-color 0.3s ease;
}

footer ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1em;
}

/* intro */
#intro {
  height: 100%;
  padding: 0 !important;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#intro video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  top: 0;
  left: 0;
}

.video-background {
  height: 100%;
  width: 50%;
  overflow: hidden;
  object-fit: cover;
  flex-grow: 1;
  transition: width 1s ease, opacity 1s ease;
}

.hidden {
  display: none;
}

.visible {
  display: block;
}


.black-veil {
  filter:brightness(0.8);
}

.intro-right {
  width: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: width 0.5s ease;
  flex-grow: 1;
}

.scrolling-text-flex {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1em;
}

.scrolling-text-outer-wrapper {
  overflow: hidden;
  height: 3.7em;
  margin-left: 0;
}

.scrolling-text-inner-wrapper {
  display: flex;
  flex-direction: column;
  transition: transform 0.5s ease;
}

.scrolling-text-inner-wrapper h1 {
  margin: 0;
  padding: 0;
}

/* skills */
#skills h1 {
  margin-bottom: 0;
  padding-bottom: 0;
}

.bio-image img {
  max-width: 160px;
  max-height: 160px;
  object-fit: contain;
  bottom: 0;
  transform: scaleX(-1);
}

.bio-image {
  border-bottom: #F5EFEB 1px solid;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.outer-div {
  height: 50vh;
  width: 100%;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  overflow: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
  margin: 2em 0;
  padding: 0;
}

.outher-div::-webkit-scrollbar {
  display: none;
}

.inner-div {
  margin-bottom: 1em;
  padding: 1em;
  height: fit-content;
  scroll-snap-align: start;
  border-bottom: #F5EFEB 1px solid;
  border-top: #F5EFEB 1px solid;
}

.inner-div h3 {
  margin-top: 0;
}

.inner-div p {
  margin: 5px;
}

/* teaching */
.outer-div-reviews {
  max-height: 360px;
  width: 100%;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  overflow: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
  margin: 0;
}

.review-name {
  font-weight: 700;
}

.review-name p {
  margin: 0;
  padding: 0;
}

.review {
  padding: 0 0 0.5em 0;
}

.review p {
  margin: 0.5em 0;
}

/* web */
.outer-div-projects {
  max-height: 450px;
  width: 100%;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  overflow: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
  margin: 0;
}

#development .flex-right {
  height: 450px;
}

/* carousel */
.carousel {
  width: 100%;
  height: fit-content;
  overflow: hidden;
  position: relative;
}

.slides {
  display: flex;
  transition: transform 0.5s ease;
}

.slide {
  flex: 0 0 auto;
  width: 100%;
  position: relative;
}

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

.slide video {
  width: 100%;
}

.carousel-btns {
  position: relative;
  bottom: 150px;
  width: 95%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 10px;
  z-index: 10;
  margin: 0 auto;
  opacity: 0;
}

.carousel-btns button {
  color: #78787870;
  background: none;
  border: none;
}

.carousel-btns button:hover {
  color: #757575;
}

.carousel-nav-btns {
  margin-top: 1em;
  display: flex;
  justify-content: space-between;
  gap: 1em;
  align-items: flex-start;
}

.carousel-nav-btns .nav-btn {
  font-family: "Figtree", sans-serif;
  color: #A6A2A0;
  background-color: #101010;
  border: none;
  cursor: pointer;
  text-align: left;
  padding-left: 0;
}

.nav-btn-container {
  width: calc(100% / 3 - 1em);
}

.project-name {
  text-transform: uppercase;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.project-name p {
  margin: 0;
  font-size: 0.95rem;
}

.project-name a {
  font-size: 0.95rem;
}

.nav-btn p {
  font-weight: 300;
  font-size: 0.9rem;
}

.nav-btn:hover {
  color: #F5EFEB;
}

.nav-btn:active {
  color: #F5EFEB;
}


/* languages */
.map img {
  width: 100%;
  object-fit: contain;
  margin: 3em 0 2em 0;
}

/* responsive */
@media (max-width: 960px) {
  .container {
    width: 90%;
  }

  .flex-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-direction: column;
    width: 100%;
    gap: 0;
  }

  .outer-div {
    margin: 2em 0;
    height: 45vh;
  }

  .outer-div-reviews {
    max-height: fit-content;
  }

  .outer-div-projects {
    max-height: fit-content;
  }

  #intro {
    flex-direction: column;
    height: 190vh;
  }

  .video-background {
    width: 100%;
    height: 100%;
  }
  .intro-right {
    width: 100%;
    height: 90%;
  }
}

@media (max-width: 780px) {
  #desktop-navbar {
    display: none;
  }

  #mobile-navbar {
    display: block;
  }

  #mobile-navbar a {
    font-size: 1.3em;
  }

  #footer a {
    font-size: 1.3em;
  }
}

@media (max-width: 720px) {
  #intro h1 {
    font-size: 2.8em;
  }

  h1 {
    font-size: 2.3em;
  }

  .carousel-nav-btns {
    flex-direction: column;
  }
  .carousel-nav-btns .nav-btn {
    width: 100%;
  }

  .nav-btn-container {
    width: 100%;
  }

  #development .flex-right {
    margin-top: 2em;
    width: 100%;
    height: 100%;
  }
  .add-mt-responsive {
    margin-top: 2em;
  }
}

@media (max-width: 540px) {

}
