/* =========================================
   NARUTO FANSITE — CORE STYLES
   Palette: charcoal black, orange, red
   ========================================= */

:root {
  --bg-primary: #0d0d0d;
  --bg-secondary: #141414;
  --bg-card: #1a1a1a;
  --bg-card-hover: #222222;
  --orange: #ff7b00;
  --orange-light: #ffa040;
  --orange-dark: #cc5c00;
  --red: #cc2200;
  --red-light: #ff3311;
  --gold: #ffd700;
  --text-primary: #f0ede8;
  --text-secondary: #a89b8c;
  --text-muted: #6b5f54;
  --border: #2a2a2a;
  --border-accent: #3a2a18;
  --shadow-orange: 0 0 30px rgba(255, 123, 0, 0.25);
  --shadow-red: 0 0 20px rgba(204, 34, 0, 0.3);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'Rajdhani', 'Oswald', sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

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

/* =========================================
   UTILITY CLASSES
   ========================================= */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-label {
  display: inline-block;
  font-family: 'Oswald', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--orange);
  border-left: 3px solid var(--orange);
  padding-left: 0.75rem;
  margin-bottom: 1rem;
}

.section-title {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.section-title span {
  color: var(--orange);
}

.section-desc {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 600px;
  margin-top: 1rem;
  line-height: 1.7;
}

.orange-line {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--orange), var(--red));
  margin: 1.5rem 0;
}

/* =========================================
   BUTTONS
   ========================================= */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Oswald', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.85rem 2rem;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.08);
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}

.btn:hover::before {
  transform: translateX(0);
}

.btn-primary {
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  color: #fff;
  clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--orange-light), var(--orange));
  box-shadow: var(--shadow-orange);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid rgba(255,255,255,0.2);
  clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
}

.btn-outline:hover {
  border-color: var(--orange);
  color: var(--orange);
  box-shadow: var(--shadow-orange);
  transform: translateY(-2px);
}

/* =========================================
   NAVIGATION
   ========================================= */

#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 0;
  transition: all 0.3s ease;
  background: transparent;
}

#navbar.scrolled {
  background: rgba(13, 13, 13, 0.97);
  border-bottom: 1px solid var(--border-accent);
  box-shadow: 0 4px 30px rgba(0,0,0,0.5);
  padding: 0.6rem 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}

.nav-logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--orange), var(--red));
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-logo-text {
  font-family: 'Oswald', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-primary);
  text-transform: uppercase;
}

.nav-logo-text span {
  color: var(--orange);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-family: 'Oswald', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  transition: color 0.2s ease;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transition: transform 0.25s ease;
}

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

.nav-links a:hover::after {
  transform: scaleX(1);
}

.nav-cta {
  flex-shrink: 0;
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: all 0.3s ease;
}

/* Mobile nav */
.nav-mobile {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(13, 13, 13, 0.98);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.nav-mobile.open {
  display: flex;
}

.nav-mobile a {
  font-family: 'Oswald', sans-serif;
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

.nav-mobile a:hover {
  color: var(--orange);
}

.nav-mobile-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
  font-family: 'Oswald', sans-serif;
  letter-spacing: 0.05em;
}

/* =========================================
   HERO SECTION
   ========================================= */

#hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/hero-naruto-shinobi-hero-01-1920x1080.jpg');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  transform: scale(1.05);
  transition: transform 8s ease;
}

#hero:hover .hero-bg {
  transform: scale(1.0);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(13,13,13,0.55) 0%,
    rgba(13,13,13,0.35) 40%,
    rgba(13,13,13,0.75) 80%,
    rgba(13,13,13,0.97) 100%
  );
}

.hero-overlay-pattern {
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 40px,
      rgba(255, 123, 0, 0.015) 40px,
      rgba(255, 123, 0, 0.015) 80px
    );
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 860px;
  padding: 0 1.5rem;
}

.hero-eyebrow {
  font-family: 'Oswald', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s ease 0.2s forwards;
}

.hero-title {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(3rem, 9vw, 7rem);
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-primary);
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.8s ease 0.4s forwards;
}

.hero-title .orange {
  color: var(--orange);
  text-shadow: 0 0 40px rgba(255, 123, 0, 0.4);
}

.hero-title .red {
  color: var(--red-light);
}

.hero-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 1.5rem 0;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.55s forwards;
}

.hero-divider-line {
  width: 80px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--orange));
}

.hero-divider-line.right {
  background: linear-gradient(90deg, var(--orange), transparent);
}

.hero-divider-diamond {
  width: 8px;
  height: 8px;
  background: var(--orange);
  transform: rotate(45deg);
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 560px;
  margin: 0 auto 2.5rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s ease 0.65s forwards;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s ease 0.8s forwards;
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-muted);
  font-family: 'Oswald', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  animation: bounce 2s ease infinite;
}

.hero-scroll-bar {
  width: 1px;
  height: 40px;
  background: linear-gradient(180deg, var(--orange), transparent);
}

/* =========================================
   STATS BAR
   ========================================= */

#stats {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-accent);
  border-bottom: 1px solid var(--border-accent);
  padding: 2rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
}

.stat-item {
  background: var(--bg-secondary);
  padding: 1.5rem;
  text-align: center;
}

.stat-number {
  font-family: 'Oswald', sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--orange);
  line-height: 1;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 0.25rem;
}

/* =========================================
   STORY SECTION
   ========================================= */

#story {
  padding: 6rem 0;
  background: var(--bg-primary);
  position: relative;
  overflow: hidden;
}

#story::before {
  content: 'NARUTO';
  position: absolute;
  right: -2rem;
  top: 50%;
  transform: translateY(-50%) rotate(90deg);
  font-family: 'Oswald', sans-serif;
  font-size: 10rem;
  font-weight: 900;
  color: rgba(255, 123, 0, 0.03);
  letter-spacing: 0.1em;
  pointer-events: none;
  user-select: none;
}

.story-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.story-text .section-desc {
  max-width: 100%;
}

.arc-list {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.arc-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--orange);
  transition: border-color 0.25s, background 0.25s;
}

.arc-item:hover {
  background: var(--bg-card-hover);
  border-left-color: var(--red);
}

.arc-ep {
  font-family: 'Oswald', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--orange);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  padding-top: 2px;
}

.arc-info h4 {
  font-family: 'Oswald', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.2rem;
  letter-spacing: 0.05em;
}

.arc-info p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.story-visual {
  position: relative;
}

.story-img-stack {
  position: relative;
  padding-bottom: 1.5rem;
  padding-right: 1.5rem;
}

.story-img-main {
  width: 100%;
  height: 420px;
  object-fit: cover;
  object-position: center top;
  border: 1px solid var(--border);
}

.story-img-accent {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 160px;
  height: 200px;
  object-fit: cover;
  border: 2px solid var(--orange);
}

.story-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(255, 123, 0, 0.9);
  color: #fff;
  font-family: 'Oswald', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.4rem 0.8rem;
}

/* =========================================
   CHARACTERS SECTION
   ========================================= */

#characters {
  padding: 6rem 0;
  background: var(--bg-secondary);
  position: relative;
}

.characters-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.characters-header .section-label {
  display: flex;
  justify-content: center;
  border-left: none;
  padding-left: 0;
  border-bottom: 1px solid var(--orange);
  padding-bottom: 0.5rem;
  width: fit-content;
  margin: 0 auto 1rem;
}

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

.char-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  overflow: hidden;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: default;
}

.char-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.5), var(--shadow-orange);
  border-color: var(--orange-dark);
}

.char-img-wrap {
  position: relative;
  overflow: hidden;
  height: 280px;
  background: #111;
}

.char-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.4s ease;
  filter: saturate(0.9) contrast(1.05);
}

.char-card:hover .char-img-wrap img {
  transform: scale(1.05);
}

.char-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(13,13,13,0.9) 100%);
}

.char-accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
}

.char-role {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  font-family: 'Oswald', sans-serif;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.25rem 0.5rem;
  color: #fff;
}

.char-body {
  padding: 1.25rem;
}

.char-name {
  font-family: 'Oswald', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.char-title {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.char-bio {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 1rem;
}

.char-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.char-tag {
  font-family: 'Oswald', sans-serif;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border: 1px solid var(--border-accent);
  color: var(--text-muted);
}

/* Character color themes */
.char-card.naruto .char-accent { background: linear-gradient(90deg, var(--orange), var(--gold)); }
.char-card.naruto .char-role { background: rgba(255,123,0,0.85); }
.char-card.naruto .char-name { color: var(--orange); }
.char-card.naruto .char-title { color: var(--gold); }

.char-card.sasuke .char-accent { background: linear-gradient(90deg, #4444ff, #9933ff); }
.char-card.sasuke .char-role { background: rgba(68,68,255,0.85); }
.char-card.sasuke .char-name { color: #8888ff; }
.char-card.sasuke .char-title { color: #9933ff; }

.char-card.sakura .char-accent { background: linear-gradient(90deg, #ff6699, #ff3366); }
.char-card.sakura .char-role { background: rgba(255,51,102,0.85); }
.char-card.sakura .char-name { color: #ff6699; }
.char-card.sakura .char-title { color: #ff3366; }

.char-card.kakashi .char-accent { background: linear-gradient(90deg, #aaaaaa, #cccccc); }
.char-card.kakashi .char-role { background: rgba(100,100,100,0.85); }
.char-card.kakashi .char-name { color: #cccccc; }
.char-card.kakashi .char-title { color: #aaaaaa; }

/* =========================================
   TECHNIQUES SECTION
   ========================================= */

#techniques {
  padding: 6rem 0;
  background: var(--bg-primary);
  position: relative;
  overflow: hidden;
}

#techniques::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--orange-dark), transparent);
}

.techniques-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

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

.jutsu-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.jutsu-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent-color, var(--orange));
  transform: scaleX(0);
  transition: transform 0.35s ease;
  transform-origin: left;
}

.jutsu-card:hover::before {
  transform: scaleX(1);
}

.jutsu-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255,123,0,0.2);
}

.jutsu-icon {
  width: 52px;
  height: 52px;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-secondary);
  border: 1px solid var(--border-accent);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

.jutsu-icon svg {
  width: 24px;
  height: 24px;
}

.jutsu-name {
  font-family: 'Oswald', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}

.jutsu-type {
  font-family: 'Oswald', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.jutsu-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.jutsu-user {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Oswald', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.jutsu-user::before {
  content: '';
  width: 20px;
  height: 1px;
  background: var(--text-muted);
}

.jutsu-rank {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-family: 'Oswald', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border: 1px solid;
}

/* =========================================
   GALLERY SECTION
   ========================================= */

#gallery {
  padding: 6rem 0;
  background: var(--bg-secondary);
}

.gallery-header {
  text-align: center;
  margin-bottom: 3rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 0.75rem;
}

.gallery-item {
  overflow: hidden;
  position: relative;
  background: #111;
  cursor: pointer;
}

.gallery-item.featured {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.4s ease, filter 0.4s ease;
  min-height: 220px;
}

.gallery-item.featured img {
  min-height: 460px;
}

.gallery-item:hover img {
  transform: scale(1.06);
  filter: brightness(1.1) saturate(1.15);
}

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.75) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: flex-end;
  padding: 1rem;
}

.gallery-item:hover .gallery-item-overlay {
  opacity: 1;
}

.gallery-item-label {
  font-family: 'Oswald', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-primary);
}

/* =========================================
   COMMUNITY SECTION
   ========================================= */

#community {
  padding: 6rem 0;
  background: var(--bg-primary);
  position: relative;
}

.community-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: start;
}

.community-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.community-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 1.5rem;
  transition: border-color 0.25s, transform 0.25s;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.community-card:hover {
  border-color: var(--orange-dark);
  transform: translateY(-3px);
}

.community-card-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,123,0,0.1);
  border: 1px solid rgba(255,123,0,0.2);
}

.community-card-icon svg {
  width: 20px;
  height: 20px;
  color: var(--orange);
}

.community-card-title {
  font-family: 'Oswald', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-primary);
}

.community-card-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.community-card-arrow {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: 'Oswald', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange);
  margin-top: auto;
}

.social-block {
  margin-top: 2rem;
}

.social-title {
  font-family: 'Oswald', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.social-links {
  display: flex;
  gap: 0.75rem;
}

.social-link {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  transition: all 0.25s ease;
}

.social-link:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
  transform: translateY(-2px);
}

.social-link svg {
  width: 18px;
  height: 18px;
}

/* Community CTA panel */
.community-cta-panel {
  background: linear-gradient(135deg, rgba(255,123,0,0.08), rgba(204,34,0,0.05));
  border: 1px solid var(--border-accent);
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
}

.community-cta-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--orange), var(--red));
}

.community-cta-title {
  font-family: 'Oswald', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.community-cta-title span {
  color: var(--orange);
}

.community-cta-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.community-cta-features {
  list-style: none;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.community-cta-features li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.community-cta-features li::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--orange);
  transform: rotate(45deg);
  flex-shrink: 0;
}

/* =========================================
   FOOTER
   ========================================= */

#footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-accent);
  padding: 3rem 0 1.5rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand .nav-logo {
  margin-bottom: 1rem;
}

.footer-brand p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 280px;
}

.footer-col-title {
  font-family: 'Oswald', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--orange);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-copy span {
  color: var(--orange);
}

.footer-disclaimer {
  font-size: 0.75rem;
  color: var(--text-muted);
  opacity: 0.6;
}

/* =========================================
   ANIMATIONS
   ========================================= */

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* =========================================
   RESPONSIVE
   ========================================= */

@media (max-width: 1024px) {
  .story-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .story-visual {
    order: -1;
  }

  .story-img-main {
    height: 300px;
  }

  .characters-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .jutsu-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .nav-links, .nav-cta {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .characters-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .jutsu-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }

  .gallery-item.featured {
    grid-column: span 2;
    grid-row: span 1;
  }

  .gallery-item.featured img {
    min-height: 260px;
  }

  .community-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

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

  .community-cards {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-item.featured {
    grid-column: span 1;
  }
}
