/* =========================
   Base / Layout
   ========================= */

body {
  margin: 0;
  background: black;
  color: white;
  font-family: Arial, Helvetica, sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  text-align: center;
}

.content {
  max-width: 1100px;
  width: 100%;
  padding: 30px;
  box-sizing: border-box;
}

/* =========================
   Typography / Elements
   ========================= */

h1 {
  margin-bottom: 32px;
  letter-spacing: 0.06em;
}

h2 {
  margin-top: 34px;
  margin-bottom: 10px;
}

p {
  line-height: 1.5;
}

a {
  color: #4ea3ff;
  text-decoration: none;
  font-weight: bold;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  max-height: 70vh;
  margin: 30px 0;
  border-radius: 8px;
}

button {
  background: #222;
  color: white;
  border: 1px solid #555;
  padding: 10px 16px;
  font-size: 20px;
  cursor: pointer;
  border-radius: 6px;
}

button:hover {
  background: #333;
}

.action-btn {
  margin-top: 12px;
  margin-bottom: 64px;
}

.compact-btn {
  margin-bottom: 12px;
}

/* =========================
   Environment Indicator
   ========================= */

.envbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 6px 0 6px;
  font-size: 13px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

.env-text {
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #ddd;
  opacity: 0.80;
}

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

/* =========================
   ENV color states
   ========================= */

.env-prod {
  color: #b84a4a;
}

.env-sandbox {
  color: #5f8f5f;
}

.env-legacy {
  color: #6f7f9f;
}

.env-undocumented {
  color: #888888;
}

.env-critical {
  color: #8f2f2f;
}

.env-unknown {
  color: #c97a3a;
}

/* =========================
   Tabs
   ========================= */

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: space-between;
  margin: 42px 0 96px;
}

.tab {
  background: #111;
  border: 1px solid #333;
  color: #ddd;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 20px;
  white-space: nowrap;
  box-sizing: border-box;
}

.tab:hover {
  background: #1a1a1a;
}

.tab.active {
  background: #222;
  border-color: #555;
  color: #fff;
}

/* =========================
   Panels / Helpers
   ========================= */

.tab-panel {
  display: none;
  margin-top: 32px;
}

.tab-panel.active {
  display: block;
}

.hint {
  color: #aaa;
  font-size: 12px;
  margin-top: 12px;
  line-height: 1.45;
}

/* =========================
   Operational Excellence Stats
   ========================= */

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 18px auto;
  width: 100%;
}

.stat {
  border: 1px solid #333;
  background: #0b0b0b;
  border-radius: 8px;
  padding: 14px;
  text-align: left;
}

.stat-label {
  color: #aaa;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.stat-value {
  font-size: 26px;
  font-weight: 800;
  margin: 8px 0 6px;
}

.stat-sub {
  color: #bbb;
  font-size: 12px;
  line-height: 1.35;
}

/* =========================
   Cards
   ========================= */

.card {
  border: 1px solid #333;
  background: #0b0b0b;
  padding: 16px;
  margin: 18px auto;
  text-align: left;
  border-radius: 8px;
}

.card-title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 6px;
}

.card-meta {
  color: #aaa;
  font-size: 13px;
  margin-bottom: 10px;
}

.card-body {
  white-space: pre-wrap;
  margin: 0;
  color: #eaeaea;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 13px;
  line-height: 1.45;
}

.card.sev-1 {
  border-color: #b84a4a;
}

.card.sev-2 {
  border-color: #c97a3a;
}

.card.sev-3 {
  border-color: #c9b23a;
}

.card.sev-4 {
  border-color: #555;
}

/* =========================
   Middle-Out Calculator
   ========================= */

.mo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 14px;
}

.mo-field {
  display: block;
  text-align: left;
}

.mo-label {
  display: block;
  color: #aaa;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.mo-row {
  display: flex;
  gap: 10px;
}

.mo-input,
.mo-select {
  width: 100%;
  background: #0b0b0b;
  color: #eaeaea;
  border: 1px solid #333;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 14px;
  box-sizing: border-box;
}

.mo-select {
  cursor: pointer;
}

.mo-input:focus,
.mo-select:focus {
  outline: none;
  border-color: #555;
}

/* =========================
   Wisdom
   ========================= */

.wisdom {
  border: 1px solid #333;
  background: #0b0b0b;
  border-radius: 8px;
  padding: 16px;
  margin: 18px auto;
}

.wisdom-quote {
  font-size: 16px;
  margin: 0;
  line-height: 1.5;
  color: #eaeaea;
}

/* =========================
   About / Home
   ========================= */

.profile-pic {
  max-width: 220px;
  border-radius: 50%;
  margin: 16px auto;
  display: block;
}

.home-photo {
  max-width: 420px;
  width: 100%;
  max-height: none;
  margin: 18px auto 16px;
  display: block;
}

.tagline {
  color: #ddd;
  font-size: 17px;
  line-height: 1.55;
  margin: 10px auto 22px;
  max-width: 720px;
}

/* =========================
   Resume-Style Skills
   ========================= */

.skills-section {
  margin: 42px auto 36px;
  text-align: left;
}

.skills-section h2 {
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-top: 1px solid #333;
  border-bottom: 1px solid #333;
  padding: 12px 0;
  margin: 0 0 28px;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px 34px;
}

.skill-block {
  background: transparent;
  border: none;
  padding: 0;
}

.skill-block h3 {
  color: #fff;
  font-size: 22px;
  margin: 0 0 8px;
}

.skill-block ul {
  margin: 0;
  padding-left: 22px;
}

.skill-block li {
  color: #eaeaea;
  font-size: 17px;
  line-height: 1.45;
  margin-bottom: 4px;
  text-align: left;
}

/* =========================
   Gallery / Evidence
   ========================= */

.gallery-placeholder {
  border: 1px dashed #333;
  background: #0b0b0b;
  border-radius: 8px;
  padding: 18px;
  margin: 16px auto;
  text-align: center;
  color: #bbb;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 16px 0 6px;
}

.gallery-item {
  border: 1px solid #333;
  background: #0b0b0b;
  border-radius: 8px;
  padding: 10px;
  text-align: center;
  cursor: pointer;
}

.gallery-item:hover {
  border-color: #555;
}

.gallery-thumb {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}

/* =========================
   Lightbox
   ========================= */

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 999;
  padding: 20px;
  box-sizing: border-box;
}

.lightbox.show {
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-inner {
  max-width: 1100px;
  width: 100%;
  border: 1px solid #333;
  background: #0b0b0b;
  border-radius: 10px;
  padding: 14px;
  box-sizing: border-box;
}

.lightbox-close {
  float: right;
  margin: 0 0 10px 0;
}

#lightboxImg {
  width: 100%;
  max-height: 75vh;
  object-fit: contain;
  border-radius: 8px;
  display: block;
}

.lightbox-caption {
  color: #bbb;
  font-size: 12px;
  margin-top: 10px;
  text-align: left;
}

/* =========================
   Footer / Version
   ========================= */

.site-footer {
  margin-top: 64px;
  padding: 24px 0 12px;
  border-top: 1px solid #222;
  color: #888;
  font-size: 12px;
  letter-spacing: 0.02em;
  text-align: center;
}

.site-version {
  color: #bbb;
  font-weight: 700;
}

.site-sep {
  margin: 0 8px;
  color: #444;
}

.site-meta {
  color: #888;
}

.footer-link {
  margin-top: 30px;
}

/* =========================
   Responsive
   ========================= */

@media (max-width: 1000px) {
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 800px) {
  .stats,
  .mo-grid {
    grid-template-columns: 1fr;
  }

  .tabs {
    justify-content: center;
    margin-bottom: 64px;
  }

  .action-btn {
    margin-bottom: 48px;
  }
}

@media (max-width: 700px) {
  .skills-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}
