/* Базові стилі */
:root {
  --primary: #ff5555;
  --primary-dark: #cc0000;
  --primary-light: #ff8888;
  --dark: #0a0a0a;
  --dark-light: #111111;
  --dark-lighter: #1a1a1a;
  --text: #eee;
  --text-light: #ddd;
  --text-muted: #888;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.2);
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--dark);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

section {
  padding: 80px 0;
}

h1, h2, h3, h4, h5 {
  color: var(--text-light);
  margin-bottom: 1rem;
  line-height: 1.2;
}

h1 {
  font-size: 3.5rem;
  font-weight: 700;
}

h2 {
  font-size: 2.8rem;
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
  color: var(--primary);
}

h2::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--primary);
  border-radius: 2px;
}

h3 {
  font-size: 1.8rem;
  color: var(--primary);
}

p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Header */
header {
  background-color: rgba(17, 17, 17, 0.95);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  height: 80px;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary);
  text-shadow: 0 0 10px rgba(255, 85, 85, 0.5);
  margin-right: auto;
  padding-left: 10px;
}

.menu {
  display: flex;
  list-style: none;
  margin-left: auto;
}

.menu li {
  position: relative;
}

.menu a {
  display: flex;
  align-items: center;
  padding: 15px 20px;
  color: var(--text-light);
  transition: var(--transition);
  border-radius: 4px;
  margin: 0 5px;
}

.menu a i {
  margin-right: 8px;
  font-size: 1.1rem;
}

.menu a:hover, .menu a.active {
  background-color: var(--primary);
  color: white;
  box-shadow: 0 0 10px rgba(255, 85, 85, 0.5);
}

.dropdown:hover .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.submenu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--dark-light);
  list-style: none;
  min-width: 200px;
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  z-index: 100;
}

.submenu li a {
  padding: 12px 20px;
  margin: 0;
  border-radius: 0;
  display: block;
}

.submenu li:first-child a {
  border-radius: 8px 8px 0 0;
}

.submenu li:last-child a {
  border-radius: 0 0 8px 8px;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 24px;
  justify-content: space-between;
  padding: 0;
}

.menu-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: var(--text-light);
  border-radius: 2px;
  transition: var(--transition);
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Hero Section */


.cta-button {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 15px 35px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

/* Story Section */
.story-section {
  background-color: var(--dark-light);
}

.story-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.story-text p {
  font-size: 1.2rem;
}

.story-image {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.story-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  transition: var(--transition);
}

.story-image:hover img {
  transform: scale(1.05);
}

/* Features Section */
.features-section {
  background-color: var(--dark);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.feature-card {
  background: var(--dark-light);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border-top: 4px solid var(--primary);
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 20px;
}

.feature-card h3 {
  margin-bottom: 15px;
}

/* Gallery Section */
.gallery-section {
  background-color: var(--dark-light);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.gallery-item {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  height: 250px;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  padding: 20px;
  color: white;
  transform: translateY(100%);
  transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
  transform: translateY(0);
}

/* Links Section */
.links-section {
  background-color: var(--dark);
}

.links-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  justify-items: center;
}

.link-card {
  background: var(--dark-light);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  width: 100%;
  max-width: 350px;
}

.link-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.link-card-centered {
  grid-column: span 1;
  justify-self: center;
}

.link-image {
  height: 200px;
  overflow: hidden;
}

.link-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.link-card:hover .link-image img {
  transform: scale(1.1);
}

.link-content {
  padding: 25px;
}

.link-content h3 {
  margin-bottom: 10px;
  color: var(--primary);
}

.link-content p {
  margin-bottom: 20px;
  color: var(--text-light);
}

.link-btn {
  display: inline-flex;
  align-items: center;
  background: var(--primary);
  color: white;
  padding: 10px 20px;
  border-radius: 5px;
  font-weight: 600;
  transition: var(--transition);
}

.link-btn i {
  margin-left: 8px;
  transition: var(--transition);
}

.link-btn:hover {
  background: var(--primary-dark);
}

.link-btn:hover i {
  transform: translateX(5px);
}

/* Facts Section */
.facts-section {
  background-color: var(--dark-light);
}

.facts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.fact-card {
  background: var(--dark);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.fact-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.fact-icon {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 20px;
}

.fact-card h3 {
  margin-bottom: 15px;
}

/* History Section */
.history-section {
  background-color: var(--dark);
}

.history-timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.history-timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--primary);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  margin-bottom: 50px;
  width: 50%;
  padding: 0 40px;
}

.timeline-item:nth-child(odd) {
  left: 0;
}

.timeline-item:nth-child(even) {
  left: 50%;
}

.timeline-year {
  position: absolute;
  top: 0;
  width: 80px;
  height: 80px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
  box-shadow: var(--shadow);
}

.timeline-item:nth-child(odd) .timeline-year {
  right: -40px;
}

.timeline-item:nth-child(even) .timeline-year {
  left: -40px;
}

.timeline-content {
  background: var(--dark-light);
  padding: 25px;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.timeline-content h3 {
  margin-bottom: 10px;
  color: var(--primary);
}

/* Characters Section */
.characters-section {
  background-color: var(--dark-light);
}

.characters-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.character-card {
  background: var(--dark);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.character-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.character-image {
  height: 300px;
  overflow: hidden;
}

.character-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.character-card:hover .character-image img {
  transform: scale(1.1);
}

.character-info {
  padding: 25px;
}

.character-info h3 {
  margin-bottom: 10px;
  color: var(--primary);
}

/* Footer */
footer {
  background-color: var(--dark);
  padding: 60px 0 20px;
  border-top: 3px solid var(--primary);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo h3 {
  color: var(--primary);
  margin-bottom: 10px;
  font-size: 1.8rem;
}

.footer-logo p {
  color: var(--text-muted);
}

.footer-links h4, .footer-social h4 {
  color: var(--text-light);
  margin-bottom: 20px;
  font-size: 1.2rem;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--text-muted);
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--primary);
  padding-left: 5px;
}

.social-icons {
  display: flex;
  gap: 15px;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--dark-light);
  border-radius: 50%;
  transition: var(--transition);
  color: var(--text-light);
}

.social-icons a:hover {
  background: var(--primary);
  transform: translateY(-3px);
  color: white;
}

.footer-bottom {
  border-top: 1px solid var(--dark-lighter);
  padding-top: 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-bottom p {
  margin-bottom: 5px;
}

/* Анімації */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeInUp 0.8s ease forwards;
}

/* Адаптивність */
@media (max-width: 1200px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .characters-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1024px) {
  h1 {
    font-size: 3rem;
  }
  
  h2 {
    font-size: 2.4rem;
  }
  
  .hero h1 {
    font-size: 3.2rem;
  }
  
  .links-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .header-container {
    padding: 0 15px;
  }
  
  .menu-toggle {
    display: flex;
  }
  
  .menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--dark-light);
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    box-shadow: var(--shadow);
  }
  
  .menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  
  .menu li {
    width: 100%;
  }
  
  .menu a {
    margin: 0;
    border-radius: 0;
    padding: 15px 20px;
    border-bottom: 1px solid var(--dark-lighter);
  }
  
  .dropdown:hover .submenu {
    opacity: 0;
    visibility: hidden;
  }
  
  .submenu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: var(--dark);
    border-radius: 0;
    display: none;
  }
  
  .submenu.active {
    display: block;
  }
  
  .hero {
    height: 70vh;
    margin-top: 80px;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero p {
    font-size: 1.1rem;
  }
  
  section {
    padding: 60px 0;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  .story-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .links-grid {
    grid-template-columns: 1fr;
  }
  
  .characters-grid {
    grid-template-columns: 1fr;
  }
  
  .history-timeline::before {
    left: 20px;
  }
  
  .timeline-item {
    width: 100%;
    padding-left: 50px;
    padding-right: 0;
  }
  
  .timeline-item:nth-child(even) {
    left: 0;
  }
  
  .timeline-year {
    left: -40px !important;
    right: auto !important;
  }
}

@media (max-width: 480px) {
  .header-container {
    height: 70px;
  }
  
  .logo {
    font-size: 1.5rem;
  }
  
  .hero {
    height: 60vh;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  h1 {
    font-size: 2.2rem;
  }
  
  h2 {
    font-size: 1.8rem;
  }
  
  section {
    padding: 40px 0;
  }
  
  .container {
    padding: 0 15px;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .social-icons {
    justify-content: center;
  }
}

/* Додаткові стилі для покращення UX */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--dark-light);
}

::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}

::selection {
  background: var(--primary);
  color: white;
}

.loading {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.loaded {
  opacity: 1;
}

/* Стилі для акордеону FAQ */
details {
  background: var(--dark-light);
  margin-bottom: 10px;
  border-radius: 5px;
  overflow: hidden;
}

summary {
  padding: 15px 20px;
  cursor: pointer;
  font-weight: 600;
  color: var(--primary);
  outline: none;
}

details[open] summary {
  border-bottom: 1px solid var(--dark-lighter);
}

details div {
  padding: 15px 20px;
}

/* Специфічні стилі для вирівнювання */
.link-card:nth-child(4),
.link-card:nth-child(5) {
  grid-column: span 1;
  margin: 0 auto;
}

/* Вирівнювання для парної кількості елементів */
@media (max-width: 1024px) {
  .link-card:nth-child(4),
  .link-card:nth-child(5) {
    grid-column: span 1;
    justify-self: center;
  }
}

@media (max-width: 768px) {
  .link-card:nth-child(4),
  .link-card:nth-child(5) {
    grid-column: span 1;
    justify-self: center;
  }
}

/* Page Navigation */
.page-navigation {
  background: var(--dark-light);
  padding: 20px 0;
  position: sticky;
  top: 80px;
  z-index: 999;
  border-bottom: 2px solid var(--primary);
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  background: var(--dark);
  border-radius: 25px;
  color: var(--text-light);
  transition: var(--transition);
  border: 2px solid transparent;
}

.nav-link:hover, .nav-link.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary-light);
  transform: translateY(-2px);
}

.nav-link i {
  font-size: 1.2rem;
}

/* Characters Section */
.characters-section {
  background: var(--dark);
  padding: 100px 0;
}

.section-intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px;
  font-size: 1.2rem;
  color: var(--text-light);
}

.characters-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 50px;
}

.character-card {
  background: linear-gradient(135deg, var(--dark-light) 0%, var(--dark-lighter) 100%);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: all 0.4s ease;
  position: relative;
}

.character-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 40px rgba(255, 85, 85, 0.2);
}

.character-image {
  position: relative;
  height: 300px;
  overflow: hidden;
}

.character-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.character-card:hover .character-image img {
  transform: scale(1.1);
}

.character-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--primary);
  color: white;
  padding: 5px 12px;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
}

.character-info {
  padding: 25px;
}

.character-info h3 {
  color: var(--primary);
  margin-bottom: 15px;
  font-size: 1.6rem;
}

.character-stats {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 15px;
}

.stat {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.stat-label {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.stat-value {
  color: var(--text-light);
  font-weight: 600;
}

.character-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 15px;
}

.feature-tag {
  background: rgba(255, 85, 85, 0.1);
  color: var(--primary-light);
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.8rem;
  border: 1px solid rgba(255, 85, 85, 0.3);
}

/* Stories Timeline */
.story-section {
  background: var(--dark-light);
  padding: 100px 0;
}

.stories-timeline {
  max-width: 1000px;
  margin: 0 auto;
}

.story-item {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 40px;
  margin-bottom: 60px;
  align-items: start;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.story-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.story-character {
  text-align: center;
}

.story-character img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--primary);
  margin-bottom: 15px;
  transition: var(--transition);
}

.story-character img:hover {
  border-color: var(--primary-light);
  transform: scale(1.05);
}

.story-character h4 {
  color: var(--primary);
  font-size: 1.3rem;
}

.story-content {
  background: var(--dark);
  padding: 30px;
  border-radius: 15px;
  border-left: 4px solid var(--primary);
  transition: var(--transition);
}

.story-content:hover {
  border-left-color: var(--primary-light);
  transform: translateX(5px);
}

.story-content h3 {
  color: var(--primary-light);
  margin-bottom: 15px;
  font-size: 1.4rem;
}

.story-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin-top: 20px;
}

.highlight {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  background: rgba(255, 85, 85, 0.05);
  border-radius: 8px;
  transition: var(--transition);
}

.highlight:hover {
  background: rgba(255, 85, 85, 0.1);
  transform: translateX(5px);
}

.highlight i {
  color: var(--primary);
  font-size: 1.1rem;
}

/* Weapons Section */
.weapons-section {
  background: var(--dark);
  padding: 100px 0;
}

.weapons-filter {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 12px 24px;
  background: var(--dark-light);
  color: var(--text-light);
  border: 2px solid transparent;
  border-radius: 25px;
  cursor: pointer;
  transition: var(--transition);
  font-weight: 600;
}

.filter-btn:hover, .filter-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 0 15px rgba(255, 85, 85, 0.3);
}

.weapons-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.weapon-card {
  background: linear-gradient(135deg, var(--dark-light) 0%, var(--dark-lighter) 100%);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.weapon-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.weapon-card.hidden {
  display: none !important;
}

.weapon-image {
  height: 200px;
  overflow: hidden;
  position: relative;
}

.weapon-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, rgba(255, 85, 85, 0.1) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.weapon-card:hover .weapon-image::before {
  opacity: 1;
}

.weapon-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.weapon-card:hover .weapon-image img {
  transform: scale(1.1);
}

.weapon-info {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.weapon-info h3 {
  color: var(--primary);
  margin-bottom: 5px;
  font-size: 1.4rem;
}

.weapon-owner {
  color: var(--primary-light);
  font-size: 0.9rem;
  margin-bottom: 15px;
  font-weight: 600;
}

.weapon-stats {
  margin-top: auto;
  padding-top: 15px;
}

.weapon-stat {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.weapon-stat span {
  min-width: 80px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.stat-bar {
  flex-grow: 1;
  height: 6px;
  background: var(--dark);
  border-radius: 3px;
  overflow: hidden;
}

.stat-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  border-radius: 3px;
  transition: width 0.5s ease;
}

/* Hero Buttons */
.hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 30px;
  flex-wrap: wrap;
}

.cta-button.secondary {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}

.cta-button.secondary:hover {
  background: var(--primary);
  color: white;
}

/* Skills Section */
.skills-section {
  background: var(--dark-light);
  padding: 100px 0;
}

.skills-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.skill-category {
  background: var(--dark);
  padding: 30px;
  border-radius: 15px;
  border-top: 4px solid var(--primary);
}

.skill-category h3 {
  color: var(--primary);
  margin-bottom: 20px;
  font-size: 1.5rem;
}

.skill-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.skill-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  background: var(--dark-light);
  border-radius: 8px;
  transition: var(--transition);
}

.skill-item:hover {
  background: rgba(255, 85, 85, 0.1);
  transform: translateX(5px);
}

.skill-name {
  color: var(--text-light);
  font-weight: 600;
}

.skill-cost {
  color: var(--primary-light);
  font-size: 0.9rem;
}

/* ====== АНІМАЦІЇ ====== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInFromLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInFromRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Затримки анімацій */
.character-card {
  animation: fadeInUp 0.8s ease forwards;
  opacity: 0;
}

.character-card:nth-child(1) { animation-delay: 0.1s; }
.character-card:nth-child(2) { animation-delay: 0.2s; }
.character-card:nth-child(3) { animation-delay: 0.3s; }
.character-card:nth-child(4) { animation-delay: 0.4s; }

.story-item:nth-child(1) { animation-delay: 0.1s; }
.story-item:nth-child(2) { animation-delay: 0.2s; }
.story-item:nth-child(3) { animation-delay: 0.3s; }
.story-item:nth-child(4) { animation-delay: 0.4s; }

.weapon-card {
  animation: fadeInUp 0.8s ease forwards;
  opacity: 0;
}

.weapon-card:nth-child(1) { animation-delay: 0.1s; }
.weapon-card:nth-child(2) { animation-delay: 0.2s; }
.weapon-card:nth-child(3) { animation-delay: 0.3s; }
.weapon-card:nth-child(4) { animation-delay: 0.4s; }
.weapon-card:nth-child(5) { animation-delay: 0.5s; }
.weapon-card:nth-child(6) { animation-delay: 0.6s; }
.weapon-card:nth-child(7) { animation-delay: 0.7s; }
.weapon-card:nth-child(8) { animation-delay: 0.8s; }
.weapon-card:nth-child(9) { animation-delay: 0.9s; }
.weapon-card:nth-child(10) { animation-delay: 1.0s; }

/* ====== АДАПТИВНІСТЬ ====== */
@media (max-width: 1200px) {
  .characters-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .weapons-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .page-navigation {
    top: 70px;
    padding: 15px 0;
  }
  
  .nav-links {
    gap: 10px;
  }
  
  .nav-link {
    padding: 10px 15px;
    font-size: 0.9rem;
  }
  
  .story-item {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 20px;
  }
  
  .characters-grid {
    grid-template-columns: 1fr;
  }
  
  .weapons-grid {
    grid-template-columns: 1fr;
  }
  
  .weapons-filter {
    gap: 10px;
  }
  
  .filter-btn {
    padding: 10px 15px;
    font-size: 0.9rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .cta-button {
    width: 100%;
    max-width: 300px;
    text-align: center;
  }
  
  .skills-categories {
    grid-template-columns: 1fr;
  }
  
  .characters-section,
  .story-section,
  .weapons-section,
  .skills-section {
    padding: 60px 0;
  }
}

@media (max-width: 480px) {
  .character-image {
    height: 250px;
  }
  
  .weapon-image {
    height: 150px;
  }
  
  .story-highlights {
    grid-template-columns: 1fr;
  }
  
  .character-stats {
    font-size: 0.9rem;
  }
  
  .story-character img {
    width: 100px;
    height: 100px;
  }
  
  .skill-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }
  
  .nav-link span {
    display: none;
  }
  
  .nav-link i {
    font-size: 1.4rem;
  }
}

/* ====== ДОДАТКОВІ СТИЛІ ====== */
/* Статистика зірочок */
.fa-star {
  color: var(--primary);
}

.far.fa-star {
  color: var(--text-muted);
}

/* Спеціальні ефекти для персонажів */
.character-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 85, 85, 0.1), transparent);
  transition: left 0.6s ease;
  z-index: 1;
}

.character-card:hover::before {
  left: 100%;
}

/* Декоративні елементи */
.section-divider {
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--primary) 50%, transparent 100%);
  margin: 60px auto;
  width: 80%;
  max-width: 800px;
}

/* Поліпшення для мобільних пристроїв */
@media (max-width: 768px) {
  .character-card, .weapon-card, .story-item {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Прокрутка до секцій */
html {
  scroll-behavior: smooth;
}

/* Скидання анімацій для пристроїв, які не підтримують анімації */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Timeline Section */
.timeline-section {
  background-color: var(--dark-light);
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.timeline-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 20% 50%, rgba(255, 85, 85, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.timeline {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 6px;
  background: linear-gradient(to bottom, 
    transparent 0%, 
    var(--primary) 10%, 
    var(--primary) 90%, 
    transparent 100%);
  transform: translateX(-50%);
  border-radius: 3px;
  box-shadow: 0 0 20px rgba(255, 85, 85, 0.3);
}

.timeline-item {
  position: relative;
  margin-bottom: 80px;
  width: 45%;
  padding: 0 40px;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease forwards;
}

.timeline-item:nth-child(odd) {
  left: 0;
  text-align: right;
  animation-delay: 0.2s;
}

.timeline-item:nth-child(even) {
  left: 55%;
  text-align: left;
  animation-delay: 0.4s;
}

.timeline-year {
  position: absolute;
  top: 0;
  width: 120px;
  height: 120px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.6rem;
  box-shadow: var(--shadow-lg);
  color: white;
  z-index: 3;
  border: 4px solid var(--dark-light);
  transition: all 0.3s ease;
}

.timeline-year:hover {
  transform: scale(1.1);
  box-shadow: 0 0 30px rgba(255, 85, 85, 0.5);
}

.timeline-item:nth-child(odd) .timeline-year {
  right: -60px;
}

.timeline-item:nth-child(even) .timeline-year {
  left: -60px;
}

.timeline-content {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-lighter) 100%);
  padding: 40px;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  border-left: 4px solid var(--primary);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.timeline-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, rgba(255, 85, 85, 0.05) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.timeline-item:nth-child(even) .timeline-content {
  border-left: none;
  border-right: 4px solid var(--primary);
}

.timeline-content:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.timeline-content:hover::before {
  opacity: 1;
}

.timeline-content h3 {
  color: var(--primary);
  margin-bottom: 20px;
  font-size: 1.8rem;
  position: relative;
  z-index: 2;
}

.timeline-content p {
  color: var(--text-light);
  line-height: 1.8;
  font-size: 1.1rem;
  position: relative;
  z-index: 2;
}

/* Team Section */
.team-section {
  background-color: var(--dark);
  padding: 100px 0;
  position: relative;
}

.team-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--primary) 50%, transparent 100%);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 50px;
  max-width: 1200px;
  margin: 0 auto;
}

.team-card {
  background: linear-gradient(135deg, var(--dark-light) 0%, var(--dark-lighter) 100%);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: all 0.4s ease;
  position: relative;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease forwards;
}

.team-card:nth-child(1) { animation-delay: 0.1s; }
.team-card:nth-child(2) { animation-delay: 0.2s; }
.team-card:nth-child(3) { animation-delay: 0.3s; }

.team-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 85, 85, 0.1), transparent);
  transition: left 0.6s ease;
  z-index: 1;
}

.team-card:hover::before {
  left: 100%;
}

.team-card:hover {
  transform: translateY(-12px) rotate(1deg);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.team-image {
  height: 300px;
  overflow: hidden;
  position: relative;
}

.team-image::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50%;
  background: linear-gradient(transparent, var(--dark-light));
  z-index: 1;
}

.team-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.5s ease;
  filter: grayscale(0.2);
}

.team-card:hover .team-image img {
  transform: scale(1.15);
  filter: grayscale(0);
}

.team-info {
  padding: 35px;
  position: relative;
  z-index: 2;
}

.team-info h3 {
  color: var(--primary);
  margin-bottom: 12px;
  font-size: 1.8rem;
  font-weight: 700;
}

.team-role {
  color: var(--primary-light);
  font-weight: 600;
  margin-bottom: 20px;
  font-size: 1.2rem;
  position: relative;
  display: inline-block;
}

.team-role::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}

.team-card:hover .team-role::after {
  width: 100%;
}

.team-info p {
  color: var(--text-light);
  line-height: 1.7;
  font-size: 1.1rem;
}

/* Awards Section */
.awards-section {
  background-color: var(--dark-light);
  padding: 100px 0;
  position: relative;
}

.awards-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 80% 20%, rgba(255, 85, 85, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

.awards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 35px;
  max-width: 1200px;
  margin: 0 auto;
}

.award-card {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-lighter) 100%);
  border-radius: 15px;
  padding: 40px 30px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: all 0.4s ease;
  border-top: 4px solid var(--primary);
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease forwards;
}

.award-card:nth-child(1) { animation-delay: 0.1s; }
.award-card:nth-child(2) { animation-delay: 0.2s; }
.award-card:nth-child(3) { animation-delay: 0.3s; }
.award-card:nth-child(4) { animation-delay: 0.4s; }

.award-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 85, 85, 0.1) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.award-card:hover {
  transform: translateY(-10px) scale(1.05);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.award-card:hover::before {
  opacity: 1;
}

.award-icon {
  font-size: 4rem;
  color: var(--primary);
  margin-bottom: 25px;
  transition: all 0.3s ease;
  position: relative;
  z-index: 2;
}

.award-card:hover .award-icon {
  transform: scale(1.2) rotate(5deg);
  color: var(--primary-light);
}

.award-card h3 {
  color: var(--primary);
  margin-bottom: 15px;
  font-size: 1.5rem;
  font-weight: 700;
  position: relative;
  z-index: 2;
}

.award-card p {
  color: var(--text-light);
  font-style: italic;
  font-size: 1.1rem;
  position: relative;
  z-index: 2;
}

/* Facts Section для сторінки розробки */
.facts-section {
  background-color: var(--dark);
  padding: 100px 0;
}

.facts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 35px;
  max-width: 1300px;
  margin: 0 auto;
}

.fact-card {
  background: linear-gradient(135deg, var(--dark-light) 0%, var(--dark-lighter) 100%);
  border-radius: 15px;
  padding: 35px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: all 0.4s ease;
  border-left: 4px solid var(--primary);
  position: relative;
  overflow: hidden;
}

.fact-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, rgba(255, 85, 85, 0.05) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.fact-card:hover::before {
  opacity: 1;
}

.fact-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.fact-icon {
  font-size: 3.5rem;
  color: var(--primary);
  margin-bottom: 25px;
  transition: all 0.3s ease;
}

.fact-card:hover .fact-icon {
  transform: scale(1.2) rotate(360deg);
}

.fact-card h3 {
  color: var(--primary);
  margin-bottom: 20px;
  font-size: 1.5rem;
  font-weight: 700;
}

.fact-card p {
  color: var(--text-light);
  line-height: 1.7;
  font-size: 1.1rem;
}

/* Story Section для сторінки розробки */
.story-section {
  background-color: var(--dark);
  padding: 100px 0;
}

.story-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.story-text p {
  font-size: 1.2rem;
  line-height: 1.8;
  margin-bottom: 25px;
}

.story-image {
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.story-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, rgba(255, 85, 85, 0.1) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.story-image:hover::before {
  opacity: 1;
}

.story-image img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  transition: all 0.5s ease;
}

.story-image:hover img {
  transform: scale(1.1);
}

/* Features Section для сторінки розробки */
.features-section {
  background-color: var(--dark-light);
  padding: 100px 0;
}

/* Hero Section для сторінки розробки */
.hero {
  background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), 
              url('https://images.hdqwalls.com/wallpapers/devil-may-cry-5-4k-5c.jpg') center/cover no-repeat;
  height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-top: 80px;
}

.hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 30px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

.hero-content p {
  font-size: 1.3rem;
  max-width: 800px;
  margin: 0 auto;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.7);
}

/* Requirements Section для нагород */
.requirements {
  background-color: var(--dark-light);
  padding: 80px 0;
}

.reqs {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
  max-width: 1000px;
  margin: 0 auto;
}

.reqs-min, .reqs-rec {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-lighter) 100%);
  padding: 30px;
  border-radius: 12px;
  width: 300px;
  max-width: 90%;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--primary);
  transition: transform 0.3s ease;
  text-align: center;
}

.reqs-min:hover, .reqs-rec:hover {
  transform: translateY(-5px);
}

.reqs-min h3, .reqs-rec h3 { 
  color: var(--primary); 
  margin-bottom: 15px;
  font-size: 1.5rem;
}

.reqs-min p, .reqs-rec p {
  color: var(--text-light);
  font-style: italic;
}

/* Адаптивність для сторінки розробки */
@media (max-width: 1200px) {
  .timeline::before {
    left: 40px;
  }
  
  .timeline-item {
    width: 85%;
    left: 15% !important;
    text-align: left;
    padding-left: 80px;
    padding-right: 20px;
  }
  
  .timeline-item:nth-child(odd),
  .timeline-item:nth-child(even) {
    left: 15% !important;
  }
  
  .timeline-year {
    left: -40px !important;
    right: auto !important;
    width: 80px;
    height: 80px;
    font-size: 1.3rem;
  }
  
  .timeline-content {
    border-left: 4px solid var(--primary) !important;
    border-right: none !important;
  }
  
  .story-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .team-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .timeline-section,
  .team-section,
  .awards-section,
  .facts-section,
  .story-section,
  .features-section {
    padding: 60px 0;
  }
  
  .timeline::before {
    left: 30px;
  }
  
  .timeline-item {
    width: 90%;
    left: 10% !important;
    padding-left: 60px;
    margin-bottom: 60px;
  }
  
  .timeline-year {
    width: 60px;
    height: 60px;
    font-size: 1.1rem;
    left: -30px !important;
  }
  
  .timeline-content {
    padding: 25px;
  }
  
  .timeline-content h3 {
    font-size: 1.5rem;
  }
  
  .team-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  
  .team-image {
    height: 250px;
  }
  
  .awards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  
  .facts-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .hero-content p {
    font-size: 1.1rem;
  }
  
  .story-image img {
    height: 350px;
  }
  
  .reqs {
    flex-direction: column;
    align-items: center;
  }
  
  .reqs-min, .reqs-rec {
    width: 100%;
    max-width: 400px;
  }
}

@media (max-width: 480px) {
  .timeline::before {
    left: 20px;
  }
  
  .timeline-item {
    width: 95%;
    left: 5% !important;
    padding-left: 50px;
    padding-right: 15px;
  }
  
  .timeline-year {
    width: 50px;
    height: 50px;
    font-size: 1rem;
    left: -25px !important;
  }
  
  .timeline-content {
    padding: 20px;
  }
  
  .timeline-content h3 {
    font-size: 1.3rem;
  }
  
  .timeline-content p {
    font-size: 1rem;
  }
  
  .awards-grid {
    grid-template-columns: 1fr;
  }
  
  .award-card {
    padding: 25px 20px;
  }
  
  .award-icon {
    font-size: 3rem;
  }
  
  .fact-card {
    padding: 25px 20px;
  }
  
  .fact-icon {
    font-size: 2.5rem;
  }
  
  .hero {
    height: 60vh;
  }
  
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .hero-content p {
    font-size: 1rem;
  }
  
  .team-info {
    padding: 25px;
  }
  
  .team-info h3 {
    font-size: 1.5rem;
  }
}

/* Спеціальні анімації для сторінки розробки */
@keyframes timelineAppear {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes timelineAppearRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Прокрутка анімацій */
.timeline-item {
  opacity: 0;
  transition: all 0.6s ease;
}

.timeline-item.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Плавне з'явлення при прокрутці */
.fade-in-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.fade-in-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Додаткові декоративні елементи */
.section-divider {
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--primary) 50%, transparent 100%);
  margin: 60px auto;
  width: 80%;
  max-width: 800px;
}

/* Покращення для мобільних пристроїв */
@media (max-width: 768px) {
  .section-divider {
    margin: 40px auto;
    width: 60%;
  }
}

/* Додаткові стилі для кращої читабельності */
.timeline-content p,
.team-info p,
.award-card p,
.fact-card p {
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Підсвітка посилань у тексті */
.story-text a {
  color: var(--primary-light);
  text-decoration: none;
  border-bottom: 1px dashed var(--primary-light);
  transition: all 0.3s ease;
}

.story-text a:hover {
  color: var(--primary);
  border-bottom: 1px solid var(--primary);
}

/* Скидання стилів для консистентності */
.requirements .reqs-min:hover,
.requirements .reqs-rec:hover {
  transform: translateY(-5px);
}

.requirements h3 { 
  color: var(--primary); 
  margin-bottom: 20px;
  font-size: 1.5rem;
}

.requirements ul {
  padding-left: 20px;
}

.requirements li {
  margin-bottom: 10px;
  line-height: 1.6;
}

/* Фінальні правки для консистентності */
.hero-text h1 { 
  font-size: 3.5rem; 
  margin-bottom: 30px; 
  color: #fff;
  text-shadow: 0 0 15px rgba(255, 85, 85, 0.7);
}

.hero-text p  { 
  font-size: 1.4rem; 
  line-height: 1.8;
}

/* Забезпечення консистентності секцій */
.section { 
  padding: 80px 30px; 
}

.section h2 {
  font-size: 2.8rem;
  color: #ff5555;
  margin-bottom: 50px;
  text-align: center;
  position: relative;
  padding-bottom: 20px;
  text-shadow: 0 0 10px rgba(255, 85, 85, 0.3);
}

.section h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background-color: #ff5555;
  box-shadow: 0 0 10px rgba(255, 85, 85, 0.5);
}

/* Фікс для мобільної навігації */
@media (max-width: 768px) {
  .menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--dark-light);
    flex-direction: column;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .menu.show {
    max-height: 1000px;
  }

  .menu li {
    width: 100%;
  }

  .menu a {
    margin: 0;
    border-radius: 0;
    padding: 15px 20px;
    border-bottom: 1px solid var(--dark-lighter);
  }
}

/* Фінальні оптимізації */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--dark);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Забезпечення роботи JavaScript функцій */
.hidden {
  display: none !important;
}

.visible {
  display: block !important;
}

/* Фікс для карток зброї */
.weapon-card {
  display: flex !important;
}

.weapon-card.hidden {
  display: none !important;
}

/* Фікс для фільтрації */
[data-character] {
  transition: all 0.3s ease;
}

/* ===== ОНОВЛЕНІ СТИЛІ ДЛЯ ЗБРОЇ ===== */
.weapons-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    transition: all 0.3s ease;
}

.weapon-card {
    background: linear-gradient(135deg, var(--dark-light) 0%, var(--dark-lighter) 100%);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    border: 2px solid transparent;
}

.weapon-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.weapon-card.hidden {
    display: none !important;
    opacity: 0;
    transform: scale(0.8);
}

.weapon-card.visible {
    display: flex !important;
    opacity: 1;
    transform: scale(1);
}

/* Фотографії зброї - однаковий розмір */
.weapon-card img {
    width: 100%;
    height: 220px; /* Фіксована висота */
    object-fit: cover; /* Заповнює область без спотворення */
    object-position: center; /* Центрує зображення */
    border-bottom: 3px solid var(--primary);
    transition: all 0.3s ease;
}

.weapon-card:hover img {
    transform: scale(1.05);
    filter: brightness(1.1);
}

/* Контейнер для інформації про зброю */
.weapon-info {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.weapon-info h4 {
    color: var(--primary);
    margin-bottom: 12px;
    font-size: 1.4rem;
    font-weight: 700;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.weapon-info p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 20px;
    text-align: center;
    flex-grow: 1;
}

/* Покращена статистика */
.weapon-stats {
    background: rgba(255, 85, 85, 0.05);
    border-radius: 12px;
    padding: 20px;
    margin-top: auto;
    border: 1px solid rgba(255, 85, 85, 0.1);
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.stat-label {
    color: var(--text-light);
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.stat-label::before {
    content: '•';
    color: var(--primary);
    font-size: 1.2rem;
}

.stat-stars {
    display: flex;
    gap: 4px;
}

.star {
    font-size: 1.2rem;
    color: var(--primary);
    text-shadow: 0 0 8px rgba(255, 85, 85, 0.5);
    transition: all 0.3s ease;
}

.star.empty {
    color: var(--text-muted);
    text-shadow: none;
}

/* Альтернативний варіант статистики з прогресс-барами */
.stat-bar-container {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.stat-bar-label {
    min-width: 100px;
    color: var(--text-light);
    font-weight: 600;
    font-size: 1rem;
}

.stat-bar-wrapper {
    flex-grow: 1;
    background: var(--dark);
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.stat-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    border-radius: 4px;
    transition: width 1s ease-in-out;
    position: relative;
}

.stat-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

.stat-value {
    min-width: 40px;
    text-align: right;
    color: var(--primary-light);
    font-weight: 700;
    font-size: 1rem;
}

/* Анімація для прогресс-барів */
@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Спеціальні мітки для персонажів на картках */
.weapon-character {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 2;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Адаптивність */
@media (max-width: 1200px) {
    .weapons-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .weapon-card img {
        height: 200px;
    }
}

@media (max-width: 768px) {
    .weapons-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .weapon-card img {
        height: 180px;
    }
    
    .weapon-info {
        padding: 20px;
    }
    
    .weapon-info h4 {
        font-size: 1.3rem;
    }
    
    .stat-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .stat-stars {
        align-self: flex-end;
    }
    
    .stat-bar-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .stat-bar-wrapper {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .weapon-card img {
        height: 160px;
    }
    
    .weapon-info {
        padding: 15px;
    }
    
    .weapon-stats {
        padding: 15px;
    }
    
    .stat-label {
        font-size: 0.9rem;
    }
    
    .star {
        font-size: 1.1rem;
    }
}

/* Додаткові ефекти для покращення вигляду */
.weapon-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 85, 85, 0.1), transparent);
    transition: left 0.6s ease;
    z-index: 1;
}

.weapon-card:hover::before {
    left: 100%;
}

/* Іконки для статистики */
.stat-label[data-icon]::before {
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-right: 8px;
}

.stat-label[data-icon="speed"]::before {
    content: '⚡';
}

.stat-label[data-icon="power"]::before {
    content: '💪';
}

.stat-label[data-icon="difficulty"]::before {
    content: '🎯';
}

/* Спеціальні стилі для різних типів зброї */
.weapon-card[data-character="nero"] {
    border-left: 4px solid #42aaff;
}

.weapon-card[data-character="dante"] {
    border-left: 4px solid #ff5555;
}

.weapon-card[data-character="v"] {
    border-left: 4px solid #8b00ff;
}

.weapon-card[data-character="vergil"] {
    border-left: 4px solid #0000FF;
}

.weapon-character {
    background: var(--primary);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

