:root {
  --peach: #efad9e;
  --peach-light: #f7b9a7;
  --card: #34343d;
  --card-soft: #585665;
  --text: #f7f3f1;
  --muted: #c8c2c7;
  --accent: #f6ad9f;
  --icon-blue: #b8d7e6;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background-color: var(--peach);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='360' height='312' viewBox='0 0 360 312'%3E%3Cg fill='none' stroke='%23d8958b' stroke-width='2' opacity='.28'%3E%3Cpath d='M90 2 178 53v102l-88 51L2 155V53L90 2Z'/%3E%3Cpath d='M270 2 358 53v102l-88 51-88-51V53L270 2Z'/%3E%3Cpath d='M180 106 268 157v102l-88 51-88-51V157l88-51Z'/%3E%3C/g%3E%3Cg fill='%23ffc0ad' opacity='.34'%3E%3Cpath d='M90 2 178 53v102l-88 51L2 155V53L90 2Z'/%3E%3Cpath d='M270 2 358 53v102l-88 51-88-51V53L270 2Z'/%3E%3C/g%3E%3C/svg%3E"),
    linear-gradient(135deg, rgba(255, 203, 184, .2), rgba(218, 130, 126, .12));
  background-size: 360px 312px, cover;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

.page-shell {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: clamp(28px, 7vw, 80px);
}

.profile-card,
.contact-card {
  display: grid;
  width: min(480px, 100%);
  overflow: hidden;
  border-radius: 7px;
  background: linear-gradient(145deg, #383842 0%, #303039 100%);
  box-shadow: 0 24px 50px rgba(73, 58, 64, .2);
}

.profile-card {
  grid-template-columns: 1fr;
}

.profile-content {
  display: flex;
  min-height: 498px;
  flex-direction: column;
  justify-content: center;
  padding: 58px 48px 48px;
}

.profile-avatar {
  display: block;
  width: 112px;
  height: 112px;
  margin-bottom: 22px;
  overflow: hidden;
  border: 3px solid rgba(246, 173, 159, .9);
  border-radius: 50%;
  background: #222;
  box-shadow: 0 12px 24px rgba(24, 24, 30, .18);
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  /* filter: grayscale(1); */
  transition: transform .35s ease;
}

.profile-avatar:hover img,
.profile-avatar:focus-visible img {
  transform: scale(1.045);
}

.eyebrow {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

h1 {
  margin: 0;
  font-size: clamp(34px, 4vw, 40px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: 0;
}

.accent-line {
  width: 70px;
  height: 5px;
  margin: 29px 0 26px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 1px rgba(255, 238, 230, .35);
}

.bio {
  max-width: 370px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.75;
}

.contact-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 0 0 142px;
  min-height: 42px;
  padding: 0 15px 0 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, #666474, #747183);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  box-shadow: 0 12px 22px rgba(24, 24, 30, .14);
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}

.contact-button svg {
  width: 19px;
  height: 19px;
  stroke: var(--accent);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
  fill: none;
}

.contact-button:hover,
.contact-button:focus-visible {
  transform: scale(1.06);
  background: linear-gradient(90deg, #706d7e, #817d91);
  box-shadow: 0 16px 28px rgba(24, 24, 30, .22);
}

.profile-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  width: 100%;
  max-width: 560px;
  margin-top: 32px;
}

.socials {
  display: flex;
  gap: 16px;
  margin-top: 0;
}

.social-link {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  color: #5d606d;
  transition: transform .24s ease, filter .24s ease;
}

.social-link svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.social-link:hover,
.social-link:focus-visible {
  transform: scale(1.15);
  filter: brightness(1.06);
}

.social-github {
  background: #bcd3e3;
}
.social-linkedin {
  background: #ffd8cc;
}
.social-discord {
  background: #ded8ce;
}
.social-x {
  background: #f2f0ed;
}
.social-mail  {
  background: #d8d8e8;
}


.fade-up {
  animation: fadeUp .7s ease both;
}

.eyebrow {
  animation-delay: .05s;
}

h1 {
  animation-delay: .13s;
}

.accent-line {
  animation-delay: .21s;
}

.bio {
  animation-delay: .29s;
}

.profile-avatar {
  animation-delay: .05s;
}

.contact-button {
  animation-delay: .37s;
}

.profile-actions {
  animation-delay: .45s;
}

.contact-card {
  position: relative;
  min-height: 498px;
  padding: 48px;
}

.contact-card.is-success {
  align-content: start;
}

.contact-card .eyebrow {
  margin-bottom: 18px;
}

.contact-card .accent-line {
  margin: 24px 0 0;
}

.back-button {
  position: absolute;
  top: 26px;
  left: 28px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  color: var(--muted);
  transition: transform .24s ease, background .24s ease, color .24s ease;
}

.back-button svg {
  width: 19px;
  height: 19px;
  stroke: var(--accent);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.5;
  fill: none;
}

.back-button:hover,
.back-button:focus-visible {
  transform: scale(1.05);
  background: rgba(255, 255, 255, .13);
  color: var(--text);
}

.contact-heading {
  padding-top: 42px;
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 34px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.contact-form label:nth-child(3),
.contact-form label:nth-child(4) {
  grid-column: 1 / -1;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 6px;
  outline: 0;
  background: rgba(255, 255, 255, .08);
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
  transition: border-color .22s ease, background .22s ease, box-shadow .22s ease;
}

.contact-form input {
  min-height: 48px;
  padding: 0 15px;
}

.contact-form textarea {
  min-height: 130px;
  resize: vertical;
  padding: 13px 15px;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: rgba(246, 173, 159, .75);
  background: rgba(255, 255, 255, .11);
  box-shadow: 0 0 0 3px rgba(246, 173, 159, .12);
}

.submit-button {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  margin-top: 6px;
  padding: 0 22px;
  border-radius: 6px;
  background: linear-gradient(90deg, #666474, #747183);
  color: #fff;
  font-weight: 600;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}

.submit-button svg {
  width: 22px;
  height: 22px;
  stroke: var(--accent);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.3;
  fill: none;
}

.submit-button:hover,
.submit-button:focus-visible {
  transform: scale(1.025);
  background: linear-gradient(90deg, #706d7e, #817d91);
  box-shadow: 0 16px 28px rgba(24, 24, 30, .18);
}

.submit-button:disabled {
  cursor: wait;
  opacity: .72;
  transform: none;
}

.contact-card .back-button {
  animation-delay: .05s;
}

.contact-card .eyebrow {
  animation-delay: .12s;
}

.contact-card h1 {
  animation-delay: .18s;
}

.contact-card .accent-line {
  animation-delay: .24s;
}

.contact-form {
  animation-delay: .3s;
}

.success-message {
  display: none;
  padding-top: 126px;
}

.success-message h1 {
  margin-bottom: 24px;
}

.success-message .accent-line {
  margin: 24px 0 24px;
}

.success-copy {
  max-width: 430px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.7;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    translate: 0 18px;
  }

  to {
    opacity: 1;
    translate: 0 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}

@media (max-width: 720px) {
  .page-shell {
    align-items: start;
    padding: 50px 30px;
  }

  .profile-card {
    grid-template-columns: 1fr;
    width: min(402px, 100%);
  }

  .contact-card {
    width: min(402px, 100%);
    padding: 36px 30px 34px;
  }

  .profile-content {
    min-height: auto;
    padding: 54px 46px 53px;
  }

  .profile-avatar {
    width: 104px;
    height: 104px;
    margin-bottom: 24px;
  }

  .eyebrow {
    margin-bottom: 27px;
    font-size: 16px;
  }

  h1 {
    font-size: clamp(39px, 11vw, 50px);
  }

  .accent-line {
    width: 92px;
    margin: 33px 0 30px;
  }

  .bio {
    max-width: 300px;
    font-size: 18px;
    line-height: 1.78;
  }

  .contact-button {
    flex-basis: 150px;
    min-height: 43px;
    padding: 0 18px;
    font-size: 15px;
  }

  .contact-button svg {
    width: 21px;
    height: 21px;
  }

  .profile-actions {
    gap: 16px;
    margin-top: 36px;
  }

  .socials {
    gap: 12px;
  }

  .social-link {
    width: 43px;
    height: 43px;
  }

  .social-link svg {
    width: 24px;
    height: 24px;
  }

  .back-button {
    position: static;
    justify-self: start;
    margin-bottom: 34px;
  }

  .contact-heading {
    padding-top: 0;
  }

  .contact-form {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .contact-form label {
    font-size: 14px;
  }

  .contact-form input {
    min-height: 52px;
  }

  .submit-button {
    min-height: 58px;
    font-size: 17px;
  }

  .success-message {
    padding-top: 72px;
  }
}

@media (max-width: 560px) {
  .profile-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .contact-button {
    width: 150px;
    align-self: flex-start;
    flex-basis: auto;
  }
}

@media (max-width: 410px) {
  .page-shell {
    padding: 32px 18px;
  }

  .profile-content {
    padding: 56px 34px 44px;
  }

  .bio {
    font-size: 16px;
  }

  .contact-card {
    padding: 28px 24px 30px;
  }
}
