/* ============================================================
   bi0s Pentest – style.css
   Colors: #000000 background only, #ffffff text only
   ============================================================ */

@font-face {
  font-family: 'SiteFont';
  src: url('https://fonts.gstatic.com/l/font?kit=L0xuDF4xlVMF-BfR8bXMIhJHg45mwgGEFl0_3vq_ROW-AJi8SJQt&skey=7b92570108d40690&v=v31') format('woff2');
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

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

/* ── Base ── */
html { scroll-behavior: smooth; }

body {
  background: #000;
  color: #fff;
  font-family: 'SiteFont', 'Courier New', monospace;
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: #fff; text-decoration: none; }
a:hover { text-decoration: underline; }

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

h1, h2, h3, h4, h5, h6 {
  font-family: 'SiteFont', 'Courier New', monospace;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.04em;
}

ul, ol { list-style: none; }

/* ── Navbar ── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: #000;
  border-bottom: 1px solid #fff;
  transition: border-color 0.3s;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.nav-logo {
  height: 36px;
  width: 36px;
  object-fit: contain;
}

.nav-brand-text {
  font-family: 'SiteFont', monospace;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #fff;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link {
  font-family: 'SiteFont', monospace;
  font-size: 0.875rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid transparent;
  border-radius: 4px;
  color: #ccc;
  transition: color 0.2s, border-color 0.2s;
  text-decoration: none;
}

.nav-link:hover { color: #fff; border-color: #fff; text-decoration: none; }
.nav-link.active { color: #fff; border-color: #fff; }

.nav-socials {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: 1rem;
}

.nav-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem;
  border: 1px solid transparent;
  border-radius: 4px;
  color: #ccc;
  transition: color 0.2s, border-color 0.2s;
}

.nav-socials a:hover { color: #fff; border-color: #fff; text-decoration: none; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.2s;
}

/* Mobile overlay + panel */
.mob-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 1100;
}

.mob-panel {
  display: none;
  position: fixed;
  top: 0; right: 0;
  width: 280px;
  height: 100%;
  background: #000;
  border-left: 1px solid #fff;
  z-index: 1200;
  flex-direction: column;
  padding: 5rem 1.5rem 2rem;
  gap: 0.5rem;
}

.mob-panel.open,
.mob-overlay.open {
  display: flex;
}

.mob-close {
  position: absolute;
  top: 1rem; right: 1rem;
  background: transparent;
  border: none;
  color: #fff;
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
}

.mob-link {
  font-family: 'SiteFont', monospace;
  font-size: 1rem;
  padding: 0.75rem 1rem;
  border: 1px solid transparent;
  border-radius: 4px;
  color: #ccc;
  transition: color 0.2s, border-color 0.2s;
  text-decoration: none;
}

.mob-link:hover, .mob-link.active { color: #fff; border-color: #fff; text-decoration: none; }

.mob-socials {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #333;
}

.mob-socials a { color: #ccc; }
.mob-socials a:hover { color: #fff; text-decoration: none; }

/* ── Layout ── */
.page-wrap {
  margin-top: 64px;
  flex: 1;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-pad { padding: 5rem 0; }
.section-pad-sm { padding: 3rem 0; }

.bg-stripe {
  background: repeating-linear-gradient(
    0deg,
    #000 0px,
    #000 3px,
    #0a0a0a 3px,
    #0a0a0a 6px
  );
}

/* Page header */
.page-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.page-header h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 1rem;
}

.divider {
  width: 80px;
  height: 2px;
  background: #fff;
  margin: 1rem auto;
}

.lead {
  color: #ccc;
  font-size: 1rem;
  line-height: 1.7;
}

/* Section title */
.section-title {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-title h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.5rem);
  margin-bottom: 0.5rem;
}

.section-title p {
  color: #aaa;
  font-size: 0.95rem;
}

.title-bar {
  width: 60px;
  height: 2px;
  background: #fff;
  margin: 0.75rem auto 0;
}

/* ── Card grids ── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
}

.grid-2 { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }

/* Sub-teams: 4 col desktop+tablet-landscape, 2 col tablet-portrait, 1 col mobile */
.grid-subteams {
  grid-template-columns: repeat(4, 1fr);
}

/* Values: always fills full width with equal columns */
.grid-values {
  grid-template-columns: repeat(3, 1fr);
}

/* Generic card */
.card {
  border: 1px solid #333;
  border-radius: 6px;
  padding: 1.5rem;
  background: #000;
  transition: border-color 0.2s;
}

.card:hover { border-color: #fff; }

/* ── Member cards ── */
.member-card {
  border: 1px solid #333;
  border-radius: 6px;
  padding: 1.25rem;
  background: #000;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.15s;
}

.member-card:hover { border-color: #fff; transform: translateY(-2px); }

.founder-card {
  border-color: #fff;
  grid-column: 1 / -1;
}

.staff-card { border-color: #888; }

.sudo-name {
  font-family: 'SiteFont', monospace;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.real-name {
  font-size: 0.9rem;
  color: #ccc;
  margin-bottom: 0.2rem;
}

.role {
  font-size: 0.8rem;
  color: #888;
  margin-bottom: 0.75rem;
  font-style: italic;
}

.bio-short {
  font-size: 0.85rem;
  color: #aaa;
  line-height: 1.6;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.social-icons {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.75rem;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 1px solid #555;
  border-radius: 4px;
  color: #aaa;
  transition: color 0.2s, border-color 0.2s;
  text-decoration: none;
}

.social-icons a:hover { color: #fff; border-color: #fff; text-decoration: none; }

/* Year heading */
.year-heading {
  font-family: 'SiteFont', monospace;
  font-size: 1rem;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #333;
  color: #aaa;
}

.mb-6 { margin-bottom: 3rem; }

/* ── Search ── */
.search-wrap {
  margin-bottom: 2rem;
}

.search-input-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border: 1px solid #555;
  border-radius: 6px;
  padding: 0.75rem 1rem;
  background: #000;
  max-width: 500px;
  margin: 0 auto;
  transition: border-color 0.2s;
}

.search-input-wrap:focus-within { border-color: #fff; }

.search-input-wrap svg { color: #888; flex-shrink: 0; }

.search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-family: 'SiteFont', monospace;
  font-size: 0.9rem;
}

.search-input::placeholder { color: #555; }

/* ── Modal ── */
.modal-bg {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-bg.open { display: flex; }

.modal-box {
  background: #000;
  border: 1px solid #fff;
  border-radius: 8px;
  padding: 2rem;
  max-width: 500px;
  width: 100%;
  position: relative;
  max-height: 80vh;
  overflow-y: auto;
}

.modal-close {
  position: absolute;
  top: 1rem; right: 1rem;
  background: transparent;
  border: none;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-sudo {
  font-family: 'SiteFont', monospace;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.modal-name {
  font-size: 1rem;
  color: #ccc;
  margin-bottom: 0.25rem;
}

.modal-role {
  font-size: 0.85rem;
  color: #888;
  font-style: italic;
  margin-bottom: 1rem;
}

.modal-bio {
  font-size: 0.875rem;
  color: #aaa;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.modal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.modal-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid #555;
  border-radius: 4px;
  padding: 0.4rem 0.8rem;
  font-size: 0.85rem;
  color: #ccc;
  transition: color 0.2s, border-color 0.2s;
  text-decoration: none;
}

.modal-links a:hover { color: #fff; border-color: #fff; text-decoration: none; }

/* ── Achievements ── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1rem;
}

.stat-card {
  border: 1px solid #333;
  border-radius: 6px;
  padding: 1.5rem 1rem;
  text-align: center;
  background: #000;
}

.stat-value {
  font-family: 'SiteFont', monospace;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.8rem;
  color: #888;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.filter-btn {
  font-family: 'SiteFont', monospace;
  font-size: 0.85rem;
  padding: 0.4rem 1rem;
  border: 1px solid #555;
  border-radius: 4px;
  background: transparent;
  color: #aaa;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}

.filter-btn:hover, .filter-btn.active {
  border-color: #fff;
  color: #fff;
}

.ach-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.ach-card {
  border: 1px solid #333;
  border-radius: 6px;
  background: #000;
  overflow: hidden;
  transition: border-color 0.2s;
}

.ach-card:hover { border-color: #fff; }

/* Card top: category badge + small media (avatar or thumbnail strip) */
.ach-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1rem 0;
}

/* Single portrait → circular avatar */
.ach-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid #333;
  display: block;
}

/* Multi-image → compact horizontal strip */
.ach-thumb-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  flex-shrink: 0;
  max-width: 50%;
  justify-content: flex-end;
}

.ach-thumb {
  width: 44px;
  height: 44px;
  border-radius: 5px;
  object-fit: cover;
  border: 1px solid #333;
}

.ach-body { padding: 0.75rem 1rem 1rem; }

.ach-cat {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid #555;
  border-radius: 3px;
  padding: 0.15rem 0.5rem;
  color: #888;
  margin-bottom: 0.5rem;
}

.ach-title {
  font-family: 'SiteFont', monospace;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 0.5rem;
}

.ach-desc {
  font-size: 0.8rem;
  color: #aaa;
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

.ach-date {
  font-size: 0.75rem;
  color: #666;
}

/* ── About page ── */
.mission-highlight-card {
  border: 1px solid #fff;
  border-radius: 6px;
  padding: 2rem;
  margin-bottom: 2rem;
  font-size: 0.95rem;
  line-height: 1.8;
  color: #ccc;
}

.sub-team-card {
  border: 1px solid #333;
  border-radius: 6px;
  padding: 1.5rem;
  background: #000;
  transition: border-color 0.2s;
}

.sub-team-card:hover { border-color: #fff; }

.sub-team-card h3 {
  font-family: 'SiteFont', monospace;
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.sub-team-card p {
  font-size: 0.875rem;
  color: #aaa;
  line-height: 1.7;
}

.value-card {
  border: 1px solid #333;
  border-radius: 6px;
  padding: 1.5rem;
  text-align: center;
  background: #000;
  transition: border-color 0.2s;
}

.value-card:hover { border-color: #fff; }

.value-card h3 {
  font-family: 'SiteFont', monospace;
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.value-card p { font-size: 0.85rem; color: #aaa; }

/* ── Blog redirect ── */
.blog-redirect {
  text-align: center;
  padding: 4rem 0;
}

.spinner {
  width: 48px;
  height: 48px;
  border: 2px solid #333;
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 1.5rem;
}

@keyframes spin { to { transform: rotate(360deg); } }

.redirect-msg {
  font-family: 'SiteFont', monospace;
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.redirect-sub {
  font-size: 0.9rem;
  color: #aaa;
  margin-bottom: 1.5rem;
}

.redirect-sub a { color: #fff; text-decoration: underline; }

.btn-outline {
  display: inline-block;
  border: 1px solid #fff;
  border-radius: 4px;
  padding: 0.6rem 1.5rem;
  font-family: 'SiteFont', monospace;
  font-size: 0.9rem;
  color: #fff;
  transition: background 0.2s, color 0.2s;
  text-decoration: none;
}

.btn-outline:hover { background: #fff; color: #000; text-decoration: none; }

/* ── Footer ── */
.footer-section {
  border-top: 1px solid #333;
  padding: 2rem 0;
  margin-top: auto;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copy {
  font-size: 0.8rem;
  color: #555;
}

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

.footer-socials a {
  color: #555;
  display: flex;
  align-items: center;
  transition: color 0.2s;
}

.footer-socials a:hover { color: #fff; text-decoration: none; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .nav-links, .nav-socials { display: none; }
  .hamburger { display: flex; }
  .section-pad { padding: 3rem 0; }
  .section-pad-sm { padding: 2rem 0; }
  .page-header h1 { font-size: 1.75rem; }
  .section-title h2 { font-size: 1.4rem; }
  .card-grid { grid-template-columns: 1fr; }
  .grid-subteams { grid-template-columns: repeat(2, 1fr); }
  .grid-values { grid-template-columns: repeat(3, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .ach-grid { grid-template-columns: 1fr; }
  .founder-card { grid-column: auto; }
  .footer-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .filter-bar { justify-content: flex-start; overflow-x: auto; padding-bottom: 0.5rem; flex-wrap: nowrap; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .grid-subteams { grid-template-columns: 1fr; }
  .grid-values { grid-template-columns: 1fr; }
}
