/* Reset and basic styling */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Cinzel', serif; /* Horror vibe but readable */
  background-color: #000;
  color: #fff;
  background: url('/images/bg2.png') no-repeat center center fixed;
  background-size: cover;
  line-height: 1.6;
  padding: 1em;
  position: relative;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Ensure the main content takes up available space */
.container {
  flex-grow: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1em;
  position: relative;
  z-index: 1;
}

/* Updated Grid Layout for Cards */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(450px, 1fr));
  gap: 10px;
  align-items: start; /* Ensures each grid item maintains its natural height */
}

/* Video Background */
.video-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  filter: brightness(80%);
}

/* Overlay for better readability */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: -1;
}

/* Content appears above the overlay */
.content {
  position: relative;
  z-index: 2;
  padding: 20px;
  color: #fff; /* Ensure text is readable on dark backgrounds */
}

h1 {
  text-align: center;
  font-size: 3rem;
  font-family: 'Special Elite', cursive;
  color: #ff0000;
  text-shadow: 2px 2px 10px rgba(255, 0, 0, 0.7);
  margin-bottom: 0.3em;
}

.subtitle {
  text-align: center;
  margin-bottom: 1em;
}

.subtitle a {
  color: #ff4444; /* Blood red links */
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}
.subtitle a:hover {
  color: #ff0000; /* Brighter red on hover */
  text-shadow: 0 0 8px rgba(255, 0, 0, 0.8);
}

/* 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 */
}

/* Card styling - rugged, horror effect */
.card {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background-color: #111;
  background-image: url('/images/grunge-texture.png'); /* Optional */
  background-blend-mode: multiply;
  border: 4px solid #660000; /* Blood-red border */
  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;
}
.card:hover {
  transform: scale(1.05);
  box-shadow: 0px 0px 25px rgba(255, 0, 0, 0.7);
}
.card img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

/* Text container below image */
.card-text {
  width: 100%;
  padding: 12px;
  background: #111;
  border-top: 2px solid #660000;
}

.card-title {
  font-family: 'Special Elite', cursive;
  font-size: 1.6rem;
  text-transform: uppercase;
  text-align: center;
  color: #ff0000;
  letter-spacing: 1px;
  text-shadow: 2px 2px 5px rgba(255, 0, 0, 0.7);
  padding: 0.5em;
}

 /* 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;
  }
}

/* Footer Styling */
.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;
  text-shadow: 1px 1px 3px rgba(255, 0, 0, 0.5);
}

/* Back-to-Top Arrow */
.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #660000;
  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;
}