@import url("https://fonts.googleapis.com/css2?family=Chivo+Mono:wght@200;400&family=Lato&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Source+Serif+Pro&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Roboto+Slab&display=swap");

:root {
  --background: #16213e;
  --background-transparent: #16213ee5;
  --background-accent: #141d35;
  --nav-background: #1f2f5ae3;
  --dark: #0f3460;
  --main: #533483;
  --accent: #e94560;
  --accent-gradient-before: #e95045;
  --accent-gradient-after: #e9459f;
  --accent-scrollbar-background: #5a1f31e3;
  --shadow: #191e30;

  --foreground: gainsboro;
  --btn-background: #0f3460;
  --btn-background-highlight: #113c70;

  --font-family-sans: "Chivo Mono", monospace;
  --font-family-serif: "Roboto Slab", serif;

  --p-size: 1.2rem;
}
html {
  background-image: linear-gradient(45deg, #f27121, #e94057, #8a2387);
  scroll-padding-top: calc(10vh + 60px);
  scroll-behavior: smooth;
  scrollbar-color: var(--accent) var(--accent-scrollbar-background);
  scrollbar-width: 50%;
}
body {
  box-sizing: border-box;
  background-color: var(--background);
  color: var(--foreground);
  display: flex;
  flex-direction: column;
  margin: 0;
  font-family: var(--font-family-serif);
}

h1 {
  font-family: var(--font-family-sans);
}
a {
  text-decoration: none;
  color: var(--foreground);
  transition: all 0.3s ease 0s;
}

a:hover {
  color: var(--accent);
}

.btn {
  border-radius: 10px;
  padding: 20px 35px;
  border: 2px solid var(--accent);
  font-family: var(--font-family-sans);
  transition: all 0.4s ease;
}

.btn:hover {
  transform: scale(110%);
  background-color: var(--accent);
  color: var(--background);
}

.btn:active {
  transform: scale(100%);
}

ul {
  list-style-type: none;
}

.center {
  align-self: center;
  margin: 5vh 0 0;
}

/*=================== Nav =================*/

header {
  background-color: var(--nav-background);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px 10%;
  height: 10vh;
  width: calc(100vw - 20%);
  overflow: hidden;
  backdrop-filter: blur(2px);

  z-index: 2;
  position: fixed;
  top: 0;

  transition: transform 0.3s;
  transition: all 0.3s ease 0;
}

.header--hidden {
  transform: translateY(calc(-10vh - 60px));
}

header > a > i {
  font-size: 32px;
}

nav > ul > li {
  display: inline-block;
  padding: 0 20px;
}

#dropdown {
  display: none;
}

#dropdown-content {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  position: absolute;
  height: calc(100vh - 10vh - 60px);
  background-color: var(--background-accent);
  bottom: 0;
  width: 100vw;
  left: 0;
  font-size: 2rem;
  z-index: 2;
}
#dropdown {
  background-color: transparent;
  border: none;
}
#dropdown > i {
  font-size: 30px;
  color: gainsboro;
  transition: all 1s ease 0;
}
#dropdown > i:hover {
  color: var(--accent);
  cursor: pointer;
}
.list-number {
  color: var(--accent);
}

/*=================== Sidebar nav =================*/
#sidebar {
  position: fixed;
  display: flex;
  flex-direction: column;
  bottom: 0;
  right: 3vw;
}

#sidebar > ul > li > a > i {
  padding: 20px;
  font-size: 32px;
}

#sidebar > ul::after {
  content: "";
  display: block;
  width: 1px;
  height: 90px;
  margin: 0 auto;
  background-color: var(--foreground);
}
/*=================== Pages =================*/
#pages {
  padding: 0 22vw;
}
/*=================== Home =================*/
#home {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.explore {
  display: flex;
  flex-direction: column;
  margin-top: 10vh;
  align-items: center;
}

.explore > i {
  position: relative;
  bottom: -8vh;
  color: var(--foreground);
  animation: float 1.5s ease-in-out infinite 2s;
}

.home-p {
  font-family: var(--font-family-serif);
}

@keyframes float {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
  100% {
    transform: translateY(0);
  }
}

.underscore_blink {
  animation: blinker 1s step-start infinite;
}
@keyframes blinker {
  50% {
    opacity: 0;
  }
}

/*=================== About =================*/
#about {
  margin-bottom: 30vh;
  display: flex;
}
#about > div {
  display: flex;
  flex-direction: column;
}
#skills {
  display: grid;
  grid-template-columns: repeat(2, minmax(140px, 200px));
  gap: 0 10px;
}

#skills > li::before {
  content: ">";
  color: var(--accent);
  padding: 10px;
}
#pfp {
  width: 256px;
  height: 256px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center;
  border-radius: 15px;
  margin: 30px;
  box-shadow: 10px 10px 0 var(--accent);
  transition: all 0.2s ease-out;
}
#pfp:hover {
  transform: translateX(20px);
  transform: translateY(-20px);
  box-shadow: 30px 30px 0 var(--accent);
}
/*=================== Experience =================*/
#experience {
  margin-bottom: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 50px 0;
  margin-bottom: 200px;
}
.timeline {
  display: grid;
  grid-template-columns: 1fr 3px 1fr;
  grid-template-rows: 1fr 1fr 1fr;
  gap: 0;
  grid-template-areas:
    "timeline1 timeline-line timeline2"
    "timeline3 timeline-line timeline4"
    "timeline5 timeline-line timeline6";
  width: 80%;
  margin: 0 auto;
}
Tom .timeline1 {
  grid-area: timeline1;
}
.timeline4 {
  grid-area: timeline4;
}
.timeline5 {
  grid-area: timeline5;
}
.content {
  padding: 20px;
  background-color: var(--background-accent);
  border-radius: 10px;
  margin: 10px;
}

.timeline-line {
  background: linear-gradient(
    45deg,
    var(--accent-gradient-before),
    var(--accent)
  );
  height: 100%;
  width: 100%;
  grid-area: timeline-line;
  margin: 0 auto;
}

/*=================== Work =================*/
#work {
  margin-bottom: 30vh;
  display: flex;
  flex-direction: column;
}
.card {
  display: flex;
  background-color: var(--background-accent);
  margin: 30px 0;
  padding: 50px;
  border-radius: 15px;
}

.project-description {
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(2px);
  border-radius: 15px;
  overflow: hidden;
}

.project-description > p {
  padding: 50px;
  background-color: var(--background-transparent);
}

.project-description > div {
  display: flex;
}
.project-description > img {
  border-radius: 20px;
  transition-delay: 300ms;
}
.project-description > div > ul > li::before {
  content: ">";
  color: var(--accent);
  padding: 10px;
}

.project-description > div > ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(140px, 200px));
  gap: 0;
}
.project-links {
  display: flex;
  flex-direction: row;
  align-items: center;
}

.project-links > a > i {
  font-size: 40px;
}
.project-links > a {
  padding: 0 15px;
}

.soon {
  filter: blur(5px);
}

/*=================== Contact =================*/
#contact {
  display: flex;
  flex-direction: column;
}
#contact > p {
  text-align: center;
}

#contact > ul {
  display: flex;
  justify-content: space-evenly;
  text-align: center;
  margin: 40px 20%;
  margin-bottom: 0;
  padding: 0;
}

#contact > ul > li {
  font-size: 32px;
}
/*=================== Footer =================*/
footer {
  min-height: 180px;
  padding: 0 25vw;
  background-color: var(--background-accent);
}

.displayflex {
  display: flex !important;
}
/*=================== Animation =================*/

.hidden {
  opacity: 0;
  filter: blur(5px);
  transform: translateX(-80%);
  transition: all 1s ease;
}

.show {
  opacity: 1;
  filter: blur(0);
  transform: translateX(0);
}

.explore {
  transition-delay: 3500ms;
}

.home-p {
  transition-delay: 3500ms;
}

#sidebar {
  transition-delay: 3400ms;
}

#pfp {
  transition-delay: 300ms;
}

#headerLinks > li:nth-child(1) {
  transition-delay: 000ms;
}
#headerLinks > li:nth-child(2) {
  transition-delay: 200ms;
}
#headerLinks > li:nth-child(3) {
  transition-delay: 400ms;
}
#headerLinks > li:nth-child(4) {
  transition-delay: 600ms;
}

#skills > li:nth-child(1) {
  transition-delay: 100ms;
}
#skills > li:nth-child(2) {
  transition-delay: 200ms;
}
#skills > li:nth-child(3) {
  transition-delay: 300ms;
}
#skills > li:nth-child(4) {
  transition-delay: 400ms;
}
#skills > li:nth-child(5) {
  transition-delay: 500ms;
}
#skills > li:nth-child(6) {
  transition-delay: 600ms;
}
#skills > li:nth-child(7) {
  transition-delay: 700ms;
}
#skills > li:nth-child(8) {
  transition-delay: 800ms;
}

@media (prefers-reduced-motion) {
  .hidden {
    transition: none;
  }
}

@media screen and (max-width: 1250px) {
  .project-links {
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .project-description > div {
    flex-direction: column;
  }
  .project-description > div > ul {
    align-items: center;
    justify-content: center;
  }
}

@media screen and (max-width: 900px) {
  #sidebar {
    display: none;
  }
  #pages {
    padding: 0 10%;
  }
  nav > ul > li {
    display: none;
  }
  #dropdown {
    display: flex;
  }
  header {
    position: static;
  }
  #about {
    display: block;
  }
  footer {
    padding: 40px 10%;
  }
  .card {
    padding: 15px;
  }
  .project-description > p {
    padding: 15px;
  }

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

@media screen and (max-width: 400px) {
  .project-links > a {
    padding: 3px;
  }

  #pfp {
    width: 200px;
    height: 200px;
  }
  #skills > li {
    width: min-content;
  }
  .project-description > div > ul > li {
    width: min-content;
  }
}

@media screen and (max-height: 850px) {
  .explore > i {
    bottom: -20px;
  }
  #home {
    margin-top: 130px;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
  }

  #home > h1 {
    min-height: 120px;
  }
  .explore {
    display: flex;
    flex-direction: column;
    margin-top: 10vh;
    align-items: center;
    align-self: center;
  }

  .explore > i {
    position: relative;
    bottom: -60px;
    color: var(--foreground);
    animation: float 1.5s ease-in-out infinite 2s;
  }
}
