@font-face {
  font-family: "Outfit";
  src: url("fonts/Outfit-Variable.ttf") format("truetype-variations"),
       url("fonts/Outfit-Regular.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #070708;
  --bg-elevated: #121214;
  --bg-hover: #1a1a1e;
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.18);
  --text: #f4f4f5;
  --text-muted: #a1a1aa;
  --accent: #5eead4;
  --accent-soft: rgba(94, 234, 212, 0.12);
  --radius: 6px;
  --max: 420px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  color-scheme: dark;
}

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: "Outfit", "Avenir Next", "Segoe UI", sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Atmosphere */
.bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.bg__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
  animation: drift 18s ease-in-out infinite alternate;
}

.bg__orb--1 {
  width: 420px;
  height: 420px;
  top: -12%;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(94, 234, 212, 0.22), transparent 70%);
}

.bg__orb--2 {
  width: 320px;
  height: 320px;
  bottom: 8%;
  right: -8%;
  background: radial-gradient(circle, rgba(148, 163, 184, 0.12), transparent 70%);
  animation-delay: -6s;
}

.bg__orb--3 {
  width: 280px;
  height: 280px;
  bottom: 20%;
  left: -10%;
  background: radial-gradient(circle, rgba(45, 212, 191, 0.08), transparent 70%);
  animation-delay: -12s;
}

.bg__noise {
  position: absolute;
  inset: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px;
}

@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(12px, 18px) scale(1.08); }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse-ring {
  0%, 100% { box-shadow: 0 0 0 0 rgba(94, 234, 212, 0.25); }
  50% { box-shadow: 0 0 0 8px rgba(94, 234, 212, 0); }
}

.page {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--max);
  padding: 3.5rem 1.25rem 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}

.profile {
  text-align: center;
  margin-bottom: 2rem;
  animation: rise 0.7s ease both;
}

.avatar {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  margin: 0 auto 1.25rem;
  padding: 3px;
  background: linear-gradient(145deg, rgba(94, 234, 212, 0.5), rgba(255, 255, 255, 0.15), rgba(148, 163, 184, 0.35));
  animation: pulse-ring 4s ease-in-out infinite;
}

.avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  background: #111;
}

.profile h1 {
  font-size: 1.65rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
  color: var(--text);
}

.bio {
  color: var(--text-muted);
  font-size: 0.98rem;
  font-weight: 400;
  line-height: 1.45;
  max-width: 28ch;
  margin: 0 auto;
}

.links {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  width: 100%;
  min-height: 52px;
  padding: 0.85rem 1rem;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  animation: rise 0.65s ease both;
  position: relative;
}

.link:nth-child(1) { animation-delay: 0.08s; }
.link:nth-child(2) { animation-delay: 0.14s; }
.link:nth-child(3) { animation-delay: 0.2s; }
.link:nth-child(4) { animation-delay: 0.26s; }
.link:nth-child(5) { animation-delay: 0.32s; }

.link:hover {
  background: var(--bg-elevated);
  border-color: var(--border-hover);
  transform: translateY(-1px);
}

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

.link svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  opacity: 0.9;
}

.link span {
  line-height: 1.2;
}

.footer {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--max);
  padding: 1rem 1.25rem 2rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
  opacity: 0.7;
  animation: rise 0.8s ease 0.35s both;
}

.footer a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.footer a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* Contact form */
.form-wrap {
  width: 100%;
  animation: rise 0.7s ease 0.1s both;
}

.form-wrap h1 {
  text-align: center;
  font-size: 1.65rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
}

.form-wrap .lead {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
  font-size: 0.95rem;
}

.back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  transition: color 0.2s;
}

.back:hover {
  color: var(--accent);
}

.back svg {
  width: 16px;
  height: 16px;
}

.form-group {
  margin-bottom: 1.15rem;
}

label {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 500;
}

.required::after {
  content: "*";
  color: #f87171;
  margin-left: 3px;
}

input,
textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: inherit;
  font-size: 16px;
  transition: border-color 0.2s, background 0.2s;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: rgba(94, 234, 212, 0.45);
  background: var(--bg-hover);
}

textarea {
  min-height: 130px;
  resize: vertical;
}

.captcha-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.captcha-q {
  flex: 1;
  color: var(--text);
  font-size: 1rem;
  font-weight: 500;
  padding: 0.85rem 1rem;
  background: var(--accent-soft);
  border: 1px solid rgba(94, 234, 212, 0.2);
  border-radius: var(--radius);
}

.captcha-row input {
  width: 96px;
  flex-shrink: 0;
}

.btn {
  width: 100%;
  min-height: 52px;
  margin-top: 0.5rem;
  padding: 0.9rem 1.15rem;
  background: var(--text);
  border: none;
  border-radius: var(--radius);
  color: var(--bg);
  font-family: inherit;
  font-weight: 600;
  font-size: 0.98rem;
  cursor: pointer;
  transition: transform 0.2s, opacity 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
  opacity: 0.92;
}

.btn:active {
  transform: translateY(0);
}

.error-message {
  color: #f87171;
  margin-top: 0.4rem;
  font-size: 0.85rem;
  display: none;
}

#notification {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 1000;
  max-width: 22rem;
  opacity: 0;
  transform: translateY(-100%);
  transition: all 0.45s ease;
  pointer-events: none;
}

@media (max-width: 480px) {
  .page {
    padding-top: 2.75rem;
  }

  .avatar {
    width: 92px;
    height: 92px;
  }

  .profile h1,
  .form-wrap h1 {
    font-size: 1.45rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
