@import url("https://fonts.googleapis.com/css2?family=Raleway:ital,wght@0,100..900;1,100..900&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap");

:root {
  font-size: 62.5%;
  --body-bg-color: #f5f5f7;
  --text-color: #000;
  --button-bg-color: #f5f5f5;
  --button-text-color: #fff;
  --button-shadow-color: #b4b4b4;
  --button-shadow-color-hover: #868686;
  --button-shadow-color-active: #f5f5f5;
  --button-bg-color-hover: #c5c5c5;
  --skills-li-hover-bg-color: #f5f5f7;
  --skills-li-hover-shadow-color: #b4b4b4;
  --card-bg-color: #fff;
  --card-text-color: #000;
  --card-shadow-color: #00000014;
}

body[data-theme="dark"] {
  --body-bg-color: #39393a !important;
  --text-color: #fff !important;
  --button-bg-color: #3b3b3f !important;
  --button-text-color: #fff !important;
  --button-shadow-color: #1f1f1f !important;
  --button-shadow-color-hover: #1f1f1f !important;
  --button-shadow-color-active: #1f1f1f !important;
  --button-bg-color-hover: #292828 !important;
  --skills-li-hover-bg-color: #3a3838 !important;
  --skills-li-hover-shadow-color: #272525 !important;
  --card-bg-color: #474646 !important;
  --card-text-color: #fff !important;
  --card-shadow-color: #00000014 !important;
}

body[data-theme="light"] {
  --body-bg-color: #f5f5f7 !important;
  --text-color: #000 !important;
  --button-bg-color: #f5f5f5 !important;
  --button-text-color: #ffffff !important;
  --button-shadow-color: #b4b4b4 !important;
  --button-shadow-color-hover: #868686 !important;
  --button-shadow-color-active: #f5f5f5 !important;
  --button-bg-color-hover: #c5c5c5 !important;
  --skills-li-hover-bg-color: #f5f5f7 !important;
  --skills-li-hover-shadow-color: #b4b4b4 !important;
  --card-bg-color: #fff !important;
  --card-text-color: #000 !important;
  --card-shadow-color: #00000014 !important;
}

body {
  min-height: 100vh;
  background-color: var(--body-bg-color);
  transition: background-color 0.4s ease-out, color 0.4s ease-out;
}

a {
  text-decoration: none;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Raleway", sans-serif;
  color: var(--text-color);
}

.grid {
  display: grid;
}

.grid-cols-1 {
  grid-template-columns: repeat(1, 1fr);
}
.grid-cols-2 {
  grid-template-columns: repeat(2, 1fr);
}
.grid-cols-3 {
  grid-template-columns: repeat(3, 1fr);
}
.grid-cols-4 {
  grid-template-columns: repeat(4, 1fr);
}
.grid-cols-5 {
  grid-template-columns: repeat(5, 1fr);
}
.grid-cols-6 {
  grid-template-columns: repeat(6, 1fr);
}
.grid-cols-7 {
  grid-template-columns: repeat(7, 1fr);
}
.grid-cols-8 {
  grid-template-columns: repeat(8, 1fr);
}
.grid-cols-9 {
  grid-template-columns: repeat(9, 1fr);
}
.grid-cols-10 {
  grid-template-columns: repeat(10, 1fr);
}
.grid-cols-11 {
  grid-template-columns: repeat(11, 1fr);
}
.grid-cols-12 {
  grid-template-columns: repeat(12, 1fr);
}

.grid-rows-1 {
  grid-template-rows: repeat(1, 1fr);
}
.grid-rows-2 {
  grid-template-rows: repeat(2, 1fr);
}
.grid-rows-3 {
  grid-template-rows: repeat(3, 1fr);
}
.grid-rows-4 {
  grid-template-rows: repeat(4, 1fr);
}
.grid-rows-5 {
  grid-template-rows: repeat(5, 1fr);
}
.grid-rows-6 {
  grid-template-rows: repeat(6, 1fr);
}
.grid-rows-7 {
  grid-template-rows: repeat(7, 1fr);
}
.grid-rows-8 {
  grid-template-rows: repeat(8, 1fr);
}
.grid-rows-9 {
  grid-template-rows: repeat(9, 1fr);
}
.grid-rows-10 {
  grid-template-rows: repeat(10, 1fr);
}
.grid-rows-11 {
  grid-template-rows: repeat(11, 1fr);
}
.grid-rows-12 {
  grid-template-rows: repeat(12, 1fr);
}

.flex {
  display: flex;
}

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

.flex-row {
  flex-direction: row;
}

.flex-wrap {
  flex-wrap: wrap;
}
.flex-nowrap {
  flex-wrap: nowrap;
}

.place-items-center {
  place-items: center;
}

.place-content-center {
  place-content: center;
}

.justify-start {
  justify-content: flex-start;
}

.justify-end {
  justify-content: flex-end;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.justify-around {
  justify-content: space-around;
}

.justify-evenly {
  justify-content: space-evenly;
}

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

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

.align-center {
  align-items: center;
}

.block {
  display: block;
}

.inline-block {
  display: inline-block;
}

.inline {
  display: inline;
}

.bold {
  font-weight: bold;
}

.semibold {
  font-weight: 600;
}

.italic {
  font-style: italic;
}

.strikethrough {
  text-decoration: line-through;
}

.underline {
  text-decoration: underline;
}

.text-9 {
  font-size: 0.9rem;
}

.text-10 {
  font-size: 1rem;
}

.text-11 {
  font-size: 1.1rem;
}

.text-12 {
  font-size: 1.2rem;
}

.text-13 {
  font-size: 1.3rem;
}

.text-14 {
  font-size: 1.4rem;
}

.text-15 {
  font-size: 1.5rem;
}

.text-16 {
  font-size: 1.6rem;
}

.text-17 {
  font-size: 1.7rem;
}

.text-18 {
  font-size: 1.8rem;
}

.text-19 {
  font-size: 1.9rem;
}

.text-20 {
  font-size: 2rem;
}

.text-21 {
  font-size: 2.1rem;
}

.text-22 {
  font-size: 2.2rem;
}

.text-23 {
  font-size: 2.3rem;
}

.text-24 {
  font-size: 2.4rem;
}

.text-25 {
  font-size: 2.5rem;
}

.text-26 {
  font-size: 2.6rem;
}

.text-27 {
  font-size: 2.7rem;
}

.text-28 {
  font-size: 2.8rem;
}

.text-29 {
  font-size: 2.9rem;
}

.text-30 {
  font-size: 3rem;
}

.text-31 {
  font-size: 3.1rem;
}

.text-32 {
  font-size: 3.2rem;
}

.Roboto {
  font-family: "Roboto", sans-serif;
}

.Raleway {
  font-family: "Raleway", sans-serif;
}

.visible {
  visibility: visible;
  opacity: 1;
}

#template {
  display: grid;
  grid-template-columns: 100%;
  row-gap: 2rem;
  column-gap: 3.5rem;
  padding: 2rem;
}

#left {
  gap: 2rem;
}

#right {
  gap: 2rem;
}

@media screen and (min-width: 768px) {
  #template {
    grid-template-columns: repeat(3, 1fr);
  }
  #left {
    grid-column: span 1;
  }
  #right {
    grid-column: span 2;
  }
}

#profile .card-body {
  place-items: center;
}

#profile #profile-image {
  width: 150px;
  height: 150px;
  display: block;
  border-radius: 50%;
  object-position: center -15px;
  object-fit: cover;
}

#profile #profile-name {
  font-size: 2.6rem;
}

#profile #cv-btn {
  display: block;
  font-size: 1.4rem;
  font-weight: 600;
  padding: 0.8rem;
  color: var(--button-text);
  background-color: var(--button-bg-color);
  border-radius: 5px;
  transition: background-color 0.4s ease-out, box-shadow 0.4s ease-out;
  text-decoration: none;
  box-shadow: 2px 2px 5px var(--button-shadow-color);
}

#profile #cv-btn:hover {
  background-color: var(--button-bg-color-hover);
  box-shadow: 2px 2px 5px var(--button-shadow-color-hover);
}

#profile #cv-btn:active {
  background-color: var(--button-shadow-color-active);
}

#profile #profile-social-icons {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 3rem;
  gap: 0.5rem;
}

#profile #profile-social-icons #linkedin {
  color: #0a66c2;
}

#skills #skills-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.5rem;
}

#skills ul {
  list-style: none;
}

#skills li {
  padding: 0 0 0 0.5rem;
  cursor: pointer;
}

#skills li:not(#skills li li) {
  padding: 0.5rem 0 0.5rem 0.5rem;
}

#skills li:hover:not(:has(ul)) {
  background-color: var(--skills-li-hover-bg-color);
  border-radius: 5px;
  box-shadow: 2px 2px 5px var(--skills-li-hover-shadow-color);
}

#skills li p {
  padding: 0.5rem 0 0.5rem 0.5rem;
}

#skills li li {
  padding: 0.5rem 0 0.5rem 1.5rem;
}

#skills li li:hover {
  background-color: var(--skills-li-hover-bg-color);
  border-radius: 5px;
  box-shadow: 2px 2px 5px var(--skills-li-hover-shadow-color);
}

#projects #projects-list {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

#projects #projects-list .card {
  width: auto;
  height: auto;
  max-height: 100%;
  max-width: 420px;
}

#projects #projects-list .card img {
  width: 300px;
  height: 200px;
  max-width: 100%;
  display: block;
  object-position: center;
  object-fit: cover;
  margin: 0 auto;
}

@media screen and (min-width: 768px) {
  #projects #projects-list .card {
    width: 420px;
    height: 350px;
    max-height: 350px;
  }
}
