:root {
  --bg: #07121f;
  --bg-soft: #0d1c2e;
  --panel: #11243a;
  --line: #24405f;
  --text: #f3f7fb;
  --muted: #9ab0c8;
  --accent: #0ea5a4;
  --accent-2: #f59e0b;
  --ok: #10b981;
  --max-width: 1160px;
  --radius: 16px;
  --shadow: 0 20px 45px rgba(2, 8, 18, 0.45);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Plus Jakarta Sans", sans-serif;
  background:
    radial-gradient(circle at 80% -20%, rgba(14, 165, 164, 0.2), transparent 45%),
    radial-gradient(circle at 15% 12%, rgba(245, 158, 11, 0.12), transparent 42%),
    linear-gradient(180deg, #06101c 0%, #07121f 48%, #081425 100%);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
}

h1,
h2,
h3,
.logo {
  font-family: "Space Grotesk", sans-serif;
  line-height: 1.2;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(var(--max-width), 92vw);
  margin-inline: auto;
}

.section {
  padding: 84px 0;
}

.section.alt {
  background: linear-gradient(180deg, rgba(17, 36, 58, 0.65), rgba(10, 24, 39, 0.55));
  border-top: 1px solid rgba(154, 176, 200, 0.12);
  border-bottom: 1px solid rgba(154, 176, 200, 0.12);
}

.section-label {
  color: var(--accent-2);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 14px;
}

h2 {
  font-size: clamp(28px, 4vw, 44px);
  margin-bottom: 18px;
  max-width: 920px;
}

p {
  color: var(--muted);
  font-size: 16px;
}

.site-header {
  min-height: 100svh;
  border-bottom: 1px solid rgba(154, 176, 200, 0.14);
}

.nav {
  width: min(var(--max-width), 92vw);
  margin: 18px auto 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 14px 18px;
  border: 1px solid rgba(154, 176, 200, 0.2);
  background: rgba(8, 20, 35, 0.76);
  backdrop-filter: blur(10px);
  border-radius: 999px;
  position: sticky;
  top: 14px;
  z-index: 120;
}

.logo {
  font-size: 20px;
  letter-spacing: 0.01em;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  list-style: none;
}

.nav-links a {
  font-size: 14px;
  color: var(--muted);
  transition: 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}

.nav-cta,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  transition: 0.2s ease;
}

.nav-cta {
  padding: 11px 18px;
  border: 1px solid rgba(14, 165, 164, 0.55);
  color: var(--text);
}

.nav-cta:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(14, 165, 164, 0.12);
}

.menu-btn {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
  padding: 8px 12px;
  border-radius: 999px;
}

.hero {
  width: min(var(--max-width), 92vw);
  margin: 12px auto 0;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: start;
  gap: 42px;
  min-height: calc(100svh - 118px);
}

.hero.section {
  padding-top: 10px;
  padding-bottom: 10px;
}

.hero-left {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: 0;
}

.hero-kicker {
  color: var(--accent-2);
  font-size: 13px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 14px;
}

.hero h1 {
  font-size: clamp(36px, 5vw, 64px);
  margin-bottom: 18px;
}

.hero-role {
  color: #dbe9f8;
  font-size: clamp(17px, 2vw, 24px);
  font-weight: 700;
  margin-bottom: 12px;
}

.hero-copy {
  max-width: 58ch;
  margin-bottom: 20px;
}

.hero-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.hero-summary-item {
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(17, 36, 58, 0.72);
  border: 1px solid rgba(154, 176, 200, 0.16);
}

.hero-summary-item span {
  display: block;
  margin-bottom: 6px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-2);
  font-weight: 700;
}

.hero-summary-item strong {
  display: block;
  color: var(--text);
  font-size: 14px;
  line-height: 1.35;
}

.hero-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.hero-pill-row span {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(154, 176, 200, 0.2);
  background: rgba(8, 20, 34, 0.85);
  color: #d7e6f5;
  font-size: 12px;
  font-weight: 600;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.btn {
  padding: 13px 22px;
  border: 1px solid transparent;
}

.btn-primary {
  color: #08111e;
  background: linear-gradient(90deg, var(--accent-2), #fbbf24);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(245, 158, 11, 0.24);
}

.btn-ghost {
  border-color: var(--line);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--accent);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.hero-metrics article {
  background: rgba(17, 36, 58, 0.72);
  border: 1px solid rgba(154, 176, 200, 0.17);
  border-radius: 14px;
  padding: 14px;
}

.hero-metrics h3 {
  font-size: 26px;
  margin-bottom: 2px;
}

.hero-card-wrap {
  display: grid;
  grid-template-rows: auto auto;
  gap: 12px;
  perspective: 1100px;
  min-height: auto;
  align-content: start;
  align-self: start;
  margin-top: -10px;
}

.hero-card {
  background: linear-gradient(160deg, rgba(17, 36, 58, 0.95), rgba(8, 21, 37, 0.98));
  border: 1px solid rgba(154, 176, 200, 0.22);
  box-shadow: var(--shadow);
  border-radius: 22px;
  padding: 20px;
  width: 100%;
  min-height: 190px;
  margin: 0 auto;
  transform-style: preserve-3d;
  transition: transform 0.22s ease;
}

.hero-portrait {
  width: min(100%, 420px);
  aspect-ratio: 4 / 5;
  border-radius: 28px;
  overflow: hidden;
  margin: 0 auto 10px;
  border: 3px solid rgba(14, 165, 164, 0.55);
  box-shadow: 0 0 0 6px rgba(8, 20, 34, 0.9), 0 20px 45px rgba(2, 8, 18, 0.45);
  background: rgba(13, 28, 46, 0.72);
}

.hero-portrait img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: center top;
}

.card-title {
  color: var(--text);
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 6px;
}

.card-heading-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.card-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.28);
  color: #8ce7c7;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.card-copy {
  color: #c9d9e9;
  font-size: 15px;
  margin-bottom: 14px;
}

.core-focus-stack {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.core-focus-row {
  min-height: 112px;
  padding: 14px;
  border-radius: 14px;
  background: rgba(8, 20, 34, 0.82);
  border: 1px solid rgba(154, 176, 200, 0.14);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 6px;
}

.core-focus-row span {
  display: inline-block;
  flex-shrink: 0;
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 0;
}

.core-focus-row strong {
  text-align: left;
  color: #dbe9f8;
  font-size: 14px;
  line-height: 1.18;
  white-space: normal;
  overflow-wrap: anywhere;
}

.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 34px;
  align-items: start;
}

.about-box {
  padding: 24px;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid rgba(154, 176, 200, 0.2);
}

.about-image {
  width: 100%;
  height: 170px;
  border-radius: 12px;
  object-fit: cover;
  display: block;
  margin-bottom: 16px;
  border: 1px solid rgba(154, 176, 200, 0.2);
}

.about-box h3 {
  margin-bottom: 12px;
  font-size: 24px;
}

.about-box ul {
  list-style: none;
}

.about-box li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(154, 176, 200, 0.15);
}

.about-box li:last-child {
  border-bottom: none;
}

.about-box span {
  color: var(--muted);
  font-size: 14px;
}

.about-box strong {
  color: var(--text);
  text-align: right;
  font-size: 14px;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.professional-skills-grid {
  gap: 20px;
}

.skill-card,
.project-card,
.time-card,
.contact-form {
  border: 1px solid rgba(154, 176, 200, 0.2);
  border-radius: var(--radius);
  background: rgba(13, 28, 46, 0.72);
}

.skill-card {
  padding: 22px;
}

.skill-pro {
  background: linear-gradient(180deg, rgba(17, 36, 58, 0.9), rgba(10, 23, 37, 0.9));
}

.skill-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-bottom: 8px;
}

.skill-level-badge {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #082434;
  background: linear-gradient(90deg, #2dd4bf, #67e8f9);
  border-radius: 999px;
  padding: 5px 10px;
  font-weight: 700;
}

.skill-meter {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: rgba(154, 176, 200, 0.2);
  overflow: hidden;
  margin-top: 12px;
}

.skill-meter span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #06b6d4, #f59e0b);
  border-radius: 999px;
}

.skill-meter .w90 { width: 90%; }
.skill-meter .w88 { width: 88%; }
.skill-meter .w84 { width: 84%; }
.skill-meter .w92 { width: 92%; }

.skill-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.skill-tags span {
  font-size: 12px;
  color: #d4e6f8;
  border: 1px solid rgba(154, 176, 200, 0.22);
  background: rgba(8, 20, 34, 0.9);
  border-radius: 999px;
  padding: 5px 10px;
}

.skill-card h3 {
  margin-bottom: 8px;
  font-size: 22px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.project-card {
  padding: 22px;
}

.project-image {
  width: 100%;
  height: 190px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 14px;
  border: 1px solid rgba(154, 176, 200, 0.2);
}

.project-card h3 {
  margin-bottom: 7px;
  font-size: 22px;
}

.project-card .stack {
  color: #cae0f7;
  margin-top: 10px;
  font-size: 14px;
}

.project-card.featured {
  grid-column: 1 / -1;
  background: linear-gradient(180deg, rgba(17, 36, 58, 0.82), rgba(16, 39, 65, 0.72));
}

.project-card.featured .project-image {
  height: 280px;
}

.project-top {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-bottom: 8px;
}

.project-top a {
  color: var(--accent-2);
  font-weight: 700;
  font-size: 14px;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.time-card {
  padding: 20px;
}

.time-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 10px 0;
}

.time-meta span {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #d4e6f8;
  border: 1px solid rgba(154, 176, 200, 0.22);
  border-radius: 999px;
  padding: 5px 10px;
  background: rgba(8, 20, 34, 0.86);
}

.time-points {
  margin-top: 12px;
  list-style: none;
  display: grid;
  gap: 8px;
}

.time-points li {
  color: #d4e6f8;
  font-size: 14px;
  position: relative;
  padding-left: 14px;
}

.time-points li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-2);
  position: absolute;
  left: 0;
  top: 9px;
}

.time-range {
  font-size: 12px;
  color: var(--accent-2);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.time-card h3 {
  margin-bottom: 8px;
  font-size: 22px;
}

.cert-list {
  margin-top: 18px;
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid rgba(154, 176, 200, 0.2);
  background: rgba(17, 36, 58, 0.7);
}

.cert-list h3 {
  margin-bottom: 10px;
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 22px;
  row-gap: 22px;
}

.cert-card-item {
  border: 1px solid rgba(154, 176, 200, 0.2);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(8, 20, 34, 0.9);
  display: flex;
  flex-direction: column;
}

.cert-card-item img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

.cert-card-content {
  padding: 9px 10px 10px;
}

.cert-card-item h4 {
  font-size: 14px;
  color: var(--text);
  margin-bottom: 5px;
}

.cert-card-item p {
  font-size: 11.5px;
  color: var(--muted);
}

.cert-role {
  margin-bottom: 6px;
  color: #d7e6f5;
}

.cert-desc {
  line-height: 1.55;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

.contact-copy {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.contact-lines {
  margin-top: 18px;
  padding-top: 0;
  display: grid;
  gap: 6px;
}

.contact-lines p {
  color: #d2e3f4;
}

.contact-lines strong {
  margin-right: 8px;
}

.contact-form {
  padding: 18px;
}

.contact-form label {
  display: block;
  margin-bottom: 5px;
  color: #d5e6f8;
  font-weight: 600;
  font-size: 14px;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  margin-bottom: 10px;
  background: rgba(8, 20, 34, 0.92);
  border: 1px solid rgba(154, 176, 200, 0.24);
  color: var(--text);
  border-radius: 12px;
  padding: 10px;
  font-size: 15px;
  font-family: inherit;
}

.contact-form textarea {
  min-height: 112px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(14, 165, 164, 0.14);
}

.btn.full {
  width: 100%;
}

.form-status {
  margin-top: 8px;
  font-size: 14px;
  min-height: 20px;
}

.form-status.ok {
  color: var(--ok);
}

.form-status.err {
  color: #f87171;
}

.form-note {
  font-size: 12px;
  margin-top: 6px;
}

.footer {
  border-top: 1px solid rgba(154, 176, 200, 0.15);
  padding: 34px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1.1fr;
  gap: 24px;
}

.footer-title {
  font-size: 24px;
  margin-bottom: 8px;
}

.footer-text {
  max-width: 42ch;
}

.footer-grid h4 {
  font-size: 15px;
  margin-bottom: 10px;
  color: #d6e6f7;
}

.footer-links {
  list-style: none;
  display: grid;
  gap: 7px;
}

.footer-links li,
.footer-links a {
  font-size: 14px;
  color: var(--muted);
}

.footer-links a:hover {
  color: #d6e6f7;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
  border-top: 1px solid rgba(154, 176, 200, 0.15);
  padding-top: 14px;
}

.float-whatsapp,
.to-top {
  position: fixed;
  right: 20px;
  z-index: 130;
  width: 50px;
  height: 50px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 14px 30px rgba(2, 8, 18, 0.45);
}

.float-whatsapp {
  bottom: 20px;
  background: #16a34a;
  color: #fff;
}

.float-whatsapp svg,
.to-top svg {
  width: 26px;
  height: 26px;
}

.to-top {
  bottom: 80px;
  background: #0e7490;
  color: #fff;
  border: none;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: 0.2s ease;
}

.to-top.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: 0.45s ease;
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .nav {
    grid-template-columns: auto 1fr auto;
  }

  .menu-btn {
    display: inline-flex;
    justify-self: end;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    width: min(var(--max-width), 92vw);
    margin-inline: auto;
    background: rgba(8, 20, 35, 0.97);
    border: 1px solid rgba(154, 176, 200, 0.2);
    border-radius: 16px;
    padding: 14px;
    display: none;
    flex-direction: column;
    gap: 12px;
  }

  .nav-links.open {
    display: flex;
  }

  .hero,
  .split,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    margin-top: 18px;
    min-height: auto;
  }

  .hero.section {
    padding-top: 6px;
    padding-bottom: 68px;
  }

  .hero-card {
    max-width: 620px;
    width: 100%;
  }

  .hero-portrait {
    width: 100%;
    aspect-ratio: 16 / 10;
    max-width: none;
    margin: 0 0 10px;
  }

  .skills-grid,
  .projects-grid,
  .timeline {
    grid-template-columns: 1fr;
  }

  .cert-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
  }

  .hero-summary {
    grid-template-columns: 1fr;
  }

  .hero-card ul,
  .hero-highlight-grid {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-card li,
  .hero-highlight-grid div {
    width: 100%;
  }

  .core-focus-stack {
    grid-template-columns: 1fr;
  }

  .core-focus-row {
    min-height: auto;
  }
}

@media (min-width: 981px) {
  .site-header {
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  .hero {
    flex: 1;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 68px 0;
  }

  .nav {
    border-radius: 16px;
    top: 10px;
  }

  .nav-cta {
    display: none;
  }

  .hero h1 {
    font-size: 34px;
  }

  .hero-summary-item {
    padding: 12px 14px;
  }

  .hero-card-wrap {
    grid-template-rows: auto auto;
  }

  .project-image {
    height: 170px;
  }

  .project-card.featured .project-image {
    height: 210px;
  }

  .project-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .float-whatsapp,
  .to-top {
    width: 46px;
    height: 46px;
    right: 14px;
  }

  .to-top {
    bottom: 72px;
  }
}
