body {
  background: #000;
  overflow: hidden;
  height: 90vh;
  display: grid;
  place-items: center;
  font-family: "Montserrat", "Work Sans", sans-serif;
}
/* Main card */
.main-card {
  background-color: white;
  border-radius: 10px;
  gap: 2rem;
  padding: 2rem;
}
.main-content {
  display: flex;
  flex-direction: row;
  row-gap: 0.5rem;
  column-gap: 1.5rem;
}
.avatar {
  width: 9rem;
  height: 9rem;
  border-radius: 50%;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  margin-bottom: 0.75rem;
}
.info {
  display: flex;
  flex-direction: column;
  row-gap: 0.25rem;
}
.name {
  font-size: 2rem;
  font-weight: 700;
  color: #222;
  margin: 0;
}
.role {
  font-size: 1.125rem;
  color: #1173d4;
  margin: 0.25rem 0 0.5rem 0;
}
.email {
  font-size: 0.95rem;
  color: #555;
  text-decoration: none;
  cursor: pointer;
}
.connect {
  margin-top: 0.5rem;
}
.connect-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}
.connect-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.company-link {
  color: inherit;
  text-decoration: underline;
  font-weight: 500;
}
/* About Me Card */
.aboutme-card {
  display: none;
  background-color: white;
  border-radius: 10px;
  max-width: 60vw;
  max-height: 75vh;
  overflow-y: scroll;
}
.aboutme-content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.aboutme-header {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.aboutme-info {
  flex: 1;
}
.aboutme-title {
  font-size: 2rem;
  font-weight: 700;
  color: #222b3a;
  margin: 0 0 0.7rem 0;
}
.aboutme-desc {
  color: #374151;
  font-size: 1.08rem;
  line-height: 1.7;
  margin: 0;
}
.aboutme-divider {
  border: none;
  border-top: 1px solid #e5e7eb;
  margin: 0.5rem 0 0.5rem 0;
}
.aboutme-tech-section {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.aboutme-tech-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #222b3a;
  margin: 0 0 0.5rem 0;
}
.aboutme-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.aboutme-tag {
  background: #f3f4f6;
  color: #374151;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 0.7rem;
  padding: 0.35rem 1.1rem;
  margin-bottom: 0.2rem;
  display: inline-block;
}
/* Projects card */
.projects-card {
  background-color: white;
  border-radius: 10px;
  max-width: 70vw;
  max-height: 75vh;
  overflow-y: scroll;
  display: none;
}
.projects-main {
  padding: 2rem 2rem 1rem 2rem;
}
.projects-list {
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
  flex-wrap: wrap;
  row-gap: 2rem;
  column-gap: 2rem;
  margin-bottom: 2.5rem;
}
.projects-showcase-card {
  max-width: 260px;
  justify-items: stretch;
}
.projects-image {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  margin-bottom: 0.7rem;
}
.projects-header {
  text-align: center;
  margin-top: 0;
  padding: 0 1rem;
}
.projects-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: #222b3a;
  margin-bottom: 0.5rem;
}
.projects-subtitle {
  font-size: 1.15rem;
  color: #6b7280;
  margin: 0 auto 0.5rem auto;
  max-width: 36rem;
}
.projects-section-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: #222b3a;
  text-align: center;
  margin-bottom: 2.5rem;
}
.projects-project-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #222b3a;
  margin: 0 0 0.3rem 0;
}
.projects-project-desc {
  color: #374151;
  font-size: 1rem;
  margin: 0 0 0.7rem 0;
  min-height: 2.5em;
}
.projects-links {
  display: flex;
  gap: 1.2rem;
  margin-top: 0.5rem;
}
.projects-link-visit {
  color: #1173d4;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  transition: color 0.2s;
}
/* common */
.actions {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 1.5rem;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 10;
  padding: 1rem 0 1rem 1rem;
}
.action-shadow {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.btn {
  display: flex;
  align-items: center;
  justify-items: center;
  font-size: 0.8rem;
  font-weight: 500;
  border-radius: 0.3rem;
  text-decoration: none;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #222b3a;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}
.btn-small {
  padding: 0.4rem 1.2rem;
}
.btn-big {
  font-weight: 600;
  padding: 0.7rem 1.6rem;
}
.btn-black {
  background: #222b3a;
  color: #fff;
  border: 1px solid #222b3a;
}
.btn.linkedin {
  background: #f3f4f6;
  color: #222;
}
.btn.github {
  background: #222;
  color: #fff;
}
.btn.projects {
  background: #1173d4;
  color: #fff;
}
.btn.download {
  background: #22c55e;
  color: #fff;
}

@media (max-width: 850px) {
  .aboutme-header {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
  }
}

@media (max-width: 650px) {
  .main-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

@media (max-width: 450px) {
  .aboutme-card,
  .aboutme-card,
  .projects-card {
    max-width: 95vw;
    max-height: 85vh;
  }
  .main-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .connect-links {
    justify-content: center;
  }
  .info {
    align-items: center;
  }
  .actions {
    gap: 1rem;
    padding: 1rem;
  }
}
