@import url("./template.css");

/* ======== Header ========== */
.profile {
  position: relative;
  padding-top: 4rem;
  align-items: center;
}

.profile-data {
  display: grid;
  text-align: center;
}

.profile-image-container {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.profile-image-container img {
  width: 100%;
}

.profile-border {
  justify-self: center;
  width: 165px;
  height: 165px;
  border: 4px solid var(--color-50);
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin-bottom: 0.5rem;
  transform: scale(1);
  transition: 0.5s;
}

.profile-border:hover {
  transform: scale(1.03);
  transition: 0.5s;
}

.profile-info {
  grid-template-columns: repeat(var(--number-info), max-content);
  justify-content: center;
  align-items: center;
  column-gap: 2.5rem;
}

.profile-info-group {
  text-align: center;
}

.profile-info-number {
  margin-bottom: 0.25rem;
}

.profile-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  column-gap: 1.5rem;
}

.sub-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.main-button,
.sub-button {
  font-size: var(--button-size);
  cursor: pointer;
  border-radius: 0.5rem;
  transition: 0.3s;
}

.main-button {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: var(--color-50);
  color: var(--color-98);
  padding: 1rem;
}

.main-button:hover {
  background-color: var(--color-35);
}

.sub-button {
  padding: 0.5rem 1rem;
  border: 1px solid var(--color-50);
  color: var(--color-50);
  background-color: var(--color-98);
}

.sub-button:hover {
  border: 1px solid var(--color-35);
  color: var(--color-35);
  background-color: var(--color-80);
}

/* ================ */

/* ======== Main ========== */
.filter-content {
  width: 85%;
  margin: 2rem;
  background-color: var(--color-8-80);
  padding: 0.5rem;
  border-radius: 0.75rem;
  display: flex;
  justify-content: space-between;
  column-gap: 0.5rem;
}

.filter-button {
  width: 100%;
  border: none;
  outline: none;
  padding: 1rem;
  background-color: transparent;
  color: var(--color-50);
  font-size: var(--button-size);
  font-family: Poppins, sans-serif;
  font-weight: 500;
  cursor: pointer;
  transition: 0.3s;
}

.filter-button:hover,
.filter-button.filter-active {
  background-color: var(--color-98);
}

.filter-sections {
  padding-bottom: 60px;
}

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

.filter-sections .content-active[data-content] {
  display: grid;
}

.project-content,
.experience-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 24px;
  padding: 0 1rem;
}

.project-cardbox,
.experience-cardbox {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.project-cardbox-header,
.experience-cardbox-header {
  font-size: var(--h2-size);
}

.project-container,
.experience-container {
  grid-template-columns: repeat(var(--number-skill), var(--card-width));
  justify-content: center;
}

.card {
  display: flex;
  background-color: var(--color-50);
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  max-width: var(--card-width);
  max-height: auto;
}

.card-description {
  padding: 1rem;
  color: var(--color-98);
}

.card-description > div {
  display: flex;
  flex-direction: column;
}

.card-title {
  margin-bottom: 0.5rem;
  font-size: var(--h3-size);
}

.card-subtitle {
  font-size: var(--p-size);
}

/* Hover Card in Laptop */
@media screen and (min-width: 769px) {
  .card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .card-description {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(
      180deg,
      hsla(var(--hue), 20%, 40%, 0.3) 0%,
      hsla(var(--hue), 20%, 4%, 1) 95%
    );
    bottom: -100%;
    left: 0;
    display: grid;
    align-items: flex-end;
    transition: 0.3s;
  }

  .card:hover .card-description {
    bottom: 0;
  }

  .card-title {
    margin-bottom: 0.5rem;
    font-size: var(--h2-size);
  }

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

/* ================ */

/* == Scrollbar === */
::-webkit-scrollbar {
  width: 0.5rem;
  border-radius: 0.5rem;
  background-color: var(--color-98);
}

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

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

/* ================ */

/* === Responsive Part === */

/* Mobile L */
@media screen and (max-width: 425px) {
  :root {
    --number-skill: 1;
    --h1-size: 1.5rem;
    --h2-size: 1.5rem;
    --h3-size: 1.25rem;
    --button-size: 1rem;
    --p-size: 1rem;
    --card-width: auto;
  }

  .profile-info {
    column-gap: 1.5rem;
  }
}

@media screen and (max-width: 600px) {
  .filter-content {
    flex-direction: column;
  }

  .profile-buttons {
    flex-direction: column;
    row-gap: 1rem;
  }
}

/* Tablet */
@media screen and (min-width: 426px) {
  :root {
    --number-skill: 1;
    --h1-size: 1.75rem;
    --h2-size: 1.5rem;
    --h3-size: 1.25rem;
    --button-size: 1rem;
    --p-size: 1rem;
    --card-width: 350px;
  }

  .filter-content {
    max-width: 750px;
    margin: 3rem auto;
  }

  .main-button {
    padding: 1.5rem 2rem;
  }

  .sub-button {
    padding: 0.5rem 1rem;
  }
}

/* Laptop */
@media screen and (min-width: 769px) {
  :root {
    --number-skill: 2;
    --h1-size: 1.75rem;
    --h2-size: 1.5rem;
    --h3-size: 1.25rem;
    --button-size: 1.25rem;
    --p-size: 1rem;
    --card-width: 400px;
  }

  .filter-content {
    max-width: 750px;
    margin: 3rem auto;
  }

  .main-button {
    padding: 1.5rem 2.5rem;
  }

  .sub-button {
    padding: 0.75rem 1.5rem;
  }
}

/* Extra Adjustment */
@media screen and (min-width: 769px) and (max-width: 875px) {
  :root {
    --number-skill: 1;
    --card-width: 350px;
  }

  .filter-content {
    max-width: 750px;
    margin: 3rem auto;
  }
}

/* Laptop L */
@media screen and (min-width: 1025px) {
  :root {
    --number-skill: 2;
    --card-width: 400px;
    --h1-size: 2rem;
    --h2-size: 1.5rem;
    --h3-size: 1.25rem;
    --button-size: 1.25rem;
    --p-size: 1rem;
  }

  .profile-image-container {
    width: 200px;
    height: 200px;
  }

  .profile-border {
    width: 220px;
    height: 220px;
  }

  .profile-info {
    column-gap: 3rem;
  }

  .main-button {
    padding: 1.5rem 3rem;
  }

  .sub-button {
    padding: 1rem 2rem;
  }
}

/* ================ */
