/* Import Google Font */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;700&family=Special+Elite&display=swap');

/* Global Styles */
body {
    font-family: 'Cinzel', serif;
    background: #000;
    margin: 0;
    padding: 0;
    color: #f5f5f5;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Background Video */
.video-bg {
    position: fixed; /* Ensures the video stays in the background */
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    z-index: -2;
    filter: brightness(40%);
}

/* Overlay to darken the video for better contrast */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: -1;
}

/* Page Title */
h1 {
    text-align: center;
    color: #ff0000;
    font-family: 'Special Elite', cursive;
    font-size: 2.5rem;
    text-shadow: 2px 2px 10px rgba(255, 0, 0, 0.7);
    margin-top: 20px;
}

/* Search Form */
.search-form {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 20px;
}

.search-form input[type="text"],
.search-form select {
    padding: 10px;
    width: 200px;
    border: 1px solid #660000;
    border-radius: 6px;
    font-size: 16px;
    background: #2a2a2a;
    color: #f5f5f5;
}

/* Buttons */
.search-form input[type="submit"] {
    padding: 10px 20px;
    background: #ff0000;
    border: none;
    color: #fff;
    font-size: 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s ease-in-out, transform 0.2s;
}

.search-form input[type="submit"]:hover {
    background: #990000;
    transform: scale(1.05);
}

/* Items Grid Layout */
.items-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 50px;
    padding: 20px;
    max-width: 1200px;
    margin: auto;
}

/* Horror-Style Box Effect */
.item-card {
    background: #111;
    background-image: url('/images/grunge-texture.png'); /* Optional */
    background-blend-mode: multiply;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 5px 5px 15px rgba(255, 0, 0, 0.3), inset 0 0 20px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
    max-width: 280px;
    text-align: center;
    margin: auto;
    border: 4px solid #660000;
}

.item-card:hover {
    transform: scale(1.05);
    box-shadow: 0px 0px 25px rgba(255, 0, 0, 0.7);
}

/* Item Image */
.item-card img {
    width: 250px;
    height: 250px;
    border-radius: 6px;
    object-fit: cover;
    display: block;
    margin: auto;
}

/* Text Styling */
.item-card h3 {
    font-size: 1rem;
    margin-top: 10px;
    color: #ff4444;
    font-family: 'Special Elite', cursive;
    text-shadow: 1px 1px 5px rgba(255, 0, 0, 0.5);
}

.item-card p {
    font-size: 0.85rem;
    color: #bbb;
    margin-bottom: 5px;
}

/* Footer stays at the bottom */
.footer {
    text-align: center;
    font-size: 1rem;
    font-family: 'Cinzel', serif;
    color: #bbb;
    background-color: rgba(0, 0, 0, 0.8);
    padding: 1em;
    border-top: 2px solid #660000; /* Blood-red top border */
    text-shadow: 1px 1px 3px rgba(255, 0, 0, 0.5);
    }
  
  /* ... (the rest of your CSS remains unchanged) ... */
  
    
       /* Back to Top Arrow */
  .back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #660000; /* Blood-red background */
    color: #fff;
    padding: 10px 15px;
    border-radius: 50%;
    text-align: center;
    font-size: 2rem;
    text-decoration: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    transition: background 0.3s ease;
    z-index: 1000;
  }
  
  .back-to-top:hover {
    background: #ff0000;
  }
  
   /* Navigation Menu */
  .main-nav {
  position: relative;
  }
  
  /* Hamburger button (hidden on larger screens) */
  .hamburger {
  display: none;
  background: none;
  border: none;
  color: #ff4444;
  font-size: 2rem;
  cursor: pointer;
  }
  
  /* Nav menu list: horizontal layout by default */
  .nav-menu {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 1.5em;
  margin-bottom: 2em;
  padding: 0;
  }
  
    /* Navigation Menu */
    .main-nav {
        position: relative;
        margin-bottom: 1em;
      }
      .hamburger {
        display: none;
        background: none;
        border: none;
        color: #ff4444;
        font-size: 2rem;
        cursor: pointer;
      }
      .nav-menu {
        list-style: none;
        display: flex;
        justify-content: center;
        gap: 1.5em;
        margin-bottom: 2em;
        padding: 0;
      }
      .nav-menu a {
        color: #ffffff;
        text-decoration: none;
        font-size: 0.9rem;
        transition: color 0.3s ease;
        font-weight: 600;
      }
      .nav-menu a:hover {
        color: #fe2631;
      } 
      
      /* Responsive adjustments for small screens */
      @media (max-width: 768px) {
        .hamburger {
          display: block;
          margin: 0 auto;
          margin-bottom: 1em;
        }
        .nav-menu {
          flex-direction: column;
          display: none;  /* Hidden by default on mobile */
          width: 100%;
          text-align: center;
          gap: 0.8em;
        }
        .nav-menu.active {
          display: flex;
        }
        .nav-menu li {
          margin: 0.5em 0;
        }
      }
.subtitle {
    text-align: center;
    margin-bottom: 1em;
  }
/* Instagram Links */
.subtitle a {
    color: #ff4444;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.subtitle a:hover {
    color: #ff0000;
    text-shadow: 0 0 8px rgba(255, 0, 0, 0.8);
}

/* Modal Background */
.image-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
}

/* Modal Image */
.image-modal img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(255, 255, 255, 0.2);
}

/* Close Button */
.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 30px;
    color: white;
    cursor: pointer;
}



/* Responsive Design */
@media screen and (max-width: 1024px) {
    .items-container {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 15px;
    }
    .item-card {
        max-width: 100%;
        padding: 12px;
    }
    .item-card img {
        width: 250px;
        height: 250px;
    }
}

/* Item Title Styling - Bigger Font */
.item-card h3 {
    font-size: 1.3rem; /* Increased from 1rem */
    margin-top: 10px;
    color: #ff4444;
    font-family: 'Special Elite', cursive;
    text-shadow: 1px 1px 5px rgba(255, 0, 0, 0.5);
}

/* Item Description Text - More Readable */
.item-card p {
    font-size: 1rem; /* Increased from 0.85rem */
    color: #ddd; /* Lighter gray for better contrast */
    margin-bottom: 8px;
    line-height: 1.5; /* Increases spacing between lines for better readability */
    letter-spacing: 0.3px; /* Subtle adjustment for a cleaner look */
}

/* Pagination Navigation */
.pagination {
    text-align: center;
    margin: 2em 0;
  }
  
  .pagination a {
    display: inline-block;
    margin: 0 0.5em;
    padding: 0.5em 1em;
    border: 2px solid #660000;
    border-radius: 4px;
    color: #ff4444;
    text-decoration: none;
    font-family: 'Cinzel', serif;
    transition: background-color 0.3s ease, color 0.3s ease;
  }
  
  .pagination a:hover,
  .pagination a.active {
    background-color: #ff0000;
    color: #fff;
    font-weight: bold;
  }
  

@media screen and (max-width: 768px) {
    .video-bg {
        position: fixed !important; /* Ensures it overrides any other settings */
        min-width: 100vw;
        min-height: 100vh;
        object-fit: cover;
    }
}

@media screen and (max-width: 480px) {
    .items-container {
        grid-template-columns: 1fr;
    }
    .item-card {
        padding: 10px;
        width: 100%;
        max-width: 250px;
    }
    .search-form input[type="text"],
    .search-form select,
    .search-form input[type="submit"] {
        width: 100%;
        max-width: 250px;
    }
}
