html {
  min-height: 100%;
  background-image: url("images/backdrop.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Georgia, serif;
  color: #222;
  background: transparent;
}

.page {
  max-width: 800px;
  min-height: 100vh;
  margin: 0 auto;
  padding: 40px 20px;
  background: #f4f1ea;
  line-height: 1.6;
}

.site-header {
  border-bottom: 2px solid #222;
  margin-bottom: 30px;
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 30px;
}

.header-text {
  flex: 1;
}

.profile-photo {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border: 2px solid #222;
}

nav {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 15px;
  margin-top: 20px;
}

nav a {
  margin-right: 15px;
  color: #222;
  text-decoration: none;
  font-weight: bold;
}

nav a:hover {
  text-decoration: underline;
}

section {
  margin-top: 30px;
}

@media (max-width: 700px) {
  .page {
    padding: 25px 16px;
  }

  .header-top {
    flex-direction: column;
  }

  .profile-photo {
    width: 140px;
    height: 140px;
  }

  nav a {
    display: inline-block;
    margin-bottom: 8px;
  }
}
/* Styling for internal hyperlinks --------------------------------------------------------------*/
.section-link {
    color: inherit;
    font-weight: bold;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.section-link:visited {
    color: inherit;
}

.section-link:hover {
  text-decoration-thickness: 2px;
}

/* Styling for command/code blocks ---------------------------------------------------------------*/
.terminal-block {
    width: 100%;
    box-sizing: border-box;
    margin: 1.5rem 0;

    background: #1b1b1b;
    color: #f1f1f1;

    border: 1px solid #3a3a3a;
    border-radius: 6px;

    overflow: hidden;
}

.terminal-label {
    padding: 0.5rem 1rem;

    background: #2a2a2a;
    color: #9be564;

    font-family: Consolas, "Courier New", monospace;
    font-size: 13px;
    font-weight: bold;

    border-bottom: 1px solid #3a3a3a;
}

.terminal-block pre {
    margin: 0;
    padding: 1rem;

    background: transparent;
    color: inherit;

    overflow-x: auto;

    font-family: Consolas, "Courier New", monospace;
    font-size: 14px;
    line-height: 1.5;

    white-space: pre;
}

.terminal-block code {
    font: inherit;
    color: inherit;
}

/* Subpage layout: IT, Audio-Visual, Music, Blog, Contact */
.subpage .site-header {
  border-bottom: 2px solid #222;
  margin-bottom: 30px;
  padding-bottom: 4px;
}

.subpage nav {
  margin-top: 0;
}

.subpage h1 {
  margin-top: 0;
}

/* Style for projects section -----------------------------------------------------------*/
.projects-section {
  margin-top: 40px;
}

.project-card {
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid #999;
}

.project-card:last-child {
  border-bottom: none;
}

.project-card h3 {
  margin-bottom: 0;
}

.project-type {
  margin-top: 2px;
  font-style: italic;
  color: #555;
}

.project-card ul {
  margin-top: 10px;
  padding-left: 24px;
}

.project-card li {
  margin-bottom: 6px;
}

/*DROPDOWN MENU for 'Systems Administration' -----------------------------------------------*/
.nav-dropdown {
  position: relative;
  display: inline-block;
  margin-right: 0;
  white-space: nowrap;
  flex: 0 0 auto;
}

.nav-dropdown-title {
  display: inline-block;
  margin-right: 0;
  white-space: nowrap;
}
/* Shared Rule */
nav a,
nav .nav-dropdown-title {
  color: #222;
  text-decoration: none;
  font-weight: bold;
  font-family: Georgia, serif;
  font-size: 1rem;
  line-height: 1.2;
}
/* Shared Rule */
nav a:hover,
nav .nav-dropdown-title:hover {
  text-decoration: underline;
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  left: 0;
  top: 100%;
  min-width: 230px;
  padding: 8px 0;
  background: #eee8dc;
  border: 1px solid #222;
  z-index: 9999;
}

.nav-dropdown-menu a {
  display: block;
  margin: 0;
  padding: 6px 12px;
  color: #222;
  text-decoration: none;
  font-weight: normal;
  font-size: 1rem;
  white-space: nowrap;
}

.nav-dropdown-menu a:hover {
  background: #d0dbdb;
  text-decoration: underline;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
  display: block;
}

/* Active page for dropdown menu -----------------------------------------------------------------*/
.nav-dropdown-menu a.active {
  font-weight: bold;
  text-decoration: underline;
}

/* Subpage layout for Systems pages (Website, NAS, AD, Issue-Tracking)------------------------------*/
.systems-project-nav {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  font-family: Georgia, serif;
  font-size: 0.95rem;
}

.systems-project-nav a,
.systems-project-nav span {
  color: #222;
  text-decoration: none;
  padding: 2px 4px;
}

.systems-project-nav a:hover {
  text-decoration: underline;
}

.systems-project-nav .active {
  font-weight: bold;
  text-decoration: underline;
}

.systems-project-nav .disabled {
  color: #999;
  cursor: default;
}

.project-nav-label {
  color: #555;
  margin-right: 4px;
}
.systems-project-nav-bottom {
  margin-top: 40px;
  margin-bottom: 20px;
  border-top: 1px solid #999;
  padding-top: 14px;
}

.systems-title-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  margin-top: 34px;
  margin-bottom: 28px;
}

.systems-title-row h1 {
  margin: 0;
}

.systems-title-row .systems-project-nav {
  margin: 0;
  flex-shrink: 0;
}
/* Mobile Fallback for Systems Navigation ------------------------------------------------------------*/
@media (max-width: 750px) {
  .systems-title-row {
    display: block;
  }

  .systems-title-row h1 {
    margin-bottom: 10px;
  }

  .systems-title-row .systems-project-nav {
    justify-content: flex-start;
  }
}
/* CISCO SYSTEMS PROJECT PAGE -----------------------------------------------------------------------*/
/* Tables used for the VLAN, addressing, and port-assignment sections. */
.systems-page .systems-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0 1.5rem;
}

.systems-page .systems-table th,
.systems-page .systems-table td {
    border: 1px solid currentColor;
    padding: 0.55rem 0.7rem;
    text-align: left;
    vertical-align: top;
}

.systems-page .systems-table th {
    font-weight: bold;
}

/* Keep long Cisco/Linux command blocks usable on narrow screens. -----------------------------------*/
.systems-page pre {
    overflow-x: auto;
}

/* A little separation between the expanded project sections. -----------------------------------------*/
.systems-page .sysadmin-section + .sysadmin-section {
    margin-top: 2rem;
}

/* Reuse the existing .runbook details style, adding only the
   small amount of behaviour/spacing needed by the runbooks. ------------------------------------------*/
.systems-page details.runbook {
    margin: 0.75rem 0;
}

.systems-page details.runbook summary {
    cursor: pointer;
    font-weight: bold;
}

.systems-page details.runbook > div {
    padding: 0.25rem 0.9rem 0.9rem;
}

.systems-page details.runbook ol,
.systems-page details.runbook ul {
    padding-left: 1.5rem;
}

.systems-page details.runbook li {
    margin: 0.45rem 0;
}

/* Mobile Fallback - Cisco page -----------------------------------------------------------------------*/
@media (max-width: 700px) {
    .systems-page .systems-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

/* NAS Search Image float styling --------------------------------------------------------------------*/
.nas-search-screenshot {
    float: right;
    width: 42%;
    max-width: 420px;

    /* top right bottom left */
    margin: 0 0 1.25rem 1.5rem;

    box-sizing: border-box;
}

.nas-search-screenshot img {
    display: block;
    width: 100%;
    height: auto;

    border: 1px solid #999;
    box-sizing: border-box;
}

.nas-search-screenshot figcaption {
    margin-top: 0.4rem;

    font-size: 0.85rem;
    line-height: 1.3;
}
.nas-architecture {
  background: #e8e2d6;
  border: 1px solid #999;
  padding: 18px;
  overflow-x: auto;
  font-family: "Courier New", Courier, monospace;
  font-size: 0.95rem;
  line-height: 1.35;
  white-space: pre;
  clear: both;
}
/* Mobile Fallback for NAS Image float --------------------------------------------------------------*/
@media (max-width: 700px) {
    .nas-search-screenshot {
        float: none;

        width: 100%;
        max-width: none;

        margin: 1rem 0;
    }
}
/* ISSUE TRACKING Image float styling ---------------------------------------------------------------*/
.issue-tracking-screenshot {
    width: min(90%, 900px);
    margin: 2rem auto 1.5rem auto;
    text-align: center;
}

.issue-tracking-screenshot img {
    display: block;
    width: 100%;
    height: auto;
    margin: 0 auto;

    border: 1px solid #999;
    box-sizing: border-box;
}

.issue-tracking-screenshot figcaption {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    line-height: 1.3;
    color: #555;
}
/* Blog Image Float Styling -------------------------------------------------------------------------*/
.blog-image {
    display: block;
    width: 90%;
    max-width: 900px;
    height: auto;
    margin: 0.8 rem auto;
    object-fit: contain;
}

/* TECHNOLOGIES USED ON INDEX.HTML------------------------------------------------------------------*/
.home-section {
  margin-top: 16px;
  padding-top: 6px;
  border-top: 1px solid #999;
}

.tech-section {
  text-align: center;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(4, 160px);
  gap: 10px 14px;
  width: fit-content;
  max-width: 100%;
  margin: 18px auto 0 auto;
}

.tech-item {
  min-height: 54px;
  padding: 8px 10px;
  border: 1px solid #777;

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

  font-size: 1rem;
  line-height: 1.2;
  background: #eee8dc;
  box-sizing: border-box;
}

/* TECHNOLOGIES USED ON INDEX.HTML - MOBILE------------------------------------------------------------*/
@media (max-width: 760px) {
  .tech-grid {
    grid-template-columns: repeat(2, 160px);
  }
}

/* TECHNOLOGIES USED ON INDEX.HTML - VERY SMALL SCREENS ------------------------------------------------*/
@media (max-width: 420px) {
  .tech-grid {
    grid-template-columns: 1fr;
    width: 100%;
  }
}

/* Github Button -------------------------------------------------------------------------------------*/
.github-button {
  position: fixed;
  left: 24px;
  bottom: 132px;
  width: 42px;
  height: 42px;

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

  background: #e0e0e0;
  border: 2px solid #222;
  z-index: 9999;
  text-decoration: none;
}

.github-button img {
  width: 30px;
  height: 30px;
  display: block;
  object-fit: contain;
}

.github-button:hover {
  background: #d0dbdb;
  transform: translateY(-2px);
}
/* Youtube Button -----------------------------------------------------------------------------------*/
.youtube-button {
  position: fixed;
  left: 24px;
  bottom: 78px;
  width: 42px;
  height: 42px;

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

  background: #e0e0e0;
  border: 2px solid #222;
  z-index: 9999;
  text-decoration: none;
}

.youtube-button img {
  max-width: 52px;
  max-height: 52px;
  display: block;
  object-fit: contain;
}

.youtube-button:hover {
  background: #d0dbdb;
  transform: translateY(-2px);
}

/* Linkedin Button -------------------------------------------------------------------------------*/
.linkedin-button {
  position: fixed;
  left: 24px;
  bottom: 24px;
  width: 42px;
  height: 42px;

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

  background: #f2c94c;
  color: #222;

  font-family: Arial, Helvetica, sans-serif;
  font-size: 20px;
  font-weight: bold;
  text-decoration: none;

  border: 2px solid #222;
  z-index: 9999;
}

.linkedin-button:hover {
  background: #ffd84d;
  text-decoration: none;
  transform: translateY(-2px);
}

.linkedin-button:visited {
  color: #222;
}

/* Music Player -------------------------------------------------------------------------------------*/
.music-library {
  margin-top: 36px;
}

.music-section {
  margin-top: 32px;
  margin-bottom: 36px;
}

.music-section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  margin-bottom: 20px;
}

.music-section-header h2 {
  margin: 0;
}

.music-years {
  margin: 0;
  white-space: nowrap;
  font-size: 0.95rem;
}

.track-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.track-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 95px 180px;
  align-items: center;
  gap: 10px;
}

.track-play-button {
  width: 32px;
  height: 26px;
  padding: 0;
  font-family: monospace;
  font-size: 0.9rem;
  cursor: pointer;
}

.track-title {
  min-width: 0;
  overflow-wrap: anywhere;
}

.track-time {
  font-size: 0.9rem;
  white-space: nowrap;
  text-align: right;
}

.track-slider {
  width: 180px;
}

@media (max-width: 750px) {
  .music-section-header {
    display: block;
  }

  .music-years {
    margin-top: 6px;
  }

  .track-row {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .track-time {
    grid-column: 2;
    text-align: left;
  }

  .track-slider {
    grid-column: 2;
    width: 100%;
  }
}

/* Music intro ----------------------------------------------------------------------------------------*/
.music-intro {
  display: grid;
  grid-template-columns: 1fr 110px;
  gap: 24px;
  align-items: start;
  margin-bottom: 36px;
}

.music-intro h1 {
  margin-top: 0;
}

.music-page-image {
  width: 110px;
  height: 110px;
  object-fit: cover;
  border: 2px solid #222;
  margin-top: 6px;
}

@media (max-width: 700px) {
  .music-intro {
    grid-template-columns: 1fr;
  }

  .music-page-image {
    width: 120px;
    height: 120px;
    margin-top: 0;
  }
}
/* Blog stuff -------------------------------------------------------------------------------------*/

.blog-page .page {
  max-width: 1000px;
}

.blog-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 36px;
  align-items: start;
}

.blog-main {
  min-width: 0;
}

.blog-sidebar {
  font-size: 0.9rem;
}

.blog-sidebar section {
  margin-bottom: 32px;
}

.blog-sidebar h2 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: #555;
  margin-bottom: 12px;
}

.blog-sidebar a {
  color: #222;
  text-decoration: none;
}

.blog-sidebar a:hover {
  text-decoration: underline;
}

.blog-post-preview {
  border-bottom: 1px solid #999;
  padding-bottom: 24px;
  margin-bottom: 28px;
}

.blog-post-preview h2 {
  margin-top: 4px;
  margin-bottom: 10px;
}

.blog-post-preview h2 a {
  color: #222;
  text-decoration: none;
}

.blog-post-preview h2 a:hover {
  text-decoration: underline;
}

.blog-date {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #555;
  margin-bottom: 6px;
}

.blog-labels {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #555;
}

.blog-labels a {
  color: #222;
  text-decoration: none;
}

.blog-labels a:hover {
  text-decoration: underline;
}

.blog-full-post p {
  margin-bottom: 18px;
}

.archive-year,
.archive-month {
  margin-bottom: 8px;
}

.archive-year summary,
.archive-month summary {
  cursor: pointer;
  font-weight: bold;
}

.archive-month {
  margin-left: 16px;
}

.archive-month ul {
  margin-top: 8px;
  margin-bottom: 10px;
  padding-left: 18px;
}

.archive-month li {
  margin-bottom: 6px;
}

.sidebar-labels {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

@media (max-width: 800px) {
  .blog-page .page {
    max-width: 800px;
  }

  .blog-layout {
    grid-template-columns: 1fr;
  }

  .blog-sidebar {
    border-top: 1px solid #999;
    padding-top: 24px;
  }
}

/* Blog JS -------------------------------------------------------------------------------------------*/
.blog-post-full {
  border-bottom: 1px solid #999;
  padding-bottom: 28px;
  margin-bottom: 34px;
}

.blog-post-full h2 {
  margin-top: 4px;
  margin-bottom: 18px;
}

.blog-post-full h2 a {
  color: #222;
  text-decoration: none;
}

.blog-post-full h2 a:hover {
  text-decoration: underline;
}

.blog-post-body p {
  margin-bottom: 18px;
}

/* Systems Administration page */
.systems-page .page {
  max-width: 900px;
}

.sysadmin-section {
  margin-top: 42px;
  padding-bottom: 28px;
  border-bottom: 1px solid #999;
}

.sysadmin-section:last-child {
  border-bottom: none;
}

.sysadmin-section h2 {
  margin-bottom: 14px;
}

.sysadmin-section h3 {
  margin-bottom: 6px;
}

.architecture-diagram {
  background: #e8e2d6;
  border: 1px solid #999;
  padding: 18px;
  overflow-x: auto;
  font-family: "Courier New", Courier, monospace;
  font-size: 0.95rem;
  line-height: 1.35;
  white-space: pre;
}

.project-card {
  margin-top: 26px;
  margin-bottom: 28px;
}

.project-card p {
  margin-top: 6px;
}

.project-card ul,
.sysadmin-section ul,
.runbook ol {
  padding-left: 24px;
}

.project-card li,
.sysadmin-section li,
.runbook li {
  margin-bottom: 7px;
}

.runbook {
  margin-top: 14px;
  margin-bottom: 14px;
  padding: 12px 14px;
  border: 1px solid #999;
  background: #f8f4ea;
}

.runbook summary {
  cursor: pointer;
  font-weight: bold;
}

.runbook summary:hover {
  text-decoration: underline;
}

.runbook code {
  font-family: "Courier New", Courier, monospace;
  background: #e8e2d6;
  padding: 1px 4px;
}

.note {
  font-style: italic;
  color: #555;
}

/* pinned posts -------------------------------------------------------------------------------------*/

.pinned-post {
  border: 2px solid #999;
  padding: 18px;
  background: #f8f4ea;
}

.pinned-label {
  display: inline-block;
  margin: 0 0 8px 0;
  padding: 2px 8px;
  border: 1px solid #777;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #555;
}