@font-face {
  font-family: Dream;
  src: url(../Fonts/dream.otf);
}

/*==================== GOOGLE FONTS ====================*/
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700;800;900&display=swap");

/*==================== VARIABLES CSS ====================*/
:root {
  --header-height: 3rem;

  /*========== Colors ==========*/
  /* Change favorite color */
  --hue-color: 220; /*Purple 250 - Green 142 - Blue 230 - Pink 340*/

  /* HSL color mode */
  --first-color: #05c17c;
  --first-color-second: #ff4d12;
  --first-color-alt: #0fc94d;
  --first-color-lighter: #07f49e;
  --title-color: hsl(var(--hue-color), 8%, 15%);
  --text-color: hsl(var(--hue-color), 8%, 45%);
  --text-color-light: hsl(var(--hue-color), 8%, 65%);
  --input-color: #ffffff;
  --placeholder-color: rgba(0, 0, 0, 0.35);
  --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%);
  --nav-bar-color: #858585;
  --nav-active: #272727;
  --link-icon: #272727;
  --animate-text: #858585;
  --bar-color: #eee;
  --project-bg: #ffffff;
  --project-text: #222;

  /*========== Font and typography ==========*/
  --body-font: "Poppins", sans-serif;

  /* .5rem = 8px, 1rem = 16px, 1.5rem = 24px ... */
  --big-font-size: 2rem;
  --h1-font-size: 1.5rem;
  --h2-font-size: 1.25rem;
  --h3-font-size: 1.125rem;
  --normal-font-size: 0.938rem;
  --small-font-size: 0.813rem;
  --smaller-font-size: 0.75rem;

  /*========== Font weight ==========*/
  --font-medium: 500;
  --font-semi-bold: 600;

  /*========== Margenes Bottom ==========*/
  /* .25rem = 4px, .5rem = 8px, .75rem = 12px ... */
  --mb-0-25: 0.25rem;
  --mb-0-5: 0.5rem;
  --mb-0-75: 0.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;
}

/* Font size for large devices */
@media screen and (min-width: 968px) {
  :root {
    --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: 0.875rem;
    --smaller-font-size: 0.813rem;
  }
}

/*========== Variables Dark theme ==========*/

body.dark-theme {
  /* HSL color mode */
  --nav-active: #eee;
  --link-icon: #eee;
  --project-bg: #272727;
  --project-text: rgb(255, 255, 255);

  --first-color-second: hsl(var(--hue-color), 30%, 8%);
  --title-color: hsl(var(--hue-color), 8%, 95%);
  --text-color: hsl(var(--hue-color), 8%, 75%);
  --input-color: #0c0c0c;
  --placeholder-color: rgba(255, 255, 255, 0.25);
  --body-color: #0c0c0c;
  --container-color: #272727;
  --scroll-thumb-color: hsl(var(--hue-color), 67%, 60%);
}

/*========== Button Dark/Light ==========*/
.nav__btns {
  display: flex;
  align-items: center;
}

.change-theme {
  font-size: 1.25rem;
  color: var(--title-color);
  margin-right: var(--mb-1);
  cursor: pointer;
}

.change-theme-port {
  font-size: 1.25rem;
  color: var(--title-color);
  cursor: pointer;
}

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

/*========== Button Dark/Light ==========*/

.swiper {
  width: 100%;
  padding-top: 50px;
  padding-bottom: 50px;
}

.swiper-slide {
  background-position: center;
  background-size: cover;
  width: 300px;
  height: 300px;
}

/*==================== BASE ====================*/
* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 30px var(--input-color) inset !important;
}

::selection {
  color: white;
  background-color: #05c17c;
}

body {
  margin: 0 0 var(--header-height) 0;
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  background-color: var(--body-color);
  color: var(--text-color);
  position: relative;
}

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

ul {
  list-style: none;
}

a {
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

input {
  font-family: inherit;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

label {
  font-family: inherit;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

div {
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

button {
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

img {
  max-width: 100%;
  height: auto;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

::-moz-placeholder {
  color: var(--placeholder-color);
}
::-webkit-input-placeholder {
  color: var(--placeholder-color);
}

::-webkit-tap-highlight-color {
  color: transparent;
}

/*==================== For Portfolio ====================*/

.intro {
  margin-top: 8rem;
  color: var(--nav-active);
  text-align: center;
  font-size: 2rem;
}

.intro__subtitle {
  font-size: 1.2rem;
  padding: 1rem 2rem;
  margin-bottom: 4rem;
  color: #858585;
}

.photo__container {
  max-width: 1300px;
  margin: 0 auto;
  transition: all 1s;
  user-select: none;
}

.photo__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 400px));
  gap: 2rem;
  place-content: center;
  padding: 1rem;
}

.photo__grid--div {
  object-fit: cover;
  max-width: 400px;
  border-radius: 10px;
  cursor: pointer;
}

.photo__grid--img {
  object-fit: cover;
  aspect-ratio: 1;
  border-radius: 10px;
}

.photo__grid--img-free {
  object-fit: cover;
  border-radius: 10px;
}

.photo__grid--img:hover,
.photo__grid--img-free:hover {
  transform: scale(1.05);
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.15);
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.94, 1);
}

@media screen and (max-width: 760px) {
  .intro {
    margin-top: 3rem;
    font-size: 1.6rem;
    padding: 0 2rem;
  }
  .intro {
    margin-top: 3rem;
    font-size: 1.6rem;
  }

  .intro__subtitle {
    font-size: 1rem;
    padding: 1rem;
    margin-top: 0rem;
    margin-bottom: 0rem;
  }

  .photo__container {
    max-width: 1300px;
    margin: 2rem auto;
  }
}

@media screen and (max-width: 760px) {
  .intro {
    font-size: 1.4rem;
  }
}
/*==================== REUSABLE CSS CLASSES ====================*/
.section {
  padding: 2rem 0 4rem;
  transition: all 0.4s cubic-bezier(0.7, 0.62, 0.27, 0.98);
}

.thanks {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.thanks img {
  width: 6rem;
}

.asap {
  margin-top: -2rem;
}

.asapmeli {
  font-family: dream;
}

@keyframes fadeInAbout {
  0% {
    opacity: 0;
    transform: translateY(80px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.section-about {
  padding: 2rem 0 4rem;
}

.section__title {
  font-size: var(--h1-font-size);
  color: var(--title-color);
}

.section__subtitle {
  display: block;
  font-size: var(--small-font-size);
  margin-bottom: var(--mb-3);
}

.section__title,
.section__subtitle {
  text-align: center;
}

/*==================== LAYOUT ====================*/
.loader {
  width: 100vw;
  height: 100vh;
  background-color: var(--body-color);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
}

.loader img {
  animation: gelatine 1s infinite;
}

@media screen and (max-width: 400px) {
  .loader img {
    width: 100px;
  }
}

.nav__container {
  max-width: 768px;
  user-select: none;
}

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

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

.header {
  width: 100%;
  position: fixed;
  bottom: 0;
  left: 0;
  z-index: var(--z-fixed);
  background-color: var(--body-color);
}

/*==================== NAV ====================*/

.nav {
  max-width: 968px;
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav__logo,
.nav__toggle {
  color: var(--title-color);
  font-weight: var(--font-medium);
}

.nav__logo:hover {
  font-size: 1.1rem;
  cursor: pointer;
}

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

.nav__goBack {
  margin-right: 1rem;
}

@media screen and (max-width: 767px) {
  .nav__menu {
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    background-color: var(--body-color);
    padding: 2rem 1.5rem 4rem;
    box-shadow: 0 -1px 4px rgba(0, 0, 0, 0.15);
    border-radius: 1.5rem 1.5rem 0 0;
    transition: 0.3s;
  }
}

.nav__list {
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.nav__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: var(--small-font-size);
  color: var(--nav-bar-color);
  font-weight: var(--font-medium);
}

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

.nav__icon {
  font-size: 1.2rem;
}

.nav__logo--img {
  width: 46px;
}

.nav__close {
  position: absolute;
  right: 1.3rem;
  bottom: 0.5rem;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--nav-bar-color);
}

.nav__close:hover {
  color: var(--nav-active);
}

/* show menu */
.show-menu {
  bottom: 0;
}

.swiper-wrapper {
  height: max-content;
}
/* scroll-reveal */

.section--hidden {
  opacity: 0;
  transform: translateY(8rem);
}

.scroll {
  opacity: 1;
  transform: translateY(0);
}

/* Active link */

.active-link {
  color: var(--nav-active);
  font-weight: bold;
}

/* Change background header */

.scroll-header {
  box-shadow: 0 -1px 4px rgba(0, 0, 0, 0.15);
}

.language {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 2px;
}

.language__link {
  padding: 6px;
  font-weight: 500;
  color: var(--nav-bar-color);
  transition: all 0.2s;
}

.active__language {
  color: var(--nav-active);
  font-weight: 600;
}

.language__separator {
  border-right: 2px solid var(--project-text);
  border-radius: 4px;
  height: 14px;
}

/*==================== HOME ====================*/

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}
@keyframes bounce {
  70% {
    transform: translateY(0%);
  }
  80% {
    transform: translateY(-15%);
  }
  90% {
    transform: translateY(0%);
  }
  95% {
    transform: translateY(-7%);
  }
  97% {
    transform: translateY(0%);
  }
  99% {
    transform: translateY(-3%);
  }
  100% {
    transform: translateY(0);
  }
}

@keyframes bounce2 {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-30px);
  }
  60% {
    transform: translateY(-15px);
  }
}

@-webkit-keyframes ping {
  0% {
    -webkit-transform: scale(0.2);
    transform: scale(0.2);
    opacity: 0.8;
  }
  80% {
    -webkit-transform: scale(1.2);
    transform: scale(1.2);
    opacity: 0;
  }
  100% {
    -webkit-transform: scale(2.2);
    transform: scale(2.2);
    opacity: 0;
  }
}
@keyframes ping {
  0% {
    -webkit-transform: scale(0.2);
    transform: scale(0.2);
    opacity: 0.8;
  }
  80% {
    -webkit-transform: scale(1.2);
    transform: scale(1.2);
    opacity: 0;
  }
  100% {
    -webkit-transform: scale(2.2);
    transform: scale(2.2);
    opacity: 0;
  }
}

.ping {
  -webkit-animation: ping 0.8s ease-in-out infinite both;
  animation: ping 0.8s ease-in-out infinite both;
}

@keyframes gelatine {
  from,
  to {
    transform: scale(1, 1);
  }
  25% {
    transform: scale(0.9, 1.1);
  }
  50% {
    transform: scale(1.1, 0.9);
  }
  75% {
    transform: scale(0.95, 1.05);
  }
}
@keyframes gelatineBlob {
  from,
  to {
    transform: translate(-50%, -50%) scale(1, 1);
  }
  25% {
    transform: translate(-50%, -50%) scale(0.9, 1.1);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.1, 0.9);
  }
  75% {
    transform: translate(-50%, -50%) scale(0.95, 1.05);
  }
}

@keyframes wobble {
  0% {
    transform: translateX(0);
  }
  15% {
    transform: translateX(-25px) rotate(-5deg);
  }
  30% {
    transform: translateX(20px) rotate(3deg);
  }
  45% {
    transform: translateX(-15px) rotate(-3deg);
  }
  60% {
    transform: translateX(10px) rotate(2deg);
  }
  75% {
    transform: translateX(-5px) rotate(-1deg);
  }
  100% {
    transform: translateX(0);
  }
}

@keyframes hinge {
  0% {
    transform: rotate(0);
    transform-origin: top left;
    animation-timing-function: ease-in-out;
  }
  20%,
  60% {
    transform: rotate(80deg);
    transform-origin: top left;
    animation-timing-function: ease-in-out;
  }
  40% {
    transform: rotate(60deg);
    transform-origin: top left;
    animation-timing-function: ease-in-out;
  }
  80% {
    transform: rotate(60deg) translateY(0);
    opacity: 1;
    transform-origin: top left;
    animation-timing-function: ease-in-out;
  }
  100% {
    transform: translateY(700px);
    opacity: 0;
  }
}

@keyframes hingeBack {
  100% {
    transform: rotate(0);
    transform-origin: top left;
    animation-timing-function: ease-in-out;
  }
  60%,
  80% {
    transform: rotate(80deg);
    transform-origin: top left;
    animation-timing-function: ease-in-out;
  }
  40% {
    transform: rotate(60deg);
    transform-origin: top left;
    animation-timing-function: ease-in-out;
  }
  20% {
    transform: rotate(60deg) translateY(0);
    opacity: 1;
    transform-origin: top left;
    animation-timing-function: ease-in-out;
  }
  0% {
    transform: translateY(700px);
    opacity: 0;
  }
}

@keyframes move {
  0% {
    transform: scale(1);
  }
  38% {
    transform: scale(0.9, 1.1) rotate(60deg);
  }
  40% {
    transform: scale(0.9, 1.1) rotate(60deg);
  }
  78% {
    transform: scale(1.1) rotate(-20deg);
  }
  80% {
    transform: scale(1.1) rotate(-20deg);
  }
  100% {
    transform: scale(1);
  }
}

.animate-text {
  display: inline-block;
  opacity: 1;
  white-space: none;
  transition: all 0.2s;
  user-select: none;
}

.color-blue {
  color: var(--first-color-lighter);
}
.animate-text:nth-child(1) {
  animation-delay: 100ms;
}
.animate-text:hover {
  animation: gelatine 1s ease-in-out infinite;
  animation-fill-mode: backwards;
  color: var(--first-color);
}

.home__container {
  gap: 1rem;
  user-select: none;
}

.home__img {
  position: relative;
}

.home__img-pad {
  position: absolute;
  bottom: 6%;
  left: 10%;
  width: 200px;
}

@keyframes upNdown {
  0% {
    transform: translateY(-3px);
  }

  50% {
    transform: translateY(6px);
  }

  100% {
    transform: translateY(-3px);
  }
}

.home__content {
  grid-template-columns: 0.5fr 3fr;
  padding-top: 3.5rem;
  align-items: center;
}

.home__social {
  display: grid;
  grid-template-columns: max-content;
  row-gap: 1rem;
}

.home__social-icon {
  position: relative;
  font-size: 1.25rem;
  color: var(--link-icon);
}

.home__social-icon::before {
  content: "";
  width: 50px;
  height: 50px;
  background-color: var(--first-color);
  border-radius: 50%;
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: -1;
  animation: gelatineBlob 1s ease-in forwards infinite;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.home__scroll-fall {
  opacity: 0;
}
.home__scroll-fallUp {
  opacity: 1;
}

.home__social-icon:hover {
  color: white;
  animation: gelatine 1s ease-in forwards infinite;
}
.home__social-icon:hover::before {
  display: inline-block;
}

.home__div {
  display: inline-block;
  width: max-content;
  height: 60px;
  margin: 6px;
  font-family: dream;
}

.home__div-text {
  height: 60px;
  display: inline-block;
}

.home__data {
  grid-column: 1/3;
}

.home__top {
  display: block;
  color: var(--first-color);
  font-size: 24px;
}
.home__title {
  font-family: Dream;
  font-size: 2.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding-bottom: 2rem;
  margin-left: -0.5rem;
  margin-top: -10px;
}

@media screen and (max-width: 1440px) {
  .home__title {
    font-size: 1.8rem;
    gap: 2px;
  }

  .home__img-pad {
    width: 100px;
  }
}

@media screen and (max-width: 450px) {
  .home__title {
    font-size: 1.8rem;
    gap: 0px;
  }
  .home__div {
    height: 30px;
  }
}

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

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

/* .home__scroll:hover .home__scroll-button {
  animation: hinge 1s ease forwards;
} */

.home__scroll-button {
  color: var(--first-color);
  transition: 0.3s;
}

.home__scroll-button:hover {
  transform: translateY(0.25rem);
}

.home__scroll-mouse {
  font-size: 2rem;
}

.home__scroll-name {
  font-size: var(--small-font-size);
  color: var(--title-color);
  font-weight: var(--font-medium);
  margin-right: var(--mb-0-25);
}

.home__scroll-arrow {
  font-size: 1.25rem;
}

/*==================== BUTTONS ====================*/

@keyframes moveInbottom {
  0% {
    opacity: 0;
    transform: translateY(5rem);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.button {
  display: inline-block;
  background-color: var(--first-color);
  color: #fff;
  padding: 1rem;
  border-radius: 100px;
  font-family: inherit;
  font-weight: var(--font-medium);
  border: none;
  transition: all 0.2s;
  cursor: pointer;
}

.button__icon {
  font-size: 1.25rem;
  margin-left: var(--mb-0-5);
  transition: 0.3s;
}

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

.button--white:hover {
  background-color: #fff;
}

.button--flex {
  display: inline-flex;
  align-items: center;
}

.button--view {
  text-align: center;
  margin: 0 auto;
}

.button--small {
  padding: 0.75rem 1rem;
}

.button--link {
  padding: 0;
  background-color: transparent;
  color: var(--first-color);
}

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

.button--submit {
  display: flex;
  justify-content: flex-end;
}

/*==================== ABOUT ====================*/
.about__img {
  width: 200px;
  border-radius: 0.5rem;
  justify-self: center;
  align-self: center;
}
.about__data {
  text-align: center;
}

.about__description {
  text-align: center;
  font-weight: 500;
  margin-bottom: var(--mb-2-5);
}

.about__info {
  display: flex;
  justify-content: space-evenly;
  margin-bottom: var(--mb-2-5);
}

.about__info-title {
  font-size: var(--h2-font-size);
  font-weight: var(--font-semi-bold);
  color: var(--title-color);
}

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

.about__info-title,
.about__info-name {
  display: block;
  text-align: center;
}

/*==================== SKILLS ====================*/

.skills__container {
  row-gap: 0;
  user-select: none;
}

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

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

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

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

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

.skills__arrow {
  margin-left: auto;
  transition: 0.4s;
}

.skills__list {
  row-gap: 1.5rem;
  padding-left: 2.7rem;
  animation: bounce2 0.2s ease-in forwards;
}

.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__bar,
.skills__percentage {
  height: 5px;
  border-radius: 0.25rem;
}

.skills__bar {
  background-color: var(--bar-color);
}

.skills__percentage {
  display: block;
  background-color: var(--first-color);
  transition: 0.3s;
}

.skills__in {
  width: 96%;
}
.skills__ae {
  width: 90%;
}
.skills__4d {
  width: 80%;
}
.skills__pp {
  width: 90%;
}

.skills__ps {
  width: 100%;
}
.skills__il {
  width: 100%;
}
.skills__xd {
  width: 90%;
}
.skills__fig {
  width: 100%;
}

.skills__close .skills__list {
  height: 0;
  overflow: hidden;
}

.skills__open .skills__list {
  height: max-content;
  margin-bottom: var(--mb-2-5);
  animation: bounce2 0.2s ease-in-out forwards;
}

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

/*==================== QUALIFICATION ====================*/
.qualification__tabs {
  display: flex;
  justify-content: space-evenly;
  margin-bottom: var(--mb-2);
}

.qualification__button {
  font-size: var(--h3-font-size);
  font-weight: var(--font-medium);
  cursor: pointer;
}

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

.qualification__icon {
  font-size: 1.8rem;
  margin-right: var(--mb-0-25);
}

.qualification__data {
  display: grid;
  grid-template-columns: 1fr max-content 1fr;
  column-gap: 1.5rem;
}

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

.qualification__subtitle {
  display: inline-block;
  font-size: var(--small-font-size);
  margin-bottom: var(--mb-1);
}

.qualification__calendar {
  font-size: var(--smaller-font-size);
  color: var(--text-color-light);
}

.qualification__rounder {
  display: inline-block;
  width: 13px;
  height: 13px;
  background-color: var(--first-color);
  border-radius: 50%;
}

.qualification__line {
  display: block;
  width: 1px;
  height: 100%;
  background-color: var(--first-color);
  transform: translate(6px, -7px);
}

.qualification [data-content] {
  display: none;
}

.qualification__active[data-content] {
  display: block;
  animation: fadeInAbout 0.6s forwards;
}

.qualification__button.qualification__active {
  color: var(--first-color);
}

/*==================== SERVICES ====================*/
.services__container {
  gap: 1.5rem;
  grid-template-columns: repeat(2, 1fr);
  user-select: none;
}

.services__content {
  position: relative;
  background-color: var(--container-color);
  padding: 3.5rem 0.5rem 1.25rem 1.5rem;
  border-radius: 0.25rem;
  box-shadow: 0 2px 28px rgba(0, 0, 0, 0.05);
  transition: 0.3s;
}

.services__content:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.services__icon {
  display: block;
  font-size: 1.5rem;
  color: var(--first-color);
  margin-bottom: var(--mb-1);
}

.service__title {
  font-size: var(--h3-font-size);
  margin-bottom: var(--mb-1);
  font-weight: var(--font-medium);
}

.services__button {
  cursor: pointer;
  font-size: var(--small-font-size);
}

.services__button:hover .button__icon {
  transform: translateX(0.25rem);
}

.services__modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 1rem;
  z-index: var(--z-modal);
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
}

.services__modal-content {
  position: relative;
  background-color: var(--container-color);
  padding: 1.5rem;
  border-radius: 0.5rem;
}

.services__modal-services {
  row-gap: 1rem;
}

.services__modal-service {
  display: flex;
}

.services__modal-title {
  font-size: var(--h3-font-size);
  font-weight: var(--font-medium);
  margin-bottom: var(--mb-1-5);
}

.services__modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.5rem;
  color: var(--first-color);
  cursor: pointer;
}

.services__modal-icon {
  color: var(--first-color);
  margin-right: var(--mb-0-25);
}

/* Active Modal */

.active-modal {
  opacity: 1;
  visibility: visible;
}

/*==================== PORTFOLIO ====================*/

.portfolio__container {
  overflow-x: hidden;
  position: relative;
  height: 550px;
  transition: all 0.6s;
  max-width: 768px;
  user-select: none;
}

.portfolio__social {
  overflow-x: hidden;
  position: relative;
  height: 450px;
  transition: all 0.6s;
  max-width: 768px;
}

.portfolio__content {
  width: 420px;
  padding: 0 3rem;
}

@media screen and (max-width: 500px) {
  .portfolio__content {
    width: 360px;
  }
}

.portfolio__img-contain {
  width: 100%;
  position: relative;
  border-radius: 0.5rem;
}

.portfolio__view {
  width: 100%;
  aspect-ratio: 494/329;
  background-color: rgba(0, 0, 0, 0.75);
  display: grid;
  transition: all 0.6s;
  position: absolute;
  place-items: center;
  top: 0;
  left: 0;
  border-radius: inherit;
  opacity: 0;
  pointer-events: none;
  z-index: 2;
}

.portfolio__view-flex {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

.portfolio__view span {
  font-weight: 600;
  color: white;
  text-shadow: 0 0 12px rgba(0, 0, 0, 0.95);
}

.portfolio__img,
.portfolio__img-in,
.portfolio__img-out {
  width: 100%;
  border-radius: 0.5rem;
  justify-self: center;
  transition: all 0.2s;
  aspect-ratio: 494/329;
  object-fit: cover;
}

.portfolio__img-contain:hover .portfolio__img-in {
  transform: scale(1.01);
}
.portfolio__img-contain:hover .portfolio__view {
  transform: scale(1.01);
  opacity: 1;
}

.portfolio__title {
  font-size: var(--h3-font-size);
  margin-bottom: var(--mb-0-5);
}

.portfolio__category {
  font-size: var(--h2-font-size);
  margin-top: 5rem;
  margin-bottom: var(--mb-0-25);
  text-align: center;
  font-weight: 300;
}

.portfolio__description {
  margin-bottom: var(--mb-0-75);
}

.portfolio__button:hover .button__icon {
  transform: translateX(0.25rem);
}

.swiper-button-prev::after,
.swiper-button-next::after {
  content: "";
}

.swiper-portfolio-icon {
  font-size: 2rem;
  color: var(--first-color);
}

.swiper-button-prev {
  top: 14rem;
  left: -0.5rem;
  outline: none;
}
.swiper-button-next {
  top: 14rem;
  right: -0.5rem;
  outline: none;
}

.swiper-pagination-bullet {
  background-color: var(--nav-bar-color);
}

.swiper-pagination-bullet-active {
  background-color: #0fc94d;
}

/*==================== PROJECT IN MIND ====================*/
.project {
  text-align: center;
}

.project__bg {
  background-color: none;
  padding: 2rem 0;
}

.project__container {
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
  max-width: 926px;
  margin: 0 auto;
  padding: 2rem 4rem;
  align-items: center;
  user-select: none;
}

.project__title {
  font-family: dream;
  font-size: var(--h2-font-size);
  margin-bottom: var(--mb-0-75);
}

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

.project__title,
.project__description {
  color: var(--project-text);
}

.project__img {
  width: 232px;
  justify-self: center;
}

/*==================== TESTIMONIAL ====================*/
.testimonial {
  display: none;
}

.testimonial__container {
  overflow: hidden;
}

.testimonial__data,
.testimonial__header {
  display: flex;
}

.testimonial__data {
  justify-content: space-between;
  margin-bottom: var(--mb-1);
}

.testimonial__img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  margin-right: var(--mb-0-75);
}

.testimonial__name {
  font-size: var(--h3-font-size);
  font-weight: var(--font-medium);
}

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

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

.testimonial__icon-star {
  color: var(--first-color);
}

/*==================== CONTACT ME ====================*/
.contact {
  padding: 1rem 0 2rem !important;
  transition: all 0.4s cubic-bezier(0.7, 0.62, 0.27, 0.98);
}
.contact__container {
  row-gap: 3rem;
}

.contact__information {
  display: flex;
  margin-bottom: var(--mb-2);
}

.contact__icon {
  font-size: 2rem;
  color: var(--first-color);
  margin-right: var(--mb-0-75);
}

.contact__title {
  font-size: var(--h3-font-size);
  font-weight: var(--font-medium);
}

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

.contact__content {
  background-color: var(--input-color);
  border-radius: 0.5rem;
  padding: 0.75rem 1rem 0.25rem;
  border: 2px solid #05c17c;
}

.contact__label {
  font-size: 1rem;
  font-weight: 600;
  color: var(--title-color);
}

.contact__input {
  width: 100%;
  background-color: var(--input-color);
  color: var(--text-color);
  font-family: var(--body-font);
  font-size: 1.1rem;
  border: none;
  outline: none;
  padding: 0.25rem 0.5rem 0.5rem 0;
}

/*==================== FOOTER ====================*/
.footer {
  padding-top: 2rem;
}

.footer__container {
  align-items: center;
  row-gap: 3.5rem;
}

.footer__logo {
  width: 5rem;
}

.footer__bg {
  background-color: #0c0c0c;
  padding: 1rem 0 1rem;
}

.footer__title {
  font-size: 2rem;
  margin-bottom: var(--mb-0-25);
}

.footer__subtitle {
  font-size: var(--small-font-size);
}

.footer__links {
  display: flex;
  flex-direction: column;
  row-gap: 1.5rem;
}

.footer__link:hover {
  color: var(--first-color);
  transition: all 0.2s;
}

.footer__social {
  font-size: 1.25rem;
  margin-right: var(--mb-1-5);
}

.footer__social:hover {
  display: inline-block;
  color: var(--first-color-lighter);
  animation: gelatine 1s infinite;
}

.footer__copy {
  font-size: var(--smaller-font-size);
  text-align: center;
  color: var(--text-color-light);
  margin-top: var(--mb-3);
}

.footer__title,
.footer__subtitle,
.footer__link,
.footer__social {
  color: #fff;
}

/*========== SCROLL UP ==========*/

.scrollup {
  position: fixed;
  right: 1rem;
  bottom: -20%;
  background-color: #252525;
  opacity: 0.8;
  padding: 0 0.3rem;
  border-radius: 0.4rem;
  z-index: var(--z-tooltip);
  transition: 0.4s;
}

.scrollup:hover {
  background-color: var(--nav-bar-color);
}

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

/* Show scroll */

.show-scroll {
  bottom: 5rem;
}

/*========== SCROLL BAR ==========*/
::-webkit-scrollbar {
  width: 0.5rem;
  background-color: var(--scroll-bar-color);
  border-radius: 0.5rem;
}

::-webkit-scrollbar-thumb {
  background-color: var(--first-color);
  border-radius: 0.5rem;
}

::-webkit-scrollbar-thumb:hover {
  background-color: var(--first-color-alt);
}

/*==================== MEDIA QUERIES ====================*/
/* For small devices */

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

  .nav__menu {
    padding: 2rem 0.25rem 4rem;
  }

  .nav__list {
    column-gap: 0;
  }

  .home__content {
    grid-template-columns: 0.25fr 3fr;
  }

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

  .qualification__data {
    gap: 0.5rem;
  }

  .services__container {
    grid-template-columns: max-content;
    justify-content: center;
  }

  .services__content {
    padding-right: 3.5rem;
  }

  .services__modal {
    padding: 0 0.5rem;
  }

  .project__img {
    width: 200px;
  }

  .testimonial__data,
  .testimonial__header {
    flex-direction: column;
    align-items: center;
  }

  .testimonial__img {
    margin-right: 0;
    margin-bottom: var(--mb-0-25);
  }

  .testimonial__data,
  .testimonial__description {
    text-align: center;
  }
}

@media screen and (max-width: 768px) {
  .home__content {
    padding-top: 0rem;
  }

  .home__div {
    font-size: 1.6rem;
    height: 24px;
  }
}

@media screen and (max-width: 768px) {
  .home__img {
    width: 250px;
  }
  .portfolio__img {
    width: 320px;
  }

  .nav__logo--img {
    width: 28px;
    margin-bottom: -5px;
  }

  .swiper-button-prev {
    left: 1rem;
  }
  .swiper-button-next {
    right: 1rem;
  }

  .nav__toggle {
    font-size: 20px;
  }
}

/* For medium devices */

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

  .contact__form {
    width: 460px;
    margin: 0 auto;
  }

  .home__data {
    grid-column: initial;
  }

  .home__img {
    order: 1;
    justify-self: center;
  }

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

  .qualification__sections {
    display: grid;
    grid-template-columns: 0.6fr;
    justify-content: center;
  }
}

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

  body {
    margin: 0;
  }

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

  .section__subtitle {
    margin-bottom: 4rem;
  }

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

  .header,
  .main,
  .footer__container {
    padding: 0 1rem;
  }
  .nav {
    height: calc(var(--header-height) + 1.5rem);
    column-gap: 1rem;
  }

  .nav__icon,
  .nav__close,
  .nav__toggle {
    display: none;
  }

  .nav__list {
    display: flex;
    column-gap: 2rem;
  }

  .nav__menu {
    margin-left: auto;
  }
  .change-theme {
    margin: 0;
  }

  .home__container {
    row-gap: 5rem;
  }

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

  .home__img {
    width: 270px;
  }

  /* .home__scroll {
    display: block;
  } */

  .home__scroll-button {
    margin-left: 3rem;
  }

  .about__container {
    column-gap: 5rem;
  }

  .about__img {
    width: 350px;
    align-self: flex-start;
  }

  .about__description {
    text-align: initial;
  }

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

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

  .qualification__tabs {
    justify-content: center;
  }

  .qualification__button {
    margin: 0 var(--mb-1);
  }

  .qualification__sections {
    grid-template-columns: 0.5fr;
  }

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

  .services__icon {
    font-size: 2rem;
  }

  .services__content {
    padding: 6rem 0 2rem 2.5rem;
  }
  .services__modal-content {
    width: 450px;
  }

  .portfolio__content {
    align-items: center;
  }
  .project {
    text-align: initial;
  }

  .project__bg {
    background: none;
  }

  .project__container {
    background-color: var(--project-bg);
    border-radius: 1rem;
    grid-template-columns: 1fr max-content;
    column-gap: 3rem;
  }

  .project__data {
    padding-top: 0.8rem;
  }

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

  .footer__bg {
    padding: 1rem 0 1rem;
  }

  .footer__links {
    flex-direction: row;
    column-gap: 2rem;
  }

  .footer__socials {
    justify-self: flex-end;
  }
}

/* For large devices */

@media screen and (min-width: 1024px) {
  .header,
  .main,
  .footer__container {
    padding: 0;
  }

  .home__img {
    width: 320px;
  }

  .portfolio__container {
    max-width: 960px;
    height: 650px;
  }

  .portfolio__social {
    max-width: 960px;
    height: 550px;
  }

  .home__social {
    transform: translateX(-6rem);
  }

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

  .swiper-portfolio-icon {
    font-size: 3.5rem;
  }
  .swiper-button-prev {
    left: 0rem;
  }
  .swiper-button-next {
    right: 0rem;
  }
}
@media screen and (max-width: 1440px) {
  .portfolio__container {
    height: 550px;
  }

  .home__div {
    height: 34px;
  }
}

@media screen and (max-width: 500px) {
  .portfolio__container {
    height: 500px;
  }

  .home__div {
    height: 28px;
  }
}

@media screen and (min-width: 1440px) {
  .container {
    max-width: 1180px;
  }

  .portfolio__container {
    max-width: 1180px;
    height: 650px;
  }

  .portfolio__social {
    max-width: 1180px;
    height: 600px;
  }

  .project__container {
    max-width: 1180px;
  }

  .nav {
    max-width: 1180px;
  }

  .home__container {
    height: 100vh;
  }

  .home__subtitle {
    font-size: 1.8rem;
  }

  .home__img {
    width: auto;
  }
}
