/* Components Styles - Combines bio, contact-skills, education-certifications, experience, projects, contact-form */

/* Bio */
.bio {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.bio-portrait {
  border-radius: 50%;
  width: 150px;
  height: 150px;
}

.bio-content {
  display: flex;
  flex-direction: column;
  max-width: 500px;
  gap: 1rem;
  margin: clamp(1rem, 5vw, 5rem) 0;
}

.bio-title {
  font-size: 2rem;
  font-weight: bold;
}

.download-resume-container {
  display: flex;
  gap: 0.5rem;
}

/* Contact-Skills */
#contact-skills {
  display: flex;
  gap: 3rem;
}

.contact-links-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: max-content;
}

@media (max-width: 768px) {
  #contact-skills {
    flex-direction: column;
  }
  .contact-links-container {
    min-width: unset;
  }
}

/* Skills */
.skills {
  width: 100%;
}

.skills h3 {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.skills-list {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.skills-list li {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 0.5rem;
  list-style: none;
  font-size: 0.9rem;
  border: 1px solid var(--border-light-gray);
  padding: 0.5rem;
  border-radius: 0.5rem;
  user-select: none;
  min-width: max-content;
  flex: 1;
}

.skills-list li img {
  width: 30px;
  height: 30px;
  transition: transform 0.2s ease-in-out;
}

.skills-list li:hover {
  background: var(--bg-lighter-gray);
  color: var(--body-text-dark);
}

.skills-list li:hover img {
  transform: scale(1.1);
}

/* Education/Certifications */
#education-certifications {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.education,
.certifications {
  flex: 1 1 300px;
}

/* Experience */
.experience {
  display: flex;
  flex-direction: column;
  padding: 0 0 1rem 0;
  margin-bottom: 1rem;
}

.experience:not(:last-child) {
  border-bottom: 1px solid var(--border-medium-gray);
}

.experience-promoted {
  color: var(--text-gray);
}

.experience h4 {
  margin-top: 1rem;
}

.experience ul {
  padding-left: 2rem;
  margin-top: 0.2rem;
}

.experience li {
  margin-bottom: 0.3rem;
}

/* Projects */
/* Show only first two projects */
#projects-list.collapsed .project:nth-of-type(2) ~ .project {
  display: none;
}

#view-more-button {
  margin: 0 auto;
}

.project {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
}

.project:not(:last-of-type) {
  border-bottom: 1px solid var(--border-medium-gray);
}

.project img {
  width: 100%;
  height: 200px;
  max-width: 300px;
  object-fit: contain;
  border-radius: 0.5rem;
}

.project-info {
  flex: 1 1 400px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.project-info h4 {
  margin-top: 1rem;
}

.project-info ul {
  padding-left: 1rem;
}

.project-links {
  display: flex;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

/* Contact Form */
#contact {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background: var(--bg-light-gray);
  padding: 1.5rem;
  border-radius: 0.5rem;
}

#contact form {
  width: 100%;
}

#contact label {
  font-weight: bold;
}

#contact input,
#contact textarea {
  width: 100%;
  padding: 0.5rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border-medium-gray);
}

#contact textarea {
  resize: vertical;
} 