* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", Arial,
    sans-serif;
  line-height: 1.6;
  color: #111;
  background: #ffffff;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 24px;
}

.intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid #eee;
}

.intro-text h1 {
  margin: 0;
  font-size: 40px;
  letter-spacing: -0.02em;
}

.subtitle {
  margin: 8px 0 0 0;
  font-size: 20px;
  color: #555;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  color: #333;
  text-decoration: none;
}

.contact-link:hover {
  text-decoration: underline;
}

.contact-link::before {
  content: "✉";
  font-size: 32px;
  line-height: 1;
}

.social-links {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  color: #222;
  text-decoration: none;
  background: #fafafa;
  transition: background 0.2s ease, transform 0.05s ease;
}

.social-btn:hover {
  background: #f0f0f0;
}

.social-btn:active {
  transform: translateY(1px);
}

.social-btn svg {
  width: 20px;
  height: 20px;
}

.intro-photo img {
  width: 240px;
  height: 240px;
  object-fit: cover;
  object-position: center top;
  border-radius: 12px;
  border: 1px solid #e5e5e5;
}

section {
  padding: 24px 0;
  border-bottom: 1px solid #eee;
}

h2 {
  margin: 0 0 12px 0;
  font-size: 24px;
}

.cv-actions {
  margin: 12px 0 8px 0;
}

.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: #fafafa;
  color: #333;
  border-radius: 10px;
  text-decoration: none;
  border: 1px solid #e5e5e5;
  box-shadow: 0 1px 0 rgba(0,0,0,0.06);
}

.download-btn:hover {
  background: #f0f0f0;
}

.download-btn svg {
  width: 20px;
  height: 20px;
}

.projects {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.footer {
  padding: 24px 0;
  color: #666;
  font-size: 14px;
}

@media (max-width: 720px) {
  .intro {
    flex-direction: column;
    align-items: flex-start;
  }

  .intro-photo img {
    width: 160px;
    height: 160px;
  }
}