:root {
  --bg: #0f172a;
  --surface: rgba(255, 255, 255, 0.88);
  --surface-border: rgba(255, 255, 255, 0.55);
  --text: #0f172a;
  --muted: #475569;
  --accent: #f97316;
  --accent-soft: rgba(249, 115, 22, 0.14);
  --shadow: 0 24px 70px rgba(15, 23, 42, 0.28);
  --radius: 28px;
}

* {
  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: linear-gradient(180deg, #d7eef8 0%, #c8e8f4 100%);
}

body.is-loading {
  overflow: hidden;
}

.loading-overlay {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at center, #ffffff 0%, #eff6ff 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;
  font-size: clamp(1.5rem, 2vw, 2rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #111827;
  overflow: hidden;
  padding: 0.4rem 0.8rem;
}

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

body.has-motion [data-reveal] {
  opacity: 0;
  filter: blur(8px);
  transition:
    opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay, 0ms),
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay, 0ms),
    filter 0.8s 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(26px) scale(0.96);
}

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

.hero-shell {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 24px;
  isolation: isolate;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 23, 47, 0.08), rgba(7, 23, 47, 0.26)),
    url("https://blogger.googleusercontent.com/img/a/AVvXsEgxNEb_Ze0tqInkWdtJ4Hwefz8ZomBtBRcbBK3vBtbto9chWm6D3pvar6mE4SwKHyI0K8ckKYa4Y2NcO3LkRWLj_voXjRJ_pAO4npwwfiPQ5LDCQtSLcd0FvNZ5-ylBScfpBKZ2JMc9AElQS1f-U-uEkAct3jmF7D8JurH3BqJcgXghjVJLmGI1jSgKcQ=s2560") center center / cover no-repeat;
  transform: scale(1.02);
}

.hero-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.32), transparent 30%),
    radial-gradient(circle at 80% 22%, rgba(255, 255, 255, 0.18), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(15, 23, 42, 0.18));
}

.profile-card {
  position: relative;
  z-index: 1;
  width: min(100%, 430px);
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  text-align: center;
  padding: 32px 28px 28px;
}

.avatar-link {
  display: inline-flex;
  width: 138px;
  height: 138px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(255,255,255,0.65));
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.15);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.avatar-link:hover,
.avatar-link:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.18);
}

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

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

.identity {
  margin-top: 22px;
}

.eyebrow {
  margin: 0;
  color: var(--accent);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  margin: 10px 0 8px;
  font-size: clamp(2rem, 4vw, 2.6rem);
  line-height: 1.05;
}

.role {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: #1e293b;
}

.bio {
  margin: 16px auto 0;
  max-width: 32ch;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.7;
}

.home-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 16px;
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background-color 0.22s ease, color 0.22s ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 14px 24px rgba(249, 115, 22, 0.28);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: #ea580c;
}

.button-secondary {
  background: var(--accent-soft);
  color: #c2410c;
}

.button-secondary:hover,
.button-secondary:focus-visible {
  background: rgba(249, 115, 22, 0.2);
}

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

.social-links a {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.75);
  color: #0f172a;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08);
  transition: transform 0.22s ease, background-color 0.22s ease, color 0.22s ease;
}

.social-links a:hover {
  transform: translateY(-3px);
  background: #0f172a;
  color: #ffffff;
}

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

@media (max-width: 560px) {
  .hero-shell {
    padding: 16px;
  }

  .profile-card {
    padding: 28px 20px 22px;
    border-radius: 24px;
  }

  .home-actions {
    grid-template-columns: 1fr;
  }

  .avatar-link {
    width: 122px;
    height: 122px;
  }

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

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

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