/* Film Noir Home Page Styling */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Special Elite", "Courier New", monospace;
  background: linear-gradient(135deg, #0a0805 0%, #1a1410 50%, #0d0908 100%);
  color: #e8e8d0;
  overflow-x: hidden;
  overflow-y: hidden;
}

/* Typewriter Accordion Nav */
.typewriter-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  display: flex;
  gap: 0;
  background: rgba(8, 6, 4, 0.92);
  border-bottom: 1px solid rgba(232, 232, 208, 0.15);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.8);
}

.nav-item {
  position: relative;
  flex: 1;
}

.nav-parent {
  width: 100%;
  background: transparent;
  border: none;
  border-right: 1px solid rgba(232, 232, 208, 0.1);
  color: #c8c8a8;
  font-family: "Special Elite", "Courier New", monospace;
  font-size: 1rem;
  letter-spacing: 0.12em;
  padding: 14px 40px;
  cursor: pointer;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-parent:hover,
.nav-item.open .nav-parent {
  background: rgba(232, 232, 208, 0.06);
  color: #e8e8d0;
  text-shadow: 0 0 8px rgba(232, 232, 208, 0.3);
}

.nav-arrow {
  font-size: 0.65rem;
  opacity: 0.6;
  transition: transform 0.25s ease;
}

.nav-children {
  list-style: none;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background: rgba(6, 4, 3, 0.96);
  border-right: 1px solid rgba(232, 232, 208, 0.1);
  border-bottom: 1px solid rgba(232, 232, 208, 0.1);
  position: absolute;
  width: 100%;
  top: 100%;
  left: 0;
}

.nav-item.open .nav-children {
  max-height: 200px;
}

.nav-children li a {
  display: block;
  padding: 10px 24px;
  color: #a8a888;
  font-family: "Special Elite", "Courier New", monospace;
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  text-decoration: none;
  border-top: 1px solid rgba(232, 232, 208, 0.05);
  transition: background 0.15s ease, color 0.15s ease;
}

.nav-children li a:hover {
  background: rgba(232, 232, 208, 0.07);
  color: #e8e8d0;
  text-shadow: 0 0 6px rgba(232, 232, 208, 0.25);
  padding-left: 30px;
}

.noir-container {
  width: 100%;
  height: calc(100vh - 49px);
  margin-top: 49px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  background: radial-gradient(ellipse at 50% 50%, #2a2420 0%, #0f0d0a 100%);
  box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.8);
}

.image-area {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  position: relative;
}

.case-image {
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
  filter: drop-shadow(0 0 30px rgba(0, 0, 0, 0.7));
  opacity: 0.95;
  transition: opacity 0.3s ease;
}

.case-image:hover {
  opacity: 1;
}

.text-overlay {
  position: absolute;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  animation: flicker 4s infinite;
}

.tagline {
  font-size: 2.5rem;
  text-align: center;
  letter-spacing: 0.15em;
  color: #e8e8d0;
  text-shadow:
    0 0 10px rgba(232, 232, 208, 0.5),
    0 0 20px rgba(200, 200, 160, 0.3),
    2px 2px 4px rgba(0, 0, 0, 0.8);
  font-weight: bold;
  font-style: italic;
  font-family: "Georgia", serif;
  white-space: nowrap;
}

@keyframes flicker {
  0%,
  19%,
  21%,
  23%,
  25%,
  54%,
  56%,
  100% {
    text-shadow:
      0 0 10px rgba(232, 232, 208, 0.5),
      0 0 20px rgba(200, 200, 160, 0.3),
      2px 2px 4px rgba(0, 0, 0, 0.8);
    opacity: 1;
  }
  20%,
  24%,
  55% {
    text-shadow:
      0 0 10px rgba(232, 232, 208, 0.2),
      0 0 20px rgba(200, 200, 160, 0.1),
      2px 2px 4px rgba(0, 0, 0, 0.8);
    opacity: 0.85;
  }
}

/* Film grain effect */
.film-grain {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100"><filter id="noise"><feTurbulence type="fractalNoise" baseFrequency="0.9" numOctaves="4" /></filter><rect width="100" height="100" filter="url(%23noise)" opacity="0.05"/></svg>');
  background-size: 100px 100px;
  animation: grain 0.8s infinite;
}

@keyframes grain {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 100px 100px;
  }
}

/* Responsive design */
@media (max-width: 768px) {
  .tagline {
    font-size: 1.8rem;
    bottom: 40px;
  }
}

@media (max-width: 480px) {
  .tagline {
    font-size: 1.3rem;
    bottom: 30px;
    letter-spacing: 0.1em;
  }
}
