/* GENERAL CSS */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-family: "JetBrains Mono", monospace;
  scroll-behavior: smooth;
  font-size: 62.5%;
}

body {
  max-width: 110rem;
  margin: 0 auto;
  background-color: #f7f7f7;
  font-size: 1.4rem;
  color: black;
}

/* MAIN CSS */
.cv-container {
  background-color: rgb(237, 237, 237);
  position: relative;
  display: flex;
  line-height: 1.5;
}

.header {
  display: flex;
  flex-flow: column;
  width: 90%;
  height: 10rem;
  margin-bottom: 2rem;
  z-index: 99;
}

h1 {
  font-size: 2.2rem;
  font-weight: normal;
  text-transform: uppercase;
}

h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

/* Navigation Animations */
.hover-underline-animation {
  position: relative;
}

.hover-underline-animation::after {
  content: "";
  position: absolute;
  width: 100%;
  transform: scaleX(0);
  height: 2.5px;
  border-radius: 10px;
  bottom: -5px;
  left: 0;
  right: 50%;
  background-color: #fff;
  transform-origin: 50% 50%;
  transition: transform 0.5s ease-out;
}

@media (hover: hover) {
  .hover-underline-animation:hover::after {
    transform: scaleX(1);
    transform-origin: 50% 50%;
  }
}

.white-line {
  width: 15rem;
  background-color: #fff;
  height: 0.15rem;
  margin-bottom: 1rem;
}

.right-container h2 {
  display: flex;
  gap: 1rem;
}

.summary h2 {
  display: flex;
  gap: 1rem;
}

.left-container h2 {
  font-weight: normal;
  margin: 0;
}

.icon {
  width: 2rem;
}

.icon--dark {
  display: none;
}

.contact .icon {
  width: 2rem;
}

.left-container {
  display: flex;
  flex-direction: column;
  flex: 1;
  align-self: flex-start;
  align-items: center;
  height: 100vh;
  gap: 3rem;
  padding: 2rem;
  background-color: #444;
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 99;
}

.personal-info {
  display: flex;
  flex-flow: column wrap;
  gap: 2rem;
}

.right-container {
  display: flex;
  flex-flow: column wrap;
  flex: 3;
  align-items: center;
  gap: 2rem;
}

.profile-img {
  width: 6rem;
  border-radius: 50%;
}

.nav-bar {
  width: 100%;
}

.nav-items {
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 6rem;
  background-color: #444;
  border-radius: 0 0 3rem 3rem;
}

.nav-icon {
  display: none;
}

a:link {
  text-decoration: none;
  color: #fff;
}

a:hover {
  color: #fff;
}

a:visited {
  color: #fff;
}

a:active {
  text-decoration: none;
  color: #fff;
}

.main-content {
  display: flex;
  flex-flow: column;
  gap: 3rem;
  padding: 0px 4rem;
}

.summary-text {
  text-indent: 0.5rem;
}

.header li {
  list-style: none;
  transition: 0.3s;
}

.header li:hover {
  background-color: #444;
  border-radius: 2rem;
  color: #fff;
}

.left-container li {
  list-style: none;
}

.contact li {
  display: flex;
  gap: 0.8rem;
  list-style: none;
  margin: 0;
}

.main-content li {
  margin-left: 2rem;
}

.right-container section {
  padding-top: 2rem;
}

.code-example-wrapper {
  margin-left: 0;
  display: flex;
  flex-flow: column;
}

.project a:link {
  color: #444;
}
.project a:hover {
  color: #444;
}
.project a:visited {
  color: #444;
}
.project a:active {
  color: #444;
}

.project h2 {
  margin-bottom: 2rem;
}

.project li {
  display: flex;
  flex-flow: column;
  align-items: center;
}
.project li:hover {
  text-decoration: none;
  color: #444;
}

.project-list {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.project-img {
  max-width: 20rem;
  height: 12rem;
  border-radius: 0.5rem;
  opacity: 0.9;
  cursor: pointer;
  object-fit: fill;
  transition: transform 0.4s;
}

.project-img:hover {
  opacity: 1;
  box-shadow: 0 0.4rem 0.8rem 0 rgba(0, 0, 0, 0.2),
    0 0.6rem 2rem 0 rgba(0, 0, 0, 0.19);
  transform: scale(1.03);
}

.scroll-reset {
  text-align: center;
  margin-top: 3rem;
}

.scroll-reset p {
  font-size: 1.4rem;
}

/* FOOTER */
.footer {
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 6rem;
  width: 90%;

  background-color: #444;
  color: #fff;
  border-radius: 3rem 3rem 0 0;
  margin-top: 2rem;
}

.rs-logo {
  width: 9rem;
}

.footer a {
  color: #fff;
  text-decoration: none;
}

.footer .icon {
  margin-top: 1.5rem;
}

.footer-txt {
  display: flex;
  flex-flow: column;
  align-items: center;
}

.copyright-txt {
  font-size: 1.2rem;
}
