@font-face {
  font-family: "Bebas Neue";
  src: url("fonts/bebas-neue.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: dark;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #090b11;
  color: #eff1f5;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }

body {
  min-width: 280px;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  display: grid;
  place-items: center;
  padding: max(48px, env(safe-area-inset-top)) max(24px, env(safe-area-inset-right)) max(48px, env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left));
  isolation: isolate;
}

.atmosphere,
#background {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

.atmosphere {
  background:
    radial-gradient(ellipse at 24% 58%, #17284666, transparent 60%),
    radial-gradient(ellipse at 83% 24%, #251f3b45, transparent 58%),
    #090b11;
}

#background { opacity: .9; }

.profile {
  text-align: center;
  width: min(100%, 520px);
}

h1 {
  font-family: "Bebas Neue", "Arial Narrow", Impact, sans-serif;
  font-size: clamp(5.25rem, 11vw, 7.75rem);
  line-height: 1;
  font-weight: 400;
  letter-spacing: .13em;
  padding-left: .13em;
  margin: 0;
  color: #f5f6fa;
  text-shadow: 0 0 60px #bdd3ff0d;
}

.name {
  margin: 23px 0 0;
  padding-left: .32em;
  font-size: .875rem;
  line-height: 1.6;
  letter-spacing: .32em;
  font-weight: 400;
  text-transform: uppercase;
  color: #90a5c6;
}

.divider {
  width: 42px;
  height: 1px;
  margin: 36px auto;
  background: linear-gradient(90deg, transparent, #829ec47a, transparent);
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.contact-link {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  min-width: 148px;
  min-height: 48px;
  padding: 12px 24px;
  border: 1px solid #fff;
  border-radius: 3px;
  background: #f1f3f7;
  color: #262e3b;
  font-size: .875rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: .025em;
  text-decoration: none;
  box-shadow: 0 3px 18px #00000012;
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.icon { width: 18px; height: 18px; flex: none; }
.linkedin-icon { width: 16px; height: 16px; color: #2867a1; }

.contact-link:focus-visible {
  outline: 2px solid #abcaff;
  outline-offset: 6px;
}

@media (hover: hover) {
  .contact-link:hover {
    background: #fff;
    transform: translateY(-3px);
    box-shadow: 0 6px 28px #749bcc20;
  }
}

.contact-link:active { transform: translateY(0); }

footer {
  margin-top: 46px;
  font-size: .75rem;
  letter-spacing: .055em;
  line-height: 1.6;
  color: #8490a5;
}

@media (max-width: 380px) {
  body { padding-inline: max(20px, env(safe-area-inset-left)) max(20px, env(safe-area-inset-right)); }
  h1 { font-size: clamp(4.25rem, 22vw, 5.25rem); }
  .contact-links { gap: 12px; }
  .contact-link { min-width: 112px; flex: 1; padding-inline: 16px; }
}

@media (max-height: 500px) {
  body { padding-block: max(24px, env(safe-area-inset-top)) max(24px, env(safe-area-inset-bottom)); }
  h1 { font-size: clamp(3rem, 15svh, 5rem); }
  .name { margin-top: 12px; }
  .divider { margin-block: 16px; }
  footer { margin-top: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .contact-link { transition: none; }
  .contact-link:hover { transform: none; }
}
