@import url("https://fonts.googleapis.com/css2?family=Ubuntu:wght@300;400;500;700&display=swap");

/* /////////////////////////////////////////////// */
/* //////////////// VARIABLES ///////////// */
/* //////////////////////////////////////////////// */
:root {
  --clr-main: #fff;
  --clr-secondary: #c3c3c3;
  --bg-dark: #1e1e1e;

  --clr-btn-primary: #7cf997;
  --clr-btn-primary-hover: rgb(58, 222, 94);

  --box-shadow-primary: 2px 2px 7px 1px rgba(255, 255, 255, 0.4);
  --box-shadow-hover: 2px 2px 10px 1px rgba(255, 255, 255, 0.2);
}

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

h1,
h2,
h3,
h4,
h5,
h6,
p {
  margin: 0;
}

/* /////////////////////////////////////////////// */
/* //////////////// GENERAL STYLES ///////////// */
/* //////////////////////////////////////////////// */

html {
  font-size: 10px;
}

body {
  background-color: var(--bg-dark);
  font-family: "Ubuntu", sans-serif;
}
section {
  margin-top: 10rem;
}

/* /////////////////////////////////////////////// */
/* //////////////// PROJECT STYLES ///////////// */
/* //////////////////////////////////////////////// */

.project__img {
  object-fit: cover;
  height: 39rem;
  width: 100%;
  border-radius: 2.5rem;
  transition: all 0.3s ease-in-out;
}
.project__img:hover {
  cursor: pointer;
  transform: translateY(-1rem);
  transition: all 0.3s ease-in-out;
  opacity: 0.7;
}

.project__content__wrapper {
  margin: auto auto;
}
.project__title {
  font-size: 3.2rem;
  color: var(--clr-main);

  animation-name: moveFromRight;
  animation-duration: 2s;
  animation-iteration-count: 1;

  transition: all 0.3s ease-in;
}

.project__title:hover {
  transition: all 0.3s ease-in;
  transform: translateY(-0.5rem);
}
.project__info {
  font-size: 2.5rem;
  font-weight: 300;
  color: var(--clr-secondary);

  margin-top: 2rem;
  opacity: 50%;

  animation-name: moveFromRight;
  animation-duration: 2s;
  animation-delay: 1s;
  animation-iteration-count: 1;

  transition: all 0.3s ease-in;
}

.project__info:hover {
  transition: all 0.3s ease-in;
  transform: translateY(-0.5rem);
}

.project__button {
  background-color: var(--clr-btn-primary);
  color: var(--bg-dark);
  border: none;
  border-radius: 1rem;
  padding: 1rem 2rem;
  margin-top: 2rem;

  animation-name: moveFromRight;
  animation-duration: 2s;
  animation-delay: 2s;
  animation-iteration-count: 1;

  transition: all 0.3s ease-in;

  font-size: 1.5rem;
  font-weight: 600;

  box-shadow: var(--box-shadow-primary);
}
.project__button:hover {
  transition: all 0.3s ease-in;
  color: var(--clr-main);
  transform: translateY(-0.25rem);

  background-color: var(--clr-btn-primary-hover);
  box-shadow: var(--box-shadow-hover);
}

/* //////////////////////////////////////////////////// */
/* //////////////// FOOTER PROFILE STYLES ///////////// */
/* //////////////////////////////////////////////////// */

.footer__wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 10rem;
}
.footer__pofile {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.footer__profile__pic {
  width: 29rem;
  border-radius: 50%;
  transition: all 0.3s ease-out;
}
.footer__profile__pic:hover {
  transition: all 0.3s ease-in;
  transform: translateY(-1rem);

  box-shadow: var(--box-shadow-hover);
}

.footer__button {
  padding: 2rem 12rem;
  border-radius: 20rem;
  font-size: 2.5rem;
  letter-spacing: 0.25rem;
  background-color: var(--clr-btn-primary);
  color: var(--bg-dark);
  font-weight: 600;
  border: none;

  transition: all 0.3s ease-out;
}

.footer__button:hover {
  background-color: var(--clr-btn-primary-hover);
  transition: all 0.3s ease-in;
  transform: translateY(-0.5rem);
  box-shadow: var(--box-shadow-hover);
}
.footer__profile__name {
  font-weight: 500;
  font-size: 3rem;
  color: var(--clr-main);
  text-align: center;
}

.footer__profile__position {
  color: var(--clr-secondary);
  font-size: 2rem;
  text-align: center;
}

@keyframes moveFromRight {
  0% {
    transform: translateX(1rem);
  }

  50% {
    transform: translateX(2rem);
  }
  100% {
    transform: translateX(0rem);
  }
}

/* ///////////////////////////////////////////////////// */
/* //////////////// MOBILE RESPONSIVENESS ///////////// */
/* //////////////////////////////////////////////////// */

@media only screen and (max-width: 990px) {
  .project__img {
    margin-top: 2rem;
    margin-bottom: 2rem;
  }
  html {
    font-size: 7px;
  }
  section {
    padding-right: 3rem;
    padding-left: 3rem;
  }
}
