    body {
      margin: 0;
      //font-family: 'Inter', sans-serif;
      //font-family: "Segoe UI", Arial, sans-serif;
      font-family: "Helvetica", Arial Narrow, sans-serif;
      background: #121212;
      color: #eaeaea;
      display: flex;
      height: 100vh;
      overflow: hidden;
    }

    /* Sidebar (1/4 block) */
    .sidebar {
      width: 15%;
      background: #1e1e1e;
      display: flex;
      flex-direction: column;
      padding: 20px;
      box-sizing: border-box;
    }

    .logo {
      font-size: 22px;
      font-weight: bold;
      margin-bottom: 30px;
      text-align: center;
      color: #00bfff;
    }

    nav {
      display: flex;
      flex-direction: column;
      gap: 15px;
    }

    nav a, nav select {
      background: #2a2a2a;
      color: #eaeaea;
      text-decoration: none;
      padding: 10px;
      border-radius: 6px;
      border: none;
      font-size: 15px;
      cursor: pointer;
    }

    nav a:hover, nav select:hover {
      background: #383838;
    }

    nav select {
      appearance: none;
    }

    /* Main content (3/4 block) */
    .main {
      width: 85%;
      display: flex;
      flex-direction: column;
      padding: 20px;
      box-sizing: border-box;
      overflow-y: auto;
    }

    .search-filter {
      display: flex;
      gap: 10px;
      margin-bottom: 20px;
    }

    .search-filter input, 
    .search-filter select {
      flex: 1;
      padding: 10px;
      border-radius: 6px;
      border: none;
      font-size: 14px;
      background: #2a2a2a;
      color: #eaeaea;
    }

    /*.banner {
      width: 100%;
      background: #1e1e1e;
      border-radius: 10px;
      margin-bottom: 25px;
      padding: 20px;
      min-height: 200px;
      box-sizing: border-box;
    }

    .banner.default {
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 28px;
      font-weight: bold;
      color: white;
      background: linear-gradient(135deg, #00bfff, #0066ff);
    }*/

    .categories {
  display: flex;
  gap: 5px;
  margin-bottom: 30px;
}

.category {
  position: relative; /* for overlay positioning */
  flex: 1;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s;
  cursor: pointer;
}

.category img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

/* Gradient overlay at bottom */
.category::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100px; /* adjust height of gradient */
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  pointer-events: none; /* ensures clicks pass through */
}

/* Title text */
.category a {
  position: absolute;
  bottom: 15px;
  left: 12px;
  color: #ffffff;
  font-weight: 600;
  text-align: left;
  z-index: 2;
  padding: 0; /* remove default padding */
}

/* Subtitle text */
.category .subtitle {
  position: absolute;
  bottom: 34px;
  left: 12px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.8rem;
  text-align: left;
  z-index: 2;
}

/* Hover effect */
.category:hover {
  transform: translateY(-5px);
}


.catalog {
  display: grid;
  grid-template-columns: repeat(5, 300px); /* 5 cards per row */
  grid-auto-rows: 300px; /* fixed card height */
  column-gap: 5px;       /* horizontal spacing */
  row-gap: 5px;          /* vertical spacing */
  justify-content: start;  /* left-align the grid */
  max-width: calc(5 * 300px + 4 * 15px); /* max width for 5 cards + horizontal gaps */
}
.model-card {
  width: 300px;
  height: 300px;
  background: #2a2a2a;
  border-radius: 10px;
  overflow: hidden; /* clip the overlay */
  position: relative; /* for overlay positioning */
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: flex-end; /* push overlay to bottom */
}

/* Image inside card */
.model-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Gradient overlay at bottom */
.model-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 200px; /* height of gradient */
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  pointer-events: none; /* let clicks pass through */
  border-radius: 0 0 10px 10px;
}

/* Title inside overlay */
.model-card .model-name {
  position: absolute;
  bottom: 15px;
  left: 10px;
  color: #ffffff;
  font-weight: bold;
  font-size: 16px;
  z-index: 2;
  text-align: left;
}

/* Hashtags next to title */
.model-card .model-tags {
  position: absolute;
  bottom: 5px;
  right: 10px;
  color: #ffffffcc; /* slightly transparent white */
  font-size: 11px;
  z-index: 2;
  text-align: right;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.model-card .model-tags span {
  background: rgba(0,0,0,0.3);
  padding: 2px 5px;
  border-radius: 4px;
}
/* NEW label in top-right corner */
.model-card .model-new {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #ffa34d;
  color: #fff;
  font-size: 12px;
  font-weight: bold;
  padding: 3px 6px;
  border-radius: 4px;
  z-index: 3;
  text-transform: uppercase;
}



    .model-name {
      font-weight: bold;
      font-size: 16px;
      margin-bottom: 10px;
    }

    .model-card:hover {
      transform: scale(1.05);
      background: #252525;
    }

    /* Model Detail View */
    .model-detail {
      display: flex;
      gap: 20px;
    }

    .model-detail .viewer {
      flex: 2;
    }

    .model-detail .viewer iframe {
      width: 100%;
      height: 700px;
      border-radius: 8px;
      border: none;
    }

    .model-detail .details {
      flex: 1;
      background: #1e1e1e;
      border-radius: 8px;
      padding: 20px;
      display: flex;
      flex-direction: column;
      align-items: center;
    }

    .model-detail .details img {
      width: 120px;
      height: 120px;
      border-radius: 50%;
      margin-bottom: 15px;
      object-fit: cover;
    }

    .tags {
      margin: 10px 0;
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
      justify-content: center;
    }

    .tags span {
      background: #2a2a2a;
      padding: 4px 8px;
      border-radius: 6px;
      font-size: 12px;
    }

    .download-btn {
      margin-top: auto;
      display: inline-block;
      background: #00bfff;
      color: white;
      padding: 10px 20px;
      border-radius: 6px;
      text-decoration: none;
      font-weight: bold;
    }

    .back-btn {
      display: inline-block;
      margin-bottom: 15px;
      color: #00bfff;
      text-decoration: none;
      font-size: 14px;
    }

    .back-btn:hover {
      text-decoration: underline;
	
    }

.banner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start; /* left align */
  padding: 40px;
  border-radius: 10px;
  min-height: 280px;
  margin-bottom: 25px;
  background: url("images/MainBanner.jpg") center/cover no-repeat; /* your image */
  color: white;
  overflow: hidden;
}

/* Gradient overlay */
.banner::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(135deg, rgba(0,0,0,0.6), rgba(0,102,255,0.6));
  border-radius: 10px;
}

/* Banner content (text above overlay) */
.banner-content {
  position: relative;
  max-width: 600px;
  z-index: 1;
  text-align: left;
}

.banner h1 {
  font-size: 36px;
  margin-bottom: 10px;
}

.banner p {
  font-size: 18px;
  margin-bottom: 20px;
  color: #eaeaea;
}

.banner-btn {
  background: #00bfff;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

.banner-btn:hover {
  background: #0099cc;
}

.detail-card {
  flex: 1;
  background: #1e1e1e;
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.detail-card .thumb {
  width: 140px;
  height: 140px;
  border-radius: 12px;
  object-fit: cover;
  margin-bottom: 16px;
}

.detail-card .title {
  font-size: 1.6rem;
  font-weight: 600;
  margin: 1rem 0 0.2rem 0; /* only small gap after title */
}

.detail-card .category {
  font-size: 1rem;
  color: #00bfff;
  margin: 0; /* remove default p margin */
}

.detail-card .date {
  font-size: 0.85rem;
  color: #aaa;
  margin: 0 0 1rem 0; /* small gap ONLY after date */
}

.detail-card .description {
  font-size: 1rem;
  line-height: 1.6;
  text-align: center;
  margin-top: 0.5rem; /* space before description */
}

.geometry-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  background: #2a2a2a;
  padding: 16px;
  border-radius: 10px;
  margin-bottom: 20px;
}

.geometry-item {
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  align-items: center;
}

.download-btn {
  background: #00bfff;
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
  transition: background 0.3s;
}

.download-btn:hover {
  background: #0099cc;
}

.file-info {
  display: flex;
  gap: 15px;
  font-size: 0.95rem;
  color: #ccc;
}

#preloader {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 9999;
  color: white;
  text-align: center;
  transition: background-image 1s ease-in-out;
}

#preloader .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8); /* black overlay */
  z-index: 1;
}

.preloader-content {
  position: relative;
  z-index: 2;
}

.spinner {
  border: 6px solid #2a2a2a;
  border-top: 6px solid #00bfff;
  border-radius: 50%;
  width: 50px; height: 50px;
  animation: spin 1s linear infinite;
  margin-bottom: 15px;
}
@keyframes spin {
  0% { transform:rotate(0deg); }
  100% { transform:rotate(360deg); }
}

.sidebar-section {
  margin-top: 20px;
}

.sidebar-section h3 {
  margin-bottom: 8px;
  color: #00bfff;
  font-size: 14px;
  font-weight: bold;
}

.sidebar-item {
  display: flex;
  justify-content: space-between; /* push name left, count right */
  align-items: center;
  padding: 8px 10px;
  margin-bottom: 2px;
  background: transparent;       /* remove background color */
  border-radius: 0;              /* remove rounded corners */
  cursor: pointer;
  font-size: 13px;
  font-weight: normal;           /* normal text weight */
  color: #9c9898;                /* text color */
}

.sidebar-item:hover {
  background: rgba(255,255,255,0.05); /* subtle hover effect */
}

.item-count {
  color: #9c9898;     /* count color */
  font-weight: bold;
}
.download-popup {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6); /* dim overlay */
  display: flex; align-items: center; justify-content: center;
  z-index: 1000;
}
.download-popup.hidden { display: none; }

.download-popup .popup-content {
  background: #111;          /* black-ish background */
  color: #f5f5f5;            /* light text */
  padding: 20px;
  border-radius: 12px;
  width: 320px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.progress-bar {
  width: 100%; height: 12px;
  background: #333;          /* darker track */
  border-radius: 6px;
  margin: 10px 0;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: #4caf50;       /* green progress */
  border-radius: 6px;
  transition: width 0.3s;
}


