/*===== GOOGLE FONTS =====*/
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&family=Montserrat:wght@400;500;600;700&display=swap");
/*===== VARIABLES CSS =====*/
:root {
  /* Colors */
  --hue-color: 224;
  --first-color: hsl(var(--hue-color), 89%, 60%);
  --first-color-second: hsl(var(--hue-color), 89%, 55%);
  --first-color-alt: hsl(var(--hue-color), 89%, 50%);
  --first-color-lighter: hsl(var(--hue-color), 92%, 85%);
  --title-color: hsl(var(--hue-color), 56%, 12%);
  --text-color: hsl(var(--hue-color), 8%, 35%);
  --text-color-light: hsl(var(--hue-color), 8%, 65%);
  --body-color: hsl(var(--hue-color), 60%, 99%);
  --container-color: #fff;
  --scroll-bar-color: hsl(var(--hue-color), 12%, 90%);
  --scroll-thumb-color: hsl(var(--hue-color), 12%, 80%);

  /* Font */
  --body-font: 'Poppins', sans-serif;
  --heading-font: 'Montserrat', sans-serif;
  
  /* Font Size */
  --biggest-font-size: 2.5rem;
  --big-font-size: 2rem;
  --h1-font-size: 1.5rem;
  --h2-font-size: 1.25rem;
  --h3-font-size: 1.125rem;
  --normal-font-size: .938rem;
  --small-font-size: .813rem;
  --smaller-font-size: .75rem;

  /* Font Weight */
  --font-light: 300;
  --font-medium: 500;
  --font-semi-bold: 600;
  --font-bold: 700;

  /* Margins */
  --mb-0-25: .25rem;
  --mb-0-5: .5rem;
  --mb-0-75: .75rem;
  --mb-1: 1rem;
  --mb-1-5: 1.5rem;
  --mb-2: 2rem;
  --mb-2-5: 2.5rem;
  --mb-3: 3rem;

  /* z-index */
  --z-tooltip: 10;
  --z-fixed: 100;
  --z-modal: 1000;

  /* Border Radius */
  --border-radius-sm: 0.25rem;
  --border-radius: 0.5rem;
  --border-radius-lg: 1rem;
}

/* Font size for large devices */
@media screen and (min-width: 968px) {
  :root {
    --biggest-font-size: 4rem;
    --big-font-size: 3rem;
    --h1-font-size: 2.25rem;
    --h2-font-size: 1.5rem;
    --h3-font-size: 1.25rem;
    --normal-font-size: 1rem;
    --small-font-size: .875rem;
    --smaller-font-size: .813rem;
  }
}

/*===== BASE =====*/
*, ::before, ::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  background-color: var(--body-color);
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  color: var(--title-color);
  font-weight: var(--font-semi-bold);
  font-family: var(--heading-font);
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
  color: inherit;
}

button, input, textarea {
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  outline: none;
  border: none;
}

button {
  cursor: pointer;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* REUSABLE CSS CLASSES */
.section {
  padding: 6rem 0 2rem;
}

.section__title {
  font-size: var(--h1-font-size);
  color: var(--title-color);
  text-align: center;
  margin-bottom: var(--mb-1);
}

.section__subtitle {
  display: block;
  text-align: center;
  font-size: var(--small-font-size);
  margin-bottom: var(--mb-3);
  color: var(--text-color-light);
}

.section__container {
  max-width: 968px;
  margin-left: var(--mb-1-5);
  margin-right: var(--mb-1-5);
}

.container {
  max-width: 968px;
  margin-left: var(--mb-1-5);
  margin-right: var(--mb-1-5);
}

.grid {
  display: grid;
  gap: 1.5rem;
}

/* PRELOADER */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--body-color);
  z-index: var(--z-modal);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: .5s;
}

.loader {
  width: 50px;
  height: 50px;
  border: 5px solid var(--first-color-lighter);
  border-top-color: var(--first-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* HEADER & NAV */
.header {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: var(--z-fixed);
  background-color: var(--container-color);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: .3s;
}

.nav {
  height: 4.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav__logo {
  color: var(--title-color);
  font-weight: var(--font-bold);
  font-size: var(--h2-font-size);
  letter-spacing: 1px;
}

.nav__logo span {
  color: var(--first-color);
  margin-right: 0.25rem;
}

.nav__toggle,
.nav__close {
  color: var(--title-color);
  font-size: 1.5rem;
  cursor: pointer;
}

@media screen and (max-width: 767px) {
  .nav__menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100%;
    padding: 3rem 1.5rem;
    background-color: var(--container-color);
    box-shadow: -2px 0 4px rgba(0, 0, 0, 0.1);
    transition: .4s;
    z-index: var(--z-fixed);
  }
}

.nav__close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
}

.nav__list {
  display: flex;
  flex-direction: column;
  row-gap: 2.5rem;
}

.nav__link {
  color: var(--title-color);
  font-weight: var(--font-medium);
  transition: .3s;
}

.nav__link:hover {
  color: var(--first-color);
}

.active-link {
  color: var(--first-color);
  position: relative;
}

.active-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--first-color);
  border-radius: 4px;
}

/* Show menu */
.show-menu {
  right: 0;
}

/* HOME */
.home__container {
  position: relative;
  row-gap: 3rem;
  height: calc(100vh - 4.5rem);
  align-content: center;
}

.home__content {
  display: grid;
  grid-template-columns: 1fr;
  row-gap: 3rem;
  align-items: center;
}

.home__data {
  text-align: center;
}

.home__subtitle {
  font-size: var(--normal-font-size);
  color: var(--text-color);
  font-weight: var(--font-medium);
  margin-bottom: var(--mb-0-75);
}

.home__title {
  font-size: var(--big-font-size);
  margin-bottom: var(--mb-2);
  line-height: 1.2;
}

.home__title span {
  color: var(--first-color);
}

.home__description {
  max-width: 400px;
  margin: 0 auto var(--mb-2);
  color: var(--text-color);
}

.home__buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.home__social {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
}

.home__social-link {
  color: var(--first-color-alt);
  font-size: 1.25rem;
  transition: .3s;
}

.home__social-link:hover {
  transform: translateY(-5px);
}

.home__image {
  justify-self: center;
  position: relative;
}

.home__blob {
  width: 280px;
  height: 280px;
  background: linear-gradient(180deg, 
              var(--first-color-lighter) 0%, 
              var(--first-color) 100%);
  border-radius: 50%;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.home__img {
  width: 170px;
  border-radius: 10%;
}

.home__shadow {
  width: 280px;
  height: 40px;
  background: rgba(0, 0, 0, 0.1);
  margin: 0 auto;
  filter: blur(12px);
  border-radius: 50%;
  transform: translateY(-20px);
}

.home__scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 0;
  right: 0;
  text-align: center;
}

.home__scroll-link {
  display: inline-flex;
  align-items: center;
  color: var(--first-color);
  font-weight: var(--font-medium);
  transition: .3s;
}

.home__scroll-link:hover {
  transform: translateY(5px);
}

.home__scroll-icon {
  font-size: 1.25rem;
  margin-right: .25rem;
}

/* BUTTONS */
.button {
  display: inline-flex;
  align-items: center;
  background-color: var(--first-color);
  color: #fff;
  padding: 1rem 1.5rem;
  border-radius: var(--border-radius);
  font-weight: var(--font-medium);
  transition: .3s;
}

.button:hover {
  background-color: var(--first-color-alt);
}

.button--ghost {
  background-color: transparent;
  border: 2px solid var(--first-color);
  color: var(--first-color);
}

.button--ghost:hover {
  background-color: var(--first-color);
  color: #fff;
}

/* ABOUT */
.about__container {
  grid-template-columns: 1fr;
  row-gap: 2.5rem;
}

.about__data {
  text-align: center;
}

.about__heading {
  font-size: var(--h2-font-size);
  margin-bottom: var(--mb-1-5);
}

.about__description {
  margin-bottom: var(--mb-2);
}

.about__info {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: var(--mb-2-5);
}

.about__box {
  background-color: var(--container-color);
  border-radius: var(--border-radius);
  padding: 1.5rem 0.75rem;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: .3s;
}

.about__box:hover {
  transform: translateY(-8px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.about__icon {
  font-size: 1.5rem;
  color: var(--first-color);
  margin-bottom: var(--mb-0-5);
}

.about__title {
  font-size: var(--small-font-size);
  font-weight: var(--font-medium);
}

.about__subtitle {
  font-size: var(--smaller-font-size);
}

.about__img {
  width: 280px;
  height: 280px;
  border-radius: var(--border-radius);
  justify-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: var(--first-color);
}

.neural-network-container {
  width: 100%;
  height: 100%;
  padding: 1rem;
}

.neural-network {
  background-color: var(--first-color);
}

.node {
  fill: white;
  transition: fill 0.3s;
}

.connection {
  stroke: rgba(255, 255, 255, 0.6);
  stroke-width: 1.5;
}

.data-particle {
  fill: white;
  opacity: 0.8;
}

.input-node {
  fill: rgba(255, 255, 255, 0.95);
}

.hidden-node {
  fill: rgba(255, 255, 255, 0.9);
}

.output-node {
  fill: rgba(255, 255, 255, 0.95);
}

/* SKILLS */
.skills__container {
  row-gap: 2rem;
}

.skills__content {
  background-color: var(--container-color);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.skills__header {
  display: flex;
  align-items: center;
  margin-bottom: var(--mb-2);
  cursor: pointer;
}

.skills__icon,
.skills__arrow {
  font-size: 1.25rem;
  color: var(--first-color);
}

.skills__icon {
  margin-right: var(--mb-0-75);
}

.skills__title {
  font-size: var(--h3-font-size);
  font-weight: var(--font-medium);
  flex: 1;
}

.skills__arrow {
  transition: .4s;
}

.skills__list {
  row-gap: 1.5rem;
  padding-left: 2.5rem;
}

.skills__titles {
  display: flex;
  justify-content: space-between;
  margin-bottom: var(--mb-0-5);
}

.skills__name {
  font-size: var(--normal-font-size);
  font-weight: var(--font-medium);
}

.skills__number {
  font-size: var(--small-font-size);
  color: var(--text-color-light);
}

.skills__bar {
  height: 5px;
  border-radius: 0.25rem;
  background-color: var(--first-color-lighter);
}

.skills__percentage {
  display: block;
  height: 5px;
  border-radius: 0.25rem;
  background-color: var(--first-color);
}

.skills__python {
  width: 95%;
}

.skills__js {
  width: 85%;
}

.skills__sql {
  width: 80%;
}

.skills__pytorch {
  width: 90%;
}

.skills__tensorflow {
  width: 85%;
}

.skills__llm {
  width: 90%;
}

.skills__cv {
  width: 95%;
}

.skills__docker {
  width: 85%;
}

.skills__aws {
  width: 80%;
}

.skills__git {
  width: 90%;
}

/* Skills open */
.skills__open .skills__list {
  height: max-content;
  transition: .3s;
}

.skills__open .skills__arrow {
  transform: rotate(-180deg);
}

/* WORK/PROJECTS */
.work__filters {
  display: flex;
  justify-content: center;
  align-items: center;
  column-gap: 0.75rem;
  margin-bottom: var(--mb-2);
  flex-wrap: wrap;
  row-gap: 0.5rem;
}

.work__item {
  cursor: pointer;
  color: var(--title-color);
  padding: 0.25rem 0.75rem;
  font-weight: var(--font-medium);
  border-radius: var(--border-radius);
  text-transform: uppercase;
  font-size: var(--small-font-size);
  transition: .3s;
}

.work__item:hover {
  background-color: var(--first-color-lighter);
  color: var(--first-color);
}

.active-work {
  background-color: var(--first-color);
  color: #fff;
}

.work__container {
  padding-top: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 2rem;
}

.work__card {
  background-color: var(--container-color);
  border-radius: var(--border-radius);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: .3s;
}

.work__card:hover {
  transform: translateY(-8px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.work__img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.work__title {
  font-size: var(--h3-font-size);
  font-weight: var(--font-semi-bold);
  margin: 1rem 1rem 0.5rem;
}

.work__description {
  font-size: var(--small-font-size);
  margin: 0 1rem 0.75rem;
  color: var(--text-color-light);
}

.work__buttons {
  display: flex;
  padding: 0 1rem 1rem;
  gap: 1rem;
}

.work__button {
  display: inline-flex;
  align-items: center;
  column-gap: 0.25rem;
  color: var(--first-color);
  font-size: var(--small-font-size);
  font-weight: var(--font-medium);
  transition: .3s;
}

.work__button:hover {
  transform: translateX(3px);
}

.work__icon {
  font-size: 1rem;
  transition: .3s;
}

/* CONTACT */
.contact__container {
  row-gap: 3rem;
}

.contact__info {
  display: grid;
  gap: 1.5rem;
}

.contact__card {
  background-color: var(--container-color);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  text-align: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: .3s;
}

.contact__card:hover {
  transform: translateY(-8px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.contact__card-icon {
  font-size: 2rem;
  color: var(--first-color);
  margin-bottom: var(--mb-0-5);
}

.contact__card-title {
  font-size: var(--h3-font-size);
  font-weight: var(--font-medium);
  margin-bottom: var(--mb-0-25);
}

.contact__card-data {
  display: block;
  font-size: var(--small-font-size);
  margin-bottom: var(--mb-0-75);
}

.contact__button {
  display: inline-flex;
  align-items: center;
  column-gap: 0.25rem;
  color: var(--first-color);
  font-size: var(--small-font-size);
  font-weight: var(--font-medium);
  transition: .3s;
}

.contact__button:hover {
  transform: translateX(3px);
}

.contact__button-icon {
  font-size: 1rem;
  transition: .3s;
}

.contact__form {
  background-color: var(--container-color);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.contact__form-div {
  position: relative;
  margin-bottom: var(--mb-1-5);
  height: 4rem;
}

.contact__form-area {
  height: 11rem;
}

.contact__form-input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 1.5rem;
  border-radius: var(--border-radius);
  background: none;
  border: 2px solid var(--first-color-lighter);
  outline: none;
  z-index: 1;
  resize: none;
}

.contact__form-tag {
  position: absolute;
  top: -0.75rem;
  left: 1.25rem;
  font-size: var(--smaller-font-size);
  padding: 0.25rem;
  background-color: var(--container-color);
  z-index: 10;
}

/* FOOTER */
.footer {
  background-color: var(--first-color);
  padding: 3rem 0 1rem;
  color: #fff;
}

.footer__title {
  font-size: var(--h1-font-size);
  margin-bottom: var(--mb-2);
  text-align: center;
}

.footer__list {
  display: flex;
  justify-content: center;
  column-gap: 1.5rem;
  margin-bottom: var(--mb-2);
  flex-wrap: wrap;
}

.footer__link {
  color: #fff;
  transition: .3s;
}

.footer__link:hover {
  text-decoration: underline;
}

.footer__social {
  display: flex;
  justify-content: center;
  column-gap: 1.25rem;
  margin-bottom: var(--mb-2);
}

.footer__social-link {
  background-color: #fff;
  color: var(--first-color);
  font-size: 1.25rem;
  padding: 0.4rem;
  border-radius: 0.5rem;
  display: inline-flex;
  transition: .3s;
}

.footer__social-link:hover {
  background-color: var(--title-color);
  color: #fff;
}

.footer__copy {
  display: block;
  margin-top: 3rem;
  text-align: center;
  font-size: var(--smaller-font-size);
}

/* SCROLL UP */
.scrollup {
  position: fixed;
  right: 2rem;
  bottom: -20%;
  background-color: var(--first-color);
  padding: 0.5rem;
  border-radius: 0.4rem;
  z-index: var(--z-tooltip);
  transition: .4s;
  display: flex;
  opacity: 0.8;
}

.scrollup:hover {
  background-color: var(--first-color-alt);
  opacity: 1;
}

.scrollup__icon {
  font-size: 1.5rem;
  color: #fff;
}

/* Show scroll */
.show-scroll {
  bottom: 5rem;
}

/* RESPONSIVE */
/* Small devices */
@media screen and (max-width: 350px) {
  .container {
    margin-left: var(--mb-1);
    margin-right: var(--mb-1);
  }

  .home__img {
    width: 180px;
  }

  .home__blob {
    width: 220px;
  }

  .about__info {
    grid-template-columns: repeat(2, 1fr);
  }

  .skills__title {
    font-size: var(--normal-font-size);
  }

  .work__item {
    font-size: var(--smaller-font-size);
  }

  .work__filters {
    column-gap: 0.25rem;
  }

  .footer__list {
    flex-direction: column;
    row-gap: 1.5rem;
    align-items: center;
  }
}

/* Medium devices */
@media screen and (min-width: 568px) {
  .home__content {
    grid-template-columns: max-content 1fr 1fr;
  }

  .home__data {
    grid-column: initial;
    text-align: left;
  }

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

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

  .about__container,
  .skills__container,
  .contact__container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (min-width: 768px) {
  .container {
    margin-left: auto;
    margin-right: auto;
  }

  body {
    margin: 0;
  }

  .section {
    padding: 7rem 0 2rem;
  }

  .section__title {
    margin-bottom: var(--mb-1-5);
  }

  .section__subtitle {
    margin-bottom: var(--mb-3);
  }

  .header {
    top: 0;
    bottom: initial;
  }

  .nav {
    height: 5rem;
    column-gap: 1rem;
  }
  
  .nav__logo,
  .nav__toggle, 
  .nav__close {
    display: none;
  }
  
  .nav__list {
    display: flex;
    column-gap: 2rem;
    flex-direction: row;
  }
  
  .nav__link {
    color: var(--title-color);
  }

  .home__content {
    padding-top: 3rem;
    column-gap: 2rem;
  }

  .home__blob {
    width: 320px;
  }

  .home__scroll {
    display: block;
  }

  .about__container {
    column-gap: 5rem;
  }

  .about__img {
    width: 350px;
    height: 350px;
  }

  .contact__info {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Large devices */
@media screen and (min-width: 1024px) {
  .container {
    margin-left: auto;
    margin-right: auto;
  }

  .home__blob {
    width: 400px;
  }
  
  .home__img {
    width: 220px;
  }

  .about__img {
    width: 400px;
    height: 400px;
  }

  .about__description {
    max-width: 460px;
  }
}
}