/* =========================================================
   LabsByNateJ
   Cloud & Security Portfolio
   ========================================================= */


/* ---------- RESET ---------- */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 85px;
}

body {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, Helvetica, Arial, sans-serif;

  background: #0b0f17;
  color: #e8edf5;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}


/* =========================================================
   NAVIGATION
   ========================================================= */

header {
  position: sticky;
  top: 0;
  z-index: 1000;

  background: rgba(11, 15, 23, 0.94);
  border-bottom: 1px solid #202938;

  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.navbar {
  max-width: 1150px;
  margin: 0 auto;
  padding: 19px 24px;

  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 20px;
  font-weight: 750;
  letter-spacing: -0.6px;
  color: #ffffff;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-links a {
  color: #aeb8c7;
  font-size: 13px;
  font-weight: 500;

  transition:
    color 0.2s ease,
    transform 0.2s ease;
}

.nav-links a:hover {
  color: #ffffff;
}


/* =========================================================
   HERO
   ========================================================= */

.hero {
  max-width: 1150px;
  min-height: 670px;

  margin: 0 auto;
  padding: 110px 24px;

  display: flex;
  align-items: center;
}

.hero-content {
  max-width: 850px;
}

.eyebrow,
.section-label {
  color: #55aaff;

  font-size: 12px;
  font-weight: 750;
  letter-spacing: 2.2px;

  margin-bottom: 18px;
}

.hero h1 {
  max-width: 900px;

  font-size: clamp(56px, 8vw, 94px);
  line-height: 0.98;
  letter-spacing: -4px;

  margin-bottom: 32px;
}

.hero h1 span {
  color: #55aaff;
}

.hero-description {
  max-width: 730px;

  color: #aeb8c7;

  font-size: 18px;
  line-height: 1.75;

  margin-bottom: 36px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}


/* =========================================================
   BUTTONS
   ========================================================= */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 44px;
  padding: 11px 20px;

  border-radius: 6px;

  font-size: 13px;
  font-weight: 650;

  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.primary {
  background: #1683e8;
  border: 1px solid #1683e8;
  color: #ffffff;
}

.primary:hover {
  background: #2d96f3;
  border-color: #2d96f3;
  transform: translateY(-2px);
}

.secondary {
  border: 1px solid #334155;
  color: #dbe5f3;
  background: transparent;
}

.secondary:hover {
  background: #111827;
  border-color: #64748b;
  transform: translateY(-2px);
}


/* =========================================================
   GENERAL SECTIONS
   ========================================================= */

.section {
  max-width: 1150px;

  margin: 0 auto;
  padding: 105px 24px;

  border-top: 1px solid #202938;
}

.section h2 {
  max-width: 850px;

  font-size: clamp(34px, 5vw, 48px);
  line-height: 1.1;
  letter-spacing: -1.7px;

  margin-bottom: 22px;
}

.section-description {
  max-width: 760px;

  color: #aeb8c7;

  font-size: 17px;
  line-height: 1.8;
}

.about-secondary {
  margin-top: 16px;
}


/* =========================================================
   PROJECT SECTION
   ========================================================= */

.project-category {
  margin-top: 55px;
}

.category-heading {
  padding-bottom: 16px;
  margin-bottom: 20px;

  border-bottom: 1px solid #202938;
}

.category-heading > div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.category-dot {
  width: 7px;
  height: 7px;

  border-radius: 50%;
  display: inline-block;
}

.completed-dot {
  background: #4ade80;
  box-shadow: 0 0 12px rgba(74, 222, 128, 0.35);
}

.progress-dot {
  background: #55aaff;
  box-shadow: 0 0 12px rgba(85, 170, 255, 0.35);
}

.category-title {
  color: #cbd5e1;

  font-size: 11px;
  font-weight: 750;
  letter-spacing: 1.7px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));

  gap: 20px;
}

.project-card {
  position: relative;

  min-height: 350px;

  padding: 30px;

  display: flex;
  flex-direction: column;

  background: #101722;

  border: 1px solid #263244;
  border-radius: 10px;

  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    background 0.25s ease;
}

.project-card:hover {
  transform: translateY(-4px);

  border-color: #415570;
  background: #111a27;
}

.completed-project {
  border-color: #2c4a42;
}

.completed-project:hover {
  border-color: #3f6a5e;
}

.project-top {
  display: flex;
  align-items: center;
  justify-content: space-between;

  margin-bottom: 34px;
}

.project-number {
  color: #66758a;

  font-size: 12px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.status {
  display: inline-block;

  padding: 5px 8px;

  border: 1px solid #294b70;
  border-radius: 4px;

  background: #10243a;
  color: #75baff;

  font-size: 9px;
  font-weight: 750;
  letter-spacing: 1.1px;
}

.completed-status {
  background: rgba(34, 197, 94, 0.08);
  border-color: #315d49;
  color: #79d99b;
}

.project-card h3 {
  color: #f1f5f9;

  font-size: 22px;
  line-height: 1.3;

  margin-bottom: 14px;
}

.project-card p {
  color: #aeb8c7;

  font-size: 14px;
  line-height: 1.75;

  margin-bottom: 23px;
}

.tags,
.building-tags,
.knowledge-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tags {
  margin-top: auto;
}

.tags span,
.building-tags span,
.knowledge-topics span {
  padding: 5px 9px;

  background: #182231;
  border: 1px solid #29374b;
  border-radius: 4px;

  color: #b9c6d8;

  font-size: 11px;
}

.project-link {
  width: fit-content;

  margin-top: 25px;

  color: #68b5ff;

  font-size: 13px;
  font-weight: 650;

  transition:
    color 0.2s ease,
    transform 0.2s ease;
}

.project-link:hover {
  color: #9bd0ff;
  transform: translateX(3px);
}


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

.cert-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));

  gap: 16px;

  margin-top: 45px;
}

.cert-card {
  min-height: 245px;

  padding: 25px;

  background: #101722;

  border: 1px solid #263244;
  border-radius: 9px;

  transition:
    transform 0.25s ease,
    border-color 0.25s ease;
}

.cert-card:hover {
  transform: translateY(-3px);
  border-color: #415570;
}

.cert-provider {
  color: #55aaff;

  font-size: 10px;
  font-weight: 750;
  letter-spacing: 1.5px;

  margin-bottom: 28px;
}

.cert-card h3 {
  color: #f1f5f9;

  font-size: 21px;
  line-height: 1.25;

  margin-bottom: 8px;
}

.cert-code {
  color: #55aaff !important;

  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 11px !important;
  font-weight: 650;

  margin-bottom: 10px !important;
}

.cert-card > p:last-child {
  color: #98a6b8;

  font-size: 13px;
  line-height: 1.7;
}


/* =========================================================
   KNOWLEDGE BASE
   ========================================================= */

.knowledge-intro {
  margin-top: 45px;
  margin-bottom: 24px;

  padding: 28px 30px;

  background: linear-gradient(
    135deg,
    rgba(22, 131, 232, 0.09),
    rgba(16, 23, 34, 0.5)
  );

  border: 1px solid #29425f;
  border-radius: 10px;
}

.knowledge-intro h3 {
  color: #f1f5f9;

  font-size: 21px;

  margin-bottom: 8px;
}

.knowledge-intro p {
  max-width: 800px;

  color: #aeb8c7;

  font-size: 14px;
  line-height: 1.75;
}

.knowledge-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));

  gap: 18px;
}

.knowledge-card {
  min-height: 275px;

  padding: 27px;

  background: #101722;

  border: 1px solid #263244;
  border-radius: 9px;

  transition:
    transform 0.25s ease,
    border-color 0.25s ease;
}

.knowledge-card:hover {
  transform: translateY(-3px);
  border-color: #415570;
}

.knowledge-icon {
  width: fit-content;

  margin-bottom: 25px;

  color: #55aaff;

  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
  font-weight: 750;

  letter-spacing: 0.7px;
}

.knowledge-card h3 {
  color: #f1f5f9;

  font-size: 20px;

  margin-bottom: 10px;
}

.knowledge-card > p {
  color: #98a6b8;

  font-size: 13px;
  line-height: 1.7;

  margin-bottom: 20px;
}

.knowledge-topics {
  margin-top: auto;
}

.knowledge-cta {
  margin-top: 24px;

  padding: 25px 28px;

  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 25px;

  border: 1px solid #263244;
  border-radius: 9px;
}

.knowledge-cta p {
  max-width: 650px;

  color: #98a6b8;

  font-size: 13px;
}


/* =========================================================
   CURRENTLY BUILDING
   ========================================================= */

.building-section {
  padding-bottom: 125px;
}

.building-tags {
  max-width: 850px;

  margin-top: 32px;
}

.building-tags span {
  padding: 8px 11px;

  font-size: 12px;

  transition:
    border-color 0.2s ease,
    color 0.2s ease;
}

.building-tags span:hover {
  border-color: #415570;
  color: #e2e8f0;
}


/* =========================================================
   FOOTER
   ========================================================= */

footer {
  max-width: 1150px;

  margin: 0 auto;
  padding: 38px 24px 55px;

  border-top: 1px solid #202938;

  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-brand strong {
  color: #f1f5f9;

  font-size: 16px;
}

.footer-brand p {
  color: #66758a;

  font-size: 12px;

  margin-top: 3px;
}

.footer-links {
  display: flex;
  gap: 22px;
}

.footer-links a {
  color: #aeb8c7;

  font-size: 13px;

  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #ffffff;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 950px) {

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

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 750px) {

  html {
    scroll-padding-top: 70px;
  }

  .navbar {
    padding: 16px 20px;
  }

  .logo {
    font-size: 18px;
  }

  .nav-links {
    gap: 16px;
  }

  .nav-links a {
    display: none;
  }

  .nav-links a:last-child {
    display: inline-block;
  }


  /* HERO */

  .hero {
    min-height: auto;

    padding: 95px 20px 90px;
  }

  .hero h1 {
    font-size: clamp(48px, 15vw, 68px);
    letter-spacing: -2.8px;
  }

  .hero-description {
    font-size: 16px;
  }


  /* SECTIONS */

  .section {
    padding: 78px 20px;
  }

  .section h2 {
    font-size: 34px;
    letter-spacing: -1.2px;
  }

  .section-description {
    font-size: 15px;
  }


  /* PROJECTS */

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

  .project-card {
    min-height: auto;
    padding: 24px;
  }

  .project-category {
    margin-top: 45px;
  }


  /* CERTIFICATIONS */

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

  .cert-card {
    min-height: auto;
  }


  /* KNOWLEDGE BASE */

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

  .knowledge-card {
    min-height: auto;
  }

  .knowledge-intro {
    padding: 23px;
  }

  .knowledge-cta {
    flex-direction: column;
    align-items: flex-start;
  }


  /* FOOTER */

  footer {
    padding: 34px 20px 45px;

    flex-direction: column;
    align-items: flex-start;

    gap: 24px;
  }

}


/* =========================================================
   VERY SMALL SCREENS
   ========================================================= */

@media (max-width: 420px) {

  .hero h1 {
    font-size: 45px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .button {
    width: 100%;
  }

  .footer-links {
    flex-wrap: wrap;
  }

}


/* =========================================================
   CUSTOM 404 PAGE
   ========================================================= */

.error-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.error-main {
  flex: 1;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 90px 24px 110px;
}

.error-container {
  width: 100%;
  max-width: 760px;

  text-align: center;
}

.error-label {
  margin-bottom: 12px;

  color: #55aaff;

  font-size: 11px;
  font-weight: 750;
  letter-spacing: 2.2px;
}


/* ---------- 404 NUMBER ---------- */

.error-code {
  margin: 0;

  color: #55aaff;

  font-size: clamp(110px, 20vw, 190px);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -8px;

  text-shadow: 0 0 45px rgba(85, 170, 255, 0.12);
}


/* ---------- MESSAGE ---------- */

.error-title {
  margin-top: 25px;
  margin-bottom: 15px;

  color: #f1f5f9;

  font-size: clamp(30px, 5vw, 42px);
  line-height: 1.1;
  letter-spacing: -1.5px;
}

.error-message {
  max-width: 570px;

  margin: 0 auto;

  color: #98a6b8;

  font-size: 15px;
  line-height: 1.75;
}


/* ---------- BUTTONS ---------- */

.error-buttons {
  margin-top: 30px;

  display: flex;
  justify-content: center;
  flex-wrap: wrap;

  gap: 12px;
}


/* =========================================================
   404 TERMINAL
   ========================================================= */

.error-terminal {
  max-width: 620px;

  margin: 55px auto 0;

  overflow: hidden;

  text-align: left;

  background: #0d141f;

  border: 1px solid #263244;
  border-radius: 10px;

  box-shadow:
    0 18px 50px rgba(0, 0, 0, 0.22);
}


/* ---------- TERMINAL HEADER ---------- */

.terminal-top {
  height: 42px;

  padding: 0 15px;

  display: flex;
  align-items: center;

  gap: 7px;

  background: #111a27;

  border-bottom: 1px solid #263244;
}

.terminal-top span {
  width: 8px;
  height: 8px;

  display: block;

  border-radius: 50%;

  background: #475569;
}

.terminal-top span:first-child {
  background: #64748b;
}

.terminal-top span:nth-child(2) {
  background: #526175;
}

.terminal-top span:nth-child(3) {
  background: #405066;
}


/* ---------- TERMINAL CONTENT ---------- */

.terminal-content {
  padding: 24px;

  font-family:
    "SFMono-Regular",
    Consolas,
    "Liberation Mono",
    monospace;

  font-size: 12px;
  line-height: 1.9;
}

.terminal-content p {
  margin: 0;
}

.terminal-prompt {
  margin-right: 7px;

  color: #55aaff;

  font-weight: 700;
}

.terminal-error {
  padding-left: 18px;

  color: #f87171;
}

.terminal-success {
  padding-left: 18px;

  color: #79d99b;
}


/* =========================================================
   404 PAGE MOBILE
   ========================================================= */

@media (max-width: 750px) {

  .error-main {
    padding: 75px 20px 90px;
  }

  .error-code {
    font-size: 120px;
    letter-spacing: -6px;
  }

  .error-title {
    font-size: 31px;
  }

  .error-message {
    font-size: 14px;
  }

  .error-terminal {
    margin-top: 42px;
  }

  .terminal-content {
    padding: 20px;

    font-size: 11px;
  }

}


@media (max-width: 420px) {

  .error-code {
    font-size: 100px;
  }

  .error-buttons {
    flex-direction: column;
  }

  .error-buttons .button {
    width: 100%;
  }

}
