@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;600;800;900&family=Rajdhani:wght@500;600;700&display=swap');

/* --- DESIGN SYSTEM TOKENS --- */
:root {
  --color-bg-darkest: #040608;
  --color-bg-darker: #080c11;
  --color-bg-panel: rgba(8, 12, 17, 0.75);
  --color-primary: #00d2ff;       /* Sci-Fi Cyan */
  --color-primary-glow: rgba(0, 210, 255, 0.3);
  --color-secondary: #ff7700;     /* Industrial/Warning Orange */
  --color-secondary-glow: rgba(255, 119, 0, 0.35);
  --color-danger: #ff2a2a;        /* PvP/Danger Red */
  --color-danger-glow: rgba(255, 42, 42, 0.4);
  --color-text-primary: #e2e8f0;
  --color-text-secondary: #94a3b8;
  --font-header: 'Orbitron', sans-serif;
  --font-body: 'Rajdhani', sans-serif;
  --border-radius: 4px;
  --transition-speed: 0.3s;
}

/* --- RESET & BASIC STYLES --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--color-bg-darkest);
  color: var(--color-text-primary);
  font-family: var(--font-body);
  font-size: 1.15rem;
  letter-spacing: 0.05em;
  overflow-x: hidden;
  line-height: 1.6;
}

/* Background Canvas & Stars */
#starfield {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  pointer-events: none;
}

.background-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 50%, rgba(8, 12, 17, 0.4) 0%, rgba(4, 6, 8, 0.95) 100%);
  background-image: url('../images/background.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  opacity: 0.25;
  z-index: -3;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: all var(--transition-speed) ease;
}

a:hover {
  text-shadow: 0 0 8px var(--color-primary-glow);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-header);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* --- HEADER & NAVIGATION --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(4, 6, 8, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 210, 255, 0.15);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background var(--transition-speed);
}

.navbar.scrolled {
  background: rgba(4, 6, 8, 0.95);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-logo {
  height: 40px;
  width: auto;
  filter: drop-shadow(0 0 8px var(--color-primary-glow));
}

.nav-title {
  font-family: var(--font-header);
  font-size: 1.4rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: 0.15em;
  background: linear-gradient(90deg, #fff, var(--color-primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-item a {
  font-family: var(--font-header);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  position: relative;
  padding: 0.5rem 0;
}

.nav-item a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  box-shadow: 0 0 8px var(--color-primary);
  transition: width var(--transition-speed) ease;
}

.nav-item a:hover,
.nav-item.active a {
  color: #fff;
}

.nav-item a:hover::after,
.nav-item.active a::after {
  width: 100%;
}

/* Burger Menu button for mobile */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background-color: var(--color-text-primary);
  margin: 5px 0;
  transition: all var(--transition-speed) ease;
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-header);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.75rem 1.75rem;
  border-radius: var(--border-radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-speed) ease;
  position: relative;
  overflow: hidden;
  font-size: 0.9rem;
}

.btn-primary {
  background: rgba(0, 210, 255, 0.1);
  color: var(--color-primary);
  border-color: var(--color-primary);
  box-shadow: inset 0 0 10px rgba(0, 210, 255, 0.1), 0 0 15px rgba(0, 210, 255, 0.05);
}

.btn-primary:hover {
  background: var(--color-primary);
  color: #000;
  box-shadow: 0 0 20px var(--color-primary-glow), inset 0 0 5px rgba(255, 255, 255, 0.5);
  text-shadow: none;
}

.btn-secondary {
  background: rgba(255, 119, 0, 0.15);
  color: var(--color-secondary);
  border-color: var(--color-secondary);
  box-shadow: inset 0 0 10px rgba(255, 119, 0, 0.1);
}

.btn-secondary:hover {
  background: var(--color-secondary);
  color: #000;
  box-shadow: 0 0 20px var(--color-secondary-glow);
  text-shadow: none;
}

.btn-danger {
  background: rgba(255, 42, 42, 0.1);
  color: var(--color-danger);
  border-color: var(--color-danger);
  box-shadow: inset 0 0 10px rgba(255, 42, 42, 0.1);
}

.btn-danger:hover {
  background: var(--color-danger);
  color: #fff;
  box-shadow: 0 0 20px var(--color-danger-glow);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
}

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

.hero-content {
  max-width: 900px;
  text-align: center;
  z-index: 10;
  background: rgba(8, 12, 17, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 3.5rem 2rem;
  border-radius: 8px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 0.5rem;
  color: #fff;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.hero-subtitle {
  font-family: var(--font-header);
  font-size: 1.5rem;
  color: var(--color-primary);
  text-transform: uppercase;
  margin-bottom: 2rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-shadow: 0 0 10px var(--color-primary-glow);
}

.hero-description {
  font-size: 1.25rem;
  color: var(--color-text-secondary);
  margin-bottom: 2.5rem;
  max-width: 750px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- CARDS & GRID LAYOUTS --- */
.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 5rem 2rem;
}

.section-title-wrapper {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-size: 2.5rem;
  color: #fff;
  display: inline-block;
  position: relative;
  padding-bottom: 1rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 25%;
  width: 50%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
}

.section-subtitle {
  color: var(--color-text-secondary);
  font-size: 1.2rem;
  margin-top: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Grid Cards */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.card {
  background: var(--color-bg-panel);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  position: relative;
  display: flex;
  flex-direction: column;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--color-primary);
  transform: scaleX(0);
  transition: transform 0.4s ease;
  transform-origin: left;
}

.card:hover {
  transform: translateY(-8px);
  border-color: rgba(0, 210, 255, 0.3);
  box-shadow: 0 12px 30px rgba(0, 210, 255, 0.1), inset 0 0 15px rgba(255, 255, 255, 0.02);
}

.card:hover::before {
  transform: scaleX(1);
}

/* Specific Activity Cards */
.card-pve::before { background: var(--color-primary); }
.card-pve:hover { border-color: rgba(0, 210, 255, 0.35); box-shadow: 0 12px 30px rgba(0, 210, 255, 0.15); }

.card-indy::before { background: var(--color-secondary); }
.card-indy:hover { border-color: rgba(255, 119, 0, 0.35); box-shadow: 0 12px 30px rgba(255, 119, 0, 0.15); }

.card-pvp::before { background: var(--color-danger); }
.card-pvp:hover { border-color: rgba(255, 42, 42, 0.35); box-shadow: 0 12px 30px rgba(255, 42, 42, 0.15); }

.card-image-wrapper {
  height: 200px;
  overflow: hidden;
  position: relative;
}

.card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

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

.card-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(4, 6, 8, 0.8);
  border: 1px solid currentColor;
  padding: 0.25rem 0.75rem;
  font-family: var(--font-header);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  border-radius: 2px;
}

.badge-pve { color: var(--color-primary); }
.badge-indy { color: var(--color-secondary); }
.badge-pvp { color: var(--color-danger); }

.card-content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-title {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: #fff;
}

.card-description {
  color: var(--color-text-secondary);
  font-size: 1rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 1.5rem;
}

.tag {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2px 8px;
  font-size: 0.8rem;
  border-radius: 2px;
  color: var(--color-text-primary);
}

/* --- STATS SECTION --- */
.stats-bar {
  background: linear-gradient(90deg, rgba(8, 12, 17, 0.95), rgba(4, 6, 8, 0.95));
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: 3rem 2rem;
}

.stats-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  text-align: center;
}

.stat-item {
  position: relative;
}

.stat-number {
  font-family: var(--font-header);
  font-size: 2.8rem;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

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

/* --- CONTENT PAGES LAYOUT --- */
.page-header {
  padding: 10rem 2rem 4rem;
  background: linear-gradient(180deg, rgba(8, 12, 17, 0.9) 0%, rgba(4, 6, 8, 0.6) 100%);
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
}

.page-header h1 {
  font-size: 3rem;
  color: #fff;
  margin-bottom: 1rem;
}

.page-header p {
  font-size: 1.25rem;
  color: var(--color-text-secondary);
  max-width: 800px;
  margin: 0 auto;
}

.two-col-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  margin-top: 2rem;
}

@media (max-width: 992px) {
  .two-col-layout {
    grid-template-columns: 1fr;
  }
}

.content-block {
  background: var(--color-bg-panel);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius);
  padding: 2.5rem;
  margin-bottom: 2rem;
}

.content-block h2 {
  font-size: 1.8rem;
  color: #fff;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.content-block p {
  color: var(--color-text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.list-styled {
  list-style: none;
}

.list-styled li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 1rem;
  color: var(--color-text-primary);
}

.list-styled li::before {
  content: '▶';
  position: absolute;
  left: 0;
  top: 2px;
  color: var(--color-primary);
  font-size: 0.8rem;
}

/* Fittings / Ship Showcase Grid */
.ship-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.ship-card {
  background: rgba(4, 6, 8, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  padding: 1.5rem;
  text-align: center;
  transition: all var(--transition-speed);
}

.ship-card:hover {
  border-color: var(--color-primary);
  background: rgba(0, 210, 255, 0.03);
}

.ship-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  color: var(--color-primary);
  font-size: 2rem;
  border: 1px solid rgba(0, 210, 255, 0.2);
}

.ship-name {
  font-family: var(--font-header);
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.5rem;
}

.ship-role {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  text-transform: uppercase;
}

/* --- RECRUITMENT CTA SECTION --- */
.recruitment-cta {
  background: radial-gradient(circle at center, rgba(0, 210, 255, 0.08) 0%, transparent 70%);
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  padding: 6rem 2rem;
  text-align: center;
}

.cta-box {
  max-width: 800px;
  margin: 0 auto;
}

.cta-box h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: #fff;
}

.cta-box p {
  color: var(--color-text-secondary);
  font-size: 1.2rem;
  margin-bottom: 2.5rem;
}

/* --- FOOTER --- */
.footer {
  background: #030406;
  border-top: 1px solid rgba(0, 210, 255, 0.15);
  padding: 4rem 2rem 2rem;
  color: var(--color-text-secondary);
  font-size: 0.95rem;
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 3rem;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

.footer-brand h3 {
  color: #fff;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  letter-spacing: 0.1em;
}

.footer-brand p {
  margin-bottom: 1.5rem;
  max-width: 350px;
  line-height: 1.6;
}

.footer-links-title {
  color: #fff;
  font-family: var(--font-header);
  font-weight: 600;
  font-size: 1rem;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  letter-spacing: 0.1em;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: var(--color-text-secondary);
}

.footer-links a:hover {
  color: #fff;
  padding-left: 5px;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.copyright {
  font-size: 0.85rem;
}

.footer-logo-text {
  font-family: var(--font-header);
  color: var(--color-primary);
  font-weight: 900;
  font-size: 0.9rem;
}

/* --- MODAL / RECRUITMENT DRAWER --- */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.modal.active {
  opacity: 1;
  pointer-events: all;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(4, 6, 8, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.modal-container {
  background: var(--color-bg-darker);
  border: 1px solid var(--color-primary);
  box-shadow: 0 0 40px var(--color-primary-glow);
  width: 90%;
  max-width: 600px;
  border-radius: var(--border-radius);
  z-index: 1010;
  position: relative;
  overflow: hidden;
  transform: scale(0.9);
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  padding: 3rem;
}

.modal.active .modal-container {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--color-text-secondary);
  cursor: pointer;
  line-height: 1;
  transition: color var(--transition-speed);
}

.modal-close:hover {
  color: var(--color-primary);
}

.modal-title {
  color: #fff;
  font-size: 2rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.modal-body h4 {
  color: var(--color-primary);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.modal-body p {
  color: var(--color-text-secondary);
  margin-bottom: 1.5rem;
}

.recruitment-requirements {
  list-style: none;
  margin-bottom: 2rem;
}

.recruitment-requirements li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}

.recruitment-requirements li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-primary);
}

.modal-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- MOBILE STYLES --- */
@media (max-width: 768px) {
  .navbar {
    padding: 1rem;
  }
  
  .nav-menu {
    position: fixed;
    top: 65px;
    right: -100%;
    width: 100%;
    height: calc(100vh - 65px);
    background: rgba(8, 12, 17, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    gap: 3rem;
    transition: right 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border-left: 1px solid rgba(0, 210, 255, 0.1);
    z-index: 99;
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-toggle {
    display: block;
    z-index: 100;
  }

  .nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .hero-description {
    font-size: 1.05rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
}

/* Animation utilities */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
