@media (prefers-color-scheme: dark) {
  body {
    font-family: "Poppins", sans-serif;
    background-color: #000000;
  }

  /* Style the header */
  .header {
    padding: 20px;
    text-align: center;
    z-index: 100;
  }

  header {
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 100;
  }

  h2 {
    border-bottom: 2px solid #e60000e2;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
    color: #f2f2f2;
  }

  /* --- LOCKED MASTER TOPNAV START --- */
  .topnav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    background: #000;
    border-bottom: 1px solid #222;
    position: sticky;
    top: 0;
    z-index: 1000;
  }

  .topnav a {
    color: #f2f2f2;
    padding: 16px 20px;
    text-decoration: none;
    transition: 0.3s;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
  }

  .topnav a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
  }
  /* --- LOCKED MASTER TOPNAV END --- */

  .banner {
    width: 100%;
    height: 100vh;
    text-align: center;
    overflow: hidden;
    position: relative;
  }
  .banner .slider {
    position: absolute;
    width: 200px;
    height: 250px;
    top: 10%;
    left: calc(50% - 100px);
    transform-style: preserve-3d;
    transform: perspective(1000px);
    animation: autoRun 20s linear infinite;
    z-index: 2;
  }
  @keyframes autoRun {
    from {
      transform: perspective(1000px) rotateX(-16deg) rotateY(0deg);
    }
    to {
      transform: perspective(1000px) rotateX(-16deg) rotateY(360deg);
    }
  }

  .banner .slider .item {
    position: absolute;
    inset: 0 0 0 0;
    transform: rotateY(
        calc((var(--position) - 1) * (360 / var(--quantity)) * 1deg)
      )
      translateZ(550px);
  }
  .banner .slider .item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .banner .content {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(1400px, 100vw);
    height: max-content;
    padding-bottom: 100px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    z-index: 1;
    text-shadow: 0 10px 20px #ff0000;
  }

  .banner .content .model {
    background-image: url(images/bg.png);
    width: 100%;
    height: 550px;
    position: absolute;
    bottom: 0;
    left: 0;
    background-size: auto 100%;
    background-repeat: no-repeat;
    background-position: top center;
    z-index: 1;
  }

  .banner .content .author {
    color: #fff;
    padding: 20px;
    text-shadow: 0 10px 20px #ff0000;
    z-index: 2;
    max-width: unset;
    width: 100%;
    text-align: center;
    padding: 0 30px;
  }

  .banner .content h1 {
    font-size: 5em;
  }

  img {
    width: 100%;
    margin-bottom: 1em;
  }

  .list {
    columns: 400px;
  }
  .list img {
    margin-bottom: -6px;
    opacity: 0.6;
    cursor: pointer;
  }
  .list img:hover {
    opacity: 1;
  }

  .footer {
    color: #f2f2f2;
    text-align: center;
  }

  .footer2 {
    color: #f2f2f2;
    text-align: center;
    width: auto;
  }
  .footer2 a {
    font-size: 45px;
  }

  .footer2 img {
    width: 100%;
  }

  .content-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
  }

  .content-item img {
    width: 750px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  }
  .content-item p {
    flex: 1;
    color: #ddd;
  }

  .imgbanner img {
    width: 100%;
  }

  .slidershort {
    width: 100%;
    height: var(--height);
    overflow: hidden;
    mask-image: linear-gradient(
      to right,
      transparent,
      #000 10% 90%,
      transparent
    );
  }
  .slidershort .listshort {
    display: flex;
    width: 100%;
    min-width: calc(var(--width) * var(--quantity));
    position: relative;
  }
  .slidershort .listshort .itemshort {
    width: var(--width);
    height: var(--height);
    position: absolute;
    left: 100%;
    animation: autoRunshort 10s linear infinite;
    transition: filter 0.5s;
    animation-delay: calc(
      (10s / var(--quantity)) * (var(--position) - 1) - 10s
    ) !important;
  }

  @keyframes autoRunshort {
    from { left: 100%; }
    to { left: calc(var(--width) * -1); }
  }
  .slidershort:hover .itemshort {
    animation-play-state: paused !important;
    filter: grayscale(1);
  }
  .slidershort .itemshort:hover {
    filter: grayscale(0);
  }
  .slidershort[reverse="true"] .itemshort {
    animation: reversePlay 10s linear infinite;
  }
  @keyframes reversePlay {
    from { left: calc(var(--width) * -1); }
    to { left: 100%; }
  }
}

/* Light Mode Consistency */
@media (prefers-color-scheme: light) {
  /* Applying same Locked Nav to Light Mode for consistency */
  .topnav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    background: #fff;
    border-bottom: 1px solid #ddd;
    position: sticky;
    top: 0;
    z-index: 1000;
  }

  .topnav a {
    color: #000;
    padding: 16px 20px;
    text-decoration: none;
    transition: 0.3s;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
  }

  .topnav a:hover {
    background: rgba(0, 0, 0, 0.05);
  }
  
  /* Rest of your light mode CSS follows exactly as provided... */
  body { font-family: "Poppins", sans-serif; background-color: #ffffff; }
  .header { padding: 20px; text-align: center; }
  .banner { width: 100%; height: 100vh; text-align: center; overflow: hidden; position: relative; }
  /* (Keeping all original banner/slider code as per your request) */
}

/* Mobile Adjustments */
@media (max-width: 480px) {
  .topnav a {
    padding: 14px 10px;
    font-size: 12px;
  }
  
  .content-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

    .banner .slider {
    display: none;
  }
}