:root {
  --text: rgba(255, 255, 255, 0.95);
  --text-muted: rgba(255, 255, 255, 0.78);
  --text-soft: rgba(255, 255, 255, 0.64);
  --accent: #78cfff;
  --accent-strong: #9eddff;
  --glass: rgba(8, 18, 28, 0.32);
  --glass-hover: rgba(8, 18, 28, 0.48);
  --glass-border: rgba(255, 255, 255, 0.34);
  --shadow: rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

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

body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: #08121c;
}

.page {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
}

.background {
  position: absolute;
  inset: 0;
  z-index: -3;
  background-image: url("assets/background.jpg");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  transform: scale(1.01);
}

/* Subtle contrast layer: keeps the image visible while making the center copy readable. */
.page::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 43%, rgba(4, 12, 20, 0.18) 0%, rgba(4, 12, 20, 0.32) 48%, rgba(4, 12, 20, 0.42) 100%),
    linear-gradient(to bottom, rgba(4, 12, 20, 0.12), rgba(4, 12, 20, 0.10) 42%, rgba(4, 12, 20, 0.30));
}

.hero {
  display: grid;
  min-height: 100svh;
  place-items: center;
  padding: 4rem 1.5rem;
  text-align: center;
}

.hero-content {
  width: min(100%, 48rem);
  transform: translateY(-1vh);
}

h1 {
  margin: 0;
  font-size: clamp(4rem, 8.4vw, 7.6rem);
  font-weight: 650;
  line-height: 0.96;
  letter-spacing: -0.025em;
  color: var(--text);
  text-wrap: balance;
  text-shadow: 0 4px 28px rgba(0, 0, 0, 0.58);
}

.accent-rule {
  display: block;
  width: clamp(4.6rem, 8vw, 7.2rem);
  height: 2px;
  margin: clamp(1.15rem, 2vw, 1.7rem) auto 1.65rem;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 16px rgba(120, 207, 255, 0.42), 0 2px 14px rgba(0, 0, 0, 0.42);
}

.role {
  margin: 0 0 0.8rem;
  color: var(--accent-strong);
  font-size: clamp(1rem, 1.75vw, 1.28rem);
  font-weight: 730;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.48);
}

.location {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 1.35rem;
  color: var(--text-muted);
  font-size: clamp(1rem, 1.7vw, 1.15rem);
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.46);
}

.location svg {
  width: 1.05em;
  height: 1.05em;
  color: var(--accent-strong);
  stroke-width: 2.3;
}

.summary {
  max-width: 45rem;
  margin: 0 auto 1.9rem;
  color: var(--text);
  font-size: clamp(1.08rem, 1.95vw, 1.32rem);
  font-weight: 560;
  line-height: 1.55;
  text-wrap: balance;
  text-shadow: 0 3px 22px rgba(0, 0, 0, 0.58);
}

.links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 0 auto 1.5rem;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  min-width: 13rem;
  padding: 0.9rem 1.05rem;
  border: 1px solid var(--glass-border);
  border-radius: 0.78rem;
  color: var(--text);
  background: var(--glass);
  box-shadow: 0 16px 34px var(--shadow);
  text-decoration: none;
  backdrop-filter: blur(14px) saturate(125%);
  -webkit-backdrop-filter: blur(14px) saturate(125%);
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  background: var(--glass-hover);
  border-color: rgba(158, 221, 255, 0.72);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.34), 0 0 0 3px rgba(120, 207, 255, 0.13);
  outline: none;
}

.button svg {
  flex: 0 0 auto;
  width: 1.6rem;
  height: 1.6rem;
}

.button span:not(.arrow) {
  flex: 1;
  text-align: left;
  font-size: 1rem;
  font-weight: 650;
}

.arrow {
  color: var(--text-muted);
  font-size: 1.35rem;
  line-height: 1;
}

.email {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 auto 1.7rem;
  color: var(--text);
  font-size: clamp(1rem, 1.65vw, 1.15rem);
  text-decoration: none;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.54);
  transition: color 160ms ease, text-shadow 160ms ease;
}

.email:hover,
.email:focus-visible {
  color: var(--accent-strong);
  text-shadow: 0 0 18px rgba(120, 207, 255, 0.60), 0 3px 18px rgba(0, 0, 0, 0.52);
  outline: none;
}

.email svg {
  width: 1.18em;
  height: 1.18em;
  stroke-width: 1.9;
}

.keywords {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.83rem;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  text-shadow: 0 3px 16px rgba(0, 0, 0, 0.52);
}

.keywords span {
  color: var(--accent);
  margin: 0 0.5rem;
}

@media (max-width: 720px) {
  .hero {
    padding: 3rem 1.25rem;
  }

  .hero-content {
    transform: none;
  }

  h1 {
    font-size: clamp(3.15rem, 15vw, 5rem);
  }

  .role {
    letter-spacing: 0.13em;
  }

  .summary {
    font-size: 1.05rem;
  }

  .links {
    flex-direction: column;
    align-items: stretch;
    max-width: 21rem;
  }

  .button {
    min-width: 0;
    width: 100%;
  }

  .keywords {
    letter-spacing: 0.16em;
    line-height: 1.8;
  }
}

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