@import url('https://fonts.googleapis.com/css2?family=Funnel+Display:wght@300..800&family=Funnel+Sans:ital,wght@0,300..800;1,300..800&family=Geist+Mono:wght@100..900&display=swap');

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #f0f2f3;
  --gray: #a7a7a7;
  --resume-gray: #29323a;
  --resume-cyan: #478ae2;
  font-family: 'Geist Mono';
}

form {
  all: unset;
}

input {
  all: unset;
}

textarea {
  all: unset;
}

label {
  all: unset;
}

body {
  background-color: #e4e4e4;
  min-height: 100vh;
  margin: 0;
  padding: 1rem;
}

.navi {
  list-style-type: none;
  padding: 0;
  margin: 0;
  margin: 0 auto;
  text-align: center;
  width: 100%;
}

.navi li a {
  width: 100%;
  padding: 1rem;
  display: inline-block;
  text-decoration: none;
  font-size: .75rem;
  color: #a7a7a7;
  font-weight: 400;
  transition: color 0.5s ease-in-out, font-weight 0.5s ease-in-out, background-color .5s ease-in-out;
  font-family: "Geist Mono";
}

.navi li a:hover {
  font-weight: 900;
  color: var(--resume-gray);
  background-color: rgb(238, 238, 238)
}

.navi li .active {
  font-weight: 900;
  color: var(--resume-gray);
  background-color: rgb(238, 238, 238)
}

p {
  color: var(--gray);
  font-size: 0.75rem;
  font-family: "Geist Mono";
}

h1 {
  font-size: 3rem;
  font-weight: 800;
  font-family: "Funnel Display";
  color: var(--resume-cyan);
}

h2 {
  font-size: 2rem;
  font-weight: 800;
  font-family: "Funnel Display";
  color: var(--resume-cyan);
}

h3 {
  font-family: "Funnel Sans";
  font-weight: 800;
  color: var(--resume-gray)
}

h4 {
  font-family: "Geist Mono";
  font-weight: 500;
  text-transform: uppercase;
  font-size: .75rem;
  color: var(--resume-gray);
  margin: 0 0 .35rem 0;
}

main {
  background-color: rgb(238, 238, 238);
  border-radius: 1rem;
  max-width: 100%;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.flex {
  display: flex;
}

.row {
  flex-direction: row;
}

.col {
  flex-direction: column;
}

.sidebar {
  padding: 1.5rem;
  background-color: var(--bg);
}

.hr-divider {
  width: 100%;
  height: 1px;
  border-width: 0;
  background-color: var(--gray);
}

.align-center {
  align-items: center;
}

.align-right {
  align-items: end;
}

.centertext {
  text-align: center;
}

.textleft {
  text-align: left;
}

.textright {
  text-align: right;
}

.justifycenter {
  justify-content: center;
}

.ptb1 {
  padding: 1rem 0;
}

.pthalf {
  padding: 0.5rem 0 0 0;
}

.ptbhalf {
  padding: 0.5rem 0;
}

.pbhalf {
  padding: 0 0 .5rem 0;
}

.pt1 {
  padding: 1rem 0 0 0;
}

.w-100 {
  width: 100%;
}

.navtab {
  padding: 0;
  text-align: center;
  width: 100%;
}

.contactform {
  display: flex;
  flex-direction: column;
}

.contactform label {
  font-family: Funnel Sans;
  font-weight: 800;
  color: var(--resume-gray);
  margin: 1rem 0 0 0;
}

.contactform input {
  font-family: Geist Mono;
  font-weight: 500;
  color: var(--resume-gray);
  padding: .75rem;
  border: 1px solid var(--gray);
  border-radius: 1rem;
  font-size: .75rem;
  margin: .5rem 0 0 0;
  text-align: left;
}

.contactform textarea {
  padding: .75rem;
  border: 1px solid var(--gray);
  border-radius: 1rem;
  margin: .5rem 0 0 0;
  font-size: .75rem;
  font-family: Geist Mono;
  font-weight: 500;
  height: 160px;
  resize: none;
  text-align: left;
  word-break: break-all;
}

.contactform textarea:focus {
  padding: .75rem;
  border: 1px solid var(--resume-gray);
  border-radius: 1rem;
  margin: .5rem 0 0 0;
  font-size: .75rem;
  font-family: Geist Mono;
  font-weight: 500;
  color: var(--resume-gray)
}

#submit {
  all: unset;
  background-color: var(--gray);
  text-align: center;
  padding: .75rem;
  color: white;
  transition: all .5s ease-in-out;
  margin: 1rem 0 0 0;
  border: 1px solid var(--gray);
  border-radius: 1rem;
  text-align: center;
  font-size: .75rem;
  font-weight: 500;
}

#submit:hover {
  border: 1px solid var(--resume-gray);
  background-color: var(--resume-gray);
  font-weight: 800;
  cursor: pointer;
}

.contactform input:focus {
  border: 1px solid var(--resume-gray);
  color: var(--resume-gray);
}

#info {
  gap: 1.5rem;
  padding-bottom: 1rem;
}

#about p {
  margin: .5rem 0;
}

img {
  width: 6rem;
  max-width: 100%;
  object-fit: contain;
  vertical-align: middle;
}

#sections {
  height: 60vh;
  min-height: 100%;
  overflow-y: auto;
  color-scheme: dark;
}

#experience {
  padding: 1.5rem;
  width: 100%;
}

#projects {
  padding: 1.5rem;
  width: 100%;
}

#contact {
  padding: 1.5rem;
  width: 100%;
}

#info {
  padding: 2rem;
  width: 100%;
}

#about {
  width: 100%;
}

.jobs {
  padding: 1.5rem 0 0 0;
}

.jobs a{
  display: block;
  font-size: .75rem;
  font-weight: 500;
  text-align: center;
  padding: .625rem 0;
  border-radius: .5rem;
  background-color: var(--gray);
  color: white;
  margin: .5rem 0 0 0;
  transition: font-weight .5s ease-in-out, background-color .5s ease-in-out;
  text-decoration: none;
}

.jobs a:hover {
  color: white;
  border-color: var(--resume-gray);
  background-color: var(--resume-gray);
  font-weight: 900;
  cursor: pointer;
}

.tablink {
  cursor: pointer;
}

#sections div {
  animation: opacity 1s;
}

.grid {
  display: grid;
}

.project-grid {
  gap: 1rem;
  margin: 1rem 0;
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.project-card {
  border: 1px solid var(--gray);
  border-radius: .5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  text-align: left;
  padding: 1rem;
  transition: border-color .5s ease-in-out;
}

.card-img {
  width: 100%;
  height: 10rem;
  overflow: hidden;
  margin: 0 0 1rem 0;
  border-radius: .5rem;
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  transform: scale(1);
  transition: all .5s ease-in-out;
}

.project-card a{
  text-decoration: none;
  font-size: .75rem;
  font-weight: 500;
  text-align: center;
  padding: .625rem 0;
  width: 100%;
  border-radius: .5rem;
  background-color: var(--gray);
  color: white;
  margin: .5rem 0 0 0;
  transition: font-weight .5s ease-in-out, background-color .5s ease-in-out;
}

.project-card:hover {
  border-color: var(--resume-gray);
  a {
    color: white;
    border-color: var(--resume-gray);
    background-color: var(--resume-gray);
    font-weight: 900;
    cursor: pointer;
  }

  .card-img img {
    filter: grayscale(0);
    transform: scale(1.05)
  }
}

.gallery-content {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  padding: 1rem 0;
}

.gallery-content a{
  width: 100%;
  height: 20rem;
}

.gallery-content img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 1rem;
  border: 1px solid var(--gray);
  filter: grayscale(100%);
  transform: scale(1);
  transition: all .5s ease-in-out;
}

.gallery-content img:hover{
  filter: grayscale(0);
  border-color: var(--resume-gray);
}

@keyframes opacity {
  0% {
    opacity: 0;
  }
  
  100% {
    opacity: 1;
  }
}

@media only screen and (min-width: 768px) {
  .web-justifycenter {
    justify-content: center;
  }

  .web-aligncenter {
    align-items: center;
  }

  .web-alignstart {
    align-items: flex-start;
  }

  .web-textleft {
    text-align: left;
  }

  .web-textcenter {
    text-align: center;
  }

  .web-sidebar {
    width: 35%;
    padding: 1.5rem;
    background-color: var(--bg);
  }

  .web-flexcol {
    flex-direction: column;
  }

  .web-flexrow {
    flex-direction: row;
  }
  .web-p1 {
    padding: 1rem;
  }

  .web-navtab {
    padding: 0;
    text-align: left;
    width: 65%;
  }

  .web-project-grid {
    gap: 1rem;
    margin: 1rem 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .web-gallery-content {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  main {
    max-width: 80rem;
  }

  #experience {
    padding: 1.5rem;
    width: 75%;
  }

  #info {
    padding: 0 2rem 2rem 2rem;
    width: auto;
    text-align: left;
  }

  #about {
    width: 40%;
  }

  img {
    width: 10rem;
    max-width: 100%;
    object-fit: contain;
    vertical-align: middle;
  }
  
  .topform {
    display: flex;
    flex-direction: row;
    gap: 1rem;
  }
}
