/* ========================================================= 
HACKER THEME BASE + CAYMAN-STYLE GRADIENT HEADER BLOCK 
========================================================= */ 

/* ---------------------- HEADER BLOCK ---------------------- */ 

header, .site-header, .header { 
 background: linear-gradient(90deg, #013220 0%, #3b0b4d 100%); 
 color: #ffffff; 
 padding: 6rem 1rem; /* decreased from 10rem to 6rem */ 
 text-align: center; 
 box-shadow: 0 2px 8px rgba(0,0,0,0.35); 
 font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif; 
 position: relative; 
} 

/* ------------------- MAIN TITLE IN HEADER ------------------ */ 

.site-title, .site-header h1, header .site-title { 
 color: #39ff14; /* neon green so it pops */ 
 font-size: 2.4rem; 
 margin: 0 0 1.5rem 0; /* creates space between title & subtitle */ 
 line-height: 1.05; 
 letter-spacing: 0.2px; 
 font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif; 
} 

/* ------------------- SUBTITLE / DESCRIPTION --------------- */ 

header .site-description, 
.site-header .site-description, 
header p.site-description, 
header h2, 
header h3, 
.site-header h2, 
.site-header h3 { 
 color: #e7e7e7; /* light gray */ 
 font-size: 0.95rem; /* smaller than main title */ 
 font-weight: normal; /* unbold */ 
 line-height: 1.2; 
 font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif; 
 margin-top: 0.45rem; 
} 

/* ------------- BODY STYLING (Default Color of Entire Page) ------------------ */ 

body {
  background-color: #0b0b0b;
  color: #bfbfbf;
  font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
}

/* ----------- MAIN READING TEXT STYLING (Target Text Inside Content Area) ---------------- */

.main-content p,
.main-content li,
.content p,
.content li,
.site-content p,
.site-content li {
 color: #bfbfbf;
 line-height: 1.7;
 margin-bottom: 1.1rem;
}

/* ------------------- FOOTER STYLING ---------------------- */

footer,
.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  background-color: #000000;
  color: #ffffff;
  padding: 1.15rem 5rem;
  box-sizing: border-box;
  font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.footer-left {
  text-align: left;
}

.footer-right {
  margin-left: auto;
  text-align: right;
}

.footer-right a,
.footer-right a:visited {
  color: #39ff14;
  text-decoration: none;
}

.footer-right a:hover,
.footer-right a:focus {
  color: #b026ff;
  text-decoration: underline;
}

/* ------------------- CONTENT SPACING -------------------- */ 

.main-content, .content, .site-content {
 margin-top: 5rem; /* adds space after nav menu and content */ 
 margin-bottom: 5rem; /* add space above the footer */ 
} 

/* ----- HOME PAGE SECTION TITLES + CHALLENGE NAME PAGE TITLE --------- */ 

h1 {
 color: #ffffff;
 font-family: inherit;
 font-weight: bold;
}

h2, h3 { 
 color: #39ff14; /* Hacker neon green */ 
 font-family: inherit; /* keep Hacker font */ 
 font-weight: bold; /* keep bold styling if used by Hacker theme */ 
} 

/* ------------------- HOMEPAGE CREATOR IDENTITY ------------------- */

.identity_section {
  text-align: center;
  padding: 3.5rem 1rem 2.5rem;
}

.creator_name {
  color: #d8d8df;
  font-family: "Copperplate", "Bank Gothic", "Trebuchet MS", sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: normal;
  letter-spacing: 0.08em;
  line-height: 1.2;
  margin: 0 0 0.65rem 0;
  text-shadow: 0 1px 1px #555555;
}

.creator_role {
  color: #bfbfbf;
  font-size: 1rem;
  font-weight: normal;
  margin: 0;
}

.creator_divider {
  width: 150px;
  height: 2px;
  margin: 1.75rem auto 2.5rem; /* Increases the space below Founder & Curator & more breathing room b/4 first pill */ 
  background-color: #b026ff;
  box-shadow: 0 0 10px #b026ff;
}

/* ------------------- SECTION DIVIDER ------------------- */

.section_divider {
  width: 150px;
  height: 2px;
  margin: 3rem auto 3rem; /* 3rem: space above the line & 3rem: space below the line */ 
  background-color: #b026ff;
  box-shadow: 0 0 10px #b026ff;
}

/* ------------------- NETWORK DIVIDER ------------------- */

.network_divider {
  position: relative;
  width: 35%; /* extends a little beyond the subtitle.*/
  min-width: 150px;
  height: 2px;
  margin: 1.25rem 0 2.5rem;
  background-color: #b026ff;
  box-shadow: 0 0 8px rgba(176, 38, 255, 0.6);
}

.network_divider::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translate(50%, -50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #b026ff;
  box-shadow: 0 0 10px rgba(176, 38, 255, 0.8);
}

/* ------------------- PROJECT STATUS LEGEND DOTS ------------------- */

.project_legend {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 1.2rem;
  margin: -3.1rem 0 2.5rem;
  font-size: 0.82rem;
  color: #bfbfbf;
}

.legend_item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.legend_dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

/* Status Colors */

.research .legend_dot {
  background: #d8d8df;
  box-shadow: 0 0 6px #d8d8df;
}

.active .legend_dot {
  background: #FFD54A;
  box-shadow: 0 0 6px #FFD54A;
}

.complete .legend_dot {
  background: #39ff14;
  box-shadow: 0 0 6px #39ff14;
}

.prototype .legend_dot {
  background: #ff4fd8;
  box-shadow: 0 0 6px #ff4fd8;
}

/* ------------------- EXPLORE PROMPT ------------------- */

.explore_prompt {
  color: #bfbfbf;
  font-size: 1rem;
  margin: 0 0 4rem; /* Gives the sentence breathing room before the buttons*/ 
}

/* ------------------- IDENTITY PILLS ------------------- */

.identity_pills {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 3rem 0;
}

.identity_pill {
  width: 290px;
  max-width: 90%;
  padding: 0.65rem 1.2rem;
  box-sizing: border-box;
  border: 1px solid rgba(57, 255, 20, 0.5);
  border-radius: 999px;
  background-color: #101010;
  color: #39ff14;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  opacity: 0.55;
  animation: identityPulse 7.5s ease-in-out infinite;
}

.identity_pill:nth-child(1) {
  animation-delay: 0s;
}

.identity_pill:nth-child(2) {
  animation-delay: 1.5s;
}

.identity_pill:nth-child(3) {
  animation-delay: 3s;
}

.identity_pill:nth-child(4) {
  animation-delay: 4.5s;
}

.identity_pill:nth-child(5) {
  animation-delay: 6s;
}

@keyframes identityPulse {
  0%,
  20%,
  100% {
    opacity: 0.55;
    border-color: rgba(57, 255, 20, 0.4);
    transform: scale(1);
  }

  8% {
    opacity: 1;
    border-color: #39ff14;
    transform: scale(1.02);
  }
}

.homepage_buttons {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 0; /* No extra space outside the button container */
  padding-top: 2rem;  /* Creates vertical space between the "Explore..." sentence and the buttons */
}

/* ------------------- CHALLENGE BOX STYLING  -------------------- */ 

.challenge-box {
  background-color: transparent; /* removes the gray fill */
  border: 1px solid #39ff14;
  border-radius: 0.6rem;
  padding: 1.6rem 2.2rem;
  margin-bottom: 2rem;
  box-shadow: none; /* removes the shadow */
  transition:
    background-color 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease,
    transform 0.2s ease;
}

/* ------------------- HOVER EFFECT FOR LITTLE INTERACTIVE ------------------- */ 

.challenge-box:hover {
  background-color: rgba(176, 38, 255, 0.18); /* The whole button becomes purple */
  border-color: #39ff14;
  transform: translateY(-2px);
  box-shadow: 0 0 14px rgba(176, 38, 255, 0.45);
}

/* ------------------- LINKS ------------------------------- */ 

.home-button,
.home-button:visited {
  display: inline-block;
  background-color: transparent !important;
  border: 1px solid #39ff14 !important;
  color: #39ff14 !important;
  text-decoration: none !important;
  text-shadow: none !important;
  box-shadow: none !important;
}

.home-button:hover,
.home-button:focus {
  background-color: rgba(176, 38, 255, 0.22) !important;
  border-color: #39ff14 !important;
  color: #ffffff !important;
  text-decoration: none !important;
  text-shadow: none !important;
  box-shadow:
    inset 0 0 18px rgba(176, 38, 255, 0.22),
    0 0 12px rgba(176, 38, 255, 0.4) !important;
}

/* ------------------- INNER HEADING INSIDE BOX (title, points, category) ------------------- */ 

.challenge-box h3 { 
 color: #39ff14; /* neon green to match Hacker titles */ 
 margin-top: 0; 
} 

/* ------------------- BOLD THE SMALL METADATA ------------------- */ 

.challenge-box strong { 
 color: #e7e7e7; 
 font-weight: 600; 
} 

/* ------------------- ADJUST NORMAL PARAGRAPH TEXT INSIDE BOX ------------------- */ 

.challenge-box p, .challenge-box li { 
 color: #e7e7e7; 
 line-height: 1.5; 
} 

/* -------------------STANDARDIZE SPACING BETWEEN BULLETS ------------------- */ 

ul li { 
 margin-bottom: 0.8rem; 
} 

/* ------------------- TOP NAVIGATION MENU ------------------- */

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  width: 100%;
  padding: 1rem 2rem;
  box-sizing: border-box;
  background-color: #000000;

  position: sticky;      /* Makes the navigation stick to the top while scrolling */
  top: 0;                /* Locks it to the top of the page */
  z-index: 1000;         /* Ensures it stays above the page content */
  border-bottom: 1px solid rgba(176, 38, 255, 0.35); /* Adds a subtle purple separator between the nav bar and page */
}

/* ------------------- LOGO ON LEFT ------------------- */

.brand-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.nav-logo {
  display: block;
  width: 72px; /* Slightly larger logo for the sticky navigation */
  height: 72px;
  object-fit: contain;
}

/* ------------------- MENU TABS ON THE RIGHT ------------------- */

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 2rem;
  flex-wrap: wrap;
}

.site-nav .nav-link {
  color: #39ff14;
  font-weight: none;
  text-decoration: none;
  font-size: 1rem;
  white-space: nowrap;
}

.site-nav .nav-link:hover {
  color: #b026ff;
  text-decoration: underline;
}


/* ------------- WRAP THE WHOLE MAIN CONTENT TO NOT STRETCH EDGE TO EDGE -------------- */ 

.main-content, .content, .site-content { 
 margin: 1.25rem auto; /* centers the content */ 
 padding: 0 1.5rem 3rem; /* side padding + bottom spacing */ 
 max-width: 1100px; /* a larger number pushes the content further out */ 
 width: 100%;
 box-sizing: border-box;
}

.main-content {
  flex: 1;
}

/* ------------------- GRID LAYOUT FOR CHALLENGE BOXES ------------------- */

.challenge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem; /* spacing between boxes */
  margin-top: 2rem;
}

/* ------------------- INLINE CODE STYLING -------------------- */

code {
  color: #4FD1C5;
  background-color: #111111;
  border: 1px solid #4FD1C5;
  border-radius: 4px;
  padding: 2px 6px;
  font-family: Consolas, Monaco, "Courier New", monospace;
}

/* ------------------- TABLE STYLING -------------------- */

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

th,
td {
  border: 1px solid #d8d8d8;
  padding: 0.75rem;
  text-align: left;
}

th {
  color: #39FF14;
  background-color: #111111;
}
