/*=============== 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)*/
  /*   
        Purple: hsl(250, 66%, 75%)
        Blue: hsl(207, 90%, 72%)
        Pink: hsl(356, 66%, 75%)
        Teal: hsl(174, 63%, 62%)
  */
  --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: 0.938rem;
  --small-font-size: 0.813rem;
  --smaller-font-size: 0.75rem;
  --tiny-font-size: 0.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: 0.875rem;
    --smaller-font-size: 0.813rem;
  }
}

/*=============== 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: 0.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;
}

/*=============== THEME ===============*/
.change__theme {
  font-size: 1.25rem;
  cursor: pointer;
  transition: 0.3s;
}

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

/*========== 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: #e9e9e9;
}

/*========== 
    Color changes in some parts of 
    the website, in light theme
==========*/
.light-theme .scroll-header {
  box-shadow: 0 2px 4px hsla(0, 0%, 1%, 0.1);
}

.light-theme .nav__menu {
  background-color: hsla(var(--second-hue), 32%, 90%, 0.8);
}

.light-theme .section__subtitle {
  color: var(--text-color);
}

.light-theme .home__social-link {
  box-shadow: 0 2px 16px hsla(var(--second-hue), 48%, 8%, 0.1);
}

.light-theme .home__social-link::after,
.light-theme .footer__social-link {
  background-color: var(--title-color);
}

.light-theme .home__social-link,
.light-theme .home__scroll,
.light-theme .button,
.light-theme .button:hover,
.light-theme .active-work,
.light-theme .footer__title,
.light-theme .footer__link,
.light-theme .footer__copy {
  color: var(--title-color);
}

.light-theme .about__box {
  box-shadow: 0 2px 16px hsla(var(--second-hue), 48%, 8%, 0.1);
}

.light-theme .button,
.light-theme .skills__content,
.light-theme .services__card,
.light-theme .work__card,
.light-theme .testimonial__card,
.light-theme .contact__card,
.light-theme .contact__form-div {
  box-shadow: 0 2px 16px hsla(var(--second-hue), 48%, 8%, 0.1);
}

.light-theme::-webkit-scrollbar {
  background-color: hsl(var(--second-hue), 8%, 80%);
}

/*=============== 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%;
  /* height: var(--header-height); */
  background-color: var(--body-color);
  z-index: var(--z-fixed);
  transition: 0.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: 0.4s;
}

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

.nav__menu {
  position: fixed;
  bottom: 1rem;
  background-color: hsla(var(--second-hue), 32%, 16%, 0.8);
  width: 90%;
  border-radius: 4rem;
  padding: 1rem 2.25rem;
  backdrop-filter: blur(10px);
  transition: 0.4s;
}

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

.nav__link {
  color: var(--text-color);
  font-size: 1.25rem;
  padding: 0.4rem;
  font-weight: var(--font-medium);
  text-decoration: none;
  transition: 0.4s;
  display: flex;
  border-radius: 5rem;
}

/*=============== TERMINAL ===============*/

.home__handle {
  position: relative;
  overflow: visible;
}

.home__terminal {
  position: absolute;
  left: -25px;
  bottom: -45px;

  width: 265px;
  padding: 0.75rem 0.9rem;

  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.75rem;

  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);

  backdrop-filter: blur(12px);

  font-family: "Courier New", monospace;
  font-size: 0.72rem;

  z-index: 10;
}

/* Terminal dots */

.terminal__dots {
  display: flex;
  gap: 7px;
  margin-bottom: 0.65rem;
}

.terminal__dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--text-color-light);
  opacity: 0.8;
}

/* Terminal text */

.terminal__line {
  color: var(--text-color);
  line-height: 1.7;
  white-space: nowrap;
}

.terminal__symbol {
  color: var(--text-color-light);
}

.terminal__command span {
  color: var(--first-color);
}

.terminal__command {
  color: var(--title-color);
}

/* Active link */
.active-link {
  background: linear-gradient(180deg,
      hsla(var(--first-hue), var(--sat), var(--lig), 0.5),
      hsla(var(--first-hue), var(--sat), var(--lig), 0.2));
  box-shadow: 0 0 16px hsla(var(--first-hue), var(--sat), var(--lig), 0.4);
  border-radius: 5rem;

  color: var(--title-color);
}

/* Change background header */
.scroll-header {
  box-shadow: 0 4px 4px hsla(0, 0%, 4%, 0.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: 0.25rem;
}

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

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

.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), 0.5),
      hsla(var(--first-hue), var(--sat), var(--lig), 0.1));
  border-radius: 10rem 10rem 1rem 1rem;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: visible;
}

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

.home__social,
.home__scroll {
  position: absolute;
}

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

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

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

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

.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: 0.75rem 1rem;
  border-radius: 0.8rem;
  font-weight: var(--font-medium);
  transition: 0.4s;
}

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

.button--ghost {
  background-color: transparent;
  color: var(--first-color);
  border: 1px solid var(--first-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: 0.5rem;
  margin-bottom: 2rem;
}

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

.about__icon {
  font-size: 1.5rem;
  color: var(--first-color);
  margin-bottom: 0.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: 0.5rem;
}

.skills .bxs-badge-check {
  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(--small-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.5em;
  border-radius: 1.25rem;
}

.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: 0.25rem;
  cursor: pointer;
}

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

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

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

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

.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: 0.75rem;
}

.services__modal-item {
  display: flex;
  align-items: flex-start;
  column-gap: 0.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__container {
  padding-top: 1rem;
}

.work__filters {
  display: flex;
  justify-content: center;
  align-items: center;
  column-gap: 0.75rem;
  margin-bottom: 2rem;
}

.work__item {
  cursor: pointer;
  color: var(--title-color);
  padding: 0.25rem 0.75rem;
  font-weight: var(--font-medium);
  border-radius: 0.5rem;
}

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

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

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

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

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

.work__icon {
  font-size: 1rem;
  transition: 0.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: 0.25rem;
}

.testimonial__description {
  font-size: var(--small-font-size);
  margin-bottom: 0.15rem;
}

/* 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: 1rem;
}

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

.contact__card-icon {
  font-size: 2rem;
  color: var(--title-color);
  margin-bottom: 0.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: 0.75rem;
}

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

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

.contact__button-icon {
  font-size: 1rem;
  transition: 0.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;
  border-radius: 0.75rem;
  padding: 1.5rem;
  font-size: var(--normal-font-size);
  color: var(--text-color);
  outline: none;
  z-index: 1;
}

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

.contact__form-area {
  height: 17rem;
}

.contact__form-area textarea {
  resize: none;
}

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

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

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

.footer__title {
  text-align: center;
  margin-bottom: 2rem;
}

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

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

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

.footer__copy {
  display: block;
  margin-top: 4.5rem;
  color: var(--container-color);
  text-align: center;
  font-size: var(--smaller-font-size);
  margin-bottom: 2rem;
}

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

::-webkit-scrollbar-track {
  border-radius: 1.5rem;
}

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

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

/*=============== BREAKPOINTS ===============*/
/* For small devices */
@media screen and (max-width: 320px) {
  .nav__menu {
    padding: 1rem 1.5rem;
  }

  .home__button {
    flex-direction: column;
  }

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

  .home__img {
    width: 130px;
  }

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

  .skills__box {
    column-gap: 1rem;
  }

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

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

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

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

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

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

  .work__img {
    width: 165px;
  }
}

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

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

  .about__description {
    padding: 1rem 5rem;
    width: 600px;
    margin: 0 auto 2rem auto;
  }

  .about__box {
    padding: 1.75rem 0.95rem;
  }

  .skills__container {
    justify-content: center;
  }

  .skills__content {
    padding: 4rem 8.8rem;
  }

  .skills__title {
    font-size: var(--h3-font-size);
    margin-bottom: 1.5rem;
  }

  .skills__box {
    column-gap: 5.5rem;
  }

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

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

  .services__modal-description {
    padding: 0 3.5rem;
  }

  .work__container {
    justify-content: center;
    grid-template-columns: repeat(2, max-content);
  }

  .work__img {
    width: 250px;
  }

  .testimonial__container {
    width: 600px;
    margin: auto;
  }

  .contact__container {
    display: grid;
    grid-template-columns: 220px 340px;
    column-gap: 2rem;
    justify-content: center;
  }

  .contact__info {
    grid-template-columns: 200px;
    gap: 1rem;
  }

  .contact__form {
    width: 340px;
  }

  /* .contact__info {
    grid-template-columns: 350px;
    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__info {
    grid-template-columns: 300px;
  }

  .contact__container {
    grid-template-columns: repeat(2, 325px);
    justify-content: center;
  }
} */

/* 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: 280px;
  }

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

  .home__social::after {
    transform: rotate(90deg) translate(16px, -1px);
  }

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

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

  .about__img {
    width: 350px;
  }

  .about__data {
    text-align: initial;
  }

  .about__info {
    justify-content: initial;
    gap: 2rem;
  }

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

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

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

  .skills__title {
    margin-bottom: 3.5rem;
  }

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

  .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: 2rem;
  }

  .work__title {
    margin-bottom: 0.5rem;
  }

  .testimonial__container {
    width: 970px;
  }

  .testimonial__card {
    padding: 1.5rem 2rem;
  }

  .contact__info {
    grid-template-columns: 430px;
    gap: 1rem;
  }

  .contact__form {
    width: 430px;
  }

  .contact__form-area {
    height: 18rem;
  }

  .contact__container {
    grid-template-columns: repeat(2, 430px);
    column-gap: 6rem;
  }

  .footer__social-link {
    font-size: 1.25rem;
    padding: 0.4rem;
    border-radius: 0.5rem;
  }
}

/*=============== AI CHATBOT ===============*/
.chatbot {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 999;
}

/*========== FLOATING BUTTON ==========*/
.chatbot__toggle {
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: var(--first-color);
  color: var(--body-color);
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px hsla(var(--first-hue), var(--sat), var(--lig), 0.35);
  transition: 0.4s;
}

.chatbot__toggle::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--first-color);
  animation: chatbot-pulse 2.4s ease-out infinite;
  pointer-events: none;
}

.chatbot.is-open .chatbot__toggle::after {
  animation: none;
  opacity: 0;
}

.chatbot__toggle:hover {
  background-color: var(--first-color-alt);
  transform: translateY(-3px);
}

.chatbot__toggle-close {
  display: none;
}

.chatbot.is-open .chatbot__toggle-open {
  display: none;
}

.chatbot.is-open .chatbot__toggle-close {
  display: block;
}

@keyframes chatbot-pulse {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.6); opacity: 0; }
}

/*========== CHAT WINDOW ==========*/
.chatbot__window {
  position: absolute;
  right: 0;
  bottom: 70px;
  width: 360px;
  height: 520px;
  max-height: calc(100vh - 8rem);
  display: flex;
  flex-direction: column;
  background-color: var(--body-color);
  border: 1px solid hsla(var(--first-hue), var(--sat), var(--lig), 0.25);
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);

  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(0.95);
  transform-origin: bottom right;
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}

.chatbot.is-open .chatbot__window {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.light-theme .chatbot__window {
  box-shadow: 0 8px 32px hsla(var(--second-hue), 48%, 8%, 0.18);
}

/*========== HEADER ==========*/
.chatbot__header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  background: linear-gradient(180deg,
      hsla(var(--first-hue), var(--sat), var(--lig), 0.5),
      hsla(var(--first-hue), var(--sat), var(--lig), 0.1));
  border-bottom: 1px solid hsla(var(--first-hue), var(--sat), var(--lig), 0.2);
}

.chatbot__avatar {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  background-color: var(--first-color);
  color: var(--body-color);
}

.chatbot__title h3 {
  font-size: var(--normal-font-size);
  line-height: 1.2;
}

.chatbot__status {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 2px;
  font-family: "Courier New", monospace;
  font-size: var(--tiny-font-size);
  color: var(--text-color);
}

.chatbot__status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #4ade80;
  box-shadow: 0 0 8px rgba(74, 222, 128, 0.8);
}

.chatbot__minimize {
  margin-left: auto;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: hsla(var(--first-hue), var(--sat), var(--lig), 0.2);
  color: var(--title-color);
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s;
}

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

/*========== MESSAGES ==========*/
.chatbot__messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  scroll-behavior: smooth;
}

.chatbot__messages::-webkit-scrollbar {
  width: 0.3rem;
}

.bot-message,
.user-message {
  max-width: 85%;
  padding: 0.65rem 0.9rem;
  font-size: var(--small-font-size);
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
  animation: chatbot-msg 0.3s ease;
}

.bot-message {
  align-self: flex-start;
  background-color: var(--container-color);
  color: var(--text-color);
  border: 1px solid hsla(var(--first-hue), var(--sat), var(--lig), 0.15);
  border-radius: 1rem 1rem 1rem 0.25rem;
}

.user-message {
  align-self: flex-end;
  background-color: var(--first-color);
  color: var(--body-color);
  font-weight: var(--font-medium);
  border-radius: 1rem 1rem 0.25rem 1rem;
}

@keyframes chatbot-msg {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Typing indicator */
.bot-message--typing {
  display: flex;
  gap: 4px;
  align-items: center;
  padding: 0.85rem 1rem;
}

.bot-message--typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--first-color);
  animation: chatbot-typing 1.2s infinite ease-in-out;
}

.bot-message--typing span:nth-child(2) { animation-delay: 0.15s; }
.bot-message--typing span:nth-child(3) { animation-delay: 0.3s; }

@keyframes chatbot-typing {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-5px); opacity: 1; }
}

/*========== SUGGESTIONS ==========*/
.chatbot__suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0 1rem 0.75rem;
}

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

.chatbot__suggestions button {
  background: transparent;
  color: var(--first-color);
  border: 1px solid var(--first-color);
  border-radius: 0.5rem;
  padding: 0.3rem 0.75rem;
  font-size: var(--smaller-font-size);
  font-weight: var(--font-medium);
  transition: 0.3s;
}

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

/*========== INPUT ==========*/
.chatbot__input {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem;
  border-top: 1px solid hsla(var(--first-hue), var(--sat), var(--lig), 0.15);
  background-color: var(--body-color);
}

.chatbot__input input {
  flex: 1;
  min-width: 0;
  padding: 0.7rem 0.9rem;
  background-color: var(--container-color);
  color: var(--text-color);
  border: 1px solid transparent;
  border-radius: 0.75rem;
  outline: none;
  font-size: var(--small-font-size);
  transition: 0.3s;
}

.chatbot__input input::placeholder {
  color: var(--text-color-light);
}

.chatbot__input input:focus {
  border-color: var(--first-color);
}

.chatbot__input button {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 0.75rem;
  background-color: var(--first-color);
  color: var(--body-color);
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s;
}

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

.chatbot__input button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/*========== MOBILE ==========*/
@media screen and (max-width: 576px) {
  .chatbot {
    right: 1rem;
    bottom: 5.5rem;
  }

  .chatbot__window {
    width: calc(100vw - 2rem);
    height: 70vh;
    max-height: calc(100vh - 11rem);
  }
}

/*========== MOBILE ==========*/

@media screen and (max-width: 576px) {

  .chatbot {
    right: 1rem;
    bottom: 5.5rem;
  }

  .chatbot__toggle {
    width: 56px;
    height: 56px;
  }

  .chatbot__window {
    right: 0;

    width: calc(100vw - 2rem);
    height: 70vh;

    border-radius: 1.2rem;
  }
}

.phishing-demo {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.75);
  align-items: center;
  justify-content: center;
}

.phishing-demo.active {
  display: flex;
}

.phishing-demo__content {
  width: 90%;
  max-width: 600px;
  padding: 2rem;
  border-radius: 1rem;
  background: var(--container-color);
  position: relative;
}

.phishing-demo__close {
  position: absolute;
  right: 1rem;
  top: 1rem;
  border: none;
  background: none;
  font-size: 2rem;
  cursor: pointer;
}

.phishing-input {
  display: flex;
  gap: 10px;
  margin-top: 1.5rem;
}

.phishing-input input {
  flex: 1;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #ccc;
}

.phishing-input button {
  padding: 12px 18px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

#phishing-result {
  margin-top: 1.5rem;
  font-weight: bold;
}

/*=============== PROJECT PAGES ===============*/
.project__back {
  display: flex;
  align-items: center;
  column-gap: 0.25rem;
  color: var(--first-color);
  font-size: var(--small-font-size);
  font-weight: var(--font-medium);
  transition: 0.4s;
}

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

.project__back i {
  font-size: 1.25rem;
  transition: 0.4s;
}

.project__back:hover i {
  transform: translateX(-0.25rem);
}

/* Intro */
.project__container {
  text-align: center;
}

.project__title {
  font-size: var(--biggest-font-size);
  color: var(--first-color);
  margin-bottom: 1rem;
}

.project__intro {
  max-width: 560px;
  margin: 0 auto 1.5rem;
}

.project__tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.project__tags li {
  padding: 0.25rem 0.75rem;
  border: 1px solid var(--first-color);
  border-radius: 0.5rem;
  color: var(--first-color);
  font-size: var(--smaller-font-size);
  font-weight: var(--font-medium);
}

/* Demo area */
.project-demo {
  padding: 1rem 0;
}

.project__demo {
  min-height: 360px;
  padding: 1.5rem;
  background-color: var(--container-color);
  border: 1px solid hsla(var(--first-hue), var(--sat), var(--lig), 0.25);
  border-radius: 1.25rem;
}

.project__placeholder {
  text-align: center;
  color: var(--text-color-light);
  padding-top: 8rem;
}

/* Info cards */
.project__info {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

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

.project__card-icon {
  font-size: 1.75rem;
  color: var(--first-color);
  margin-bottom: 0.5rem;
}

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

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

.project__card-link {
  display: inline-flex;
  align-items: center;
  column-gap: 0.25rem;
  color: var(--first-color);
  font-size: var(--small-font-size);
}

.project__footer {
  background-color: var(--first-color);
  padding: 1.5rem 0 0.5rem;
  text-align: center;
}

.project__footer .footer__copy {
  margin: 0 0 1rem;
}

.light-theme .project__card,
.light-theme .project__demo {
  box-shadow: 0 2px 16px hsla(var(--second-hue), 48%, 8%, 0.1);
}

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

@media screen and (min-width: 992px) {
  .project__info {
    grid-template-columns: repeat(4, 1fr);
  }

  .project__demo {
    padding: 2rem;
  }
}

/* ================= HCR DEMO ================= */
.hcr-demo {
  display: grid;
  gap: 1.5rem;
  align-items: center;
}

.hcr-label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: "Courier New", monospace;
  font-size: var(--smaller-font-size);
  color: var(--first-color);
}

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

/* ---------- Drawing board ---------- */
.hcr-board {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.hcr-board__top {
  width: 100%;
  max-width: 320px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#hcr-canvas {
  display: block;
  width: 100%;
  max-width: 320px;
  height: auto;
  aspect-ratio: 1 / 1;
  background: #000;
  border: 2px solid var(--first-color);
  border-radius: 1rem;
  cursor: crosshair;
  touch-action: none;
  box-shadow: 0 0 24px hsla(var(--first-hue), var(--sat), var(--lig), 0.2);
}

.hcr-buttons {
  display: flex;
  gap: 0.75rem;
}

.hcr-buttons .button {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.hcr-buttons .button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ---------- Output panel ---------- */
.hcr-output {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 1.25rem;
  background-color: var(--body-color);
  border: 1px solid hsla(var(--first-hue), var(--sat), var(--lig), 0.25);
  border-radius: 1rem;
}

.hcr-cmd {
  margin-top: -0.5rem;
  font-family: "Courier New", monospace;
  font-size: var(--smaller-font-size);
  color: var(--text-color);
}

.hcr-cmd span {
  color: var(--first-color);
}

.hcr-output__result {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.hcr-output__char {
  width: 96px;
  height: 96px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font-size: 3.5rem;
  font-weight: var(--font-semibold);
  color: var(--first-color);
  background: linear-gradient(180deg,
      hsla(var(--first-hue), var(--sat), var(--lig), 0.35),
      hsla(var(--first-hue), var(--sat), var(--lig), 0.08));
  border-radius: 1rem;
}

.hcr-output__meta {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

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

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

.hcr-output__status {
  font-size: var(--smaller-font-size);
  color: var(--text-color);
}

.hcr-output__status.is-error {
  color: #f87171;
}

/* ---------- Top 3 bars ---------- */
.hcr-bar {
  display: grid;
  grid-template-columns: 1.5rem 1fr 3.5rem;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.6rem;
  font-size: var(--small-font-size);
}

.hcr-bar__char {
  text-align: center;
  font-weight: var(--font-semibold);
  color: var(--title-color);
}

.hcr-bar__track {
  height: 8px;
  border-radius: 1rem;
  background-color: var(--container-color);
  overflow: hidden;
}

.hcr-bar__fill {
  width: 0;
  height: 100%;
  border-radius: 1rem;
  background-color: var(--first-color);
  transition: width 0.6s ease;
}

.hcr-bar__pct {
  text-align: right;
  color: var(--text-color);
  font-variant-numeric: tabular-nums;
}

/* ---------- Desktop: two columns ---------- */
@media screen and (min-width: 768px) {
  .hcr-demo {
    grid-template-columns: 320px 1fr;
    gap: 2.5rem;
  }
}

/* ================= EARTHQUAKE RISK DEMO ================= */

.eq-demo {
  display: grid;
  gap: 1.5rem;
  align-items: start;
}

/* ---------- Input form ---------- */
.eq-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

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

.eq-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.eq-field__label {
  font-size: var(--smaller-font-size);
  font-weight: var(--font-medium);
  color: var(--title-color);
}

.eq-field__input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: none;
  color: var(--text-color);
  border: 2px solid var(--text-color-light);
  border-radius: 0.75rem;
  outline: none;
  font-size: var(--normal-font-size);
  transition: 0.3s;
}

.eq-field__input::placeholder {
  color: var(--text-color-light);
}

.eq-field__input:focus {
  border-color: var(--first-color);
  box-shadow: 0 0 16px hsla(var(--first-hue), var(--sat), var(--lig), 0.2);
}

.eq-form .hcr-buttons {
  margin-top: 0.5rem;
}

.eq-form .hcr-buttons .button {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

/* ---------- Output ---------- */
.eq-output__icon {
  font-size: 2.5rem;
}

/* Risk colour states (set class on #eq-icon / #eq-meter-fill from JS) */
.eq-low {
  color: #4ade80;
}

.eq-moderate {
  color: #facc15;
}

.eq-high {
  color: #f87171;
}

.eq-meter {
  display: grid;
  grid-template-columns: 1fr 3.5rem;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.6rem;
}

.eq-meter__track {
  height: 10px;
  border-radius: 1rem;
  background-color: var(--container-color);
  overflow: hidden;
}

.eq-meter__fill {
  width: 0;
  height: 100%;
  border-radius: 1rem;
  background-color: var(--first-color);
  transition: width 0.6s ease, background-color 0.4s;
}

.eq-meter__fill.eq-low {
  background-color: #4ade80;
}

.eq-meter__fill.eq-moderate {
  background-color: #facc15;
}

.eq-meter__fill.eq-high {
  background-color: #f87171;
}

.eq-meter__pct {
  text-align: right;
  font-size: var(--small-font-size);
  color: var(--text-color);
  font-variant-numeric: tabular-nums;
}

.eq-meter__scale {
  display: flex;
  justify-content: space-between;
  margin-top: 0.35rem;
  padding-right: 4.1rem;
  font-size: var(--tiny-font-size);
  color: var(--text-color-light);
}

/* ---------- Place search ---------- */
.eq-search {
  display: flex;
  gap: 0.5rem;
}

.eq-search .eq-field__input {
  flex: 1;
  min-width: 0;
}

.eq-search__btn {
  width: 46px;
  flex-shrink: 0;
  border-radius: 0.75rem;
  background-color: var(--first-color);
  color: var(--body-color);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s;
}

.eq-search__btn:hover {
  background-color: var(--first-color-alt);
}

.eq-search__btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.eq-coords {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.eq-coords .eq-field__input {
  cursor: default;
  font-family: "Courier New", monospace;
  font-size: var(--small-font-size);
}

#eq-msg.is-error {
  color: #f87171;
}

/* ---------- Map ---------- */
.eq-map-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.eq-map {
  width: 100%;
  height: 340px;
  border: 2px solid var(--first-color);
  border-radius: 1rem;
  overflow: hidden;
  isolation: isolate; /* keeps Leaflet's z-indexes below the fixed header/nav */
  background-color: var(--body-color);
  box-shadow: 0 0 24px hsla(var(--first-hue), var(--sat), var(--lig), 0.2);
}

.eq-map .leaflet-popup-content-wrapper,
.eq-map .leaflet-popup-tip {
  background-color: var(--container-color);
  color: var(--text-color);
}

.eq-output {
  grid-column: 1 / -1;
}

/* ---------- Desktop: two columns ---------- */
@media screen and (min-width: 768px) {
  .eq-demo {
    grid-template-columns: 320px 1fr;
    gap: 2.5rem;
  }

  .eq-map {
    height: 100%;
    min-height: 380px;
  }

  .eq-map-wrap {
    height: 100%;
  }
}

/* ================= RAG ASSISTANT DEMO ================= */

.rag-demo {
  display: grid;
  gap: 1.5rem;
  align-items: stretch;
}

/* ---------- Chat ---------- */
.rag-chat {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-width: 0;
}

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

.rag-chat__clear {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: none;
  color: var(--text-color-light);
  font-size: var(--smaller-font-size);
  transition: 0.3s;
}

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

.rag-chat__messages {
  height: 380px;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background-color: var(--body-color);
  border: 1px solid hsla(var(--first-hue), var(--sat), var(--lig), 0.25);
  border-radius: 1rem;
  scroll-behavior: smooth;
}

.rag-chat__messages::-webkit-scrollbar {
  width: 0.3rem;
}

.rag-chat .chatbot__suggestions {
  padding: 0;
}

.rag-chat__input {
  display: flex;
  gap: 0.5rem;
}

.rag-chat__input input {
  flex: 1;
  min-width: 0;
  padding: 0.75rem 1rem;
  background: none;
  color: var(--text-color);
  border: 2px solid var(--text-color-light);
  border-radius: 0.75rem;
  outline: none;
  font-size: var(--normal-font-size);
  transition: 0.3s;
}

.rag-chat__input input::placeholder {
  color: var(--text-color-light);
}

.rag-chat__input input:focus {
  border-color: var(--first-color);
  box-shadow: 0 0 16px hsla(var(--first-hue), var(--sat), var(--lig), 0.2);
}

.rag-chat__input button {
  width: 48px;
  flex-shrink: 0;
  border-radius: 0.75rem;
  background-color: var(--first-color);
  color: var(--body-color);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s;
}

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

.rag-chat__input button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.bot-message.is-error {
  color: #f87171;
}

/* ---------- Retrieval panel ---------- */
.rag-output {
  min-width: 0;
}

.rag-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.rag-step {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.7rem;
  border: 1px solid var(--text-color-light);
  border-radius: 0.5rem;
  color: var(--text-color-light);
  font-family: "Courier New", monospace;
  font-size: var(--smaller-font-size);
  transition: 0.3s;
}

.rag-step.is-active {
  color: var(--first-color);
  border-color: var(--first-color);
  box-shadow: 0 0 12px hsla(var(--first-hue), var(--sat), var(--lig), 0.35);
}

.rag-step.is-done {
  color: #4ade80;
  border-color: #4ade80;
}

.rag-sources {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 0.6rem;
  max-height: 300px;
  overflow-y: auto;
}

.rag-source {
  padding: 0.7rem 0.85rem;
  background-color: var(--container-color);
  border-left: 3px solid var(--first-color);
  border-radius: 0.5rem;
  animation: chatbot-msg 0.3s ease;
}

.rag-source__head {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
  font-size: var(--smaller-font-size);
}

.rag-source__title {
  color: var(--title-color);
  font-weight: var(--font-medium);
  overflow-wrap: anywhere;
}

.rag-source__score {
  flex-shrink: 0;
  color: var(--first-color);
  font-family: "Courier New", monospace;
}

.rag-source__text {
  font-size: var(--smaller-font-size);
  color: var(--text-color);
  line-height: 1.5;
  overflow-wrap: anywhere;
}

/* ---------- Desktop: two columns ---------- */
@media screen and (min-width: 768px) {
  .rag-demo {
    grid-template-columns: 1.15fr 1fr;
    gap: 2rem;
  }

  .rag-chat__messages {
    height: 420px;
  }
}

/*=============== EDUCATION ===============
   Append this to the bottom of assets/css/styles.css
   (put it ABOVE the "BREAKPOINTS" section if you want it grouped with the other sections) */

.education__container {
  padding-top: 1rem;
}

.education__timeline {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
  display: grid;
  row-gap: 1.5rem;
}

/* Vertical line */
.education__timeline::before {
  content: "";
  position: absolute;
  top: 1.25rem;
  bottom: 1.25rem;
  left: 1.25rem;
  width: 2px;
  transform: translateX(-50%);
  background: linear-gradient(180deg,
      var(--first-color),
      hsla(var(--first-hue), var(--sat), var(--lig), 0.1));
  border-radius: 1rem;
}

.education__item {
  position: relative;
  padding-left: 3.5rem;
}

/* Dot with icon */
.education__dot {
  position: absolute;
  top: 0;
  left: 0;
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  color: var(--first-color);
  background-color: var(--body-color);
  border: 2px solid var(--first-color);
  border-radius: 50%;
  box-shadow: 0 0 16px hsla(var(--first-hue), var(--sat), var(--lig), 0.35);
  z-index: 1;
  transition: 0.4s;
}

.education__item:hover .education__dot {
  background-color: var(--first-color);
  color: var(--body-color);
}

/* Card */
.education__card {
  background-color: var(--container-color);
  padding: 1.25rem 1.5rem;
  border-radius: 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  row-gap: 0.4rem;
  transition: 0.4s;
}

.education__item:hover .education__card {
  transform: translateY(-4px);
}

.education__year {
  font-family: "Courier New", monospace;
  font-size: var(--smaller-font-size);
  color: var(--first-color);
}

.education__degree {
  font-size: var(--normal-font-size);
  font-weight: var(--font-medium);
  line-height: 1.4;
}

.education__school {
  display: inline-flex;
  align-items: flex-start;
  column-gap: 0.3rem;
  font-size: var(--small-font-size);
  color: var(--text-color);
}

.education__school i {
  font-size: 1rem;
  color: var(--first-color);
  margin-top: 1px;
}

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

.education__badge {
  margin-top: 0.4rem;
  padding: 0.25rem 0.75rem;
  border: 1px solid var(--first-color);
  border-radius: 0.5rem;
  color: var(--first-color);
  font-size: var(--smaller-font-size);
  font-weight: var(--font-medium);
}

.light-theme .education__card {
  box-shadow: 0 2px 16px hsla(var(--second-hue), 48%, 8%, 0.1);
}

.light-theme .education__dot {
  box-shadow: 0 2px 12px hsla(var(--second-hue), 48%, 8%, 0.15);
}

/* Small devices */
@media screen and (max-width: 320px) {
  .education__item {
    padding-left: 3rem;
  }

  .education__card {
    padding: 1rem;
  }
}

/* Large devices */
@media screen and (min-width: 992px) {
  .education__timeline {
    row-gap: 2rem;
  }

  .education__card {
    padding: 1.5rem 2rem;
  }

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

.education__container {
  padding-top: 1rem;
}

.education__timeline {
  --edu-p: 1; /* scroll progress 0 to 1 (set by education.js) */
  position: relative;
  max-width: 640px;
  margin: 0 auto;
  display: grid;
  row-gap: 1.5rem;
}

/* Vertical line: faint track + glowing fill that grows as you scroll */
.education__timeline::before,
.education__timeline::after {
  content: "";
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  width: 2px;
  transform: translateX(-50%);
  border-radius: 1rem;
}

.education__timeline::before {
  bottom: 1.25rem;
  background-color: hsla(var(--first-hue), var(--sat), var(--lig), 0.15);
}

.education__timeline::after {
  height: calc((100% - 2.5rem) * var(--edu-p));
  background: linear-gradient(180deg,
      var(--first-color),
      hsla(var(--first-hue), var(--sat), var(--lig), 0.6));
  box-shadow: 0 0 10px hsla(var(--first-hue), var(--sat), var(--lig), 0.5);
}

.education__item {
  position: relative;
  padding-left: 3.5rem;
}

/* Dot with icon */
.education__dot {
  position: absolute;
  top: 0;
  left: 0;
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  color: var(--first-color);
  background-color: var(--body-color);
  border: 2px solid var(--first-color);
  border-radius: 50%;
  box-shadow: 0 0 16px hsla(var(--first-hue), var(--sat), var(--lig), 0.35);
  z-index: 1;
  transition: background-color 0.4s, color 0.4s;
}

.education__item:hover .education__dot {
  background-color: var(--first-color);
  color: var(--body-color);
}

/* Card */
.education__card {
  background-color: var(--container-color);
  padding: 1.25rem 1.5rem;
  border-radius: 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  row-gap: 0.4rem;
  transition: transform 0.4s, box-shadow 0.4s;
}

.education__item:hover .education__card {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px hsla(var(--first-hue), var(--sat), var(--lig), 0.15);
}

.education__year {
  font-family: "Courier New", monospace;
  font-size: var(--smaller-font-size);
  color: var(--first-color);
}

.education__degree {
  font-size: var(--normal-font-size);
  font-weight: var(--font-medium);
  line-height: 1.4;
}

.education__school {
  display: inline-flex;
  align-items: flex-start;
  column-gap: 0.3rem;
  font-size: var(--small-font-size);
  color: var(--text-color);
}

.education__school i {
  font-size: 1rem;
  color: var(--first-color);
  margin-top: 1px;
}

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

.education__badge {
  margin-top: 0.4rem;
  padding: 0.25rem 0.75rem;
  border: 1px solid var(--first-color);
  border-radius: 0.5rem;
  color: var(--first-color);
  font-size: var(--smaller-font-size);
  font-weight: var(--font-medium);
}

.light-theme .education__card {
  box-shadow: 0 2px 16px hsla(var(--second-hue), 48%, 8%, 0.1);
}

.light-theme .education__dot {
  box-shadow: 0 2px 12px hsla(var(--second-hue), 48%, 8%, 0.15);
}

@media (prefers-reduced-motion: no-preference) {

  /* Start state (before the item scrolls into view) */
  .education-js .education__item:not(.is-visible) .education__card {
    opacity: 0;
    transform: translateY(40px);
  }

  .education-js .education__item:not(.is-visible) .education__dot {
    opacity: 0;
    transform: scale(0.3);
  }

  /* Reveal transitions */
  .education-js .education__item .education__card {
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1),
      box-shadow 0.4s;
  }

  .education-js .education__item .education__dot {
    transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1),
      background-color 0.4s, color 0.4s;
  }

  /* Dot pops in slightly before its card */
  .education-js .education__item.is-visible .education__card {
    transition-delay: 0.15s, 0.15s, 0s;
  }

  /* One soft pulse when the dot appears */
  .education__item.is-visible .education__dot {
    animation: education-pulse 1.2s ease-out 0.2s 1;
  }

  /* Inner text cascades in */
  .education-js .education__item:not(.is-visible) .education__card > * {
    opacity: 0;
    transform: translateY(10px);
  }

  .education-js .education__card > * {
    transition: opacity 0.6s ease, transform 0.6s ease;
  }

  .education-js .education__item.is-visible .education__card > :nth-child(1) { transition-delay: 0.35s; }
  .education-js .education__item.is-visible .education__card > :nth-child(2) { transition-delay: 0.45s; }
  .education-js .education__item.is-visible .education__card > :nth-child(3) { transition-delay: 0.55s; }
  .education-js .education__item.is-visible .education__card > :nth-child(4) { transition-delay: 0.65s; }
  .education-js .education__item.is-visible .education__card > :nth-child(5) { transition-delay: 0.75s; }

  @keyframes education-pulse {
    0% { box-shadow: 0 0 0 0 hsla(var(--first-hue), var(--sat), var(--lig), 0.6); }
    100% { box-shadow: 0 0 0 18px hsla(var(--first-hue), var(--sat), var(--lig), 0); }
  }
}

/* Small devices */
@media screen and (max-width: 320px) {
  .education__item {
    padding-left: 3rem;
  }

  .education__card {
    padding: 1rem;
  }
}

@media screen and (min-width: 768px) {
  .education__timeline {
    max-width: 920px;
    row-gap: 2rem;
  }

  /* Line moves to the centre */
  .education__timeline::before,
  .education__timeline::after {
    left: 50%;
  }

  .education__item {
    width: 50%;
    padding-left: 0;
    padding-right: 3rem;
  }

  /* RIGHT side: even items */
  .education__item:nth-child(even) {
    margin-left: 50%;
    padding-left: 3rem;
    padding-right: 0;
  }

  /* Dots sit on the centre line */
  .education__dot {
    left: auto;
    right: -1.25rem;
  }

  .education__item:nth-child(even) .education__dot {
    right: auto;
    left: -1.25rem;
  }

  /* Short connector from dot to card */
  .education__item::after {
    content: "";
    position: absolute;
    top: calc(1.25rem - 1px);
    right: 1.25rem;
    width: 1.75rem;
    height: 2px;
    background-color: hsla(var(--first-hue), var(--sat), var(--lig), 0.5);
  }

  .education__item:nth-child(even)::after {
    right: auto;
    left: 1.25rem;
  }

  /* Left cards read right-aligned, towards the line */
  .education__item:nth-child(odd) .education__card {
    align-items: flex-end;
    text-align: right;
  }

  @media (prefers-reduced-motion: no-preference) {
    /* Slide in from the outside: left cards from the left, right cards from the right */
    .education-js .education__item:nth-child(odd):not(.is-visible) .education__card {
      transform: translateX(-70px);
    }

    .education-js .education__item:nth-child(even):not(.is-visible) .education__card {
      transform: translateX(70px);
    }
  }
}

/* Large devices */
@media screen and (min-width: 992px) {
  .education__timeline {
    row-gap: 2.5rem;
  }

  .education__card {
    padding: 1.5rem 2rem;
  }

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

/* ================= PHISHING DETECTION DEMO =================
   Append this to the bottom of assets/css/styles.css
   (reuses .hcr-* and .chatbot__suggestions classes) */

/* NOTE: styles.css already has old modal rules (.phishing-demo, .phishing-input, #phishing-result).
   They use different class names, so there is no clash. Delete them if you remove the old modal. */

.ph-demo {
  display: grid;
  gap: 1.5rem;
  align-items: start;
}

/* ---------- Input ---------- */
.ph-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  min-width: 0;
}

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

.ph-form__input {
  width: 100%;
  padding: 0.85rem 1rem;
  background: none;
  color: var(--text-color);
  border: 2px solid var(--text-color-light);
  border-radius: 0.75rem;
  outline: none;
  font-family: "Courier New", monospace;
  font-size: var(--small-font-size);
  transition: 0.3s;
}

.ph-form__input::placeholder {
  color: var(--text-color-light);
}

.ph-form__input:focus {
  border-color: var(--first-color);
  box-shadow: 0 0 16px hsla(var(--first-hue), var(--sat), var(--lig), 0.2);
}

.ph-form .hcr-buttons .button {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.ph-form .hcr-buttons .button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.ph-examples {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.ph-examples__list {
  padding: 0;
}

/* ---------- Output ---------- */
.ph-output {
  min-width: 0;
}

.ph-output__icon {
  font-size: 2.5rem;
}

.ph-ok {
  color: #4ade80;
}

.ph-warn {
  color: #facc15;
}

.ph-bad {
  color: #f87171;
}

.ph-meter {
  display: grid;
  grid-template-columns: 1fr 3.5rem;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.6rem;
}

.ph-meter__track {
  height: 10px;
  border-radius: 1rem;
  background-color: var(--container-color);
  overflow: hidden;
}

.ph-meter__fill {
  width: 0;
  height: 100%;
  border-radius: 1rem;
  background-color: var(--first-color);
  transition: width 0.6s ease, background-color 0.4s;
}

.ph-meter__fill.ph-ok {
  background-color: #4ade80;
}

.ph-meter__fill.ph-warn {
  background-color: #facc15;
}

.ph-meter__fill.ph-bad {
  background-color: #f87171;
}

.ph-meter__pct {
  text-align: right;
  font-size: var(--small-font-size);
  color: var(--text-color);
  font-variant-numeric: tabular-nums;
}

/* ---------- Check lists ---------- */
.ph-checks {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.6rem;
}

.ph-check {
  display: grid;
  grid-template-columns: 1.25rem 1fr;
  gap: 0.5rem;
  align-items: start;
  font-size: var(--small-font-size);
  animation: chatbot-msg 0.3s ease;
}

.ph-check i {
  font-size: 1.1rem;
  margin-top: 1px;
}

.ph-check__label {
  color: var(--title-color);
  font-weight: var(--font-medium);
}

.ph-check__detail {
  display: block;
  font-size: var(--smaller-font-size);
  color: var(--text-color);
  overflow-wrap: anywhere;
}

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

/* ---------- Desktop: two columns ---------- */
@media screen and (min-width: 768px) {
  .ph-demo {
    grid-template-columns: 320px 1fr;
    gap: 2.5rem;
  }
}

/* ===== Earthquake: extra styles ===== */
.eq-alerts { grid-column: 1 / -1; }

.eq-output .hcr-bar { grid-template-columns: 10rem 1fr 3.5rem; }
.eq-output .hcr-bar__char { text-align: left; font-weight: var(--font-medium); }
.hcr-bar__fill.is-up { background-color: #f87171; }
.hcr-bar__fill.is-down { background-color: #4ade80; }

.eq-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}
.eq-stat {
  background-color: var(--container-color);
  border-radius: 0.75rem;
  padding: 0.75rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.eq-stat strong { font-size: var(--h3-font-size); color: var(--title-color); }
.eq-stat span { font-size: var(--tiny-font-size); color: var(--text-color-light); }

.eq-pin {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 600; font-size: 0.8rem;
  color: #111;
  border: 2px solid #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,.5);
}
.eq-pin--low { background: #4ade80; }
.eq-pin--moderate { background: #facc15; }
.eq-pin--high { background: #f87171; }

.eq-alerts__top { display: flex; justify-content: space-between; align-items: center; }
.eq-live-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #f87171;
  box-shadow: 0 0 8px #f87171;
  animation: chatbot-pulse 1.6s ease-out infinite;
}
.eq-banner {
  padding: 0.7rem 1rem;
  border-radius: 0.75rem;
  font-size: var(--small-font-size);
}
.eq-banner.is-alert { background: hsla(0, 90%, 65%, 0.15); color: #f87171; border: 1px solid #f87171; }
.eq-banner.is-calm { background: hsla(140, 70%, 60%, 0.12); color: #4ade80; border: 1px solid #4ade80; }

.eq-alerts__list {
  display: flex; flex-direction: column; gap: 0.5rem;
  max-height: 280px; overflow-y: auto;
}
.eq-alert {
  width: 100%;
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.6rem 0.75rem;
  text-align: left;
  background-color: var(--container-color);
  color: var(--text-color);
  border-radius: 0.6rem;
  transition: 0.3s;
}
.eq-alert:hover { background-color: hsla(var(--first-hue), var(--sat), var(--lig), 0.2); }
.eq-alert__mag {
  flex-shrink: 0;
  width: 2.6rem; height: 2.6rem;
  display: grid; place-items: center;
  border-radius: 0.6rem;
  font-weight: 600;
  background: var(--body-color);
}
.eq-alert__place { display: block; font-size: var(--small-font-size); color: var(--title-color); }
.eq-alert__meta { display: block; font-size: var(--smaller-font-size); color: var(--text-color-light); }

@media screen and (max-width: 576px) {
  .eq-stats { grid-template-columns: 1fr; }
  .eq-output .hcr-bar { grid-template-columns: 7rem 1fr 3rem; }
}

@media screen and (min-width: 768px) {
  .eq-demo { align-items: stretch; }
}
.eq-map-wrap { min-width: 0; }



/* ---------- Phishing: clearer output ---------- */
.ph-info {
  color: var(--text-color-light);
}

.ph-scale {
  display: grid;
  grid-template-columns: 40fr 30fr 30fr;
  margin-top: 0.35rem;
  padding-right: 4.1rem;
  font-size: var(--tiny-font-size);
  color: var(--text-color-light);
}

.ph-help {
  padding: 1rem;
  background-color: var(--body-color);
  border: 1px solid hsla(var(--first-hue), var(--sat), var(--lig), 0.2);
  border-radius: 0.75rem;
}

.ph-help ul {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.6rem;
}

.ph-help li {
  display: grid;
  grid-template-columns: 1.25rem 1fr;
  gap: 0.5rem;
  font-size: var(--smaller-font-size);
  line-height: 1.5;
}

.ph-help i {
  font-size: 1.1rem;
  color: var(--first-color);
}

.ph-help b {
  color: var(--title-color);
  font-weight: var(--font-medium);
}


/* ================= WORK IN PROGRESS PAGE ================= */
.wip-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 1rem;
  padding: 0.3rem 0.85rem;
  color: #facc15;
  border: 1px solid #facc15;
  border-radius: 2rem;
  background-color: rgba(250, 204, 21, 0.1);
  font-size: var(--smaller-font-size);
  font-weight: var(--font-medium);
}

.wip-badge i {
  font-size: 1rem;
  animation: wip-spin 3s linear infinite;
}

@keyframes wip-spin {
  to { transform: rotate(360deg); }
}

.wip {
  display: grid;
  gap: 1.5rem;
  align-items: start;
}

.wip-main {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  min-width: 0;
}

/* ---------- Overall progress ---------- */
.wip-progress {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

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

.wip-progress__pct {
  color: var(--title-color);
  font-size: var(--h3-font-size);
}

.wip-progress__track {
  height: 12px;
  border-radius: 1rem;
  background-color: var(--body-color);
  overflow: hidden;
}

.wip-progress__fill {
  height: 100%;
  border-radius: 1rem;
  background: linear-gradient(90deg,
      var(--first-color),
      hsl(var(--first-hue), 70%, 82%));
  box-shadow: 0 0 12px hsla(var(--first-hue), var(--sat), var(--lig), 0.5);
}

/* ---------- Roadmap ---------- */
.wip-steps {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* vertical line behind the icons */
.wip-steps::before {
  content: "";
  position: absolute;
  top: 1rem;
  bottom: 1rem;
  left: 1.1rem;
  width: 2px;
  background-color: hsla(var(--first-hue), var(--sat), var(--lig), 0.2);
}

.wip-step {
  position: relative;
  display: grid;
  grid-template-columns: 2.2rem 1fr auto;
  align-items: start;
  gap: 0.9rem;
}

.wip-step__icon {
  position: relative;
  z-index: 1;
  width: 2.2rem;
  height: 2.2rem;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  color: var(--text-color-light);
  background-color: var(--container-color);
  border: 2px solid var(--text-color-light);
  border-radius: 50%;
}

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

.wip-step__text {
  margin-top: 0.15rem;
  font-size: var(--small-font-size);
  color: var(--text-color-light);
}

.wip-step__status {
  padding: 0.2rem 0.6rem;
  border: 1px solid var(--text-color-light);
  border-radius: 0.5rem;
  color: var(--text-color-light);
  font-size: var(--tiny-font-size);
  font-weight: var(--font-medium);
  white-space: nowrap;
}

/* done */
.wip-step.is-done .wip-step__icon {
  color: var(--body-color);
  background-color: #4ade80;
  border-color: #4ade80;
}

.wip-step.is-done .wip-step__status {
  color: #4ade80;
  border-color: #4ade80;
}

/* in progress */
.wip-step.is-active .wip-step__icon {
  color: var(--first-color);
  border-color: var(--first-color);
  box-shadow: 0 0 14px hsla(var(--first-hue), var(--sat), var(--lig), 0.5);
  animation: wip-pulse 2s ease-in-out infinite;
}

.wip-step.is-active .wip-step__status {
  color: var(--first-color);
  border-color: var(--first-color);
}

@keyframes wip-pulse {
  0%, 100% { box-shadow: 0 0 6px hsla(var(--first-hue), var(--sat), var(--lig), 0.3); }
  50% { box-shadow: 0 0 18px hsla(var(--first-hue), var(--sat), var(--lig), 0.7); }
}

/* ---------- Locked demo preview ---------- */
.wip-preview {
  min-width: 0;
}

.wip-preview__icon {
  font-size: 2.5rem;
  color: var(--text-color-light);
}

.wip-fake {
  display: flex;
  gap: 0.5rem;
}

.wip-fake input {
  flex: 1;
  min-width: 0;
  padding: 0.75rem 1rem;
  background: none;
  color: var(--text-color);
  border: 2px dashed var(--text-color-light);
  border-radius: 0.75rem;
  font-size: var(--small-font-size);
}

.wip-fake input::placeholder {
  color: var(--text-color-light);
}

.wip-fake input:disabled,
.wip-fake .button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.wip-plan {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 0.6rem;
}

.wip-plan li {
  display: grid;
  grid-template-columns: 1.25rem 1fr;
  gap: 0.5rem;
  font-size: var(--small-font-size);
}

.wip-plan i {
  font-size: 1.1rem;
  color: var(--first-color);
}

.light-theme .wip-badge {
  color: #a16207;
  border-color: #a16207;
}

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

  .wip-step__status {
    grid-column: 2;
    justify-self: start;
  }
}

@media screen and (min-width: 768px) {
  .wip {
    grid-template-columns: 1.1fr 1fr;
    gap: 2.5rem;
  }
}