:root {
  color-scheme: dark;
  --bg: #04060f;
  --bg-accent: #0b0f24;
  --panel: rgba(14, 18, 36, 0.85);
  --panel-soft: rgba(19, 24, 45, 0.9);
  --text: #f5f7fb;
  --muted: #b4bbd5;
  --border: rgba(255, 255, 255, 0.08);
  --accent: #00d4ff;
  --accent-glow: rgba(0, 212, 255, 0.28);
  --shadow: 0 24px 60px rgba(4, 7, 18, 0.75);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --max-width: 960px;
  --transition: 160ms ease;
  font-size: 16px;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background:
    radial-gradient(1200px 700px at 85% -10%, rgba(0, 212, 255, 0.18), transparent 65%),
    radial-gradient(900px 650px at -10% 90%, rgba(90, 64, 255, 0.16), transparent 65%),
    var(--bg);
}

.page {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(3rem, 6vw, 5rem) clamp(1.5rem, 5vw, 3rem);
}

.frame {
  width: min(var(--max-width), 100%);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015)), var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: clamp(2rem, 5vw, 3rem);
  display: grid;
  gap: clamp(1.8rem, 3vw, 2.6rem);
  backdrop-filter: saturate(140%) blur(12px);
}

.profile {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 2.5rem);
  flex-wrap: wrap;
}

.avatar {
  margin: 0;
  width: clamp(140px, 22vw, 220px);
  aspect-ratio: 1;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.identity {
  flex: 1 1 280px;
  min-width: 240px;
  display: grid;
  gap: 0.6rem;
}

.logo {
  width: clamp(220px, 30vw, 360px);
  height: auto;
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.4));
}

.name {
  font-size: clamp(1.8rem, 3.2vw, 2.4rem);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.role {
  font-size: clamp(0.95rem, 1.6vw, 1.1rem);
  color: var(--muted);
}

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.4rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.75rem 1.2rem;
  border-radius: var(--radius-sm);
  background: linear-gradient(145deg, #00d4ff, #3de4ff);
  color: #041020;
  font-weight: 650;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 22px 40px var(--accent-glow);
  transition: transform var(--transition), box-shadow var(--transition);
}

.btn svg {
  width: 20px;
  height: 20px;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 28px 60px rgba(0, 212, 255, 0.38);
  text-decoration: none;
}

.content {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(1.3rem, 4vw, 2rem);
}

.block {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015)), var(--panel-soft);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.07);
  padding: clamp(1.4rem, 4vw, 2rem);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
  display: grid;
  gap: 1rem;
}

.block h2 {
  margin: 0;
  font-size: clamp(1.05rem, 1.8vw, 1.2rem);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #d8def4;
}

.about {
  margin: 0;
  line-height: 1.7;
  font-size: clamp(1rem, 1.4vw, 1.08rem);
  color: #e2e6f3;
}

.meta {
  display: grid;
  gap: 1rem;
}

.row {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.98rem;
}

.row svg {
  width: 22px;
  height: 22px;
  opacity: 0.9;
}

.row a {
  color: #f5f7fb;
  text-decoration: none;
  transition: color var(--transition);
}

.row a:hover,
.row a:focus-visible {
  color: var(--accent);
}

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.9rem;
  align-items: center;
  font-size: 0.9rem;
  color: var(--muted);
}

.social {
  display: flex;
  gap: 0.6rem;
}

.iconbtn {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(10, 14, 28, 0.8);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
  transition: transform var(--transition), border-color var(--transition);
}

.iconbtn:hover,
.iconbtn:focus-visible {
  transform: translateY(-2px);
  border-color: var(--accent);
}

.iconbtn svg {
  width: 22px;
  height: 22px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 860px) {
  .content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  :root {
    font-size: 15px;
  }

  .frame {
    padding: clamp(1.6rem, 6vw, 2.2rem);
  }

  .profile {
    justify-content: center;
    text-align: center;
  }

  .identity {
    justify-items: center;
  }

  .cta {
    justify-content: center;
  }

  .footer {
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 480px) {
  :root {
    font-size: 14px;
  }

  .page {
    padding: clamp(2rem, 10vw, 3rem) clamp(1rem, 6vw, 1.5rem);
  }

  .btn {
    width: 100%;
    justify-content: center;
  }
}

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