﻿:root {
  --background: radial-gradient(circle at 15% 15%, #1f2941 0%, #0d111f 55%, #05060b 100%);
  --card: rgba(16, 21, 34, 0.9);
  --surface: rgba(15, 19, 31, 0.92);
  --surface-soft: rgba(24, 29, 46, 0.85);
  --primary: #5f6cff;
  --primary-strong: #4c59ff;
  --primary-soft: rgba(95, 108, 255, 0.18);
  --text-primary: #f6f7ff;
  --text-secondary: #c4c8db;
  --border: rgba(255, 255, 255, 0.08);
  --shadow: 0 28px 70px rgba(6, 8, 16, 0.55);
  --radius-large: 36px;
  --radius-medium: 28px;
  --radius-small: 18px;
  --font-heading: 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  background: var(--background);
  color: var(--text-primary);
  display: flex;
  justify-content: center;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
 h2,
 h3 {
  font-family: var(--font-heading);
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

p {
  margin: 0;
  color: var(--text-secondary);
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid rgba(95, 108, 255, 0.45);
  outline-offset: 3px;
}

main.page {
  width: min(960px, 92vw);
  margin: clamp(2.75rem, 6vw, 4rem) auto 5.5rem;
  display: flex;
  flex-direction: column;
  gap: clamp(2.8rem, 5vw, 3.8rem);
}

.hero {
  display: flex;
  justify-content: center;
}

.profile-card {
  background: var(--card);
  backdrop-filter: blur(26px);
  border-radius: var(--radius-large);
  padding: clamp(2.2rem, 6vw, 3.2rem) clamp(1.75rem, 6vw, 3.2rem);
  box-shadow: var(--shadow);
  display: grid;
  justify-items: center;
  gap: 1.6rem;
  border: 1px solid var(--border);
}

.avatar-frame {
  display: inline-flex;
  padding: 6px;
  border-radius: 50%;
  background: linear-gradient(140deg, #4e5bff, #8a68ff 60%, #46c4ff);
}

.avatar {
  width: clamp(148px, 32vw, 188px);
  height: clamp(148px, 32vw, 188px);
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

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

.name {
  margin: 0;
  font-size: clamp(2rem, 4vw, 2.55rem);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.badge svg {
  width: 1.55rem;
  height: 1.55rem;
}

.badge circle {
  fill: var(--primary);
}

.badge path {
  fill: none;
  stroke: var(--text-primary);
  stroke-width: 1.95;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.roles {
  margin-top: 0.35rem;
  font-size: 1.05rem;
  font-weight: 400;
}

.handle {
  margin-top: 0.35rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-primary);
}

.socials {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.social-link {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  transition: transform 0.22s ease, background 0.22s ease;
}

.social-link svg {
  width: 22px;
  height: 22px;
  stroke: var(--text-primary);
  stroke-width: 1.75;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.social-link:hover,
.social-link:focus-visible {
  background: rgba(95, 108, 255, 0.22);
  transform: translateY(-2px);
}

.about .pill {
  background: var(--surface);
  padding: clamp(1.9rem, 3.8vw, 2.6rem) clamp(1.8rem, 4vw, 3rem);
  border-radius: var(--radius-medium);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  display: grid;
  gap: 0.9rem;
}

.about h2 {
  margin: 0;
  font-size: clamp(1.45rem, 3vw, 1.8rem);
  font-weight: 600;
}

.about p {
  font-size: 1.02rem;
  line-height: 1.65;
}

.insights {
  background: var(--surface);
  border-radius: var(--radius-large);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: clamp(2.2rem, 4.2vw, 2.9rem);
  display: grid;
  gap: 1.8rem;
}

.insights-header h2 {
  margin: 0;
  font-size: clamp(1.55rem, 3.5vw, 1.95rem);
  font-weight: 600;
}

.insights-header p {
  margin-top: 0.6rem;
  line-height: 1.6;
}

.carousel {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.1rem;
}

.carousel-viewport {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.carousel-viewport::-webkit-scrollbar {
  display: none;
}

.carousel-track {
  display: flex;
  gap: clamp(1.1rem, 3vw, 1.9rem);
  padding: 0 0.35rem;
}

.insight-card {
  min-width: clamp(260px, 70vw, 320px);
  background: linear-gradient(135deg, rgba(95, 108, 255, 0.2), rgba(80, 196, 255, 0.12));
  border-radius: 26px;
  padding: clamp(1.45rem, 4vw, 1.85rem);
  scroll-snap-align: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  gap: 0.9rem;
}

.insight-card h3 {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 600;
}

.insight-card p {
  font-size: 0.98rem;
  line-height: 1.6;
}

.carousel-nav {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.9rem;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, opacity 0.2s ease;
}

.carousel-nav span {
  transform: translateY(-1px);
}

.carousel-nav:hover,
.carousel-nav:focus-visible {
  background: rgba(95, 108, 255, 0.22);
  transform: translateY(-2px);
}

.carousel-nav:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

.contact {
  display: flex;
  justify-content: center;
}

.contact-card {
  width: min(720px, 100%);
  background: var(--surface-soft);
  border-radius: 32px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
  backdrop-filter: blur(20px);
}

.contact-card__header {
  padding: clamp(1.75rem, 4vw, 2.4rem) clamp(1.8rem, 4vw, 2.6rem) clamp(1.4rem, 3vw, 1.8rem);
  background: linear-gradient(140deg, rgba(24, 29, 46, 0.92), rgba(15, 19, 31, 0.95));
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
}

.contact-card__header h2 {
  margin: 0;
  font-size: clamp(1.45rem, 3vw, 1.8rem);
  font-weight: 600;
}

.contact-card__header p {
  margin-top: 0.6rem;
  font-size: 0.98rem;
}

.contact-form {
  display: grid;
  gap: 1.1rem;
  padding: clamp(1.9rem, 4vw, 2.6rem);
  background: linear-gradient(180deg, rgba(18, 22, 33, 0.96), rgba(9, 12, 20, 0.94));
}

.field {
  display: grid;
}

.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;
}

input,
textarea {
  font-family: var(--font-body);
  font-size: 0.98rem;
  padding: 0.95rem 1.15rem;
  border-radius: var(--radius-small);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  transition: border 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: rgba(245, 247, 255, 0.55);
}

input:focus,
textarea:focus {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(95, 108, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(95, 108, 255, 0.22);
}

textarea {
  min-height: 144px;
}

.consent {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.consent input {
  width: 18px;
  height: 18px;
  margin-top: 0.25rem;
  accent-color: var(--primary);
}

button[type='submit'] {
  margin-top: 0.4rem;
  border: none;
  border-radius: 999px;
  padding: 0.95rem 1.6rem;
  font-size: 1rem;
  font-weight: 600;
  color: #070913;
  background: linear-gradient(120deg, #f6f7ff, #cfd5ff 70%, #ffffff);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

button[type='submit']:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(95, 108, 255, 0.3);
}

button[type='submit']:disabled {
  cursor: wait;
  opacity: 0.7;
  transform: none;
  box-shadow: none;
}

.contact-status {
  min-height: 1.2rem;
  font-size: 0.85rem;
  color: rgba(119, 197, 255, 0.9);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.contact-status.is-visible {
  opacity: 1;
}

.contact-status.is-error {
  color: #ff8080;
}

.contact-hint {
  font-size: 0.8rem;
  color: rgba(196, 200, 219, 0.65);
  margin-top: -0.3rem;
}

@media (max-width: 820px) {
  .profile-card {
    border-radius: 30px;
  }

  .socials {
    gap: 0.8rem;
  }

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

  .contact-card {
    border-radius: 26px;
  }
}

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

  .carousel-nav {
    display: none;
  }

  .carousel-track {
    padding: 0.3rem 0.4rem 0.6rem;
  }
}

@media (max-width: 520px) {
  main.page {
    width: min(96vw, 560px);
    margin-top: 2.2rem;
  }

  .profile-card {
    padding: 2rem 1.6rem;
  }

  .roles {
    font-size: 1rem;
  }

  .handle {
    font-size: 0.95rem;
  }

  .about .pill {
    padding: 1.7rem 1.4rem;
  }

  .contact-form {
    padding: 1.6rem 1.4rem 2rem;
  }

  textarea {
    min-height: 132px;
  }
}

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