@import url("https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@500;700&family=Inter:wght@400;500;700&display=swap");

:root {
  --bg: #eef2f7;
  --surface: #ffffff;
  --text: #12203a;
  --muted: #4a5568;
  --line: #cbd5e1;
  --accent: #1e3a8a;
  --accent-soft: #dbeafe;
  --max-width: 920px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 10%, #dbe7fb 0%, transparent 38%),
    radial-gradient(circle at 90% 20%, #e3edfa 0%, transparent 33%),
    linear-gradient(180deg, #f2f5fa 0%, var(--bg) 100%);
  font-family: "Inter", "Segoe UI", sans-serif;
  line-height: 1.6;
  padding: 1.25rem;
  position: relative;
  overflow-x: hidden;
}

.bg-shape {
  position: fixed;
  z-index: -1;
  border-radius: 999px;
  filter: blur(50px);
  opacity: 0.35;
}

.bg-shape-a {
  width: 420px;
  height: 420px;
  right: -120px;
  top: -80px;
  background: #7fa8e8;
}

.bg-shape-b {
  width: 300px;
  height: 300px;
  left: -90px;
  bottom: 10%;
  background: #a9c4ec;
}

.site-header,
main,
.site-footer {
  max-width: var(--max-width);
  margin: 0 auto;
}

.site-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  padding: 0;
  position: relative;
}

.header-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.3rem;
  grid-column: 3;
  justify-self: end;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  grid-column: 2;
  justify-self: center;
}

.brand-logo {
  height: 130px;
  width: auto;
  display: block;
}

.contact-link {
  color: var(--text);
  text-decoration-thickness: 2px;
  text-decoration-color: color-mix(in srgb, var(--accent) 45%, transparent);
  text-underline-offset: 0.22em;
  overflow-wrap: break-word;
}

.section {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: color-mix(in srgb, var(--surface) 92%, white);
  box-shadow: 0 10px 40px rgba(18, 32, 58, 0.08);
  padding: 1.5rem;
  margin: 1rem 0;
}

.hero {
  padding: 2.2rem 1.5rem;
  position: relative;
}

.profile-photo {
  width: 112px;
  height: 112px;
  object-fit: cover;
  border-radius: 16px;
  border: 2px solid var(--line);
  box-shadow: 0 12px 25px rgba(18, 32, 58, 0.16);
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
}

.eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: "JetBrains Mono", "Courier New", monospace;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2rem, 5.8vw, 3.7rem);
  margin: 0 0 1rem;
  max-width: 15ch;
}

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

h3 {
  font-size: 1.1rem;
  margin: 0;
}

.lead {
  max-width: 56ch;
  font-size: 1.05rem;
  color: var(--muted);
}

.card-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 0.9rem;
}

.card-list li {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  padding: 1rem;
}

.card-list p {
  margin: 0.5rem 0 0;
  color: var(--muted);
}

.section-note {
  margin-top: -0.2rem;
  color: var(--muted);
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 2px solid var(--line);
}

.timeline li {
  padding: 0 0 1.2rem 1rem;
  position: relative;
}

.timeline li::before {
  content: "";
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  background: var(--accent-soft);
  position: absolute;
  left: -7px;
  top: 0.35rem;
}

.timeline-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  align-items: baseline;
}

.timeline-head h3 {
  color: var(--accent);
  font-size: 1.2rem;
}

.timeline-head span {
  color: var(--muted);
  font-size: 0.9rem;
}

.timeline-body {
  margin: 0.5rem 0 0;
  padding-left: 1.2rem;
  max-width: 65ch;
}

.timeline-body li {
  margin: 0.3rem 0;
}

.timeline-body li::marker {
  color: var(--accent);
}

.tech-tags {
  list-style: none;
  margin: 0.7rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.tech-tags li {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
  font-size: 0.8rem;
  color: var(--muted);
}

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

.skills-group h3 {
  margin-bottom: 0.6rem;
}

.skill-tags {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.skill-tags li {
  border: 1px solid var(--line);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
  font-size: 0.9rem;
  color: var(--text);
}

a {
  color: inherit;
}

.site-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.9rem;
  padding: 0.7rem 0 1.4rem;
}

.footer-brand p {
  margin: 0;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.footer-link {
  color: var(--muted);
}

.footer-link[aria-current="page"] {
  color: var(--accent);
  font-weight: 700;
}

.reveal {
  animation: rise-in 0.55s ease both;
}

.reveal:nth-of-type(2) {
  animation-delay: 0.06s;
}

.reveal:nth-of-type(3) {
  animation-delay: 0.12s;
}

.reveal:nth-of-type(4) {
  animation-delay: 0.18s;
}

.reveal:nth-of-type(5) {
  animation-delay: 0.24s;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 760px) {
  body {
    padding: 0.85rem;
  }

  .brand-logo {
    height: 80px;
  }

  .profile-photo {
    position: static;
    margin-bottom: 0.8rem;
  }

  .section,
  .hero {
    padding: 1.15rem;
  }
}
