:root {
  --bg: #ffffff;
  --text: #141414;
  --muted: rgba(20, 20, 20, 0.68);
  --card: rgba(255, 255, 255, 0.62);
  --border: rgba(20, 20, 20, 0.08);
  --shadow: 0 18px 60px rgba(20, 20, 20, 0.08);
  --text-glow: 0 0 16px rgba(255, 255, 255, 0.5), 0 0 4px rgba(210, 210, 210, 0.6);
  --hero-text-glow: 0 0 1px rgba(255, 255, 255, 0.9), 0 0 4px rgba(255, 255, 255, 0.6),
    0 0 8px rgba(255, 255, 255, 0.32);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: "Zen Kaku Gothic New", ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial,
    "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background: var(--bg);
  overflow: hidden;
}

/* Full-screen petals layer */
#petals-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.content {
  position: relative;
  z-index: 1;
  min-height: 100%;
  display: grid;
  place-items: center;
  padding: 32px 16px;
}

.btn.lang-toggle {
  position: fixed;
  top: calc(16px + env(safe-area-inset-top, 0px));
  right: calc(16px + env(safe-area-inset-right, 0px));
  z-index: 2;
  font-size: 16px;
}

.hero {
  display: grid;
  justify-items: center;
  gap: 10px;
  transform: translateY(clamp(-84px, -6vh, -32px));
}

.name {
  margin: 0;
  text-align: center;
  font-family: inherit;
  font-weight: 800;
  font-size: clamp(36px, 5.6vw, 76px);
  line-height: 1.05;
  color: var(--text);
  text-shadow: var(--hero-text-glow), 0 2px 8px rgba(20, 20, 20, 0.16);
}

.role {
  margin: 0;
  text-align: center;
  font-weight: 650;
  font-size: clamp(18px, 2.4vw, 28px);
  line-height: 1.2;
  color: var(--muted);
  text-shadow: var(--hero-text-glow), 0 1px 6px rgba(20, 20, 20, 0.14);
}

.cta {
  width: min(720px, 100%);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 8px;
}

.cta .btn {
  width: 100%;
  font-size: clamp(15px, 1.7vw, 17px);
  white-space: nowrap;
}

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

.card {
  width: min(760px, 100%);
  border-radius: 24px;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 28px 26px;
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

h1 {
  margin: 0 0 10px;
  font-size: clamp(32px, 4vw, 46px);
  line-height: 1.05;
}

.subhead {
  margin: 0 0 20px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--muted);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 10px 0 0;
}

.btn {
  appearance: none;
  border: none;
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
  --shimmer-duration: 1.4s;
  --shimmer-angle: 112deg;
  --shimmer-from: 94%;
  --shimmer-to: 0%;
  --shimmer-opacity: 0.9;
  --shimmer-highlight: rgba(255, 255, 255, 1);
  --shimmer-mid: rgba(255, 255, 255, 0.62);
  position: relative;
  z-index: 0;
  isolation: isolate;
  border-radius: 999px;
  padding: 10px 14px;
  text-decoration: none;
  font-size: 14px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  font-family: inherit;
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  background-repeat: no-repeat;
  background-image: linear-gradient(
    var(--shimmer-angle),
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0) 30%,
    var(--shimmer-mid) 42%,
    var(--shimmer-highlight) 50%,
    var(--shimmer-mid) 58%,
    rgba(255, 255, 255, 0) 70%,
    rgba(255, 255, 255, 0) 100%
  );
  background-size: 200% 100%;
  background-position: var(--shimmer-from) 50%;
}

.btn.shimmer-active::before {
  opacity: var(--shimmer-opacity);
  animation: btn-shimmer var(--shimmer-duration) linear;
  will-change: background-position, opacity;
}

.btn-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  display: inline-block;
  background-color: currentColor;
  background-image: none;
  -webkit-mask: var(--icon-url) no-repeat center / contain;
  mask: var(--icon-url) no-repeat center / contain;
}

.btn:hover {
  background: rgba(255, 255, 255, 0.9);
}

.btn-label {
  display: inline-block;
  color: inherit;
  line-height: 1.1;
  text-shadow: var(--text-glow);
}

.btn-icon--resume {
  --icon-url: url("../icons/resume.svg");
}

.btn-icon--linkedin {
  --icon-url: url("../icons/linkedin.svg");
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.5);
  --shimmer-opacity: 0.95;
}

.hint {
  margin: 14px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(20, 20, 20, 0.56);
}

@keyframes btn-shimmer {
  from {
    background-position: var(--shimmer-from) 50%;
  }
  to {
    background-position: var(--shimmer-to) 50%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn.shimmer-active::before {
    animation: none;
    opacity: 0;
  }
}
