* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background: #f5f7fa;
  color: #222;
  line-height: 1.6;
}

.hero {
  background: #243b6b;
  color: white;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;

  padding: 4rem 2rem;
}

.profile-photo {
  width: 220px;
  height: 220px;
  object-fit: cover;

  border-radius: 10%;
  border: 5px solid white;

  flex-shrink: 0;
}

.hero-text {
  max-width: 600px;
}

.hero-text h1 {
  font-size: 3rem;
  margin-bottom: 0.75rem;
}

.hero-text p {
  font-size: 1.25rem;
  opacity: 0.9;
}

.hero h1 {
  font-size: 2.8rem;
  margin-bottom: .5rem;
}

.hero p {
  font-size: 1.2rem;
  opacity: .9;
}

.projects {
  max-width: 1100px;
  margin: 4rem auto;
  padding: 0 1rem;
}

.projects h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2rem;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.project-card {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 8px 20px rgba(0,0,0,.08);
}

.project-card h3 {
  margin-bottom: 1rem;
}

.project-card p {
  margin-bottom: 1.5rem;
  color: #555;
}

.project-card a {
  color: #243b6b;
  font-weight: bold;
  text-decoration: none;
}

.project-card a:hover {
  text-decoration: underline;
}

@media (max-width: 700px) {
  .hero {
    flex-direction: column;
    text-align: center;
  }

  .profile-photo {
    width: 180px;
    height: 180px;
  }
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.button {
  display: inline-block;
  padding: 0.8rem 1.5rem;

  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;

  transition: 0.2s;
}

.button.primary {
  background: #f6c343;
  color: #222;
}

.button.primary:hover {
  background: #ffd55c;
}

.button.secondary {
  background: white;
  color: #243b6b;
}

.button.secondary:hover {
  background: #ececec;
}