:root {
  --primary: #004445;
  --primary-strong: #002f30;
  --accent: #f0b429;
  --surface: #f6f6f3;
  --card: rgba(255, 255, 255, 0.88);
  --text: #112021;
  --muted: #3d5556;
  --shadow: 0 20px 50px rgba(0, 52, 53, 0.16);
  --radius: 1.1rem;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--text);
  line-height: 1.6;
  background:
    radial-gradient(circle at 10% 5%, rgba(0, 68, 69, 0.1), transparent 50%),
    radial-gradient(circle at 90% 10%, rgba(240, 180, 41, 0.2), transparent 42%),
    linear-gradient(165deg, #f7faf9 0%, #ecf2f1 100%);
  min-height: 100vh;
  padding: 2rem 1.2rem 3rem;
  overflow-x: hidden;
}

main,
.site-header,
.site-footer {
  width: min(980px, 100%);
  margin: 0 auto;
}

.ambient-shape {
  position: fixed;
  z-index: -1;
  border-radius: 50%;
  filter: blur(24px);
  opacity: 0.3;
}

.shape-1 {
  width: 280px;
  height: 280px;
  background: var(--primary);
  top: -90px;
  left: -90px;
  animation: drift 16s ease-in-out infinite;
}

.shape-2 {
  width: 240px;
  height: 240px;
  background: var(--accent);
  bottom: -80px;
  right: -80px;
  animation: drift 14s ease-in-out infinite reverse;
}

.site-header {
  margin-top: 0.8rem;
  margin-bottom: 1.8rem;
  padding: 2.2rem;
  border-radius: calc(var(--radius) + 0.4rem);
  background: linear-gradient(130deg, #003e40, #00595b);
  color: #f8fcfc;
  box-shadow: var(--shadow);
  position: relative;
  isolation: isolate;
}

.site-header::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(120deg, rgba(240, 180, 41, 0.16), transparent 45%);
  pointer-events: none;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
  font-size: 0.74rem;
  margin: 0 0 0.6rem;
  color: #cbe1e1;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2.1rem, 4vw, 3.2rem);
}

.headline {
  max-width: 58ch;
  margin: 0.9rem 0 1.4rem;
  color: #d9ecec;
}

.btn {
  display: inline-block;
  text-decoration: none;
  color: #072223;
  background: var(--accent);
  border-radius: 999px;
  padding: 0.65rem 1.1rem;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(240, 180, 41, 0.25);
}

.panel {
  background: var(--card);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(0, 68, 69, 0.08);
  border-radius: var(--radius);
  padding: 1.4rem;
  margin: 1rem auto;
  box-shadow: 0 8px 20px rgba(0, 68, 69, 0.06);
}

h2 {
  font-size: 1.35rem;
  margin-bottom: 1rem;
}

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

.contact-grid article,
.education-grid article {
  background: #ffffff;
  border: 1px solid rgba(0, 68, 69, 0.08);
  border-radius: 0.9rem;
  padding: 0.95rem;
}

.contact-grid h3,
.education-grid h3,
.timeline-item h3 {
  font-size: 1.02rem;
  margin-bottom: 0.24rem;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  text-decoration: none;
}

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

.contact-icon {
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 0.45rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 68, 69, 0.09);
  border: 1px solid rgba(0, 68, 69, 0.15);
  flex: 0 0 auto;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.contact-icon svg {
  width: 0.95rem;
  height: 0.95rem;
  fill: currentColor;
}

.contact-link:hover .contact-icon,
.contact-link:focus-visible .contact-icon {
  transform: translateY(-1px);
  background: rgba(0, 68, 69, 0.16);
  border-color: rgba(0, 68, 69, 0.28);
}

a {
  color: var(--primary);
  text-decoration-thickness: 0.09em;
  text-underline-offset: 0.16em;
}

a:hover,
a:focus-visible {
  color: #006264;
}

.timeline {
  position: relative;
  margin-left: 0.4rem;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0.2rem;
  bottom: 0.2rem;
  left: 0.44rem;
  width: 2px;
  background: linear-gradient(var(--primary), rgba(0, 68, 69, 0.15));
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 0.8rem;
  padding: 0.25rem 0 1.2rem;
}

.timeline-marker {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  margin-top: 0.3rem;
  background: linear-gradient(120deg, var(--primary), #007375);
  border: 2px solid #d1ebeb;
  box-shadow: 0 0 0 4px rgba(0, 68, 69, 0.12);
}

.company {
  margin: 0.1rem 0;
  color: #1f3b3c;
  font-weight: 700;
}

.dates {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.site-footer {
  margin-top: 1.5rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.92rem;
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
}

.reveal.in-view {
  animation: revealUp 620ms cubic-bezier(0.2, 0.7, 0.18, 1) forwards;
}

@keyframes revealUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes drift {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(10px, -14px);
  }
}

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

  .site-header {
    padding: 1.5rem 1.2rem;
  }

  .panel {
    padding: 1.1rem;
  }
}
