
/* ==========================================
   NICHOLAS LEWIS — SECONDARY PAGES
   Shared styles come from home.css
   ========================================== */

/* PAGE INTRO */

.page-intro {
  padding-block: 85px 55px;
  border-bottom: 1px solid var(--line);
}

.page-intro h1 {
  font-size: clamp(43px, 5vw, 68px);
  letter-spacing: -2.8px;
  max-width: 880px;
  margin: 17px 0 18px;
}

.page-intro p.intro-copy {
  font-size: 17px;
  line-height: 1.8;
  color: var(--muted);
  max-width: 750px;
}

/* GENERAL PAGE SECTIONS */

.page-section {
  padding-block: 62px 90px;
}

.page-section h2 {
  margin: 0 0 24px;
  font-size: clamp(25px, 3vw, 35px);
}

.page-section .section-note {
  color: var(--muted);
  max-width: 760px;
  margin: 0 0 29px;
}

.info-card {
  background: linear-gradient(
    145deg,
    #172d48,
    #112138
  );
  border: 1px solid var(--line);
  border-radius: 15px;
  overflow: hidden;
}

/* ==========================================
   CERTIFICATIONS PAGE
   ========================================== */

.cert-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.cert-card {
  display: flex;
  gap: 20px;
  align-items: center;
  padding: 24px;
  min-width: 0;
}

.cert-visual {
  flex: none;
  width: 110px;
  height: 115px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #e9f1fa;
  padding: 12px;
}

.cert-visual img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cert-monogram {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border-radius: 9px;
  background: linear-gradient(
    135deg,
    #3266a6,
    #163254
  );
  color: #eff8ff;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -1px;
}

.cert-copy {
  min-width: 0;
}

.cert-copy h3 {
  font-size: 19px;
  line-height: 1.3;
  margin: 5px 0 9px;
}

.cert-org {
  color: #87c1fd;
  font-size: 12px;
  font-weight: 750;
  margin: 0 0 10px;
  letter-spacing: 0.35px;
}

.cert-meta {
  color: #b6c9db;
  font-size: 12px;
  margin: 4px 0;
  overflow-wrap: anywhere;
}

.cert-status {
  display: inline-block;
  border: 1px solid #416e88;
  border-radius: 20px;
  color: #a9ddf0;
  font-size: 10px;
  padding: 3px 9px;
  font-weight: 750;
}

/* ==========================================
   PORTFOLIO PAGE
   ========================================== */

.projects-stack {
  display: grid;
  gap: 24px;
}

.project-detail {
  padding: 30px;
}

.project-detail h2 {
  font-size: clamp(22px, 3vw, 29px);
  margin: 8px 0 15px;
  letter-spacing: -0.8px;
}

.project-detail p {
  color: #b8c9dc;
  line-height: 1.8;
}

.project-detail strong,
.project-detail b {
  color: #e1f0ff;
}

.project-category-label {
  color: #80bfff !important;
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 1.4px;
  margin: 0;
}

.tech-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 20px 0;
}

.tech-tags span {
  font-size: 11px;
  color: #b9d5ed;
  background: #213b59;
  border: 1px solid #355477;
  border-radius: 6px;
  padding: 5px 10px;
}

.project-detail a:not(.button) {
  color: #94caff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.project-detail a:hover {
  color: white;
}

/* Embedded dashboards */

.project-dashboard {
  border: 1px solid #375576;
  border-radius: 12px;
  overflow: hidden;
  margin: 22px 0;
  background: #fff;
}

.project-dashboard iframe {
  display: block;
  width: 100%;
  height: 470px;
  border: 0;
}

/* Project screenshots */

.project-image {
  display: block;
  max-width: 100%;
  height: auto;
  border: 1px solid #385477;
  border-radius: 12px;
  margin: 20px auto;
  cursor: zoom-in;
}

.project-shot {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
}

/* AWS technical implementation tables */

.table-wrap {
  overflow-x: auto;
  margin: 22px 0;
}

.tech-table {
  border-collapse: collapse;
  width: 100%;
  min-width: 540px;
  font-size: 13px;
}

.tech-table th,
.tech-table td {
  border: 1px solid #38516d;
  padding: 13px 15px;
  text-align: left;
  vertical-align: top;
}

.tech-table th {
  background: #21436c;
  color: #f1f8ff;
}

.tech-table td {
  color: #c1d2e5;
}

.tech-table td:first-child {
  font-weight: 750;
  color: #f1f8ff;
  width: 175px;
}

/* Image lightbox */

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 30;
  background: #030a11ed;
  padding: 70px 20px 25px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.lightbox:target {
  display: flex;
}

.lightbox img {
  max-width: min(95vw, 1200px);
  max-height: 78vh;
  object-fit: contain;
  border-radius: 10px;
}

.lightbox-close {
  color: white;
  text-decoration: none;
  position: absolute;
  right: 28px;
  top: 18px;
  font-weight: 800;
  font-size: 30px;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  z-index: -1;
}

/* ==========================================
   CONTACT PAGE
   ========================================== */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.contact-tile {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 225px;
}

.contact-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  background: #24446b;
  border-radius: 12px;
  color: #a0d4ff;
  font-size: 24px;
}

.contact-tile h2 {
  font-size: 22px;
  margin: 0;
}

.contact-tile p {
  color: #adc2d9;
  font-size: 13px;
  margin: 0;
}

.contact-tile a {
  margin-top: auto;
  word-break: break-word;
  text-decoration: none;
  color: #94caff;
  font-weight: 700;
  font-size: 14px;
}

.contact-tile a:hover {
  text-decoration: underline;
}

.contact-note {
  margin-top: 28px;
  padding: 32px 36px;
  background: #10263f;
  border: 1px solid var(--line);
  border-radius: 15px;
}

.contact-note h2 {
  font-size: 26px;
  margin-bottom: 12px;
}

.contact-note p {
  color: var(--muted);
  margin: 0;
  max-width: 750px;
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */

@media (max-width: 850px) {
  .cert-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-tile {
    min-height: 175px;
  }
}

@media (max-width: 600px) {
  .page-intro {
    padding-block: 60px 38px;
  }

  .page-section {
    padding-block: 43px 65px;
  }

  .cert-card {
    padding: 18px;
    gap: 14px;
    align-items: flex-start;
  }

  .cert-visual {
    width: 78px;
    height: 84px;
    padding: 8px;
  }

  .cert-copy h3 {
    font-size: 16px;
  }

  .project-detail {
    padding: 20px;
  }

  .project-dashboard iframe {
    height: 340px;
  }

  .contact-note {
    padding: 24px;
  }
}
