/* Font styles */
@font-face {
  font-family: "Abhaya Libre", serif;
  src: url("Afacad.woff2") format("woff2");
  font-display: swap;
}

.abhaya-libre-regular {
  font-family: "Abhaya Libre", serif;
  font-weight: 400;
  font-style: normal;
}

.abhaya-libre-extrabold {
  font-family: "Abhaya Libre", serif;
  font-weight: 800;
  font-style: normal;
}

.courier-prime-regular {
  font-family: "Courier Prime", monospace;
  font-weight: 400;
  font-style: normal;
}

.courier-prime-regular-italic {
  font-family: "Courier Prime", monospace;
  font-weight: 400;
  font-style: italic;
}

body {
  background-color: white;
  margin: 0 auto;
  overflow-x: hidden;
  overscroll-behavior: none;
  cursor: none !important;
}
/* Hide system cursor */
a,
button {
  cursor: none !important;
}
:root {
  --primary-color: white;
  --secondary-color: #565353;
  --tertiary-color: black;
  --primary-bg-color: #eaeaea;
  --hover-color: #4e0404cb;
  --text-fontsize: clamp(1rem, 0.6768rem + 0.5051vw, 1.125rem);
  --logo-fontsize: clamp(1.9375rem, 1.291rem + 1.0101vw, 2.1875rem);
  --bigtext-fontsize: clamp(3.5rem, 2.8535rem + 1.0101vw, 3.75rem);
  --heading-fontsize: clamp(2.25rem, 1.6035rem + 1.0101vw, 2.5rem);
  --abhaya-font: "Abhaya Libre", serif;
  --courier-font: "Courier Prime", monospace;
  --primary-mt: 1.25rem; /* 20px */
}
/* scroll bar */
::-webkit-scrollbar {
  width: 0.5rem;
}

/* Handle */
::-webkit-scrollbar-thumb {
  background: var(--tertiary-color);
  border-radius: 10px;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
  background: var(--hover-color);
}
/* Custom cursor */
.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 20px;
  height: 20px;
  border: 2px solid #000;
  background: black;
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: transform 0.15s ease-out, width 0.25s ease, height 0.25s ease,
    background 0.25s ease;
  z-index: 9999;
  mix-blend-mode: normal; /* makes it visible on both light/dark backgrounds */
}

/* Hover state for clickable items */
.custom-cursor.hover {
  width: 30px;
  height: 30px;
  background: var(--hover-color);
  transform: translate(-50%, -50%) scale(1.05);
}
/*Main Container*/
.main-container {
  display: flex;
  max-width: 1440px;
  margin: 0 auto; /* centers the whole layout */
}

/* Sidebar Styling */
.sidebar {
  position: sticky;
  top: 0;
  align-self: flex-start; /* important when inside flexbox */
  width: 15.6rem; /* smaller, more practical */
  height: fit-content; /* sidebar only takes as much height as needed */
  padding: 1.25rem;
  box-sizing: border-box;
  margin-right: 3.125rem;
}
.sidebar h1 {
  font-size: var(--logo-fontsize);
  font-family: var(--abhaya-font);
  font-weight: 400;
}
.sidebar a {
  text-decoration: none;
  color: var(--tertiary-color);
}
.side-menu {
  margin-top: 100px;
  padding: 0;
}

.side-nav {
  display: flex;
  flex-direction: column;
  margin: 0.3125rem;
  text-decoration: none;
  gap: 2.5rem;
  padding: 0;
}

.side-nav li {
  display: inline;
}
.side-link {
  color: var(--secondary-color);
  letter-spacing: 0.25px;
  font-family: var(--courier-font);
  font-weight: 400;
  font-size: var(--text-fontsize);
  text-decoration: none;
  position: relative;
  transition: 0.3s all;
}
.side-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 1px;
  background: black;
  transition: width 0.6s ease;
}
.side-link:hover::after {
  width: 100%;
}

/*Page Container*/
.page-content {
  margin-top: 70px;
  padding-right: 0.625rem;
  margin-left: auto;
}
.resume-head {
  margin: auto;
  height: auto;
}
#page-title {
  font-size: var(--bigtext-fontsize);
  font-family: var(--abhaya-font);
  font-weight: 800;
  margin-bottom: 0;
  padding: 0;
  opacity: 1;
}
#page-desc {
  font-size: var(--text-fontsize);
  line-height: 1.7rem;
  font-family: var(--courier-font);
  font-weight: 400;
  max-width: 90vw;
  margin-top: 0.312rem;
  white-space: wrap;
  overflow: hidden;
}

#section-divider {
  width: 100%;
  height: 1px;
  background-color: var(--tertiary-color);
  border: none;
}
.exh-main {
  padding: 2% 0;
}
/*Exhibition*/
.exh-main h2 {
  font-family: var(--abhaya-font);
  font-weight: 800;
  font-size: 1.56rem;
  font-style: italic;
  margin-top: 2.5rem;
  margin-bottom: 0;
}
/*Mosaic*/
.exh-content {
  display: grid;
  grid-template-columns: auto 1fr 1fr;
  align-items: center;
  gap: 3rem;
  margin-top: 30px;
  padding: 5% 0;
}
.image-container {
  width: 40vw; /* ✅ responsive 3 cards per row */
  height: fit-content;
  box-sizing: border-box;
}
.exh-content img {
  max-width: 100%; /* ✅ image fills its card container */
  object-fit: contain;
  box-shadow: 20px 20px 20px rgba(43, 43, 43, 0.239);
  flex-shrink: 0;
  display: block;
  transition: all 0.7s ease;
}
.exh-content img:hover {
  transform: skewY(1deg);
}
.text-container {
  max-width: 500px;
}
.exh-content p {
  font-family: var(--courier-font);
  font-weight: 400;
  font-size: var(--text-fontsize);
  text-align: justify;
}
.text-container span {
  font-family: var(--courier-font);
  font-weight: 400;
  font-size: var(--text-fontsize);
  font-weight: bold;
}
/*Mosaic revert*/
.exh-main-revert {
  margin-top: 3rem;
  padding: 2% 0;
}
.exh-main-revert h2 {
  font-family: var(--abhaya-font);
  font-weight: 800;
  font-size: 1.56rem;
  font-style: italic;
  margin-top: 2.5rem;
  margin-bottom: 0;
}
.exh-content-r {
  margin-left: auto;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 1rem;
  padding: 5% 0;
}
.image-container-r {
  width: 40vw; /* ✅ responsive 3 cards per row */
  height: fit-content;
  box-sizing: border-box;
}
.exh-content-r img {
  max-width: 100%; /* ✅ image fills its card container */
  object-fit: contain;
  flex-shrink: 0;
  display: block;
  box-shadow: 20px 20px 20px rgba(43, 43, 43, 0.239);
  transition: all 0.7s ease;
}
.exh-content-r img:hover {
  transform: skewY(-1deg);
}
.text-container-r {
  max-width: 500px;
}
.exh-content-r p {
  font-family: var(--courier-font);
  font-weight: 400;
  font-size: var(--text-fontsize);
  text-align: justify;
}
.text-container-r span {
  font-family: var(--courier-font);
  font-weight: 400;
  font-size: var(--text-fontsize);
  font-weight: bold;
}
/* Footer */
.footer {
  width: 90%;
  display: flex;
  justify-content: center;
  align-items: end;
  min-width: 440px;
  max-width: 1400px;
  margin: 1.9rem;
  margin-bottom: 0;
}
.footer-logo {
  direction: ltr;
  color: var(--tertiary-color);
  letter-spacing: 1px;
  text-transform: none;
  margin-left: auto;
  font-family: var(--abhaya-font);
  font-weight: 800;
  font-size: var(--heading-fontsize);
  margin-bottom: 0;
}
.footer p {
  display: block;
  font-family: var(--courier-font);
  font-weight: 400;
  font-size: var(--text-fontsize);
}
@media (max-width: 1024px) {
  .exh-content {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem;
    padding: 7% 0;
  }
  .text-container {
    max-width: 400px;
  }
  .exh-content-r {
    padding: 7% 0;
  }
}
/* Media query mobile 768px */
@media (max-width: 48rem) {
  :root {
    --text-fontsize: clamp(0.75rem, 0.75rem + 0.2604vw, 0.875rem);
    --bigtext-fontsize: clamp(3.25rem, 3.25rem + 0.5208vw, 3.5rem);
    --heading-fontsize: clamp(2rem, 2rem + 0.5208vw, 2.25rem);
  }
  /* Custom cursor */
  .custom-cursor {
    display: none;
  }
  /*Main Container*/
  .main-container {
    display: flex;
    flex-direction: column;
    max-width: 1440px;
    margin: 0 auto; /* centers the whole layout */
  }

  /* Sidebar Styling */
  .sidebar {
    position: relative;
    align-self: flex-start; /* important when inside flexbox */
    height: fit-content; /* sidebar only takes as much height as needed */
    padding: 1.25rem;
    box-sizing: border-box;
  }
  .side-menu {
    margin-top: 20px;
    padding: 0;
  }
  /*Page Container*/
  .page-content {
    margin-top: 0px;
    padding: 1.5rem;
    margin-right: auto;
    justify-content: center;
    margin: 0 auto;
  }
  /*Exhibition*/
  .exh-main h2 {
    margin-top: 2rem;
    margin-bottom: 0.8rem;
  }
  /*Exhibition*/
  .exh-content {
    display: grid;
    grid-template-rows: auto;
    gap: 0.3rem;

    justify-content: center;
  }
  .text-container {
    max-width: 300px;
  }
  .image-container {
    width: 80vw; /* ✅ responsive 3 cards per row */
    height: 36vh;
    grid-row: 1;
  }
  .exh-content img {
    height: 100%;
    object-fit: fill;
  }
  .text-container {
    grid-row: 2;
  }
  .exh-content p {
    font-size: var(--text-fontsize);
  }
  .text-container span {
    font-size: var(--text-fontsize);
  }
  /*Painting revert*/
  .exh-main-revert {
    margin-top: 0;
  }
  .exh-content-r {
    display: grid;
    grid-template-rows: auto;
    gap: 0.3rem;
    justify-content: center;
  }
  .text-container-r {
    max-width: 350px;
  }
  .image-container-r {
    width: 80vw; /* ✅ responsive 3 cards per row */
    height: 38vh;
    grid-row: 1;
    box-sizing: border-box;
  }
  .exh-content-r img {
    height: 100%;
    object-fit: fill;
  }
  .text-container-r {
    grid-row: 2;
  }
  .exh-content-r p {
    font-family: var(--courier-font);
    font-weight: 400;
    font-size: var(--text-fontsize);
  }
  .text-container-r span {
    font-family: var(--courier-font);
    font-weight: 400;
    font-size: var(--text-fontsize);
    font-weight: bold;
  }
  /* Footer */
  .footer {
    width: 80%;

    justify-content: space-between;

    margin: 0.625rem;
    min-width: auto;
  }
  .footer-logo {
    margin-right: auto;

    font-size: var(--heading-fontsize);
  }
  .footer p {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
