@import url('https://fonts.googleapis.com/css2?family=Atkinson+Hyperlegible:ital,wght@0,400;0,700;1,400;1,700&display=swap');@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&display=swap');




/* global styles */
/* http://meyerweb.com/eric/tools/css/reset/
   v2.0 | 20110126
   License: none (public domain)
*/
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1;
}
ol, ul {
  list-style: none;
}
blockquote, q {
  quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
  content: '';
  content: none;
}
table {
  border-collapse: collapse;
  border-spacing: 0;
}
body {
  font-family: "Atkinson Hyperlegible", sans-serif;
  font-weight: 400;
}
.h1 {
  font-family: "DM Sans", sans-serif;
  font-size: 1.5rem;
  margin-bottom: 10px;
  font-weight: 700;
}
.h2 {
  font-family: "DM Sans", sans-serif;
  font-size: 1.25rem;
  margin-bottom: 10px;
  font-weight: 700;
}
p{
  font-family: "Atkinson Hyperlegible", sans-serif;
  line-height: 1.25;
}
/*.layout and view styling */
/* Theme Variables */
:root {
  /* Light mode colors (default) */
  --bg-color: #ffffff;
  --text-color: #000000;
  --text-secondary: #333333;
  --border-color: #e0e0e0;
  --link-border-color: #cccccc;
  --bg-hover-color: #f5f5f5;
  --footer-bg-color: #ededed;
  --shadow-color: rgba(0, 0, 0, 0.1);
  --card-bg-color: #ffffff;
  --input-bg-color: #ffffff;
  --button-bg-color: #333333;
  --button-text-color: #ffffff;
  --button-hover-bg-color: #555555;
}
/* Dark mode colors */
[data-theme="dark"] {
  --bg-color: #333333;
  --text-color: #fafafa;
  --text-secondary: #e0e0e0;
  --border-color: #555555;
  --link-border-color: #666666;
  --bg-hover-color: #444444;
  --footer-bg-color: #2a2a2a;
  --shadow-color: rgba(0, 0, 0, 0.3);
  --card-bg-color: #404040;
  --input-bg-color: #404040;
  --button-bg-color: #fafafa;
  --button-text-color: #333333;
  --button-hover-bg-color: #e0e0e0;
}
/* Apply theme colors to body */
body {
  background-color: var(--bg-color);
  color: var(--text-color);
  transition: background-color 0.3s ease, color 0.3s ease;
}
/* Dark mode logo inversion */
[data-theme="dark"] nav a > img,
[data-theme="dark"] footer section a > img,
[data-theme="dark"] footer ul li img {
  filter: invert(1) brightness(1.1);
}
nav{
  --hor-padding: 1em;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  width: 100%;
  /* padding-left:; */
  font-size: 1.1em;
  margin-top: 1.2em;

  a > img{
      width: 7em;
      transition: filter 0.3s ease;
  }

  ul{
      list-style: none;
      display: flex;
      flex-direction: row;
      align-items: center;
      gap: 2em;
  }

  button{
      margin-right: var(--hor-padding);
  }
}
a{
  text-decoration: none;
  color: var(--text-color);
}
html{
  overflow-x: hidden;
}
main {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}
body {
  width: 100%;
  padding: 0 clamp(1em, 3vw, 2em);

  box-sizing: border-box;

  margin: 0;
  overflow-x: hidden;

  display: flex;
  flex-direction: column;
}
footer {
  display: flex;
  flex-direction: column;
  padding-bottom: 2rem;
  
  /* New styles to add: */
  margin-left: calc(-1 * clamp(1em, 3vw, 2em));
  margin-right: calc(-1 * clamp(1em, 3vw, 2em));
  padding-left: clamp(1em, 3vw, 2em);
  padding-right: clamp(1em, 3vw, 2em);
  margin-top: 2rem;
  background-color: var(--footer-bg-color);
  width: auto; /* Override your existing width: 1 which appears to be incomplete */

  >div:nth-of-type(1){

  display: flex;
  flex-direction: row;
  justify-content: space-between;

  margin-top: 3rem;

  width: 100%;
  height: 400px;
  position: relative;

    section{
      display: flex;
      flex-direction: column;
      height: 70%;
      justify-content: space-around;
      width: 35%;

      a > img {
        transition: filter 0.3s ease;
      }

      p{
        width: 70%;
      }
    }

    > img {
      width: 30%;
      aspect-ratio: 4 / 3;
      object-fit: cover;
      border-radius: .5rem;
    }

    > div:nth-of-type(1) {
      display: flex;
      flex-direction: row;
      justify-content: space-around;
      width: 25%;

      ul{
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        gap: 1.2rem;

        font-size: 1rem;
      }

    }
  }

  hr{
    margin-top: 4rem;
    width: 100%;
    color: #fafafa73;
  }
  >div:nth-of-type(2){
    width: 100%;
    height: auto;

    display: flex;
    justify-content: space-between;
    align-items: center;

    ul{
      list-style: none;
      display: flex;
      gap: 2rem;

      li img{
        width: 2.1em;
        transition: filter 0.3s ease;
      }
    }
  }
}
/* Mobile Styles (320px - 768px) */
@media (max-width: 768px) {
  nav {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
    margin-top: 0.8rem;
    
    a > img {
      width: 5em;
    }
    
    ul {
      justify-content: center;
      gap: 1.5em;
      font-size: 1rem;
    }
  }

  body {
    padding: 0 1em;
  }

  main {
    gap: 2rem;
  }

  footer {
    margin-left: -1em;
    margin-right: -1em;
    padding-left: 1em;
    padding-right: 1em;

    > div:nth-of-type(1) {
      flex-direction: column;
      height: auto;
      gap: 2rem;
      text-align: center;

      section {
        width: 100%;
        height: auto;
        gap: 1rem;

        p {
          width: 100%;
        }
            .contact-link{
          align-self: center;
        }
      }

      > img {
        width: 60%;
        align-self: center;
      }

      > div:nth-of-type(1) {
        width: 100%;
        flex-direction: column;
        gap: 2rem;

        ul {
          gap: 0.8rem;
          font-size: 0.9rem;
        }
      }
    }

    hr {
      margin-top: 2rem;
    }

    > div:nth-of-type(2) {
      flex-direction: column;
      gap: 1rem;
      text-align: center;

      ul {
        gap: 1rem;
        justify-content: center;

        li img {
          width: 2.5em;
        }
      }
    }
  }
}
/* Tablet Styles (768px - 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
  nav {
    a > img {
      width: 6em;
    }
    
    ul {
      gap: 1.8em;
    }
  }

  footer {
    > div:nth-of-type(1) {
      height: 350px;

      section {
        width: 40%;

        p {
          width: 85%;
        }


      }

      > img {
        width: 35%;
      }

      > div:nth-of-type(1) {
        flex-direction: column;
        justify-content: flex-start;
        gap: 1rem;
        width: 20%;

        ul {
          font-size: 0.9rem;
          gap: 1rem;
        }
      }
    }

    > div:nth-of-type(2) {
      ul {
        gap: 1.5rem;

        li img {
          width: 2em;
        }
      }
    }
  }
}
section {
  /* border: 1px solid red; */
}
.image-stairs {
  list-style: none;
  display: flex;
  flex-direction: row;
  gap: 2em;
  justify-content: space-between;
  margin: 0;
  padding: 0;
  margin-top: 2em;

  height: 60%;

  li {
    --width: 28vw;

    /* background-color: green; */
    width: var(--width);
    height: var(--height);

    background-size: cover;
    background-position: center;
    border-radius: 15px;

    a img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      border-radius: 25px;
    }
  }

  li:nth-of-type(1) {
    /* --height: calc(var(--width) * 0.75); */
    height: 60%;
  }

  li:nth-of-type(2) {
    /* --height: var(--width); */
    height: 85%;
  }

  li:nth-of-type(3) {
    /* --height: calc(var(--width) * 1.25); */
    height: 100%;
  }
}
[data-first-step],
[data-second-step],
[data-third-step] {
  transition: opacity 0.5s ease-in-out;
}
#intro-section {
  position: relative;
  height: calc(100vw * 0.246 + 228px);

  article {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 1fr 0.2fr;

    position: relative;
    h2 {
      margin: 0;
      padding: 0;
      font-size: clamp(3rem, 8vw, 6rem);
      /* width: 50%; */
      grid-area: 1 / 1 / 3 / 2;
    }

    > p {
      grid-area: 1 / 2 / 2 / 3;
      width: 100%;
      margin-top: 1.6rem;
    }

    button {
      position: absolute;
      grid-area: 1 / 2 / 2 / 3;
      bottom: 0;
    }
  }
}
#discipline-section {
  scroll-margin-top: 50px;

  position: relative;

  /* height: calc(100vw * 0.102 + 304px); */
  height: calc(100vw * 0.246 + 328px);

  display: flex;
  flex-direction: row-reverse;
  justify-content: space-between;

  > p {
    position: absolute;
    top: 0;
    left: 0;
    width: 35%;
  }

  > button {
    position: absolute;
    bottom: 0;
    left: 0;

    width: 10%;
  }
}
#featured-work-section {
  scroll-margin-top: 50px;

  position: relative;
  /* height: calc(100vw * 0.246 + 228px); */

  h2 {
    padding: 0;
    margin: 0;
    font-size: 3rem;
    width: 20%;
  }

  > div {
    position: absolute;
    top: 0;
    right: 0;
  }

  > ul {
    margin-top: 2em;
    /* position: absolute;  */
    bottom: 0;
    display: flex;
    flex-direction: column;
    list-style: none;
    gap: 1rem;

    li {
      a {
        border-bottom: 1px solid var(--link-border-color);
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding-bottom: 1em;
        > div {
          width: 40%;

          h3 {
            font-size: 2.4em;
            margin-bottom: 0.3em;
          }

          > p {
            font-size: 1em;
          }
        }

        img {
          width: 23%;
          /* height: 100%; */
          object-fit: cover;
        }

        p {
          font-size: 0.9em;
        }
      }
    }
  }
}
#expertises-section {
  scroll-margin-top: 50px;
  height: auto;
  position: relative;

  display: flex;
  flex-direction: row;
  justify-content: space-between;

  > div {
    width: 50%;
    /* display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 1fr 0.2fr; */

    h2 {
      font-size: 6rem;
    }

    p {
      margin-top: 1rem;
      margin-bottom: 1rem;
    }
  }

  > ul {
    margin-top: 2em;
    display: flex;
    flex-direction: column;
    gap: 1em;
    width: 40%;
  }
}
#current-work-section {
  scroll-margin-top: 50px;
  /* height: calc(100vw * 0.257 + 242px); */
  position: relative;

  h2 {
    font-size: 4em;
  }

  .carousel-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    overflow-x: hidden;
    padding: 60px 0;
  }

  .carousel-track {
    display: flex;
    justify-content: center;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
    height: 400px;
    position: relative;
    width: 100%;
  }

  [data-slide] {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  /* Project link styling */
  [data-slide] .project-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
  }

  [data-slide] img {
    width: 500px;
    height: 300px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
  }

  [data-slide] .project-title {
    margin-top: 15px;
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    text-align: center;
    transition: all 0.3s ease;
    white-space: nowrap;
  }

  /* Active slide styling */
  [data-slide].active {
    z-index: 3 !important;
    opacity: 1 !important;
  }

  /* Hover effects for ACTIVE slides only */
  [data-slide].active .project-link:hover {
    transform: translateY(-5px);
  }

  [data-slide].active .project-link:hover img {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
    transform: scale(1.02);
    filter: brightness(1.1);
  }

  [data-slide].active .project-link:hover .project-title {
    color: #0066cc;
    transform: translateY(-2px);
  }

  /* Add a subtle glow effect on hover for active items */
  [data-slide].active .project-link:hover::after {
    content: "";
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: linear-gradient(
      45deg,
      rgba(0, 102, 204, 0.1),
      rgba(0, 102, 204, 0.05)
    );
    border-radius: 20px;
    z-index: -1;
    opacity: 0;
    animation: glowIn 0.3s ease forwards;
  }

  @keyframes glowIn {
    to {
      opacity: 1;
    }
  }

  /* Non-active slides styling */
  [data-slide]:not(.active) {
    opacity: 0.6;
    z-index: 1;
  }

  [data-slide]:not(.active) img {
    filter: grayscale(30%) brightness(0.8);
  }

  [data-slide]:not(.active) .project-title {
    opacity: 0.7;
  }

  /* Disable pointer events on non-active slides to prevent accidental clicks */
  [data-slide]:not(.active) .project-link {
    pointer-events: none;
  }

  /* Rest of your carousel controls CSS remains the same */
  .carousel-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
  }

  .prev-slide,
  .next-slide {
    background: #f8f9fa;
    border: 2px solid #dee2e6;
    font-size: 24px;
    cursor: pointer;
    padding: 12px 16px;
    color: #333;
    border-radius: 50%;
    transition: all 0.3s ease;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .prev-slide:hover,
  .next-slide:hover {
    background: #0066cc;
    color: white;
    border-color: #0066cc;
  }

  .carousel-dots {
    display: flex;
    justify-content: center;
    margin: 0 20px;
  }

  .dot {
    height: 12px;
    width: 12px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    margin: 0 6px;
    cursor: pointer;
    transition: all 0.3s ease;
  }

  .dot:hover {
    background-color: #888;
    transform: scale(1.1);
  }

  .dot.active {
    background-color: #0066cc;
    transform: scale(1.2);
  }
}
#recommendations-section {
  height: calc(100vw * 0.102 + 304px);

  h2 {
    font-size: 2em;
  }
}
.project-title {
  text-align: center;
  margin-top: 15px;
}
#featured-projects-list img {
  width: 100%;
  max-width: 400px;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin: 10px 0;
}
#category-filter:not([value=""]) {
  background-color: #e8f4f8;
  border-color: #0066cc;
}
/* Mobile Styles (320px - 768px) */
@media (max-width: 768px) {
  .image-stairs {
    flex-direction: column;
    gap: 1.5em;
    height: auto;

    li {
      --width: 80vw;
      width: var(--width);
      height: 250px;
      align-self: center;

      a img {
        border-radius: 15px;
      }
    }

    li:nth-of-type(1),
    li:nth-of-type(2),
    li:nth-of-type(3) {
      height: 250px;
    }
  }

  #intro-section {
    height: auto;
    margin-bottom: 2rem;

    article {
      grid-template-columns: 1fr;
      grid-template-rows: auto auto auto;
      gap: 1.5rem;
    margin-top: 2rem;


      h2 {
        grid-area: 1 / 1 / 2 / 2;
        font-size: clamp(2.5rem, 6vw, 4rem);
        text-align: center;
      }

      > p {
        grid-area: 2 / 1 / 3 / 2;
        margin-top: 0;
        margin-bottom: 3rem;
        text-align: center;
      }

      button {
        grid-area: 2 / 1 / 3 / 2;
        justify-self: center;
      }
    }
  }

  #discipline-section {
    height: auto;
    flex-direction: column;
    gap: 2rem;
            margin-bottom: 6rem;


    > p {
      position: static;
      width: 100%;
    }

    > button {
      position: static;
      width: auto;
      align-self: center;
    }

    #disciplines-list{
      width: 100%;
    }

  }

  #featured-work-section {
    height: auto;

    h2 {
      width: 100%;
      text-align: left;
      margin-bottom: 1rem;
    }

    > div {
      position: static;
      margin-bottom: 1rem;
    }

    > ul {
      position: static;
      margin-top: 1em;

      li a {
        flex-direction: column;
        text-align: center;
        gap: 1rem;

        > div {
          width: 100%;

          h3 {
            font-size: 1.8em;
          }
        }

        img {
          width: 100%;
          max-width: 300px;
        }
      }
    }
  }

  #expertises-section {
    flex-direction: column;
    gap: 2rem;

    > div {
      width: 100%;

      h2 {
        font-size: 4rem;
        text-align: center;
      }

      p {
        text-align: center;
      }
    }

    > ul {
      width: 100%;
      margin-top: 1em;
    }
  }

  #current-work-section {
    h2 {
      font-size: 2.5em;
      text-align: left;
    }

    .carousel-container {
      padding: 30px 0;
    }

    .carousel-track {
      height: 300px;
    }

    [data-slide] img {
      width: 350px;
      height: 200px;
    }

    [data-slide] .project-title {
      font-size: 1rem;
    }

    .prev-slide,
    .next-slide {
      width: 40px;
      height: 40px;
      font-size: 18px;
    }
  }

  #recommendations-section {
    height: auto;

    h2 {
      text-align: left;
    }
  }
}
/* Tablet Styles (768px - 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
  .image-stairs {
    gap: 1.5em;

    li {
      --width: 25vw;
    }
  }

  #intro-section {
    height: auto;

    article {
      height: 50%;
      h2 {
        font-size: clamp(2.5rem, 6vw, 5rem);
      }

      button{
        margin-top:
      }
    }
  }

  #discipline-section {
    height: auto;

    > p {
      width: 45%;
    }

    > button {
      width: 15%;
    }

  }

  #featured-work-section {
    h2 {
      width: 30%;
    }

    > ul li a {
      > div {
        width: 50%;

        h3 {
          font-size: 2rem;
        }
      }

      img {
        width: 30%;
      }
    }
  }

  #expertises-section {
    > div {
      width: 55%;

      h2 {
        font-size: 5rem;
      }
    }

    > ul {
      width: 40%;
    }
  }

  #current-work-section {
    h2 {
      font-size: 3.5em;
    }

    [data-slide] img {
      width: 400px;
      height: 250px;
    }
  }


}
#work{
    position: relative;
  
    h2 {
      text-align: center;
      font-size: 3em;
      margin: 0.8em 0;
    }

    .controls {
      display: flex;
      justify-content: space-between;
      margin-bottom: 30px;
      gap: 20px;
      flex-wrap: wrap;
      color: var(--text-secondary);
    
    
      .filters, .sort-options {
        display: flex;
        gap: 15px;
        align-items: center;
    
        select {
          padding: 8px;
          border: 1px solid var(--border-color);
          border-radius: 4px;
          background-color: var(--input-bg-color);
          cursor: pointer;
          color: var(--text-secondary);
        }
    
        button {
          padding: 8px 16px;
          background-color: var(--button-bg-color);
          color: var(--button-text-color);
          border: none;
          border-radius: 4px;
          cursor: pointer;
        }
    
        button:hover {
          background-color: var(--button-hover-bg-color);
        }
      }
    
    
    }

  
    #projects-list{
      display: flex;
      flex-direction: row;
      flex-wrap: wrap;
      justify-content: space-evenly;
      column-gap: 2em;
      row-gap: 5em;
  
      margin-bottom: 4rem;

      
  
      
    }

    .no-results {
      text-align: center;
      padding: 40px;
      grid-column: 1 / -1;
    }


  }
/* Tablet Styles (768px - 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
  #work {
    h2 {
      font-size: 2.8em;
    }

    .controls {
      gap: 15px;

      .filters, .sort-options {
        gap: 12px;

        select {
          padding: 10px;
        }

        button {
          padding: 10px 14px;
        }
      }
    }

    #projects-list {
      justify-content: center;
      gap: 2.5em;
      row-gap: 4em;
    }
  }
}
/* Mobile Styles (320px - 768px) */
@media (max-width: 768px) {

  #work {
    h2 {
      font-size: 2.5em;
      margin: 0.5em 0;
    }

    .controls {
      flex-direction: column ;
      justify-content: flex-start;
      gap: 20px;
      margin-bottom: 25px;
      width: 100%;
      overflow: hidden;

      .filters, .sort-options {
        display: flex !important;
        flex-direction: column ;
        align-items: stretch ;
        gap: 12px;
        width: 100%;
        max-width: 100%;

        label {
          margin-bottom: 5px;
          font-weight: bold;
        }

        select {
          width: 100% !important;
          max-width: 100%;
          padding: 12px;
          font-size: 16px;
          box-sizing: border-box;
          border: 1px solid var(--border-color);
          border-radius: 4px;
          background-color: var(--input-bg-color);
          margin: 0;
        }

        button {
          width: 100% !important;
          max-width: 100%;
          padding: 12px 16px;
          margin-top: 5px;
          box-sizing: border-box;
          background-color: var(--button-bg-color);
          color: var(--button-text-color);
          border: none;
          border-radius: 4px;
        }
      }
    }

    #projects-list {
      flex-direction: column;
      align-items: center;
      gap: 2em;
      margin-bottom: 2rem;
    }

    .no-results {
      padding: 20px;
    }
  }
}
#project {
    display: flex;
    flex-direction: column;
    gap: 2em;
  
    #project-intro {
      margin-top: 2em;
      position: relative;
  
      div {
        grid-area: 1 / 1 / 2 / 2;
        display: flex;
        flex-direction: column;

  
        h2 {
          font-size: 3em;
        }
  
        p {
          order: -1;
          margin-bottom: 20px;
  
          a{
            color: #0066cc;
            text-decoration: none;
            cursor: pointer;
          }
          a:hover{
            text-decoration: underline;
          }
  
          span{
            color: #666;
          }
  
        }
      }
  
  
  
      img:nth-of-type(1) {
        grid-area: 2 / 1 / 3/ 2;
      }
  
      img:nth-of-type(2) {
        grid-area: 1 / 2 / 3 / 3;
      }
  
      >a {
        grid-area: 1 / 2 / 3 / 3;
        position: absolute;
        top: 5%;
        right: 5%;
        text-decoration: underline;
      }
    }
    #project-info {
      display: flex;
      justify-content: space-between;
      
      >img {
        width: 50%;
        aspect-ratio: 1;
        object-fit: cover;
  
        border-radius: 25px;
      }
      div{
        display: flex;
        flex-direction: column;
        width: 40%;

        p{
          width: 100%;
          margin-bottom: 2rem;
        }
        ul {
          display: flex;
          flex-direction: row;
          flex-wrap: wrap;
          /* justify-content: space-between; */
          gap: 2em;
    
          li {
            width: fit-content;
            height: 1em;
            color: white;
            background-color: rgb(95, 181, 224);
            border-radius: 15px;
    
            padding: 1em;
            /* img {
              width: 10%;
            } */
          }
        }

        blockquote h2 {
        padding: 2rem;
        font-size: 2vw;
        background-color: lightblue;
        border-radius: 25px;
        margin-top: 2rem;

        }

        a{
          font-size: 1.1em;
          margin-top: 2.2rem;
        }

        a:hover{
          color: darkblue;
          font-weight: 300;
        }

      }
  
  
     
    }
  
    /* #project-quote {
      display: grid;
      place-content: center;
      height: auto;
      padding: 2rem 0;
      margin-left: -2em;
      margin-right: -2em;
      width: calc(100% + (2 * 2em));
  
      background-color: lightblue;
  

    } */
  
    #project-progress {
      display: flex;
      flex-direction: column;
      gap: 3em;

      margin-bottom: 2rem;

      h2 {
        font-size: 3em;
        margin-bottom: 2rem;

      }
    
  
      article {
        display: grid;
        grid-template-columns: 3fr 1fr;
        grid-template-rows: 1fr 3fr;
        column-gap: 2rem;
  
        border-radius: 25px;
        background-color: #f9f9f9;
        overflow: hidden;
  
        position: relative;
        padding: 1rem;

        h3 {
          grid-area: 1 / 1 / 2 / 2;
          font-size: 2em;
        }
  
        >p {
          grid-area: 2 / 1 / 3 / 2;
          margin: 1rem 0;
          max-width: 100%;
        }

        ul{
          grid-area: 1 / 2 / 3 / 3;

          display: flex;
          flex-direction: row;
          gap: 1rem;
          margin-top: 1rem;
          height: 200px;
          justify-content: center;
          align-items: center;

          li{
            display: flex;
            flex-direction: column;
            gap: 0.5rem;
            /* max-height: 90%; */
            /* aspect-ratio: 9 / 16; */

            img {
              width: 100%;
              height: 100%;
            }
          }
  
        }
  

      }
      article:nth-of-type(2n) {
        grid-template-columns: 1fr 3fr;

      h3 {
        grid-area: 1 / 2 / 2 / 3;
      }

      >p {
        grid-area: 2 / 2/ 3 / 3;
      }

      ul{
        grid-area: 1 / 1 / 3/ 2;
      }
    }
  

  
  }

  #project-gallery {
    margin-bottom: 2rem;

    h2 {
      font-size: 3em;
      margin-bottom: .5rem;
    }

    div {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      grid-template-rows: repeat (5, 1fr);
      gap: .5rem;
    }

    img {
      aspect-ratio: 1;
      object-fit: contain;
      width: 100%;
      height: 100%;
    }

  }
}
.duration {
    font-style: italic;
    color: #666;
  }
.content-media img,
  .content-media video {
    max-width: 100%;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  }
.content-link {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s;
  }
.content-link:hover {
    background-color: #0056b3;
  }
/* Mobile Styles (320px - 768px) */
@media (max-width: 768px) {
  #project {
    gap: 1.5em;

    #project-intro {
      margin-top: 1em;

      div {
        h2 {
          font-size: 2em;
          text-align: center;
        }

        p {
          text-align: center;
          margin-bottom: 15px;
        }
      }
    }

    #project-info {
      flex-direction: column;
      gap: 2rem;

      > img {
        width: 100%;
        border-radius: 15px;
      }

      div {
        width: 100%;

        p {
          margin-bottom: 1.5rem;
        }

        ul {
          gap: 1em;
          justify-content: center;

          li {
            padding: 0.8em;
            font-size: 0.9em;
          }
        }

        blockquote h2 {
          font-size: 4vw;
          padding: 1.5rem;
          margin-top: 1.5rem;
          text-align: center;
        }

        a {
          text-align: center;
          margin-top: 1.5rem;
        }
      }
    }

    #project-progress {
      gap: 2em;
      margin-bottom: 1.5rem;

      h2 {
        font-size: 2.5em;
        margin-bottom: 1.5rem;
        text-align: center;
      }

      article {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        padding: 1.5rem;
        gap: 1rem;

        h3 {
          grid-area: 1 / 1 / 2 / 2;
          font-size: 1.5em;
          text-align: center;
        }

        > p {
          grid-area: 2 / 1 / 3 / 2;
          margin: 0.5rem 0;
        }

        ul {
          grid-area: 3 / 1 / 4 / 2;
          flex-direction: column;
          height: auto;
          margin-top: 0.5rem;

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

      article:nth-of-type(2n) {
        grid-template-columns: 1fr;

        h3 {
          grid-area: 1 / 1 / 2 / 2;
        }

        > p {
          grid-area: 2 / 1 / 3 / 2;
        }

        ul {
          grid-area: 3 / 1 / 4 / 2;
        }
      }
    }

    #project-gallery {
      margin-bottom: 1.5rem;

      h2 {
        font-size: 2.5em;
        text-align: center;
        margin-bottom: 1rem;
      }

      div {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
      }

      img {
        border-radius: 8px;
      }
    }
  }

  .duration {
    font-size: 0.9em;
  }

  .content-media img,
  .content-media video {
    border-radius: 8px;
  }

  .content-link {
    width: 100%;
    text-align: center;
    margin-top: 1rem;
  }
}
/* Prevent progress block images from being inverted in dark mode */
[data-theme="dark"] #project-progress article ul li img {
  filter: none !important;
}
/* Keep progress block text dark even in dark mode */
[data-theme="dark"] #project-progress article {
  color: #333333;
}
/* Tablet Styles (768px - 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
  #project {
    #project-intro {
      div {
        h2 {
          font-size: 2.5em;
        }
      }
    }

    #project-info {
      > img {
        width: 45%;
      }

      div {
        width: 50%;

        ul {
          gap: 1.5em;

          li {
            padding: 0.9em;
          }
        }

        blockquote h2 {
          font-size: 3vw;
        }
      }
    }

    #project-progress {
      h2 {
        font-size: 2.8em;
      }

      article {
        column-gap: 1.5rem;

        h3 {
          font-size: 1.8em;
        }

        ul {
          height: 180px;
        }
      }
    }

    #project-gallery {
      h2 {
        font-size: 2.8em;
      }

      div {
        grid-template-columns: repeat(3, 1fr);
      }
    }
  }
}
/* Contact page styles */
.page {
    display: flex;
    min-height: 90vh;
    width: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;

    & > * {
        flex: 1;
    }

    & > *:first-child {
        padding: 40px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 2rem;

        & h2 {
            margin-bottom: 20px;
            font-size: 3rem;
            color: var(--text-color);
        }

        & > p {
            font-size: 1.2rem;
            margin: 1rem 0;
        }

        & > a {
            border: 2px solid var(--text-color);
            border-radius: 25px;
            padding: 1em;
            width: fit-content;
            text-decoration: none;
            color: var(--text-color);
            transition: all 0.3s ease;

            &:hover {
                background-color: var(--text-color);
                color: var(--bg-color);
            }
        }
    }

    & > *:last-child {
        overflow: hidden;
        position: relative;
        /* background-color: #333; */
        height: 60vh;
        padding: 0;

        & [data-carousel] {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            list-style: none;
            margin: 0;
            padding: 0;

            & [data-slide] {
                position: absolute;
                top: 0;
                left: 0;
                width: 100%;
                height: 100%;
                opacity: 0;
                transition: opacity 1s ease-in-out;

                &.active {
                    opacity: 1;
                    z-index: 1;
                }

                & img {
                    width: 100%;
                    height: 100%;
                    object-fit: cover;
                    object-position: center;
                    border-radius: 25px;
                }
            }
        }
    }

    @media (max-width: 768px) {
        flex-direction: column-reverse;
        


         div:nth-of-type(2) {
         }


        & > *:first-child {
            /* padding: 20px; */
            /* min-height: 60vh; */
            width: 100%;

            & h2 {
                font-size: 2rem;
            }
        }
        
        & > *:last-child {
            height: 40vh;
            min-height: 40vh;
            padding: 0;
            width: 100%;
            flex: none;
            margin-top: 4rem;

        }
    }

    @media (max-width: 480px) {
        & > *:first-child {
            padding: 15px;
            width: 100%;
            
            & h2 {
                font-size: 1.5rem;
            }
        }
        
        & > *:last-child {
            height: 300px;
            min-height: 300px;
            padding: 0;
            width: 100%;
            flex: none;
        }
    }
}
/* Form elements dark mode support */
form input,
form textarea {
    background-color: var(--input-bg-color);
    color: var(--text-color);
    border: 1px solid var(--border-color);
}
form button {
    background-color: var(--button-bg-color);
    color: var(--button-text-color);
    border: 1px solid var(--border-color);
}
form button:hover {
    background-color: var(--button-hover-bg-color);
}
/* component styling */
/* @import '../server/components/card/card.css'; */
.project-card {
    width: 35%;
    display: flex;
    flex-direction: column;
    position: relative;

    min-height: calc(100vw * 0.102 + 304px);

    box-shadow: 2px 8px 5px 2px rgba(179,166,166,0.1);
    -webkit-box-shadow: 5px 8px 5px 6px rgba(179,166,166,0.27);
    -moz-box-shadow: 5px 8px 5px 6px rgba(179,166,166,0.27);

    a {
      display: flex;
      flex-direction: column;

      img {
        width: 100%;
        height: 100%;
        order: -1;
        aspect-ratio: 4 / 5;
        object-fit: cover;
      }

      h3 {
        font-size: 1em;
        padding: .2em .5em;
        margin-top: 0.2em;
        text-decoration: none;
        transform: text-decoration 2s ease;
        font-weight: 500;
      }

      div {
        display: flex;
        justify-content: space-between;
        margin-top: 1em;
        padding: .2em .5em;

        font-size: .9em;

      }

      /* the hidden */
      > p {
        opacity: 0;
        position: absolute;
        font-size: 4em;
        left: 0;
        top: 0;
        transition: opacity 2s ease;
        text-align: center;
        height: 87%;
        width: 100%;
        padding: .2em .5em;
        font-size: 2em;


        background-color: var(--card-bg-color);
      }
    }

    > a:has(:hover) p:nth-of-type(1) {
      opacity: 0.6;
    }

    > a:has(:hover) h3 {
      text-decoration: underline;
    }
  }
/* Mobile Styles (320px - 768px) */
@media (max-width: 768px) {
  .project-card {
    width: 90%;
    max-width: 350px;
    min-height: 500px;

    a {
      img {
        aspect-ratio: 4 / 5; /* Keep portrait ratio like desktop */
      }

      h3 {
        font-size: 1.1em;
        padding: 0.4em 0.8em;
        margin-top: 0.4em;
      }

      div {
        margin-top: 1.2em;
        padding: 0.4em 0.8em;
        font-size: 1em;
        /* Keep horizontal layout like desktop */
        justify-content: space-between;
      }

      > p {
        font-size: 1.5em;
        height: 80%; /* Adjust for portrait ratio */
        display: flex;
        align-items: center;
        justify-content: center;
      }
    }
  }
}
/* Tablet Styles (768px - 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
  .project-card {
    width: 45%;
    min-height: 450px;

    a {
      h3 {
        font-size: 1.05em;
        padding: 0.3em 0.6em;
      }

      div {
        margin-top: 1.1em;
        padding: 0.3em 0.6em;
        font-size: 0.95em;
      }

      > p {
        font-size: 1.8em;
        height: 80%;
      }
    }
  }
}
/* Large Desktop Styles */
@media (min-width: 1240px) {
  .project-card{
    width: 25%;
  }
}
.contact-link {
    width: fit-content;
    padding: 0.5em 1em;
    border: 2px solid var(--link-border-color);
    border-radius: 5rem;
    background: none;
    cursor: pointer;
    background-color: transparent;
    transition: background-color 0.3s ease;
    color: var(--text-secondary);
  }
.contact-link:hover{
    background-color: var(--button-hover-bg-color);
    color: var(--button-text-color)
  }
#disciplines-list {

    width: 50%;
    height: 30%;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    list-style: none;

    li{
        height: 4.5rem;
    }

    li a{
      width: 100%;
      display: flex;
      align-items: center;
      justify-content: space-between;
      border-bottom: 2px solid var(--link-border-color);
    }
  }
#discipline-highlighter {
    width: 40%;
    height: 90%;
    border-radius: 12px; /* Add rounded corners to the container */
    overflow: hidden; /* Ensure content stays within rounded bounds */
    position: relative; /* Ensure proper positioning for images */
    flex-shrink: 0; /* Prevent container from shrinking */
}
#discipline-image-link {
    width: 100%;
    height: 100%;
    display: block; /* Ensure the link takes full dimensions */
    position: absolute; /* Position absolutely to prevent layout shifts */
    top: 0;
    left: 0;
}
#discipline-image-link img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Maintains aspect ratio while filling the container */
    border-radius: 12px; /* Add rounded corners to the image */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
/* Only apply hover effects on devices that support proper hover (desktop) */
@media (hover: hover) {
    #discipline-image-link:hover img {
        transform: scale(1.05);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    }

    #discipline-highlighter:hover img {
        transform: scale(1.05);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    }
}
/* For the fallback image when no project is available */
#discipline-highlighter img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: absolute; /* Position absolutely to prevent layout shifts */
    top: 0;
    left: 0;
}
/* Mobile-specific styles */
@media (max-width: 768px) {
    #discipline-highlighter {
        position: relative;
        overflow: hidden;
    }
    
    #discipline-image-link img,
    #discipline-highlighter img {
        transform: none !important;
        box-shadow: none !important;
        transition: none;
    }
}
.container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.text-container {
    position: relative;
    width: 200px;
    height: .9em;
    perspective: 1000px;
    transform-style: preserve-3d;
}
.word {
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-color);
    /* font-size: 1.5rem; */
    font-weight: bold;
    backface-visibility: hidden;
    transform-origin: center center -40px;
    border-radius: 8px;
    opacity: 0;
    transition: opacity 0.8s, transform 0.8s;
}
/* First container - Frontend/Game */
.text-container:nth-child(1) .word:nth-child(1) {
    animation: first-word 16s infinite;
}
.text-container:nth-child(1) .word:nth-child(2) {
    animation: second-word 16s infinite;
}
/* Second container - Designer/Programmer */
.text-container:nth-child(2) .word:nth-child(1) {
    animation: third-word 16s infinite;
}
.text-container:nth-child(2) .word:nth-child(2) {
    animation: fourth-word 16s infinite;
}
@keyframes first-word {
    /* Frontend Designer */
    0%, 20% {
        transform: rotateX(0deg);
        opacity: 1;
    }
    
    /* Frontend Programmer */
    21%, 45% {
        transform: rotateX(0deg);
        opacity: 1;
    }
    
    /* Game Programmer */
    46%, 49% {
        transform: rotateX(-90deg);
        opacity: 0;
    }
    50%, 70% {
        transform: rotateX(-90deg);
        opacity: 0;
    }
    
    /* Game Designer */
    71%, 95% {
        transform: rotateX(-90deg);
        opacity: 0;
    }
    
    /* Return to Frontend Designer */
    96%, 99% {
        transform: rotateX(-90deg);
        opacity: 0;
    }
    100% {
        transform: rotateX(0deg);
        opacity: 1;
    }
}
@keyframes second-word {
    /* Frontend Designer */
    0%, 20% {
        transform: rotateX(90deg);
        opacity: 0;
    }
    
    /* Frontend Programmer */
    21%, 45% {
        transform: rotateX(90deg);
        opacity: 0;
    }
    
    /* Game Programmer */
    46%, 49% {
        transform: rotateX(0deg);
        opacity: 0;
    }
    50%, 70% {
        transform: rotateX(0deg);
        opacity: 1;
    }
    
    /* Game Designer */
    71%, 95% {
        transform: rotateX(0deg);
        opacity: 1;
    }
    
    /* Return to Frontend Designer */
    96%, 99% {
        transform: rotateX(90deg);
        opacity: 0;
    }
    100% {
        transform: rotateX(90deg);
        opacity: 0;
    }
}
@keyframes third-word {
    /* Frontend Designer */
    0%, 20% {
        transform: rotateX(0deg);
        opacity: 1;
    }
    
    /* Frontend Programmer */
    21%, 24% {
        transform: rotateX(-90deg);
        opacity: 0;
    }
    25%, 45% {
        transform: rotateX(-90deg);
        opacity: 0;
    }
    
    /* Game Programmer */
    46%, 70% {
        transform: rotateX(-90deg);
        opacity: 0;
    }
    
    /* Game Designer */
    71%, 74% {
        transform: rotateX(0deg);
        opacity: 0;
    }
    75%, 95% {
        transform: rotateX(0deg);
        opacity: 1;
    }
    
    /* Return to Frontend Designer */
    96%, 99% {
        transform: rotateX(-90deg);
        opacity: 0;
    }
    100% {
        transform: rotateX(0deg);
        opacity: 1;
    }
}
@keyframes fourth-word {
    /* Frontend Designer */
    0%, 20% {
        transform: rotateX(90deg);
        opacity: 0;
    }
    
    /* Frontend Programmer */
    21%, 24% {
        transform: rotateX(0deg);
        opacity: 0;
    }
    25%, 45% {
        transform: rotateX(0deg);
        opacity: 1;
    }
    
    /* Game Programmer */
    46%, 70% {
        transform: rotateX(0deg);
        opacity: 1;
    }
    
    /* Game Designer */
    71%, 95% {
        transform: rotateX(90deg);
        opacity: 0;
    }
    
    /* Return to Frontend Designer */
    96%, 100% {
        transform: rotateX(90deg);
        opacity: 0;
    }
}
.construction-page{
    height: 100dvh;
    width: 100dvw;
    position: absolute;
    left: 0;
    top: 0;

    margin: auto;

    background-color: rgb(190, 188, 188);

    h2{
        font-size: 2rem;
        color: white;
    }

    p{
        font-size: 1rem;
    }

    z-index: -1;
    display: none;
}
/* @media (max-w) {
    body {
        overflow: hidden; 
        position: fixed;
        width: 100%; 
        height: 100%;
    }
    
    .construction-page {
        display: block !important;
        z-index: 9999;
        position: fixed; 
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        overflow-y: auto; 
    }
} */
.theme-toggle {
  background: var(--bg-color);
  border: 2px solid var(--border-color);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  
  display: flex;
  align-items: center;
  justify-content: center;
  
  cursor: pointer;
  transition: all 0.3s ease;
  
  box-shadow: 0 2px 8px var(--shadow-color);
}
.theme-toggle:hover {
  background: var(--bg-hover-color);
  transform: scale(1.05);
}
.theme-toggle-icon {
  position: relative;
  width: 18px;
  height: 18px;
  color: var(--text-color);
}
.theme-toggle-icon svg {
  position: absolute;
  top: 0;
  left: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
/* Light mode - show sun icon */
:root .sun-icon {
  opacity: 1;
  transform: rotate(0deg);
}
:root .moon-icon {
  opacity: 0;
  transform: rotate(180deg);
}
/* Dark mode - show moon icon */
[data-theme="dark"] .sun-icon {
  opacity: 0;
  transform: rotate(180deg);
}
[data-theme="dark"] .moon-icon {
  opacity: 1;
  transform: rotate(0deg);
}
/* Mobile sizing */
@media (max-width: 768px) {
  .theme-toggle {
    width: 36px;
    height: 36px;
  }
  
  .theme-toggle-icon {
    width: 16px;
    height: 16px;
  }
}
/* Settings Trigger Bar */
.settings-trigger {
  position: absolute;
  right: 0;
  top: 15%;
  z-index: 1000;
  pointer-events: none;
}
.settings-trigger-bar {
  pointer-events: auto;
  background: var(--bg-color);
  border: 2px solid var(--border-color);
  border-right: none;
  border-radius: 8px 0 0 8px;
  width: 40px;
  height: 60px;
  
  display: flex;
  align-items: center;
  justify-content: center;
  
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: -2px 0 8px var(--shadow-color);
  
  color: var(--text-color);
}
.settings-trigger-bar:hover {
  background: var(--bg-hover-color);
  transform: translateX(-5px);
}
.settings-trigger-bar img {
  transition: filter 0.3s ease;
}
[data-theme="dark"] .settings-trigger-bar img {
  filter: invert(1);
}
/* Settings Menu Panel */
.settings-menu {
  position: fixed;
  right: -310px;
  top: 15%;
  height: auto;
  max-height: calc(85vh - 20px);
  width: 300px;
  background: var(--bg-color);
  border: 2px solid var(--border-color);
  border-right: none;
  border-radius: 8px 0 0 8px;
  box-shadow: -5px 0 15px var(--shadow-color);
  z-index: 1001;
  
  transition: right 0.3s ease;
  
  display: flex;
  flex-direction: column;
  pointer-events: none;
}
.settings-menu.open {
  right: 0;
  pointer-events: auto;
}
/* Menu Content */
.settings-menu-content {
  padding: 20px;
  flex: 1;
  overflow-y: auto;
  position: relative;
}
.settings-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  border-radius: 4px;
  color: var(--text-color);
  transition: background-color 0.2s ease;
  z-index: 1;
}
.settings-close:hover {
  background: var(--bg-hover-color);
}
.setting-item label {
  display: block;
  margin-bottom: 10px;
  font-weight: 600;
  color: var(--text-color);
}
.theme-options {
  display: flex;
  align-items: center;
  gap: 12px;
}
.theme-label {
  color: var(--text-secondary);
  font-size: 0.9rem;
}
/* Mobile Adjustments */
@media (max-width: 768px) {
  .settings-trigger {
    top: 10%;
  }
  
  .settings-trigger-bar {
    width: 35px;
    height: 50px;
  }
  
  .settings-menu {
    width: 280px;
    right: -280px;
    top: 10%;
    max-height: calc(90vh - 20px);
  }
  
  .settings-menu-content {
    padding: 15px;
  }
}
/* This will be overridden by the theme variables in base.css */
.content-block {
  margin: 0;
  /* width: 35%; */
  /* margin-bottom: 2rem; */
}
.heading-block {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 1fr 0.2fr;

  h2 {
    grid-area: 1 / 1 / 3 / 2;
    font-size: 3rem;
  }

  p {
    grid-area: 1 / 2 / 2 / 3;
    margin-bottom: 1rem;
  }

  button {
    grid-area: 2 / 2 / 3 / 3;
  }
}
/* #region popover class */
/**
 * image-popover.css
 * Styles for the image popover functionality
 */
.image-popover-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.image-popover-container {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  animation: popoverFadeIn 0.3s ease forwards;
}
.image-popover-container img {
  display: block;
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
}
.image-popover-close {
  position: absolute;
  top: -15px;
  right: -15px;
  width: 30px;
  height: 30px;
  background-color: #fff;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
  transition: background-color 0.2s ease;
}
.image-popover-close:hover {
  background-color: #f0f0f0;
}
.image-popover-close::before,
.image-popover-close::after {
  content: '';
  position: absolute;
  width: 15px;
  height: 2px;
  background-color: #333;
}
.image-popover-close::before {
  transform: rotate(45deg);
}
.image-popover-close::after {
  transform: rotate(-45deg);
}
@keyframes popoverFadeIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
/* Mobile responsive styles for image popover */
@media (max-width: 768px) {
  .image-popover-container {
    max-width: 95%;
    max-height: 95%;
  }

  .image-popover-container img {
    max-height: 85vh;
  }

  .image-popover-close {
    top: -10px;
    right: -10px;
    width: 35px;
    height: 35px;
  }

  .image-popover-close::before,
  .image-popover-close::after {
    width: 18px;
    height: 2px;
  }
}
/* #endregion */