:root {
  --bg: #f5f7fa;
  --surface: #ffffff;
  --text: #132133;
  --muted: #4d5c71;
  --brand: #005f73;
  --brand-strong: #0a9396;
  --ring: #94d2bd;
  --line: #d8e1e8;
  --shadow: 0 18px 38px rgba(19, 33, 51, 0.12);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", "Segoe UI", sans-serif;
  line-height: 1.6;
  color: var(--text);
  background:
    radial-gradient(circle at 10% -10%, rgba(10, 147, 150, 0.16), transparent 45%),
    radial-gradient(circle at 90% 15%, rgba(148, 210, 189, 0.2), transparent 40%),
    linear-gradient(180deg, #eef3f7 0%, #f8fafc 100%);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--brand);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 100;
}

.skip-link:focus-visible {
  left: 1rem;
  top: 1rem;
}

.container {
  width: min(1100px, 92vw);
  margin: 0 auto;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 4.5rem 0 3rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, rgba(0, 95, 115, 0.92), rgba(10, 147, 150, 0.82)),
    url("data:image/svg+xml,%3Csvg width='140' height='140' viewBox='0 0 140 140' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='rgba(255,255,255,0.18)' stroke-width='1'%3E%3Cpath d='M0 70h140M70 0v140'/%3E%3C/g%3E%3C/svg%3E");
}

.hero-content {
  position: relative;
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 2rem;
  align-items: center;
  color: #fff;
}

.profile-image {
  width: 180px;
  height: 180px;
  border-radius: 20px;
  object-fit: cover;
  border: 4px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 10px 35px rgba(10, 24, 43, 0.35);
}

.eyebrow {
  margin: 0;
  font-family: "IBM Plex Mono", Consolas, monospace;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.9;
}

h1 {
  margin: 0.2rem 0 0;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.1;
}

.subtitle {
  margin: 0.85rem 0 0;
  font-size: clamp(1rem, 2vw, 1.2rem);
  max-width: 65ch;
  opacity: 0.95;
}

.hero-actions {
  margin-top: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.hero-actions a {
  color: #fff;
  text-decoration: none;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  font-weight: 700;
  transition: transform 160ms ease, background 160ms ease;
}

.hero-actions a:hover,
.hero-actions a:focus-visible {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
}

.section {
  padding: 2rem 0;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.4rem 1.3rem;
}

h2 {
  margin-top: 0;
  font-size: clamp(1.35rem, 2vw, 1.8rem);
}

h3 {
  margin-bottom: 0.3rem;
  font-size: 1.08rem;
}

p,
li {
  color: var(--muted);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0.9rem;
}

.skills-grid article {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.85rem;
  background: linear-gradient(180deg, #fcfdff 0%, #f8fbfe 100%);
}

.job {
  margin-top: 1rem;
  padding-top: 0.7rem;
  border-top: 1px dashed var(--line);
}

.job:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.job-title {
  margin-top: 0;
  font-family: "IBM Plex Mono", Consolas, monospace;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.project-list {
  margin: 0;
  padding-left: 1.1rem;
}

.project-list li {
  margin-bottom: 0.8rem;
}

.project-list p {
  margin: 0.25rem 0 0;
}

.project-embed-container {
  margin-top: 1rem;
  min-height: 420px;
  border: 1px dashed rgba(0, 95, 115, 0.35);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 250, 251, 0.95)),
    radial-gradient(circle at top right, rgba(148, 210, 189, 0.18), transparent 42%);
  overflow: hidden;
}

.project-embed-placeholder {
  min-height: 420px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 2rem;
}

.project-embed-placeholder h3 {
  margin: 0.35rem 0;
}

.project-embed-placeholder p {
  max-width: 52ch;
  margin: 0;
}

.project-embed-eyebrow {
  margin-bottom: 0.4rem;
  color: var(--brand);
  font-family: "IBM Plex Mono", Consolas, monospace;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-panel p {
  margin-top: 0;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 0.9rem;
}

.contact-actions a {
  text-decoration: none;
  color: var(--brand);
  border: 1px solid rgba(0, 95, 115, 0.32);
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  font-weight: 700;
  background: #ffffff;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.contact-actions a:hover,
.contact-actions a:focus-visible {
  transform: translateY(-2px);
  border-color: var(--brand);
  background: #f4fafb;
}

.footer {
  margin-top: 1.4rem;
  border-top: 1px solid var(--line);
  background: #0f1f31;
  color: #d7e5f0;
  text-align: center;
  padding: 1.2rem 0;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 500ms ease, transform 500ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 2px;
}

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

  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }

  .hero-actions {
    justify-content: center;
  }

  .profile-image {
    width: 150px;
    height: 150px;
  }

  .panel {
    padding: 1.1rem;
  }

  .contact-actions {
    justify-content: center;
  }
}

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

  .reveal,
  .hero-actions a {
    transition: none;
    transform: none;
  }
}
