/*
  CST8326 Assignment 1 Stylesheet
  This single external CSS file is shared by all website pages.
*/

/* Makes width and height calculations easier to control. */
* {
  box-sizing: border-box;
}

/* Base body styling for the whole website. */
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
  background-color: #030303;
  color: #dce2f2;
}

/* Gives keyboard users a visible focus outline. */
a:focus,
button:focus,
input:focus,
textarea:focus {
  outline: 3px solid #fbbf24;
  outline-offset: 3px;
}

/* Shared header styling. */
.site-header {
  background:
    linear-gradient(rgba(15, 23, 42, 0.65), rgba(15, 23, 42, 0.65)),
    url("../images/Hawaii_2018_upscaled.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: white;
  padding: 0 20px 48px;
  text-align: center;
  min-height: 700px;
}

/* Keeps header content from becoming too wide. */
.header-content {
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* Small label above main headings. */
.eyebrow {
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.85rem;
  font-weight: bold;
  color: #bfdbfe;
}

/* Main heading styling. */
.site-header h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 4rem);
}

/* Subtitle text below the heading. */
.tagline {
  max-width: 760px;
  margin: 14px auto 0;
  font-size: 1.7rem;
}

/* Blinking cursor for the typewriter effect. */
.cursor {
  display: inline-block;
  margin-left: 3px;
  font-weight: bold;
  animation: blink 0.8s infinite;
}

/* Makes the cursor blink on and off. */
@keyframes blink {
  0% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

/* Shared navigation bar. */
.site-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 12px;
  margin-top: 0;
  margin-bottom: 28px;
  background-color: rgba(15, 23, 42, 0.55);
  border-radius: 0 0 18px 18px;
}

/* Navigation links. */
.site-nav a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  padding: 10px 14px;
  border-radius: 999px;
}

/* Navigation hover effect. */
.site-nav a:hover {
  background-color: #1d4ed8;
}

/* Main page wrapper. */
.page-content {
  width: min(1100px, 92%);
  margin: 28px auto;
}

/* Reusable white content card. */
.card {
  background-color: #030303;
  border: 1px solid #dbe3ef;
  border-radius: 18px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
}

/* Hero layout used on the home page. */
.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 24px;
  align-items: center;
  margin-bottom: 24px;
}

/* Larger hero text block. */
.hero-text {
  background-color: white;
  border: 1px solid #dbe3ef;
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
}

/* Profile image card. */
.profile-card {
  margin: 0;
  background-color: white;
  border: 1px solid #dbe3ef;
  border-radius: 18px;
  padding: 18px;
  text-align: center;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
}

/* Keeps images responsive. */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Profile image appearance. */
.profile-card img {
  border-radius: 14px;
  margin: 0 auto 12px;
}

/* Figure caption styling. */
figcaption {
  color: #64748b;
  font-size: 0.92rem;
}

/* Button-looking links. */
.button-link,
button {
  display: inline-block;
  background-color: #1d4ed8;
  color: white;
  border: none;
  border-radius: 999px;
  padding: 11px 18px;
  font-weight: bold;
  text-decoration: none;
  cursor: pointer;
}

/* Button hover effect. */
.button-link:hover,
button:hover {
  background-color: #0f172a;
}

/* Simple two-column layout. */
.two-column {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

/* Lists with better spacing. */
.feature-list {
  padding-left: 22px;
}

/* Removes bullets from contact info style lists. */
.clean-list {
  list-style: none;
  padding-left: 0;
}

/* Resume section spacing. */
.resume-section h2 {
  margin-top: 0;
}

/* Individual resume items. */
.resume-item {
  border-left: 4px solid #1d4ed8;
  padding-left: 16px;
  margin-top: 18px;
}

/* Muted text for dates and locations. */
.muted {
  color: #64748b;
}

/* Skill tag layout. */
.skill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Individual skill tags. */
.skill-grid span {
  background-color: #e0ecff;
  color: #0f172a;
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: bold;
}

/* Project slideshow container. */
#project-container {
  margin-top: 18px;
}

/* Each project must be inside a div with this class. */
.project-card {
  display: none;
  grid-template-columns: 1fr 1.2fr;
  gap: 22px;
  align-items: center;
}

/* JavaScript adds this class to show the current project. */
.project-card.active-project {
  display: grid;
}

/* Project screenshots. */
.project-card img {
  border-radius: 14px;
  border: 1px solid #dbe3ef;
}

/* Project information area. */
.project-details h3 {
  margin-top: 0;
  color: #1d4ed8;
}

/* Slideshow buttons and counter. */
.slideshow-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: 22px;
  flex-wrap: wrap;
}

/* Project counter text. */
#projectCounter {
  font-weight: bold;
  color: #334155;
}

/* Contact form layout. */
form {
  max-width: 700px;
}

/* Individual form rows. */
.form-group {
  margin-bottom: 18px;
}

/* Form labels. */
label {
  display: block;
  margin-bottom: 6px;
  font-weight: bold;
}

/* Form fields. */
input,
textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font: inherit;
}

/* Prevents the message textarea from being resized too small. */
textarea {
  resize: vertical;
  min-height: 150px;
}

/* Validation error text. */
.error-message {
  display: block;
  min-height: 20px;
  color: #b91c1c;
  font-weight: bold;
  margin-top: 4px;
}

/* Form success message. */
.form-result {
  font-weight: bold;
  color: #166534;
}

/* Shared footer styling. */
.site-footer {
  text-align: center;
  background-color: #0f172a;
  color: white;
  padding: 22px;
  margin-top: 40px;
}

/* Tablet and small laptop adjustments. */
@media (max-width: 800px) {
  .hero-grid,
  .two-column,
  .project-card,
  .project-card.active-project {
    grid-template-columns: 1fr;
  }

  .site-nav {
    position: static;
  }
}

/* Phone layout adjustments. */
@media (max-width: 520px) {
  .page-content {
    width: 94%;
  }

  .card,
  .hero-text {
    padding: 18px;
  }

  .site-nav a {
    width: 100%;
    text-align: center;
  }
}

/* About page intro layout with text and circular photo. */
.about-intro {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
  align-items: center;
  margin-bottom: 24px;
}

/* Circular photo container. */
.about-photo {
  margin: 0;
  display: flex;
  justify-content: center;
}

/* Circular profile photo. */
.about-photo img {
  width: 210px;
  height: 210px;
  object-fit: cover;
  border-radius: 50%;
  border: 5px solid white;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.25);
}

.header-test {
  margin-top: 12px;
  color: white;
  font-size: 1.3rem;
  position: relative;
  z-index: 2;
}

/* Shows which page the user is currently viewing. */
.site-nav a.active {
  background-color: white;
  color: #0f172a;
}

/* Creates two columns for hobbies and activities. */
.hobbies-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}