/*
   Shaquille Posey, June 11, 2026, IST239-W01, IST239 Final Project

   External stylesheet for the IST239 landing page.
   Defines a three-column liquid layout with card style dark theme.

   Filename: styles.css; index.html; index.js
*/

/* import font from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

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

/* Base - deep black background */
body {
   background-color: #000000;
   color: #f5f5f7;
   font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
   font-size: 16px;
   line-height: 1.6;
   min-height: 100vh;
   display: flex;
   flex-direction: column;
}

/* Header */
header {
   background-color: rgba(29, 29, 31, 0.95);
   border-bottom: 1px solid #3a3a3c;
   padding: 40px 40px;
}

/* row for photo and text */
#header-inner {
   max-width: 1100px;
   margin: 0 auto;
   display: flex;
   align-items: center;
   justify-content: center;
   gap: 32px;
}

/* Circular profile photo */
#profile-photo {
   width: 160px;
   height: 160px;
   border-radius: 50%;
   object-fit: cover;
   border: 3px solid #3a3a3c;
   flex-shrink: 0;
}

/* name - bright white, heavy weight */
#header-text h1 {
   font-size: 2em;
   font-weight: 700;
   color: #f5f5f7;
   margin-bottom: 5px;
   letter-spacing: -0.02em;
}

/* Email - orange accent */
#header-text .email {
   font-size: 1em;
   color: #ff6b00;
   font-weight: 500;
   margin-bottom: 3px;
}

/* Course info */
#header-text .course {
   font-size: 0.9em;
   color: #98989d;
}

/* Main */
main {
   max-width: 1100px;
   width: 100%;
   margin: 0 auto;
   padding: 56px 30px 70px;
   flex: 1;
}

/* Intro */
#intro {
   margin-bottom: 40px;
}

/* Big bold heading */
#intro h2 {
   font-size: 2.4em;
   font-weight: 700;
   color: #f5f5f7;
   letter-spacing: -0.03em;
   margin-bottom: 8px;
}

/* Subtitle */
#intro p {
   font-size: 1em;
   color: #98989d;
}

/* Custom features navigation (custom feature #1) */
#featureNav {
   margin-bottom: 40px;
}

.feature-nav-heading {
   font-size: 0.72em;
   font-weight: 600;
   text-transform: uppercase;
   letter-spacing: 0.1em;
   color: #98989d;
   border-bottom: 1px solid #3a3a3c;
   padding-bottom: 10px;
   margin-bottom: 16px;
}

#featureNavLinks {
   display: flex;
   flex-wrap: wrap;
   justify-content: center;
   gap: 16px;
}

.feature-nav-link {
   background-color: #1c1c1e;
   border: 1px solid #3a3a3c;
   border-radius: 10px;
   padding: 16px 32px;
   color: #f5f5f7;
   text-decoration: none;
   font-size: 1.05em;
   font-weight: 600;
   transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.feature-nav-link:hover {
   border-color: #ff6b00;
   color: #ff6b00;
   transform: translateY(-3px);
}

/* Chapter roadmap section (custom feature #2) */
#roadmap {
   margin-bottom: 40px;
}

.roadmap-heading {
   font-size: 0.72em;
   font-weight: 600;
   text-transform: uppercase;
   letter-spacing: 0.1em;
   color: #98989d;
   border-bottom: 1px solid #3a3a3c;
   padding-bottom: 10px;
   margin-bottom: 20px;
}

/* row of chapter nodes connected by a horizontal track line */
#roadmapPath {
   position: relative;
   display: flex;
   justify-content: space-between;
   align-items: center;
   padding: 6px 4px 0;
}

#roadmapPath::before {
   content: "";
   position: absolute;
   top: 50%;
   left: 4px;
   right: 4px;
   height: 2px;
   background-color: #3a3a3c;
   transform: translateY(-50%);
   z-index: 0;
}

.roadmap-node {
   position: relative;
   z-index: 1;
   width: 38px;
   height: 38px;
   border-radius: 50%;
   background-color: #1c1c1e;
   border: 1px solid #3a3a3c;
   color: #98989d;
   font-family: 'Inter', sans-serif;
   font-size: 0.85em;
   font-weight: 600;
   cursor: pointer;
   transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.roadmap-node:hover {
   transform: translateY(-4px);
   border-color: #ff6b00;
   color: #ff6b00;
}

/* completed chapters are outlined in orange so progress is visible at a glance */
.roadmap-node.completed {
   border-color: #ff6b00;
   color: #ff6b00;
}

/* upcoming chapters are dimmed since there's nothing to view yet */
.roadmap-node.upcoming {
   opacity: 0.45;
}

.roadmap-caption {
   text-align: center;
   font-size: 0.78em;
   color: #636366;
   margin-top: 14px;
}

/* Chapter dropdown selector */
#chapter-selector {
   margin-bottom: 40px;
   display: flex;
   align-items: center;
   gap: 16px;
}

/* Label for the dropdown */
#chapter-selector label {
   font-size: 0.875em;
   font-weight: 600;
   color: #98989d;
   text-transform: uppercase;
   letter-spacing: 0.07em;
   white-space: nowrap;
}

/* Styled dropdown matching the dark theme */
#chapterSelect {
   background-color: #1c1c1e;
   color: #f5f5f7;
   border: 1px solid #ff6b00;
   border-radius: 8px;
   padding: 10px 16px;
   font-family: 'Inter', sans-serif;
   font-size: 0.9em;
   cursor: pointer;
   outline: none;
   min-width: 380px;
}

/* Orange border on focus */
#chapterSelect:focus {
   border-color: #ff6b00;
}

/* Chapter group sections  */
.chapter-group {
   margin-bottom: 50px;
}

/* Chapter label - thin divider line */
.chapter-heading {
   font-size: 0.72em;
   font-weight: 600;
   text-transform: uppercase;
   letter-spacing: 0.1em;
   color: #98989d;
   border-bottom: 1px solid #3a3a3c;
   padding-bottom: 10px;
   margin-bottom: 24px;
}

/* three-column liquid layout */
.project-grid {
   display: flex;
   flex-wrap: wrap;
   gap: 18px;
}

/* Each card = one third of the row width minus gap */
.project-card {
   width: calc(33.333% - 12px);
   background-color: #1c1c1e;
   border: 1px solid #3a3a3c;
   border-radius: 18px;
   overflow: hidden;
   transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

/* Full card is the link */
.project-card a {
   display: block;
   text-decoration: none;
   color: inherit;
}

/* Screenshot preview fills the top of each card */
/* Grayscale by default so busy/colorful screenshots don't clash with the
   dark + orange theme. Hovering the card reveals the true colors. */
.project-preview {
   width: 100%;
   height: 180px;
   object-fit: cover;
   object-position: top;
   display: block;
   border-bottom: 1px solid #3a3a3c;
   background-color: #2c2c2e;
   filter: grayscale(100%);
   transition: filter 0.3s ease;
}

/* Full color reveal on hover */
.project-card:hover .project-preview {
   filter: grayscale(0%);
}

/* Card body */
.card-body {
   padding: 18px;
}

/* Orange tag */
.project-tag {
   display: inline-block;
   font-size: 0.68em;
   font-weight: 600;
   color: #ff6b00;
   text-transform: uppercase;
   letter-spacing: 0.07em;
   margin-bottom: 6px;
}

/* Project title */
.card-body h4 {
   font-size: 0.97em;
   font-weight: 600;
   color: #f5f5f7;
   margin-bottom: 7px;
   letter-spacing: -0.01em;
}

/* Project description */
.card-body p {
   font-size: 0.81em;
   color: #98989d;
   line-height: 1.55;
}

/* Footer */
footer {
   background-color: #1c1c1e;
   border-top: 1px solid #3a3a3c;
   padding: 24px 40px;
   text-align: center;
   font-size: 0.78em;
   color: #636366;
   line-height: 1.9;
}

/* Responsive */
@media (max-width: 700px) {
   .project-card {
      width: 100%;
   }
   #header-inner {
      flex-direction: column;
      text-align: center;
   }
   #profile-photo {
      width: 110px;
      height: 110px;
   }
   main {
      padding: 36px 20px 50px;
   }
   #intro h2 {
      font-size: 1.8em;
   }
   #chapterSelect {
      min-width: 100%;
   }
   #roadmapPath {
      flex-wrap: wrap;
      justify-content: center;
      gap: 14px;
   }
   #roadmapPath::before {
      display: none;
   }
}