/* 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 styles */
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 variables */
:root {
  --primary-color: white;
  --secondary-color: #565353;
  --tertiary-color: black;
  --primary-bg-color: #eaeaea;
  --hover-color: #4e0404cb;
  --text-fontsize: clamp(0.875rem, 0.5797rem + 0.6144vw, 1.125rem);
  --logo-fontsize: clamp(1.9375rem, 1.291rem + 1.0101vw, 2.1875rem);
  --bigtext-fontsize: clamp(3.5rem, 3.2047rem + 0.6144vw, 3.75rem);
  --heading-fontsize: clamp(2.25rem, 1.9547rem + 0.6144vw, 2.5rem);
  --abhaya-font: "Abhaya Libre", serif;
  --courier-font: "Courier Prime", monospace;
  --primary-mt: 1.9rem; /* 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 {
  display: block;
  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;
  opacity: 1;
  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 Content Container*/
.page-content {
  margin-top: 70px;
  padding-right: 0.625rem;
  margin-left: auto;
  margin-bottom: 40px;
}
/* Hero styles */
.resume-head {
  margin-left: auto;
  height: auto;
}
.title {
  font-size: var(--bigtext-fontsize);
  font-family: var(--abhaya-font);
  font-weight: 800;
  margin-bottom: 0;
  padding: 0;
  opacity: 1;
}
.head-desc {
  font-size: var(--text-fontsize);
  line-height: 1.7rem;
  font-family: var(--courier-font);
  font-weight: 400;
  max-width: 80vw;
  margin-top: 0.312rem;
  text-align: justify;
}
.head-image {
  margin-top: var(--primary-mt);
  width: 78vw;
  height: 70vw;
  margin-left: auto;
}
.head-image img {
  width: 100%;
  transform: scale(1);
  height: 100%;
  object-fit: fill;
  animation: scaletop 0.9s ease forwards;
}
@keyframes scaletop {
  to {
    transform: scale(1.02);
  }
}
hr {
  color: var(--secondary-color);
}

/*Exhibitons Section*/
.expo {
  margin: 0 auto;
}
[data-head] {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: var(--primary-mt);
  opacity: 1;
}
.expo-head a,
.mural-head a,
.mosaic-head a,
.painting-head a {
  text-decoration: none;
  font-family: var(--courier-font);
  font-weight: 400;
  font-size: var(--text-fontsize);
  opacity: 1;
}
.expo-head a:hover,
.mural-head a:hover,
.mosaic-head a:hover,
.painting-head a:hover {
  text-decoration: underline;
  color: #5653536e;
}
.row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
}
.card {
  width: 24.5vw; /* ✅ responsive 3 cards per row */
  box-sizing: border-box;
}
.card img {
  width: 100%; /* ✅ image fills its card container */
  display: block;
}
.card-subtext,
.card-subtext-mur {
  font-family: var(--courier-font);
  font-weight: 400;
  line-height: 0.9rem;
  opacity: 0;
}

.card-subtext p {
  font-size: var(--text-fontsize);
  line-height: 0.9rem;
}

/*Mural Section*/
.mur-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  justify-items: end;
  gap: 0.5rem;
}
.card-mur {
  width: 25.6vw; /* ✅ responsive 3 cards per row */
  box-sizing: border-box;
}
.card-mur img {
  width: 100%; /* ✅ image fills its card container */
  display: block;
}

.card-subtext-mur p {
  font-size: var(--text-fontsize);
}
.card img {
  width: 100%; /* ✅ image fills its card container */
  display: block;
}

/* Buger */
/* Menu Container */
.menu-container {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  display: none;
  flex-direction: column-reverse;
  align-items: flex-start;
  gap: 1rem;
  z-index: 999;
}
/* Menu Button */
.menu-btn {
  background: #111;
  color: #fff;
  border: none;
  width: 56px;
  height: 56px;
  border-radius: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.5s cubic-bezier(0.22, 1.61, 0.36, 1);
  box-shadow: 0 0 15px rgba(0, 255, 0, 0.15);
}
.menu-btn:hover {
  background: #1a1a1a;
}

.menu-btn.active {
  transform: rotate(180deg);
}
/* Menu Items */
.menu-items {
  position: absolute;
  bottom: 70px;
  left: 0;
  background: rgba(20, 20, 20, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 1rem;
  padding: 1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px) scale(0.9);
  transition: all 0.5s cubic-bezier(0.22, 1.61, 0.36, 1);
}
/* Active State */
.menu-items.active {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0) scale(1);
}
/* Individual Menu Item */
.menu-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: var(--text-fontsize);
  color: var(--primary-color);
  font-family: var(--courier-font);
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  transition: background 0.3s ease, transform 0.3s ease;
  cursor: pointer;
}
.menu-item img {
  width: 2vw;
}
.menu-item:hover {
  background: rgba(255, 255, 255, 0.05);
  transform: translateX(5px);
}

/* Icons and Shortcuts */
.menu-item i {
  width: 18px;
  height: 18px;
  opacity: 0.8;
}
.menu-item span {
  flex: 1;
}
.menu-item a {
  text-decoration: none;
  color: var(--primary-color);
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
  }
}
@keyframes faderight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
  }
}
/* 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 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(1.75rem, 1.75rem + 1.0417vw, 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 {
    display: none;
  }
  .sidebar h1 {
    font-size: var(--logo-fontsize);
  }
  /*Page Content Container*/
  .page-content {
    margin-top: 0;
    padding: 0.625rem;
    margin-right: auto;
    justify-content: center;
    margin-bottom: 40px;
    margin: 0 auto;
  }
  .head-desc {
    font-size: var(--text-fontsize);
    max-width: 80vw;
    text-align: justify;
  }
  .head-image {
    margin-top: var(--primary-mt);
    width: 78vw;
    height: 70vw;
    margin-right: auto;
  }
  .expo-head,
  .mural-head,
  .mosaic-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: var(--primary-mt);
  }
  .expo-head a,
  .mural-head a,
  .mosaic-head a {
    font-size: var(--text-fontsize);
  }
  .row {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 1rem;
    justify-items: center;
  }

  .card {
    width: 70vw; /* ✅ responsive 3 cards per row */
    box-sizing: border-box;
  }
  /*Mural Section*/
  .mur-row {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    justify-items: end;
    gap: 1rem;
    justify-items: center;
  }
  .card-mur {
    width: 70vw; /* ✅ responsive 3 cards per row */
    box-sizing: border-box;
  }
  /* Buger */
  /* Menu Container */
  .menu-container {
    display: flex;
  }
  /* 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 (max-width: 576px) {
  .menu-item img {
    width: 2.8vw;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
