* {
  margin: 0;
  padding: 0;
}

html {
  background-color: var(--crust);
  color: var(--text);
  scroll-padding-top: 4em;
}

/* Nav Bar */
.navSpacer {
  height: 3em;
}

.navBar {
  background: var(--base);
  display: flex;
  width: 100%;
  position: fixed;
  top: 0;
  height: 3em;
}

.navBar li {
  list-style: none;
}

.navBar li a {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 1em;
  font-size: 1.1em;
  height: 100%;
}

.navBar li a:hover,
.navBar li a.active {
  background-color: var(--mauve);
  color: var(--crust)
}


/* Header */
header {
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--mantle);
  padding: 2em;
  height: 400px;
}

.headerGrid {
  margin: auto;
  display: grid;
  gap: 1em;
  max-width: 800px;
  grid-template-columns: minmax(0, 1.5fr) minmax(120px, 300px);
  grid-template-areas: 
  'titleGroup headShot'
  'headerText headShot';
}

.titleGroup {
  grid-area: titleGroup;
  display: flex;
  align-self: end;
  gap: 0.75rem;
  justify-content: flex-start;
}

#headerText {
  grid-area: headerText;
  margin-top: 0;
  align-self: start;
}

#headerTitle {
  margin: 0;
  justify-self: start;
  align-self: end;
}

#socialLinks {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(1.5rem, 3.5vw, 2.5rem);
  line-height: 1;
}

a {
  color: var(--text);
  text-decoration: none;
}

a:visited {
  color: var(--text);
}

a:hover {
  color: var(--maroon);
}

.disabled {
  display: none;
}

#headShot {
  grid-area: headShot;
  display: block;
  width: min(100%, 300px);
  height: min(100%, 300px);
  max-width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center;
  border-radius: 50%;
  justify-self: center;
  align-self: center;
}

/* About Me Section */
.aboutMe {
  padding: 1em;
}

.gridContainer {
  display: grid;
  gap: 1em;
  justify-items: center;
}

.selectorBar {
  display: flex;
  background-color: var(--base);
  border-radius: 25px;
}

.selector {
  padding: 0.75em;
  border-radius: inherit;
  background-color: inherit;
  cursor: pointer;
}

.selector.selected {
  background-color: var(--surface2);
}

.experience,
.education {
  display: none
}

.experience.selected,
.education.selected {
  display: grid;
  gap: 1em;
}

.job {
  display: grid;
  max-width: 1000px;
  grid-template-columns: 1em 1fr;
  grid-template-rows: auto;
  grid-template-areas: 
    "jobTitle jobTitle"
    "spacer description";
}

.job h2 {grid-area: jobTitle;}
.job p {grid-area: description;}

.job hr {
  grid-area: spacer;
  background-color: var(--text);
  border: none;
  width: 15%;
  justify-self: center;
}

.education article {
  width: 100%;
}

/* Project gird */
.projects-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(540px, 1fr));
  /* background-color: var(--surface0); */
  justify-items: center;
  padding: 1em;
  gap: 1em;
}

.project {
  max-width: 1000px;
  border-radius: 50px;
  padding: 2em;
  display: grid;
  gap: 0.5em;
  justify-items: center;
  background-color: var(--surface2);
}

.projectLinks {
  font-size: clamp(1.5rem, 3.5vw, 2.5rem);
  justify-self: end;
}

.project img {
  width: min(700px, 80%);
  border-radius: inherit;
  height: auto;
}

footer {
  width: 100%;
  background: var(--base);
}

@media (max-width: 600px) {
  header {
    padding: 2em;
    height: auto;
  }

  #headShot {
    height: 250px;
    width: 250px;
  }
  
  .headerGrid {
    margin: auto;
    column-gap: 0;
    grid-template-rows: auto auto auto;
    grid-template-columns: 1fr 0;
    grid-template-areas: 
    'headShot'
    'titleGroup'
    'headerText';
  }
}