/* =============================
   0. FONTS & IMPORTS
   ============================= */
@import url('https://fonts.googleapis.com/css2?family=Exo+2:wght@300;400;700&family=Rajdhani:wght@400;600;700&display=swap');

/* =============================
   1. GLOBAL VOID + STARFIELD (FINAL FIX)
   ============================= */
html, body {
  margin: 0; padding: 0; min-height: 100vh;
  /* UPGRADED FONT */
  font-family: "Exo 2", "Segoe UI", Roboto, sans-serif;
  /* Move background color to body only to avoid layering issues */
  background-color: #020205; 
  color: #cfdcec;
  overflow-x: hidden;
  position: relative; /* Essential for z-index layering */
}

/* Starfield Layer 1 (Small, Fast, Bright) */
body::before {
  content: "";
  position: fixed;
  top: 0; left: 0;
  width: 200%; height: 200%;
  background-image:
    /* Bright White Stars (Opacity increased to 0.8) */
    radial-gradient(2px 2px at 20% 30%, rgba(255, 255, 255, 0.8) 50%, transparent 51%),
    radial-gradient(1px 1px at 80% 70%, rgba(255, 255, 255, 0.8) 50%, transparent 51%),
    radial-gradient(1px 1px at 50% 10%, rgba(255, 255, 255, 0.8) 50%, transparent 51%),
    /* CYAN Stars (Pure Cyan #00FFFF) */
    radial-gradient(3px 3px at 10% 40%, rgba(0, 255, 255, 0.6) 50%, transparent 51%),
    radial-gradient(2px 2px at 70% 20%, rgba(0, 255, 255, 0.5) 50%, transparent 51%),
    /* Dense Background Dust */
    radial-gradient(1px 1px at 40% 80%, rgba(255, 255, 255, 0.4) 50%, transparent 51%);
  animation: starDrift 100s linear infinite;
  pointer-events: none;
  z-index: 0; /* Changed from -2 to 0 to ensure visibility */
}

/* Starfield Layer 2 (Larger, Slower, Deep Depth) */
body::after {
  content: "";
  position: fixed;
  top: 0; left: 0;
  width: 200%; height: 200%;
  background-image:
    radial-gradient(3px 3px at 15% 15%, rgba(255, 255, 255, 0.5) 50%, transparent 51%),
    /* Deep Purple Star */
    radial-gradient(3px 3px at 85% 85%, rgba(138, 43, 226, 0.6) 50%, transparent 51%), 
    /* Electric Blue Star */
    radial-gradient(2px 2px at 50% 50%, rgba(0, 153, 255, 0.6) 50%, transparent 51%); 
  animation: starDrift 180s linear infinite;
  opacity: 1; /* Maximum visibility */
  pointer-events: none;
  z-index: 0; /* Same layer as other stars */
}

/* SCANLINE / MONITOR OVERLAY */
html::after {
  content: " ";
  display: block;
  position: fixed;
  top: 0; left: 0;
  bottom: 0; right: 0;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.1) 50%), 
              linear-gradient(90deg, rgba(255, 0, 0, 0.03), rgba(0, 255, 0, 0.01), rgba(0, 0, 255, 0.03));
  z-index: 9999; /* Always on top of everything */
  background-size: 100% 2px, 3px 100%;
  pointer-events: none;
  opacity: 0.25; 
}

/* IMPORTANT: Force content above stars */
nav, section, .container {
  position: relative;
  z-index: 2;
}

@keyframes starDrift {
  from { transform: translate(0, 0); }
  to { transform: translate(-50%, -50%); }
}

body {
  animation: voidPulse 24s ease-in-out infinite;
}

/* COLOR CYCLE (Deep Purple, Cyan, Blue, Black) */
@keyframes voidPulse {
  0%   { background-color: #020205; } /* Void Black */
  25%  { background-color: #120524; } /* Deep Purple */
  50%  { background-color: #000c14; } /* Dark Blue */
  75%  { background-color: #001515; } /* Dark Cyan (Not Green) */
  100% { background-color: #020205; } /* Back to Void */
}

/* =============================
   2. NAVIGATION
   ============================= */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(2, 5, 12, 0.95);
  border-bottom: 1px solid rgba(0, 255, 255, 0.2);
  display: flex;
  justify-content: center;
  gap: 30px;
  padding: 15px;
  z-index: 10;
  /* UPGRADED FONT */
  font-family: "Rajdhani", monospace;
  font-weight: 600;
  backdrop-filter: blur(4px);
}

nav a {
  color: #00ffff;
  text-decoration: none;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transition: all 0.3s ease;
}

nav a:hover, nav a.active {
  text-shadow: 0 0 10px #00ffff;
  color: #fff;
}

/* =============================
   3. LAYOUT & CONTAINERS
   ============================= */
section {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 120px 20px 40px;
}

.container {
  max-width: 900px;
  width: 100%;
  padding: 3rem;
  background: linear-gradient(180deg, rgba(12, 20, 45, 0.95), rgba(3, 6, 15, 0.98));
  border: 1px solid rgba(0, 255, 255, 0.25);
  box-shadow: 0 0 45px rgba(0, 0, 0, 0.85), inset 0 0 35px rgba(0, 255, 255, 0.06);
  position: relative;
  z-index: 1;
}

/* IMAGES */
.corp-logo {
  display: block;
  margin: 0 auto 1.5rem auto;
  max-width: 180px;
  height: auto;
  filter: drop-shadow(0 0 10px rgba(0, 255, 255, 0.4));
}

.secondary-logo {
  display: block;
  margin: 0 auto 1.5rem auto;
  max-width: 140px;
  height: auto;
  filter: drop-shadow(0 0 8px rgba(0, 255, 255, 0.3));
}

/* =============================
   4. TYPOGRAPHY
   ============================= */
h1 {
  margin: 0;
  font-size: 3rem;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: #ffffff;
  text-shadow: 0 0 12px rgba(0, 255, 255, 0.45);
  text-align: center;
  /* UPGRADED FONT */
  font-family: "Rajdhani", sans-serif;
  font-weight: 700;
}

.ticker {
  text-align: center;
  margin-top: 0.5rem;
  font-family: "Rajdhani", monospace;
  font-size: 1.2rem;
  letter-spacing: 3px;
  color: #00ffff;
}

.motto {
  margin: 1.5rem 0 2rem;
  text-align: center;
  font-family: "Rajdhani", monospace;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #7d8fa3;
}

.section-title {
  margin-top: 2rem;
  font-size: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #c0c0c0;
  border-left: 3px solid #00ffff;
  padding-left: 15px;
  /* UPGRADED FONT */
  font-family: "Rajdhani", sans-serif;
  font-weight: 600;
}

p {
  margin-top: 1rem;
  padding: 1.2rem;
  line-height: 1.65;
  background: rgba(0, 0, 0, 0.25);
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}

/* =============================
   5. ELEMENTS & COMPONENTS
   ============================= */
.oath {
  font-family: "Rajdhani", monospace;
  font-size: 1.1rem;
  letter-spacing: 1px;
  color: #ffd700;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 215, 0, 0.3);
  padding: 1.5rem;
  margin-top: 2rem;
}

.button-group {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.btn {
  padding: 15px 30px;
  border: 1px solid #00ffff;
  color: #00ffff;
  text-decoration: none;
  text-transform: uppercase;
  font-weight: bold;
  background: rgba(30, 60, 114, 0.25);
  font-family: "Rajdhani", sans-serif;
  letter-spacing: 1px;
  transition: all 0.2s ease;
}

.btn:hover {
  background: #00ffff;
  color: #000;
  box-shadow: 0 0 15px rgba(0,255,255,0.6);
}

.footer {
  margin-top: 3rem;
  font-family: "Rajdhani", monospace;
  font-size: 0.9rem;
  color: #5d6d7e;
  text-transform: uppercase;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1rem;
}

/* PARTNERS GRID STYLES (From your Partners Page) */
.partner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 2rem;
}

.partner-card {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px;
  text-align: center;
  transition: all 0.3s ease;
}

.partner-card:hover {
  border-color: #00ffff;
  background: rgba(0, 255, 255, 0.05);
  transform: translateY(-5px);
}

.partner-name {
  color: #fff;
  font-family: "Rajdhani", sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
}

.partner-role {
  font-family: "Exo 2", monospace;
  color: #00ffff;
  font-size: 0.9rem;
}

.status-badge {
  display: inline-block;
  padding: 4px 8px;
  margin-top: 10px;
  font-size: 0.75rem;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: "Rajdhani", sans-serif;
  font-weight: 600;
}

.status-blue { background: rgba(0, 100, 255, 0.2); color: #4facfe; border: 1px solid #4facfe; }
.status-neutral { background: rgba(100, 100, 100, 0.2); color: #aaa; border: 1px solid #aaa; }

/* =============================
   6. MOBILE RESPONSIVENESS (NEW)
   ============================= */
@media (max-width: 768px) {
  nav {
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px 5px;
  }

  nav a {
    font-size: 0.9rem;
    padding: 5px 12px;
    border: 1px solid rgba(0, 255, 255, 0.1);
    background: rgba(0,0,0,0.5);
  }

  .container {
    padding: 1.5rem;
    width: 95%;
    margin-top: 40px; /* Extra space for the stacked menu */
  }

  h1 {
    font-size: 2rem;
  }
}