/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Gaisyr Semi-Mono Book", monospace, sans-serif;
  -webkit-tap-highlight-color: transparent; /* Remove tap highlight on mobile */
}

/* Touch improvements */
button,
a,
.filter-btn,
.sub-filter-btn,
.carousel-nav,
.carousel-dot,
.lightbox-nav,
.lightbox-dot,
.lightbox-close,
.read-more-btn,
.project-list-item {
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
  touch-action: manipulation; /* Improve touch responsiveness */
}

/* Font Face Declaration for Gaisyr Semi-Mono Book */
@font-face {
  font-family: "Gaisyr Semi-Mono Book";
  src: url("fonts/ABCGaisyrSemi-Mono-Book-Trial.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

body {
  font-family: "Gaisyr Semi-Mono Book", monospace, sans-serif;
  font-size: 12px;
  line-height: 1.5;
  color: #000;
  background: #fff;
  display: flex;
  padding: 0;
  margin: 0;
  height: 100vh;
  overflow: hidden;
}

/* 3-Column Flexbox Layout */
.site-container {
  display: flex;
  width: 100%;
  max-width: 100%;
  margin: 0;
  gap: 0;
  height: 100vh;
  overflow: hidden;
}

/* Left Column: TOC + Profile */
.column-left {
  flex: 0.95 1 0;
  padding: 0;
  position: relative;
  height: 100vh;
  display: flex;
  flex-direction: column;
}

.column-scroll {
  padding: 10px 10px 10px 10px;
  overflow-y: auto;
  height: 100%;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
}

.column-scroll::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

.column-left::after {
  content: "";
  position: absolute;
  right: 0;
  top: 10px;
  bottom: 10px;
  width: 0.5px;
  background-color: rgba(0, 0, 0, 0.14);
  pointer-events: none;
  z-index: 1;
}

/* Center Column: Material (Dominant) */
.column-center {
  flex: 2.1 1 0;
  min-width: 0;
  padding: 0;
  position: relative;
  height: 100vh;
  display: flex;
  flex-direction: column;
}

.column-center::after {
  content: "";
  position: absolute;
  right: 0;
  top: 10px;
  bottom: 10px;
  width: 0.5px;
  background-color: rgba(0, 0, 0, 0.14);
  pointer-events: none;
  z-index: 1;
}

/* Right Column: CV */
.column-right {
  flex: 0.95 1 0;
  padding: 0;
  font-size: 15px;
  height: 100vh;
  display: flex;
  flex-direction: column;
}

/* TOC */
.toc {
  margin-bottom: 0;
}

.toc-link {
  color: #000;
  text-decoration: none;
  font-size: 22px;
  letter-spacing: 0;
  display: block;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 39px;
  padding-bottom: 14px;
}

.toc-link:hover {
  text-decoration: underline;
}

/* HR separator after TOC */
.column-left hr {
  margin: 0 0 14px 0;
  position: relative;
  top: 0;
}

/* Section Styles */
.section {
  margin-bottom: 40px;
}

.section h1 {
  font-size: 12px;
  font-weight: 400;
  margin-bottom: 0;
  letter-spacing: 0;
}

.section h2 {
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: 0;
}

.section p {
  margin-bottom: 12px;
  line-height: 1.5;
  font-size: 12px;
}

.section a {
  color: #000;
  text-decoration: underline;
}

.section a:hover {
  opacity: 0.6;
}

/* Horizontal Rules */
hr {
  border: none;
  height: 0.5px;
  background-color: rgba(0, 0, 0, 0.14);
  margin: 0 0 14px 0;
  width: 100%;
}

/* Left Column - Profile Section */
.profile-section {
  font-size: 12px;
  line-height: 1.5;
  font-family: "Gaisyr Semi-Mono Book", "Inter", monospace, sans-serif;
}

.profile-section h1 {
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 8px;
  margin-top: 0;
  font-family: "Gaisyr Semi-Mono Book", monospace, sans-serif;
  line-height: 1.5;
}

.profile-section p {
  margin-bottom: 8px;
  font-size: 12px;
  line-height: 1.5;
  text-align: justify;
  font-family: "Gaisyr Semi-Mono Book", monospace, sans-serif !important;
  padding-right: 15px;
}

.profile-section p:last-child {
  margin-top: 10px;
  font-weight: 700;
}

.profile-section a {
  text-decoration: underline;
}

/* Right Column - CV Section */
.cv-section {
  margin-bottom: 20px;
}

.cv-section h1 {
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 60px;
  letter-spacing: 0;
}

/* CV Entry - Two Column Grid */
.cv-entry {
  display: grid;
  grid-template-columns: 105px 1fr;
  gap: 15px;
  margin-bottom: 18px;
}

.cv-label {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
}

.cv-content {
  font-size: 12px;
  line-height: 1.5;
}

.cv-content p {
  margin-bottom: 14px;
}

.cv-content p:last-child {
  margin-bottom: 0;
}

/* Skills List */
.skills-list {
  font-size: 12px;
  line-height: 1.5;
}

.last-updated {
  font-size: 12px;
  color: #000;
  margin-top: 0;
}

/* Center Column - Material/Projects Section */
.material-section {
  position: relative;
}

.material-section h1 {
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 60px;
  letter-spacing: 0;
  position: relative;
}

.material-section .filter-wrapper {
  position: absolute;
  top: calc(
    15px + 60px - 50px
  ); /* h1 height (~15px with line-height 1.5) + margin-bottom (60px) - wrapper height (50px) = align bottom with hr */
  left: 0;
  right: 0;
  margin: 0;
  padding: 0;
  height: 50px; /* Fixed height so hr position never changes */
  pointer-events: none; /* Allow clicks to pass through empty areas */
}

.material-section .filter-wrapper > * {
  pointer-events: auto; /* Re-enable clicks on filter elements */
}

.material-section .filter-container {
  position: absolute;
  bottom: 10px; /* Add bottom padding - align slightly above hr line */
  left: 0;
  transition: transform 0.2s ease;
  margin-bottom: 0;
}

/* When sub-filters are visible, move main filters up */
.material-section .filter-wrapper.has-sub-filters .filter-container {
  transform: translateY(
    -20px
  ); /* Move main filters up - reduced to decrease space between filters */
}

.material-section .sub-filter-container {
  position: absolute;
  bottom: 10px; /* Add bottom padding - align slightly above hr line */
  left: 0;
  right: 0;
  display: flex !important;
  gap: 10px !important; /* Same spacing as main filters */
  flex-wrap: wrap !important;
}

/* Filter Styles */
.filter-wrapper {
  margin-bottom: 0;
  min-height: 0;
}

.filter-container {
  display: flex;
  gap: 10px;
  margin-bottom: 0;
  flex-wrap: wrap;
}

.filter-btn {
  background: none;
  border: none;
  color: #000;
  text-decoration: underline;
  cursor: pointer;
  font-size: 12px;
  font-family: "Gaisyr Semi-Mono Book", monospace, sans-serif;
  padding: 0;
  font-weight: 400;
  transition: opacity 0.2s;
}

.filter-btn:hover {
  opacity: 0.6;
}

.filter-btn.active {
  font-weight: 700;
  text-decoration: underline;
}

.sub-filter-container {
  display: flex;
  gap: 10px;
  margin-top: 0;
  margin-bottom: 0;
  flex-wrap: wrap;
}

.sub-filter-btn {
  background: none;
  border: none;
  color: #000;
  text-decoration: underline;
  cursor: pointer;
  font-size: 12px;
  font-family: "Gaisyr Semi-Mono Book", monospace, sans-serif;
  padding: 0;
  font-weight: 400;
  transition: opacity 0.2s;
  white-space: nowrap;
}

.sub-filter-btn:hover {
  opacity: 0.6;
}

.sub-filter-btn.active {
  font-weight: 700;
  text-decoration: underline;
}

/* Project List Container */
.project-list-container {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 15px 25px; /* row-gap column-gap - significantly more horizontal space */
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 0.5px solid rgba(0, 0, 0, 0.14);
  max-height: 150px;
  overflow-y: auto;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
}

/* Remove border on mobile */
@media (max-width: 900px) {
  .project-list-container {
    border-bottom: none;
    padding-bottom: 15px;
    margin-bottom: 20px;
  }
}

.project-list-container::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

.project-list-item {
  background: none;
  border: none;
  color: #000;
  text-decoration: underline;
  cursor: pointer;
  font-size: 12px;
  font-family: "Gaisyr Semi-Mono Book", monospace, sans-serif;
  padding: 0;
  margin: 0;
  font-weight: 400;
  transition: opacity 0.2s;
  text-align: left;
  white-space: nowrap; /* Prevent project names from breaking */
}

.project-list-separator {
  color: rgba(0, 0, 0, 0.3);
  font-size: 12px;
  padding: 0 5px;
  user-select: none;
  pointer-events: none;
}

.project-list-item:hover {
  opacity: 0.6;
}

.material-item {
  margin-bottom: 60px;
  display: block;
}

.material-item[style*="display: none"] {
  display: none !important;
}

.material-media-container {
  margin-bottom: 15px;
}

/* Carousel Styles */
.material-carousel {
  position: relative;
  width: 100%;
}

.carousel-slides {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.carousel-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.material-image {
  width: 100%;
  height: 100%;
  margin: 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.material-image svg,
.material-image img,
.material-image video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.material-image img {
  cursor: pointer;
  touch-action: manipulation; /* Improve touch responsiveness */
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
  background: #f5f5f5; /* Subtle loading background for lazy-loaded images */
  transition: opacity 0.3s ease-in; /* Smooth fade-in when image loads */
}

.material-image img[loading="lazy"]:not([src]) {
  opacity: 0; /* Hide until loaded */
}

/* Carousel Navigation */
.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  border: none;
  width: 40px;
  height: 40px;
  font-size: 22px;
  cursor: pointer;
  z-index: 2;
  color: #000;
  font-family: "Gaisyr Semi-Mono Book", monospace, sans-serif;
  transition: opacity 0.2s;
  opacity: 0.7;
}

.carousel-nav:hover {
  opacity: 1;
}

.carousel-prev {
  left: 10px;
}

.carousel-next {
  right: 10px;
}

/* Carousel Dots */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 15px;
  flex-wrap: wrap;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.2);
  cursor: pointer;
  padding: 0;
  transition: background 0.2s;
}

.carousel-dot:hover {
  background: rgba(0, 0, 0, 0.4);
}

.carousel-dot.active {
  background: rgba(0, 0, 0, 0.6);
}

/* Lightbox Styles */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  cursor: pointer;
}

.lightbox.active {
  opacity: 1;
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  width: auto;
  height: auto;
  cursor: default;
}

.lightbox-slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.lightbox-slide {
  display: none;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
}

.lightbox-slide.active {
  display: flex;
}

.lightbox-slide img,
.lightbox-slide video {
  max-width: 100%;
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  touch-action: pan-x pan-y; /* Allow panning/zooming on mobile */
  -webkit-user-select: none;
  user-select: none;
}

/* Lightbox Close Button */
.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  width: 40px;
  height: 40px;
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
  z-index: 10001;
  color: #000;
  font-family: "Gaisyr Semi-Mono Book", monospace, sans-serif;
  transition: opacity 0.2s;
  opacity: 0.8;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-close:hover {
  opacity: 1;
}

/* Lightbox Navigation */
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  border: none;
  width: 50px;
  height: 50px;
  font-size: 29px;
  cursor: pointer;
  z-index: 10001;
  color: #000;
  font-family: "Gaisyr Semi-Mono Book", monospace, sans-serif;
  transition: opacity 0.2s;
  opacity: 0.7;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-nav:hover {
  opacity: 1;
}

.lightbox-prev {
  left: 10px;
}

.lightbox-next {
  right: 10px;
}

/* Responsive lightbox */
@media (max-width: 768px) {
  .lightbox-content {
    max-width: 100vw;
    max-height: 100vh;
    padding: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .lightbox-slides {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
  }

  .lightbox-slide {
    display: none;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
  }

  .lightbox-slide.active {
    display: flex;
  }

  .lightbox-slide img,
  .lightbox-slide video {
    max-width: 100vw;
    max-height: 85vh;
    width: auto;
    height: auto;
    object-fit: contain;
  }

  .lightbox-close {
    top: 10px;
    right: 10px;
    width: 50px;
    height: 50px;
    font-size: 38px;
    background: rgba(255, 255, 255, 0.95);
    z-index: 10002;
  }

  .lightbox-nav {
    width: 60px;
    height: 60px;
    font-size: 34px;
    background: rgba(255, 255, 255, 0.95);
    z-index: 10002;
  }

  .lightbox-prev {
    left: 10px;
  }

  .lightbox-next {
    right: 10px;
  }

  .lightbox-dots {
    margin-top: 15px;
    gap: 8px;
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10002;
  }

  .lightbox-dot {
    width: 12px;
    height: 12px;
  }
}

@media (max-width: 600px) {
  .lightbox-content {
    max-width: 100vw;
    max-height: 100vh;
    padding: 5px;
  }

  .lightbox-close {
    top: 5px;
    right: 5px;
    width: 40px;
    height: 40px;
    font-size: 29px;
  }

  .lightbox-nav {
    width: 45px;
    height: 45px;
    font-size: 24px;
  }

  .lightbox-prev {
    left: 5px;
  }

  .lightbox-next {
    right: 5px;
  }
}

/* Lightbox Dots */
.lightbox-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.lightbox-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  padding: 0;
  transition: background 0.2s;
}

.lightbox-dot:hover {
  background: rgba(255, 255, 255, 0.6);
}

.lightbox-dot.active {
  background: rgba(255, 255, 255, 0.9);
}

.material-details {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 30px;
}

.material-info {
  font-size: 12px;
  line-height: 1.5;
}

.material-number {
  font-weight: 700;
  margin-bottom: 8px;
  font-size: 12px;
  line-height: 1.5;
}

.material-meta {
  font-size: 12px;
  line-height: 1.5;
}

.material-description {
  font-size: 12px;
  line-height: 1.5;
  padding-right: 15px;
}

.material-description p {
  margin-bottom: 12px;
  font-size: 12px;
  line-height: 1.5;
  text-align: justify;
}

.material-description p:last-child {
  margin-bottom: 0;
}

.read-more-btn {
  margin-top: 5px;
  background: none;
  border: none;
  color: #000;
  text-decoration: underline;
  cursor: pointer;
  font-size: 12px;
  font-family: "Gaisyr Semi-Mono Book", monospace, sans-serif;
  padding: 0;
  font-weight: 400;
  display: inline-block;
}

.read-more-btn:hover {
  opacity: 0.6;
}

.copyright {
  text-align: center;
  color: rgba(0, 0, 0, 0.4);
  font-size: 12px;
  margin-top: 40px;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .column-left {
    flex: 0 0 220px;
  }

  .column-right {
    flex: 0 0 280px;
  }
}

@media (max-width: 900px) {
  body {
    display: block;
    overflow-y: auto;
    height: auto;
    min-height: 100vh;
  }

  .site-container {
    flex-direction: column;
    gap: 0;
    height: auto;
    overflow: visible;
  }

  .column-left,
  .column-center,
  .column-right {
    flex: 1 1 auto;
    width: 100%;
    height: auto;
  }

  .column-scroll {
    padding: 20px;
  }

  /* Add horizontal separator after each column on mobile */
  .column-left {
    border-bottom: 0.5px solid rgba(0, 0, 0, 0.14);
    padding-bottom: 0;
  }

  .column-left .column-scroll {
    padding-bottom: 20px;
  }

  .column-center {
    border-bottom: 0.5px solid rgba(0, 0, 0, 0.14);
    padding-bottom: 0;
  }

  .column-center .column-scroll {
    padding-bottom: 20px;
  }

  .column-right {
    border-bottom: none; /* No border after last section */
  }

  .toc {
    border-bottom: 1px solid rgba(0, 0, 0, 0.14);
    padding-bottom: 20px;
    margin-bottom: 20px;
  }

  .toc-link {
    font-size: 20px;
  }

  /* Hide the HR after TOC on mobile since we're using border-bottom */
  .column-left hr {
    display: none;
  }

  .column-left::after,
  .column-center::after {
    display: none;
  }
}

@media (max-width: 768px) {
  body {
    font-size: 12px;
  }

  .column-scroll {
    padding: 15px;
  }

  /* Material Details - Stack on mobile */
  .material-details {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* Filters - Larger touch targets with visual hierarchy */
  .filter-container,
  .sub-filter-container {
    gap: 10px;
    row-gap: 1px; /* Minimal vertical spacing when filters wrap to new lines */
  }

  .filter-btn {
    font-size: 15px; /* Larger font for main filters */
    padding: 4px 0;
    min-height: 36px;
    display: flex;
    align-items: center;
    line-height: 1.1;
    margin: 0;
    font-weight: 500; /* Slightly bolder */
  }

  .sub-filter-btn {
    font-size: 13px; /* Smaller font for sub-filters */
    padding: 4px 0;
    min-height: 36px;
    display: flex;
    align-items: center;
    line-height: 1.1;
    margin: 0;
    font-weight: 400; /* Regular weight */
    opacity: 0.85; /* Slightly lighter to show hierarchy */
  }

  /* Carousel navigation - Larger buttons */
  .carousel-nav {
    width: 50px;
    height: 50px;
    font-size: 29px;
    opacity: 0.9;
  }

  .carousel-dots {
    margin-top: 20px;
    gap: 10px;
  }

  .carousel-dot {
    width: 10px;
    height: 10px;
  }

  /* Material items spacing */
  .material-item {
    margin-bottom: 40px;
  }

  /* Section headings */
  .section h1,
  .section h2,
  .material-section h1,
  .cv-section h1 {
    font-size: 12px;
    margin-bottom: 30px;
  }

  .profile-section h1 {
    font-size: 12px;
    margin-bottom: 15px;
  }

  /* CV entries */
  .cv-entry {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 25px;
  }

  .cv-label {
    margin-bottom: 5px;
  }

  .toc-link {
    font-size: 22px;
  }

  /* Project list on mobile */
  .project-list-container {
    gap: 12px 20px;
    max-height: none;
    overflow-y: visible;
  }

  .project-list-item {
    font-size: 13px;
  }
}

@media (max-width: 600px) {
  body {
    font-size: 13px;
  }

  .column-scroll {
    padding: 12px;
  }

  /* Even larger touch targets for small phones with visual hierarchy */
  .filter-btn {
    font-size: 14px; /* Larger font for main filters */
    min-height: 40px;
    padding: 6px 0;
    line-height: 1.1;
    margin: 0;
    font-weight: 500; /* Slightly bolder */
  }

  .sub-filter-btn {
    font-size: 13px; /* Smaller font for sub-filters */
    min-height: 40px;
    padding: 6px 0;
    line-height: 1.1;
    margin: 0;
    font-weight: 400; /* Regular weight */
    opacity: 0.8; /* Lighter to show hierarchy */
  }

  .filter-container,
  .sub-filter-container {
    gap: 8px;
    row-gap: 1px; /* Minimal vertical spacing when filters wrap to new lines */
  }

  /* Carousel */
  .carousel-nav {
    width: 45px;
    height: 45px;
    font-size: 24px;
  }

  .carousel-prev {
    left: 5px;
  }

  .carousel-next {
    right: 5px;
  }

  /* Material details */
  .material-details {
    gap: 15px;
  }

  /* Read more button */
  .read-more-btn {
    font-size: 13px;
    padding: 8px 0;
    min-height: 44px;
  }

  /* Profile section */
  .profile-section p {
    padding-right: 0;
  }

  .material-description {
    padding-right: 0;
  }

  /* Filter wrapper positioning on mobile */
  .material-section .filter-wrapper {
    position: relative;
    top: auto;
    margin-bottom: 20px;
    height: auto;
    min-height: auto;
  }

  .material-section .filter-container {
    position: relative;
    bottom: auto;
  }

  .material-section .sub-filter-container {
    position: relative;
    bottom: auto;
    margin-top: 4px; /* Further reduced vertical space between main and sub-filters */
    padding-left: 12px; /* Indent sub-filters to show hierarchy */
  }

  .material-section .filter-wrapper.has-sub-filters .filter-container {
    transform: none;
  }

  /* TOC link */
  .toc-link {
    font-size: 17px;
    padding-bottom: 14px;
    margin-bottom: 0;
  }

  /* Project list on small mobile */
  .project-list-container {
    gap: 10px 18px;
  }

  .project-list-item {
    font-size: 12px;
  }
}

/* Bottom Navigation Bar */
.bottom-nav {
  display: none; /* Hidden by default, shown only on mobile */
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.98);
  border-top: 0.5px solid rgba(0, 0, 0, 0.14);
  justify-content: space-around;
  align-items: center;
  padding: 12px 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

.bottom-nav-btn {
  background: none;
  border: none;
  color: #000;
  font-family: "Gaisyr Semi-Mono Book", monospace, sans-serif;
  font-size: 12px;
  font-weight: 400;
  cursor: pointer;
  padding: 8px 16px;
  transition: all 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
}

.bottom-nav-btn:hover {
  opacity: 0.6;
}

.bottom-nav-btn.active {
  font-weight: 700;
  opacity: 1;
}

.bottom-nav-btn span {
  display: block;
}

/* Add padding to body to prevent content from being hidden behind bottom nav */
/* Note: padding-bottom is set in body styles above */

@media (max-width: 900px) {
  body {
    padding-bottom: 60px;
  }

  /* Show bottom navigation on mobile */
  .bottom-nav {
    display: flex;
    padding: 10px 0;
  }

  .bottom-nav-btn {
    font-size: 11px;
    padding: 8px 12px;
  }
}

@media (max-width: 600px) {
  body {
    padding-bottom: 65px;
  }

  .bottom-nav {
    padding: 12px 0;
  }

  .bottom-nav-btn {
    font-size: 11px;
    padding: 10px 8px;
    min-height: 48px;
  }
}
