:root {
  --text-color: #141e30;
  --text-color-ligth: #243b55;
  --color-secondary: #6a5fd3;
  --color-secondary-ligth: #e1defd;
  --color-secondary-dark: #4e45a2;
  --color-acent: #8e00ff;
  --color-acent-ligth: #f4e9ff;
  --color-acent-dark: #5f01ac;
  --color-grey: #e0dcdd;
  --color-grey-ligth: #f0edee;
  --color-white: #ffffff;
  --background-gradient: linear-gradient(to bottom, #e0dcdd 70%, #ffffff 100%);
  --transition-base: all 250ms ease-in-out;
  --font-text: "Bitter", serif;
  --font-title-comic: "Bangers", system-ui;
  --icon-height: 28px;
  color-scheme: light dark;
}
* {
  padding: 0;
  margin: 0;
  margin: 0;
  box-sizing: border-box;
}
html {
  visibility: visible !important;
  opacity: 1 !important;
  font-size: 16px;
  font-family: var(--font-text);
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  -webkit-font-smoothing: antialiased;
}
h1,
h2,
h3,
h4,
h5 {
  font-family: var(--font-title-comic);
  font-weight: 400;
  font-style: normal;
  font-size: 2rem;
  color: #fff;
}
body {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: rgb(224, 220, 221);
  background: var(--background-gradient);
  color: var(--text-color);
  color-scheme: light dark;
  transition: var(--transition-base);
  overflow-x: hidden;
}
hr {
  width: 50px;
  border: 0.5px solid var(--color-secondary);
  margin: 2rem auto;
}
main {
  width: 100%;
  max-width: 1100px;
  min-width: 250px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
  text-align: center;
  margin: 0 auto;
  padding-top: 2rem;
  img {
    color-scheme: light dark;
    max-width: 200px;
    transition: all 250ms ease-in-out;
    -webkit-transition: all 250ms ease-in-out;
    -moz-transition: all 250ms ease-in-out;
    -ms-transition: all 250ms ease-in-out;
    -o-transition: all 250ms ease-in-out;
    &:hover {
      transform: scale(0.99);
    }
  }
  p {
    width: 80%;
    max-width: 400px;
    margin: 0.5rem auto;
    font-size: 1.5rem;
    color: var(--text-color);
  }
}
.wrapper {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
}
/* ---- Projectos sections ---- */
.projects-container {
  width: 100%;
  padding: 1rem 1rem;
  h2 {
    margin-bottom: 2rem;
    font-size: 2rem;
    color: var(--text-color);
  }
}
.projects-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}
.card {
  background: var(--color-white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease-in-out;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}
.card__image-container {
  margin: 0;
  padding: 0;
  overflow: hidden;
  height: 200px;
}
.card__image {
  width: 100%;
  max-width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.card:hover .card__image {
  transform: scale(1.05);
}
.card__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 1.8rem 1.8rem;
}
.card__title {
  width: 100%;
  font-size: 1.1rem;
  line-height: 1.1;
  text-align: left;
  font-family: var(--font-text);
  font-weight: 700;
  color: var(--text-color);
}
.card__description {
  width: 100%;
  font-size: 14px;
  text-align: left;
  line-height: 1.1;
  color: var(--text-color);
  margin-bottom: 1.5rem;

}
.card__button-container{
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: start;
  gap: 12px;
  border-top: 1px solid var(--color-grey);
  padding-top: 1rem;
  * {
    width: 50%;
  }
}
.card__tech {
  p{
    width: 100%;
    margin: 0;
    font-size: 0.8rem;
    opacity: 0.7!important;
  }
  ul{
    width: 100%;
    list-style: none;
    display: flex;
    flex-direction: row-reverse;
  }
  li{
    width: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}
.card__button, .btn-download {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  background-color: var(--color-secondary);
  color: var(--color-white);
  text-decoration: none;
  border-radius: 6px;
  font-weight: 500;
  font-size: 0.9rem;
  transition: background-color 0.3s ease;
  border:none;
}

.card__button:hover, .btn-download:hover {
  background-color: var(--color-secondary-ligth);
  color: var(--color-secondary-dark);
}
/* End => Projectos sections */
footer {
  width: 100%;
  padding: 0 2rem;
  border-top: 1px solid;
}
#footer-wrapper {
  width: 100%;
  max-width: 1100px;
  padding: 1rem 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0 auto;
}
footer div {
  display: flex;
  flex-direction: row;
  align-items: center;
}
.footer-social {
  justify-content: end;
  ul {
    display: inline-flex;
    gap: 1rem;
    list-style: none;
  }
  li a {
    display: block;
    width: var(--icon-height);
    height: var(--icon-height);
    border: none;
    border-radius: 0.5rem;
    transition: all 550ms ease-in-out;
    margin: 0 auto;
    padding: 3px 4px;
    background-color: transparent;
    stroke: var(--text-color) !important;
  }
  li a:hover {
    background-color: var(--color-grey-ligth);
    stroke: var(--text-color-ligth);
  }
}

/* --------------------------------

Efects

-------------------------------- */
/*Style for comic title*/
.header-custom {
  font-size: 4rem;
  line-height: 3.2rem;
  rotate: 358deg;

  span {
    font-size: 3rem;
  }
}
.gradient-text {
  background: -webkit-linear-gradient(
    var(--text-color),
    var(--text-color-ligth)
  );
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
/*Efect <p> underlined*/
.underlined {
  position: relative;
  white-space: nowrap;
  &:after {
    --deco-height: 0.3125em;
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: calc(var(--deco-height) * -0.25);
    height: var(--deco-height);
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='64' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cg clip-path='url(%23a)'%3E%3Cpath d='M-17 30.5C-1 22 72-4 54 13 37.9 28.2-2.5 57.5 16 55.5s72-29 104-40' stroke='%23F37C34' stroke-width='10'/%3E%3C/g%3E%3Cdefs%3E%3CclipPath id='a'%3E%3Cpath fill='%23fff' d='M0 0h100v64H0z'/%3E%3C/clipPath%3E%3C/defs%3E%3C/svg%3E%0A");
    background-size: auto 100%;
    background-repeat: round;
    background-position: 0em;
  }
}
/*--- 1 Style for all selected items except elements with class .gradient-text.*/
*:not(.gradient-text)::selection {
  background-color: var(--color-acent);
  color: var(--color-white);
}
/*--- 2 Style for any element selected (*) with class .gradient-text */
*.gradient-text::selection {
  background: var(--color-acent);
  background-clip: initial;
  -webkit-background-clip: initial;
  -webkit-text-fill-color: var(--color-white);
}
/*--- 3 Style element son of any element selected with class .gradient-text */
.gradient-text span::selection {
  background: var(--color-acent);
  background-clip: initial;
  -webkit-background-clip: initial;
  -webkit-text-fill-color: var(--color-white);
}
/* --------------------------------

Dark Mode / Light Mode

-------------------------------- */
body.dark-theme {
  --background-gradient: #1c1b21;
  --text-color: #fff;

  .container {
    h1 {
      background: -webkit-linear-gradient(#7d99cb, #d9ebff);
      background-clip: text;
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
    }
  }
}
.dark-theme img {
  filter: brightness(0.8) contrast(1.2);
}
.btn-toggle {
  display: block;
  width: var(--icon-height);
  height: var(--icon-height);
  border: none;
  border-radius: 0.5rem;
  stroke: var(--text-color);
  transition: all 550ms ease-in-out;
  margin: 0 auto;
  padding: 3px 4px;
  background-color: transparent;
  &:hover {
    background-color: var(--color-grey-ligth);
    stroke: var(--text-color-ligth);
  }
}
.dark-theme .card{
  background-color: #2a2930;
}
a#toggleDarkModeBtn {
  width: 1.6rem;
  display: block;
  margin: 0 auto;
}
.dark-theme .footer-social li a:hover{
  background-color: var(--color-grey-ligth);
  svg {
    stroke: var(--text-color-ligth);
  }
}
/* --------------------------------

Animation Scale

-------------------------------- */
.scale.cd-intro-content * {
  /* overwrite default style */
  opacity: 1;
}

.scale.cd-intro-content {
  /* overwrite default style */
  background-color: transparent;
  /* Force hardware acceleration */
  -webkit-transform: translateZ(0);
  -moz-transform: translateZ(0);
  -ms-transform: translateZ(0);
  -o-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-animation: cd-scale-in 0.6s 0.3s both;
  -moz-animation: cd-scale-in 0.6s 0.3s both;
  animation: cd-scale-in 0.6s 0.3s both;
}

@-webkit-keyframes cd-scale-in {
  0% {
    opacity: 0;
    -webkit-transform: scale(1.025);
  }
  100% {
    opacity: 1;
    -webkit-transform: scale(1);
  }
}
@-moz-keyframes cd-scale-in {
  0% {
    opacity: 0;
    -moz-transform: scale(1.025);
  }
  100% {
    opacity: 1;
    -moz-transform: scale(1);
  }
}
@keyframes cd-scale-in {
  0% {
    opacity: 0;
    -webkit-transform: scale(1.025);
    -moz-transform: scale(1.025);
    -ms-transform: scale(1.025);
    -o-transform: scale(1.025);
    transform: scale(1.025);
  }
  100% {
    opacity: 1;
    -webkit-transform: scale(1);
    -moz-transform: scale(1);
    -ms-transform: scale(1);
    -o-transform: scale(1);
    transform: scale(1);
  }
}
/* --------------------------------

Responsive

-------------------------------- */
@media only screen and (max-width: 768px) {
  .container {
    width: 90%;

    img {
      width: auto;
      height: 333px;
    }

    h1 {
      font-size: 3rem;
      line-height: 2.5rem;

      span {
        font-size: 2rem;
      }
    }

    p {
      padding-bottom: 0rem;
    }
  }
  button {
    margin-bottom: 2rem;
  }
  .card__tech{
    img{
      width: 28px;
      height: 28px;
    }
  }

  #footer-wrapper {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
  }
  .footer-toggle {
    padding: 1rem;
  }
  footer div {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
}
