/* ============================================================
   TNRUO – The New Renaissance Ultima Online
   Main Stylesheet
   ============================================================ */

/* ---- CSS Variables ---- */
:root {
  --gold-primary: #c9a227;
  --gold-light: #f0d060;
  --gold-dark: #8b6914;
  --gold-glow: rgba(201, 162, 39, 0.6);
  --crimson: #8b1a1a;
  --crimson-light: #c0392b;
  --crimson-glow: rgba(139, 26, 26, 0.5);
  --dark-bg: #0a0806;
  --dark-surface: #110e09;
  --dark-card: #1a1510;
  --dark-card-hover: #221c14;
  --dark-border: #3a2e1a;
  --text-primary: #e8d5a3;
  --text-secondary: #a08c5c;
  --text-muted: #6b5a3a;
  --green-accent: #2d5a27;
  --green-light: #4a9e3f;
  --purple-magic: #6b3fa0;
  --purple-light: #9b59b6;
  --font-display: 'Cinzel Decorative', 'Cinzel', serif;
  --font-heading: 'Cinzel', serif;
  --font-body: 'IM Fell English', Georgia, serif;
  --transition: all 0.3s ease;
  --shadow-gold: 0 0 20px rgba(201, 162, 39, 0.3);
  --shadow-dark: 0 8px 32px rgba(0, 0, 0, 0.8);
}

/* ---- Reset & Base ---- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  background-color: var(--dark-bg);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.7;
  overflow-x: hidden;
}

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

a {
  color: var(--gold-primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--gold-light);
}

ul {
  list-style: none;
}

/* ---- Particle Canvas ---- */
#particles-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

/* ---- Container ---- */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 1;
}

/* ---- Section Headers ---- */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  color: var(--gold-primary);
  text-shadow: 0 0 30px var(--gold-glow), 0 2px 4px rgba(0,0,0,0.8);
  margin-bottom: 0.5rem;
  letter-spacing: 0.05em;
}

.section-subtitle {
  font-family: var(--font-body);
  font-style: italic;
  color: var(--text-secondary);
  font-size: 1.1rem;
  letter-spacing: 0.1em;
}

/* ---- Rune Divider ---- */
.rune-divider {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.rune {
  font-size: 1.4rem;
  color: var(--gold-dark);
  animation: runeGlow 3s ease-in-out infinite;
  text-shadow: 0 0 10px var(--gold-glow);
}

.rune:nth-child(2) { animation-delay: 0.3s; }
.rune:nth-child(3) { animation-delay: 0.6s; }
.rune:nth-child(4) { animation-delay: 0.9s; }
.rune:nth-child(5) { animation-delay: 1.2s; }

@keyframes runeGlow {
  0%, 100% { opacity: 0.5; text-shadow: 0 0 5px var(--gold-glow); }
  50% { opacity: 1; text-shadow: 0 0 20px var(--gold-glow), 0 0 40px var(--gold-glow); }
}

/* ============================================================
   NAVIGATION
   ============================================================ */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(180deg, rgba(10, 8, 6, 0.98) 0%, rgba(10, 8, 6, 0.85) 100%);
  border-bottom: 1px solid var(--dark-border);
  backdrop-filter: blur(10px);
  transition: var(--transition);
}

#navbar.scrolled {
  background: rgba(10, 8, 6, 0.99);
  border-bottom-color: var(--gold-dark);
  box-shadow: 0 2px 20px rgba(0,0,0,0.8);
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px var(--gold-glow));
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--gold-primary);
  text-shadow: 0 0 15px var(--gold-glow);
  letter-spacing: 0.1em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.1rem;
  flex-shrink: 1;
  min-width: 0;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.5rem 0.6rem;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid transparent;
  border-radius: 3px;
  transition: var(--transition);
  position: relative;
  white-space: nowrap;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--gold-primary);
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: var(--gold-light);
  border-color: rgba(201, 162, 39, 0.2);
  background: rgba(201, 162, 39, 0.05);
  text-shadow: 0 0 10px var(--gold-glow);
}

.nav-link:hover::after {
  width: 80%;
}

.nav-link.active {
  color: var(--gold-primary);
}

.nav-icon {
  font-size: 0.9rem;
}

.nav-cta {
  background: linear-gradient(135deg, var(--crimson) 0%, #6b1010 100%);
  border-color: var(--crimson-light) !important;
  color: var(--gold-light) !important;
  padding: 0.5rem 1.2rem;
  box-shadow: 0 0 15px var(--crimson-glow);
}

.nav-cta:hover {
  background: linear-gradient(135deg, var(--crimson-light) 0%, var(--crimson) 100%);
  box-shadow: 0 0 25px var(--crimson-glow);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.nav-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background: var(--gold-primary);
  transition: var(--transition);
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  transform: scale(1.05);
  animation: heroZoom 20s ease-in-out infinite alternate;
}

@keyframes heroZoom {
  from { transform: scale(1.05); }
  to { transform: scale(1.12); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 8, 6, 0.3) 0%,
    rgba(10, 8, 6, 0.5) 40%,
    rgba(10, 8, 6, 0.85) 80%,
    rgba(10, 8, 6, 1) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 8rem 2rem 4rem;
  max-width: 900px;
}

.hero-badge {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-primary);
  border: 1px solid var(--gold-dark);
  padding: 0.4rem 1.5rem;
  margin-bottom: 1.5rem;
  background: rgba(201, 162, 39, 0.08);
  animation: fadeInDown 0.8s ease forwards;
}

.hero-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  margin-bottom: 1.5rem;
  animation: fadeInUp 1s ease 0.2s forwards;
  opacity: 0;
}

.title-line-1 {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 400;
  color: var(--text-secondary);
  letter-spacing: 0.5em;
  text-transform: uppercase;
}

.title-line-2 {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 8vw, 7rem);
  font-weight: 900;
  color: var(--gold-primary);
  text-shadow: 
    0 0 40px var(--gold-glow),
    0 0 80px rgba(201, 162, 39, 0.3),
    0 4px 8px rgba(0,0,0,0.9);
  line-height: 1;
  letter-spacing: 0.05em;
}

.title-line-3 {
  font-family: var(--font-heading);
  font-size: clamp(1rem, 2.5vw, 1.8rem);
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.4em;
  text-transform: uppercase;
}

.hero-subtitle {
  font-family: var(--font-body);
  font-style: italic;
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-primary);
  margin-bottom: 2.5rem;
  line-height: 1.8;
  animation: fadeInUp 1s ease 0.4s forwards;
  opacity: 0;
}

.hero-stats {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin-bottom: 2.5rem;
  animation: fadeInUp 1s ease 0.6s forwards;
  opacity: 0;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--gold-primary);
  text-shadow: 0 0 20px var(--gold-glow);
  line-height: 1;
}

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

.stat-divider {
  color: var(--gold-dark);
  font-size: 1.2rem;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  animation: fadeInUp 1s ease 0.8s forwards;
  opacity: 0;
}

/* ---- Buttons ---- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2rem;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  overflow: hidden;
  transition: var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, #8b1a1a 0%, #5a0e0e 50%, #8b1a1a 100%);
  color: var(--gold-light);
  border: 1px solid var(--crimson-light);
  box-shadow: 0 0 20px var(--crimson-glow), inset 0 1px 0 rgba(255,255,255,0.1);
  clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #a02020 0%, #7a1515 50%, #a02020 100%);
  box-shadow: 0 0 35px var(--crimson-glow), 0 4px 15px rgba(0,0,0,0.5);
  color: var(--gold-light);
  transform: translateY(-2px);
}

.btn-glow {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transition: left 0.5s ease;
}

.btn-primary:hover .btn-glow {
  left: 100%;
}

.btn-secondary {
  background: transparent;
  color: var(--gold-primary);
  border: 1px solid var(--gold-dark);
  clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
}

.btn-secondary:hover {
  background: rgba(201, 162, 39, 0.1);
  border-color: var(--gold-primary);
  color: var(--gold-light);
  box-shadow: 0 0 20px var(--gold-glow);
  transform: translateY(-2px);
}

.btn-discord {
  background: linear-gradient(135deg, #5865F2 0%, #4752C4 100%);
  color: #fff;
  border: 1px solid #7289da;
  clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
}

.btn-discord:hover {
  background: linear-gradient(135deg, #7289da 0%, #5865F2 100%);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(88, 101, 242, 0.5);
}

.btn-large {
  padding: 1.1rem 2.5rem;
  font-size: 1rem;
}

/* ---- Hero Scroll Indicator ---- */
.hero-scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  z-index: 2;
  animation: fadeIn 2s ease 1.5s forwards;
  opacity: 0;
}

.hero-scroll-indicator span {
  font-family: var(--font-heading);
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-muted);
}

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

@keyframes scrollBounce {
  0%, 100% { transform: rotate(45deg) translateY(0); opacity: 0.5; }
  50% { transform: rotate(45deg) translateY(5px); opacity: 1; }
}

/* ============================================================
   ABOUT SECTION
   ============================================================ */
.about-section {
  position: relative;
  padding: 8rem 0;
  background: linear-gradient(180deg, var(--dark-bg) 0%, #0f0b07 50%, var(--dark-bg) 100%);
}

.section-bg-texture {
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(ellipse at 20% 50%, rgba(139, 26, 26, 0.05) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 50%, rgba(201, 162, 39, 0.05) 0%, transparent 60%);
  pointer-events: none;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

/* ---- Parchment Card ---- */
.parchment-card {
  position: relative;
  background: linear-gradient(135deg, #1a1510 0%, #141009 50%, #1a1510 100%);
  border: 1px solid var(--dark-border);
  padding: 2.5rem;
  box-shadow: var(--shadow-dark), inset 0 1px 0 rgba(201, 162, 39, 0.1);
}

.parchment-card::before {
  content: '';
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(201, 162, 39, 0.1);
  pointer-events: none;
}

.parchment-corner {
  position: absolute;
  width: 20px;
  height: 20px;
  border-color: var(--gold-dark);
  border-style: solid;
}

.parchment-corner.tl { top: 8px; left: 8px; border-width: 2px 0 0 2px; }
.parchment-corner.tr { top: 8px; right: 8px; border-width: 2px 2px 0 0; }
.parchment-corner.bl { bottom: 8px; left: 8px; border-width: 0 0 2px 2px; }
.parchment-corner.br { bottom: 8px; right: 8px; border-width: 0 2px 2px 0; }

.card-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--gold-primary);
  margin-bottom: 1.5rem;
  text-shadow: 0 0 15px var(--gold-glow);
}

.parchment-card p {
  color: var(--text-primary);
  margin-bottom: 1rem;
  font-size: 1rem;
  line-height: 1.8;
}

.parchment-card p:last-child {
  margin-bottom: 0;
}

/* ---- Virtues Grid ---- */
.virtues-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--gold-primary);
  text-align: center;
  margin-bottom: 2rem;
  text-shadow: 0 0 15px var(--gold-glow);
}

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

.virtue-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.2rem 0.5rem;
  background: linear-gradient(135deg, #1a1510, #110e09);
  border: 1px solid var(--dark-border);
  transition: var(--transition);
  cursor: default;
}

.virtue-item:hover {
  border-color: var(--gold-dark);
  background: linear-gradient(135deg, #221c14, #1a1510);
  box-shadow: 0 0 15px rgba(201, 162, 39, 0.1);
  transform: translateY(-3px);
}

.virtue-icon {
  font-size: 1.8rem;
  line-height: 1;
}

.virtue-name {
  font-family: var(--font-heading);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  text-align: center;
}

/* ============================================================
   FEATURES SECTION
   ============================================================ */
.features-section {
  padding: 8rem 0;
  background: var(--dark-surface);
  position: relative;
}

.features-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-dark), transparent);
}

.features-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-dark), transparent);
}

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

.feature-card {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  overflow: hidden;
  transition: var(--transition);
  position: relative;
}

.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid transparent;
  transition: var(--transition);
  z-index: 1;
  pointer-events: none;
}

.feature-card:hover {
  border-color: var(--gold-dark);
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.6), 0 0 30px rgba(201, 162, 39, 0.1);
}

.feature-card:hover::before {
  border-color: rgba(201, 162, 39, 0.2);
}

.feature-image-wrap {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.feature-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.feature-card:hover .feature-img {
  transform: scale(1.08);
}

.feature-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, var(--dark-card) 100%);
}

.feature-content {
  padding: 1.5rem 2rem 2rem;
  position: relative;
}

.feature-icon-badge {
  position: absolute;
  top: -1.5rem;
  left: 2rem;
  width: 3rem;
  height: 3rem;
  background: linear-gradient(135deg, var(--crimson), #5a0e0e);
  border: 2px solid var(--gold-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  box-shadow: 0 0 15px var(--crimson-glow);
}

.feature-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--gold-primary);
  margin-bottom: 0.75rem;
  margin-top: 0.5rem;
  text-shadow: 0 0 10px var(--gold-glow);
}

.feature-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.feature-list li {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  padding-left: 1.2rem;
  position: relative;
}

.feature-list li::before {
  content: '✦';
  position: absolute;
  left: 0;
  color: var(--gold-dark);
  font-size: 0.6rem;
  top: 0.1rem;
}

/* ============================================================
   CLASSES SECTION
   ============================================================ */
.classes-section {
  padding: 8rem 0;
  background: linear-gradient(180deg, var(--dark-bg) 0%, #0d0a06 100%);
  position: relative;
}

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

.class-card {
  position: relative;
  padding: 2.5rem 1.5rem;
  background: linear-gradient(135deg, #1a1510, #110e09);
  border: 1px solid var(--dark-border);
  text-align: center;
  overflow: hidden;
  transition: var(--transition);
}

.class-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  transition: var(--transition);
}

.class-card.warrior::before { background: linear-gradient(90deg, transparent, #c0392b, transparent); }
.class-card.mage::before { background: linear-gradient(90deg, transparent, #9b59b6, transparent); }
.class-card.rogue::before { background: linear-gradient(90deg, transparent, #2c3e50, transparent); }
.class-card.archer::before { background: linear-gradient(90deg, transparent, #27ae60, transparent); }
.class-card.necro::before { background: linear-gradient(90deg, transparent, #6c3483, transparent); }
.class-card.crafter::before { background: linear-gradient(90deg, transparent, #e67e22, transparent); }

.class-glow {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.warrior .class-glow { background: radial-gradient(ellipse at 50% 0%, rgba(192, 57, 43, 0.15) 0%, transparent 70%); }
.mage .class-glow { background: radial-gradient(ellipse at 50% 0%, rgba(155, 89, 182, 0.15) 0%, transparent 70%); }
.rogue .class-glow { background: radial-gradient(ellipse at 50% 0%, rgba(44, 62, 80, 0.3) 0%, transparent 70%); }
.archer .class-glow { background: radial-gradient(ellipse at 50% 0%, rgba(39, 174, 96, 0.15) 0%, transparent 70%); }
.necro .class-glow { background: radial-gradient(ellipse at 50% 0%, rgba(108, 52, 131, 0.2) 0%, transparent 70%); }
.crafter .class-glow { background: radial-gradient(ellipse at 50% 0%, rgba(230, 126, 34, 0.15) 0%, transparent 70%); }

.class-card:hover {
  transform: translateY(-8px);
  border-color: var(--gold-dark);
  box-shadow: 0 20px 40px rgba(0,0,0,0.7);
}

.class-card:hover .class-glow {
  opacity: 1;
}

.class-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
  filter: drop-shadow(0 0 10px rgba(201, 162, 39, 0.5));
}

.class-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--gold-primary);
  margin-bottom: 0.75rem;
  text-shadow: 0 0 10px var(--gold-glow);
}

.class-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.2rem;
}

.class-skills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
}

.skill-tag {
  font-family: var(--font-heading);
  font-size: 0.65rem;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  border: 1px solid var(--dark-border);
  padding: 0.2rem 0.6rem;
  background: rgba(201, 162, 39, 0.03);
}

/* ============================================================
   GALLERY SECTION
   ============================================================ */
.gallery-section {
  padding: 8rem 0;
  background: var(--dark-surface);
  position: relative;
}

.gallery-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-dark), transparent);
}

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

.gallery-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/3;
  border: 1px solid var(--dark-border);
}

.gallery-item.large {
  grid-column: span 2;
  grid-row: span 2;
  aspect-ratio: auto;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

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

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

.gallery-caption {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-primary);
}

/* ============================================================
   NEWS SECTION
   ============================================================ */
.news-section {
  padding: 8rem 0;
  background: var(--dark-bg);
  position: relative;
}

.news-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 1.5rem;
}

.news-card {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  padding: 2rem;
  position: relative;
  transition: var(--transition);
}

.news-card:hover {
  border-color: var(--gold-dark);
  background: var(--dark-card-hover);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.news-card.featured {
  grid-column: span 2;
  border-color: var(--gold-dark);
  background: linear-gradient(135deg, #1e1810, #140f09);
}

.news-card.featured::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
}

.news-badge {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-light);
  background: linear-gradient(135deg, var(--crimson), #5a0e0e);
  border: 1px solid var(--crimson-light);
  padding: 0.2rem 0.8rem;
  margin-bottom: 0.75rem;
}

.news-date {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.news-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--gold-primary);
  margin-bottom: 0.75rem;
  line-height: 1.4;
  text-shadow: 0 0 10px rgba(201, 162, 39, 0.2);
}

.news-card.featured .news-title {
  font-size: 1.5rem;
}

.news-excerpt {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.news-read-more {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-dark);
  transition: var(--transition);
}

.news-read-more:hover {
  color: var(--gold-primary);
  text-shadow: 0 0 10px var(--gold-glow);
}

/* ============================================================
   JOIN SECTION
   ============================================================ */
.join-section {
  position: relative;
  padding: 10rem 0;
  overflow: hidden;
}

.join-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.join-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  filter: brightness(0.3) saturate(0.7);
}

.join-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 8, 6, 0.7) 0%,
    rgba(10, 8, 6, 0.5) 50%,
    rgba(10, 8, 6, 0.7) 100%
  );
}

.join-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.join-runes {
  font-size: 1.2rem;
  color: var(--gold-dark);
  letter-spacing: 0.5rem;
  margin-bottom: 1.5rem;
  opacity: 0.6;
  animation: runeGlow 4s ease-in-out infinite;
}

.join-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: var(--gold-primary);
  text-shadow: 0 0 40px var(--gold-glow);
  margin-bottom: 1rem;
}

.join-subtitle {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--text-primary);
  line-height: 1.8;
  margin-bottom: 3rem;
}

.join-steps {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.step {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(10, 8, 6, 0.8);
  border: 1px solid var(--dark-border);
  padding: 1rem 1.5rem;
  min-width: 180px;
}

.step-number {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--crimson), #5a0e0e);
  border: 1px solid var(--crimson-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--gold-light);
  flex-shrink: 0;
}

.step-text {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.step-text strong {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  color: var(--gold-primary);
  letter-spacing: 0.05em;
}

.step-text span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.step-arrow {
  font-size: 1.5rem;
  color: var(--gold-dark);
}

.join-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.server-info {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.server-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  animation: statusPulse 2s ease-in-out infinite;
}

.status-dot.online {
  background: #2ecc71;
  box-shadow: 0 0 10px rgba(46, 204, 113, 0.7);
}

@keyframes statusPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.2); }
}

.server-address {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.server-label {
  letter-spacing: 0.1em;
}

.server-code {
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  color: var(--gold-primary);
  background: rgba(201, 162, 39, 0.08);
  border: 1px solid var(--gold-dark);
  padding: 0.3rem 0.8rem;
  letter-spacing: 0.05em;
  text-shadow: 0 0 10px var(--gold-glow);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: #070504;
  border-top: 1px solid var(--dark-border);
}

.footer-top {
  padding: 5rem 0 3rem;
}

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

.footer-logo {
  width: 60px;
  height: 60px;
  object-fit: contain;
  margin-bottom: 1rem;
  filter: drop-shadow(0 0 8px var(--gold-glow));
}

.footer-brand-name {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--gold-primary);
  text-shadow: 0 0 15px var(--gold-glow);
  margin-bottom: 0.25rem;
}

.footer-tagline {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

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

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

.social-link {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  font-size: 1.1rem;
  transition: var(--transition);
  text-decoration: none;
}

.social-link:hover {
  border-color: var(--gold-dark);
  background: rgba(201, 162, 39, 0.1);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

.footer-col-title {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-primary);
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--dark-border);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-links a {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: var(--transition);
  padding-left: 0.75rem;
  position: relative;
}

.footer-links a::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--gold-dark);
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--gold-primary);
  padding-left: 1rem;
}

.footer-links a:hover::before {
  color: var(--gold-primary);
}

.footer-bottom {
  border-top: 1px solid var(--dark-border);
  padding: 1.5rem 0;
}

.footer-bottom-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer-copy {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  color: #ffffff;
  letter-spacing: 0.05em;
}

.footer-uo-credit {
  font-size: 0.75rem;
  color: #cccccc;
  opacity: 1;
}

/* ============================================================
   BACK TO TOP
   ============================================================ */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 45px;
  height: 45px;
  background: linear-gradient(135deg, var(--crimson), #5a0e0e);
  border: 1px solid var(--crimson-light);
  color: var(--gold-light);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  box-shadow: 0 0 15px var(--crimson-glow);
  clip-path: polygon(5px 0%, 100% 0%, calc(100% - 5px) 100%, 0% 100%);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 25px var(--crimson-glow);
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-in {
  animation: fadeInUp 0.7s ease forwards;
}

/* ============================================================
   RESPONSIVE DESIGN
   ============================================================ */
@media (max-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr;
  }

  .virtues-grid {
    grid-template-columns: repeat(4, 1fr);
  }

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

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

  .footer-brand {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(10, 8, 6, 0.98);
    border-bottom: 1px solid var(--dark-border);
    flex-direction: column;
    padding: 1rem;
    gap: 0.25rem;
  }

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

  .nav-toggle {
    display: flex;
  }

  .hero-stats {
    gap: 1rem;
  }

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

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

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

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

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

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

  .news-card.featured {
    grid-column: span 1;
  }

  .join-steps {
    flex-direction: column;
    align-items: center;
  }

  .step-arrow {
    transform: rotate(90deg);
  }

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

  .footer-brand {
    grid-column: span 1;
  }

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

  .virtues-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

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

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

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

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

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

  .join-buttons {
    flex-direction: column;
    align-items: center;
  }
}

/* ---- Horizontal Scrollbar Styling ---- */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--dark-bg);
}

::-webkit-scrollbar-thumb {
  background: var(--gold-dark);
  border-radius: 0;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gold-primary);
}

/* ---- Selection ---- */
::selection {
  background: rgba(201, 162, 39, 0.3);
  color: var(--gold-light);
}

/* ============================================================
   Language Switcher
   ============================================================ */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: 1rem;
  flex-shrink: 0;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  background: transparent;
  border: 1px solid var(--dark-border);
  color: var(--text-secondary);
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 0.3rem 0.55rem;
  cursor: pointer;
  border-radius: 2px;
  transition: var(--transition);
  line-height: 1;
}

.lang-btn:hover {
  border-color: var(--gold-dark);
  color: var(--gold-primary);
  background: rgba(201, 162, 39, 0.06);
}

.lang-btn.active {
  border-color: var(--gold-primary);
  color: var(--gold-primary);
  background: rgba(201, 162, 39, 0.1);
  box-shadow: 0 0 8px rgba(201, 162, 39, 0.2);
}

.lang-flag {
  font-size: 1rem;
  line-height: 1;
}

.lang-label {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
}

/* Scrolled state */
#navbar.scrolled .lang-btn {
  border-color: var(--dark-border);
}

#navbar.scrolled .lang-btn.active {
  border-color: var(--gold-primary);
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .lang-switcher {
    margin-left: 0.5rem;
    order: -1;
  }

  .lang-label {
    display: none;
  }

  .lang-btn {
    padding: 0.3rem 0.4rem;
    border: none;
    background: transparent;
  }

  .lang-flag {
    font-size: 1.2rem;
  }
}
