:root {
  --page-width: 960px;
  --accent: #2563eb;
  --text: #1f2933;
  --muted: #52606d;
  --muted-soft: #6b7a89;
  --background: linear-gradient(180deg, #f9fbff 0%, #eef3ff 100%);
  --border: #e4e7eb;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI',
    sans-serif;
  color: var(--text);
  background: var(--background);
  min-height: 100vh;
  background-attachment: fixed;
}

.page {
  margin-inline: auto;
  margin-block: clamp(4rem, 12vh, 7rem);
  max-width: var(--page-width);
  padding: clamp(2.75rem, 4vw, 3.5rem) clamp(1.5rem, 3vw, 2.5rem)
    clamp(3.5rem, 6vw, 4.5rem);
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(1.4) blur(18px);
  border-radius: 36px;
  box-shadow: 0 30px 70px rgba(37, 99, 235, 0.1);
  transition: box-shadow 200ms ease, backdrop-filter 200ms ease;
}

.page-footer {
  display: flex;
  justify-content: center;
  padding: 1rem 1.5rem 3rem;
}

.footer-actions {
  display: inline-flex;
  align-items: center;
  gap: 1.25rem;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
  backdrop-filter: blur(12px);
}

.footer-link {
  color: inherit;
  text-decoration: none;
  font-weight: 600;
}

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

@media (max-width: 768px) {
  .page {
    margin: clamp(2.5rem, 8vh, 3.75rem) 1.25rem clamp(3rem, 10vh, 4.5rem);
    padding: 2.5rem 1.25rem 3.25rem;
    border-radius: 28px;
  }

  .page-footer {
    padding: 0.75rem 1.25rem 2.5rem;
  }

  .footer-actions {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }
}

.background-waves {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(244, 248, 255, 0.68) 48%,
    rgba(231, 240, 255, 0.55) 100%
  );
}

.wave {
  --wave-base-y: 0px;
  --wave-offset-y: 0px;
  position: absolute;
  width: 140vw;
  height: 70vh;
  left: -20vw;
  top: calc(-20vh + var(--wave-base-y));
  border-radius: 55% 45% 60% 40%;
  opacity: 0.75;
  will-change: transform;
  transform: translate3d(0, var(--wave-offset-y), 0);
}

.wave::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: inherit;
  opacity: 0.95;
  filter: blur(0.5px);
}

.wave-one {
  --wave-base-y: -25vh;
  background: radial-gradient(
    120% 80% at 15% 20%,
    rgba(37, 99, 235, 0.18) 0%,
    rgba(37, 99, 235, 0.08) 55%,
    rgba(37, 99, 235, 0) 100%
  );
  animation: wave-drift-one 22s ease-in-out infinite alternate;
}

.wave-two {
  --wave-base-y: 10vh;
  background: radial-gradient(
    130% 85% at 80% 30%,
    rgba(14, 165, 233, 0.16) 0%,
    rgba(14, 165, 233, 0.07) 50%,
    rgba(14, 165, 233, 0) 100%
  );
  animation: wave-drift-two 28s ease-in-out infinite alternate;
}

.wave-three {
  --wave-base-y: 40vh;
  background: radial-gradient(
    120% 80% at 40% 80%,
    rgba(139, 92, 246, 0.14) 0%,
    rgba(139, 92, 246, 0.06) 55%,
    rgba(139, 92, 246, 0) 100%
  );
  animation: wave-drift-three 32s ease-in-out infinite alternate;
}

@media (prefers-reduced-motion: reduce) {
  .wave {
    animation: none !important;
  }
}

@keyframes wave-drift-one {
  from {
    transform: translate3d(-2vw, var(--wave-offset-y, 0px), 0) rotate(-1deg);
  }
  to {
    transform: translate3d(3vw, var(--wave-offset-y, 0px), 0) rotate(1deg);
  }
}

@keyframes wave-drift-two {
  from {
    transform: translate3d(2vw, var(--wave-offset-y, 0px), 0) rotate(2deg);
  }
  to {
    transform: translate3d(-3vw, var(--wave-offset-y, 0px), 0) rotate(-2deg);
  }
}

@keyframes wave-drift-three {
  from {
    transform: translate3d(-4vw, var(--wave-offset-y, 0px), 0) rotate(1.5deg);
  }
  to {
    transform: translate3d(4vw, var(--wave-offset-y, 0px), 0) rotate(-1.5deg);
  }
}

h1,
 h2,
 h3 {
  margin: 0;
  font-weight: 600;
}

h2 {
  margin-top: 3rem;
  margin-bottom: 1.25rem;
  font-size: 1.75rem;
}

h3 {
  font-size: 1.1rem;
  margin-bottom: 0.35rem;
}

p {
  margin: 0;
}

section + section {
  margin-top: 2rem;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, auto);
  grid-template-areas:
    'header contact'
    'summary summary';
  row-gap: 2rem;
  column-gap: 2rem;
  align-items: start;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.hero-header {
  grid-area: header;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.hero h1 {
  font-size: 2.75rem;
}

.tagline {
  color: var(--accent);
  font-weight: 600;
  margin-top: 0.35rem;
}

.summary {
  grid-area: summary;
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--muted);
  text-align: justify;
  max-width: none;
}

.contact {
  grid-area: contact;
  align-self: start;
}

.contact {
  list-style: none;
  padding: 0;
  margin: 0;
  min-width: 16rem;
  display: grid;
  gap: 0.4rem;
}

.contact li {
  font-size: 0.95rem;
  display: flex;
  gap: 0.35rem;
  color: var(--muted);
}

.contact a {
  color: inherit;
  text-decoration: none;
}

.contact a:hover {
  color: var(--accent);
}

.contact-label {
  font-weight: 600;
  color: var(--text);
}

.skills-list {
  display: grid;
  gap: 1rem;
}

.skill-row {
  display: grid;
  grid-template-columns: minmax(160px, 220px) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
}

@media (max-width: 520px) {
  .skill-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.35rem;
  }
}

.skill-row h3 {
  font-size: 1.05rem;
  margin: 0;
}

.skill-items {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.85rem;
}

.credentials-list {
  display: grid;
  gap: 1rem;
}

.credential-row {
  display: grid;
  gap: 0.35rem;
}

.credential-row h3 {
  margin: 0;
  font-size: 1.05rem;
}

.credential-issuer {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.entry ul {
  margin: 0.5rem 0 0;
  padding-left: 1.25rem;
  color: var(--muted);
  line-height: 1.6;
}

.entry li {
  margin-bottom: 0.3rem;
}

.entry + .entry {
  margin-top: 1.75rem;
}

.entry header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
}

.entry h3 {
  font-size: 1.2rem;
}

.entry .role-title {
  color: var(--muted);
  font-weight: 500;
}

.entry .meta {
  color: var(--muted);
  font-size: 0.95rem;
}

.entry-summary {
  margin-top: 0.6rem;
  color: var(--text);
  line-height: 1.6;
}

.experience-section .entry-summary,
.experience-section .entry ul {
  max-width: 70%;
}

.experience-section .entry-summary {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--muted-soft);
}

.experience-section .entry ul {
  font-size: 0.9rem;
  color: var(--muted-soft);
}

@media (max-width: 768px) {
  .experience-section .entry-summary,
  .experience-section .entry ul {
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  .page {
    border-radius: 24px;
    padding: 2.5rem 1.25rem 3rem;
  }

  .hero {
    grid-template-columns: 1fr;
    grid-template-areas:
      'header'
      'summary'
      'contact';
    row-gap: 2rem;
  }

  .entry header {
    flex-direction: column;
  }
}
