
/* Navigation */
nav {
    display: flex;
    align-items: center;
    margin-bottom: 40px;
}

.nav-links a {
  font-size: 85%;
  line-height: 100%;
  display: inline;
  border-bottom: 0.5px solid rgb(180, 180, 180);
  padding-bottom: 1px;
}

.nav-links a:hover {
  border-bottom: 1.5px solid rgba(150, 150, 150, 1.0);
  padding-bottom: 0;
}

.nav-name {
  justify-content: space-between;
}

.nav-links {
  display: flex;
  gap: 20px;
  margin-left: auto;
}

/* Main Content */
.header-content {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.about-container {
  margin: 20px 80px;
}

/* About Section */
.about-section h2 {
  margin-bottom: 20px;
}

.about-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.about-content-row {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

/* Skills Section */
.skills-section h2 {
  margin-bottom: 20px;
}

.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.skill-item {
  white-space: nowrap;
  font-size: 85%;
  line-height: 160%;
  font-weight: 300;
  /* text-align: justify;
  text-justify: inter-word; */
  color: var(--r-text);
  opacity: 0.8;
}

/* Work History Section */
.work-section h2 {
  margin-bottom: 20px;
}

.work-grid {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.work-item {
  display: flex;
  gap: 12px;
}

.work-company {
  letter-spacing: 0;
  width: 100px;
  font-size: 85%;
  line-height: 160%;
  font-weight: 400;
  /* text-align: justify;
  text-justify: inter-word; */
  color: var(--r-text);
}

.work-year {
  flex-grow: 3;
  white-space: nowrap;
  font-size: 85%;
  line-height: 160%;
  font-weight: 300;
  /* text-align: justify;
  text-justify: inter-word; */
  color: var(--r-text);
  opacity: 0.8;
}

@media (min-width: 651px) {
 .skills-grid {
   display: grid;
   grid-template-columns: repeat(3, 1fr);
   gap: 8px 40px;
 }

 .work-grid {
   display: grid;
   grid-template-columns: repeat(3, 1fr);
   gap: 8px 40px;
 }
}

@media (max-width: 650px) {
  .about-container {
    margin: 80px 20px;
    margin: 0 auto;
  }
  .about-details {
    display: flex;
    flex-direction: column;
    gap: 40px;
  }
  .about-content-row {
    display: flex;
    flex-direction: columns;
    gap: 30px;
  }
  .about-content-row p {
    width: 100%;
    letter-spacing: 0;
  }
  .work-section {
    width: 100%;
  }
  .work-company {
    width: 75px;
  }
  .skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px 40px;
  }

  .work-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px 40px;
  }
}


/* Mobile styles (default) */
@media (max-width: 950px) {

  nav {
    flex-direction: row;
    justify-content: space-between;
    gap: 8px;
  }
  
  .about-details {
    display: flex;
    flex-direction: column;
    gap: 40px;
  }
  
  .about-container {
    width: 90%;
    padding: 60px 20px;
    margin: 0 auto;
  }
  
  .about-content {
    max-width: 800;
  }
  
  .about-content-row {
    display: flex;
    flex-direction: column;
    gap: 30px;
  }
  
  .about-content-row p {
    width: 100%;
    letter-spacing: 0;
  }

  .nav-links {
    margin-left: 0;
  }

  .work-item {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* Desktop styles */
@media (min-width: 951px) {

  nav {
    flex-direction: row;
    margin-bottom: 60px;
    justify-content: space-between;
  }
  
  .about-container {
    width: 90%;
    max-width: 1000px;
    margin: 0 auto;
  }

  .content {
    gap: 60px;
  }

  .about-content {
    max-width: 1000;
  }
  
  .about-content-row {
    display: flex;
    flex-direction: row;
    gap: 30px;
  }
  
  .about-content-row p {
    width: 50%;
  }
  
  .about-details {
    display: flex;
    flex-direction: row;
    gap: 40px;
    width: 100%;
  }
  
  .skills-section {
    width: 50%;
  }

  .skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px 40px;
  }

  .skill-item {
    min-width: auto;
  }
  
  .work-section {
    width: 50%;
  }

  .work-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px 40px;
  }

  .work-item {
    flex-direction: row;
    gap: 4px;
  }

  .work-year {
  }
}
