/*===============
  global styles
===============*/

* {
    padding: 0;
    margin: 0;
    border: 0;
    outline: 0;
    background-color: inherit;
    color: inherit;
    font-family: inherit;
    font-size: inherit;
    box-shadow: none;
    box-sizing: border-box;
  }

  html {
    scroll-behavior: smooth;
  }

  body {
    font-family: "DM Sans", sans-serif;
    line-height: 1.5;
    color: var(--clr-fg);
    background-color: var(--clr-bg);
  }

  /* Theme: Sage & Clay (Earthy) */
  .theme-sage-clay {
    --clr-bg: #f7f5f2;
    --clr-bg-alt: #ffffff;
    --clr-fg: #4a4a4a;
    --clr-fg-alt: #2d2d2d;
    --clr-primary: #8b9e8a;
    --clr-accent: #a68a7b;
    --clr-muted: #b5b0a8;
    --clr-tag-bg: #f0f4f3;
    --clr-tag-text: #7a8579;
    --shadow: rgba(139, 158, 138, 0.08) 0px 4px 16px, rgba(0, 0, 0, 0.04) 0px 2px 8px;
    --shadow-hover: rgba(139, 158, 138, 0.12) 0px 8px 24px, rgba(0, 0, 0, 0.06) 0px 4px 12px;
  }

  /* Theme: Ocean & Sand */
  .theme-ocean-sand {
    --clr-bg: #f8f9fa;
    --clr-bg-alt: #ffffff;
    --clr-fg: #4a4a4a;
    --clr-fg-alt: #2d2d2d;
    --clr-primary: #6b9fc9;
    --clr-accent: #c4a57b;
    --clr-muted: #a8b8c4;
    --clr-tag-bg: #f0f4f7;
    --clr-tag-text: #6a8ba6;
    --shadow: rgba(107, 159, 201, 0.08) 0px 4px 16px, rgba(0, 0, 0, 0.04) 0px 2px 8px;
    --shadow-hover: rgba(107, 159, 201, 0.12) 0px 8px 24px, rgba(0, 0, 0, 0.06) 0px 4px 12px;
  }

  /* Theme: Lavender & Slate */
  .theme-lavender-slate {
    --clr-bg: #f7f6fa;
    --clr-bg-alt: #ffffff;
    --clr-fg: #4a4a4a;
    --clr-fg-alt: #2d2d2d;
    --clr-primary: #9b8fc9;
    --clr-accent: #8b9aac;
    --clr-muted: #b5b0c4;
    --clr-tag-bg: #f2f1f7;
    --clr-tag-text: #8579a6;
    --shadow: rgba(155, 143, 201, 0.08) 0px 4px 16px, rgba(0, 0, 0, 0.04) 0px 2px 8px;
    --shadow-hover: rgba(155, 143, 201, 0.12) 0px 8px 24px, rgba(0, 0, 0, 0.06) 0px 4px 12px;
  }

  /* Theme: Forest & Stone */
  .theme-forest-stone {
    --clr-bg: #f5f6f4;
    --clr-bg-alt: #ffffff;
    --clr-fg: #4a4a4a;
    --clr-fg-alt: #2d2d2d;
    --clr-primary: #6b8e7a;
    --clr-accent: #9c8f7e;
    --clr-muted: #a8b5ad;
    --clr-tag-bg: #f0f3f1;
    --clr-tag-text: #6a7d6f;
    --shadow: rgba(107, 142, 122, 0.08) 0px 4px 16px, rgba(0, 0, 0, 0.04) 0px 2px 8px;
    --shadow-hover: rgba(107, 142, 122, 0.12) 0px 8px 24px, rgba(0, 0, 0, 0.06) 0px 4px 12px;
  }

  /* Theme: Sky & Cream */
  .theme-sky-cream {
    --clr-bg: #f9fafb;
    --clr-bg-alt: #ffffff;
    --clr-fg: #4a4a4a;
    --clr-fg-alt: #2d2d2d;
    --clr-primary: #7ba3c4;
    --clr-accent: #b8a895;
    --clr-muted: #a8b8c4;
    --clr-tag-bg: #f2f5f8;
    --clr-tag-text: #6a8ba6;
    --shadow: rgba(123, 163, 196, 0.08) 0px 4px 16px, rgba(0, 0, 0, 0.04) 0px 2px 8px;
    --shadow-hover: rgba(123, 163, 196, 0.12) 0px 8px 24px, rgba(0, 0, 0, 0.06) 0px 4px 12px;
  }

  /* Theme: Dusk (Dark) */
  .theme-dusk {
    --clr-bg: #2d3648;
    --clr-bg-alt: #363d4f;
    --clr-fg: #dfe4ea;
    --clr-fg-alt: #f1f3f5;
    --clr-primary: #8b9fc9;
    --clr-accent: #b8a895;
    --clr-muted: #7a8a9f;
    --clr-tag-bg: #3d4557;
    --clr-tag-text: #9aa5b5;
    --shadow: rgba(0, 0, 0, 0.2) 0px 4px 16px, rgba(0, 0, 0, 0.12) 0px 2px 8px;
    --shadow-hover: rgba(0, 0, 0, 0.3) 0px 8px 24px, rgba(0, 0, 0, 0.18) 0px 4px 12px;
  }

  /* Dark mode - Midnight Ocean */
  .dark {
    --clr-bg: #1a2332;
    --clr-bg-alt: #243142;
    --clr-fg: #d4dce6;
    --clr-fg-alt: #e8f0f7;
    --clr-primary: #7ba8d4;
    --clr-accent: #d4a574;
    --clr-muted: #6b8199;
    --clr-tag-bg: #2d3a4d;
    --clr-tag-text: #8fa8c4;
    --shadow: rgba(0, 0, 0, 0.3) 0px 4px 16px, rgba(0, 0, 0, 0.2) 0px 2px 8px;
    --shadow-hover: rgba(0, 0, 0, 0.4) 0px 8px 24px, rgba(0, 0, 0, 0.3) 0px 4px 12px;
  }

  ::-moz-selection {
    background: var(--clr-primary);
    color: var(--clr-bg);
  }

  ::-webkit-selection,
  ::selection {
    background: var(--clr-primary);
    color: var(--clr-bg);
  }

  h1,
  h2,
  h3,
  h4 {
    line-height: 1.3;
    color: var(--clr-fg-alt);
  }

  h1 {
    font-size: 3.5rem;
    font-weight: 500;
    letter-spacing: -0.015em;
  }

  h2 {
    font-size: 2rem;
    font-weight: 500;
  }

  h3 {
    font-size: 1.5rem;
    font-weight: 500;
  }

  h4 {
    font-size: 1.2rem;
    padding: 0.5rem;
    font-weight: 500;
  }

  h5 {
    font-size: 0.875rem;
    padding: 0.45rem;
    font-weight: 400;
    color: var(--clr-fg);
  }

  ul {
    list-style-type: none;
  }

  a {
    text-decoration: none;
  }

  button {
    cursor: pointer;
  }

  @media (max-width: 900px) {
    h1 {
      font-size: 2.6rem;
    }
  }

  /*===================
    buttons and links
  ===================*/

  .link {
    color: var(--clr-primary);
    padding: 0 0 0.3em 0;
    position: relative;
  }

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

  .link::before {
    content: "";
    display: inline-block;
    width: 0%;
    height: 0.2em;
    position: absolute;
    bottom: 0;
    background-color: var(--clr-primary);
    transition: width 0.2s ease-in;
  }

  .link:hover::before,
  .link:focus::before {
    width: 100%;
  }

  .link--nav {
    color: var(--clr-fg);
    text-transform: lowercase;
    font-weight: 500;
  }

  .link--icon {
    color: var(--clr-fg);
    font-size: 1.2rem;
  }

  .btn {
    display: block;
    padding: 0.8em 1.4em;
    font-weight: 500;
    font-size: 0.875rem;
    text-transform: lowercase;
    transition: transform 0.2s ease-in-out;
  }

  .btn--outline {
    color: var(--clr-primary);
    border: 2px solid var(--clr-primary);
    position: relative;
    overflow: hidden;
    z-index: 1;
  }

  .btn--outline:focus,
  .btn--outline:hover {
    color: var(--clr-bg);
  }

  .btn--outline:before {
    content: "";
    position: absolute;
    background-color: var(--clr-primary);
    right: 100%;
    bottom: 0;
    left: 0;
    top: 0;
    z-index: -1;
    transition: right 0.2s ease-in-out;
  }

  .btn--outline:hover::before,
  .btn--outline:focus::before {
    right: 0;
  }

  .btn--plain {
    text-transform: initial;
    background-color: var(--clr-bg-alt);
    box-shadow: var(--shadow);
    border: 0;
    border-radius: 8px;
  }

  .btn--plain:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
  }

  .btn--icon {
    padding: 0;
    font-size: 1.2rem;
  }

  .btn--icon:hover,
  .btn--icon:focus {
    color: var(--clr-primary);
  }

  .btn--icon:active {
    transform: translateY(-5px);
  }

  .dotted-link {
    color: inherit;
    /* text-decoration: none; */
    text-decoration-style: dotted;
    text-decoration-thickness: 2px;
    text-decoration-line: underline;
    text-underline-offset: 3px;
    /* border-bottom: 1px dotted currentColor; */
    /* padding-bottom: 1px; */
  }

  .dotted-link:hover {
    /* border-bottom-style: solid; */
    text-decoration-style: solid;
  }

  /*========
    layout
  ========*/

  .center {
    display: flex;
    align-items: center;
  }

  .header {
    height: 8em;
    max-width: 1100px;
    width: 95%;
    margin: 0 auto;
    justify-content: space-between;
  }

  main {
    max-width: 1100px;
    width: 95%;
    margin: 0 auto;
  }

  .section {
    /* margin-top: 2em; */
  }

  .section__title {
    text-align: center;
    margin-bottom: 2em;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 500;
    font-size: 1.8rem;
  }

  .section__header {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-bottom: 2em;
  }

  .section__header .section__title {
    margin-bottom: 0;
  }

  .view-toggle {
    position: absolute;
    left: 0;
    display: flex;
    gap: 0.5rem;
    background: var(--clr-bg-alt);
    padding: 0.4rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
  }

  .view-toggle__btn {
    padding: 0.5rem 0.7rem;
    border-radius: 6px;
    color: var(--clr-muted);
    background: transparent;
    transition: all 0.2s ease;
    cursor: pointer;
    font-size: 0.875rem;
  }

  .view-toggle__btn:hover {
    color: var(--clr-primary);
  }

  .view-toggle__btn--active {
    background: var(--clr-primary);
    color: var(--clr-bg);
  }

  .view-toggle__btn--active:hover {
    color: var(--clr-bg);
  }

  .nav__list {
    margin-right: 1.5em;
    display: flex;
  }

  .nav__list-item {
    margin-left: 1.5em;
  }

  .nav__hamburger {
    display: none;
    width: 1em;
  }

  .about {
    flex-direction: column;
    margin-top: 2em;
    padding: 3em 2em;
    background: var(--clr-bg-alt);
    border-radius: 16px;
    box-shadow: var(--shadow);

    font-family: "Nunito", sans-serif;
  }

  .about__name {
    color: var(--clr-primary);
    font-weight: 500;
  }

  .about__role {
    margin-top: 1.2em;
    color: var(--clr-accent);
    font-weight: 500;
  }

  .about__desc {
    font-size: 1.1rem;
    max-width: 700px;
    line-height: 1.8;
    color: var(--clr-fg);
    text-align: justify;
  }

  .about__desc,
  .about__contact {
    margin-top: 2.4em;
  }

  .about .link--icon {
    margin-right: 0.8em;
    font-size: 1.4rem;
    transition: transform 0.2s ease;
  }

  .about .link--icon:hover {
    transform: scale(1.15);
  }

  .about .btn--outline {
    margin-right: 1em;
  }

  .about__contact {
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 1em;
  }

  .about__dev-links {
    gap: 0.9em;
    padding-left: 0.9em;
    border-left: 1px solid var(--clr-muted);
  }

  .about__dev-link {
    color: var(--clr-fg);
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0.7;
  }

  .about__dev-link:hover {
    opacity: 1;
  }

  /* The links wrap onto their own line here, where a leading divider looks stray. */
  @media (max-width: 480px) {
    .about__dev-links {
      padding-left: 0;
      border-left: 0;
    }
  }

  .projects__grid {
    max-width: 1100px;
    margin: 0 auto;
    /* margin-top: 5rem; */
    display: grid;
    /* grid-template-columns: repeat(auto-fit, minmax(18em, 1fr)); */
    grid-template-columns: repeat(auto-fill, minmax(18em, 1fr));
    justify-content: center;
    grid-gap: 1.5em;
    align-items: stretch;
    gap: 2rem;
  }

  .project {
    padding: 1.5em;
    margin: 0 auto;
    text-align: center;
    background: var(--clr-bg-alt);
    box-shadow: var(--shadow);
    cursor: pointer;
    border-radius: 12px;
    border: 1px solid transparent;
    height: 100%;
    width: 100%;
    perspective: 1000px;
    transition: box-shadow 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
  }

  .project__inner {
    display: grid;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
  }

  .project.is-expanded .project__inner {
    transform: rotateY(180deg);
  }

  .project a {
    cursor: pointer;
  }

  .project:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: var(--clr-primary);
  }

  .project__content,
  .project__alt-content {
    grid-area: 1 / 1;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
  }

  .project__alt-content {
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .project__content {
    display: flex;
    flex-direction: column;
    height: 100%;
  }

  .project__content figure {
    height: 180px;              /* same height for all cards */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }

  .project__content img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
  }

  .project__content a.link--icon {
    margin-top: auto;
  }

  .project__description {
    margin-top: 1em;
  }

  .project__stack {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 0.8em 0 1em;
    gap: 0.4rem;
  }

  .project__stack-item {
    padding: 0.4rem 0.8rem;
    font-weight: 400;
    font-size: 0.75rem;
    color: var(--clr-bg);
    background: var(--clr-accent);
    border-radius: 6px;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 2px 4px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }

  .project__stack-item:hover {
    transform: translateY(-2px);
    box-shadow: rgba(0, 0, 0, 0.15) 0px 4px 8px;
  }

  .project .link--icon {
    margin-left: 0.5em;
    align-self: center;
  }

  .project__alt-content ul {
    list-style: disc;
    padding-left: 1.2rem;
    overflow-wrap: anywhere;
  }

  .project__alt-content li {
    text-align: left;
    margin-bottom: 0.4rem;
  }


  .project__links {
    display: flex;
    justify-content: center; /* or flex-start */
    gap: 0.75rem;
    margin-top: auto; /* pushes links to bottom if needed */
  }

  /* Categories View */
  .projects__categories {
    max-width: 1100px;
    margin: 0 auto;
  }

  .projects__categories--hidden {
    display: none;
  }

  .projects__grid--hidden {
    display: none;
  }

  .category {
    margin-bottom: 1.5rem;
    background: var(--clr-bg-alt);
    border-radius: 12px;
    box-shadow: var(--shadow);
    overflow: hidden;
  }

  .category__header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 1.25rem;
    cursor: pointer;
    transition: background 0.2s ease;
    user-select: none;
  }

  .category__header:hover {
    background: var(--clr-tag-bg);
  }

  .category__toggle {
    font-size: 0.875rem;
    color: var(--clr-muted);
    transition: transform 0.3s ease;
  }

  .category--expanded .category__toggle {
    transform: rotate(90deg);
  }

  .category__icon {
    font-size: 1.2rem;
    color: var(--clr-primary);
  }

  .category__title {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--clr-fg-alt);
    text-transform: capitalize;
  }

  .category__count {
    font-size: 0.75rem;
    color: var(--clr-muted);
    margin-left: auto;
  }

  .category__list {
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
  }

  .category--expanded .category__list {
    display: flex;
    max-height: 2000px;
    padding: 0 0.5rem 0.5rem 0.5rem;
  }

  .category__item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 1rem;
    background: var(--clr-bg);
    border-radius: 8px;
    transition: all 0.2s ease;
    cursor: pointer;
    border: 1px solid transparent;
    margin-top: 0.5rem;
  }

  .category__item:hover {
    transform: translateX(4px);
    background: var(--clr-tag-bg);
    border-color: var(--clr-primary);
  }

  .category__item-image {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: contain;
    background: var(--clr-bg);
    padding: 4px;
    flex-shrink: 0;
  }

  .category__item-content {
    flex: 1;
    min-width: 0;
  }

  .category__item-title {
    font-size: 1rem;
    font-weight: 500;
    color: var(--clr-fg-alt);
    margin-bottom: 0.2rem;
  }

  .category__item-tagline {
    font-size: 0.875rem;
    color: var(--clr-fg);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .category__item-links {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
  }

  .category__item-links .link--icon {
    font-size: 1rem;
    color: var(--clr-muted);
    transition: color 0.2s ease;
  }

  .category__item-links .link--icon:hover {
    color: var(--clr-primary);
  }

  .category__item-description {
    display: none;
    width: 100%;
    padding: 0.75rem 0 0 0;
    margin-top: 0.75rem;
    border-top: 1px solid var(--clr-tag-bg);
  }

  .category__item-description ul {
    list-style: disc;
    padding-left: 1.2rem;
    margin: 0;
  }

  .category__item-description li {
    text-align: left;
    margin-bottom: 0.4rem;
    font-size: 0.875rem;
    color: var(--clr-fg);
  }

  .category__item-description p {
    text-align: left;
    font-size: 0.875rem;
    color: var(--clr-fg);
  }

  .category__item--expanded {
    flex-wrap: wrap;
  }

  .category__item--expanded .category__item-description {
    display: block;
  }

  .skills__list {
    max-width: 900px;
    width: 95%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
  }

  .skills__category {
    background: var(--clr-bg-alt);
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid transparent;
  }

  .skills__category:hover {
    box-shadow: var(--shadow-hover);
    border-color: var(--clr-primary);
    transform: translateY(-4px);
  }

  .skills__category-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--clr-tag-bg);
  }

  .skills__category-icon {
    font-size: 1.1rem;
    color: var(--clr-primary);
  }

  .skills__category-title {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--clr-fg-alt);
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }

  .skills__category-items {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .skills__item {
    padding: 0.4rem 0.85rem;
    background: var(--clr-tag-bg);
    border-radius: 6px;
    color: var(--clr-fg);
    font-size: 0.875rem;
    font-weight: 400;
    transition: all 0.2s ease;
  }

  .skills__item:hover {
    background: var(--clr-primary);
    color: var(--clr-bg);
    transform: translateY(-2px);
  }

  .contact {
    flex-direction: column;
  }

  .footer {
    padding: 3em 0;
    margin-top: 3em;
    text-align: center;

    display: flex;
    flex-direction: column;
    align-items: center; /* optional: center horizontally */
    gap: 0.5rem;         /* spacing between links */
  }

  .footer__link {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--clr-fg);
  }

  .scroll-top {
    display: none;
    position: fixed;
    bottom: 1em;
    right: 2em;
    background-color: transparent;
    font-size: 1.8rem;
    transition: transform 0.2s ease-in-out;
  }


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

  .project__tag {
    padding: 0.25rem 0.55rem;
    font-size: 0.7rem;
    border-radius: 6px;
    background: transparent;
    color: var(--clr-tag-text);
    border: 1px solid var(--clr-tag-text);
    white-space: nowrap;
    opacity: 0.8;
    transition: all 0.2s ease;
    cursor: pointer;
  }

  .project__tag:hover {
    opacity: 1;
    border-color: var(--clr-muted);
    color: var(--clr-muted);
    transform: translateY(-1px);
    box-shadow: rgba(0, 0, 0, 0.1) 0px 2px 6px;
    cursor: pointer;
  }

  .active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    position: fixed;
    top: 2em;
    left: 0;
    right: 0;
    background: var(--clr-bg);
    padding: 0.5rem;
    box-shadow: var(--shadow);
    z-index: 10;
  }

  .active-filters:empty {
    display: none;
  }

  .active-filter {
    background: var(--clr-primary);
    color: var(--clr-bg);
    padding: 0.5rem 0.9rem;
    border-radius: 8px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 2px 4px;
  }

  .active-filter:hover {
    transform: translateY(-2px);
    box-shadow: rgba(0, 0, 0, 0.15) 0px 4px 8px;
  }

  .active-filter span {
    margin-left: 0.5rem;
    font-weight: bold;
  }

  .experience__card {
    background: var(--clr-bg-alt);
    box-shadow: var(--shadow);
    padding: 2em;
    margin-bottom: 2em;
    border-radius: 12px;
    border: 1px solid transparent;
    transition: all 0.3s ease;
  }

  .experience__card:hover {
    box-shadow: var(--shadow-hover);
    border-color: var(--clr-primary);
  }

  .experience__header {
    display: flex;
    align-items: center;
    gap: 1em;
  }

  .experience__logo img {
    width: 72px;
    height: 72px;
    object-fit: contain;
  }

  .experience__meta {
    display: ruby;
    flex-direction: column;
  }

  .experience__role {
    font-size: 1rem;
    color: var(--clr-fg-alt);
  }

  .experience__date {
    font-size: 0.875rem;
    color: var(--clr-fg);
  }

  .experience__content {
    margin-top: 1em;
  }

  .experience__content ul {
    list-style: disc;
    margin: 0.8em 0;
    padding-left: 1.2em;
  }

  .experience__content li {
    margin-bottom: 0.4em;
  }

  .experience__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.8rem;
  }

  .experience__tag {
    background: transparent;
    color: var(--clr-tag-text);
    border: 1px solid var(--clr-tag-text);
    padding: 0.25rem 0.55rem;
    border-radius: 6px;
    font-size: 0.7rem;
    text-transform: lowercase;
    opacity: 0.8;
    transition: all 0.2s ease;
  }

  .experience__tag:hover {
    transform: translateY(-1px);
    box-shadow: rgba(0, 0, 0, 0.1) 0px 2px 6px;
    cursor: pointer;
  }

  .chat-launch-button {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 29;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin: 0;
    background: var(--clr-bg-alt);
    border-radius: 999px;
    box-shadow: var(--shadow-hover);
  }

  .chat-launch-button[hidden] {
    display: none;
  }

  .chat-widget {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 30;
    width: min(390px, calc(100vw - 2.5rem));
    height: min(610px, calc(100vh - 2.5rem));
    overflow: hidden;
    background: var(--clr-bg-alt);
    border: 2px solid var(--clr-primary);
    border-radius: 14px;
    box-shadow: rgba(45, 63, 76, 0.28) 0 24px 64px, rgba(107, 159, 201, 0.2) 0 0 0 4px;
  }

  .dark .chat-widget {
    box-shadow: rgba(0, 0, 0, 0.6) 0 24px 64px, rgba(123, 168, 212, 0.22) 0 0 0 4px;
  }

  .chat-widget[hidden] {
    display: none;
  }

  .chat-widget iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    background: var(--clr-bg-alt);
  }

  .scroll-top {
    bottom: 5.25rem;
  }


  @media (max-width: 600px) {
    .header {
      height: 6em;
    }

    h1 {
      font-size: 2.5rem;
    }

    .section {
      margin-top: 2em;
    }

    .section__title {
      font-size: 1.5rem;
      margin-bottom: 1.5em;
    }

    .nav__list {
      flex-direction: column;
      padding: 4em 0;
      position: absolute;
      right: 0;
      left: 0;
      top: 5em;
      background-color: var(--clr-bg);
      width: 0;
      overflow: hidden;
      transition: width 0.2s ease-in-out;
    }

    .display-nav-list {
      width: 100%;
    }

    .nav__list-item {
      margin: 0.5em 0;
    }

    .nav__hamburger {
      display: flex;
      margin-left: 0.8em;
    }

    .about {
      align-items: flex-start;
      margin-top: 1.5em;
      padding: 2em 1.5em;
    }

    .about__desc {
      font-size: 1rem;
    }

    .chat-launch-button {
      right: 1rem;
      bottom: 1rem;
    }

    .chat-widget {
      display: none !important;
    }

    .active-filters {
      top: 6em;
      padding: 0.75rem;
    }

    .experience__logo img {
      width: 56px;
      height: 56px;
    }

    .projects__grid {
      grid-gap: 1.2em;
    }

    .project {
      padding: 1.2em;

      display: flex;
      flex-direction: column;
      height: 100%;
      min-height: 520px; /* adjust once visually */
    }

    .footer {
      padding: 2em;
      margin-top: 2em;
    }

    .scroll-container {
      display: none;
    }

    .section__header {
      flex-direction: column;
      gap: 1rem;
    }

    .view-toggle {
      position: static;
    }

    .category__item {
      padding: 0.85rem 1rem;
    }

    .category__item-image {
      width: 40px;
      height: 40px;
    }

    .category__item-title {
      font-size: 0.875rem;
    }

    .category__item-tagline {
      font-size: 0.75rem;
    }

    .skills__list {
      grid-template-columns: 1fr;
      gap: 1rem;
    }

    .skills__category {
      padding: 1rem;
    }

    .skills__category-title {
      font-size: 0.75rem;
    }

    .skills__item {
      font-size: 0.75rem;
      padding: 0.35rem 0.7rem;
    }
  }
