/* ================================================
   ProjectNXT - Premium MMORPG Landing Page
   Main Stylesheet
   ================================================ */

/* -------------------- CSS Variables -------------------- */
:root {
  /* Primary Colors */
  --color-primary: #9B1B30;
  --color-primary-dark: #7a1526;
  --color-primary-light: #c42341;

  /* Secondary Colors */
  --color-dark: #0d0d0d;
  --color-darker: #050505;
  --color-charcoal: #1a1a1a;
  --color-gray: #2a2a2a;
  --color-gray-light: #3a3a3a;

  /* Accent Colors */
  --color-gold: #c9a227;
  --color-gold-light: #ffd700;
  --color-gold-dark: #a68920;

  /* Text Colors */
  --color-text: #ffffff;
  --color-text-muted: #b0b0b0;
  --color-text-dark: #888888;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  --gradient-dark: linear-gradient(180deg, var(--color-dark) 0%, var(--color-darker) 100%);
  --gradient-gold: linear-gradient(135deg, var(--color-gold) 0%, var(--color-gold-light) 50%, var(--color-gold) 100%);

  /* Glass Effect */
  --glass-bg: rgba(26, 26, 26, 0.7);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-blur: blur(20px);

  /* Shadows */
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 30px rgba(155, 27, 48, 0.5);
  --shadow-gold: 0 0 20px rgba(201, 162, 39, 0.4);

  /* Typography */
  --font-heading: 'Cinzel', serif;
  --font-body: 'Inter', sans-serif;

  /* Spacing */
  --section-padding: 100px 0;
  --container-width: 1400px;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* -------------------- Reset & Base -------------------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background: var(--color-darker);
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-gold);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul,
ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* -------------------- Typography -------------------- */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  text-transform: uppercase;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

p {
  font-size: 1rem;
  color: var(--color-text-muted);
}

.text-gold {
  color: var(--color-gold);
}

.text-primary {
  color: var(--color-primary-light);
}

/* -------------------- Container -------------------- */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 40px;
}

/* -------------------- Buttons -------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 40px;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 4px;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--color-text);
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 40px rgba(155, 27, 48, 0.7);
  color: var(--color-text);
}

.btn-secondary {
  background: transparent;
  color: var(--color-text);
  border: 2px solid var(--color-gold);
}

.btn-secondary:hover {
  background: var(--color-gold);
  color: var(--color-dark);
  transform: translateY(-3px);
}

.btn-gold {
  background: var(--gradient-gold);
  color: var(--color-dark);
  font-weight: 700;
}

.btn-gold:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-gold);
}

/* -------------------- Header / Navigation -------------------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: all var(--transition-normal);
}

.header.scrolled {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--glass-border);
  padding: 15px 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: 50px;
}

.logo-icon {
  width: 50px;
  height: 50px;
  background: var(--gradient-primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  box-shadow: var(--shadow-glow);
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.logo-text span {
  color: var(--color-gold);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  position: relative;
  padding: 5px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-gold);
  transition: width var(--transition-normal);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-cta {
  margin-left: 20px;
}

.nav-cta.btn {
  white-space: nowrap;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 10px;
}

.menu-toggle span {
  width: 28px;
  height: 2px;
  background: var(--color-text);
  transition: all var(--transition-normal);
}

/* -------------------- Hero Section -------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}

.hero-bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
}

.hero-bg-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--color-charcoal) 0%, var(--color-dark) 50%, var(--color-primary-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-dark);
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg,
      rgba(0, 0, 0, 0.4) 0%,
      rgba(0, 0, 0, 0.2) 50%,
      rgba(0, 0, 0, 0.8) 100%);
  z-index: -1;
}

/* Brush Stroke Decorations */
.hero-brush {
  position: absolute;
  z-index: 1;
  pointer-events: none;
}

.hero-brush-left {
  left: 0;
  top: 20%;
  width: 300px;
  height: 400px;
  background: linear-gradient(180deg, var(--color-primary) 0%, transparent 100%);
  clip-path: polygon(0 0, 80% 10%, 60% 100%, 0 90%);
  opacity: 0.6;
}

.hero-brush-right {
  right: 0;
  bottom: 10%;
  width: 250px;
  height: 350px;
  background: linear-gradient(0deg, var(--color-primary-dark) 0%, transparent 100%);
  clip-path: polygon(40% 0, 100% 10%, 100% 100%, 20% 90%);
  opacity: 0.5;
}

.hero-content {
  text-align: center;
  z-index: 10;
  max-width: 900px;
  padding: 0 20px;
}

.hero-subtitle {
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.4em;
  color: var(--color-gold);
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards;
}

.hero-title {
  font-size: clamp(3rem, 8vw, 7rem);
  text-transform: uppercase;
  margin-bottom: 30px;
  text-shadow: 0 0 60px rgba(155, 27, 48, 0.5);
  opacity: 0;
  animation: fadeInUp 0.8s ease 0.2s forwards;
}

.hero-title span {
  display: block;
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 1.2rem;
  color: var(--color-text-muted);
  margin-bottom: 50px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0;
  animation: fadeInUp 0.8s ease 0.4s forwards;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeInUp 0.8s ease 0.6s forwards;
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 0;
  animation: fadeInUp 0.8s ease 1s forwards;
}

.scroll-indicator span {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-text-muted);
}

.scroll-indicator-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(180deg, var(--color-gold) 0%, transparent 100%);
  animation: scrollPulse 2s ease infinite;
}

/* -------------------- Section Styles -------------------- */
.section {
  padding: var(--section-padding);
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-label {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--color-gold);
  margin-bottom: 15px;
}

.section-title {
  margin-bottom: 20px;
}

.section-description {
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.1rem;
}

/* Decorative Divider */
.section-divider {
  width: 80px;
  height: 3px;
  background: var(--gradient-gold);
  margin: 20px auto 0;
}

/* -------------------- Features Interactive Section -------------------- */
.features-interactive {
  background: var(--color-dark);
}

.features-tabs-container {
  display: flex;
  gap: 40px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 40px;
  min-height: 600px;
}

/* Sidebar Navigation */
.features-sidebar {
  flex: 0 0 300px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  padding-right: 30px;
}

.feature-tab-btn {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 15px 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  text-align: left;
}

.feature-tab-btn:hover {
  background: rgba(255, 255, 255, 0.05);
}

.feature-tab-btn.active {
  background: rgba(201, 162, 39, 0.1);
  border-color: rgba(201, 162, 39, 0.3);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}

.tab-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  transition: all 0.3s ease;
  overflow: hidden;
  padding: 8px;
}

.tab-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(0.8) grayscale(1);
  transition: all 0.3s ease;
}

.feature-tab-btn.active .tab-icon {
  background: rgba(201, 162, 39, 0.2);
  border: 1px solid var(--color-gold);
}

.feature-tab-btn.active .tab-icon img {
  filter: brightness(1.2) grayscale(0);
  transform: scale(1.1);
}

.tab-text {
  display: flex;
  flex-direction: column;
}

.tab-title {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-text);
  font-size: 1rem;
}

.tab-subtitle {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Content Area */
.features-content-display {
  flex: 1;
  position: relative;
}

.feature-panel {
  display: none;
  animation: slideFadeIn 0.5s ease forwards;
}

.feature-panel.active {
  display: block;
}

@keyframes slideFadeIn {
  from {
    opacity: 0;
    transform: translateX(30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.panel-header {
  display: flex;
  align-items: center;
  gap: 25px;
  margin-bottom: 40px;
}

.panel-icon-large {
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(201, 162, 39, 0.1);
  border: 1px solid rgba(201, 162, 39, 0.2);
  border-radius: 20px;
  padding: 15px;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.3), inset 0 0 20px rgba(201, 162, 39, 0.1);
}

.panel-icon-large img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(201, 162, 39, 0.5));
}

.panel-title-group h3 {
  font-size: 2.2rem;
  color: var(--color-gold);
  margin-bottom: 5px;
}

.panel-title-group p {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-text-muted);
}

.panel-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.panel-item {
  background: rgba(255, 255, 255, 0.02);
  padding: 25px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}

.panel-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(201, 162, 39, 0.2);
  transform: translateY(-5px);
}

.panel-item h4 {
  font-size: 1.2rem;
  color: var(--color-text);
  margin-bottom: 15px;
  border-left: 3px solid var(--color-gold);
  padding-left: 12px;
}

.panel-item p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.panel-footer {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.panel-quote {
  font-style: italic;
  font-size: 1.2rem;
  color: var(--color-gold);
  opacity: 0.8;
}

/* Responsive Features */
@media (max-width: 1024px) {
  .features-tabs-container {
    flex-direction: column;
  }

  .features-sidebar {
    flex: none;
    flex-direction: row;
    overflow-x: auto;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-right: 0;
    padding-bottom: 20px;
    margin-bottom: 20px;
  }

  .feature-tab-btn {
    width: auto;
    flex-shrink: 0;
  }
}

@media (max-width: 768px) {
  .panel-grid {
    grid-template-columns: 1fr;
  }

  .panel-title-group h3 {
    font-size: 1.6rem;
  }
}

/* -------------------- Interactive Weapons Section -------------------- */
.weapons-section {
  background: linear-gradient(180deg, var(--color-dark) 0%, var(--color-charcoal) 100%);
  overflow: hidden;
}

/* Faction Selector Row */
.weapon-faction-selector {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-bottom: 60px;
  flex-wrap: wrap;
}

.weapon-faction-option {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  padding: 20px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 2px solid transparent;
  transition: all 0.4s ease;
  width: 220px;
}

.weapon-faction-option:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
}

.weapon-faction-option.active {
  border-color: var(--faction-color);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.3), 0 0 20px var(--faction-color);
}

.faction-option-image {
  position: relative;
  width: 150px;
  height: 180px;
  margin-bottom: 15px;
  overflow: hidden;
  border-radius: 12px;
}

.faction-option-image img,
.faction-option-image video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  transition: transform 0.4s ease, filter 0.4s ease;
  filter: brightness(0.7) saturate(0.7);
}

.weapon-faction-option:hover .faction-option-image img,
.weapon-faction-option.active .faction-option-image img,
.weapon-faction-option:hover .faction-option-image video,
.weapon-faction-option.active .faction-option-image video {
  transform: scale(1.1);
  filter: brightness(1) saturate(1);
}

.faction-option-glow {
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 40px;
  background: radial-gradient(ellipse, var(--faction-color) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.weapon-faction-option.active .faction-option-glow {
  opacity: 0.6;
}

.faction-option-info {
  text-align: center;
}

.faction-option-info h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--color-text);
  margin-bottom: 5px;
  transition: color 0.3s ease;
}

.weapon-faction-option.active .faction-option-info h3 {
  color: var(--faction-color);
}

.faction-weapon-count {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.faction-option-indicator {
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: var(--faction-color);
  transition: width 0.3s ease;
  border-radius: 3px;
}

.weapon-faction-option.active .faction-option-indicator {
  width: 60%;
}

/* Weapon Display Area */
.weapon-display-area {
  position: relative;
  min-height: 400px;
  margin-bottom: 50px;
}

.weapon-panel {
  display: none;
  animation: panelFadeIn 0.5s ease forwards;
}

.weapon-panel.active {
  display: block;
}

@keyframes panelFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.weapon-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  flex-wrap: wrap;
  gap: 15px;
}

.weapon-panel-title {
  font-size: 1.5rem;
  color: var(--faction-color);
}

.weapon-type-legend {
  display: flex;
  gap: 12px;
}

.legend-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 30px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text);
  transition: all 0.3s ease;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: block;
}

.legend-defensive .badge-dot {
  background: #4a90d9;
  box-shadow: 0 0 10px #4a90d9;
}

.legend-offensive .badge-dot {
  background: #d94a4a;
  box-shadow: 0 0 10px #d94a4a;
}

.legend-ranged .badge-dot {
  background: #9b59b6;
  box-shadow: 0 0 10px #9b59b6;
}

.legend-defensive {
  border-color: rgba(74, 144, 217, 0.3);
}

.legend-offensive {
  border-color: rgba(217, 74, 74, 0.3);
}

.legend-ranged {
  border-color: rgba(155, 89, 182, 0.3);
}

.legend-badge:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

/* Weapon Cards Grid */
.weapon-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.weapon-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.4s ease;
}

.weapon-card:hover {
  transform: translateY(-8px);
  border-color: var(--faction-color);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.weapon-card-image {
  position: relative;
  height: 240px;
  background: linear-gradient(135deg, rgba(30, 30, 30, 0.9) 0%, rgba(20, 20, 20, 0.95) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.weapon-card-image img {
  width: 180px;
  height: 180px;
  object-fit: contain;
  transition: transform 0.4s ease;
}

.weapon-card:hover .weapon-card-image img {
  transform: scale(1.15) rotate(5deg);
}

.weapon-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
}

.weapon-card-content {
  padding: 20px;
}

.weapon-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  gap: 10px;
}

.weapon-card-header h4 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-text);
}

.weapon-card-type {
  font-size: 0.7rem;
  padding: 4px 12px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  color: #fff;
}

.type-defensive {
  background: #4a90d9;
}

.type-offensive {
  background: #d94a4a;
}

.type-ranged {
  background: #9b59b6;
}

.weapon-card-desc {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* Sky Clan Note */
.sky-clan-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  padding: 20px 30px;
  background: rgba(107, 91, 149, 0.15);
  border: 1px solid rgba(107, 91, 149, 0.3);
  border-radius: 12px;
  max-width: 600px;
  margin: 0 auto;
}

.sky-clan-note .note-icon {
  font-size: 1.5rem;
  color: #6b5b95;
}

.sky-clan-note p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin: 0;
}

.sky-clan-note strong {
  color: #a99fd4;
}

/* Responsive Weapons Section */
@media (max-width: 1024px) {
  .weapon-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .weapon-faction-selector {
    gap: 20px;
  }

  .weapon-faction-option {
    width: 180px;
    padding: 15px;
  }

  .faction-option-image {
    width: 120px;
    height: 150px;
  }
}

@media (max-width: 768px) {
  .weapon-cards {
    grid-template-columns: 1fr;
  }

  .weapon-faction-selector {
    gap: 15px;
  }

  .weapon-faction-option {
    width: 100px;
    padding: 12px;
  }

  .faction-option-image {
    width: 80px;
    height: 100px;
  }

  .faction-option-info h3 {
    font-size: 0.85rem;
  }

  .faction-weapon-count {
    font-size: 0.7rem;
  }

  .weapon-panel-header {
    flex-direction: column;
    text-align: center;
  }

  .sky-clan-note {
    flex-direction: column;
    text-align: center;
    padding: 15px;
  }
}

/* -------------------- News Section -------------------- */
.news {
  background: var(--color-darker);
}

.news-layout {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 50px;
}

.news-list {
  display: flex;
  flex-direction: column;
}

.news-item {
  display: flex;
  gap: 25px;
  padding: 30px 0;
  border-bottom: 1px solid var(--color-gray);
  transition: all var(--transition-normal);
}

.news-item:first-child {
  padding-top: 0;
}

.news-item:hover {
  padding-left: 15px;
}

.news-date {
  flex: 0 0 60px;
  text-align: center;
}

.news-day {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-primary-light);
  line-height: 1;
}

.news-month {
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--color-text-muted);
  letter-spacing: 0.1em;
}

.news-content {
  flex: 1;
}

.news-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
  transition: color var(--transition-fast);
}

.news-item:hover .news-title {
  color: var(--color-gold);
}

.news-excerpt {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-read-more {
  font-size: 0.85rem;
  color: var(--color-primary-light);
  font-weight: 500;
}

.news-read-more:hover {
  color: var(--color-gold);
}

/* Featured News Cards */
.news-featured {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.featured-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  overflow: hidden;
  transition: all var(--transition-normal);
}

.featured-card:hover {
  transform: translateY(-5px);
  border-color: var(--color-gold);
}

.featured-image {
  width: 100%;
  height: 180px;
  position: relative;
}

.featured-image-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-charcoal) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-dark);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.featured-content {
  padding: 20px;
}

.featured-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-gold);
  margin-bottom: 10px;
}

.featured-title {
  font-size: 1.1rem;
  margin-bottom: 15px;
}

.featured-link {
  font-size: 0.85rem;
  color: var(--color-primary-light);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.featured-link::after {
  content: '→';
  transition: transform var(--transition-fast);
}

.featured-link:hover::after {
  transform: translateX(5px);
}

/* -------------------- CTA Section -------------------- */
.cta {
  position: relative;
  padding: 120px 0;
  text-align: center;
  overflow: hidden;
}

.cta-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-dark) 50%, var(--color-charcoal) 100%);
  z-index: -1;
}

.cta-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 10;
}

.cta-title {
  margin-bottom: 20px;
}

.cta-description {
  font-size: 1.2rem;
  margin-bottom: 40px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* -------------------- Footer -------------------- */
.footer {
  background: var(--color-darker);
  border-top: 1px solid var(--color-gray);
  position: relative;
  overflow: hidden;
}

/* Footer Video Background */
.footer-video-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.footer-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}

.footer-video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg,
      rgba(5, 5, 5, 0.9) 0%,
      rgba(5, 5, 5, 0.7) 50%,
      rgba(5, 5, 5, 0.95) 100%);
}

.footer-main {
  position: relative;
  z-index: 1;
  padding: 80px 0 60px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(4, 1fr);
  gap: 50px;
}

.footer-brand {
  padding-right: 40px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.footer-logo-icon {
  width: 45px;
  height: 45px;
  background: var(--gradient-primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
}

.footer-logo-text {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
}

.footer-tagline {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin-bottom: 25px;
  line-height: 1.7;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.social-link {
  width: 40px;
  height: 40px;
  background: var(--color-gray);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all var(--transition-normal);
}

.social-link:hover {
  background: var(--color-primary);
  transform: translateY(-3px);
}

.footer-column h4 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 25px;
  color: var(--color-gold);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-link {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  transition: all var(--transition-fast);
}

.footer-link:hover {
  color: var(--color-text);
  padding-left: 5px;
}

/* Newsletter */
.footer-newsletter {
  margin-top: 30px;
}

.newsletter-form {
  display: flex;
  gap: 10px;
}

.newsletter-input {
  flex: 1;
  padding: 12px 16px;
  background: var(--color-gray);
  border: 1px solid var(--color-gray-light);
  border-radius: 6px;
  color: var(--color-text);
  font-size: 0.9rem;
}

.newsletter-input::placeholder {
  color: var(--color-text-dark);
}

.newsletter-input:focus {
  outline: none;
  border-color: var(--color-gold);
}

.newsletter-btn {
  padding: 12px 20px;
  background: var(--color-primary);
  border-radius: 6px;
  color: var(--color-text);
  font-weight: 600;
  transition: all var(--transition-normal);
}

.newsletter-btn:hover {
  background: var(--color-primary-light);
}

/* Footer Bottom */
.footer-bottom {
  padding: 25px 0;
  border-top: 1px solid var(--color-gray);
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.copyright {
  font-size: 0.85rem;
  color: #ffffff;
}

.footer-legal {
  display: flex;
  gap: 30px;
}

.footer-legal a {
  font-size: 0.85rem;
  color: var(--color-text-dark);
}

.footer-legal a:hover {
  color: var(--color-text);
}

/* -------------------- Download Page -------------------- */
.download-page {
  padding-top: 100px;
}

.download-hero {
  position: relative;
  padding: 100px 0;
  text-align: center;
  overflow: hidden;
}

.download-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7) 0%, rgba(26, 26, 26, 0.9) 100%),
    url('../images/download.jpeg') center/cover no-repeat;
  z-index: -1;
}

.download-title {
  font-size: 3.5rem;
  margin-bottom: 20px;
}

.download-subtitle {
  font-size: 1.2rem;
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* Download Cards */
.options-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  margin-top: 40px;
}

.download-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 40px 25px;
  text-align: center;
  transition: all var(--transition-normal);
  position: relative;
  display: flex;
  flex-direction: column;
}

.download-card:hover {
  transform: translateY(-10px);
  border-color: var(--color-gold);
}

.download-card.main-client {
  background: linear-gradient(135deg, rgba(201, 162, 39, 0.1) 0%, rgba(0, 0, 0, 0.5) 100%);
  border-color: rgba(201, 162, 39, 0.3);
}

.card-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--color-gold);
  color: var(--color-dark);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  text-transform: uppercase;
}

.card-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 15px;
  transition: all 0.3s ease;
}

.download-card:hover .card-icon {
  background: rgba(201, 162, 39, 0.15);
  transform: scale(1.05);
}

.card-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(201, 162, 39, 0.3));
}

.download-card h3 {
  font-size: 1.4rem;
  margin-bottom: 15px;
  color: var(--color-text);
}

.download-card p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 20px;
  flex: 1;
}

.card-meta {
  font-size: 0.75rem;
  color: var(--color-gold);
  margin-bottom: 20px;
  font-weight: 600;
  letter-spacing: 0.05em;
}

/* System Requirements */
.requirements-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 50px;
}

.req-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 24px;
  padding: 40px;
  position: relative;
}

.req-box.recommended {
  border-color: rgba(201, 162, 39, 0.3);
  background: rgba(201, 162, 39, 0.05);
}

.req-badge {
  position: absolute;
  top: -15px;
  right: 30px;
  background: var(--color-gold);
  color: var(--color-dark);
  padding: 6px 15px;
  border-radius: 30px;
  font-size: 0.8rem;
  font-weight: 700;
}

.req-box h3 {
  font-size: 1.5rem;
  margin-bottom: 30px;
  color: var(--color-text);
}

.req-list {
  list-style: none;
  display: grid;
  gap: 15px;
}

.req-list li {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 10px;
}

.req-list li strong {
  color: var(--color-text);
  margin-right: 10px;
}

/* Installation Guide */
.guide-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 50px;
}

.step {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.step-num {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 900;
  color: transparent;
  -webkit-text-stroke: 1px rgba(201, 162, 39, 0.5);
  line-height: 1;
}

.step-content h4 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: var(--color-gold);
}

.step-content p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

@media (max-width: 1024px) {
  .options-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .guide-steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .requirements-wrapper {
    grid-template-columns: 1fr;
  }

  .download-title {
    font-size: 2.5rem;
  }

  .download-hero {
    padding: 60px 0;
  }
}

@media (max-width: 480px) {
  .options-grid {
    grid-template-columns: 1fr;
  }

  .guide-steps {
    grid-template-columns: 1fr;
  }
}

/* -------------------- Faction Detail Pages -------------------- */
.faction-detail-page {
  padding-top: 0;
}

.faction-hero-simple {
  position: relative;
  height: 80vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--color-dark);
  /* Fallback */
}

.faction-hero-simple .hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.faction-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
}

.faction-hero-simple .hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, var(--color-dark) 20%, rgba(0, 0, 0, 0.4) 50%, transparent 100%),
    linear-gradient(to top, var(--color-dark) 0%, transparent 40%);
  z-index: 1;
}

.faction-hero-simple .hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.faction-badge {
  display: flex;
  align-items: center;
  gap: 20px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.08), transparent);
  padding: 12px 24px 12px 12px;
  border-radius: 60px 15px 15px 60px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-left: 2px solid var(--color-gold);
  margin-bottom: 40px;
  backdrop-filter: blur(10px);
}

.badge-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 50%;
  padding: 5px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.badge-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 10px var(--color-gold));
}

.badge-text {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-gold);
}

.faction-title-large {
  font-size: 4rem;
  line-height: 1.1;
  margin-bottom: 25px;
}

.faction-intro {
  font-size: 1.25rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* Overview Section */
.overview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.weapon-mastery {
  margin-top: 50px;
}

.weapon-mastery h3 {
  font-size: 1.2rem;
  color: var(--color-gold);
  margin-bottom: 25px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.weapon-icons {
  display: flex;
  gap: 30px;
}

.weapon-item {
  text-align: center;
}

.weapon-item img {
  width: 70px;
  height: 70px;
  border-radius: 12px;
  border: 2px solid rgba(201, 162, 39, 0.3);
  margin-bottom: 10px;
  background: rgba(0, 0, 0, 0.5);
  transition: all 0.3s ease;
}

.weapon-item span {
  display: block;
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.faction-image-wrapper {
  position: relative;
}

.faction-image-wrapper img,
.faction-image-wrapper video {
  width: 100%;
  max-width: 500px;
  filter: drop-shadow(0 0 50px rgba(155, 27, 48, 0.3));
}

/* Representative section */
.representative-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 30px;
  padding: 50px;
}

.rep-info p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--color-text);
  margin-bottom: 30px;
}

.lore-box {
  background: rgba(255, 255, 255, 0.03);
  padding: 30px;
  border-radius: 20px;
  border-left: 4px solid var(--color-gold);
}

.lore-box h4 {
  color: var(--color-gold);
  margin-bottom: 15px;
}

/* Disciplines grid */
.disciplines-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 50px;
}

.discipline-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 24px;
  padding: 40px;
  transition: all 0.3s ease;
}

.discipline-card:hover {
  background: rgba(201, 162, 39, 0.05);
  border-color: rgba(201, 162, 39, 0.3);
  transform: translateY(-10px);
}

.disc-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 25px;
}

.disc-num {
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
}

.disc-num img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 15px rgba(201, 162, 39, 0.4));
  transition: all 0.3s ease;
}

.discipline-card:hover .disc-num img {
  transform: scale(1.1) rotate(5deg);
  filter: drop-shadow(0 0 20px rgba(201, 162, 39, 0.6));
}

.disc-master {
  font-weight: 700;
  color: var(--color-gold);
  margin-bottom: 15px;
  font-size: 0.95rem;
}

.disc-desc {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* Faction Theme Specifics */
.dragon-theme .faction-image-wrapper img,
.dragon-theme .faction-image-wrapper video {
  filter: drop-shadow(0 0 50px rgba(196, 30, 58, 0.3));
}

.serpent-theme .faction-image-wrapper img,
.serpent-theme .faction-image-wrapper video {
  filter: drop-shadow(0 0 50px rgba(30, 138, 58, 0.4));
}

.serpent-theme .lore-box {
  border-left-color: #1e8a3a;
}

.serpent-theme .disc-num {
  color: rgba(30, 138, 58, 0.2);
}

.serpent-theme .discipline-card:hover {
  background: rgba(30, 138, 58, 0.05);
  border-color: rgba(30, 138, 58, 0.3);
}

.leopard-theme .faction-image-wrapper img,
.leopard-theme .faction-image-wrapper video {
  filter: drop-shadow(0 0 50px rgba(212, 160, 23, 0.4));
}

.leopard-theme .lore-box {
  border-left-color: #d4a017;
}

.leopard-theme .disc-num {
  color: rgba(212, 160, 23, 0.2);
}

.leopard-theme .discipline-card:hover {
  background: rgba(212, 160, 23, 0.05);
  border-color: rgba(212, 160, 23, 0.3);
}

.sky-theme .faction-image-wrapper img,
.sky-theme .faction-image-wrapper video {
  filter: drop-shadow(0 0 50px rgba(107, 91, 149, 0.4));
}

.sky-theme .lore-box {
  border-left-color: #6b5b95;
}

.sky-theme .special-badge {
  display: inline-block;
  background: linear-gradient(90deg, #6b5b95, #c9a227);
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 700;
  color: white;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  box-shadow: 0 0 20px rgba(107, 91, 149, 0.3);
}

.sky-theme .disc-num {
  color: rgba(107, 91, 149, 0.2);
}

.sky-theme .discipline-card:hover {
  background: rgba(107, 91, 149, 0.05);
  border-color: rgba(107, 91, 149, 0.3);
}

/* -------------------- Dynamic Ambient Backgrounds -------------------- */
.ambient-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  background: transparent;
  /* Changed from var(--color-dark) */
}

.mesh-gradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.5;
  filter: blur(100px);
}

.noise-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.05;
  mix-blend-mode: overlay;
  pointer-events: none;
}

/* Dragon Theme Ambient */
.dragon-theme .mesh-gradient {
  background: radial-gradient(circle at 20% 30%, rgba(155, 27, 48, 0.4) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(196, 30, 58, 0.3) 0%, transparent 50%);
  animation: meshMove 20s infinite alternate ease-in-out;
}

/* Serpent Theme Ambient */
.serpent-theme .mesh-gradient {
  background: radial-gradient(circle at 20% 30%, rgba(30, 138, 58, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(26, 115, 48, 0.2) 0%, transparent 50%);
  animation: meshMove 25s infinite alternate ease-in-out;
}

/* Leopard Theme Ambient */
.leopard-theme .mesh-gradient {
  background: radial-gradient(circle at 20% 30%, rgba(212, 160, 23, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(201, 162, 39, 0.2) 0%, transparent 50%);
  animation: meshMove 22s infinite alternate ease-in-out;
}

/* Sky Theme Ambient */
.sky-theme .mesh-gradient {
  background: radial-gradient(circle at 20% 30%, rgba(107, 91, 149, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(85, 71, 120, 0.2) 0%, transparent 50%);
  animation: meshMove 30s infinite alternate ease-in-out;
}

@keyframes meshMove {
  0% {
    transform: scale(1) translate(0, 0);
  }

  100% {
    transform: scale(1.2) translate(5%, 5%);
  }
}

.ambient-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.ambient-particle {
  position: absolute;
  background: white;
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
}

/* Theme specific particle styles */
.dragon-theme .ambient-particle {
  background: var(--color-primary);
  box-shadow: 0 0 10px var(--color-primary);
}

.serpent-theme .ambient-particle {
  background: #1e8a3a;
  box-shadow: 0 0 10px #1e8a3a;
}

.leopard-theme .ambient-particle {
  background: var(--color-gold);
  box-shadow: 0 0 10px var(--color-gold);
}

.sky-theme .ambient-particle {
  background: #6b5b95;
  box-shadow: 0 0 10px #6b5b95;
}

.page-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--color-dark);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: opacity 0.8s cubic-bezier(0.77, 0, 0.175, 1), visibility 0.8s;
}

.page-loader.fade-out {
  opacity: 0;
  visibility: hidden;
}

.loader-video-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.loader-video-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
}

.loader-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, transparent 20%, var(--color-dark) 100%);
}

.loader-content {
  position: relative;
  z-index: 10;
  text-align: center;
}

.loader-logo {
  position: relative;
  margin-bottom: 40px;
}

.loader-logo .logo-text {
  font-family: var(--font-heading);
  font-size: 4rem;
  letter-spacing: 0.3em;
  font-weight: 900;
  color: white;
  text-shadow: 0 0 30px rgba(255, 255, 255, 0.2);
  display: block;
}

.logo-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120%;
  height: 120%;
  background: radial-gradient(circle, rgba(155, 27, 48, 0.15) 0%, transparent 70%);
  filter: blur(20px);
  animation: logoPulse 3s infinite ease-in-out;
}

.loader-status {
  max-width: 300px;
  margin: 0 auto;
}

.loader-bar {
  width: 100%;
  height: 2px;
  background: rgba(255, 255, 255, 0.05);
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}

.loader-progress {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
  animation: loaderProgress 2s infinite ease-in-out;
}

.loader-text {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  color: var(--color-gold);
  text-transform: uppercase;
  font-weight: 700;
  opacity: 0.6;
}

@keyframes logoPulse {

  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.5;
  }

  50% {
    transform: translate(-50%, -50%) scale(1.2);
    opacity: 1;
  }
}

@keyframes loaderProgress {
  0% {
    left: -100%;
  }

  100% {
    left: 100%;
  }
}

@media (max-width: 992px) {
  .faction-hero-simple {
    height: auto;
    padding: 100px 0;
  }

  .faction-hero-simple .hero-overlay {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8) 0%, rgba(26, 26, 26, 0.95) 100%);
  }

  .faction-title-large {
    font-size: 3rem;
  }

  .overview-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 50px;
  }

  .weapon-icons {
    justify-content: center;
  }

  .disciplines-grid {
    grid-template-columns: 1fr;
  }
}

/* -------------------- Animations -------------------- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scrollPulse {

  0%,
  100% {
    opacity: 1;
    transform: scaleY(1);
  }

  50% {
    opacity: 0.5;
    transform: scaleY(0.8);
  }
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-20px);
  }
}

@keyframes glow {

  0%,
  100% {
    box-shadow: 0 0 20px rgba(155, 27, 48, 0.5);
  }

  50% {
    box-shadow: 0 0 40px rgba(155, 27, 48, 0.8);
  }
}

/* Scroll Reveal Animation Classes */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* -------------------- Responsive Design -------------------- */
@media (max-width: 1200px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .footer-brand {
    grid-column: span 2;
    padding-right: 0;
  }
}

@media (max-width: 992px) {
  .news-layout {
    grid-template-columns: 1fr;
  }

  .news-featured {
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 20px;
  }

  .featured-card {
    flex: 0 0 300px;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 70px 0;
  }

  .container {
    padding: 0 20px;
  }

  /* Header Mobile */
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: var(--color-dark);
    flex-direction: column;
    justify-content: center;
    padding: 40px;
    transition: right var(--transition-normal);
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-cta {
    margin-left: 0;
    margin-top: 20px;
  }

  .menu-toggle {
    display: flex;
  }

  /* Features */
  .features-grid {
    grid-template-columns: 1fr;
  }

  /* Classes */
  .class-card {
    flex: 0 0 280px;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-brand {
    grid-column: span 1;
  }

  .footer-bottom-inner {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
    padding: 0 20px;
  }

  .btn {
    width: 100%;
  }

  .class-card {
    flex: 0 0 260px;
  }

  .newsletter-form {
    flex-direction: column;
  }
}