@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600&family=JetBrains+Mono:wght@400;700&display=swap');

:root {
  --neon-cyan: #00f3ff;
  --neon-blue: #0051ff;
  --bg-dark: #0f0f16;
  --bg-panel: #1a1a2e;
  --text-primary: #ffffff;
  --text-secondary: #a0a0b8;
  --font-tech: 'JetBrains Mono', monospace;
  --font-body: 'JetBrains Mono', monospace;
  --transition: 0.3s ease;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}

/* HEADER & NAV */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  background: rgba(15, 15, 22, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 243, 255, 0.2);
  transition: background var(--transition);
}

.header.scrolled {
  background: rgba(15, 15, 22, 0.98);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  height: 52px;
  filter: drop-shadow(0 0 5px rgba(255,255,255,0.5));
}

.nav {
  display: flex;
  gap: 30px;
  font-family: var(--font-tech);
}

.nav-link {
  color: var(--text-primary);
  text-decoration: none;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: color var(--transition);
  position: relative;
  text-align: center;
}

.nav-link span {
  display: block;
  font-family: var(--font-tech);
  font-size: 11px;
  color: var(--text-secondary);
  text-transform: none;
  letter-spacing: 0;
  margin-top: 4px;
}

.nav-link:hover, .nav-link.active {
  color: var(--neon-cyan);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--neon-cyan);
  box-shadow: 0 0 10px var(--neon-cyan);
}

/* HAMBURGER */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 6px;
  z-index: 101;
}

.hamburger span {
  display: block;
  width: 30px;
  height: 3px;
  background-color: var(--neon-cyan);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
}
.hamburger.open span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

@media (max-width: 1200px) {
  .header-inner {
    padding: 10px 20px;
  }
  
  .hamburger {
    display: flex;
  }
  
  .nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 15, 22, 0.98);
    backdrop-filter: blur(15px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0;
    z-index: 100;
  }

  .nav.open {
    display: flex;
  }
  
  .nav-link {
    font-size: 24px;
    margin: 15px 0;
  }
  
  .nav-link span {
    font-size: 14px;
  }
}

/* HERO SECTION */
.hero {
  position: relative;
  width: 100%;
  aspect-ratio: 2560 / 1440;
  max-height: 800px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid rgba(0, 243, 255, 0.2);
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, transparent 60%, var(--bg-dark) 100%);
  z-index: -1;
}

.ip-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  transform: translateY(270px);
}

.version-pill {
  background: var(--text-primary);
  color: var(--bg-dark);
  padding: 8px 24px;
  border-radius: 50px;
  font-family: var(--font-tech);
  font-size: 14px;
  font-weight: bold;
  letter-spacing: 1px;
}

.ip-copy {
  display: flex;
  align-items: center;
  gap: 15px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(0, 243, 255, 0.3);
  padding: 10px 20px;
  border-radius: 10px;
  cursor: pointer;
  transition: all var(--transition);
  backdrop-filter: blur(5px);
}

.ip-copy:hover {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 20px rgba(0, 243, 255, 0.2);
}

.ip-text {
  font-family: var(--font-tech);
  font-size: 20px;
  color: var(--text-primary);
  letter-spacing: 2px;
}

.ip-icon {
  color: var(--text-secondary);
}

.ip-copy:hover .ip-icon {
  color: var(--neon-cyan);
}

/* PLAYER TRACKER */
.player-tracker {
  margin-top: 5px;
  text-align: center;
  min-height: 60px;
}

.tracker-status {
  font-family: var(--font-tech);
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.tracker-status .online {
  color: #4ade80;
}

.tracker-status .offline {
  color: #f87171;
}

.tracker-avatars {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  max-width: 500px;
}

.tracker-player {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  transition: transform var(--transition);
}

.tracker-player:hover {
  transform: translateY(-5px);
}

.tracker-avatars img {
  width: 40px;
  height: 40px;
  border-radius: 4px;
  border: 1px solid rgba(0, 243, 255, 0.3);
  transition: all var(--transition);
}

.tracker-player:hover img {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 10px rgba(0, 243, 255, 0.5);
}

.tracker-player-name {
  font-family: var(--font-tech);
  font-size: 11px;
  color: var(--neon-cyan);
  letter-spacing: 1px;
  text-shadow: 0 0 5px rgba(0, 243, 255, 0.5);
}

/* MAIN CONTENT */
.content-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 20px;
}

@media (max-width: 900px) {
  .content-grid {
    grid-template-columns: 1fr;
  }
}

.left-panel {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.video-embed {
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(0, 243, 255, 0.2);
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
  aspect-ratio: 16 / 9;
}

.discord-widget {
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  background: #202225;
  min-height: 400px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.right-panel {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.sci-fi-heading {
  font-family: var(--font-tech);
  color: var(--neon-cyan);
  font-size: 28px;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 15px;
  text-shadow: 0 0 10px rgba(0, 243, 255, 0.3);
}

.lore-text {
  color: var(--text-secondary);
  font-size: 16px;
}

.oath-box {
  border-left: 4px solid var(--neon-cyan);
  padding: 20px 30px;
  background: linear-gradient(90deg, rgba(0, 243, 255, 0.05) 0%, transparent 100%);
  margin-top: 20px;
}

.oath-text {
  font-family: var(--font-tech);
  color: var(--neon-cyan);
  font-size: 18px;
  line-height: 1.8;
  letter-spacing: 1px;
}

/* FOOTER */
.footer {
  text-align: center;
  padding: 60px 20px;
  border-top: 1px solid rgba(0, 243, 255, 0.2);
  margin-top: 60px;
  background: rgba(15, 15, 22, 0.8);
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.social-icon a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text-primary);
  transition: all var(--transition);
}

.social-icon i {
  font-size: 50px;
  color: currentColor;
  transition: all var(--transition);
}

.social-icon span {
  font-family: var(--font-tech);
  font-size: 14px;
  letter-spacing: 1px;
  opacity: 0;
  transform: translateY(-10px);
  transition: all var(--transition);
}

.social-icon a:hover {
  color: var(--neon-cyan);
  text-shadow: 0 0 5px rgba(0, 243, 255, 0.4);
}

.social-icon a:hover i {
  filter: drop-shadow(0 0 5px rgba(0, 243, 255, 0.4));
}

.social-icon a:hover span {
  opacity: 1;
  transform: translateY(0);
}

.copyright {
  font-family: var(--font-body);
  color: var(--text-secondary);
  font-size: 18px;
  margin-top: 20px;
}

/* TOAST NOTIFICATION */
.toast {
  position: fixed;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--neon-cyan);
  color: var(--bg-dark);
  padding: 12px 30px;
  border-radius: 5px;
  font-family: var(--font-tech);
  font-weight: bold;
  letter-spacing: 1px;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 1000;
  box-shadow: 0 0 20px rgba(0, 243, 255, 0.5);
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* DROPDOWN MENU */
.nav-dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(15, 15, 22, 0.95);
  min-width: 200px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.8);
  border: 1px solid rgba(0, 243, 255, 0.2);
  z-index: 101;
  padding: 10px 0;
  backdrop-filter: blur(5px);
}

.nav-dropdown:hover .dropdown-content {
  display: flex;
  flex-direction: column;
}

.dropdown-content a {
  color: var(--text-primary);
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all var(--transition);
  text-align: center;
}

.dropdown-content a:hover {
  background-color: rgba(0, 243, 255, 0.1);
  color: var(--neon-cyan);
}

@media (max-width: 768px) {
  .dropdown-content {
    position: relative;
    transform: none;
    left: 0;
    box-shadow: none;
    border: none;
    background: transparent;
    padding: 0;
  }
  .dropdown-content a {
    padding: 8px;
    font-size: 16px;
  }
}


/* =========================================
   SUBPAGES GLOBAL STYLES
   ========================================= */

.content-container {
  max-width: 1200px;
  margin: 120px auto 60px;
  padding: 0 20px;
  min-height: 60vh;
}

.page-title {
  font-family: var(--font-tech);
  font-size: 32px;
  color: var(--text-primary);
  text-transform: uppercase;
  margin-bottom: 40px;
  border-bottom: 2px solid rgba(0, 243, 255, 0.3);
  padding-bottom: 10px;
  letter-spacing: 2px;
}

.mt-4 {
  margin-top: 4rem;
}

.text-center {
  text-align: center;
}

.highlight {
  color: #ffc107;
  font-weight: bold;
}

.neon-text {
  color: var(--neon-cyan);
  text-shadow: 0 0 5px rgba(0, 243, 255, 0.5);
}

/* =========================================
   NORMES DE COMPORTAMENT
   ========================================= */

.rules-list {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.rule-item {
  display: flex;
  gap: 20px;
  background: rgba(15, 15, 22, 0.5);
  border: 1px solid rgba(0, 243, 255, 0.1);
  padding: 15px;
  border-radius: 5px;
  align-items: center;
}

.rule-item img {
  max-width: 100%;
  height: auto;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.rule-text {
  flex: 1;
}

.rule-title {
  font-family: var(--font-tech);
  color: var(--neon-cyan);
  font-size: 20px;
  margin-bottom: 5px;
}

.rule-title.warn {
  color: #ffc107;
}

.rule-text p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .rule-item {
    flex-direction: column;
  }
  .rule-item img {
    width: 100%;
    height: auto;
  }
}

/* =========================================
   CONFIGURACIÓ
   ========================================= */
.config-section {
  display: flex;
  gap: 30px;
  margin-bottom: 50px;
  align-items: flex-start;
}

.config-media {
  flex: 1;
  border: 1px solid rgba(0, 243, 255, 0.2);
}

.config-media img, .config-media iframe {
  width: 100%;
  display: block;
}
.config-media iframe {
  height: auto;
  aspect-ratio: 16 / 9;
}

.config-text {
  flex: 1;
}

.config-title {
  font-family: var(--font-tech);
  color: var(--neon-cyan);
  font-size: 22px;
  margin-bottom: 15px;
  text-transform: uppercase;
}

.config-text p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 10px;
}

.config-text ul {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 15px;
  list-style: square inside;
}

.config-note {
  font-style: italic;
  font-size: 12px;
  opacity: 0.7;
  margin-top: 15px;
}

.btn-download {
  display: inline-block;
  background-color: var(--neon-cyan);
  color: var(--bg-dark);
  padding: 10px 20px;
  text-decoration: none;
  font-family: var(--font-tech);
  font-weight: bold;
  border-radius: 3px;
  margin-top: 10px;
  transition: all var(--transition);
}

.btn-download:hover {
  background-color: #fff;
  box-shadow: 0 0 15px var(--neon-cyan);
}

.config-params {
  margin-top: 20px;
  padding: 15px;
  background: rgba(0,0,0,0.3);
  border-left: 3px solid var(--neon-cyan);
}

.config-params h3 {
  font-size: 16px;
  color: var(--text-primary);
  margin-bottom: 10px;
}

@media (max-width: 768px) {
  .config-section {
    flex-direction: column;
  }
}

/* =========================================
   GUIA BÀSICA
   ========================================= */
.guide-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.guide-subtitle {
  font-family: var(--font-tech);
  color: #ffc107;
  font-size: 22px;
  margin-bottom: 15px;
}

.guide-left p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 15px;
}

.guide-list {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
  padding-left: 20px;
  margin-bottom: 20px;
}

.guide-list li {
  margin-bottom: 10px;
}

.motocora-box {
  background: rgba(15, 15, 22, 0.5);
  border: 1px solid rgba(0, 243, 255, 0.1);
  padding: 20px;
}

.motocora-img {
  width: 100%;
  max-height: 150px;
  object-fit: cover;
  margin-bottom: 15px;
  border: 1px solid rgba(255,255,255,0.1);
}

.cmd-list {
  list-style: none;
  padding: 0;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
}

.cmd-list li {
  margin-bottom: 8px;
}

.cmd {
  color: #ffc107;
  font-weight: bold;
}

.cmd-cyan {
  color: var(--neon-cyan);
  font-weight: bold;
}

.cmd-vip {
  color: #d100ff; /* Purple for VIP */
  font-weight: bold;
}

@media (max-width: 768px) {
  .guide-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================
   GALERIA
   ========================================= */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 15px;
}

.gallery-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,0.1);
  cursor: pointer;
  transition: transform var(--transition);
}

.gallery-img:hover {
  transform: scale(1.05);
  border-color: var(--neon-cyan);
  box-shadow: 0 0 10px rgba(0, 243, 255, 0.5);
}

/* Lightbox Modal */
.lightbox {
  display: none; 
  position: fixed;
  z-index: 1000; 
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.9); 
  align-items: center;
  justify-content: center;
}

.lightbox-content {
  max-width: 90%;
  max-height: 90%;
  border: 2px solid var(--neon-cyan);
  box-shadow: 0 0 20px rgba(0, 243, 255, 0.5);
  animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
  from {transform: scale(0.8); opacity: 0;}
  to {transform: scale(1); opacity: 1;}
}

.close-lightbox {
  position: absolute;
  top: 20px;
  right: 40px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

.close-lightbox:hover {
  color: var(--neon-cyan);
}

/* =========================================
   CONTACTE
   ========================================= */
.contact-grid {
  display: flex;
  gap: 40px;
  background: rgba(15, 15, 22, 0.5);
  border: 1px solid rgba(0, 243, 255, 0.1);
  padding: 30px;
}

.contact-image {
  flex: 1;
}

.contact-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,0.1);
}

.contact-form-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 20px;
  font-family: var(--font-tech);
}

.contact-form input,
.contact-form textarea {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(0, 243, 255, 0.3);
  color: var(--text-primary);
  padding: 10px;
  margin-top: 5px;
  font-family: inherit;
  font-size: 16px;
  transition: border-color var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--neon-cyan);
  box-shadow: 0 0 5px rgba(0, 243, 255, 0.3);
}

.btn-submit {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--text-primary);
  padding: 12px 30px;
  font-family: var(--font-tech);
  font-size: 16px;
  cursor: pointer;
  transition: all var(--transition);
  text-transform: uppercase;
  letter-spacing: 2px;
  align-self: flex-start;
}

.btn-submit:hover {
  background: var(--text-primary);
  color: var(--bg-dark);
  border-color: var(--text-primary);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

@media (max-width: 768px) {
  .contact-grid {
    flex-direction: column;
  }
}


/* =========================================
   IMAGE COMPARISON SLIDER
   ========================================= */
.image-slider {
  position: relative;
  width: 100%;
  border: 1px solid rgba(0, 243, 255, 0.2);
  border-radius: 5px;
  overflow: hidden;
}
.image-slider img {
  display: block;
  width: 100%;
  height: auto;
}
.slider-bg {
  /* No special style needed, it stays at the back */
}
.slider-fg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  clip-path: polygon(0 0, 50% 0, 50% 100%, 0 100%);
  object-fit: cover;
}
.slider-range {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: ew-resize;
  z-index: 10;
  margin: 0;
}
.slider-line {
  position: absolute;
  top: 0;
  left: 50%;
  width: 2px;
  height: 100%;
  background: var(--neon-cyan);
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 5;
  box-shadow: 0 0 10px var(--neon-cyan);
}
.slider-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 30px;
  height: 30px;
  background: var(--bg-dark);
  border: 2px solid var(--neon-cyan);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 0 10px rgba(0,0,0,0.8);
}
.slider-button::before, .slider-button::after {
  content: '';
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
}
.slider-button::before {
  border-right: 5px solid var(--neon-cyan);
  margin-right: 2px;
}
.slider-button::after {
  border-left: 5px solid var(--neon-cyan);
  margin-left: 2px;
}

.guide-video iframe { height: auto; aspect-ratio: 16 / 9; width: 100%; display: block; }
