@import url('https://fonts.googleapis.com/css2?family=SUSE:wght@100..800&display=swap');

:root {
  --main-bg: #e6e6e6;
  --section-bg: #353535;
  --text: #2b2b2b;
  --section-text: #f2fff6;
  --highlight: #ffffff;
  --link: #7c7c7c;
  --link-hover: #2e2e2e;
  --link-hover-section: #e6e6e6;
}

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-family: 'SUSE', sans-serif;
}

ul {
  list-style-type: none;
}

a {
  color: var(--link);
  transition: all 0.2s ease;
}

a:hover {
  color: var(--link-hover);
}

a[in=section]:hover {
  color: var(--link-hover-section);
}

body {
  background-color: var(--main-bg);
  color: var(--text);
  font-size: 1.3em;
}

#page-container {
  width: 100%;
}

.header {
  color: var(--section-text);
  background-color: var(--section-bg);
  padding: 1em;
  box-shadow: 0 5px 30px var(--section-bg);
}

.sub-header {
  font-size: 1.3rem;
  color: var(--highlight);
  text-wrap: nowrap;
}

main {
  width: 100%;
  padding: 1em;
  margin: 3em 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2em;
}

.about-me {
  width: 70%;
  display: flex;
  gap: 2rem;
  justify-content: center;
  align-items: center;
  margin-top: 1em;
  margin-bottom: 4em;
}

.about-me-pic {
  display: flex;
  align-items: center;
  justify-content: end;
  width: 40%;
}

.about-me-intro {
  width: 50%;
  align-items: center;
  justify-content: center;
}

#intro {
  width: 80%;
}

#my-name {
  font-size: 2rem;
  text-wrap: nowrap;
}

#profile-pic {
  width: 100%;
  max-width: 300px;
  min-width: 280px;
  border-radius: 20px;
  border: 1px solid var(--section-bg);
}

@keyframes slide {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-100.4%);
  }
}

#skills {
  width: 80%;
  overflow: hidden;
  white-space: nowrap;
  padding: 1em 0;
  position: relative;
}

#skills::before,
#skills::after {
  position: absolute;
  top: 0;
  width: 10%;
  height: 100%;
  content: "";
  z-index: 2;
}

#skills::before {
  left: 0;
  background: linear-gradient(to right, var(--main-bg), #ffffff00);
}

#skills::after {
  right: 0;
  background: linear-gradient(to left, var(--main-bg), #ffffff00);
}

#skills-slide {
  display: inline-block;
  animation: 30s slide infinite linear;
}

#skills-slide img {
  height: 50px;
  margin: 0 10px;
}

.section-title {
  font-size: 2.8rem;
  align-self: center;
  font-weight: 700;
}

.project-content {
  width: 70%;
  display: flex;
  flex-direction: column;
  margin-bottom: 1em;
}

.project-details {
  display: flex;
  flex-direction: column;
}

.project-title {
  font-size: 1.6rem;
  color: var(--text);
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.project-date {
  font-style: italic;
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.project-link {
  margin-bottom: 0.3rem;
}

.project-img {
  width: 80%;
  display: block;
  margin: 1em auto;
  border-radius: 15px;
  box-shadow: 0 10px 20px var(--section-bg);
}

.contact {
  color: var(--section-text);
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  background-color: var(--section-bg);
  padding: 3em 0;
}

.contact-heading {
  font-size: 1.8rem;
  font-weight: 600;
}

#contact-list {
  margin-top: 1rem;
}

@media screen and (max-width: 1200px) {
  .project-img {
    width: 100%;
  }

  main {
    padding: 1em 0;
  }
}

@media screen and (max-width: 700px) {
  .about-me {
    flex-direction: column;
    width: 90%;
  }

  .about-me-pic {
    justify-content: center;
  }

  #profile-pic {
    width: 90%;
  }

  #skills {
    width: 100%;
  }

  .contact {
    flex-direction: column;
    gap: 1em;
    align-items: start;
  }

  .contact-container {
    margin-left: 10vw;
  }

  #contact-list {
    display: flex;
    flex-direction: column;
    gap: 0.4em;
  }

  .project-img {
    width: 100%;
  }

  main {
    padding: 1em 0;
  }
}
