@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;
}
/* Design system properties - must be loaded first */
/* =============================================
   DESIGN SYSTEM PROPERTIES
   Centralized CSS custom properties for the entire website
   ============================================= */
:root {
  /* ===========================================
     COLORS - Light Mode (Default)
     =========================================== */
  
  /* Background Colors */
  --bg-color: #ffffff;
  --bg-hover-color: #f5f5f5;
  --footer-bg-color: #ededed;
  --card-bg-color: #ffffff;
  --input-bg-color: #ffffff;
  
  /* Text Colors */
  --text-color: #000000;
  --text-secondary: #333333;
  --text-muted: #666666;
  
  /* Border Colors */
  --border-color: #e0e0e0;
  --link-border-color: #cccccc;
  
  /* Shadow Colors */
  --shadow-color: rgba(0, 0, 0, 0.1);
  --shadow-color-heavy: rgba(0, 0, 0, 0.2);
  
  /* Button Colors */
  --button-bg-color: #333333;
  --button-text-color: #ffffff;
  --button-hover-bg-color: #555555;
  
  /* Accent Colors */
  --accent-primary: #0066cc;
  --accent-primary-hover: #0056b3;
  --accent-secondary: #ff7a4e;
  --accent-gradient-start: #ffce62;
  --accent-gradient-end: #ff7a4e;
  --accent-gradient: linear-gradient(135deg, var(--accent-gradient-start), var(--accent-gradient-end));
  
  /* Focus Colors */
  --focus-color: var(--accent-secondary);
  --focus-ring-color: rgba(255, 122, 78, 0.4);
  
  /* ===========================================
     TYPOGRAPHY
     =========================================== */
  
  /* Font Sizes - Using a modular scale */
  --font-size-xs: 0.75rem;    /* 12px */
  --font-size-sm: 0.875rem;   /* 14px */
  --font-size-base: 1rem;     /* 16px */
  --font-size-md: 1.1rem;     /* ~18px */
  --font-size-lg: 1.25rem;    /* 20px */
  --font-size-xl: 1.5rem;     /* 24px */
  --font-size-2xl: 2rem;      /* 32px */
  --font-size-3xl: 2.5rem;    /* 40px */
  --font-size-4xl: 3rem;      /* 48px */
  --font-size-5xl: 4rem;      /* 64px */
  --font-size-6xl: 6rem;      /* 96px */
  
  /* Responsive Heading Sizes */
  --heading-hero: clamp(2.5rem, 8vw, 6rem);
  --heading-page: clamp(2rem, 6vw, 4rem);
  --heading-section: clamp(1.8rem, 4vw, 3rem);
  --heading-card: clamp(1.4rem, 3vw, 2rem);
  
  /* Line Heights */
  --line-height-tight: 1.1;
  --line-height-snug: 1.25;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.6;
  --line-height-loose: 1.75;
  
  /* Letter Spacing */
  --letter-spacing-tight: -0.02em;
  --letter-spacing-normal: 0;
  --letter-spacing-wide: 0.08em;
  --letter-spacing-wider: 0.12em;
  
  /* Font Weights */
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  
  /* ===========================================
     SPACING
     =========================================== */
  
  --spacing-xs: 0.25rem;   /* 4px */
  --spacing-sm: 0.5rem;    /* 8px */
  --spacing-md: 1rem;      /* 16px */
  --spacing-lg: 1.5rem;    /* 24px */
  --spacing-xl: 2rem;      /* 32px */
  --spacing-2xl: 3rem;     /* 48px */
  --spacing-3xl: 4rem;     /* 64px */
  --spacing-4xl: 6rem;     /* 96px */
  
  /* Responsive Spacing */
  --container-padding: clamp(1rem, 3vw, 2rem);
  --section-gap: clamp(2rem, 5vw, 3rem);
  
  /* ===========================================
     BORDER RADIUS
     =========================================== */
  
  --radius-sm: 0.25rem;    /* 4px */
  --radius-md: 0.5rem;     /* 8px */
  --radius-lg: 0.75rem;    /* 12px */
  --radius-xl: 1rem;       /* 16px */
  --radius-2xl: 1.5rem;    /* 24px */
  --radius-3xl: 2rem;      /* 32px */
  --radius-full: 9999px;   /* Fully rounded */
  
  /* ===========================================
     SHADOWS
     =========================================== */
  
  --shadow-sm: 0 2px 4px var(--shadow-color);
  --shadow-md: 0 4px 12px var(--shadow-color);
  --shadow-lg: 0 8px 24px var(--shadow-color);
  --shadow-xl: 0 24px 60px var(--shadow-color);
  --shadow-card: 0 24px 70px var(--shadow-color);
  --shadow-focus: 0 0 0 3px var(--focus-ring-color);
  
  /* ===========================================
     TRANSITIONS
     =========================================== */
  
  --transition-fast: 0.15s ease;
  --transition-base: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
  
  /* Easing Functions */
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-spring: cubic-bezier(0.22, 0.61, 0.36, 1);
  
  /* ===========================================
     Z-INDEX SCALE
     =========================================== */
  
  --z-base: 0;
  --z-above: 1;
  --z-dropdown: 100;
  --z-sticky: 500;
  --z-overlay: 1000;
  --z-modal: 1100;
  --z-popover: 1200;
  --z-tooltip: 1300;
  --z-max: 10000;
  
  /* ===========================================
     LAYOUT
     =========================================== */
  
  --header-height: 4rem;
  --max-content-width: 1440px;
  --nav-logo-width: 7em;
  --nav-logo-width-mobile: 4.5em;
}
/* ===========================================
   COLORS - Dark Mode
   =========================================== */
[data-theme="dark"] {
  /* Background Colors */
  --bg-color: #333333;
  --bg-hover-color: #444444;
  --footer-bg-color: #2a2a2a;
  --card-bg-color: #404040;
  --input-bg-color: #404040;
  
  /* Text Colors */
  --text-color: #fafafa;
  --text-secondary: #e0e0e0;
  --text-muted: #999999;
  
  /* Border Colors */
  --border-color: #555555;
  --link-border-color: #666666;
  
  /* Shadow Colors */
  --shadow-color: rgba(0, 0, 0, 0.3);
  --shadow-color-heavy: rgba(0, 0, 0, 0.5);
  
  /* Button Colors */
  --button-bg-color: #fafafa;
  --button-text-color: #333333;
  --button-hover-bg-color: #e0e0e0;
}
/* ===========================================
   HIGH CONTRAST MODE
   =========================================== */
@media (prefers-contrast: high) {
  :root {
    --border-color: #000000;
    --link-border-color: #000000;
    --shadow-color: rgba(0, 0, 0, 0.3);
  }
}
/* layout and view styling */
/* =============================================
   ACCESSIBILITY - Skip Links
   ============================================= */
.skip-link {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10000;
  padding: 1rem 1.5rem;
  background-color: var(--button-bg-color, #333333);
  color: var(--button-text-color, #ffffff);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 0.5rem;
  box-shadow: 0 4px 12px var(--shadow-color, rgba(0, 0, 0, 0.2));
  transition: top 0.2s ease-in-out;
  white-space: nowrap;
}
.skip-link:focus {
  top: 1rem;
  outline: 3px solid var(--text-color, #000000);
  outline-offset: 2px;
}
/* Screen reader only class for visually hidden content */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
/* Focus visible styles for better keyboard navigation */
:focus-visible {
  outline: 3px solid var(--text-color, #000000);
  outline-offset: 2px;
}
/* Remove outline for mouse users */
:focus:not(:focus-visible) {
  outline: none;
}
/* Ensure focus is visible on main content when skipped to */
main:focus {
  outline: none;
}
/* Respect user's motion preferences */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
/* High contrast mode support (color overrides in properties.css) */
@media (prefers-contrast: high) {
  a:focus,
  button:focus {
    outline-width: 3px;
  }
}
/* =============================================
   Theme Application
   (Variables defined in properties.css)
   ============================================= */
/* 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;
  overflow-x: hidden;
}
/* 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);
}
[data-theme="dark"] header[role="banner"]{
  background: #121212;
}
nav#primary-navigation {
  --hor-padding: 1em;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  width: 100%;
  font-size: 1.1em;

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

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

  ul li a {
    padding: 0.5rem;
    border-radius: 0.25rem;
  }

  ul li a:hover,
  ul li a:focus {
    text-decoration: underline;
    text-underline-offset: 4px;
  }

  button {
    margin-right: var(--hor-padding);
  }
}
a{
  text-decoration: none;
  color: var(--text-color);
}
html{
  overflow-x: hidden;
  scroll-behavior: smooth;
}
main {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  width: 100%;
  padding: 0 clamp(1em, 3vw, 2em);
  box-sizing: border-box;
  margin: 0;
}
/* Header containing nav */
header[role="banner"] {
  width: 100%;
  background: #f6f3f3;
  padding: 1.2em clamp(1em, 3vw, 2em);
  box-sizing: border-box;
}
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 */

  /* Top part of the footer */
  >div:nth-of-type(1){
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  margin-top: 3rem;
  width: 100%;
  padding: 0 clamp(1em, 3vw, 2em);
  box-sizing: border-box;
  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;
      }

    }
  }
/* divider */
  hr{
    margin-top: 4rem;
    width: 100%;
    color: #fafafa73;
  }
  /* Bottom part of the footer */
  >div:nth-of-type(2){
    width: 100%;
    height: auto;
    padding: 0 clamp(1em, 3vw, 2em);
    box-sizing: border-box;
    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) {
  header[role="banner"] {
    margin-top: 0;
  }

  nav#primary-navigation {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 0;
    
    a > img {
      width: 4.5em;
    }
    
    ul {
      justify-content: flex-end;
      gap: 1.2em;
      font-size: 0.9rem;
    }
  }

  .skip-link:focus {
    font-size: 0.9rem;
    padding: 0.75rem 1rem;
  }

  main {
    gap: 2rem;
  }

  footer {

    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#primary-navigation {
    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;
  overflow: visible;

  h2 {
    font-size: 4em;
  }

  .carousel-container {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
    overflow-x: clip; /* Clips overflow without hiding box-shadows or creating scroll */
    overflow-y: visible;
    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;
    visibility: hidden;
  }

  /* 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: 10px;
    width: 10px;
    background-color: transparent;
    border: 2px solid var(--text-color);
    border-radius: 50%;
    display: inline-block;
    margin: 0 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
  }

  .dot:hover {
    background-color: var(--text-secondary);
    transform: scale(1.1);
  }

  .dot.active {
    background-color: var(--text-color);
    transform: scale(1.1);
  }
}
#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;
  object-position: center;
  border-radius: 8px;
  margin: 10px 0;
  transform: scale(1.15);
}
#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 {
    overflow-x: clip; /* Prevent horizontal scroll on mobile */

    h2 {
      font-size: 2.5em;
      text-align: left;
    }

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

    .carousel-track {
      height: 300px;
    }

    [data-slide] img {
      width: min(350px, 85vw); /* Responsive width that won't exceed viewport */
      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: auto;
      grid-template-rows: auto auto;

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

      > p {
        margin-bottom: 3.5rem;
      }

      button {
        position: absolute;
        bottom: 0;
        right: 0;
      }
    }
  }

  #discipline-section {
    height: auto;

    > p {
      width: 45%;
    }

    > button {
      width: 15%;
    }

    #discipline-highlighter {
      height: 300px;
    }
  }

  #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;
    }
  }
}
@media (min-width: 771px) {
  p.content-block {
    text-align: right;
  }

  p.content-block + .contact-link {
    margin-left: auto;
  }
}
#bento {
  position: relative;

  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}
.bento-header {
  display: flex;
  justify-content: flex-start;
  gap: 2rem;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-top: 2rem;
}
.bento-header-main {
  max-width: 520px;

  h1 {
    font-size: clamp(2.4rem, 4vw, 3.2rem);
    margin: 0.3rem 0 1rem;
  }
}
.bento-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  color: var(--text-secondary);
}
.bento-header-filters {
  display: none;
}
.bento-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
}
.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: minmax(280px, auto);
  grid-auto-flow: dense;
  gap: 1.5rem;
  align-items: stretch;
}
.bento-card {
  --bento-card-radius: 1.5rem;
  background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.08), transparent 55%),
    var(--card-bg-color);
  border-radius: var(--bento-card-radius);
  padding: 1.75rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 24px 70px var(--shadow-color);
  position: relative;
  overflow: hidden;
  outline: none;
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.bento-card:focus,
.bento-card:focus-visible {
  border-color: #ff7a4e;
  box-shadow: 0 0 0 3px rgba(255, 122, 78, 0.4), 0 24px 70px var(--shadow-color);
}
.bento-card:focus:not(:focus-visible) {
  border-color: rgba(255, 255, 255, 0.06);
  box-shadow: 0 24px 70px var(--shadow-color);
}
.bento-card--intro {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.5rem;
}
.bento-intro-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.2rem;
}
.bento-intro-photo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}
.bento-card--intro h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin: 0 0 0.4rem;
}
.bento-card--intro p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin: 0;
}
.bento-intro-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.bento-secondary-link {
  font-size: 0.95rem;
  color: var(--text-secondary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.bento-secondary-link::after {
  content: "↗";
  font-size: 0.85em;
}
/* Info and contact cards */
.bento-card--info {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.bento-card--info h2 {
  margin: 0.4rem 0;
  font-size: 1.6rem;
}
.bento-card--contact {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.bento-card--contact h2 {
  margin: 0;
  font-size: 1.6rem;
}
.bento-contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}
/* Theme card */
.bento-card--theme {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  justify-content: space-between;
}
.bento-card--theme h2 {
  margin: 0.3rem 0;
  font-size: 1.6rem;
}
.bento-theme-toggle-wrapper {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
/* Discipline filter card */
.bento-card--filters {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  grid-row: 1;
}
.bento-filters-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.bento-discipline-pill {
  border-radius: calc(var(--bento-card-radius) - 0.75rem);
  padding: 0.45rem 1.1rem;
  border: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-secondary);
  font-size: 0.85rem;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.15s ease,
    transform 0.1s ease;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.04);
}
.bento-discipline-pill.is-active {
  background: linear-gradient(135deg, #ffce62, #ff7a4e);
  border-color: transparent;
  color: #111111;
  box-shadow: 0 14px 30px rgba(255, 122, 78, 0.3);
  transform: translateY(1px);
}
.bento-discipline-pill:focus,
.bento-discipline-pill:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 122, 78, 0.5);
}
.bento-discipline-pill.is-active:focus,
.bento-discipline-pill.is-active:focus-visible {
  box-shadow: 0 0 0 3px rgba(255, 122, 78, 0.5), 0 14px 30px rgba(255, 122, 78, 0.3);
}
.bento-filters-grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.bento-filter-tile {
  position: relative;
  border-radius: calc(var(--bento-card-radius) - 0.75rem);
  border: 1px solid rgba(255, 255, 255, 0.04);
  background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.12), transparent 55%),
    rgba(255, 255, 255, 0.02);
  color: var(--text-secondary);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1rem;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.08);
  transition:
    transform 2.12s ease,
    box-shadow 0.12s ease,
    border-color 0.12s ease,
    background-color 0.12s ease;
}
.bento-filter-tile:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.16);
}
.bento-filter-tile.is-active {
  background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.2), transparent 55%),
    #ffffff;
  color: #111111;
  border-color: rgba(0, 0, 0, 0.06);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.03), 0 10px 26px rgba(0, 0, 0, 0.22);
  transform: translateY(2px);
}
.bento-filter-tile:focus,
.bento-filter-tile:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 122, 78, 0.5), 0 16px 36px rgba(0, 0, 0, 0.12);
}
.bento-filter-tile.is-active:focus,
.bento-filter-tile.is-active:focus-visible {
  box-shadow: 0 0 0 3px rgba(255, 122, 78, 0.5), inset 0 0 0 1px rgba(0, 0, 0, 0.03), 0 10px 26px rgba(0, 0, 0, 0.22);
}
.bento-filter-label {
  font-weight: 500;
}
.bento-projects {
  display: none;
}
/* Project cards as tiles with image background */
.bento-card--project {
  grid-column: span 1;
  grid-row: span 1;
  min-height: 280px;
  padding: 0;
  border-radius: 1.3rem;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  border: none;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.3);
  background-color: #000;
  transition:
    transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1),
    box-shadow 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
}
/* Orientation-based spans (applied by JS based on image ratio) */
.bento-card--project--horizontal {
  grid-column: span 2;
}
.bento-card--project--vertical {
  grid-row: span 2;
}
.bento-card--project .bento-project-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
  transition: transform 0.35s ease, filter 0.35s ease;
}
.bento-card--project .bento-project-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1rem 1.2rem;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.2) 40%,
    rgba(0, 0, 0, 0.6) 100%
  );
  color: #f5f5f5;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.bento-card--project .bento-project-chip {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  opacity: 0.8;
  margin-bottom: 0.25rem;
}
.bento-card--project h3 {
  margin: 0;
  font-size: 1.1rem;
}
.bento-card--project .bento-project-description {
  margin-top: 0.35rem;
  font-size: 0.85rem;
  opacity: 0.85;
}
.bento-card--project:hover,
.bento-card--project:focus,
.bento-card--project:focus-within {
  transform: translateY(-4px);
  box-shadow: 0 26px 55px rgba(0, 0, 0, 0.45);
}
.bento-card--project:focus,
.bento-card--project:focus-visible,
.bento-card--project:focus-within {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 122, 78, 0.5), 0 26px 55px rgba(0, 0, 0, 0.45);
}
.bento-card--project a:focus {
  outline: none;
}
.bento-card--project:hover .bento-project-image,
.bento-card--project:focus .bento-project-image,
.bento-card--project:focus-within .bento-project-image {
  transform: scale(1.06);
  filter: brightness(1.08);
}
.bento-card--project:hover .bento-project-overlay,
.bento-card--project:focus .bento-project-overlay,
.bento-card--project:focus-within .bento-project-overlay {
  opacity: 1;
  transform: translateY(0);
}
.bento-card--empty {
  grid-column: 1 / -1;
  text-align: center;
}
/* Skeleton loading state */
.bento-card--skeleton {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.bento-skeleton-thumb {
  width: 100%;
  height: 170px;
  border-radius: 1.1rem;
  background: linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.04),
      rgba(255, 255, 255, 0.14),
      rgba(255, 255, 255, 0.04)
    );
  background-size: 200% 100%;
  animation: bento-shimmer 1.4s infinite;
}
.bento-skeleton-line {
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.04),
      rgba(255, 255, 255, 0.14),
      rgba(255, 255, 255, 0.04)
    );
  background-size: 200% 100%;
  animation: bento-shimmer 1.4s infinite;
}
.bento-skeleton-line.short {
  width: 55%;
}
.bento-skeleton-line.medium {
  width: 80%;
}
.bento-skeleton-line.long {
  width: 100%;
}
@keyframes bento-shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}
/* Mobile Styles: phones (< 700px) */
@media (max-width: 699px) {
  .bento-header {
    flex-direction: column;
    align-items: flex-start;
  }

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

  .bento-card {
    padding: 1.4rem;
  }

  /* Disable spanning on mobile - single column */
  .bento-card--project--horizontal,
  .bento-card--project--vertical {
    grid-column: span 1;
    grid-row: span 1;
  }

  /* Reset first-row pinning on mobile */
  .bento-card--filters,
  .bento-card--extra-filters {
    grid-row: auto;
  }
}
/* Small tablets: 700px – 899px → 3 columns */
@media (min-width: 700px) and (max-width: 899px) {
  .bento-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: minmax(240px, auto);
  }
}
/* Large desktops: ≥ 1440px → 5 columns */
@media (min-width: 1440px) {
  .bento-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    grid-auto-rows: minmax(300px, auto);
  }
}
/* Theme toggle button in bento card */
.bento-theme-btn {
  background: var(--bg-color);
  border: 2px solid var(--border-color);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px var(--shadow-color);
}
.bento-theme-btn:hover {
  background: var(--bg-hover-color);
  transform: scale(1.05);
}
.bento-theme-icon {
  position: relative;
  width: 22px;
  height: 22px;
  color: var(--text-color);
}
.bento-theme-icon svg {
  position: absolute;
  top: 0;
  left: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
/* Light mode - show sun icon */
:root .bento-theme-icon .sun-icon {
  opacity: 1;
  transform: rotate(0deg);
}
:root .bento-theme-icon .moon-icon {
  opacity: 0;
  transform: rotate(180deg);
}
/* Dark mode - show moon icon */
[data-theme="dark"] .bento-theme-icon .sun-icon {
  opacity: 0;
  transform: rotate(180deg);
}
[data-theme="dark"] .bento-theme-icon .moon-icon {
  opacity: 1;
  transform: rotate(0deg);
}
/* Extra filters card */
.bento-card--extra-filters {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  grid-row: 1;
}
.bento-card--extra-filters h2 {
  margin: 0.3rem 0;
  font-size: 1.6rem;
}
.bento-extra-filters-grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.bento-filter-select-group {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.bento-filter-select-group label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
}
.bento-filter-select-group select {
  padding: 0.6rem 0.9rem;
  border: 1px solid var(--border-color);
  border-radius: calc(var(--bento-card-radius) - 0.75rem);
  background-color: var(--input-bg-color);
  color: var(--text-color);
  font-size: 0.9rem;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.bento-filter-select-group select:hover {
  border-color: var(--text-secondary);
}
.bento-filter-select-group select:focus {
  outline: none;
  border-color: #ff7a4e;
  box-shadow: 0 0 0 2px rgba(255, 122, 78, 0.2);
}
.bento-clear-filters-btn {
  margin-top: 0.5rem;
  padding: 0.7rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: calc(var(--bento-card-radius) - 0.75rem);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-secondary);
  font-size: 0.85rem;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.bento-clear-filters-btn:hover {
  background: var(--bg-hover-color);
  color: var(--text-color);
}
#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 {
        display: flex;
        flex-direction: column;
  
        h1 {
          font-size: 3em;
          font-weight: 700;
          text-align: center;
        }
      }
    }

    #project-breadcrumb {
      order: -1;
      margin-bottom: 20px;
      text-align: center;

      ol {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 0.3em;
        list-style: none;
        padding: 0;
        margin: 0;
      }

      li {
        display: inline;
        white-space: nowrap;
      }

      a {
        color: #0066cc;
        text-decoration: none;
        cursor: pointer;
      }

      a:hover {
        text-decoration: underline;
      }

      span {
        color: #666;
      }
    }

    /* New project hero/info layout */
    #project-info {
      display: flex;
      flex-direction: column;
      gap: 2.5rem;
    
      > img {
        width: 100%;

        aspect-ratio: 4 / 2;
        object-fit: cover;
        border-radius: 32px;
      }
    }

    #project-info-details {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      column-gap: 3rem;
    }

    #project-tools {
      display: flex;
      flex-direction: column;
      height: 100%;
      justify-content: space-between;
      gap: 1em;
    }

    .project-tools-primary {
      display: flex;
      flex-direction: column;
      gap: 0.75rem;
    }

    .project-tools-secondary {
      display: flex;
      flex-direction: column;
      gap: 1rem;
    }

    #project-tools h2 {
      font-size: 0.95rem;
      text-transform: uppercase;
      letter-spacing: 0.08em;
      margin: 0;
      font-weight: 600;
    }

    #project-languages-list {
      display: flex;
      flex-wrap: wrap;
      gap: 0.75rem 1.25rem;
      list-style: none;
      padding: 0;
      margin: 0;
    }

    #project-languages-list li {
      margin: 0;
      padding: 0.1em 0;
      background: transparent;
      color: inherit;
    }

    #project-copy {
      display: flex;
      flex-direction: column;
      gap: 1.5rem;
      max-width: 40rem;
      text-align: right;
    }

    #project-description {
      margin: 0;
      line-height: 1.6;
    }

    #project-tools blockquote p {
      padding: 1.5rem;
      font-size: 1.4rem;
      background-color: lightblue;
      border-radius: 20px;
      margin: 0;
    }

    .project-link {
      align-self: flex-start;
      font-size: 1rem;
      font-weight: 500;
      text-decoration: none;
      border-bottom: 1px solid currentColor;
      padding-bottom: 0.15rem;
      transition: color 0.2s ease, border-color 0.2s ease;
    }

    .project-link:hover {
      color: #0066cc;
      border-color: #0066cc;
    }
  
    #project-progress {
      display: flex;
      flex-direction: column;
      gap: 3em;
      margin-bottom: 2rem;

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

      /* Portfolio-style alternating rows */
      article {
        display: grid;
        grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
        column-gap: 2.5rem;
        align-items: start;

        border-radius: 24px;
        background-color: var(--card-bg-color);
        box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
        padding: 2.5rem;
      }

      article h3 {
        font-size: 2.5rem;
        margin-bottom: 0.75rem;
        line-height: 1.1;
      }

      article > p {
        margin: 0;
        max-width: 36rem;
        color: var(--text-secondary);
      }

      /* text column left, media right */
      article > h3,
      article > p {
        grid-column: 1;
      }

      .progress-carousel {
        grid-column: 2;
        grid-row: 1 / 3;
        align-self: start;
        position: relative;
        overflow: hidden;
      }

      .progress-carousel .progress-content {
        list-style: none;
        margin: 0;
        padding: 0;

        display: flex;
        flex-direction: row;
        gap: 0;
        transition: transform 0.45s cubic-bezier(0.33, 0, 0.2, 1);
        width: 100%;
      }

      .progress-carousel .progress-content li {
        border-radius: 18px;
        overflow: hidden;
        background-color: #000;
        flex: 0 0 100%;
        min-width: 100%;
      }

      .progress-carousel .progress-content li .content-media {
        width: 100%;
        height: 100%;
      }
      
      .progress-carousel .progress-content li img {
        width: 100%;
        height: 100%;
        max-height: 360px;
        object-fit: cover;
        display: block;
      }

      .progress-carousel .progress-content li video {
        width: 100%;
        height: 100%;
        max-height: 360px;
        object-fit: cover;
        display: block;
      }

      .progress-nav {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        z-index: 10;
        width: 36px;
        height: 36px;
        border-radius: 999px;
        border: none;
        background: rgba(255, 255, 255, 0.95);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        font-size: 18px;
        line-height: 1;
        padding: 0;
        transition: background 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
      }

      .progress-nav--prev {
        left: 12px;
      }

      .progress-nav--next {
        right: 12px;
      }

      .progress-nav:hover:not(:disabled) {
        background: #ffffff;
        transform: translateY(-50%) scale(1.03);
      }

      .progress-nav:disabled {
        opacity: 0.4;
        cursor: default;
      }

      /* Alternate layout every other row (image left, text right) */
      article:nth-of-type(2n) {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
      }

      article:nth-of-type(2n) > h3,
      article:nth-of-type(2n) > p {
        grid-column: 2;
      }

      article:nth-of-type(2n) .progress-carousel {
        grid-column: 1;
      }
    }

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

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

  .gallery-carousel {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
  }

  .gallery-track-container {
    flex: 1;
    overflow: hidden;
    border-radius: 16px;
    container-type: inline-size;
  }

  .gallery-track {
    display: flex;
    transition: transform 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .gallery-track--centered {
    justify-content: center;
  }

  .gallery-card {
    flex: 0 0 auto;
    width: calc(100cqw / 3);
    padding: 0 0.5rem;
    box-sizing: border-box;
  }

  .gallery-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 12px;
    display: block;
  }

  .gallery-nav {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background-color: var(--card-bg-color, #f5f5f5);
    color: var(--text-color, #333);
    font-size: 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    z-index: 10;
  }

  .gallery-nav:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
  }

  .gallery-nav:active {
    transform: scale(0.95);
  }
}
.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: 0.75em;

      div {
        h1 {
          font-size: 1.6em;
          text-align: center;
        }
      }
    }

    #project-breadcrumb {
      margin-bottom: 8px;
      font-size: 0.75rem;

      ol {
        gap: 0.2em;
      }
    }

    #project-info {
      gap: 1.5rem;

      > img {
        aspect-ratio: 16 / 10;
        border-radius: 16px;
      }
    }

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

    #project-tools {
      order: 2;
      height: auto;
      gap: 1.5rem;
    }

    .project-tools-primary {
      gap: 0.5rem;
    }

    #project-tools h2 {
      font-size: 0.85rem;
    }

    #project-languages-list {
      gap: 0.5rem 1rem;
    }

    #project-tools blockquote p {
      font-size: 1.1rem;
      padding: 1.25rem;
    }

    #project-copy {
      order: 1;
      text-align: left;
      max-width: 100%;
    }

    #project-description {
      font-size: 0.95rem;
    }

    .project-link {
      align-self: flex-start;
    }

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

      > h2 {
        font-size: 2em;
        margin-bottom: 1rem;
        text-align: left;
      }

      article {
        grid-template-columns: 1fr;
        padding: 1.5rem;
        row-gap: 1rem;
      }

      article h3 {
        font-size: 1.4em;
        text-align: left;
      }

      article > p {
        font-size: 0.9rem;
      }

      .progress-carousel {
        grid-column: 1;
        grid-row: 3;
      }

      .progress-carousel .progress-content li img,
      .progress-carousel .progress-content li video {
        max-height: 220px;
      }

      .progress-nav {
        width: 30px;
        height: 30px;
        font-size: 14px;
      }

      .progress-nav--prev {
        left: 8px;
      }

      .progress-nav--next {
        right: 8px;
      }

      /* Reset alternating layout on mobile */
      article:nth-of-type(2n) {
        grid-template-columns: 1fr;
      }

      article:nth-of-type(2n) > h3,
      article:nth-of-type(2n) > p {
        grid-column: 1;
      }

      article:nth-of-type(2n) .progress-carousel {
        grid-column: 1;
      }
    }

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

      h2 {
        font-size: 2em;
        text-align: left;
        margin-bottom: 1rem;
      }
    }

    .gallery-carousel {
      gap: 0.5rem;
    }

    .gallery-card {
      flex: 0 0 auto;
      width: 100cqw;
      padding: 0;
    }

    .gallery-card img {
      border-radius: 8px;
    }

    .gallery-nav {
      width: 36px;
      height: 36px;
      font-size: 1rem;
    }
  }

  .duration {
    font-size: 0.85em;
  }

  .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 lighter in dark mode */
[data-theme="dark"] #project-progress article h3 {
  color: #f5f5f5;
}
/* Tablet Styles (768px - 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
  #project {
    #project-intro {
      div {
        h1 {
          font-size: 2.4em;
        }
      }
    }

    #project-breadcrumb {
      font-size: 0.9rem;

      ol {
        gap: 0.25em;
      }
    }

    #project-info {
      gap: 2rem;

      > img {
        aspect-ratio: 16 / 8;
        border-radius: 24px;
      }
    }

    #project-info-details {
      column-gap: 2rem;
    }

    #project-tools h2 {
      font-size: 0.9rem;
    }

    #project-tools blockquote p {
      font-size: 1.2rem;
      padding: 1.25rem;
    }

    #project-copy {
      max-width: 100%;
    }

    #project-description {
      font-size: 0.95rem;
    }

    #project-progress {
      gap: 2.5em;

      > h2 {
        font-size: 2.5em;
        margin-bottom: 1.5rem;
      }

      article {
        column-gap: 1.5rem;
        padding: 2rem;

        h3 {
          font-size: 1.6em;
        }

        > p {
          font-size: 0.92rem;
        }

        .progress-carousel .progress-content li img,
        .progress-carousel .progress-content li video {
          max-height: 280px;
        }

        .progress-nav {
          width: 32px;
          height: 32px;
          font-size: 16px;
        }
      }
    }

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

    .gallery-card {
      flex: 0 0 auto;
      width: 50cqw;
      padding: 0 0.35rem;
    }

    .gallery-nav {
      width: 40px;
      height: 40px;
    }
  }
}
/* 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);
}
#contact-heading{
    font-size: clamp(1rem, 5vw, 4rem);
    font-weight: 500;
}
/* component styling */
/* @import '@components/card/card.css'; */
.project-card {
    width: 35%;
    display: flex;
    flex-direction: column;
    position: relative;

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

    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 
                0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.3s ease, transform 0.3s ease;

    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;
    }

    &:hover {
      box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 
                  0 4px 6px -2px rgba(0, 0, 0, 0.05);
      transform: translateY(-2px);
    }
  }
/* 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: 1.2em;
    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;
    }
}
/* Hide rolling text on mobile - push-text takes over */
@media (max-width: 770px) {
    .container:has(.text-container) {
        display: none;
    }
}
.push-text-container {
    display: none;
    overflow: hidden;
    position: relative;
    height: 1.4em;
    width: 100%;
}
.push-text-track {
    display: flex;
    position: relative;
    height: 100%;
}
.push-text-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    margin: 0;
    font-weight: bold;
    font-size: clamp(2rem, 6vw, 3rem);
    color: var(--text-color);
    text-align: center;
    opacity: 0;
    transform: translateX(100%);
    transition: transform 0.5s ease, opacity 0.5s ease;
}
.push-text-item.active {
    opacity: 1;
    transform: translateX(0);
}
.push-text-item.exiting {
    opacity: 0;
    transform: translateX(-100%);
}
/* Show push-text on mobile, hide rolling text */
@media (max-width: 770px) {
    .push-text-container {
        display: block;
        height: 3em;
    }

    /* Hide the rolling text container on mobile */
    .container:has(.text-container) {
        display: none;
    }
}
.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: 9%;
  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: 9%;
  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;
  }

  @media (max-width: 770px) {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    gap: 1rem;

    h2 {
      grid-area: auto;
    }

    p {
      grid-area: auto;
    }

    button {
      grid-area: auto;
    }
  }
}
/* #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 */