/*
  Custom styles for profile page.
*/

/* Skip Navigation (Accessibility) */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  padding: 0.5rem 1rem;
  background: #ffffff;
  color: #1b1f22;
  z-index: 10000;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0 0 4px 0;
}
.skip-link:focus {
  top: 0;
}

/* Profile picture in header */
#header .logo.profile {
  overflow: hidden;
}
#header .logo.profile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 100%;
  display: block;
}

/* Headline with icon */
.headline-icon {
  margin-right: 0.5rem;
}

/* Skill tags */
.skills-category {
  margin-bottom: 1.5rem;
}
.skills-category h3 {
  font-size: 0.9rem;
  letter-spacing: 0.15rem;
  margin-bottom: 0.5rem;
}
.skill-tag {
  display: inline-block;
  background: rgba(255, 255, 255, 0.075);
  border: solid 1px #ffffff;
  border-radius: 4px;
  padding: 0.2rem 0.75rem;
  margin: 0.2rem 0.15rem;
  font-size: 0.8rem;
  white-space: nowrap;
}

/* Project timeline */
.project-entry {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: solid 1px rgba(255, 255, 255, 0.15);
}
.project-entry:last-child {
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}
.project-entry h3 {
  font-size: 1rem;
  margin-bottom: 0.2rem;
}
.project-entry .org {
  font-size: 0.85rem;
  opacity: 0.8;
  margin-bottom: 0.1rem;
}
.project-entry .date {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.15rem;
  text-transform: uppercase;
  opacity: 0.6;
  margin-bottom: 0.5rem;
}
.project-entry .location {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.1rem;
  text-transform: uppercase;
  opacity: 0.6;
  margin-left: 0.5rem;
}
.project-entry ul.tasks {
  list-style: disc;
  margin: 0.5rem 0 0 0;
  padding-left: 1.25rem;
}
.project-entry ul.tasks li {
  font-size: 0.85rem;
  line-height: 1.6;
  padding-left: 0.25rem;
}

/* Education */
.education-entry {
  margin-bottom: 1rem;
}
.education-entry h3 {
  font-size: 1rem;
  margin-bottom: 0.1rem;
}
.education-entry .institution {
  font-size: 0.85rem;
  opacity: 0.8;
}
.education-entry .date {
  font-size: 0.75rem;
  letter-spacing: 0.1rem;
  text-transform: uppercase;
  opacity: 0.6;
}

/* Contact info list */
.contact-info {
  list-style: none;
  padding-left: 0;
  margin: 0 0 2rem 0;
}
.contact-info li {
  display: flex;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: solid 1px rgba(255, 255, 255, 0.1);
}
.contact-info li:last-child {
  border-bottom: 0;
}
.contact-info li .icon {
  width: 2rem;
  text-align: center;
  flex-shrink: 0;
}
.contact-info li .label {
  display: inline;
  font-weight: 300;
}

/* Certifications */
.cert-entry {
  margin-bottom: 0.75rem;
}
.cert-entry h3 {
  font-size: 0.9rem;
  margin-bottom: 0.1rem;
}
.cert-entry .meta {
  font-size: 0.8rem;
  opacity: 0.7;
}

/* Blockquote in profil */
blockquote.quote {
  border-left-color: rgba(255, 255, 255, 0.5);
  font-style: italic;
  margin: 1.5rem 0;
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  body.is-preload #header {
    filter: none;
  }
  body.is-preload #header > * {
    opacity: 1;
  }
  body.is-preload #header .content .inner {
    max-height: none;
    padding: 3rem 2rem;
    opacity: 1;
  }
}

/* Nav buttons: full width matching the line above */
#header {
  width: 100%;
  max-width: 36rem;
}
#header nav {
  width: 100%;
}
#header nav ul {
  width: 100%;
}
#header nav ul li {
  flex: 1;
  min-width: 0;
}
#header nav ul li a {
  text-align: center;
  min-width: 0;
  padding: 0 0.5rem;
}

/* Print styles */
@media print {
  #bg { display: none; }
  #wrapper { min-height: auto; }
  body { background: #fff; color: #000; }
  #header .content .inner { max-height: none; }
  a { border-bottom: none !important; }
}

/* Small screen adjustments */
@media screen and (max-width: 480px) {
  .skill-tag {
    font-size: 0.75rem;
    padding: 0.15rem 0.5rem;
  }
  .project-entry h3 {
    font-size: 0.9rem;
  }
  .contact-info li {
    font-size: 0.85rem;
  }
}
