:root {
  --bg: #0c0f12;
  --bg-elev: #14191f;
  --ink: #f4f1ea;
  --muted: #a8b0b8;
  --accent: #0f766e;
  --accent-2: #2dd4bf;
  --line: rgba(255, 255, 255, 0.08);
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  --display: "Syne", sans-serif;
  --body: "Newsreader", Georgia, serif;
  --ui: "Outfit", system-ui, sans-serif;
  --radius: 18px;
  --max: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(15, 118, 110, 0.22), transparent 55%),
    radial-gradient(900px 500px at 0% 20%, rgba(45, 212, 191, 0.08), transparent 50%),
    linear-gradient(180deg, #0b0e11 0%, #10151a 40%, #0c0f12 100%);
  line-height: 1.65;
  min-height: 100vh;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: flex;
  justify-content: center;
  padding: 1rem;
  transition: transform 0.35s ease, background 0.35s ease;
}

.site-header.is-hidden {
  transform: translateY(-120%);
}

.nav {
  width: min(100%, var(--max));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(12, 15, 18, 0.72);
  backdrop-filter: blur(14px);
}

.brand {
  font-family: var(--ui);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  font-size: 0.95rem;
}

.nav-links {
  display: none;
  gap: 1.1rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--ui);
  font-size: 0.85rem;
  color: var(--muted);
}

.nav-links a {
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--ink);
}

.lang-switch {
  display: flex;
  gap: 0.25rem;
  font-family: var(--ui);
  font-size: 0.75rem;
}

.lang-switch button {
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  padding: 0.35rem 0.5rem;
  border-radius: 999px;
}

.lang-switch button.is-active {
  background: rgba(15, 118, 110, 0.25);
  color: var(--ink);
}

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  align-items: end;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  transform: scale(1.06);
  animation: heroZoom 4.5s ease forwards;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 10, 12, 0.25) 0%, rgba(8, 10, 12, 0.15) 35%, rgba(8, 10, 12, 0.88) 100%),
    linear-gradient(90deg, rgba(8, 10, 12, 0.55) 0%, rgba(8, 10, 12, 0.1) 55%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 7rem 0 3.5rem;
}

.hero-kicker {
  font-family: var(--ui);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  color: var(--accent-2);
  margin: 0 0 0.85rem;
  opacity: 0;
  animation: rise 0.9s 0.15s ease forwards;
}

.hero h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.6rem, 7vw, 5.2rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
  max-width: 11ch;
  opacity: 0;
  animation: rise 0.9s 0.28s ease forwards;
}

.hero-lead {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: var(--muted);
  max-width: 32ch;
  margin: 0 0 1.75rem;
  opacity: 0;
  animation: rise 0.9s 0.42s ease forwards;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  opacity: 0;
  animation: rise 0.9s 0.55s ease forwards;
}

.btn {
  font-family: var(--ui);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.85rem 1.35rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: white;
}

.btn-primary:hover {
  background: #0d9488;
}

.btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.22);
  color: var(--ink);
}

.btn-whatsapp {
  background: #25d366;
  color: #06240f;
  border-color: transparent;
}

.btn-whatsapp:hover {
  background: #1ebe57;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.form-actions .btn {
  border: 1px solid transparent;
}

.section {
  padding: 5.5rem 0;
}

.section-head {
  max-width: 38rem;
  margin-bottom: 2.25rem;
}

.eyebrow {
  font-family: var(--ui);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  color: var(--accent-2);
  margin: 0 0 0.7rem;
}

.section h2 {
  font-family: var(--display);
  font-size: clamp(1.9rem, 4vw, 3rem);
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin: 0 0 0.85rem;
}

.section-head p,
.prose {
  color: var(--muted);
  font-size: 1.08rem;
  margin: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

.presence-grid {
  display: grid;
  gap: 1.5rem;
}

.presence-photo {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.presence-photo img {
  width: 100%;
  height: min(70vh, 640px);
  object-fit: cover;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.gallery button {
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
}

.gallery img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery button:hover img {
  transform: scale(1.05);
}

.gallery button:nth-child(1),
.gallery button:nth-child(6) {
  grid-column: span 2;
}

.gallery button:nth-child(1) img,
.gallery button:nth-child(6) img {
  height: 280px;
}

.meta-list {
  display: grid;
  gap: 0.9rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.meta-list li {
  display: grid;
  grid-template-columns: 8.5rem 1fr;
  gap: 0.75rem;
  padding: 0.9rem 0;
  border-top: 1px solid var(--line);
  font-family: var(--ui);
  font-size: 0.95rem;
}

.meta-list span {
  color: var(--muted);
}

.timeline {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline li {
  padding: 1.1rem 1.2rem;
  border-left: 2px solid var(--accent);
  background: rgba(255, 255, 255, 0.02);
}

.timeline strong {
  display: block;
  font-family: var(--ui);
  margin-bottom: 0.2rem;
}

.timeline span {
  color: var(--muted);
  font-size: 0.95rem;
}

.skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.5rem;
}

.skills span {
  font-family: var(--ui);
  font-size: 0.82rem;
  padding: 0.45rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
}

.hobbies {
  margin-top: 0.5rem;
}

.hobby-grid {
  display: grid;
  gap: 0.85rem;
  margin-top: 0.5rem;
}

.hobby-card {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  font-family: var(--ui);
  font-size: 0.95rem;
  color: var(--ink);
}

.hobby-icon {
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(15, 118, 110, 0.2);
  color: var(--accent-2);
}

.hobby-icon svg {
  width: 1.35rem;
  height: 1.35rem;
}

.name-note {
  margin-top: 1.25rem;
  max-width: 42rem;
  color: var(--muted);
  font-size: 0.98rem;
}

.social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.social-row.compact {
  margin-top: 0;
}

.social-link {
  font-family: var(--ui);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  color: #fff;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.7rem 1.2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  transition: transform 0.2s ease, filter 0.2s ease, background 0.2s ease;
}

.social-link .icon {
  width: 1.05rem;
  height: 1.05rem;
  flex-shrink: 0;
}

.social-linkedin {
  background: #0a66c2;
  box-shadow: 0 10px 28px rgba(10, 102, 194, 0.35);
}

.social-github {
  background: #24292f;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
  border-color: rgba(255, 255, 255, 0.12);
}

.social-link:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
  color: #fff;
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.form-grid {
  display: grid;
  gap: 0.9rem;
  max-width: 36rem;
}

label {
  display: grid;
  gap: 0.35rem;
  font-family: var(--ui);
  font-size: 0.85rem;
  color: var(--muted);
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--ink);
  border-radius: 12px;
  padding: 0.85rem 0.95rem;
  font: inherit;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

.hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  overflow: hidden;
}

.form-note,
.form-status {
  font-family: var(--ui);
  font-size: 0.9rem;
  color: var(--muted);
}

.form-status.is-ok {
  color: var(--accent-2);
}

.form-status.is-err {
  color: #fca5a5;
}

.salary-panel {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.site-footer {
  padding: 2.5rem 0 3rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--ui);
  font-size: 0.85rem;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.88);
  display: none;
  place-items: center;
  padding: 1rem;
}

.lightbox.is-open {
  display: grid;
}

.lightbox img {
  max-height: min(88vh, 900px);
  max-width: min(94vw, 900px);
  border-radius: 12px;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  border: 0;
  background: transparent;
  color: white;
  font-size: 1.6rem;
  cursor: pointer;
}

.page-salary {
  display: grid;
  place-items: center;
  min-height: 100vh;
}

.salary-wrap {
  width: min(100% - 2rem, 28rem);
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--bg-elev);
}

.salary-figure {
  font-family: var(--display);
  font-size: clamp(2rem, 5vw, 3rem);
  margin: 0.4rem 0 1rem;
  color: var(--accent-2);
}

.muted {
  color: var(--muted);
}

.text-link {
  color: var(--accent-2);
  text-decoration: none;
  font-family: var(--ui);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes heroZoom {
  to {
    transform: scale(1);
  }
}

@media (min-width: 800px) {
  .nav-links {
    display: flex;
  }

  .hobby-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .presence-grid {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
  }

  .gallery {
    grid-template-columns: repeat(4, 1fr);
  }

  .gallery button:nth-child(1) {
    grid-column: span 2;
    grid-row: span 2;
  }

  .gallery button:nth-child(1) img {
    height: 100%;
    min-height: 460px;
  }

  .gallery button:nth-child(6) {
    grid-column: span 2;
  }

  .gallery img {
    height: 220px;
  }
}
