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

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

  /*========== Colors ==========*/
  /*Color mode HSL(hue, saturation, lightness)*/
  --first-hue: 250;
  --sat: 66%;
  --lig: 75%;
  --second-hue: 219;
  --first-color: hsl(var(--first-hue), var(--sat), var(--lig));
  --first-color-alt: hsl(var(--first-hue), var(--sat), 71%); /* -4% */
  --title-color: hsl(var(--second-hue), 15%, 95%);
  --text-color: hsl(var(--second-hue), 8%, 75%);
  --text-color-light: hsl(var(--second-hue), 4%, 55%);
  --body-color: hsl(var(--second-hue), 48%, 8%);
  --container-color: hsl(var(--second-hue), 32%, 12%);

  /*========== Font and typography ==========*/
  /*.5rem = 8px | 1rem = 16px ...*/
  --body-font: 'Poppins', sans-serif;
  --biggest-font-size: 1.75rem;
  --h1-font-size: 1.5rem;
  --h2-font-size: 1.25rem;
  --h3-font-size: 1rem;
  --normal-font-size: .938rem;
  --small-font-size: .813rem;
  --smaller-font-size: .75rem;
  --tiny-font-size: .625rem;

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

  /*========== z index ==========*/
  --z-tooltip: 10;
  --z-fixed: 100;
  --z-modal: 1000;
}

/* Responsive typography */
@media screen and (min-width: 968px) {
  :root {
    --biggest-font-size: 2.5rem;
    --h1-font-size: 2.25rem;
    --h2-font-size: 1.5rem;
    --h3-font-size: 1.25rem;
    --normal-font-size: 1rem;
    --small-font-size: .875rem;
    --smaller-font-size: .813rem;
  }
}

/*========== Variables Light theme ==========*/
body.light-theme {
  --title-color: hsl(var(--second-hue), 15%, 15%);
  --text-color: hsl(var(--second-hue), 8%, 35%);
  --body-color: hsl(var(--second-hue), 100%, 99%);
  --container-color: #fff;
}

/*========== Button Dark/Light ==========*/
.change-theme {
  font-size: 1.25rem;
  cursor: pointer;
  transition: .3s;
}

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

/*=============== BASE ===============*/
* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

html {
  scroll-behavior: smooth;
}

body,
button,
input,
textarea {
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
}

body {
  background-color: var(--body-color);
  color: var(--text-color);
  transition: .4s; /* for light mode animation */
}

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

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

button {
  cursor: pointer;
  border: none;
  outline: none;
}

img {
  max-width: 100%;
  height: auto;
}

/*=============== REUSABLE CSS CLASSES ===============*/
.container {
  max-width: 968px;
  margin-left: 1rem;
  margin-right: 1rem;
}

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

.main {
  overflow: hidden;
}

.section {
  padding: 4.5rem 0 1rem;
}

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

.section__title {
  font-size: var(--h2-font-size);
  color: var(--first-color);
  margin-bottom: 2rem;
}

.section__subtitle {
  display: block;
  font-size: var(--smaller-font-size);
  color: var(--text-color-light);
}

/*=============== HEADER & NAV===============*/
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--body-color);
  z-index: var(--z-fixed);
  transition: .4s;
}

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

.nav__logo {
  color: var(--first-color);
  font-weight: var(--font-medium);
  transition: .4s;
}

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

@media screen and (max-width: 767px) {
  .nav__menu {
    position: fixed;
    bottom: 1rem;
    background-color: hsla(var(--second-hue), 32%, 16%, .8);
    width: 90%;
    left: 0;
    right: 0;
    margin: 0 auto;
    backdrop-filter: blur(10px);
    padding: 1rem 2.25rem;
    border-radius: 4rem;
    z-index: var(--z-fixed);
  }
}

.nav__list {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav__link {
  color: var(--text-color);
  font-size: 1.25rem;
  padding: .4rem;
  display: flex;
  border-radius: 5rem;
}

/* Active link */
.active-link {
  background: linear-gradient(180deg, 
              hsla(var(--first-hue), var(--sat), var(--lig), 1),
              hsla(var(--first-hue), var(--sat), var(--lig), .2));
  box-shadow: 0 0 16px hsla(var(--first-hue), var(--sat), var(--lig), .4);
  color: var(--title-color);
}

/* Change background header */
.scroll-header {
  box-shadow: 0 1px 4px hsla(var(--second-hue), 4%, 4%, .3);
}

/*=============== HOME ===============*/
.home__container {
  position: relative;
  row-gap: 4.5rem;
  padding-top: 2rem;
}

.home__data {
  text-align: center;
}

.home__greeting, 
.home__education {
  font-size: var(--small-font-size);
  font-weight: var(--font-medium);
}

.home__greeting {
  display: block;
  color: var(--title-color);
  margin-bottom: .25rem;
}

.home__education {
  color: var(--text-color);
  margin-bottom: 2.5rem;
}

.home__name {
  font-size: var(--biggest-font-size);
}

.home__img {
  width: 160px;
}

.home__handle {
  justify-self: center;
  width: 190px;
  height: 293px;
  background: linear-gradient(180deg, 
              hsla(var(--first-hue), var(--sat), var(--lig), 1),
              hsla(var(--first-hue), var(--sat), var(--lig), .2));
  border-radius: 10rem 10rem 1rem 1rem;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
}

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

.home__social,
.home__scroll {
  position: absolute;
}

.home__social {
  bottom: 5rem;
  left: 0;
  display: grid;
  row-gap: .5rem;
}

.home__social-link {
  width: max-content;
  background-color: var(--container-color);
  color: var(--first-color);
  padding: .25rem;
  border-radius: .25rem;
  display: flex;
  font-size: 1rem;
  transition: .3s;
}

.home__social-link:hover {
  background-color: var(--first-color);
  color: #fff;
}

.home__social::after {
  content: '';
  width: 32px;
  height: 2px;
  background-color: var(--first-color);
  transform: rotate(90deg) translate(16px, 0);
}

.home__scroll {
  color: var(--first-color);
  right: -1.5rem;
  bottom: 4rem;
  display: grid;
  row-gap: 2.25rem;
  justify-items: center;
}

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

.home__scroll-name {
  font-size: var(--smaller-font-size);
  transform: rotate(-90deg);
}

/*=============== BUTTONS ===============*/
.button {
  display: inline-block;
  background-color: var(--first-color);
  color: var(--body-color);
  padding: .75rem 1.5rem;
  border-radius: .5rem;
  font-weight: var(--font-medium);
  transition: .3s;
}

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

.button--ghost {
  background-color: transparent;
  border: 2px solid var(--first-color);
  color: var(--first-color);
}

.button--ghost:hover {
  background-color: var(--first-color);
  color: var(--body-color);
}

/*=============== ABOUT ===============*/
.about__container {
  row-gap: 2.5rem;
}

.about__img {
  width: 220px;
  border-radius: 1.5rem;
  justify-self: center;
}

.about__data {
  text-align: center;
}

.about__info {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .5rem;
  margin-bottom: 2rem;
}

.about__box {
  background-color: var(--container-color);
  border-radius: .75rem;
  padding: .75rem .5rem;
}

.about__icon {
  font-size: 1.5rem;
  color: var(--first-color);
  margin-bottom: .5rem;
}

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

.about__subtitle {
  font-size: var(--tiny-font-size);
}

.about__description {
  margin-bottom: 2rem;
}

/*=============== SKILLS ===============*/
.skills__container {
  row-gap: 2rem;
  padding-top: 1rem;
}

.skills__content {
  background-color: var(--container-color);
  padding: 1.5rem;
  border-radius: 1.25rem;
}

.skills__title {
  font-size: var(--normal-font-size);
  font-weight: var(--font-medium);
  color: var(--first-color);
  text-align: center;
  margin-bottom: 1.5rem;
}

.skills__box {
  display: flex;
  justify-content: center;
  column-gap: 2.5rem;
}

.skills__group {
  display: grid;
  align-content: flex-start;
  row-gap: 1rem;
}

.skills__data {
  display: flex;
  column-gap: .5rem;
}

.skills__data i {
  font-size: 1rem;
  color: var(--first-color);
}

.skills__name {
  font-size: var(--normal-font-size);
  font-weight: var(--font-medium);
  line-height: 18px;
}

.skills__level {
  font-size: var(--tiny-font-size);
}

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

.services__card {
  background-color: var(--container-color);
  padding: 3rem 1.5rem 1.5rem;
  border-radius: 1rem;
}

.services__title {
  font-size: var(--h3-font-size);
  margin-bottom: 2.5rem;
}

.services__button {
  color: var(--first-color);
  font-size: var(--small-font-size);
  display: flex;
  align-items: center;
  column-gap: .25rem;
  cursor: pointer;
}

.services__button:hover .services__icon {
  transform: translateX(.25rem);
}

.services__icon {
  font-size: 1rem;
  transition: .4s;
}

/* Services modal */
.services__modal {
  position: fixed;
  inset: 0;
  background-color: hsla(var(--second-hue), 28%, 16%, .7);
  padding: 2rem 1rem;
  display: grid;
  place-items: center;
  visibility: hidden;
  opacity: 0;
  transition: .4s;
  z-index: var(--z-modal);
}

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

.services__modal-title,
.services__modal-description {
  text-align: center;
}

.services__modal-title {
  font-size: var(--h3-font-size);
  color: var(--first-color);
  margin-bottom: 1rem;
}

.services__modal-description {
  font-size: var(--small-font-size);
  margin-bottom: 2rem;
}

.services__modal-list {
  display: grid;
  row-gap: .75rem;
}

.services__modal-item {
  display: flex;
  align-items: flex-start;
  column-gap: .5rem;
}

.services__modal-icon {
  font-size: 1.5rem;
  color: var(--first-color);
}

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

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

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

/*=============== WORK ===============*/
.work__filters {
  display: flex;
  justify-content: center;
  align-items: center;
  column-gap: .75rem;
  margin-bottom: 2rem;
}

.work__item {
  cursor: pointer;
  color: var(--title-color);
  padding: .25rem .75rem;
  font-weight: var(--font-medium);
  border-radius: .5rem;
}

.work__card {
  background-color: var(--container-color);
  padding: 1rem;
  border-radius: 1rem;
}

.work__img {
  border-radius: 1rem;
  margin-bottom: .75rem;
}

.work__title {
  font-size: var(--normal-font-size);
  font-weight: var(--font-medium);
  margin-bottom: .25rem;
}

.work__button {
  width: max-content;
  color: var(--first-color);
  font-size: var(--small-font-size);
  display: flex;
  align-items: center;
  column-gap: .25rem;
}

.work__button:hover .work__icon {
  transform: translateX(.25rem);
}

.work__icon {
  font-size: 1rem;
  transition: .4s;
}

/* Active item work*/
.active-work {
  background-color: var(--first-color);
  color: var(--body-color);
}

/*=============== TESTIMONIAL ===============*/
.testimonial__card {
  background-color: var(--container-color);
  padding: 1.25rem 1.5rem;
  border-radius: 1.5rem;
  margin-bottom: 3rem;
}

.testimonial__img {
  width: 60px;
  border-radius: 3rem;
  margin-bottom: 1rem;
}

.testimonial__name {
  font-size: var(--normal-font-size);
  font-weight: var(--font-medium);
  margin-bottom: .25rem;
}

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

/* Swiper class */
.swiper-pagination-bullet {
  background-color: var(--text-color-light);
}

.swiper-pagination-bullet-active {
  background-color: var(--first-color);
}

/*=============== CONTACT ===============*/
.contact__container {
  row-gap: 3rem;
  padding-bottom: 3rem;
}

.contact__title {
  text-align: center;
  font-size: var(--h3-font-size);
  margin-bottom: 1.5rem;
}

.contact__info {
  display: grid;
  gap: 1.25rem;
}

.contact__card {
  background-color: var(--container-color);
  padding: 1rem;
  border-radius: .75rem;
  text-align: center;
}

.contact__card-icon {
  font-size: 2rem;
  color: var(--title-color);
  margin-bottom: .25rem;
}

.contact__card-title,
.contact__card-data {
  font-size: var(--small-font-size);
}

.contact__card-title {
  font-weight: var(--font-medium);
}

.contact__card-data {
  display: block;
  margin-bottom: .75rem;
}

.contact__button {
  color: var(--first-color);
  font-size: var(--small-font-size);
  display: flex;
  align-items: center;
  justify-content: center;
  column-gap: .25rem;
}

.contact__button:hover .contact__button-icon {
  transform: translateX(.25rem);
}

.contact__button-icon {
  font-size: 1rem;
  transition: .4s;
}

.contact__form-div {
  position: relative;
  margin-bottom: 2rem;
  height: 4rem;
}

.contact__form-input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 2px solid var(--text-color-light);
  background: none;
  color: var(--text-color);
  outline: none;
  padding: 1.5rem;
  border-radius: .75rem;
  z-index: 1;
}

.contact__form-tag {
  position: absolute;
  top: -.75rem;
  left: 1.25rem;
  font-size: var(--smaller-font-size);
  padding: .25rem;
  background-color: var(--body-color);
  z-index: 10;
}

.contact__form-area {
  height: 11rem;
}

.contact__form-area textarea {
  resize: none;
}

/*=============== FOOTER ===============*/
.footer {
  background-color: var(--first-color);
}

.footer__container {
  padding: 2rem 0 6rem;
  text-align: center;
}

.footer__title,
.footer__link {
  color: var(--body-color);
}

.footer__logo {
  color: var(--body-color);
  font-weight: var(--font-semibold);
  font-size: var(--h2-font-size);
  margin-bottom: 2rem;
  display: inline-block;
}

.footer__list {
  display: flex;
  justify-content: center;
  column-gap: 1.5rem;
  margin-bottom: 2rem;
}

.footer__social {
  display: flex;
  justify-content: center;
  column-gap: 1.25rem;
}

.footer__social-link {
  background-color: var(--body-color);
  color: var(--first-color);
  padding: .25rem;
  border-radius: .25rem;
  font-size: 1rem;
  display: inline-flex;
}

.footer__support-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  margin-top: 1.75rem;
  padding: .7rem 1rem;
  border: 1px solid hsla(var(--first-hue), var(--sat), var(--lig), .65);
  border-radius: .75rem;
  color: var(--body-color);
  background: hsla(var(--second-hue), 32%, 16%, .22);
  box-shadow: inset 0 0 0 1px hsla(var(--body-color-hue), 8%, 95%, .1);
  font: inherit;
  font-size: var(--small-font-size);
  font-weight: var(--font-medium);
  cursor: pointer;
  transition: background .3s ease, color .3s ease, transform .3s ease, box-shadow .3s ease;
}

.footer__support-button:hover {
  color: var(--title-color);
  background: var(--first-color);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px hsla(var(--first-hue), var(--sat), var(--lig), .3);
}

.footer__support-button i:first-child {
  color: #ffd1dc;
}

.footer__support-button:hover i:first-child {
  color: var(--title-color);
}

.footer__support-button i:last-child {
  font-size: 1.1rem;
  transition: transform .3s ease;
}

.footer__support-button:hover i:last-child {
  transform: translateX(.25rem);
}

.footer__copy {
  display: block;
  margin-top: 2.25rem;
  color: var(--container-color);
  font-size: var(--smaller-font-size);
}

/*=============== SCROLL BAR ===============*/
::-webkit-scrollbar {
  width: .6rem;
  border-radius: .5rem;
  background-color: hsl(var(--second-hue), 8%, 38%);
}

::-webkit-scrollbar-thumb {
  background-color: hsl(var(--second-hue), 8%, 26%);
  border-radius: .5rem;
}

::-webkit-scrollbar-thumb:hover {
  background-color: hsl(var(--second-hue), 8%, 20%);
}

/*=============== BREAKPOINTS ===============*/
/* For small devices */
@media screen and (max-width: 320px) {
  .container {
    margin-left: .75rem;
    margin-right: .75rem;
  }

  .nav__menu {
    padding: 1rem 1.5rem;
  }

  .home__buttons {
    flex-direction: column;
    width: max-content;
    margin: 0 auto;
    row-gap: 1rem;
  }

  .home__handle {
    width: 150px;
    height: 253px;
  }

  .home__img {
    width: 130px;
  }

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

  .skills__box {
    column-gap: 1rem;
  }

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

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

  .work__filters {
    column-gap: .25rem;
  }
}

/* For medium devices */
@media screen and (min-width: 576px) {
  .nav__menu {
    width: 328px;
    left: 0;
    right: 0;
    margin: 0 auto;
  }

  .about__info {
    grid-template-columns: repeat(3, 140px);
    justify-content: center;
  }

  .about__description {
    padding: 0 5rem;
  }

  .skills__container {
    justify-content: center;
  }

  .skills__content {
    padding: 2rem 4rem;
  }

  .services__container {
    grid-template-columns: repeat(2, 160px);
    justify-content: center;
  }

  .services__modal-content {
    width: 500px;
    padding: 4.5rem 2.5rem 2.5rem;
  }

  .work__container {
    justify-content: center;
  }

  .work__img {
    width: 295px;
  }

  .contact__info {
    grid-template-columns: 300px;
    justify-content: center;
  }

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

@media screen and (min-width: 767px) {
  .work__container {
    grid-template-columns: repeat(2, max-content);
  }

  .contact__container {
    grid-template-columns: repeat(2, max-content);
    justify-content: center;
    column-gap: 3rem;
  }
}

/* For large devices */
@media screen and (min-width: 992px) {
  .container {
    margin-left: auto;
    margin-right: auto;
  }

  .section {
    padding: 6.5rem 0 1rem;
  }

  .section__title {
    margin-bottom: 3.5rem;
  }

  .nav {
    height: calc(var(--header-height) + 1rem);
  }

  .home__handle {
    width: 290px;
    height: 400px;
  }

  .home__img {
    width: 220px;
  }

  .home__social-link {
    padding: .4rem;
    font-size: 1.25rem;
  }

  .home__social::after {
    width: 42px;
    transform: rotate(90deg) translate(20px, 0);
  }

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

  .about__container {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 3rem;
    align-items: center;
  }

  .about__img {
    width: 350px;
  }

  .about__data {
    text-align: initial;
  }

  .about__info {
    justify-content: initial;
  }

  .about__box {
    text-align: center;
    padding: 1rem 1.25rem;
  }

  .about__description {
    padding: 0;
    margin-bottom: 2.5rem;
  }

  .skills__container {
    grid-template-columns: repeat(2, max-content);
    column-gap: 3rem;
  }

  .services__container {
    grid-template-columns: repeat(3, 192px);
    column-gap: 3rem;
  }

  .services__card {
    padding: 5rem 2rem 1.5rem;
  }

  .work__container {
    grid-template-columns: repeat(3, max-content);
    gap: 3rem;
  }

  .work__card {
    padding: 1.25rem;
  }

  .work__img {
    margin-bottom: 1rem;
  }

  .work__title {
    margin-bottom: .5rem;
  }

  .testimonial__container {
    width: 750px;
  }

  .contact__container {
    column-gap: 8rem;
  }

  .footer__social-link {
    font-size: 1.25rem;
    padding: .4rem;
    border-radius: .5rem;
  }
}


/*=============== JOSH PROJECTS & INNER PAGES ===============*/
.page-main {
  min-height: 100vh;
  padding-top: calc(var(--header-height) + 2rem);
}

.page-intro {
  max-width: 720px;
  margin: -1rem auto 2.5rem;
  text-align: center;
  line-height: 1.8;
}

.projects__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 auto 1.5rem;
  max-width: 968px;
  color: var(--text-color-light);
  font-size: var(--small-font-size);
}

.projects__count strong {
  color: var(--first-color);
  font-size: var(--h3-font-size);
}

.projects__github-link {
  color: var(--first-color);
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-weight: var(--font-medium);
}

.projects__grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.project-card {
  min-width: 0;
  overflow: hidden;
  border-radius: 1rem;
  background-color: var(--container-color);
  box-shadow: 0 8px 30px hsla(var(--second-hue), 48%, 4%, .12);
  transition: transform .35s ease, box-shadow .35s ease;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px hsla(var(--first-hue), var(--sat), var(--lig), .18);
}

.project-card.project-hidden {
  display: none;
}

.project-card__media {
  height: 150px;
  position: relative;
  overflow: hidden;
  background: hsl(var(--second-hue), 25%, 18%);
}

.project-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}

.project-card:hover .project-card__img {
  transform: scale(1.06);
}

.project-card__language {
  position: absolute;
  left: .75rem;
  bottom: .75rem;
  padding: .25rem .6rem;
  border-radius: 2rem;
  color: var(--body-color);
  background: var(--first-color);
  font-size: var(--tiny-font-size);
  font-weight: var(--font-semibold);
}

.project-card__body {
  padding: 1rem;
}

.project-card__title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: var(--normal-font-size);
  margin-bottom: .35rem;
}

.project-card__meta {
  color: var(--text-color-light);
  font-size: var(--smaller-font-size);
  margin-bottom: .9rem;
}

.project-card__meta i {
  color: var(--first-color);
}

.project-card__meta span {
  margin: 0 .25rem;
}

.project-card__button {
  border: 0;
  background: transparent;
  color: var(--first-color);
  cursor: pointer;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  font: inherit;
  font-size: var(--small-font-size);
}

.project-card__button i {
  transition: transform .3s ease;
}

.project-card__button:hover i {
  transform: translateX(.3rem);
}

.projects__more {
  display: block;
  margin: 2rem auto 0;
}

.projects__more.is-hidden {
  display: none;
}

.projects__all-visible {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  margin: 2rem auto 0;
  color: var(--text-color-light);
  font-size: var(--small-font-size);
  text-align: center;
}

.projects__all-visible i {
  color: var(--first-color);
  font-size: 1.15rem;
}

.project-modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1rem;
  visibility: hidden;
  opacity: 0;
  z-index: var(--z-modal);
  transition: opacity .35s ease, visibility .35s ease;
}

.project-modal.is-open {
  visibility: visible;
  opacity: 1;
}

.project-modal__overlay {
  position: absolute;
  inset: 0;
  background: hsla(var(--second-hue), 48%, 4%, .78);
  backdrop-filter: blur(7px);
}

.project-modal__content {
  position: relative;
  width: min(100%, 540px);
  padding: 3rem 1.5rem 2rem;
  border-radius: 1.5rem;
  background: var(--body-color);
  box-shadow: 0 25px 80px hsla(var(--second-hue), 48%, 4%, .45);
  transform: translateY(20px) scale(.97);
  transition: transform .35s ease;
}

.project-modal.is-open .project-modal__content {
  transform: translateY(0) scale(1);
}

.project-modal__close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  color: var(--first-color);
  background: var(--container-color);
  font-size: 1.35rem;
}

.project-modal__title {
  color: var(--first-color);
  text-align: center;
  margin: .5rem 0 .5rem;
}

.project-modal__tech {
  text-align: center;
  color: var(--text-color-light);
  font-size: var(--small-font-size);
}

.project-modal__description {
  min-height: 105px;
  margin: 1.5rem 0 2rem;
  line-height: 1.8;
  text-align: center;
}

.typing-cursor {
  color: var(--first-color);
  animation: blink-cursor .75s step-end infinite;
}

@keyframes blink-cursor {
  50% { opacity: 0; }
}

.project-modal__actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: .8rem;
}

body.modal-open {
  overflow: hidden;
}

.journey__grid {
  grid-template-columns: repeat(3, 1fr);
  max-width: 968px;
  margin: 0 auto;
}

.journey-card {
  padding: 2rem 1.25rem;
  text-align: center;
  border-radius: 1rem;
  background: var(--container-color);
}

.journey-card h2 {
  font-size: var(--h3-font-size);
  margin-bottom: .75rem;
}

.journey-card p {
  line-height: 1.7;
}

.timeline {
  position: relative;
  max-width: 800px;
  margin: 3rem auto 0;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 7.5rem;
  width: 2px;
  background: var(--first-color);
  opacity: .45;
}

.timeline__item {
  position: relative;
  display: grid;
  grid-template-columns: 6rem 1fr;
  gap: 3rem;
  margin-bottom: 2rem;
}

.timeline__date {
  padding-top: 1.25rem;
  text-align: right;
  color: var(--first-color);
  font-size: var(--smaller-font-size);
  font-weight: var(--font-medium);
}

.timeline__card {
  position: relative;
  padding: 1.5rem;
  border-radius: 1rem;
  background: var(--container-color);
}

.timeline__card::before {
  content: '';
  position: absolute;
  top: 1.5rem;
  left: -3.55rem;
  width: .9rem;
  height: .9rem;
  border: 3px solid var(--body-color);
  border-radius: 50%;
  background: var(--first-color);
  z-index: 1;
}

.timeline__icon {
  color: var(--first-color);
  font-size: 1.5rem;
  margin-bottom: .7rem;
}

.timeline__card h2 {
  font-size: var(--h3-font-size);
  margin-bottom: .6rem;
}

.timeline__card p {
  line-height: 1.7;
}

.timeline__status {
  display: inline-block;
  margin-top: 1rem;
  padding: .25rem .6rem;
  color: var(--body-color);
  background: var(--first-color);
  border-radius: 1rem;
  font-size: var(--tiny-font-size);
}

@media screen and (max-width: 767px) {
  .projects__toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .journey__grid {
    grid-template-columns: 1fr;
  }

  .timeline::before {
    left: .4rem;
  }

  .timeline__item {
    grid-template-columns: 1fr;
    gap: .5rem;
    padding-left: 2rem;
  }

  .timeline__date {
    text-align: left;
    padding-top: 0;
  }

  .timeline__card::before {
    left: -2.05rem;
  }
}

@media screen and (max-width: 480px) {
  .projects__grid {
    grid-template-columns: 1fr;
  }

  .project-card__media {
    height: 175px;
  }
}

@media screen and (min-width: 968px) {
  .projects__grid {
    gap: 1.5rem;
  }

  .project-card__media {
    height: 165px;
  }
}


.home__page-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: .5rem .9rem;
  max-width: 520px;
  margin: 1.25rem auto 0;
}

.home__page-links a {
  color: var(--text-color-light);
  font-size: var(--smaller-font-size);
  display: inline-flex;
  align-items: center;
  gap: .2rem;
  transition: color .3s ease;
}

.home__page-links a:hover {
  color: var(--first-color);
}

.home__page-links i {
  font-size: 1rem;
  transition: transform .3s ease;
}

.home__page-links a:hover i {
  transform: translateX(.2rem);
}

.work__view-all {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.contact__message {
  min-height: 1.5rem;
  margin-top: 1rem;
  color: var(--first-color);
  font-size: var(--small-font-size);
  line-height: 1.5;
}

.contact-message--error {
  color: #ef767a;
}

.contact__form button:disabled {
  cursor: wait;
  opacity: .65;
}

@media screen and (max-width: 320px) {
  .home__page-links {
    gap: .35rem .6rem;
  }
}


/*=============== SUPPORT / PAYMENT INTERFACE ===============*/
.support-modal {
  position: fixed;
  inset: 0;
  z-index: calc(var(--z-modal) + 1);
  display: grid;
  place-items: center;
  padding: 1rem;
  visibility: hidden;
  opacity: 0;
  transition: visibility .3s ease, opacity .3s ease;
}

.support-modal.is-open {
  visibility: visible;
  opacity: 1;
}

.support-modal__overlay {
  position: absolute;
  inset: 0;
  background: hsla(var(--second-hue), 48%, 4%, .82);
  backdrop-filter: blur(8px);
}

.support-modal__content {
  position: relative;
  width: min(100%, 650px);
  max-height: min(92vh, 780px);
  overflow-y: auto;
  padding: 2.75rem 1.5rem 1.5rem;
  border: 1px solid hsla(var(--first-hue), var(--sat), var(--lig), .28);
  border-radius: 1.5rem;
  background: var(--body-color);
  box-shadow: 0 25px 80px hsla(var(--second-hue), 48%, 4%, .5);
  transform: translateY(22px) scale(.97);
  transition: transform .35s ease;
}

.support-modal.is-open .support-modal__content {
  transform: translateY(0) scale(1);
}

.support-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  border: 0;
  border-radius: 50%;
  color: var(--first-color);
  background: var(--container-color);
  font-size: 1.4rem;
  cursor: pointer;
  transition: transform .25s ease, background .25s ease;
}

.support-modal__close:hover {
  color: var(--title-color);
  background: var(--first-color);
  transform: rotate(90deg);
}

.support-modal__title {
  margin: .35rem 0 .6rem;
  color: var(--first-color);
  text-align: center;
}

.support-modal__intro {
  max-width: 460px;
  margin: 0 auto 1.5rem;
  text-align: center;
  line-height: 1.7;
}

.support-modal__options {
  display: grid;
  gap: 1rem;
}

.support-option {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  padding: 1.15rem;
  border: 1px solid hsla(var(--first-hue), var(--sat), var(--lig), .14);
  border-radius: 1rem;
  background: var(--container-color);
}

.support-option--mobile {
  border-color: hsla(var(--first-hue), var(--sat), var(--lig), .45);
  background: linear-gradient(135deg, hsla(var(--first-hue), var(--sat), var(--lig), .14), var(--container-color));
}

.support-option__icon {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: .85rem;
  color: var(--first-color);
  background: var(--body-color);
  font-size: 1.35rem;
}

.support-option--card .support-option__icon {
  color: var(--text-color-light);
}

.support-option__content h3 {
  margin: .15rem 0 .4rem;
  font-size: var(--normal-font-size);
}

.support-option__content p {
  margin-bottom: .75rem;
  color: var(--text-color-light);
  font-size: var(--small-font-size);
  line-height: 1.6;
}

.support-option__eyebrow {
  color: var(--first-color);
  font-size: var(--smaller-font-size);
  font-weight: var(--font-medium);
}

.support-option__number {
  display: inline-flex;
  margin-bottom: .75rem;
  padding: .45rem .65rem;
  border-radius: .5rem;
  color: var(--title-color);
  background: var(--body-color);
  font-size: var(--h3-font-size);
  font-weight: var(--font-semibold);
  letter-spacing: .06rem;
}

.support-option__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
}

.support-option__actions .button {
  padding: .7rem .85rem;
  font-size: var(--small-font-size);
}

.support-option__feedback {
  display: block;
  min-height: 1.2rem;
  margin-top: .65rem;
  color: var(--first-color);
  font-size: var(--smaller-font-size);
}

.support-option__pending {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .35rem .55rem;
  border-radius: .5rem;
  color: var(--text-color-light);
  background: var(--body-color);
  font-size: var(--smaller-font-size);
}

.support-modal__note {
  display: flex;
  align-items: flex-start;
  gap: .4rem;
  margin-top: 1.15rem;
  color: var(--text-color-light);
  font-size: var(--smaller-font-size);
  line-height: 1.5;
}

.support-modal__note i {
  margin-top: .05rem;
  color: var(--first-color);
  font-size: 1rem;
}

@media screen and (max-width: 420px) {
  .support-modal__content {
    padding: 2.75rem 1rem 1rem;
    border-radius: 1.1rem;
  }

  .support-option {
    grid-template-columns: 1fr;
  }

  .support-option__icon {
    width: 2.45rem;
    height: 2.45rem;
  }

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


.support-option__manual-confirmation {
  margin-top: 1rem;
  padding-top: .9rem;
  border-top: 1px solid hsla(var(--first-hue), var(--sat), var(--lig), .14);
}

.support-option__manual-confirmation p {
  margin-bottom: .6rem;
  font-size: var(--smaller-font-size);
}

.support-manual-confirm-button {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .5rem .65rem;
  border: 0;
  border-radius: .5rem;
  color: var(--first-color);
  background: var(--body-color);
  font: inherit;
  font-size: var(--smaller-font-size);
  cursor: pointer;
  transition: background .25s ease, color .25s ease;
}

.support-manual-confirm-button:hover,
.support-manual-confirm-button.is-confirmed {
  color: var(--title-color);
  background: var(--first-color);
}

.support-manual-confirm-button:disabled {
  cursor: default;
}


/*=============== HOME PROJECTS UPDATE ===============*/
.work__container {
  align-items: stretch;
}

.work__card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  border: 1px solid transparent;
  overflow: hidden;
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}

.work__card:hover {
  border-color: hsla(var(--first-hue), var(--sat), var(--lig), .45);
  transform: translateY(-6px);
  box-shadow: 0 15px 35px hsla(var(--second-hue), 48%, 8%, .25);
}

.work__img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid hsla(var(--first-hue), var(--sat), var(--lig), .12);
}

.work__tag {
  display: inline-flex;
  align-self: flex-start;
  margin-bottom: .55rem;
  padding: .24rem .5rem;
  border-radius: .45rem;
  color: var(--first-color);
  background: hsla(var(--first-hue), var(--sat), var(--lig), .12);
  font-size: var(--smaller-font-size);
  font-weight: var(--font-medium);
}

.work__description {
  min-height: 2.6rem;
  margin-bottom: 1rem;
  color: var(--text-color-light);
  font-size: var(--small-font-size);
  line-height: 1.45;
}

.work__button {
  margin-top: auto;
}

.work__view-all {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .8rem;
  margin-top: 2.25rem;
}

@media screen and (min-width: 768px) {
  .work__container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (min-width: 1048px) {
  .work__container {
    grid-template-columns: repeat(3, 1fr);
  }
}


/*=============== PROJECT REACTIONS & COMMENTS ===============*/
.project-card__actions {
  display: flex;
  justify-content: space-between;
  gap: .55rem;
  margin-top: .9rem;
  padding-top: .8rem;
  border-top: 1px solid hsla(var(--first-hue), var(--sat), var(--lig), .12);
}

.project-card__reaction {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .32rem;
  padding: .42rem .55rem;
  border: 0;
  border-radius: .5rem;
  color: var(--text-color-light);
  background: var(--body-color);
  font: inherit;
  font-size: var(--smaller-font-size);
  cursor: pointer;
  transition: color .25s ease, background .25s ease, transform .25s ease;
}

.project-card__reaction:hover {
  color: var(--first-color);
  transform: translateY(-2px);
}

.project-card__reaction.is-liked {
  color: #ff6b9d;
  background: hsla(340, 100%, 70%, .12);
}

.comment-modal {
  position: fixed;
  inset: 0;
  z-index: calc(var(--z-modal) + 3);
  display: grid;
  place-items: center;
  padding: 1rem;
  visibility: hidden;
  opacity: 0;
  transition: visibility .3s ease, opacity .3s ease;
}

.comment-modal.is-open {
  visibility: visible;
  opacity: 1;
}

.comment-modal__overlay {
  position: absolute;
  inset: 0;
  background: hsla(var(--second-hue), 48%, 4%, .83);
  backdrop-filter: blur(8px);
}

.comment-modal__content {
  position: relative;
  width: min(100%, 510px);
  padding: 2.6rem 1.4rem 1.4rem;
  border: 1px solid hsla(var(--first-hue), var(--sat), var(--lig), .3);
  border-radius: 1.25rem;
  background: var(--body-color);
  box-shadow: 0 25px 80px hsla(var(--second-hue), 48%, 4%, .5);
  transform: translateY(18px) scale(.97);
  transition: transform .3s ease;
}

.comment-modal.is-open .comment-modal__content {
  transform: translateY(0) scale(1);
}

.comment-modal__close {
  position: absolute;
  top: .9rem;
  right: .9rem;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 50%;
  color: var(--first-color);
  background: var(--container-color);
  font-size: 1.25rem;
  cursor: pointer;
}

.comment-modal__title {
  margin: .3rem 0 .35rem;
  color: var(--first-color);
  text-align: center;
}

.comment-modal__project {
  margin-bottom: .75rem;
  color: var(--title-color);
  font-size: var(--small-font-size);
  font-weight: var(--font-medium);
  text-align: center;
}

.comment-modal__intro {
  margin-bottom: 1rem;
  color: var(--text-color-light);
  font-size: var(--small-font-size);
  line-height: 1.55;
  text-align: center;
}

.comment-form textarea {
  width: 100%;
  margin-bottom: .85rem;
  padding: .85rem;
  border: 1px solid transparent;
  border-radius: .75rem;
  outline: 0;
  resize: vertical;
  color: var(--text-color);
  background: var(--container-color);
  font: inherit;
  font-size: var(--small-font-size);
}

.comment-form textarea:focus {
  border-color: var(--first-color);
}

.comment-form__honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
}

.comment-form__message {
  min-height: 1.1rem;
  margin-top: .65rem;
  color: var(--first-color);
  font-size: var(--smaller-font-size);
  line-height: 1.4;
}

.comment-form__message.is-error {
  color: #ff6b6b;
}

@media screen and (max-width: 360px) {
  .project-card__actions {
    flex-direction: column;
  }

  .project-card__reaction {
    width: 100%;
  }
}


/*=============== JOSH DEMO CATALOG ===============*/
.demo-page {
  background: var(--body-color);
}

.demo-header {
  position: sticky;
  top: 0;
  z-index: var(--z-fixed);
  border-bottom: 1px solid hsla(var(--first-hue), var(--sat), var(--lig), .12);
  background: hsla(var(--second-hue), 48%, 8%, .82);
  backdrop-filter: blur(16px);
}

.light-theme .demo-header {
  background: hsla(var(--body-color-hue), 8%, 95%, .84);
}

.demo-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4.5rem;
  gap: .85rem;
}

.demo-nav__icon,
.demo-nav__projects {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  color: var(--title-color);
  font-size: var(--small-font-size);
}

.demo-nav__icon {
  width: 2.45rem;
  height: 2.45rem;
  border-radius: .7rem;
  color: var(--first-color);
  background: var(--container-color);
  font-size: 1.3rem;
}

.demo-nav__brand {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  color: var(--title-color);
  font-weight: var(--font-semibold);
}

.demo-nav__brand-icon {
  display: grid;
  place-items: center;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: .5rem;
  color: var(--title-color);
  background: linear-gradient(135deg, #b19cff, var(--first-color));
  font-size: 1rem;
}

.demo-nav__actions {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
}

.demo-nav__projects {
  color: var(--first-color);
}

.demo-hero {
  display: grid;
  gap: 1.5rem;
  padding-top: 4rem;
  padding-bottom: 2.25rem;
}

.demo-kicker {
  display: block;
  margin-bottom: .45rem;
  color: var(--first-color);
  font-size: var(--small-font-size);
  font-weight: var(--font-medium);
}

.demo-hero h1,
.demo-catalog h2 {
  color: var(--title-color);
}

.demo-hero h1 {
  margin-bottom: .8rem;
  font-size: clamp(2rem, 7vw, 4rem);
  line-height: 1.05;
}

.demo-hero h1 span {
  color: var(--first-color);
}

.demo-hero p {
  max-width: 560px;
  line-height: 1.7;
}

.demo-search {
  display: flex;
  align-items: center;
  gap: .6rem;
  width: 100%;
  padding: .8rem 1rem;
  border: 1px solid hsla(var(--first-hue), var(--sat), var(--lig), .18);
  border-radius: .9rem;
  background: var(--container-color);
  color: var(--text-color-light);
}

.demo-search:focus-within {
  border-color: var(--first-color);
  box-shadow: 0 0 0 3px hsla(var(--first-hue), var(--sat), var(--lig), .12);
}

.demo-search input {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--text-color);
  background: transparent;
  font: inherit;
}

.demo-widgets {
  display: grid;
  gap: .85rem;
  margin-bottom: 2.5rem;
}

.demo-widget {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: .75rem;
  padding: 1rem;
  border: 1px solid hsla(var(--first-hue), var(--sat), var(--lig), .15);
  border-radius: 1rem;
  background: var(--container-color);
}

.demo-widget__icon {
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: .8rem;
  color: var(--first-color);
  background: hsla(var(--first-hue), var(--sat), var(--lig), .12);
  font-size: 1.35rem;
}

.demo-widget__label,
.demo-widget small {
  display: block;
  color: var(--text-color-light);
  font-size: var(--smaller-font-size);
}

.demo-widget strong {
  display: block;
  margin: .1rem 0;
  color: var(--title-color);
  font-size: var(--normal-font-size);
}

.demo-widget__refresh {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: .5rem;
  color: var(--first-color);
  background: var(--body-color);
  cursor: pointer;
}

.demo-widget--form {
  grid-template-columns: auto 1fr;
}

.demo-widget__form-content form {
  display: flex;
  gap: .4rem;
  margin-top: .4rem;
}

.demo-widget__form-content input {
  min-width: 0;
  width: 100%;
  border: 0;
  border-bottom: 1px solid hsla(var(--first-hue), var(--sat), var(--lig), .28);
  outline: 0;
  color: var(--text-color);
  background: transparent;
  font: inherit;
  font-size: var(--smaller-font-size);
}

.demo-widget__form-content button {
  display: grid;
  place-items: center;
  width: 1.8rem;
  height: 1.8rem;
  border: 0;
  border-radius: .5rem;
  color: var(--body-color);
  background: var(--first-color);
  cursor: pointer;
}

.demo-featured {
  margin-bottom: 3rem;
}

.demo-featured__card {
  position: relative;
  min-height: 300px;
  overflow: hidden;
  border-radius: 1.5rem;
  background: var(--container-color);
}

.demo-featured__card::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, hsla(var(--second-hue), 48%, 8%, .93), hsla(var(--second-hue), 48%, 8%, .18));
  content: '';
}

.demo-featured__card img {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  object-fit: cover;
}

.demo-featured__overlay {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 300px;
  max-width: 590px;
  padding: 1.5rem;
  color: #fff;
}

.demo-featured__overlay > span {
  color: #ded8ff;
  font-size: var(--small-font-size);
}

.demo-featured__overlay h2 {
  margin: .3rem 0 .5rem;
  color: #fff;
}

.demo-featured__overlay p {
  margin-bottom: 1rem;
  color: #e4e0f3;
  line-height: 1.55;
}

.demo-view-button,
.demo-app-card__view {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .3rem;
  width: max-content;
  padding: .55rem .9rem;
  border-radius: .65rem;
  color: #fff;
  background: var(--first-color);
  font-size: var(--small-font-size);
  font-weight: var(--font-medium);
}

.demo-catalog {
  padding-bottom: 4rem;
}

.demo-catalog__heading {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: .8rem;
}

.demo-categories {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.demo-category {
  padding: .45rem .75rem;
  border: 1px solid hsla(var(--first-hue), var(--sat), var(--lig), .2);
  border-radius: 999px;
  color: var(--text-color-light);
  background: var(--container-color);
  font: inherit;
  font-size: var(--small-font-size);
  cursor: pointer;
}

.demo-category.is-active,
.demo-category:hover {
  border-color: var(--first-color);
  color: var(--body-color);
  background: var(--first-color);
}

.demo-results {
  margin-bottom: 1rem;
  color: var(--text-color-light);
  font-size: var(--small-font-size);
}

.demo-app-grid {
  display: grid;
  gap: .8rem;
}

.demo-app-card {
  display: grid;
  grid-template-columns: 4rem 1fr auto;
  align-items: center;
  gap: .85rem;
  padding: .8rem;
  border: 1px solid hsla(var(--first-hue), var(--sat), var(--lig), .12);
  border-radius: 1rem;
  background: var(--container-color);
  transition: transform .25s ease, border-color .25s ease;
}

.demo-app-card:hover {
  border-color: hsla(var(--first-hue), var(--sat), var(--lig), .48);
  transform: translateY(-3px);
}

.demo-app-card__icon {
  width: 4rem;
  height: 4rem;
  border-radius: .95rem;
  object-fit: cover;
  background: var(--body-color);
}

.demo-app-card h3 {
  margin-bottom: .15rem;
  color: var(--title-color);
  font-size: var(--normal-font-size);
}

.demo-app-card p {
  display: -webkit-box;
  overflow: hidden;
  margin-bottom: .3rem;
  color: var(--text-color-light);
  font-size: var(--smaller-font-size);
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.demo-app-card__category {
  color: var(--first-color);
  font-size: var(--smaller-font-size);
  text-transform: capitalize;
}

.demo-app-card__view {
  padding: .45rem .65rem;
  font-size: var(--smaller-font-size);
}

.demo-empty {
  padding: 2rem;
  border-radius: 1rem;
  color: var(--text-color-light);
  background: var(--container-color);
  text-align: center;
}

.demo-footer {
  padding: 2rem 0;
  border-top: 1px solid hsla(var(--first-hue), var(--sat), var(--lig), .12);
  color: var(--text-color-light);
}

.demo-footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .75rem;
}

.demo-footer a {
  color: var(--first-color);
}

@media screen and (min-width: 576px) {
  .demo-widgets {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (min-width: 768px) {
  .demo-hero {
    grid-template-columns: 1.1fr .9fr;
    align-items: end;
    padding-top: 5rem;
  }

  .demo-widgets {
    grid-template-columns: repeat(4, 1fr);
  }

  .demo-widget {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .demo-widget--form {
    grid-template-columns: 1fr;
  }

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

  .demo-catalog__heading {
    flex-direction: row;
    align-items: end;
    justify-content: space-between;
  }
}

@media screen and (min-width: 1048px) {
  .demo-app-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .demo-app-card {
    grid-template-columns: 3.6rem 1fr;
  }

  .demo-app-card__view {
    grid-column: 2;
    justify-self: start;
  }
}


/*=============== PORTFOLIO FINISHING UPDATE ===============*/
.inner-nav__actions {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}

.inner-nav__icon {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid hsla(var(--first-hue), var(--sat), var(--lig), .18);
  border-radius: .65rem;
  color: var(--first-color);
  background: var(--container-color);
  font-size: 1.15rem;
  transition: color .25s ease, background .25s ease, transform .25s ease;
}

.inner-nav__icon:hover {
  color: var(--body-color);
  background: var(--first-color);
  transform: translateY(-2px);
}

.about__container > .about__img {
  position: relative;
  overflow: hidden;
  transition: transform .45s ease, filter .45s ease;
}

.about__container > .about__img:hover {
  filter: brightness(1.08) saturate(1.07);
  transform: translateY(-4px) scale(1.012);
}

.about__container:has(.about__img)::after {
  position: absolute;
  z-index: 1;
  width: 44%;
  height: 130%;
  top: -15%;
  left: -65%;
  background: linear-gradient(105deg, transparent 15%, hsla(var(--body-color-hue), 8%, 100%, .08) 42%, hsla(var(--body-color-hue), 8%, 100%, .44) 50%, hsla(var(--body-color-hue), 8%, 100%, .08) 58%, transparent 85%);
  content: '';
  pointer-events: none;
  transform: skewX(-16deg);
}

.about__container:hover::after {
  animation: aboutMirrorSweep 1.25s ease;
}

@keyframes aboutMirrorSweep {
  from { left: -65%; }
  to { left: 120%; }
}

.visa-card {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  min-height: 138px;
  margin: .85rem 0;
  padding: 1rem;
  overflow: hidden;
  border: 1px solid hsla(var(--body-color-hue), 8%, 100%, .24);
  border-radius: 1rem;
  color: #fff;
  background: linear-gradient(135deg, #251c59, #7458d8 53%, #bb9cff);
  box-shadow: 0 14px 30px hsla(257, 65%, 15%, .36);
  isolation: isolate;
  transform: rotate(-1.5deg);
  animation: visaFloat 4.5s ease-in-out infinite;
}

.visa-card::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: repeating-linear-gradient(120deg, transparent 0 12px, hsla(var(--body-color-hue), 8%, 100%, .06) 12px 13px);
  content: '';
}

.visa-card__glow {
  position: absolute;
  width: 150px;
  height: 150px;
  top: -70px;
  right: -30px;
  border-radius: 50%;
  background: hsla(var(--body-color-hue), 8%, 100%, .24);
  filter: blur(7px);
}

.visa-card__chip {
  display: grid;
  place-items: center;
  width: 2.15rem;
  height: 1.65rem;
  border-radius: .36rem;
  color: #473c20;
  background: linear-gradient(135deg, #f2dd92, #bd9b45);
  font-size: 1.15rem;
}

.visa-card__brand {
  align-self: center;
  font-size: 1.65rem;
  font-style: italic;
  font-weight: 800;
  letter-spacing: -.08rem;
}

.visa-card__number {
  grid-column: 1 / -1;
  align-self: end;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: clamp(.9rem, 4vw, 1.05rem);
  letter-spacing: .08rem;
}

.visa-card__caption {
  grid-column: 1 / -1;
  margin-top: .25rem;
  color: hsla(var(--body-color-hue), 8%, 100%, .72);
  font-size: .58rem;
  letter-spacing: .12rem;
}

@keyframes visaFloat {
  0%, 100% { transform: rotate(-1.5deg) translateY(0); }
  50% { transform: rotate(1.5deg) translateY(-5px); }
}

@media (prefers-reduced-motion: reduce) {
  .about__container:hover::after,
  .visa-card { animation: none; }
}


/*=============== MY CV PAGE ===============*/
.cv-main { overflow: hidden; }

.cv-hero { padding-top: 4.25rem; }

.cv-hero__container {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.cv-hero h1 {
  margin-bottom: .35rem;
  color: var(--title-color);
  font-size: clamp(2.45rem, 9vw, 4.8rem);
  line-height: 1;
}

.cv-hero__role {
  margin-bottom: .85rem;
  color: var(--first-color);
  font-size: var(--h2-font-size);
  font-weight: var(--font-medium);
}

.cv-hero__summary {
  max-width: 620px;
  line-height: 1.75;
}

.cv-hero__actions,
.cv-hero__links,
.cv-contact-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
}

.cv-hero__actions { margin-top: 1.4rem; }
.cv-hero__links { margin-top: 1rem; }

.cv-hero__links a {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  color: var(--text-color-light);
  font-size: var(--small-font-size);
}

.cv-hero__links a:hover { color: var(--first-color); }

.cv-profile-card {
  position: relative;
  overflow: hidden;
  padding: 1rem;
  border: 1px solid hsla(var(--first-hue), var(--sat), var(--lig), .22);
  border-radius: 1.35rem;
  background: linear-gradient(145deg, var(--container-color), hsla(var(--first-hue), var(--sat), var(--lig), .1));
}

.cv-profile-card::before {
  position: absolute;
  width: 160px;
  height: 160px;
  top: -95px;
  right: -70px;
  border-radius: 50%;
  background: hsla(var(--first-hue), var(--sat), var(--lig), .2);
  content: '';
  filter: blur(4px);
}

.cv-profile-card__image {
  position: relative;
  z-index: 1;
  width: 9.5rem;
  height: 9.5rem;
  margin: 0 auto 1rem;
  overflow: hidden;
  border: 3px solid var(--first-color);
  border-radius: 1.25rem;
  background: var(--body-color);
}

.cv-profile-card__image img { width: 100%; height: 100%; object-fit: cover; }

.cv-profile-card__details {
  position: relative;
  z-index: 1;
  display: grid;
  gap: .6rem;
}

.cv-profile-card__details p {
  display: flex;
  gap: .5rem;
  align-items: flex-start;
  font-size: var(--small-font-size);
  line-height: 1.4;
}

.cv-profile-card__details i { color: var(--first-color); font-size: 1.1rem; }

.cv-section { padding-top: 2rem; }

.cv-profile-text {
  display: grid;
  gap: 1rem;
  max-width: 850px;
  margin: 0 auto 1.6rem;
  line-height: 1.75;
  text-align: center;
}

.cv-facts {
  grid-template-columns: repeat(1, 1fr);
  gap: .85rem;
}

.cv-fact,
.cv-skill-group,
.cv-project,
.cv-education-grid article {
  padding: 1.15rem;
  border: 1px solid hsla(var(--first-hue), var(--sat), var(--lig), .15);
  border-radius: 1rem;
  background: var(--container-color);
}

.cv-fact { text-align: center; }
.cv-fact i { display: block; margin-bottom: .5rem; color: var(--first-color); font-size: 1.7rem; }
.cv-fact strong, .cv-fact span { display: block; }
.cv-fact strong { color: var(--title-color); margin-bottom: .25rem; }
.cv-fact span { color: var(--text-color-light); font-size: var(--small-font-size); }

.cv-timeline {
  display: grid;
  gap: 1rem;
  max-width: 950px;
  margin: 0 auto;
}

.cv-timeline__item {
  display: grid;
  gap: .55rem;
  padding: 1rem;
  border-left: 2px solid hsla(var(--first-hue), var(--sat), var(--lig), .25);
  border-radius: 0 1rem 1rem 0;
  background: var(--container-color);
}

.cv-timeline__item--current { border-left-color: var(--first-color); }

.cv-timeline__period {
  color: var(--first-color);
  font-size: var(--smaller-font-size);
  font-weight: var(--font-medium);
}

.cv-timeline__content { display: grid; grid-template-columns: auto 1fr; gap: .85rem; }
.cv-timeline__content > i { display: grid; place-items: center; width: 2.3rem; height: 2.3rem; border-radius: .65rem; color: var(--first-color); background: hsla(var(--first-hue), var(--sat), var(--lig), .12); font-size: 1.25rem; }
.cv-timeline h3 { margin-bottom: .2rem; color: var(--title-color); font-size: var(--normal-font-size); }
.cv-timeline__role { margin-bottom: .35rem; color: var(--first-color); font-size: var(--small-font-size); }
.cv-timeline__content p:not(.cv-timeline__role) { font-size: var(--small-font-size); line-height: 1.55; }

.cv-skills-grid { grid-template-columns: repeat(1, 1fr); gap: .85rem; }
.cv-skill-group { transition: transform .25s ease, border-color .25s ease; }
.cv-skill-group:hover { border-color: var(--first-color); transform: translateY(-3px); }
.cv-skill-group > i { display: block; margin-bottom: .6rem; color: var(--first-color); font-size: 1.65rem; }
.cv-skill-group h3 { margin-bottom: .4rem; color: var(--title-color); }
.cv-skill-group p { color: var(--text-color-light); font-size: var(--small-font-size); line-height: 1.55; }

.cv-projects-grid { grid-template-columns: repeat(1, 1fr); gap: .85rem; }
.cv-project { display: flex; flex-direction: column; min-height: 185px; }
.cv-project h3 { margin-bottom: .45rem; color: var(--title-color); }
.cv-project p { margin-bottom: auto; color: var(--text-color-light); font-size: var(--small-font-size); line-height: 1.55; }
.cv-project a { display: inline-flex; align-items: center; gap: .3rem; width: max-content; margin-top: .9rem; color: var(--first-color); font-size: var(--small-font-size); }
.cv-projects__cta { margin-top: 1.3rem; text-align: center; }

.cv-education-grid { grid-template-columns: repeat(1, 1fr); gap: .85rem; }
.cv-education-grid span { color: var(--first-color); font-size: var(--small-font-size); }
.cv-education-grid h3 { margin: .55rem 0; color: var(--title-color); font-size: var(--normal-font-size); }
.cv-education-grid p { color: var(--text-color-light); font-size: var(--small-font-size); line-height: 1.55; }

.cv-contact-banner {
  margin: 2rem auto 4rem;
  padding: 1.35rem;
  border: 1px solid hsla(var(--first-hue), var(--sat), var(--lig), .28);
  border-radius: 1.25rem;
  background: linear-gradient(125deg, hsla(var(--first-hue), var(--sat), var(--lig), .2), var(--container-color));
}

.cv-contact-banner .container { display: grid; gap: 1rem; }
.cv-contact-banner h2 { margin-bottom: .55rem; color: var(--title-color); }
.cv-contact-banner p { max-width: 560px; line-height: 1.6; }
.cv-contact-banner__actions { align-items: center; }

.cv-footer { padding: 1.5rem 0; border-top: 1px solid hsla(var(--first-hue), var(--sat), var(--lig), .13); font-size: var(--small-font-size); }
.cv-footer .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem; }
.cv-footer a { color: var(--first-color); }

@media screen and (min-width: 576px) {
  .cv-facts, .cv-skills-grid, .cv-projects-grid, .cv-education-grid { grid-template-columns: repeat(2, 1fr); }
}

@media screen and (min-width: 768px) {
  .cv-hero__container { grid-template-columns: 1.3fr .7fr; }
  .cv-timeline__item { grid-template-columns: 9rem 1fr; align-items: start; padding: 1.2rem; }
  .cv-contact-banner .container { grid-template-columns: 1fr auto; align-items: center; }
}

@media screen and (min-width: 1048px) {
  .cv-skills-grid { grid-template-columns: repeat(3, 1fr); }
  .cv-projects-grid { grid-template-columns: repeat(4, 1fr); }
}


/*=============== WORD-STYLE MY CV ===============*/
.cv-word-page { background: hsl(var(--second-hue), 48%, 8%); }
.cv-word-main { padding: 2rem 0 3rem; }
.cv-document-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem; margin-bottom: 1rem; }
.cv-document-toolbar p { color: var(--text-color-light); font-size: var(--small-font-size); }
.cv-document-toolbar p i { color: var(--first-color); font-size: 1.1rem; vertical-align: middle; }
.cv-print-button { border: 0; cursor: pointer; }

.cv-document {
  width: min(100% - 1.5rem, 960px);
  margin: 0 auto;
  overflow: hidden;
  color: #273044;
  background: #fff;
  box-shadow: 0 25px 90px hsla(var(--second-hue), 48%, 2%, .48);
  font-family: "Times New Roman", Georgia, serif;
}

.cv-document__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 2.3rem 2rem 1.75rem;
  color: #fff;
  background: linear-gradient(128deg, #393064, #7562c8 56%, #ab98ff);
}

.cv-document__identity h1 { margin: 0; color: #fff; font-family: Arial, Helvetica, sans-serif; font-size: clamp(2rem, 8vw, 3.5rem); letter-spacing: .11rem; line-height: 1; }
.cv-document__title { margin: .45rem 0 .65rem; color: #f1efff; font-family: Arial, Helvetica, sans-serif; font-size: 1rem; font-weight: 600; letter-spacing: .04rem; }
.cv-document__location { color: #e9e5ff; font-size: .82rem; }
.cv-document__location i { margin-right: .25rem; }
.cv-document__photo { width: 6.3rem; height: 6.3rem; border: 3px solid rgba(255, 255, 255, .82); border-radius: .25rem; object-fit: cover; box-shadow: 0 8px 20px rgba(0,0,0,.18); }

.cv-document__intro { padding: 1.7rem 2rem 1.1rem; border-bottom: 1px solid #d9dbe4; }
.cv-document h2 { margin: 0 0 .75rem; padding-bottom: .35rem; border-bottom: 2px solid #7868bd; color: #40366d; font-family: Arial, Helvetica, sans-serif; font-size: .82rem; letter-spacing: .08rem; }
.cv-document__intro p { color: #30394c; font-size: .95rem; line-height: 1.63; text-align: justify; }

.cv-document__body { display: grid; grid-template-columns: minmax(0, 1fr); }
.cv-document__sidebar { padding: 1.5rem 2rem; background: #f3f3f9; }
.cv-document__content { padding: 1.5rem 2rem; }
.cv-document__block { margin-bottom: 1.45rem; }
.cv-document__block:last-child { margin-bottom: 0; }
.cv-document__block p { color: #3b4354; font-size: .9rem; line-height: 1.54; }
.cv-document__block--main h2 { margin-bottom: .9rem; }

.cv-contact-list { display: grid; gap: .55rem; padding: 0; margin: 0; list-style: none; }
.cv-contact-list li { display: grid; grid-template-columns: 1.15rem 1fr; gap: .45rem; color: #3b4354; font-size: .84rem; overflow-wrap: anywhere; }
.cv-contact-list i { color: #6957b4; font-size: 1rem; }
.cv-contact-list a { color: #3b4354; text-decoration: none; }
.cv-contact-list a:hover, .cv-project-table a:hover { color: #6957b4; text-decoration: underline; }

.cv-skill-list { display: grid; gap: .72rem; }
.cv-skill-list div { display: grid; gap: .15rem; }
.cv-skill-list strong { color: #342b60; font-family: Arial, Helvetica, sans-serif; font-size: .81rem; }
.cv-skill-list span, .cv-keywords { color: #3b4354; font-size: .83rem; line-height: 1.45; }

.cv-entry { margin-bottom: 1rem; padding-bottom: 1rem; border-bottom: 1px solid #e1e2e8; }
.cv-entry:last-child { margin-bottom: 0; border-bottom: 0; }
.cv-entry__heading { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem .8rem; }
.cv-entry__heading h3 { color: #29233f; font-family: Arial, Helvetica, sans-serif; font-size: .94rem; }
.cv-entry__heading span { color: #6957b4; font-family: Arial, Helvetica, sans-serif; font-size: .75rem; font-weight: 700; }
.cv-entry__role { margin: .18rem 0 .33rem; color: #6957b4 !important; font-family: Arial, Helvetica, sans-serif; font-size: .82rem !important; font-style: italic; font-weight: 600; }
.cv-entry > p:not(.cv-entry__role) { font-size: .88rem; line-height: 1.5; }

.cv-project-table { display: grid; grid-template-columns: 1fr; border-top: 1px solid #dfe1e8; }
.cv-project-table > div { padding: .75rem 0; border-bottom: 1px solid #dfe1e8; }
.cv-project-table h3 { margin-bottom: .25rem; color: #302751; font-family: Arial, Helvetica, sans-serif; font-size: .88rem; }
.cv-project-table p { margin-bottom: .3rem; font-size: .83rem; }
.cv-project-table a { color: #6957b4; font-family: Arial, Helvetica, sans-serif; font-size: .77rem; font-weight: 700; text-decoration: none; }

.cv-document__footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .4rem; padding: .65rem 2rem; color: #f0effa; background: #423869; font-family: Arial, Helvetica, sans-serif; font-size: .68rem; }
.cv-page-footer { padding: 1.4rem 0; color: var(--text-color-light); }
.cv-page-footer .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .7rem; font-size: var(--small-font-size); }
.cv-page-footer a { color: var(--first-color); }

.light-theme .cv-word-page { background: hsl(var(--body-color-hue), 8%, 92%); }

@media screen and (min-width: 700px) {
  .cv-document__body { grid-template-columns: 30% 70%; }
  .cv-document__sidebar { padding: 1.6rem 1.35rem 2rem 2rem; }
  .cv-document__content { padding: 1.6rem 2rem 2rem 1.65rem; }
  .cv-project-table { grid-template-columns: 1fr 1fr; column-gap: 1rem; }
  .cv-project-table > div:nth-child(odd) { padding-right: .9rem; }
  .cv-project-table > div:nth-child(even) { padding-left: .9rem; border-left: 1px solid #e1e2e8; }
}

@media print {
  @page { size: A4; margin: 0; }
  body.cv-word-page { background: #fff !important; }
  .header, .cv-document-toolbar, .cv-page-footer { display: none !important; }
  .cv-word-main { padding: 0 !important; }
  .cv-document { width: 100% !important; min-height: 297mm; box-shadow: none !important; }
  .cv-document__header { padding: 18mm 16mm 12mm; }
  .cv-document__intro { padding: 10mm 16mm 6mm; }
  .cv-document__sidebar { padding: 9mm 10mm 12mm 16mm; }
  .cv-document__content { padding: 9mm 16mm 12mm 10mm; }
  .cv-entry, .cv-document__block { break-inside: avoid; }
}


/*=============== DEMO MINI-APPS & FLOATING NAV ===============*/
.app-shell { min-height: 100vh; background: radial-gradient(circle at 85% 5%, hsla(var(--first-hue), 68%, 55%, .13), transparent 28rem), var(--body-color); }
.app-shell .demo-main, .app-page-main { padding-bottom: 8.5rem; }
.demo-widget--link { position: relative; color: inherit; text-decoration: none; cursor: pointer; transition: transform .25s, background .25s, box-shadow .25s; }
.demo-widget--link:hover { transform: translateY(-.25rem); background: hsla(var(--first-hue), 75%, 65%, .12); box-shadow: 0 .6rem 1.5rem hsla(var(--second-hue), 48%, 8%, .16); }
.demo-widget__chevron { margin-left: auto; color: var(--first-color); font-size: 1.35rem; }

.app-floating-nav {
  position: fixed;
  z-index: var(--z-fixed);
  left: 50%;
  bottom: max(1rem, env(safe-area-inset-bottom));
  display: grid;
  grid-template-columns: auto repeat(4, minmax(2.85rem, 1fr));
  align-items: center;
  gap: .2rem;
  width: min(calc(100% - 1.25rem), 35rem);
  min-height: 4.45rem;
  padding: .38rem;
  color: hsl(var(--title-color));
  background: linear-gradient(125deg, hsla(var(--first-hue), 62%, 68%, .34), hsla(var(--second-hue), 48%, 15%, .78));
  border: 1px solid hsla(var(--first-hue), 74%, 88%, .24);
  border-radius: 1.5rem;
  box-shadow: 0 .8rem 2.8rem hsla(var(--second-hue), 48%, 5%, .42), inset 0 1px 0 hsla(var(--first-hue), 100%, 100%, .18);
  backdrop-filter: blur(22px) saturate(165%);
  -webkit-backdrop-filter: blur(22px) saturate(165%);
}
.app-floating-nav::before { content: ''; position: absolute; z-index: -1; inset: .12rem 12% auto; height: 1px; background: linear-gradient(90deg, transparent, hsla(var(--first-hue), 100%, 100%, .65), transparent); }
.app-floating-nav a { display: grid; place-items: center; align-content: center; gap: .06rem; min-width: 0; min-height: 3.55rem; padding: .28rem .16rem; color: hsl(var(--title-color)); border-radius: 1.08rem; font-size: .63rem; font-weight: var(--font-medium); text-decoration: none; transition: color .25s, background .25s, transform .25s; }
.app-floating-nav a i { font-size: 1.25rem; line-height: 1; }
.app-floating-nav a span { overflow: hidden; max-width: 100%; text-overflow: ellipsis; white-space: nowrap; }
.app-floating-nav a:hover { color: hsl(var(--first-hue), 97%, 86%); transform: translateY(-.08rem); }
.app-floating-nav a.is-active { color: hsl(var(--first-hue), 100%, 96%); background: linear-gradient(135deg, hsla(var(--first-hue), 69%, 64%, .6), hsla(var(--first-hue), 74%, 76%, .31)); box-shadow: inset 0 1px 0 hsla(var(--first-hue), 100%, 100%, .34), 0 .32rem .95rem hsla(var(--first-hue), 68%, 36%, .2); }
.app-floating-nav__back { width: 3.45rem; color: hsl(var(--first-hue), 100%, 92%) !important; background: hsla(var(--first-hue), 65%, 65%, .22); border: 1px solid hsla(var(--first-hue), 100%, 100%, .14); }
.app-floating-nav__back i { font-size: 1.55rem !important; }
.light-theme .app-floating-nav { color: hsl(var(--title-color)); background: linear-gradient(125deg, hsla(var(--first-hue), 78%, 86%, .72), hsla(var(--body-color-hue), 35%, 97%, .86)); border-color: hsla(var(--first-hue), 40%, 48%, .2); box-shadow: 0 .8rem 2.8rem hsla(var(--second-hue), 38%, 30%, .19), inset 0 1px 0 rgba(255,255,255,.75); }
.light-theme .app-floating-nav a { color: hsl(var(--title-color)); }
.light-theme .app-floating-nav a.is-active { color: #fff; }

.app-page-main { padding-top: 5.6rem; }
.app-page-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1rem; margin-bottom: 1.5rem; }
.app-page-heading__eyebrow { display: inline-flex; align-items: center; gap: .35rem; margin-bottom: .45rem; color: var(--first-color); font-size: var(--small-font-size); font-weight: var(--font-medium); }
.app-page-heading h1 { color: var(--title-color); font-size: var(--h1-font-size); }
.app-page-heading p { max-width: 35rem; color: var(--text-color-light); font-size: var(--small-font-size); line-height: 1.55; }
.app-theme-button { display: grid; place-items: center; width: 2.8rem; height: 2.8rem; color: var(--title-color); background: var(--container-color); border: 1px solid hsla(var(--first-hue), 42%, 62%, .2); border-radius: .85rem; box-shadow: 0 .35rem .9rem hsla(var(--second-hue), 48%, 8%, .11); cursor: pointer; }
.app-theme-button i { font-size: 1.25rem; }

@media screen and (max-width: 365px) {
  .app-floating-nav { width: calc(100% - .65rem); grid-template-columns: 2.65rem repeat(4, minmax(2.3rem, 1fr)); gap: .08rem; padding: .28rem; border-radius: 1.3rem; }
  .app-floating-nav a { min-height: 3.35rem; padding-inline: .05rem; font-size: .55rem; }
  .app-floating-nav a i { font-size: 1.15rem; }
  .app-floating-nav__back { width: 2.55rem; }
}

@media screen and (min-width: 768px) {
  .app-floating-nav { bottom: 1.5rem; }
  .app-page-main { padding-top: 6.5rem; }
}


/*=============== WEATHER APP ===============*/
.weather-current { display: grid; grid-template-columns: 1fr; gap: 1.3rem; padding: 1.35rem; margin-bottom: 2.5rem; overflow: hidden; color: var(--title-color); background: linear-gradient(135deg, hsla(var(--first-hue), 67%, 62%, .3), var(--container-color)); border: 1px solid hsla(var(--first-hue), 66%, 74%, .25); border-radius: 1.4rem; box-shadow: 0 .7rem 1.8rem hsla(var(--second-hue), 48%, 8%, .13); }
.weather-current__visual { display: grid; place-items: center; min-height: 8rem; color: hsl(var(--first-hue), 92%, 77%); background: radial-gradient(circle, hsla(var(--first-hue), 70%, 70%, .22), transparent 65%); }
.weather-loading-orb { width: 4rem; aspect-ratio: 1; border: 3px solid hsla(var(--first-hue), 85%, 75%, .2); border-top-color: var(--first-color); border-radius: 50%; animation: weather-spin 1s linear infinite; }
.weather-current__day { margin-bottom: .25rem; color: var(--text-color-light); font-size: var(--small-font-size); text-transform: capitalize; }
.weather-current__primary h2 { display: flex; align-items: flex-start; margin-bottom: .2rem; color: var(--title-color); font-size: 4.2rem; line-height: 1; }
.weather-current__primary h2 sup { margin-top: .15rem; color: var(--first-color); font-size: 1.4rem; }
.weather-current__condition { color: var(--text-color); font-size: var(--normal-font-size); font-weight: var(--font-medium); }
.weather-current__metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: .45rem; }
.weather-current__metrics div { display: grid; gap: .22rem; padding: .72rem .4rem; text-align: center; background: hsla(var(--body-color-hue), 12%, 100%, .05); border: 1px solid hsla(var(--first-hue), 60%, 80%, .12); border-radius: .85rem; }
.weather-current__metrics i { color: var(--first-color); font-size: 1.25rem; }
.weather-current__metrics span { color: var(--text-color-light); font-size: .62rem; }
.weather-current__metrics strong { color: var(--title-color); font-size: .73rem; }
.weather-section-heading, .date-list-section__heading { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem; }
.weather-section-heading h2, .date-list-section__heading h2 { color: var(--title-color); font-size: var(--h2-font-size); }
.weather-refresh { display: inline-flex; align-items: center; gap: .35rem; padding: .66rem .82rem; color: var(--first-color); background: transparent; border: 1px solid hsla(var(--first-hue), 68%, 66%, .5); border-radius: .7rem; font: inherit; font-size: var(--small-font-size); cursor: pointer; transition: background .25s, color .25s; }
.weather-refresh:hover { color: #fff; background: var(--first-color); }
.weather-refresh.is-loading i { animation: weather-spin 1s linear infinite; }
.weather-refresh:disabled { opacity: .65; cursor: wait; }
.weather-status { min-height: 1.5rem; margin: .4rem 0 1rem; color: var(--text-color-light); font-size: var(--smaller-font-size); }
.weather-status.is-error { color: hsl(0, 76%, 69%); }
.weather-forecast-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .7rem; }
.weather-day-card { display: grid; grid-template-columns: 1fr auto; gap: .15rem .45rem; padding: .85rem; color: var(--title-color); background: var(--container-color); border: 1px solid hsla(var(--first-hue), 46%, 70%, .15); border-radius: 1rem; box-shadow: 0 .3rem .9rem hsla(var(--second-hue), 48%, 8%, .08); }
.weather-day-card.is-today { background: linear-gradient(145deg, hsla(var(--first-hue), 63%, 58%, .26), var(--container-color)); border-color: hsla(var(--first-hue), 68%, 68%, .52); }
.weather-day-card__name { align-self: start; color: var(--title-color); font-size: .78rem; font-weight: var(--font-medium); text-transform: capitalize; }
.weather-day-card__icon { grid-column: 1 / 2; grid-row: 2 / 5; display: grid; place-items: center; color: hsl(var(--first-hue), 88%, 73%); }
.weather-day-card__label { color: var(--text-color-light); font-size: .6rem; line-height: 1.2; }
.weather-day-card__temps { display: flex; gap: .35rem; font-size: .73rem; }
.weather-day-card__temps strong { color: var(--title-color); }
.weather-day-card__temps span { color: var(--text-color-light); }
.weather-day-card__rain { color: hsl(var(--first-hue), 85%, 74%); font-size: .66rem; }
.weather-day-card__rain i { font-size: .75rem; }
.weather-error { display: grid; place-items: center; gap: .45rem; min-height: 8rem; padding: 1rem; color: var(--text-color-light); text-align: center; background: var(--container-color); border-radius: 1rem; }
.weather-error i { color: var(--first-color); font-size: 2rem; }
.weather-svg { width: 3rem; height: 3rem; overflow: visible; }
.weather-svg--large { width: 8rem; height: 8rem; }
.weather-svg__sun { transform-origin: 32px 32px; animation: weather-sun-rotate 16s linear infinite; }
.weather-svg__sun circle { fill: currentColor; fill-opacity: .2; }
.weather-svg__cloud { fill: hsla(var(--first-hue), 72%, 85%, .16); animation: weather-cloud-float 3.2s ease-in-out infinite alternate; }
.weather-svg__rain { animation: weather-rain-drop 1.05s ease-in-out infinite; }
.weather-svg__snow { animation: weather-snow-fall 2s ease-in-out infinite; }
.weather-svg__bolt { color: hsl(49, 91%, 68%); fill: currentColor; animation: weather-flash 2.3s step-end infinite; }
.weather-svg__fog { animation: weather-fog-drift 2.8s ease-in-out infinite alternate; }
@keyframes weather-spin { to { transform: rotate(360deg); } }
@keyframes weather-sun-rotate { to { transform: rotate(360deg); } }
@keyframes weather-cloud-float { to { transform: translate(2px, -2px); } }
@keyframes weather-rain-drop { 50% { transform: translateY(3px); opacity: .45; } }
@keyframes weather-snow-fall { 50% { transform: translateY(3px) rotate(25deg); opacity: .45; } }
@keyframes weather-flash { 0%, 87%, 100% { opacity: .35; } 88%, 92% { opacity: 1; } }
@keyframes weather-fog-drift { to { transform: translateX(3px); opacity: .55; } }

/*=============== SAVE THE DATE ===============*/
.date-app-grid, .birthday-app-grid { display: grid; gap: 1.25rem; }
.date-form, .birthday-form, .date-list-section, .birthday-stage { padding: 1.15rem; background: var(--container-color); border: 1px solid hsla(var(--first-hue), 48%, 70%, .16); border-radius: 1.2rem; box-shadow: 0 .5rem 1.5rem hsla(var(--second-hue), 48%, 8%, .09); }
.date-form__heading { display: flex; align-items: center; gap: .75rem; margin-bottom: 1.2rem; }
.date-form__heading > i { display: grid; place-items: center; width: 2.7rem; height: 2.7rem; color: hsl(var(--first-hue), 100%, 91%); background: linear-gradient(135deg, var(--first-color), hsl(var(--first-hue), 66%, 57%)); border-radius: .8rem; font-size: 1.35rem; }
.date-form h2, .birthday-form h2 { color: var(--title-color); font-size: 1.1rem; }
.date-form label, .birthday-form label { display: block; margin: .85rem 0 .36rem; color: var(--title-color); font-size: var(--small-font-size); font-weight: var(--font-medium); }
.date-form label span, .birthday-form label span { color: hsl(0, 78%, 72%); }
.date-form input:not([type="checkbox"]), .date-form textarea, .birthday-form input, .birthday-form textarea { width: 100%; padding: .78rem .85rem; color: var(--title-color); outline: none; background: hsla(var(--body-color-hue), 10%, 100%, .04); border: 1px solid hsla(var(--first-hue), 45%, 70%, .23); border-radius: .65rem; font: inherit; font-size: var(--small-font-size); transition: border .25s, box-shadow .25s; }
.date-form textarea, .birthday-form textarea { resize: vertical; }
.date-form input:focus, .date-form textarea:focus, .birthday-form input:focus, .birthday-form textarea:focus { border-color: var(--first-color); box-shadow: 0 0 0 3px hsla(var(--first-hue), 70%, 61%, .12); }
.date-emoji-field { display: flex; align-items: center; gap: .55rem; padding: .1rem .6rem; background: hsla(var(--body-color-hue), 10%, 100%, .04); border: 1px solid hsla(var(--first-hue), 45%, 70%, .23); border-radius: .65rem; }
.date-emoji-field input { width: 2rem !important; padding: .45rem 0 !important; text-align: center; background: transparent !important; border: 0 !important; font-size: 1.25rem !important; }
.date-emoji-field span { color: var(--text-color-light); font-size: var(--smaller-font-size); }
.date-form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem; margin-top: 1rem; }
.date-form .button, .birthday-form .button { display: inline-flex; align-items: center; gap: .4rem; padding: .8rem 1rem; }
.date-cancel, .birthday-reset { padding: .62rem .1rem; color: var(--text-color-light); background: transparent; border: 0; font: inherit; font-size: var(--small-font-size); cursor: pointer; }
.birthday-reset { display: inline-flex; align-items: center; gap: .3rem; margin: .65rem 0 0 .15rem; }
.date-form__notice { min-height: 1.1rem; margin-top: .6rem; color: var(--text-color-light); font-size: var(--smaller-font-size); }
.date-form__notice.is-success { color: hsl(153, 55%, 51%); }.date-form__notice.is-error { color: hsl(0, 76%, 66%); }.date-form__notice.is-neutral { color: var(--first-color); }
.date-count { padding: .4rem .6rem; color: var(--first-color); background: hsla(var(--first-hue), 70%, 63%, .12); border-radius: 99rem; font-size: var(--smaller-font-size); }
.date-list { display: grid; gap: .7rem; margin-top: 1rem; }
.date-empty { display: grid; place-items: center; gap: .4rem; min-height: 15rem; padding: 1.5rem; color: var(--text-color-light); text-align: center; background: hsla(var(--body-color-hue), 10%, 100%, .03); border: 1px dashed hsla(var(--first-hue), 58%, 68%, .3); border-radius: .9rem; }
.date-empty i { color: var(--first-color); font-size: 2.35rem; }.date-empty h3 { color: var(--title-color); font-size: .95rem; }.date-empty p { max-width: 17rem; font-size: var(--small-font-size); line-height: 1.5; }
.saved-date-card { display: grid; grid-template-columns: auto 1fr auto; gap: .65rem; align-items: start; padding: .85rem; background: hsla(var(--body-color-hue), 10%, 100%, .035); border: 1px solid hsla(var(--first-hue), 45%, 68%, .14); border-radius: .9rem; transition: transform .25s, border .25s; }
.saved-date-card:hover { transform: translateY(-.13rem); border-color: hsla(var(--first-hue), 63%, 63%, .42); }.saved-date-card.is-today { background: hsla(var(--first-hue), 65%, 64%, .15); border-color: var(--first-color); }
.saved-date-card__emoji { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; font-size: 1.25rem; background: hsla(var(--first-hue), 73%, 67%, .12); border-radius: .7rem; }
.saved-date-card__topline { display: flex; flex-wrap: wrap; gap: .25rem .5rem; justify-content: space-between; }.saved-date-card__topline p { color: var(--text-color-light); font-size: .64rem; text-transform: capitalize; }.saved-date-card__topline span { color: var(--first-color); font-size: .63rem; font-weight: var(--font-medium); }
.saved-date-card h3 { margin: .2rem 0 .18rem; color: var(--title-color); font-size: .9rem; }.saved-date-card__message { color: var(--text-color-light); font-size: .73rem; line-height: 1.35; }
.saved-date-card__actions { display: flex; gap: .15rem; }.saved-date-card__actions button { display: grid; place-items: center; width: 1.75rem; height: 1.75rem; color: var(--text-color-light); background: transparent; border: 0; border-radius: .45rem; cursor: pointer; }.saved-date-card__actions button:hover { color: var(--first-color); background: hsla(var(--first-hue), 65%, 65%, .13); }

/*=============== BIRTHDAY STUDIO ===============*/
.birthday-stage { display: grid; gap: 1rem; align-content: start; overflow: hidden; }
.birthday-countdown { min-height: 10.5rem; padding: 1rem; color: var(--title-color); background: linear-gradient(135deg, hsla(var(--first-hue), 65%, 60%, .24), hsla(var(--first-hue), 60%, 76%, .08)); border: 1px solid hsla(var(--first-hue), 65%, 73%, .25); border-radius: 1rem; }
.birthday-countdown__empty { display: grid; place-items: center; align-content: center; gap: .45rem; min-height: 8rem; color: var(--text-color-light); text-align: center; }.birthday-countdown__empty i { color: var(--first-color); font-size: 2.25rem; }.birthday-countdown__empty h2 { color: var(--title-color); font-size: 1rem; }.birthday-countdown__empty p { max-width: 17rem; font-size: var(--small-font-size); line-height: 1.5; }
.birthday-countdown__top { display: flex; align-items: center; justify-content: space-between; color: var(--text-color-light); font-size: var(--small-font-size); }.birthday-countdown__top i { color: var(--first-color); font-size: 1.35rem; }
.birthday-countdown__days { display: flex; align-items: baseline; gap: .3rem; margin: .4rem 0; }.birthday-countdown__days strong { color: var(--title-color); font-size: 3.6rem; line-height: 1; }.birthday-countdown__days span { color: var(--first-color); font-size: .85rem; font-weight: var(--font-medium); }.birthday-countdown__details h2 { color: var(--title-color); font-size: 1rem; }.birthday-countdown__details p { margin: .12rem 0; color: var(--text-color); font-size: var(--small-font-size); }.birthday-countdown__details small { color: var(--text-color-light); font-size: var(--smaller-font-size); text-transform: capitalize; }
.birthday-card { position: relative; display: grid; justify-items: center; min-height: 17rem; padding: 1.5rem; overflow: hidden; color: #fff; text-align: center; background: linear-gradient(138deg, #3f306c, #7c62c8 60%, #a68cf0); border-radius: 1.1rem; box-shadow: inset 0 1px 1px rgba(255,255,255,.22), 0 .8rem 1.7rem hsla(var(--first-hue), 50%, 20%, .2); }.birthday-card::after { content: ''; position: absolute; width: 13rem; height: 13rem; right: -6rem; bottom: -6rem; background: hsla(0, 0%, 100%, .12); border-radius: 50%; }.birthday-card__eyebrow { position: relative; z-index: 1; color: #f5f1ff; font-size: .72rem; letter-spacing: .12rem; text-transform: uppercase; }.birthday-card h2 { position: relative; z-index: 1; margin: .35rem 0; color: #fff; font-size: 1.55rem; }.birthday-card__cake { position: relative; z-index: 1; display: grid; place-items: center; width: 3.4rem; height: 3.4rem; margin: .2rem 0 .6rem; color: #fff; background: hsla(255, 100%, 100%, .15); border: 1px solid hsla(0, 0%, 100%, .27); border-radius: 50%; }.birthday-card__cake i { font-size: 1.8rem; }.birthday-card > p:not(.birthday-card__eyebrow) { position: relative; z-index: 1; max-width: 24rem; color: #f5f2ff; font-size: .8rem; line-height: 1.5; }.birthday-copy { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: .3rem; margin-top: .85rem; padding: .55rem .75rem; color: #fff; background: hsla(0,0%,100%,.15); border: 1px solid hsla(0,0%,100%,.26); border-radius: .6rem; font: inherit; font-size: .7rem; cursor: pointer; }.birthday-copy:hover { background: hsla(0,0%,100%,.25); }.birthday-copy:disabled { opacity: .5; cursor: not-allowed; }.birthday-card__confetti span { position: absolute; z-index: 0; width: .35rem; height: .7rem; background: #ffd56c; border-radius: .08rem; opacity: 0; }.birthday-card__confetti span:nth-child(1) { top: 11%; left: 12%; background: #ffc2e2; }.birthday-card__confetti span:nth-child(2) { top: 19%; right: 13%; background: #9cf4dd; }.birthday-card__confetti span:nth-child(3) { top: 43%; left: 7%; }.birthday-card__confetti span:nth-child(4) { top: 58%; right: 7%; background: #b4d9ff; }.birthday-card__confetti span:nth-child(5) { bottom: 9%; left: 19%; background: #ffb4a3; }.birthday-card__confetti span:nth-child(6) { bottom: 15%; right: 23%; background: #d4b7ff; }.birthday-card.is-ready .birthday-card__confetti span { animation: birthday-confetti 1.8s ease-in-out infinite alternate; }.birthday-card.is-ready .birthday-card__confetti span:nth-child(2), .birthday-card.is-ready .birthday-card__confetti span:nth-child(5) { animation-delay: .45s; }.birthday-card.is-ready .birthday-card__confetti span:nth-child(3), .birthday-card.is-ready .birthday-card__confetti span:nth-child(6) { animation-delay: .9s; }
@keyframes birthday-confetti { from { opacity: .15; transform: translateY(0) rotate(0deg); } to { opacity: 1; transform: translateY(-.6rem) rotate(150deg); } }

@media screen and (min-width: 576px) {
  .weather-forecast-grid { grid-template-columns: repeat(3, 1fr); }
  .weather-current { grid-template-columns: 10rem 1fr; align-items: center; }.weather-current__metrics { grid-column: 1 / -1; }
}
@media screen and (min-width: 768px) {
  .weather-current { grid-template-columns: 11rem 1fr 1fr; padding: 1.7rem; }.weather-current__metrics { grid-column: auto; grid-template-columns: 1fr; }.weather-forecast-grid { grid-template-columns: repeat(4, 1fr); }.date-app-grid, .birthday-app-grid { grid-template-columns: minmax(18rem, .85fr) minmax(0, 1.15fr); align-items: start; }.date-form, .birthday-form, .date-list-section, .birthday-stage { padding: 1.35rem; }.birthday-card { min-height: 19rem; }
}
@media screen and (min-width: 992px) { .weather-forecast-grid { grid-template-columns: repeat(7, 1fr); }.weather-day-card { display: grid; grid-template-columns: 1fr; text-align: center; }.weather-day-card__icon { grid-column: auto; grid-row: auto; }.weather-day-card__temps { justify-content: center; }.weather-day-card__rain { font-size: .62rem; } }


/*=============== COMPACT CENTERED APP NAVIGATION ===============*/
/* Deliberately small, centered and thumb-friendly: a mauve mobile-app dock. */
.app-floating-nav {
  left: 50%;
  bottom: max(.85rem, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  grid-template-columns: 2.25rem repeat(4, minmax(0, 1fr));
  gap: .08rem;
  width: min(15rem, calc(100% - 1.25rem));
  min-height: 3.45rem;
  padding: .24rem;
  background: linear-gradient(135deg, hsla(var(--first-hue), 56%, 59%, .46), hsla(var(--second-hue), 43%, 15%, .82));
  border: 1px solid hsla(var(--first-hue), 78%, 90%, .2);
  border-radius: 1.1rem;
  box-shadow: 0 .45rem 1.5rem hsla(var(--second-hue), 48%, 5%, .34), inset 0 1px 0 hsla(var(--first-hue), 100%, 100%, .16);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
}
.app-floating-nav::before { inset: .1rem 20% auto; opacity: .65; }
.app-floating-nav a {
  min-height: 2.88rem;
  padding: .2rem .08rem;
  gap: .08rem;
  border-radius: .8rem;
  font-size: .5rem;
  letter-spacing: -.01rem;
  transition: color .18s ease-out, background .18s ease-out, transform .18s ease-out;
}
.app-floating-nav a i { font-size: 1.12rem; }
.app-floating-nav a span { line-height: 1; }
.app-floating-nav a:active { transform: scale(.94); }
.app-floating-nav a:hover { transform: translateY(-.04rem); }
.app-floating-nav a.is-active {
  color: hsl(var(--first-hue), 100%, 96%);
  background: hsla(var(--first-hue), 65%, 68%, .42);
  box-shadow: inset 0 1px 0 hsla(var(--first-hue), 100%, 100%, .25), 0 .16rem .55rem hsla(var(--first-hue), 63%, 28%, .17);
}
.app-floating-nav__back {
  width: auto;
  color: hsl(var(--first-hue), 100%, 93%) !important;
  background: hsla(var(--first-hue), 70%, 65%, .16);
  border: 1px solid hsla(var(--first-hue), 100%, 100%, .1);
}
.app-floating-nav__back i { font-size: 1.35rem !important; }
.light-theme .app-floating-nav {
  background: linear-gradient(135deg, hsla(var(--first-hue), 78%, 87%, .84), hsla(var(--body-color-hue), 30%, 98%, .9));
  box-shadow: 0 .45rem 1.5rem hsla(var(--second-hue), 38%, 30%, .18), inset 0 1px 0 rgba(255,255,255,.8);
}

@media screen and (max-width: 330px) {
  .app-floating-nav { width: min(14.25rem, calc(100% - .7rem)); grid-template-columns: 2.05rem repeat(4, minmax(0, 1fr)); }
  .app-floating-nav a { font-size: .46rem; }
  .app-floating-nav a i { font-size: 1.04rem; }
}

@media screen and (min-width: 768px) {
  .app-floating-nav { bottom: 1.2rem; width: 15.75rem; }
}

@media (prefers-reduced-motion: reduce) {
  .app-floating-nav a { transition: none; }
}


/*=============== HOME SHORTCUTS — COMPACT ICON VERSION ===============*/
.home__education { margin-bottom: 1.55rem; }
.home__page-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: .36rem;
  max-width: 26rem;
  margin: 1rem auto 0;
}
.home__page-links .home__page-link {
  display: inline-flex;
  align-items: center;
  gap: .22rem;
  min-height: 1.65rem;
  padding: .25rem .38rem;
  color: var(--text-color-light);
  background: hsla(var(--first-hue), 58%, 65%, .07);
  border: 1px solid hsla(var(--first-hue), 62%, 72%, .14);
  border-radius: .45rem;
  font-size: .57rem;
  line-height: 1;
  text-decoration: none;
  transition: color .18s ease-out, background .18s ease-out, transform .18s ease-out;
}
.home__page-links .home__page-link > i {
  color: var(--first-color);
  font-size: .76rem;
  transition: transform .18s ease-out;
}
.home__page-links .home__page-link:hover {
  color: var(--title-color);
  background: hsla(var(--first-hue), 62%, 65%, .17);
  transform: translateY(-.08rem);
}
.home__page-links .home__page-link:hover > i { transform: none; }
.home__page-links .home__page-link--icon {
  display: grid;
  place-items: center;
  width: 1.65rem;
  min-width: 1.65rem;
  padding: 0;
  background: hsla(var(--first-hue), 65%, 65%, .12);
}
.home__page-links .home__page-link--icon > i { font-size: .86rem; }
.home__page-links .home__page-link:active { transform: scale(.94); }

@media screen and (max-width: 320px) {
  .home__page-links { gap: .27rem; }
  .home__page-links .home__page-link { font-size: .53rem; padding-inline: .3rem; }
}


/*=============== DEMO NAVIGATION WITH EXPLORE ===============*/
.app-floating-nav.app-floating-nav--explore {
  grid-template-columns: 2.1rem repeat(5, minmax(0, 1fr));
  width: min(17.4rem, calc(100% - 1rem));
}
.app-floating-nav.app-floating-nav--explore a { font-size: .47rem; }
.app-floating-nav.app-floating-nav--explore a i { font-size: 1.04rem; }
.app-floating-nav.app-floating-nav--explore .app-floating-nav__back i { font-size: 1.24rem !important; }
@media screen and (min-width: 768px) { .app-floating-nav.app-floating-nav--explore { width: 18.2rem; } }
