@import url("./common.css");

header {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 88vh;
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  flex-direction: column;
  padding: 60px 0 40px;
}

.top {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 3.5rem;
  width: 100%;
}

.pic {
  position: relative;
}

.pic img {
  position: relative;
  width: 340px;
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
}

.info {
  color: var(--text);
  max-width: 600px;
}

.prompt {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0 0 0.5rem;
}

.prompt .cmd {
  color: var(--accent);
}

.info h1 {
  font-size: 3rem;
  margin: 0 0 1.25rem;
  color: var(--text);
  line-height: 1.1;
  font-weight: 700;
}

.info h1::after {
  content: "_";
  color: var(--accent);
  animation: blink 1.1s steps(1) infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.desc {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 1.75rem;
  line-height: 1.75;
  max-width: 560px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.tags li {
  font-size: 0.78rem;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 5px 12px;
  background-color: var(--bg-surface);
}

h2 {
  text-align: center;
  font-size: 1.9rem;
  margin-bottom: 2.5rem;
  color: var(--text);
  font-weight: 700;
}

.projects {
  width: 85%;
  max-width: 1100px;
  margin: 0 auto;
  padding-bottom: 80px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 24px;
}

.project {
  overflow: hidden;
  color: var(--text);
  background-color: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.project:hover {
  border-color: var(--accent);
  background-color: var(--bg-surface-hover);
  transform: translateY(-4px);
}

.project h3 {
  margin: 18px 18px 8px;
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 600;
}

.project p {
  margin: 0 18px 20px;
  line-height: 1.65;
  color: var(--text-muted);
  font-size: 0.92rem;
}

@media (max-width: 768px) {
  header {
    width: 95%;
    min-height: auto;
    padding: 110px 0 50px;
  }

  .top {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
    gap: 2rem;
  }

  .pic img {
    width: 200px;
  }

  .tags {
    justify-content: center;
  }

  .projects {
    width: 92%;
  }
}

@media (max-width: 480px) {
  .info h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }
}