/*
 * Minimalist and responsive styles for the one‑pager portfolio
 * Uses flexbox and simple spacing to look good on both desktop and mobile.
 */

html, body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,
    Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f9f9f9;
}

/* Containers ensure content doesn't stretch too wide on large screens */
.container {
  width: 90%;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  padding: 1rem;
}

header {
  background: #222;
  color: #fff;
  padding: 1.5rem 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

header h1 {
  margin: 0;
  font-size: 2rem;
  font-weight: 600;
}

header .subtitle {
  display: block;
  font-size: 1rem;
  margin-top: 0.25rem;
  opacity: 0.8;
}

header .header-wrapper {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
}

/* Profile photo styling */
.profile-photo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

/* Container for name and subtitle */
.title-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* Language switch navigation */
.lang-switch {
  margin-left: auto;
  font-size: 0.9rem;
}

.lang-switch button {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 0;
  font: inherit;
  text-decoration: underline;
}

.lang-switch button.active {
  font-weight: bold;
  text-decoration: none;
}

main {
  padding: 2rem 0;
}

section {
  margin-bottom: 2rem;
}

section h2 {
  margin-top: 0;
  font-size: 1.5rem;
  border-bottom: 2px solid #222;
  padding-bottom: 0.25rem;
  margin-bottom: 0.75rem;
}

.contact-list, .portfolio-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem 0;
}

.contact-list li, .portfolio-list li {
  margin-bottom: 0.5rem;
}

.contact-list a, .portfolio-list a {
  color: #0066cc;
  text-decoration: none;
}

.contact-list a:hover, .portfolio-list a:hover {
  text-decoration: underline;
}

footer {
  background: #222;
  color: #fff;
  text-align: center;
  padding: 1rem 0;
  font-size: 0.85rem;
}

@media (min-width: 600px) {
  header .header-wrapper {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  header .subtitle {
    margin-left: 1rem;
    margin-top: 0;
  }
  .lang-switch {
    margin-top: 0;
  }
}