@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap");

/* Body and main container styling */
body {
  font-family: "Inter", sans-serif;
  background-color: #f3f4f6; /* Light gray background */
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  margin: 0;
}

.card-container {
  position: relative;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
  max-width: 32rem;
  width: 100%;
  margin: 0 1rem;
  min-height: 100vh;
  border-radius: 1.5rem;
}

.card-container::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: -5;
  background-image: url(../image/bgimage\ cc.jpg);
  background-color: rgba(19, 19, 19, 0.6);
  background-blend-mode: darken;
}

.cover-photo-container {
  height: 12rem;
  position: relative;
  overflow: hidden;
}
.cover-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Main content area */
.main-content {
  padding: 0.5rem;
  margin-top: -4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Profile picture */
.profile-picture {
  width: 8rem;
  height: 8rem;
  border-radius: 9999px;
  border: 4px solid #fff;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
  object-fit: cover;
  z-index: 10;
}

/* Name and title section */
.name-title-section {
  text-align: center;
  margin-top: 0rem;
}
.name {
  font-size: 1.875rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0rem;
}
.title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #e5e7eb;
  margin-top: 0rem;
  margin-bottom: 0rem;
}

/* Contact information section */
.contact-info-section {
  width: 90%;
  padding: 1.75rem;
  margin-top: 3.5rem;
  background-color: #283851;
  border-radius: 0.75rem;
  color: #111827;
}
.contact-info-section div {
  display: flex;
  align-items: center;
  background-color: rgb(235, 235, 235);
  padding: 0.5rem 0.5rem;
  border-radius: 1rem;
}
.contact-info-section div:not(:last-child) {
  margin-bottom: 1.75rem;
}
.contact-info-section svg {
  margin-right: 0.75rem;
  width: 1.25rem;
  height: 1.25rem;
}
.contact-info-section a {
  text-decoration: none; /*remove underline*/
  color: #283851;
  font-size: 1.01rem;
  transition-property: color;
  transition-duration: 200ms;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-info-section a:hover {
  text-decoration: underline;
  color: #4338ca;
}
.contact-info-section a.break-all {
  word-break: break-all;
}

/* Export button */
.export-button {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  background-color: #406aad;
  color: #fff;
  padding: 0.75rem;
  border-radius: 9999px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
  border: none;
  cursor: pointer;
  transition-property: background-color;
  transition-duration: 200ms;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}
.export-button:hover {
  background-color: #4338ca;
}
.export-button:focus {
  outline: none;
  box-shadow: 0 0 0 2px #4f46e5;
}

@media screen and (max-width: 368px) {
  /* Mobile devices */
  .cover-photo-container {
    height: 8rem;
  }
  .contact-info-section a {
    font-size: 0.7rem;
  }

  .export-button {
    bottom: 14rem;
    right: 1rem;
  }
  .contact-info-section {
    width: 100%;
    padding: 2rem 0.2rem;
  }
}
