/* Hero Section (Home Page and Dynamic Era Pages) */
#hero,
#hero-dynamic,
#game-hero {
  height: 38rem; /* Default for sub-pages */
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

/* Master Tribute Homepage Hero (100vh) */
#hero.master-hero {
  height: 100vh;
  margin-top: -5.5rem; /* Pull up behind the completely transparent header */
}

#hero {
  display: flex; /* Establish flex context for splits */
}

/* Split-Screen Hero Images */
.hero-split {
  flex: 1;
  height: 100%;
  background-size: cover;
  background-position: center;
}

.hero-left {
  background-image: url("../Media/Altair.webp");
  background-position: top center;
}

.hero-right {
  background-image: url("../Media/Ezio.webp");
  /* Optional: apply a slight dark gradient on the inner edges to merge them */
  box-shadow: inset 100px 0 100px -50px var(--bg-black);
}

.hero-overlay-desktop {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: radial-gradient(
    circle at center,
    rgba(0, 210, 255, 0.15) 0%,
    rgba(5, 5, 5, 0.95) 100%
  );
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-overlay-desktop::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 4px,
    rgba(0, 210, 255, 0.03) 4px,
    rgba(0, 210, 255, 0.03) 8px
  );
  pointer-events: none;
}

.hero-overlay {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-content {
  text-align: center;
  color: white;
  padding: 0 1.5rem;
  z-index: 10;
}
#hero h1,
#hero-dynamic h1,
#game-hero h1 {
  font-size: 3.5rem;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
}

.master-hero .cinematic-content h1 {
  font-size: 4rem;
  font-weight: 300; /* Sleeker, thinner font for the first line */
  letter-spacing: 6px;
}

.hero-title-animus {
  font-size: 4rem !important;
  color: var(--animus-blue);
  text-shadow: 0 0 15px var(--animus-glow);
  margin-top: -10px !important;
}

.master-hero .cinematic-content .hero-title-animus {
  font-size: 5rem !important;
  font-weight: 900;
  letter-spacing: 6px;
  animation: glitch-animus 4s infinite;
}

@keyframes glitch-animus {
  0% {
    text-shadow: 0 0 15px var(--animus-glow);
    transform: skew(0deg);
  }
  2% {
    text-shadow:
      2px 0 var(--bright-red),
      -2px 0 var(--animus-blue);
    transform: skew(-5deg);
  }
  4% {
    text-shadow:
      -2px 0 var(--bright-red),
      2px 0 var(--animus-blue);
    transform: skew(5deg);
  }
  6% {
    text-shadow: 0 0 15px var(--animus-glow);
    transform: skew(0deg);
  }
  100% {
    text-shadow: 0 0 15px var(--animus-glow);
    transform: skew(0deg);
  }
}

/* Subtle Animus Glint Animation */
.glint-text {
  position: relative;
  display: inline-block;
}
.glint-text::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    to right,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  transform: skewX(-20deg);
  animation: glint 5s infinite;
}

@keyframes glint {
  0% {
    left: -100%;
  }
  20% {
    left: 200%;
  }
  100% {
    left: 200%;
  }
}

#hero p,
#hero-dynamic p,
#game-hero p {
  font-size: 1.3rem;
  margin-top: 0.5rem;
  color: var(--text-offwhite);
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.8);
}

.hero-subtitle-animus {
  font-family: monospace;
  letter-spacing: 3px;
  color: var(--text-offwhite) !important;
  text-transform: uppercase;
  font-size: 1.1rem !important;
  margin-top: 1.5rem !important;
}

/* The Eternal War Section */
.animus-glitch-bg {
  position: relative;
  background-color: var(--bg-black);
  background-image:
    radial-gradient(
      circle at center,
      rgba(30, 30, 35, 0.4) 0%,
      var(--bg-black) 100%
    ),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 4px,
      rgba(255, 255, 255, 0.02) 4px,
      rgba(255, 255, 255, 0.02) 8px
    );
}

.eternal-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 4rem 1.5rem 2rem 1.5rem;
}

.animus-tag {
  display: inline-block;
  font-family: monospace;
  color: var(--animus-blue);
  border: 1px solid var(--animus-blue);
  padding: 0.3rem 0.8rem;
  font-size: 0.85rem;
  letter-spacing: 2px;
  margin-bottom: 1.5rem;
  background: rgba(0, 210, 255, 0.1);
  box-shadow: 0 0 10px rgba(0, 210, 255, 0.2);
}

.war-header h2 {
  font-size: 3.5rem;
  margin-bottom: 0.5rem;
}

.war-subtitle {
  font-size: 1.2rem;
  color: var(--text-light);
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 4rem;
}

.war-content-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 992px) {
  .war-content-grid {
    grid-template-columns: 1fr auto 1fr;
    align-items: stretch;
  }
}

.war-side {
  padding: 3rem;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.war-side:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.6);
}

.assassin-side {
  border-top: 3px solid var(--animus-blue);
  background: linear-gradient(
    135deg,
    rgba(0, 210, 255, 0.05) 0%,
    rgba(10, 14, 23, 0.8) 100%
  );
  box-shadow: 0 -5px 20px rgba(0, 210, 255, 0.1);
}

.templar-side {
  border-top: 3px solid var(--bright-red);
  background: linear-gradient(
    135deg,
    rgba(220, 53, 69, 0.05) 0%,
    rgba(10, 14, 23, 0.8) 100%
  );
  box-shadow: 0 -5px 20px rgba(220, 53, 69, 0.1);
}

.large-icon {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

.icon-gold {
  color: var(--animus-blue);
  text-shadow: 0 0 10px var(--animus-glow);
}

.icon-red {
  color: var(--bright-red);
}

.war-side h4 {
  font-size: 2rem;
  color: var(--text-white);
  margin: 0;
}

.war-side p {
  color: var(--text-offwhite);
  font-size: 1.1rem;
  line-height: 1.6;
}

.creed-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.creed-list li {
  padding: 0.8rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-light);
  display: flex;
  align-items: center;
}

.creed-list li::before {
  content: "»";
  color: var(--animus-blue);
  margin-right: 10px;
  font-size: 1.2rem;
  text-shadow: 0 0 5px var(--animus-glow);
}

.templar-side .creed-list li::before {
  color: var(--bright-red);
}

.templar-desc {
  border-left: 3px solid var(--bright-red);
  padding-left: 1rem;
  margin-top: 1rem !important;
}

.war-divider {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.2);
  font-size: 1.5rem;
  padding: 2rem 0;
}

@media (min-width: 992px) {
  .war-divider {
    flex-direction: column;
    padding: 0 2rem;
  }
}

.animus-line {
  flex: 1;
  width: 2px;
  height: 50px;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
}

@media (max-width: 991px) {
  .animus-line {
    height: 2px;
    width: 50px;
    background: linear-gradient(
      to right,
      transparent,
      rgba(255, 255, 255, 0.2),
      transparent
    );
  }
}

.war-divider span {
  margin: 1rem;
  letter-spacing: 2px;
}

/* Featured Eras Showcase (Horizontal Scroll) */
.eras-showcase-section {
  padding: 6rem 0;
  background: linear-gradient(
    to bottom,
    var(--bg-black) 0%,
    rgba(15, 15, 20, 0.9) 100%
  );
  overflow: hidden;
}

.eras-showcase-section .section-header {
  margin-bottom: 4rem;
  padding: 0 1.5rem;
}

.eras-showcase-section h2 {
  font-size: 3rem;
  color: var(--animus-blue);
  margin-bottom: 0.5rem;
  letter-spacing: 3px;
  text-shadow: 0 0 10px var(--animus-glow);
}

.eras-scroll-container {
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  padding: 1rem 3rem 4rem 3rem;
  scrollbar-width: thin;
  scrollbar-color: var(--animus-blue) rgba(255, 255, 255, 0.05);
  scroll-snap-type: x mandatory;
}

/* Custom Scrollbar for Webkit */
.eras-scroll-container::-webkit-scrollbar {
  height: 8px;
}
.eras-scroll-container::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
}
.eras-scroll-container::-webkit-scrollbar-thumb {
  background-color: var(--animus-blue);
  border-radius: 4px;
}

.era-showcase-card {
  position: relative;
  flex: 0 0 85vw; /* Almost full width on mobile */
  max-width: 600px;
  height: 450px;
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  scroll-snap-align: center;
  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease;
}

@media (min-width: 768px) {
  .era-showcase-card {
    flex: 0 0 45vw;
  }
}

@media (min-width: 1200px) {
  .era-showcase-card {
    flex: 0 0 30vw;
  }
}

.era-showcase-card:hover {
  transform: translateY(-10px);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.8),
    0 0 20px rgba(0, 210, 255, 0.3);
}

.era-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.8s ease;
}

.era-showcase-card:hover .era-bg {
  transform: scale(1.08); /* Zoom effect on hover */
}

.era-showcase-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to top,
    rgba(5, 5, 5, 0.95) 0%,
    rgba(5, 5, 5, 0.3) 50%,
    transparent 100%
  );
}

.era-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 2.5rem 2rem;
  z-index: 10;
  border: none;
  background: transparent;
  box-shadow: none;
}

.era-date {
  color: var(--animus-blue);
  font-family: monospace;
  letter-spacing: 2px;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  display: block;
}

.era-content h3 {
  font-size: 2.2rem;
  color: var(--text-white);
  margin-bottom: 1rem;
  transition: color 0.3s ease;
}

.era-showcase-card:hover .era-content h3 {
  color: var(--animus-blue);
}

.era-content p {
  color: var(--text-offwhite);
  font-size: 1.05rem;
  line-height: 1.5;
  margin-bottom: 1.5rem;
  opacity: 0.9;
}

.btn-text-animus {
  color: var(--animus-blue);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition:
    transform 0.3s ease,
    text-shadow 0.3s ease;
}

.era-showcase-card:hover .btn-text-animus {
  transform: translateX(10px);
  text-shadow: 0 0 10px var(--animus-glow);
}

/* Core Gameplay Pillars */
.pillars-section {
  padding: 5rem 1.5rem 8rem 1.5rem;
  max-width: 1400px;
  margin: 0 auto;
}

.pillars-section .section-header {
  margin-bottom: 4rem;
}

.section-subtitle {
  font-size: 1.2rem;
  color: var(--animus-blue);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: -0.5rem;
  font-weight: 500;
  text-align: center;
  display: block;
  width: 100%;
}

.pillars-section h2 {
  font-size: 3rem;
  color: var(--text-white);
  margin-bottom: 0.5rem;
  letter-spacing: 4px;
}

.pillars-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 992px) {
  .pillars-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
  }
}

.pillar-card {
  position: relative;
  background: linear-gradient(
    180deg,
    rgba(10, 14, 23, 0.8) 0%,
    rgba(5, 8, 15, 0.9) 100%
  );
  border: 1px solid rgba(0, 210, 255, 0.15);
  border-radius: 4px;
  padding: 4rem 3rem;
  text-align: center;
  overflow: hidden;
  transition:
    transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275),
    box-shadow 0.5s ease,
    border-color 0.5s ease;
  z-index: 1;
}

.pillar-card:hover {
  transform: translateY(-15px);
  box-shadow:
    0 25px 50px rgba(0, 0, 0, 0.8),
    0 0 20px rgba(0, 210, 255, 0.2);
  border-color: var(--animus-blue);
}

/* Base styling for icon */
.pillar-icon-container {
  margin-bottom: 2.5rem;
  position: relative;
  display: inline-block;
  z-index: 2;
}

.pillar-icon {
  font-size: 4.5rem;
  color: var(--text-offwhite);
  transition:
    color 0.4s ease,
    transform 0.4s ease,
    text-shadow 0.4s ease;
}

/* Hover effects for specific pillars */
.pillar-card:nth-child(1):hover .pillar-icon {
  color: var(--animus-blue);
  transform: scale(1.1);
  text-shadow: 0 0 20px var(--animus-glow);
}

.pillar-card:nth-child(2):hover .pillar-icon {
  color: var(--bright-red);
  transform: scale(1.1);
  text-shadow: 0 0 20px rgba(220, 53, 69, 0.6);
}

.pillar-card:nth-child(3):hover .pillar-icon {
  color: var(--text-white);
  transform: scale(1.1);
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.6);
}

.pillar-card h3 {
  font-size: 2rem;
  color: var(--text-white);
  margin-bottom: 1.5rem;
  letter-spacing: 2px;
  font-weight: 700;
  z-index: 2;
  position: relative;
}

.pillar-card p {
  color: var(--text-light);
  line-height: 1.6;
  font-size: 1.1rem;
  z-index: 2;
  position: relative;
}

/* Animus Glitch overlay on hover */
.pillar-glitch-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at center,
    rgba(0, 210, 255, 0.05),
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 0;
  pointer-events: none;
}

.pillar-card:hover .pillar-glitch-layer {
  opacity: 1;
}

/* Legendary Master Assassins Gallery */
.gallery-section {
  padding: 6rem 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.gallery-section .section-header {
  margin-bottom: 5rem;
}

.gallery-section h2 {
  font-size: 3rem;
  color: var(--animus-blue);
  letter-spacing: 4px;
  margin-bottom: 0.5rem;
  text-shadow: 0 0 10px var(--animus-glow);
}

.animus-slider-container {
  width: 100%;
  overflow: hidden;
  position: relative;
  padding: 1rem 0;
  /* Faded edges to blend with background */
  mask-image: linear-gradient(
    to right,
    transparent,
    black 10%,
    black 90%,
    transparent
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent,
    black 10%,
    black 90%,
    transparent
  );
}

.assassins-slider-track {
  display: flex;
  gap: 2rem;
  width: max-content;
  /* Animation to slide left infinitely */
  animation: slide-animus 20s linear infinite;
}

.animus-slider-container:hover .assassins-slider-track {
  animation-play-state: paused;
}

@keyframes slide-animus {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-50% - 1rem));
  } /* -50% assumes duplicating elements in JS */
}

/* Adjust sizes for slider layout rather than grid */

.gallery-portrait {
  position: relative;
  width: 320px; /* Fixed width for slider */
  height: 480px;
  border-radius: 4px;
  overflow: hidden;
  display: block;
  text-decoration: none;
  background: var(--bg-black);
  flex-shrink: 0; /* Prevent squishing in flex track */
  transition:
    transform 0.5s ease,
    box-shadow 0.5s ease;
}

.gallery-portrait:hover {
  transform: translateY(-10px);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.8),
    0 0 30px rgba(0, 210, 255, 0.2);
}

.portrait-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: top center;
  transition: transform 0.8s ease;
  filter: grayscale(40%) contrast(1.1) drop-shadow(0 0 10px rgba(0, 0, 0, 0.8));
}

.gallery-portrait:hover .portrait-image {
  transform: scale(1.05);
  filter: grayscale(0%) contrast(1.1);
}

.portrait-frame {
  position: absolute;
  top: 15px;
  left: 15px;
  right: 15px;
  bottom: 15px;
  border: 1px solid rgba(0, 210, 255, 0.2);
  transition: border-color 0.4s ease;
  z-index: 2;
  pointer-events: none;
}

.gallery-portrait:hover .portrait-frame {
  border-color: var(--animus-blue);
  box-shadow: inset 0 0 20px rgba(0, 210, 255, 0.2);
}

.gallery-portrait::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60%;
  background: linear-gradient(
    to top,
    rgba(5, 5, 5, 0.95) 0%,
    rgba(5, 5, 5, 0.6) 40%,
    transparent 100%
  );
  z-index: 1;
}

.portrait-name {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 2rem;
  z-index: 3;
  text-align: center;
}

.portrait-name h3 {
  color: var(--text-white);
  font-size: 2rem;
  margin-bottom: 0.5rem;
  letter-spacing: 2px;
  transition: color 0.3s ease;
}

.gallery-portrait:hover .portrait-name h3 {
  color: var(--animus-blue);
}

.era-label {
  color: var(--animus-blue);
  font-family: monospace;
  font-size: 1rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  text-shadow: 0 0 5px var(--animus-glow);
}

/* Legacy Timeline Section (Home Page) */
#legacy.legacy-timeline-section {
  max-width: 1400px;
  margin: 5rem auto;
  padding: 0 1.5rem;
}

#legacy.legacy-timeline-section h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
}

.timeline-container {
  position: relative;
  padding: 4rem 2rem;
  border-radius: 1rem;
  display: flex;
  flex-direction: column;
  gap: 3rem;
  background: rgba(15, 15, 20, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

@media (min-width: 992px) {
  .timeline-container {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    padding: 6rem 3rem;
    gap: 0;
  }
}

.timeline-track {
  position: absolute;
  background: rgba(0, 210, 255, 0.2);
  left: 3.4rem;
  top: 4rem;
  bottom: 4rem;
  width: 2px;
  overflow: hidden;
}

.timeline-track::after {
  content: "";
  position: absolute;
  top: -50%;
  left: 0;
  width: 100%;
  height: 50%;
  background: linear-gradient(
    to bottom,
    transparent,
    var(--animus-blue),
    transparent
  );
  animation: timeline-flow 4s linear infinite;
}

@keyframes timeline-flow {
  0% {
    top: -50%;
  }
  100% {
    top: 150%;
  }
}

@media (min-width: 992px) {
  .timeline-track {
    top: 50%;
    left: 4rem;
    right: 4rem;
    height: 2px;
    width: auto;
    bottom: auto;
    transform: translateY(-50%);
  }

  .timeline-track::after {
    top: 0;
    left: -50%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
      to right,
      transparent,
      var(--animus-blue),
      transparent
    );
    animation: timeline-flow-h 4s linear infinite;
  }
}

@keyframes timeline-flow-h {
  0% {
    left: -50%;
  }
  100% {
    left: 150%;
  }
}

.timeline-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 2rem;
  z-index: 2;
  cursor: pointer;
  transition: transform 0.3s ease;
}

@media (min-width: 992px) {
  .timeline-item {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
    flex: 1;
  }
}

.timeline-item:hover {
  transform: translateY(-10px);
}

.timeline-node {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg-black);
  border: 3px solid var(--animus-blue);
  box-shadow: 0 0 10px rgba(0, 210, 255, 0.5);
  transition: all 0.3s ease;
}

.timeline-item:hover .timeline-node {
  background: var(--animus-blue);
  box-shadow: 0 0 20px rgba(0, 210, 255, 0.8);
  transform: scale(1.3);
}

.timeline-content {
  background: rgba(31, 41, 55, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 1.5rem;
  transition: all 0.3s ease;
  flex: 1;
}

.timeline-item:hover .timeline-content {
  background: rgba(31, 41, 55, 0.7);
  border-color: rgba(0, 210, 255, 0.3);
}

.icon-gold {
  color: var(--animus-blue);
  font-size: 2rem;
  margin-bottom: 0.5rem;
  display: block;
}

.stat-number {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--text-white);
  margin-bottom: 0.5rem;
}

.stat-label {
  color: var(--text-light);
  font-size: 0.95rem;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Hero Section (Assassins Page) */
#hero-assassins {
  height: 28rem;
  background-image: url("../Media/AC_Legends.webp");
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

#hero-assassins .hero-overlay {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

#hero-assassins h1 {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--text-white);
  text-shadow: 0 0 15px var(--animus-glow);
  z-index: 2;
  margin: 0;
}

.hero-subtitle {
  font-size: 1.5rem;
  color: var(--text-offwhite) !important;
  text-align: center;
  z-index: 2;
  margin: 0;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

/* Master Assassins Section */
#master-assassins {
  max-width: 1400px;
  margin: 0 auto;
  padding: 4.5rem 1.5rem;
}
#master-assassins h2 {
  margin-bottom: 2rem;
}

/* Filter Section */
.filter-container {
  margin-bottom: 3rem;
  display: flex;
  justify-content: center;
}

.filter-pills {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(5, 8, 15, 0.6);
  border: 1px solid rgba(0, 210, 255, 0.3);
  border-left: 3px solid var(--animus-blue);
  color: var(--text-offwhite);
  padding: 0.75rem 1.8rem;
  font-size: 0.95rem;
  font-family: var(--font-primary);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  clip-path: polygon(
    0 0,
    100% 0,
    100% calc(100% - 12px),
    calc(100% - 12px) 100%,
    0 100%
  );
}

.filter-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(0, 210, 255, 0.3),
    transparent
  );
  transform: skewX(-20deg);
  transition: opacity 0.3s;
  opacity: 0;
  z-index: 0;
}

.filter-btn:hover::before {
  animation: hud-scan 1s forwards;
  opacity: 1;
}

@keyframes hud-scan {
  0% {
    left: -100%;
  }
  100% {
    left: 200%;
  }
}

.filter-btn i {
  position: relative;
  z-index: 1;
  color: var(--animus-blue);
  font-size: 1.1rem;
  text-shadow: 0 0 5px var(--animus-glow);
}

.filter-btn span {
  position: relative;
  z-index: 1;
}

.filter-btn:hover {
  background: rgba(0, 210, 255, 0.1);
  border-color: var(--animus-blue);
  box-shadow: 0 0 15px rgba(0, 210, 255, 0.3);
}

.filter-btn.active {
  background: rgba(0, 210, 255, 0.15);
  border: 1px solid var(--animus-blue);
  border-left: 4px solid var(--animus-blue);
  color: var(--animus-blue);
  box-shadow:
    inset 0 0 10px rgba(0, 210, 255, 0.3),
    0 0 15px rgba(0, 210, 255, 0.4);
}

.filter-btn.active i {
  color: var(--animus-blue);
  text-shadow: 0 0 10px var(--animus-glow);
}
.assassin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}
.assassin-card {
  display: block;
  background: rgba(17, 24, 39, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 1rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 0;
  cursor: pointer;
  opacity: 0;
  transform: translateY(30px);
  position: relative;
}

.assassin-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 210, 255, 0.15), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
  pointer-events: none;
}

/* Holographic Overlay */
.assassin-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 210, 255, 0.05),
    rgba(0, 210, 255, 0.05) 1px,
    transparent 1px,
    transparent 4px
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
  pointer-events: none;
}

.assassin-card:hover::before,
.assassin-card:hover::after {
  opacity: 1;
}

.assassin-card.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.assassin-card:hover {
  transform: translateY(-15px) scale(1.03);
  box-shadow:
    0 25px 50px rgba(0, 210, 255, 0.2),
    0 0 30px rgba(0, 210, 255, 0.1);
  border-color: var(--animus-blue);
}

.assassin-card img {
  width: 100%;
  height: auto;
  min-height: 320px;
  object-fit: contain;
  background: var(--bg-black);
  transition: transform 0.4s ease;
  position: relative;
  z-index: 0;
}

.assassin-card:hover img {
  transform: scale(1.1);
}

.assassin-info {
  padding: 1.5rem;
  text-align: center;
  position: relative;
  z-index: 2;
}

.assassin-card h3 {
  font-size: 1.6rem;
  color: var(--text-white);
  margin: 0 0 0.5rem 0;
  font-weight: 700;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.assassin-era {
  font-size: 0.95rem;
  color: var(--animus-blue);
  font-weight: 600;
  margin-bottom: 1rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.assassin-desc {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-gray);
  margin-bottom: 1.5rem;
  padding: 0;
  text-align: left;
}

.assassin-stats {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.stat-badge {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(0, 210, 255, 0.1);
  border: 1px solid rgba(0, 210, 255, 0.4);
  padding: 0.5rem 1rem;
  border-radius: 4px; /* Animus sharper edges */
  font-size: 0.9rem;
  color: var(--text-offwhite);
  transition: all 0.3s ease;
}

.stat-badge i {
  color: var(--animus-blue);
  font-size: 1rem;
  text-shadow: 0 0 5px var(--animus-glow);
}

.assassin-card:hover .stat-badge {
  background: rgba(0, 210, 255, 0.2);
  border-color: rgba(0, 210, 255, 0.6);
  transform: translateY(-2px);
  box-shadow: 0 0 10px rgba(0, 210, 255, 0.2);
}

/* ================= RESPONSIVENESS ================= */

/* Tablets and smaller desktops (max-width: 992px) */
@media (max-width: 992px) {
  #hero,
  #hero-assassins {
    height: 18rem;
  }

  #hero h1,
  #hero-assassins h1 {
    font-size: 2.2rem;
  }

  #about,
  #master-assassins,
  #legacy {
    padding: 3rem 1rem;
  }

  .assassin-card img {
    height: 280px;
  }
}

/* ---------------- HERO + TEXT RESIZING ---------------- */
#hero,
#hero-dynamic,
#game-hero,
#hero-assassins {
  height: 22rem;
  padding: 0;
  display: block; /* Disable flex split on small screens */
  background-image: url("../Media/AC_Hero.webp"); /* Fallback for mobile */
}

/* Hide splits on mobile and rely on fallback background */
.hero-split {
  display: none;
}

#hero h1,
#hero-assassins h1,
#hero-dynamic h1,
#game-hero h1 {
  font-size: 1.8rem;
  text-align: center;
}

.hero-title-gold {
  font-size: 2.2rem !important;
  margin-top: 0 !important;
}

#hero p {
  font-size: 1.1rem;
  text-align: center;
}

h2 {
  font-size: 2.2rem;
}

.nav-pills {
  flex-wrap: wrap;
  gap: 0.5rem;
}

.nav-link {
  padding: 0.4rem 1.2rem;
  font-size: 1rem;
}

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

.stat-number {
  font-size: 2.5rem;
}

.assassin-card img {
  height: 280px;
}

.assassin-info {
  padding: 1.2rem;
}

.assassin-card h3 {
  font-size: 1.4rem;
}

.assassin-desc {
  font-size: 0.95rem;
}

.stat-badge {
  font-size: 0.85rem;
  padding: 0.4rem 0.8rem;
}

.filter-pills {
  gap: 0.75rem;
}

.filter-btn {
  font-size: 0.95rem;
  padding: 0.65rem 1.2rem;
}

.main-footer p {
  font-size: 1rem;
}

.footer-icons a {
  font-size: 1.2rem;
  margin: 0 5px;
}

/* ================== GLITCH ANIMATION ================== */
.glitch-anim {
  animation: data-glitch 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) both !important;
}

@keyframes data-glitch {
  0% {
    transform: translate(0);
    filter: hue-rotate(0deg);
    opacity: 1;
  }
  20% {
    transform: translate(-4px, 4px);
    filter: hue-rotate(90deg) contrast(150%);
    opacity: 0.8;
  }
  40% {
    transform: translate(-4px, -4px);
    filter: hue-rotate(180deg) invert(20%);
    opacity: 0.4;
  }
  60% {
    transform: translate(4px, 4px);
    filter: hue-rotate(270deg) contrast(150%);
    opacity: 0.8;
  }
  80% {
    transform: translate(4px, -4px);
    filter: hue-rotate(360deg) invert(20%);
    opacity: 0.9;
  }
  100% {
    transform: translate(0);
    filter: hue-rotate(0deg);
    opacity: 1;
  }
}

/* Stagger animations for grids */
.assassin-grid > *:nth-child(1),
#era-games-grid > *:nth-child(1),
#main-assassins-grid > *:nth-child(1) {
  transition-delay: 0.1s;
  animation-delay: 0.1s;
}
.assassin-grid > *:nth-child(2),
#era-games-grid > *:nth-child(2),
#main-assassins-grid > *:nth-child(2) {
  transition-delay: 0.2s;
  animation-delay: 0.2s;
}
.assassin-grid > *:nth-child(3),
#era-games-grid > *:nth-child(3),
#main-assassins-grid > *:nth-child(3) {
  transition-delay: 0.3s;
  animation-delay: 0.3s;
}
.assassin-grid > *:nth-child(4),
#era-games-grid > *:nth-child(4),
#main-assassins-grid > *:nth-child(4) {
  transition-delay: 0.4s;
  animation-delay: 0.4s;
}
.assassin-grid > *:nth-child(5),
#era-games-grid > *:nth-child(5),
#main-assassins-grid > *:nth-child(5) {
  transition-delay: 0.5s;
  animation-delay: 0.5s;
}
.assassin-grid > *:nth-child(6),
#era-games-grid > *:nth-child(6),
#main-assassins-grid > *:nth-child(6) {
  transition-delay: 0.6s;
  animation-delay: 0.6s;
}
.assassin-grid > *:nth-child(7),
#era-games-grid > *:nth-child(7),
#main-assassins-grid > *:nth-child(7) {
  transition-delay: 0.7s;
  animation-delay: 0.7s;
}
.assassin-grid > *:nth-child(8),
#era-games-grid > *:nth-child(8),
#main-assassins-grid > *:nth-child(8) {
  transition-delay: 0.8s;
  animation-delay: 0.8s;
}
.assassin-grid > *:nth-child(9),
#era-games-grid > *:nth-child(9),
#main-assassins-grid > *:nth-child(9) {
  transition-delay: 0.9s;
  animation-delay: 0.9s;
}
.assassin-grid > *:nth-child(10),
#era-games-grid > *:nth-child(10),
#main-assassins-grid > *:nth-child(10) {
  transition-delay: 1s;
  animation-delay: 1s;
}
.assassin-grid > *:nth-child(11),
#era-games-grid > *:nth-child(11),
#main-assassins-grid > *:nth-child(11) {
  transition-delay: 1.1s;
  animation-delay: 1.1s;
}
.assassin-grid > *:nth-child(12),
#era-games-grid > *:nth-child(12),
#main-assassins-grid > *:nth-child(12) {
  transition-delay: 1.2s;
  animation-delay: 1.2s;
}
.assassin-grid > *:nth-child(13),
#era-games-grid > *:nth-child(13),
#main-assassins-grid > *:nth-child(13) {
  transition-delay: 1.3s;
  animation-delay: 1.3s;
}
.assassin-grid > *:nth-child(14),
#era-games-grid > *:nth-child(14),
#main-assassins-grid > *:nth-child(14) {
  transition-delay: 1.4s;
  animation-delay: 1.4s;
}
.assassin-grid > *:nth-child(15),
#era-games-grid > *:nth-child(15),
#main-assassins-grid > *:nth-child(15) {
  transition-delay: 1.5s;
  animation-delay: 1.5s;
}
.assassin-grid > *:nth-child(16),
#era-games-grid > *:nth-child(16),
#main-assassins-grid > *:nth-child(16) {
  transition-delay: 1.6s;
  animation-delay: 1.6s;
}
.assassin-grid > *:nth-child(17),
#era-games-grid > *:nth-child(17),
#main-assassins-grid > *:nth-child(17) {
  transition-delay: 1.7s;
  animation-delay: 1.7s;
}
.assassin-grid > *:nth-child(18),
#era-games-grid > *:nth-child(18),
#main-assassins-grid > *:nth-child(18) {
  transition-delay: 1.8s;
  animation-delay: 1.8s;
}
.assassin-grid > *:nth-child(19),
#era-games-grid > *:nth-child(19),
#main-assassins-grid > *:nth-child(19) {
  transition-delay: 1.9s;
  animation-delay: 1.9s;
}
.assassin-grid > *:nth-child(20),
#era-games-grid > *:nth-child(20),
#main-assassins-grid > *:nth-child(20) {
  transition-delay: 2s;
  animation-delay: 2s;
}
