/* =========================================
   Base & Reset
   ========================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #f4f4f4;
  /* Deep animated gradient background */
  background: linear-gradient(135deg, #050505 0%, #1a0505 25%, #000000 50%, #1a0505 75%, #050505 100%);
  background-size: 400% 400%;
  animation: mysteryShift 20s ease infinite;
  min-height: 100vh;
  position: relative;
}

/* Pulsating shadow vignette overlay */
body::before {
    content: "";
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    /* Vignette effect */
    background: radial-gradient(circle at center, transparent 0%, #000000 120%);
    pointer-events: none;
    z-index: -1;
    animation: pulseVignette 8s ease-in-out infinite;
}

@keyframes mysteryShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes pulseVignette {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.8; }
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  margin-left: 1.5em; /* Default indentation for lists */
}

/* =========================================
   Header & Navigation
   ========================================= */
header {
  background-color: rgba(26, 26, 26, 0.5);
  backdrop-filter: blur(8px);
  color: #ffffff;
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  transition: background-color 0.3s ease;
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6em 1.2em;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo img {
  height: 44px;
  width: auto;
  border-radius: 4px;
}

.logo span,
.logo-text {
  color: #ff4c4c;
  font-weight: bold;
  font-size: 1.1em;
  margin-left: 0.6em;
  vertical-align: middle;
}

.header-socials {
  display: flex;
  align-items: center;
  gap: 0.6em;
}

.header-socials .social-icon {
  width: 30px;
  height: 30px;
  padding: 5px;
}

nav {
  position: fixed;
  top: 0;
  right: 0;
  display: flex;
  gap: 0.4em;
  align-items: center;
  padding: 0.6em 1.2em;
  z-index: 101;
  flex-wrap: nowrap;
}

nav a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  padding: 0.5em 0.9em;
  border-radius: 6px;
  font-size: 0.95rem;
  position: relative;
}

/* Underline slide-in effect on hover */
nav a::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: #dc143c;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

nav a:hover::after {
  width: 70%;
}

nav a:hover {
  color: #ff4c4c;
  background-color: rgba(139, 0, 0, 0.3);
}

/* Mobile nav toggle (hamburger) */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 201; /* Above the sidebar overlay */
  padding: 6px;
  border-radius: 4px;
  transition: background 0.3s ease;
}

.nav-toggle:hover {
  background: rgba(220, 20, 60, 0.15);
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: #dc143c; /* Theme crimson red */
  transition: all 0.4s cubic-bezier(0.68, -0.6, 0.32, 1.6);
  transform-origin: center;
}

/* Animated X when active */
.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* =========================================
   Inputs & Buttons (Global)
   ========================================= */
input,
textarea,
select {
  width: 100%;
  padding: 0.7em 0.8em;
  border: 1px solid #3a3a3a;
  border-radius: 6px;
  font-size: 0.95rem;
  font-family: inherit;
  background: #101010;
  color: #f4f4f4;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: #dc143c;
  box-shadow: 0 0 6px rgba(220, 20, 60, 0.4);
}

button,
.cta-button,
.submit-btn {
  background-color: #dc143c;
  color: white;
  padding: 0.9em 2.2em;
  border: none;
  border-radius: 999px;
  font-size: 1rem;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.25s ease;
  display: inline-block;
  text-align: center;
  text-decoration: none;
}

.cta-button {
  border: 2px solid #dc143c;
}

button:hover,
.cta-button:hover,
.submit-btn:hover {
  background-color: #8b0000;
  transform: translateY(-2px);
}

.cta-button:hover {
  border-color: #c41e3a;
}

/* =========================================
   Layout & Typography
   ========================================= */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3em 1.5em;
}

section {
  padding: 3.2em 0;
  /* Glassmorphism / Highly transparent */
  background-color: rgba(10, 10, 10, 0.25);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  border-bottom: 1px solid rgba(42, 42, 42, 0.3);
}

section:nth-of-type(even) {
  background-color: rgba(15, 15, 15, 0.35);
}

.section-header {
  text-align: center;
  margin-bottom: 2em;
}

h1,
h2,
h3 {
  color: #ff4c4c;
}

h1.page-title {
  margin-bottom: 0.5em;
  border-bottom: 3px solid #dc143c;
  padding-bottom: 0.4em;
  display: inline-block;
}

section h2 {
  font-size: 2.1em;
  margin-bottom: 0.7em;
  text-align: center;
  border-bottom: 3px solid #dc143c;
  padding-bottom: 0.4em;
  display: inline-block;
}

section h3 {
  color: #f4f4f4;
  font-size: 1.4em;
  margin-top: 1.2em;
  margin-bottom: 0.4em;
}

p {
  color: #d0d0d0;
  margin-bottom: 1em;
}

/* Generic Content Lists (e.g. Legal pages) */
.container ul:not([class]), .container ol:not([class]) {
  margin-left: 1.5em;
  color: #d0d0d0;
  margin-bottom: 1em;
}

.container ul:not([class]) li, .container ol:not([class]) li {
  margin-bottom: 0.5em;
}

/* Table Styles */
.shipping-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
}

.shipping-table th,
.shipping-table td {
    border: 1px solid #333;
    padding: 0.8em;
    text-align: left;
    color: #d0d0d0;
}

.shipping-table th {
    background-color: rgba(26, 26, 26, 0.5);
    color: #FF4C4C;
    backdrop-filter: blur(2px);
}

/* =========================================
   Blood Stain Animation Effects
   ========================================= */
#blood-effects {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -2; /* Behind body content but visible on background */
    overflow: hidden;
}

.blood-stain {
    position: absolute;
    background: radial-gradient(circle, rgba(138, 3, 3, 0.7) 0%, rgba(100, 0, 0, 0.4) 40%, transparent 70%);
    border-radius: 50% 45% 55% 50% / 50% 55% 45% 50%; /* Organic shape */
    filter: blur(8px);
    opacity: 0;
    animation: bloodAppear 12s ease-in-out infinite;
}

@keyframes bloodAppear {
    0% { opacity: 0; transform: scale(0.8); }
    20% { opacity: 0.6; transform: scale(1); }
    80% { opacity: 0.4; transform: scale(1.1); }
    100% { opacity: 0; transform: scale(1.2); }
}

/* =========================================
   Hero Section
   ========================================= */
.hero {
  background: radial-gradient(
    circle at top,
    rgba(58, 0, 0, 0.6) 0%,
    rgba(26, 26, 26, 0.7) 40%,
    rgba(5, 5, 5, 0.8) 100%
  );
  backdrop-filter: blur(2px);
  color: white;
  padding: 5em 1.5em 3.5em; /* Specific padding overrides section */
  text-align: center;
  border-bottom: 4px solid #dc143c;
}

.hero h1 {
  font-size: 2.8em;
  margin-bottom: 0.4em;
  color: #dc143c;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
  border-bottom: none;
  display: block;
}

.hero p {
  font-size: 1.1em;
  margin-bottom: 1.7em;
  color: #dddddd;
}

.hero-cover {
    background-image: url('../images/ttf_cover.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 70vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2em 1.5em;
}

.hero-cover::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

/* =========================================
   Components
   ========================================= */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.7em;
  margin: 1.7em 0;
}

.card {
  background: rgba(30, 30, 30, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.08); /* Subtle border for glass effect */
  border-radius: 12px;
  padding: 1.8em;
  text-align: left;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.card:hover {
  background: rgba(40, 40, 40, 0.5); /* Slightly lighter on hover */
  border-color: #dc143c;
  box-shadow: 0 12px 30px rgba(220, 20, 60, 0.25);
  transform: translateY(-6px);
}

.card h3 {
  margin-top: 0;
}

.product-image-placeholder {
  width: 100%;
  height: 250px;
  background: linear-gradient(135deg, #1a1a1a 0%, #8b0000 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.1em;
  margin-bottom: 1em;
  overflow: hidden;
}

.product-image-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.features {
  list-style: none;
  padding: 0.8em 0 0;
  margin-left: 0; /* Reset default ul margin */
}

.features li {
  padding: 0.55em 0;
  padding-left: 1.7em;
  position: relative;
  color: #d0d0d0;
  font-size: 0.96rem;
}

.features li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #ff4c4c;
  font-weight: bold;
  font-size: 1.1em;
}

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 2.3em;
  align-items: center;
  margin: 2em 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 2.3em;
  margin: 2em 0;
}

/* FAQ */
.faq-item {
  background: rgba(30, 30, 30, 0.4);
  margin: 0.9em 0;
  border: 1px solid rgba(52, 52, 52, 0.5);
  border-radius: 8px;
  overflow: hidden;
  backdrop-filter: blur(5px);
  transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: #dc143c;
    box-shadow: 0 4px 12px rgba(220, 20, 60, 0.2);
}

.faq-question {
  background-color: rgba(32, 32, 32, 0.5);
  padding: 0.9em 1.1em;
  cursor: pointer;
  font-weight: 600;
  color: #f4f4f4;
  border-bottom: 1px solid rgba(52, 52, 52, 0.3);
  transition: all 0.3s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.98rem;
}

.faq-question:hover {
  background-color: rgba(139, 0, 0, 0.4); /* Dark red tint */
  color: #ff4c4c;
}

.faq-answer {
  padding: 1.1em;
  display: none;
  color: #e0e0e0;
  font-size: 0.95rem;
  background-color: rgba(0, 0, 0, 0.2);
  line-height: 1.6;
}

.faq-answer.active {
  display: block;
}

.faq-toggle {
  font-size: 1.4em;
  transition: transform 0.25s ease;
}

.faq-toggle.active {
  transform: rotate(45deg);
}

/* =========================================
   Forms
   ========================================= */
/* Default contact form */
form {
  max-width: 600px;
  margin: 1.7em auto;
  background: rgba(30, 30, 30, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 2em;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 4px solid #dc143c;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

form:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
}

.form-group {
  margin-bottom: 1.2em;
}

label {
  display: block;
  margin-bottom: 0.4em;
  font-weight: 600;
  color: #f4f4f4;
  font-size: 0.95rem;
}

/* Specific Promo/Unlock Form Container (overrides generic form if used inside) */
.form-container {
  background-color: rgba(26, 26, 26, 0.9);
  backdrop-filter: blur(4px);
  border: 1px solid #333;
  border-radius: 10px;
  padding: 2em;
  margin: 2em 0;
  max-width: none; /* Reset max-width if needed */
  box-shadow: none;
  border-left: 1px solid #333; /* Reset red border */
}

/* Promo form specific */
#discountForm {
  max-width: 100%;
  margin: 0;
  background: transparent;
  padding: 0;
  border: none;
  box-shadow: none;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1.5em;
}

input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-right: 0.8em;
  cursor: pointer;
  accent-color: #dc143c;
  margin-top: 0.2em;
}

.checkbox-label {
  color: #d0d0d0;
  font-weight: 400;
  margin: 0;
  line-height: 1.5;
}

.discount-badge {
  background: linear-gradient(135deg, #8b0000 0%, #dc143c 100%);
  color: white;
  padding: 1em;
  border-radius: 8px;
  margin: 1.5em 0;
  text-align: center;
  font-size: 1.2em;
  font-weight: bold;
}

.success-message,
.error-message {
  display: none;
  padding: 1.2em;
  border-radius: 8px;
  margin: 1.5em 0;
  text-align: center;
  font-weight: 500;
}

.success-message {
  background-color: rgba(50, 184, 198, 0.15);
  border: 1px solid #32b8c6;
  color: #32b8c6;
}

.error-message {
  background-color: rgba(220, 20, 60, 0.15);
  border: 1px solid #dc143c;
  color: #ff4c4c;
}

/* =========================================
   Footer
   ========================================= */
footer {
  /* Dark blood red gradient overlay */
  background: linear-gradient(
    180deg,
    rgba(58, 0, 0, 0.9) 0%,
    rgba(30, 0, 0, 0.95) 40%,
    rgba(10, 0, 0, 0.98) 100%
  );
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  color: #bbbbbb;
  text-align: center;
  padding: 1.2em 1.5em; /* Narrower */
  margin-top: 3em;
  border-top: 1px solid rgba(220, 20, 60, 0.6);
  font-size: 0.85rem;
}

.footer-socials {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.2em;
  margin: 1em 0;
}

.contact-socials {
  display: flex;
  align-items: center;
  gap: 1em;
  margin-top: 0.5em;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: #8b0000; /* Blood red */
  border: 1px solid rgba(139, 0, 0, 0.4);
  border-radius: 50%;
  padding: 7px;
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-icon svg {
  width: 100%;
  height: 100%;
}

.social-icon:hover {
  color: #dc143c; /* Brighter crimson on hover */
  border-color: #dc143c;
  transform: scale(1.15);
  box-shadow: 0 0 12px rgba(220, 20, 60, 0.6), 0 0 24px rgba(220, 20, 60, 0.3);
}

.footer-links {
  margin-top: 0.8em;
}

.footer-links a {
  color: #ff4c4c;
  text-decoration: none;
  margin: 0 0.7em;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: #ffffff;
}

/* =========================================
   Responsive
   ========================================= */
@media (max-width: 768px) {
  .header-top {
    padding: 0.5em 1em;
    flex-wrap: wrap;
  }

  .logo img {
    height: 36px;
  }

  .nav-toggle {
    display: flex;
  }

  /* Dark overlay behind sidebar */
  .nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 149;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
  }

  .nav-overlay.show {
    opacity: 1;
    visibility: visible;
  }

  /* Slide-from-right sidebar */
  nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    flex-direction: column;
    gap: 0;
    /* Deep blood red glassmorphism */
    background: linear-gradient(
      180deg,
      rgba(30, 0, 0, 0.92) 0%,
      rgba(15, 5, 5, 0.95) 50%,
      rgba(5, 0, 0, 0.98) 100%
    );
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-left: 1px solid rgba(220, 20, 60, 0.3);
    box-shadow: -8px 0 30px rgba(0, 0, 0, 0.7);
    z-index: 150;
    padding-top: 5em; /* Space for header */
    
    /* Slide animation */
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    overflow-y: auto;
  }

  nav.show {
    transform: translateX(0);
  }

  nav a {
    padding: 1em 1.8em;
    background: transparent;
    border-radius: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    display: block;
    font-size: 1rem;
    color: #e0e0e0;
    transition: all 0.3s ease;
    /* Stagger effect */
    opacity: 0;
    transform: translateX(30px);
  }

  nav.show a {
    opacity: 1;
    transform: translateX(0);
  }

  /* Stagger each link's appearance */
  nav.show a:nth-child(1) { transition-delay: 0.05s; }
  nav.show a:nth-child(2) { transition-delay: 0.10s; }
  nav.show a:nth-child(3) { transition-delay: 0.15s; }
  nav.show a:nth-child(4) { transition-delay: 0.20s; }
  nav.show a:nth-child(5) { transition-delay: 0.25s; }
  nav.show a:nth-child(6) { transition-delay: 0.30s; }
  nav.show a:nth-child(7) { transition-delay: 0.35s; }

  nav a::after {
    display: none; /* Remove underline effect in mobile */
  }

  nav a:hover {
    background: rgba(220, 20, 60, 0.2);
    color: #ff4c4c;
    padding-left: 2.2em; /* Indent on hover */
  }

  .hero {
    padding: 4em 1.1em 3em;
  }

  .hero h1 {
    font-size: 2.1em;
  }

  .container {
    padding: 2em 1.1em;
  }

  .two-col,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 1.6em;
  }

  form,
  .form-container {
    padding: 1.3em;
    margin: 1.4em 0;
  }

  .grid {
    gap: 1.3em;
  }

  .cart-summary {
    padding: 1.4em 1.1em;
  }

  .shipping-table {
    font-size: 0.9em;
  }

  .shipping-table th,
  .shipping-table td {
    padding: 0.6em;
  }
}
