/* ===== Google Fonts ===== */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;500;600;700;800&display=swap');

/* ===== Base ===== */
* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 10px;
}

body {
  font-family: 'Open Sans', sans-serif;
  background-color: var(--body-color);
  color: var(--dark-text-color);
  line-height: 1.5;
  overflow-x: hidden;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

a {
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3 {
  color: var(--dark-text-color);
}

h1 {
  font-weight: var(--font-black);
  font-size: var(--h1-font-size);
  text-transform: uppercase;
  letter-spacing: 3px;
}

h2 {
  font-weight: var(--font-bold);
  font-size: var(--h2-font-size);
  letter-spacing: 3px;
}

h3 {
  font-weight: var(--font-bold);
  font-size: var(--h3-font-size);
}

h4 {
  font-weight: var(--font-semi-bold);
  font-size: var(--h2-subtitle-font-size);
}

p {
  font-weight: var(--font-regular);
  font-size: var(--normal-font-size);
  line-height: 1.7;
}

.block__image {
  border-radius: 50%;
  width: 8rem;
  height: 8rem;
  margin-bottom: 20px;
  font-size: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  margin-right: auto;
  border: 2px solid #c5c5c5;
}

/* ===== Layout ===== */
.header {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  z-index: var(--z-fixed);
}

/* ===== Reusable CSS classes ===== */
.section {
  padding: 15rem 0;
}

.smaller-font {
  font-size: 80%;
}

.capitalize-font {
  text-transform: capitalize;
}

/* ===== Button ===== */
.button {
  display: inline-block;
  background-color: var(--third-color);
  color: #ffffff;
  padding: 1rem 4rem;
  border-radius: 1rem;
  font-weight: var(--font-semi-bold);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 1.5rem;
  border: none;
  box-shadow: none;
}

.button:hover {
  color: #ffffff;
}

.button--flex {
  display: inline-flex;
  align-items: center;
}

@media screen and (max-width: 991px) {
  .button {
    font-size: 1.2rem;
  }
}

/* ===== Navigation Menu ===== */
.header__container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 2rem 5rem;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0px 6px 12px 0 rgba(255, 255, 255, 0.35);
  border-radius: 10px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.nav-logo {
  color: var(--third-color);
  display: flex;
  align-items: center;
}

.nav-logo__img {
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  background-color: var(--third-color);
  margin-right: 1rem;
}

.nav-logo__text {
  font-weight: var(--font-bold);
  font-size: 18px;
  letter-spacing: 1px;
  text-transform: uppercase;
  line-height: 1.5;
}

.nav__item {
  display: inline-block;
  margin: 0 1.5rem;
}

.nav__link {
  color: var(--second-color);
  font-weight: var(--font-semi-bold);
  font-size: 1.6rem;
  line-height: 1.5;
  letter-spacing: 1px;
  text-transform: lowercase;
}

.nav__icon,
.nav__close,
.nav__btns {
  display: none;
}

.header a:hover {
  color: var(--third-color);
}

/* Active link */
.active-link {
  color: var(--third-color);
}

@media screen and (max-width: 991px) {
  .header__container {
    margin: 1.5rem 2.5rem;
    padding: 2rem;
  }

  .nav-logo__img {
    width: 3rem;
    height: 3rem;
    margin-right: 0.8rem;
  }

  .nav-logo__text {
    font-size: 14px;
  }

  .nav__item {
    margin: 0 0.8rem;
  }

  .nav__link {
    font-size: 1.4rem;
  }
}

@media screen and (max-width: 767px) {
  body {
    margin-bottom: 7rem;
  }

  .header {
    bottom: 0;
    top: unset;
    z-index: var(--z-fixed-plus);
  }

  .header__container {
    margin: 0;
    padding: 2rem;
    background: var(--white-linear-color);
    border: none;
    box-shadow: none;
    border-radius: 0;
    backdrop-filter: inherit;
    -webkit-backdrop-filter: inherit;
  }

  .nav__menu {
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    background: var(--white-linear-color);
    box-shadow: 0 -1px 4px rgba(0, 0, 0, .15);
    padding: 2rem 1.5rem 4rem;
    border-radius: 2rem 2rem 0 0;
    transition: 300ms;
  }

  .nav__list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }

  .nav__link {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: var(--normal-font-size);
    color: var(--second-color);
    font-weight: var(--font-medium);
  }

  .nav__link:hover {
    color: var(--third-color);
  }

  .nav__icon {
    display: block;
    font-size: 2rem;
  }

  .nav__close,
  .nav__btns {
    display: block;
  }

  .nav__close {
    position: absolute;
    right: 1.3rem;
    bottom: 1.5rem;
    font-size: 2rem;
    cursor: pointer;
    color: var(--second-color);
  }

  .nav__close:hover {
    color: var(--third-color);
  }

  .nav__toggle {
    font-size: 2.5rem;
    color: var(--second-color);
    cursor: pointer;
  }

  .nav__toggle:hover {
    color: var(--third-color);
  }

  /* show menu */
  .show-menu {
    bottom: 0;
  }

  .active-link {
    color: var(--third-color);
  }

  #scroll-top {
    bottom: 10rem;
  }
}

@media screen and (max-width: 575px) {
  .nav__list {
    gap: 1rem;
  }

  .nav__link {
    font-size: 14PX;
  }

  .nav__icon {
    font-size: 1.5rem;
  }
}

/* ===== Home Section ===== */
.home {
  display: flex;
  align-items: center;
  background: var(--main-linear-color);
  min-height: 100vh;
}

.home__content {
  padding-top: 3.5rem;
}

.home__img {
  position: relative;
}

.home__img #img {
  width: 100%;
  padding-top: 100%;
  background-image: url("../img/profile.jpg");
  background-size: cover;
  background-position-x: 40%;
  /* mask-image: url("../img/paintblob.png");
  -webkit-mask-image: url("../img/paintblob.png"); */
  mask-image: url("../img/profile-mask.png");
  -webkit-mask-image: url("../img/profile-mask.png");
  mask-size: 80%;
  -webkit-mask-size: 80%;
  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;
  mask-position: center;
  -webkit-mask-position: center;
}

.shape {
  position: absolute;
  border-radius: 50%;
  background: linear-gradient(45deg, #666666 0%, #292E49 100%);
  box-shadow: 0px 3px 8px 4px rgba(0, 0, 0, 0.08);
}

.shape-1 {
  background: linear-gradient(45deg, #666666 0%, #292E49 100%);
  width: 45px;
  height: 45px;
  left: 20%;
  top: -8%;
  animation: float 5s 200ms ease-in-out infinite;
}

.shape-2 {
  background: linear-gradient(180deg, #292E49 0%, rgba(41, 46, 73, 0) 100%);
  width: 50px;
  height: 50px;
  left: -3rem;
  top: 73%;
  animation: float 7s 650ms ease-in-out infinite;
}

.shape-3 {
  background: #536976;
  width: 40px;
  height: 40px;
  left: 20%;
  top: 97%;
  animation: float 6s ease-in-out infinite;
}

.shape-4 {
  background: #666666;
  width: 40px;
  height: 40px;
  left: 83%;
  top: 110%;
  animation: float 4s 370ms ease-in-out infinite;
}


.home__data {
  color: #ffffff;
  z-index: var(--z-tooltip);
}

.home__data h1 {
  color: #ffffff;
  margin-bottom: 1rem;
}

.home__description {
  margin-bottom: 4rem;
  font-size: var(--h2-subtitle-font-size);
}

.home__socioal {
  margin-left: 5rem;
}

.home__social-icon {
  width: 100%;
  font-size: 3rem;
  color: var(--title-color);
  margin: 0 0.5rem;
}

.home__social-icon:hover {
  color: var(--first-color);
}

.home .action-row {
  display: flex;
  align-items: center;
}

@media screen and (max-width: 991px) {
  .home {
    min-height: 80vh;
    padding: 10rem 0;
  }

  .thanks .home {
    min-height: 100vh;
  }
}

@media screen and (max-width: 767px) {
  .home__content {
    gap: 5rem;
  }
}

@media screen and (max-width: 575px) {
  .home .action-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .home__socioal {
    margin-left: 0;
    margin-top: 1rem;
  }
}

/* ===== About Section ===== */
#about {
  background: var(--alt-linear-color);
  padding: 0;
}

.about-attributions {
  padding: 15rem 0;
  background: var(--white-linear-color);
  box-shadow: 0px 5px 18px 4px rgba(0, 0, 0, 0.18);
  z-index: var(--z-tooltip);
  position: relative;
}

#about .block__title {
  margin-bottom: 30px;
}

#about .block__description {
  font-size: var(--normal-font-size);
  line-height: 1.7;
}

.about-story {
  padding: 15rem 0;
}

.about-story__img #img {
  width: 100%;
  padding-top: 100%;
  background-image: url("../img/profile.jpg");
  background-size: cover;
  background-position-x: 40%;
  /* mask-image: url("../img/paintblob.png");
  -webkit-mask-image: url("../img/paintblob.png"); */
  mask-image: url("../img/profile-mask.png");
  -webkit-mask-image: url("../img/profile-mask.png");
  mask-size: 80%;
  -webkit-mask-size: 80%;
  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;
  mask-position: center;
  -webkit-mask-position: center;
}

.about-story__subtitle {
  margin-bottom: 3rem;
}

.about-story__description p {
  margin-bottom: 1rem;
}

@media screen and (max-width: 767px) {
  #about .row {
    gap: 5rem;
  }
}

/* ===== Skill Section ===== */
#skill {
  background: var(--white-linear-color);
  box-shadow: 0px 5px 18px 4px rgba(0, 0, 0, 0.18);
  z-index: var(--z-tooltip);
  position: relative;
}

.skill__subtitle {
  margin-bottom: 2rem;
  margin-bottom: 10rem;
}

#skill .block__title {
  margin-bottom: 30px;
}

#skill .block__description {
  font-size: var(--normal-font-size);
  line-height: 1.7;
}

#skill .block__badge-group .badge {
  font-size: var(--normal-font-size);
  padding: 0.5rem 2rem;
  line-height: 1.5;
  margin: 0.5rem;
}

@media screen and (max-width: 991px) {
  #skill .block__badge-group .badge {
    font-size: 1.4rem;
  }
}

@media screen and (max-width: 767px) {
  #skill .row {
    gap: 5rem;
  }
}

/* ===== Portfolio Section ===== */
#portfolio {
  background: var(--alt-linear-color);
}

.portfolio__subtitle {
  margin-bottom: 2rem;
}

.portfolio__description {
  margin-bottom: 10rem;
}

.portfolio-item__image {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  overflow: hidden;
  background-color: #d9d9d9;
  background-size: cover;
  background-position: center top;
}

.portfolio-item-1 .portfolio-item__image {
  background-image: url(../img/projects/kajarikft-hu.jpg);
}

.portfolio-item-2 .portfolio-item__image {
  background-image: url(../img/projects/moraprizma-hu.jpg);
}

.portfolio-item-3 .portfolio-item__image {
  background-image: url(../img/projects/klimaker-hu.jpg);
}

.portfolio-item__data {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-color: rgba(102, 102, 102, 0.8);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: #ffffff;
  transition-duration: 300ms;
}

.portfolio-item__data a {
  color: #ffffff;
}

.portfolio-item__data a:hover {
  text-decoration: underline;
}

.portfolio-item__image:hover .portfolio-item__data {
  top: 0;
}

.portfolio-item__title {
  font-size: 2rem;
  font-weight: var(--font-semi-bold);
  letter-spacing: 3px;
}

@media screen and (max-width: 767px) {
  #portfolio .row {
    gap: 3rem;
  }
}

/* ===== Contact Section ===== */
#contact {
  background: var(--white-linear-color);
}

.contact__subtitle {
  margin-bottom: 2rem;
}

.contact__description {
  margin-bottom: 10rem;
}

.contact__info {
  display: flex;
}

.contact__info .icon {
  font-size: 4.8rem;
  line-height: 1;
  margin-right: 3rem;
}

.contact__info h5 {
  font-size: var(--normal-font-size);
  font-weight: var(--font-bold);
}

.contact__info a {
  font-size: var(--normal-font-size);
  color: #000;
}

.contact__info a:hover {
  color: #292E49;
}

.contact__info.email {
  margin: 3rem 0;
}

.contact__form #name,
.contact__form #email,
.contact__form #message {
  display: block;
  width: 100%;
  margin-bottom: 3rem;
  background: linear-gradient(0deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.6)), linear-gradient(to right, #292E49 0%, #536976 50%, #BBD2BE 100%);
  box-shadow: none;
  border: none;
  border-radius: 0.5rem;
  padding: 1.2rem 1rem;
  font-size: 1.6rem;
  line-height: 1.2;
}

.contact__form label {
  font-weight: var(--font-semi-bold);
  font-size: var(--normal-font-size);
  margin-bottom: 0.8rem;
}

@media screen and (max-width: 767px) {
  #contact .row {
    gap: 5rem;
  }
}

/* ===== Footer ===== */
.footer {
  background: var(--main-linear-color);
  padding-top: 10rem;
  padding-bottom: 4rem;
  color: #ffffff;
}

.footer__title,
.footer-social__title {
  margin-bottom: 2rem;
  color: #ffffff;
}

.footer-social__icon {
  font-size: 3.2rem;
  line-height: 1;
  color: #ffffff;
  margin-left: 1rem;
}

.footer__divider {
  height: 1px;
  background-color: #ffffff;
  margin-top: 5rem;
  margin-bottom: 4rem;
}

.footer__copyright {
  font-size: 1.6rem;
}

.footer__copyright a {
  color: #ffffff;
}

.footer__copyright a:hover {
  color: var(--first-color);
}

@media screen and (max-width: 575px) {
  .footer .row {
    gap: 3rem;
  }

  .footer-social__icon {
    font-size: 2.5rem;
  }
}

/* ===== Scroll Top ===== */
.scrolltop {
  position: fixed;
  bottom: 2rem;
  right: -8.5rem;
  display: inline-block;
  background: var(--input-color);
  padding: 1.5rem;
  padding-right: 3rem;
  border-radius: 2.5rem 0 0 2.5rem;
  font-size: 2rem;
  color: var(--third-color);
  z-index: var(--z-fixed);
  transition-duration: 300ms;
}

.scrolltop:hover {
  color: var(--second-color);
  padding-right: 5rem;
}

.scrolltop__icon {
  display: block;
  line-height: 1;
}

/* Show scroll */
.show-scroll {
  right: 0;
}

@media screen and (max-width: 575px) {
  #scroll-top {
    bottom: 15rem;
  }
}