:root {
  --bg: #d7eef8;
  --surface: rgba(238, 249, 255, 0.68);
  --surface-strong: rgba(255, 255, 255, 0.82);
  --surface-border: rgba(255, 255, 255, 0.68);
  --text: #0a3157;
  --text-strong: #082b4d;
  --muted: #355d7e;
  --accent: #0e3a5c;
  --accent-strong: #082b4d;
  --accent-soft: rgba(255, 255, 255, 0.72);
  --orange: #ff7b47;
  --shadow: 0 32px 90px rgba(8, 43, 77, 0.26);
  --button-shadow: 0 18px 32px rgba(8, 43, 77, 0.24);
  --radius: 34px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100svh;
  font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
}

body.is-loading {
  overflow: hidden;
}

.loading-overlay {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at center, #ffffff 0%, #dff4ff 100%);
  z-index: 9999;
  transition: opacity 0.45s ease, visibility 0.45s ease;
}

.loading-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loading-text {
  position: relative;
  padding: 0.45rem 0.9rem;
  overflow: hidden;
  color: var(--text-strong);
  font-size: clamp(1.5rem, 2vw, 2rem);
  font-weight: 800;
  letter-spacing: 0.08em;
}

.loading-text::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: linear-gradient(115deg, transparent 20%, rgba(255, 255, 255, 0.95) 50%, transparent 80%);
  transform: translateX(-120%);
  animation: shine 1.45s linear infinite;
}

@keyframes shine {
  to {
    transform: translateX(120%);
  }
}

.hero-shell {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: clamp(18px, 4vw, 48px);
  overflow: hidden;
  isolation: isolate;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(212, 239, 250, 0.12), rgba(52, 111, 144, 0.22)),
    url("https://blogger.googleusercontent.com/img/a/AVvXsEgxNEb_Ze0tqInkWdtJ4Hwefz8ZomBtBRcbBK3vBtbto9chWm6D3pvar6mE4SwKHyI0K8ckKYa4Y2NcO3LkRWLj_voXjRJ_pAO4npwwfiPQ5LDCQtSLcd0FvNZ5-ylBScfpBKZ2JMc9AElQS1f-U-uEkAct3jmF7D8JurH3BqJcgXghjVJLmGI1jSgKcQ=s2560") center center / cover no-repeat;
  transform: scale(1.03);
}

.hero-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.34), transparent 22%),
    radial-gradient(circle at 18% 26%, rgba(255, 255, 255, 0.18), transparent 28%),
    linear-gradient(90deg, rgba(204, 237, 249, 0.18), rgba(255, 255, 255, 0.04), rgba(11, 45, 76, 0.1));
  pointer-events: none;
}

.profile-card {
  position: relative;
  width: min(100%, 720px);
  min-height: 560px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: clamp(34px, 5vw, 56px) clamp(24px, 5vw, 58px);
  text-align: center;
  border: 2px solid var(--surface-border);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.74), rgba(219, 242, 251, 0.56)),
    var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px) saturate(1.15);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
  overflow: hidden;
}

.profile-card::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: calc(var(--radius) - 2px);
  background:
    radial-gradient(circle at 20% 16%, rgba(255, 255, 255, 0.72), transparent 28%),
    radial-gradient(circle at 90% 90%, rgba(255, 255, 255, 0.22), transparent 30%);
  pointer-events: none;
}

.profile-card::after {
  content: "";
  position: absolute;
  top: -20%;
  left: -40%;
  width: 55%;
  height: 150%;
  background: linear-gradient(105deg, transparent 20%, rgba(255, 255, 255, 0.26) 50%, transparent 80%);
  transform: rotate(12deg);
  animation: cardSweep 7s ease-in-out infinite;
  pointer-events: none;
}

@keyframes cardSweep {

  0%,
  42% {
    transform: translateX(-45%) rotate(12deg);
    opacity: 0;
  }

  52% {
    opacity: 1;
  }

  72%,
  100% {
    transform: translateX(290%) rotate(12deg);
    opacity: 0;
  }
}

.avatar-link,
.identity,
.home-actions,
.social-links {
  position: relative;
  z-index: 1;
}

.avatar-link {
  width: clamp(112px, 11vw, 142px);
  height: clamp(112px, 11vw, 142px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  border: 8px solid rgba(255, 255, 255, 0.9);
  box-shadow:
    0 20px 36px rgba(8, 43, 77, 0.14),
    inset 0 0 0 1px rgba(8, 43, 77, 0.04);
  text-decoration: none;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.avatar-link:hover,
.avatar-link:focus-visible {
  transform: translateY(-5px) scale(1.02);
  box-shadow:
    0 26px 48px rgba(8, 43, 77, 0.2),
    inset 0 0 0 1px rgba(8, 43, 77, 0.06);
}

.avatar {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 999px;
  object-fit: cover;
}

.identity {
  margin-top: 26px;
}

.eyebrow {
  width: fit-content;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 auto 18px;
  padding: 8px 18px;
  color: var(--accent);
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  box-shadow: 0 12px 24px rgba(8, 43, 77, 0.08);
  font-size: clamp(0.78rem, 1.4vw, 0.9rem);
  font-weight: 850;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.eyebrow span {
  width: 10px;
  height: 10px;
  display: inline-block;
  border-radius: 999px;
  background: var(--orange);
  box-shadow: 0 0 0 6px rgba(255, 123, 71, 0.16);
}

h1 {
  margin: 0;
  color: var(--text-strong);
  font-size: clamp(3.3rem, 7vw, 5.1rem);
  line-height: 0.95;
  font-weight: 900;
  letter-spacing: -0.065em;
  text-shadow: 0 12px 28px rgba(8, 43, 77, 0.14);
}

.role {
  position: relative;
  width: fit-content;
  margin: 14px auto 0;
  color: #4b75a3;
  font-size: clamp(1rem, 2vw, 1.18rem);
  font-weight: 760;
}

.role::before,
.role::after {
  content: "";
  position: absolute;
  top: 50%;
  width: clamp(42px, 8vw, 84px);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(75, 117, 163, 0.28));
}

.role::before {
  right: calc(100% + 16px);
}

.role::after {
  left: calc(100% + 16px);
  transform: rotate(180deg);
}

.bio {
  max-width: 50ch;
  margin: 28px auto 0;
  color: #2a4f6d;
  font-size: clamp(1rem, 1.8vw, 1.13rem);
  line-height: 1.72;
  font-weight: 520;
}

.home-actions {
  width: min(100%, 510px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 34px;
}

.button {
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 22px;
  border-radius: 16px;
  color: var(--text);
  text-decoration: none;
  font-size: clamp(0.98rem, 1.5vw, 1.08rem);
  font-weight: 820;
  transition:
    transform 0.24s ease,
    box-shadow 0.24s ease,
    background-color 0.24s ease,
    color 0.24s ease,
    border-color 0.24s ease;
}

.button svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.button-primary {
  color: #ffffff;
  background: linear-gradient(135deg, #0e4267, #082d4d);
  box-shadow: var(--button-shadow);
}

.button-primary:hover,
.button-primary:focus-visible {
  color: #ffffff;
  background: linear-gradient(135deg, #123f61, #061f37);
  box-shadow: 0 22px 40px rgba(8, 43, 77, 0.32);
}

.button-secondary {
  color: var(--accent);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.78);
  box-shadow: 0 14px 26px rgba(8, 43, 77, 0.08);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  color: #ffffff;
  background: linear-gradient(135deg, #244e70, #123756);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 36px rgba(8, 43, 77, 0.22);
}

.social-links {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 34px 0 0;
  padding: 0;
}

.social-links a {
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--accent);
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow:
    0 14px 26px rgba(8, 43, 77, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.68);
  text-decoration: none;
  transition:
    transform 0.24s ease,
    background-color 0.24s ease,
    color 0.24s ease,
    box-shadow 0.24s ease;
}

.social-links a:hover,
.social-links a:focus-visible {
  transform: translateY(-5px);
  color: #ffffff;
  background: #0e3a5c;
  box-shadow: 0 18px 34px rgba(8, 43, 77, 0.22);
}

.social-links svg {
  width: 23px;
  height: 23px;
  fill: currentColor;
}

.avatar-link:focus-visible,
.button:focus-visible,
.social-links a:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.76);
  outline-offset: 4px;
}

body.has-motion [data-reveal] {
  opacity: 0;
  filter: blur(8px);
  transition:
    opacity 0.78s cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay, 0ms),
    transform 0.78s cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay, 0ms),
    filter 0.78s cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay, 0ms);
  will-change: opacity, transform, filter;
}

body.has-motion [data-reveal].is-visible {
  opacity: 1;
  filter: blur(0);
  transform: none;
}

body.has-motion [data-reveal="fade-up"] {
  transform: translateY(24px);
}

body.has-motion [data-reveal="pop"] {
  transform: translateY(28px) scale(0.96);
}

body.has-motion [data-reveal="scale-in"] {
  transform: translateY(12px) scale(0.88);
}

@media (max-width: 900px) {
  .hero-backdrop {
    background-position: 58% center;
  }

  .profile-card {
    width: min(100%, 640px);
    min-height: auto;
  }
}

@media (max-width: 640px) {
  .hero-shell {
    min-height: 100svh;
    align-items: center;
    padding: 16px;
  }

  .hero-backdrop {
    background-position: 63% center;
    transform: scale(1.04);
  }

  .hero-shell::before {
    background:
      radial-gradient(circle at 50% 34%, rgba(255, 255, 255, 0.34), transparent 32%),
      linear-gradient(180deg, rgba(210, 239, 250, 0.14), rgba(8, 43, 77, 0.12));
  }

  .profile-card {
    width: 100%;
    padding: 30px 20px 26px;
    border-radius: 28px;
  }

  .identity {
    margin-top: 22px;
  }

  .eyebrow {
    margin-bottom: 16px;
    padding: 7px 15px;
  }

  h1 {
    font-size: clamp(2.85rem, 14vw, 4rem);
    letter-spacing: -0.06em;
  }

  .role {
    max-width: 100%;
    margin-top: 12px;
    font-size: 1rem;
  }

  .role::before,
  .role::after {
    display: none;
  }

  .bio {
    margin-top: 20px;
    max-width: 31ch;
    font-size: 0.98rem;
    line-height: 1.68;
  }

  .home-actions {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 26px;
  }

  .button {
    width: 100%;
    min-height: 56px;
  }

  .social-links {
    gap: 14px;
    margin-top: 26px;
    flex-wrap: wrap;
  }

  .social-links a {
    width: 50px;
    height: 50px;
  }
}

@media (max-width: 380px) {
  .profile-card {
    padding: 26px 16px 22px;
  }

  .avatar-link {
    width: 104px;
    height: 104px;
    border-width: 7px;
  }

  h1 {
    font-size: 2.65rem;
  }

  .button {
    font-size: 0.94rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .profile-card::after {
    animation: none;
  }

  body.has-motion [data-reveal] {
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
    transition: none !important;
  }

  .avatar-link,
  .button,
  .social-links a {
    transition: none;
  }
}