@import url("reset.css");
@import url("colors.css");
@import url("font.css");

body {
  font-family: var(--primary-font);
  background-color: var(--white-color);
  color: var(--black-color);

  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--black-color);
}

.page {
  display: none;
  animation: fadeIn 0.5s;
}

.page--active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.sperator {
  border: 1px solid var(--gray-color);
  height: 25px;
}

/* OVERLAY START */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 8;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.overlay--active {
  opacity: 1;
  pointer-events: auto;
}
/* OVERLAY END */

/* NAVBAR START */
.header {
  position: fixed;
  width: 100%;
  z-index: 9;
  background-color: white;
  border-bottom: 1px solid rgb(228, 228, 228);
  box-shadow: 0 1px rgb(0 0 0 / 0.05);
}

.header__nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 50px;
}

.header__brand {
  font-weight: 700;
  font-size: 20px;
}

.header__menu {
  display: flex;
  gap: 32px;
  justify-content: space-between;
  align-items: center;
}

.header__menu-link {
  font-weight: 500;
  transition: all 0.3s ease-in-out;
  -webkit-transition: all 0.3s ease-in-out;
  -moz-transition: all 0.3s ease-in-out;
  -ms-transition: all 0.3s ease-in-out;
  -o-transition: all 0.3s ease-in-out;
}

.header__menu-link:hover {
  color: var(--primary-color);
}

.header__menu-icon {
  display: none;
}

.header__social-icon {
  display: none;
}

/* MOBILE */
@media only screen and (max-width: 600px) {
  .header {
    position: fixed;
    left: 50%;
    bottom: 20px;
    width: fit-content;
    z-index: 9;
    background-color: white;
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    border: 1px solid #e0dbdb;
    box-shadow: 0 1px rgb(0 0 0 / 0.05);
    border-radius: 20px;
    transform: translateX(-50%);
    -webkit-transform: translateX(-50%);
    -moz-transform: translateX(-50%);
    -ms-transform: translateX(-50%);
    -o-transform: translateX(-50%);
    -webkit-border-radius: 20px;
    -moz-border-radius: 20px;
    -ms-border-radius: 20px;
    -o-border-radius: 20px;
  }

  .header__nav {
    padding: 15px 12px;
    justify-content: center;
  }

  .header__brand {
    display: none;
  }

  .header__menu {
    column-gap: 20px;
  }

  .header__menu-link > span {
    display: none;
  }

  .header__menu-icon {
    display: block;
  }

  .header__social-icon {
    display: flex;
    column-gap: 10px;
    align-items: center;
  }
}
/* NAVBAR END */

/* FOOTER START */
.site-footer {
  padding: 20px 150px 50px 150px;
}

.site-footer__text {
  text-align: center;
  font-size: 14px;
  font-weight: 300;
}

/* MOBILE */
@media only screen and (max-width: 600px) {
  .site-footer {
    padding: 20px 24px 50px 24px;
  }
}
/* FOOTER END */

main {
  padding: 120px 150px 20px 150px;
}

/* MOBILE */
@media only screen and (max-width: 600px) {
  main {
    padding: 50px 24px 20px 24px;
  }
}

/* PROFILE START */
.profile__image {
  width: 160px;
  height: 160px;
  aspect-ratio: 1/1;
  object-fit: cover;
  object-position: top;
  border-radius: 999px;
  -webkit-border-radius: 999px;
  -moz-border-radius: 999px;
  -ms-border-radius: 999px;
  -o-border-radius: 999px;
}

.profile__name {
  margin-top: 15px;
  font-size: 30px;
  font-weight: 700;
}

.profile__info {
  margin: 12px 0 25px 0;
  display: flex;
  column-gap: 20px;
}

.profile__location {
  display: flex;
  align-items: center;
  column-gap: 5px;
}

.profile__description {
  font-size: 20px;
  line-height: 1.5;
}

.profile__socials {
  margin-top: 18px;
  display: flex;
  align-items: center;
  column-gap: 5px;
}

/* MOBILE */
@media only screen and (max-width: 600px) {
  .profile__name {
    font-size: 25px;
  }

  .profile__description {
    font-size: 16px;
    line-height: 1.5;
  }
}

/* PROFIL END */

/* TECH STACK START */
.tech-stack {
  margin-top: 50px;
}

.tech-stack__title {
  margin-bottom: 35px;
  font-size: 23px;
  font-weight: 700;
}

.tech-stack__group {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  row-gap: 50px;
}

.tech-stack__category-title {
  margin-bottom: 15px;
  font-weight: 600;
  color: var(--gray-color);
}

.tech-stack__list {
  display: flex;
  flex-direction: column;
  row-gap: 10px;
}

.tech-stack__item {
  display: flex;
  align-items: center;
  column-gap: 10px;
}

.underline {
  margin-top: 50px;
  border: 1px solid rgb(228, 228, 228);
}

/* MOBILE */
@media only screen and (max-width: 600px) {
  .tech-stack__group {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }
}
/* TECH STACK END */

/* CERTIFICATES START */
.certificates {
  margin-top: 35px;
}

.certificates__title {
  font-size: 23px;
  font-weight: 700;
}

.certificates__list {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.certificates__item {
  width: 100%;
}

@media only screen and (max-width: 600px) {
  .certificates__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px;
  }
}
/* CERTIFICATES END */

/* ABOUT PAGE START */
.about__title {
  margin-bottom: 30px;
  font-size: 20px;
  font-weight: 700;
}

.about__subtitle {
  margin-bottom: 20px;
  font-size: 20px;
  font-weight: 700;
}

.about__content {
  display: flex;
  column-gap: 20px;
}

.about__line {
  border: 2px solid #d0d7de;
}

.about__text {
  display: flex;
  flex-direction: column;
  row-gap: 20px;
}

.about__text p {
  line-height: 1.5;
}

/* MOBILE */
@media only screen and (max-width: 600px) {
  .site-footer {
    padding: 20px 24px 50px 24px;
  }
}
/* ABOUT PAGE END */

/* PROJECTS PAGE START */
.projects__title {
  margin-bottom: 30px;
  font-size: 20px;
  font-weight: 700;
}

.projects__description {
  line-height: 1.5;
}

.projects__list {
  margin: 50px 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.projects__card {
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  border: 1px solid #e0dbdb;
  border-radius: 8px;
  -webkit-border-radius: 8px;
  -moz-border-radius: 8px;
  -ms-border-radius: 8px;
  -o-border-radius: 8px;
  transition: all 0.3s ease-in-out;
  -webkit-transition: all 0.3s ease-in-out;
  -moz-transition: all 0.3s ease-in-out;
  -ms-transition: all 0.3s ease-in-out;
  -o-transition: all 0.3s ease-in-out;
}

.projects__card:hover {
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

.projects__info {
  padding: 10px 10px;
}

.projects__image {
  width: 100%;
  height: 160px;
  border-top-right-radius: 8px;
  border-top-left-radius: 8px;
}

.projects__card-title {
  margin-bottom: 5px;
  font-weight: 700;
}

.projects__card-description {
  margin-bottom: 8px;
  font-size: 12px;
  color: var(--gray-color);
  line-height: 1.4;
}

.projects__tech {
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 600;
  background-color: #f3eeee;
  border-radius: 3px;
  -webkit-border-radius: 3px;
  -moz-border-radius: 3px;
  -ms-border-radius: 3px;
  -o-border-radius: 3px;
}
/* MOBILE */
@media only screen and (max-width: 600px) {
  .projects__list {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }
}
/* PROJECTS PAGE END */
