/* ===========================
   RESET & BASE
=========================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --red: #e60012;
  --dark-red: #8b0000;
  --blood: #c0001a;
  --black: #0a0a0a;
  --dark: #111111;
  --dark-2: #1a1a1a;
  --gray: #2a2a2a;
  --light-gray: #888;
  --white: #f0e8e8;
  --cream: #ffe0d0;
  --font-title: 'Bebas Neue', sans-serif;
  --font-body: 'Rajdhani', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ===========================
   CANVAS BLOOD PARTICLES
=========================== */
#bloodCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.25;
}

/* ===========================
   NAVBAR
=========================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 4rem;
  background: linear-gradient(to bottom, rgba(0,0,0,0.95), transparent);
  backdrop-filter: blur(4px);
  transition: background 0.3s ease;
}

.navbar.scrolled {
  background: rgba(10,10,10,0.95);
  border-bottom: 1px solid var(--dark-red);
}

.nav-logo {
  font-family: var(--font-title);
  font-size: 1.6rem;
  letter-spacing: 3px;
  color: var(--red);
  text-shadow: 0 0 20px rgba(230, 0, 18, 0.6);
  cursor: default;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2.5rem;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--light-gray);
  transition: color 0.3s ease;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--red);
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: var(--white);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta a {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  background: var(--red);
  color: var(--white);
  padding: 0.6rem 1.4rem;
  border: 2px solid var(--red);
  transition: all 0.3s ease;
}

.nav-cta a:hover {
  background: transparent;
  color: var(--red);
}

/* ===========================
   HERO SECTION
=========================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8rem;
  overflow: hidden;
  z-index: 1;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 60% 50%, rgba(139,0,0,0.3) 0%, transparent 60%),
    radial-gradient(ellipse at 10% 80%, rgba(230,0,18,0.1) 0%, transparent 50%);
  z-index: -1;
}

.hero-bg-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-title);
  font-size: clamp(8rem, 18vw, 22rem);
  letter-spacing: 0.05em;
  color: rgba(230, 0, 18, 0.04);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  z-index: -1;
}

.hero-content {
  z-index: 2;
  max-width: 650px;
}

.hero-tag {
  font-size: 0.8rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 1.2rem;
  font-weight: 600;
}

.hero-title {
  font-family: var(--font-title);
  font-size: clamp(5rem, 10vw, 9rem);
  line-height: 0.9;
  letter-spacing: 4px;
  margin-bottom: 1.5rem;
  color: var(--white);
}

.hero-title em {
  font-style: normal;
  color: var(--red);
  text-shadow:
    0 0 40px rgba(230,0,18,0.8),
    0 0 80px rgba(230,0,18,0.4);
  -webkit-text-stroke: 1px var(--red);
}

.hero-title .slash {
  color: var(--dark-red);
  font-size: 0.5em;
  vertical-align: middle;
  margin-right: 0.2em;
}

.hero-subtitle {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--light-gray);
  margin-bottom: 2.5rem;
  max-width: 480px;
  font-weight: 400;
}

.hero-buttons {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.btn {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  padding: 0.85rem 2.2rem;
  border: 2px solid var(--red);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--red);
  transition: left 0.3s ease;
  z-index: -1;
}

.btn:hover::before {
  left: 0;
}

.btn-primary {
  background: var(--red);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--dark-red);
  border-color: var(--dark-red);
}

.btn-outline {
  background: transparent;
  color: var(--white);
}

.btn-outline:hover {
  color: var(--white);
}

/* Hero chainsaw illustration */
.hero-chainsaw {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: float 3s ease-in-out infinite;
}

.chainsaw-icon {
  font-size: 12rem;
  filter: drop-shadow(0 0 40px rgba(230,0,18,0.6));
  transform: rotate(45deg);
  line-height: 1;
}

.blood-drip {
  width: 4px;
  height: 80px;
  background: linear-gradient(to bottom, var(--red), transparent);
  animation: drip 2s ease-in-out infinite;
  border-radius: 4px;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(2deg); }
  50% { transform: translateY(-20px) rotate(-2deg); }
}

@keyframes drip {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  50% { opacity: 0.5; transform: scaleY(1.3); }
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--light-gray);
  font-size: 0.75rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  animation: fadeInUp 1s ease 1s both;
}

.scroll-arrow {
  width: 20px;
  height: 20px;
  border-right: 2px solid var(--red);
  border-bottom: 2px solid var(--red);
  transform: rotate(45deg);
  animation: bounce 1.5s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: rotate(45deg) translateY(0); }
  50% { transform: rotate(45deg) translateY(6px); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateX(-50%) translateY(20px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ===========================
   SECTION HEADERS
=========================== */
.section-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.section-num {
  font-family: var(--font-title);
  font-size: 5rem;
  color: rgba(230,0,18,0.15);
  line-height: 1;
  user-select: none;
}

.section-header h2 {
  font-family: var(--font-title);
  font-size: 3.5rem;
  letter-spacing: 4px;
  color: var(--white);
}

.section-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, var(--red), transparent);
}

/* ===========================
   SYNOPSIS SECTION
=========================== */
.synopsis {
  position: relative;
  z-index: 1;
  padding: 7rem 8rem;
  background: var(--dark);
}

.synopsis-content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.synopsis-card {
  background: var(--dark-2);
  border: 1px solid var(--gray);
  border-top: 3px solid transparent;
  padding: 2.5rem;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.synopsis-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(to right, var(--red), var(--dark-red));
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.synopsis-card:hover::before,
.synopsis-card.featured::before {
  transform: scaleX(1);
}

.synopsis-card.featured {
  background: linear-gradient(135deg, rgba(139,0,0,0.2), var(--dark-2));
  border-color: var(--dark-red);
  transform: translateY(-10px);
}

.synopsis-card:hover {
  transform: translateY(-8px);
  border-color: var(--dark-red);
  box-shadow: 0 20px 60px rgba(139,0,0,0.3);
}

.card-icon {
  font-size: 2.5rem;
  margin-bottom: 1.2rem;
}

.synopsis-card h3 {
  font-family: var(--font-title);
  font-size: 1.8rem;
  letter-spacing: 3px;
  color: var(--white);
  margin-bottom: 1rem;
}

.synopsis-card p {
  line-height: 1.8;
  color: var(--light-gray);
  font-size: 0.95rem;
}

/* ===========================
   CHARACTERS SECTION
=========================== */
.characters {
  position: relative;
  z-index: 1;
  padding: 7rem 8rem;
}

.characters-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.char-card {
  position: relative;
  background: var(--dark-2);
  border: 1px solid var(--gray);
  overflow: hidden;
  transition: all 0.4s ease;
  cursor: default;
}

.char-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 30px 60px rgba(0,0,0,0.6), 0 0 30px rgba(230,0,18,0.15);
  border-color: var(--red);
}

.char-bg {
  height: 180px;
  position: relative;
  overflow: hidden;
}

.denji-bg {
  background: linear-gradient(135deg, #8b0000, #2a0000, #111);
}

.power-bg {
  background: linear-gradient(135deg, #6b0020, #330015, #111);
}

.makima-bg {
  background: linear-gradient(135deg, #1a1a3e, #0a0a2a, #111);
}

.aki-bg {
  background: linear-gradient(135deg, #1a2e1a, #0a180a, #111);
}

.char-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 10px,
    rgba(255,255,255,0.01) 10px,
    rgba(255,255,255,0.01) 20px
  );
}

.char-emblem {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) translateY(-20px);
  font-size: 4.5rem;
  opacity: 0.9;
  filter: drop-shadow(0 0 20px rgba(230,0,18,0.5));
  transition: transform 0.4s ease;
  z-index: 1;
}

.char-card:hover .char-emblem {
  transform: translate(-50%, -50%) translateY(-30px) scale(1.1);
}

.char-info {
  padding: 1.8rem;
}

.char-role {
  font-size: 0.7rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 600;
}

.char-info h3 {
  font-family: var(--font-title);
  font-size: 2rem;
  letter-spacing: 2px;
  color: var(--white);
  margin: 0.4rem 0 0.8rem;
}

.char-info p {
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--light-gray);
  margin-bottom: 1.5rem;
}

/* Character stats */
.char-stats {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.stat {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.stat span {
  font-size: 0.7rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--light-gray);
  width: 80px;
  flex-shrink: 0;
}

.bar {
  flex: 1;
  height: 3px;
  background: var(--gray);
  border-radius: 2px;
  overflow: hidden;
}

.fill {
  height: 100%;
  width: 0;
  background: linear-gradient(to right, var(--red), var(--dark-red));
  border-radius: 2px;
  transition: width 1.2s ease;
}

.fill.animated {
  width: var(--w);
}

/* ===========================
   DEVILS SECTION
=========================== */
.devils {
  position: relative;
  z-index: 1;
  padding: 7rem 8rem;
  background: var(--dark);
}

.devils-intro {
  text-align: center;
  color: var(--light-gray);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 4rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.devils-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.devil-item {
  background: var(--dark-2);
  border: 1px solid var(--gray);
  padding: 2.5rem 2rem;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.devil-item::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 0;
  background: linear-gradient(to top, rgba(139,0,0,0.2), transparent);
  transition: height 0.4s ease;
}

.devil-item:hover::before {
  height: 100%;
}

.devil-item:hover {
  border-color: var(--dark-red);
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(139,0,0,0.3);
}

.devil-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
  filter: drop-shadow(0 0 10px rgba(230,0,18,0.3));
  transition: filter 0.3s ease;
}

.devil-item:hover .devil-icon {
  filter: drop-shadow(0 0 20px rgba(230,0,18,0.8));
}

.devil-item h4 {
  font-family: var(--font-title);
  font-size: 1.5rem;
  letter-spacing: 3px;
  color: var(--white);
  margin-bottom: 0.4rem;
}

.devil-item span {
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--red);
}

/* ===========================
   QUOTE SECTION
=========================== */
.quote-section {
  position: relative;
  z-index: 1;
  padding: 8rem;
  text-align: center;
  overflow: hidden;
}

.quote-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, rgba(139,0,0,0.15) 0%, transparent 70%);
}

.quote-container {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.quote-marks {
  font-family: var(--font-title);
  font-size: 10rem;
  color: rgba(230,0,18,0.15);
  line-height: 0.6;
  margin-bottom: 1rem;
  display: block;
}

blockquote {
  font-family: var(--font-title);
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  letter-spacing: 3px;
  line-height: 1.4;
  color: var(--white);
  margin-bottom: 2rem;
}

cite {
  font-size: 0.85rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--red);
  font-style: normal;
}

/* ===========================
   FOOTER
=========================== */
.footer {
  position: relative;
  z-index: 1;
  padding: 3rem 8rem;
  background: var(--dark);
  border-top: 1px solid var(--gray);
  text-align: center;
}

.footer-logo {
  font-family: var(--font-title);
  font-size: 2rem;
  letter-spacing: 4px;
  color: var(--red);
  margin-bottom: 1rem;
}

.footer p {
  color: var(--light-gray);
  font-size: 0.8rem;
  letter-spacing: 1px;
  margin-bottom: 1.5rem;
}

.footer-slash {
  font-family: var(--font-title);
  font-size: 1.5rem;
  letter-spacing: 6px;
  color: rgba(230,0,18,0.3);
}

/* ===========================
   SCROLL ANIMATIONS
=========================== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 1200px) {
  .characters-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .synopsis-content {
    grid-template-columns: 1fr;
  }
  .synopsis-card.featured {
    transform: none;
  }
  .hero { padding: 0 4rem; }
  .synopsis, .characters, .devils, .footer { padding-left: 4rem; padding-right: 4rem; }
}

@media (max-width: 900px) {
  .navbar { padding: 1rem 2rem; }
  .nav-links { display: none; }
  .hero {
    flex-direction: column;
    justify-content: center;
    padding: 6rem 2rem 4rem;
    text-align: center;
  }
  .hero-subtitle { max-width: 100%; }
  .hero-buttons { justify-content: center; }
  .hero-chainsaw { margin-top: 2rem; }
  .chainsaw-icon { font-size: 7rem; }
  .devils-grid { grid-template-columns: repeat(2, 1fr); }
  .synopsis, .characters, .devils, .footer { padding: 4rem 2rem; }
  .characters-grid { grid-template-columns: 1fr; }
  .quote-section { padding: 5rem 2rem; }
}

@media (max-width: 600px) {
  .devils-grid { grid-template-columns: 1fr; }
}
