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

:root {
  --bg: #0f1419;
  --bg-alt: #151b23;
  --bg-card: #1a222d;
  --text: #e2e8f0;
  --text-muted: #94a3b8;
  --accent: #38bdf8;
  --accent-2: #22d3ee;
  --accent-dim: rgba(56, 189, 248, 0.15);
  --border: rgba(148, 163, 184, 0.2);
  --whatsapp: #25d366;
  --container-max: 1200px;
  --pad-x: 1.25rem;
  --header-h: 6.25rem;
  --radius: 12px;
  --radius-lg: 16px;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  --nav-glow: rgba(56, 189, 248, 0.12);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  scroll-padding-top: var(--header-h);
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  padding-top: var(--header-h);
  position: relative;
  overflow-x: hidden;
}

/* Animated ambient background */
.page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.page-bg__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.62;
  will-change: transform;
}

.page-bg__blob--1 {
  width: min(620px, 80vw);
  height: min(620px, 80vw);
  top: -12%;
  right: -10%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.55), transparent 68%);
  animation: blobFloat1 14s ease-in-out infinite;
}

.page-bg__blob--2 {
  width: min(500px, 65vw);
  height: min(500px, 65vw);
  bottom: 8%;
  left: -14%;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.38), transparent 68%);
  animation: blobFloat2 16s ease-in-out infinite;
}

.page-bg__blob--3 {
  width: min(380px, 50vw);
  height: min(380px, 50vw);
  top: 38%;
  left: 32%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.28), transparent 68%);
  animation: blobFloat3 12s ease-in-out infinite;
}

.page-bg__blob--4 {
  width: min(340px, 45vw);
  height: min(340px, 45vw);
  bottom: -6%;
  right: 18%;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.22), transparent 70%);
  animation: blobFloat4 18s ease-in-out infinite;
}

.page-drone .page-bg__blob--1 {
  background: radial-gradient(circle, rgba(34, 211, 238, 0.5), transparent 68%);
}

.page-drone .page-bg__blob--2 {
  background: radial-gradient(circle, rgba(37, 211, 102, 0.28), transparent 68%);
}

.page-drone .page-bg__blob--3 {
  background: radial-gradient(circle, rgba(56, 189, 248, 0.32), transparent 68%);
}

.page-drone .page-bg__blob--4 {
  background: radial-gradient(circle, rgba(225, 48, 108, 0.18), transparent 70%);
}

@keyframes blobFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-70px, 45px) scale(1.14); }
  66% { transform: translate(30px, -25px) scale(1.08); }
}

@keyframes blobFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(80px, -50px) scale(1.12); }
  66% { transform: translate(-40px, 30px) scale(1.06); }
}

@keyframes blobFloat3 {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.5; }
  50% { transform: translate(-50px, 40px) scale(1.15); opacity: 0.75; }
}

@keyframes blobFloat4 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(-35px, -55px) rotate(12deg); }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(52px);
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  filter: blur(4px);
}

.reveal.is-visible {
  filter: blur(0);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal--fade {
  transform: none;
}

.reveal--left {
  transform: translateX(-52px);
}

.reveal--left.is-visible {
  transform: translateX(0);
}

.reveal--right {
  transform: translateX(52px);
}

.reveal--right.is-visible {
  transform: translateX(0);
}

.reveal--scale {
  transform: scale(0.86);
  filter: blur(6px);
}

.reveal--scale.is-visible {
  transform: scale(1);
}

/* Hero entrance */
.hero-animate {
  opacity: 0;
  transform: translateY(48px) scale(0.96);
  filter: blur(8px);
  animation: heroEnter 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-animate--1 { animation-delay: 0.08s; }
.hero-animate--2 { animation-delay: 0.2s; }
.hero-animate--3 { animation-delay: 0.34s; }
.hero-animate--4 { animation-delay: 0.48s; }
.hero-animate--5 { animation-delay: 0.62s; }
.hero-animate--6 { animation-delay: 0.76s; }
.hero-animate--7 { animation-delay: 0.3s; }
.hero-animate--8 { animation-delay: 0.48s; }
.hero-animate--9 { animation-delay: 0.66s; }
.hero-animate--10 { animation-delay: 0.84s; }

@keyframes heroEnter {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

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

body.lang-pt .t--en,
body.lang-en .t--pt {
  display: none !important;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  width: 100%;
}

/* Tags / pills */
.tag {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.tag--accent {
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid rgba(56, 189, 248, 0.35);
}

.tag--dark {
  background: rgba(0, 0, 0, 0.35);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.pill {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  background: var(--accent-dim);
  color: var(--accent-2);
  border: 1px solid rgba(34, 211, 238, 0.25);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.75rem;
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
}

header.scrolled .header-bar-wrap {
  padding-top: 0.45rem;
  padding-bottom: 0.45rem;
}

header.scrolled .nav-floating {
  background: rgba(15, 20, 25, 0.97);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(56, 189, 248, 0.08);
}

.header-bar-wrap {
  padding: 0.65rem 0;
  transition: padding 0.3s ease;
}

.nav-floating {
  border-radius: 18px;
  background: rgba(21, 27, 35, 0.88);
  border: 1px solid rgba(148, 163, 184, 0.12);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  transition: box-shadow 0.3s ease, background 0.3s ease;
}

.nav-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.45rem 1rem;
  background: rgba(0, 0, 0, 0.22);
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.site-tabs {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  background: rgba(15, 20, 25, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.14);
  flex-shrink: 0;
}

.site-tabs--mobile {
  width: 100%;
  margin-bottom: 0.5rem;
  justify-content: center;
}

.site-tab {
  padding: 0.4rem 0.85rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  border-radius: 999px;
  white-space: nowrap;
  transition: color 0.2s, background 0.2s, box-shadow 0.2s;
}

.site-tab:hover {
  color: var(--text);
}

.site-tab--active {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.35), rgba(34, 211, 238, 0.2));
  color: var(--text);
  box-shadow: 0 1px 8px rgba(56, 189, 248, 0.2);
}

.site-tab__sm {
  display: none !important;
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 1rem;
  min-height: 3.25rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  font-weight: 600;
  font-size: 0.92rem;
  flex-shrink: 0;
  max-width: min(200px, 28vw);
  transition: color 0.2s;
}

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

.logo-icon {
  flex-shrink: 0;
  border-radius: 10px;
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.25);
}

.logo-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.logo--drone .logo-text {
  max-width: 140px;
}

.nav-desktop {
  display: none;
  list-style: none;
  align-items: center;
  justify-content: center;
  flex: 1;
  gap: 0.15rem;
  padding: 0 0.5rem;
  min-width: 0;
}

.nav-desktop a {
  display: block;
  color: var(--text-muted);
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 0.4rem 0.55rem;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}

.nav-desktop a:hover {
  color: var(--text);
  background: rgba(56, 189, 248, 0.08);
}

.nav-desktop a.is-active {
  color: var(--accent);
  background: rgba(56, 189, 248, 0.12);
  box-shadow: inset 0 0 0 1px rgba(56, 189, 248, 0.2);
}

.nav-desktop--compact {
  flex: 0 1 auto;
  gap: 0.25rem;
}

.nav-link--highlight {
  color: var(--accent) !important;
  background: rgba(56, 189, 248, 0.12) !important;
  border: 1px solid rgba(56, 189, 248, 0.35);
  font-weight: 600;
}

.nav-responsive .nav-mobile-site {
  color: var(--accent);
  font-weight: 600;
  border: 1px solid rgba(56, 189, 248, 0.35);
  background: rgba(56, 189, 248, 0.1);
  text-align: center;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}

.lang-switch {
  display: flex;
  padding: 2px;
  border-radius: 999px;
  background: rgba(15, 20, 25, 0.5);
  border: 1px solid rgba(148, 163, 184, 0.14);
}

.lang-btn {
  background: transparent;
  color: var(--text-muted);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.3rem 0.55rem;
  cursor: pointer;
  border: none;
  border-radius: 999px;
  font-family: inherit;
  transition: color 0.2s, background 0.2s;
}

.lang-btn--active {
  background: rgba(56, 189, 248, 0.2);
  color: var(--accent);
}

.btn--nav {
  padding: 0.45rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: 999px;
  white-space: nowrap;
}

.btn--nav-cv {
  background: rgba(56, 189, 248, 0.12);
  color: var(--accent);
  border: 1px solid rgba(56, 189, 248, 0.28);
}

.btn--nav-cv:hover {
  background: rgba(56, 189, 248, 0.22);
  color: var(--text);
  transform: none;
  box-shadow: none;
}

.btn--nav-cv .btn-icon {
  stroke: currentColor;
}

.btn--nav-wa {
  background: rgba(37, 211, 102, 0.15);
  color: #4ade80;
  border: 1px solid rgba(37, 211, 102, 0.35);
}

.btn--nav-wa:hover {
  background: rgba(37, 211, 102, 0.28);
  color: #fff;
  transform: none;
  box-shadow: none;
}

.menu-hamburguer {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  padding: 8px;
}

.menu-hamburguer span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.menu-hamburguer.change span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-hamburguer.change span:nth-child(2) {
  opacity: 0;
}

.menu-hamburguer.change span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-responsive {
  display: none;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem var(--pad-x) 1.25rem;
  padding-bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
  background: rgba(15, 20, 25, 0.98);
  border-bottom: 1px solid var(--border);
}

.nav-responsive.active {
  display: flex;
}

.nav-responsive a {
  color: var(--text-muted);
  font-weight: 500;
  padding: 0.5rem 0.65rem;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}

.nav-responsive a:hover {
  color: var(--text);
  background: rgba(56, 189, 248, 0.08);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.65rem 1.15rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  border: none;
  font-family: inherit;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
}

.btn:hover {
  transform: translateY(-3px) scale(1.02);
}

.btn--whatsapp {
  background: var(--whatsapp);
  color: #fff;
}

.btn--whatsapp:hover {
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
}

.btn--outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn--outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn--cv {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  background-size: 200% 200%;
  color: #0f1419;
  font-weight: 700;
  animation: btnGradient 4s ease infinite;
}

.btn--cv:hover {
  box-shadow: 0 6px 24px rgba(56, 189, 248, 0.4);
  color: #0f1419;
}

@keyframes btnGradient {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.btn--lg {
  padding: 0.75rem 1.35rem;
  font-size: 0.95rem;
}

.btn-icon {
  flex-shrink: 0;
}

.btn--cv .btn-icon {
  stroke: #0f1419;
}

.btn--sm .btn-icon {
  width: 14px;
  height: 14px;
}

.btn--sm {
  padding: 0.45rem 0.85rem;
  font-size: 0.8rem;
}

.btn--nav-cv,
.nav-wa {
  display: none;
}

/* Hero */
.hero {
  position: relative;
  padding: 2.5rem 0 4.5rem;
  background: transparent;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 90% 60% at 72% 5%, rgba(56, 189, 248, 0.22), transparent 50%),
    radial-gradient(ellipse 55% 45% at 8% 92%, rgba(34, 211, 238, 0.14), transparent),
    radial-gradient(ellipse 40% 35% at 50% 50%, rgba(99, 102, 241, 0.08), transparent);
  pointer-events: none;
  animation: heroGlowPulse 8s ease-in-out infinite;
}

.hero-glow--drone {
  background: radial-gradient(ellipse 80% 55% at 25% 20%, rgba(34, 211, 238, 0.2), transparent 50%),
    radial-gradient(ellipse 60% 50% at 85% 70%, rgba(37, 211, 102, 0.12), transparent),
    radial-gradient(ellipse 45% 40% at 55% 45%, rgba(56, 189, 248, 0.1), transparent);
}

@keyframes heroGlowPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.72; }
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.hero-content h1 {
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 0.5rem;
}

.hero-subtitle {
  color: var(--accent);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.hero-subtitle .hero-cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  margin-left: 2px;
  vertical-align: text-bottom;
  background: var(--accent);
  animation: cursorBlink 1s step-end infinite;
}

@keyframes cursorBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.hero-desc {
  color: var(--text-muted);
  max-width: 36rem;
  margin-bottom: 1.5rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 2rem;
}

.hero-stats {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.hero-stats li {
  background: rgba(26, 34, 45, 0.65);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.25s;
}

.hero-stats li:hover {
  border-color: rgba(56, 189, 248, 0.5);
  box-shadow: 0 16px 40px rgba(56, 189, 248, 0.2), 0 0 24px rgba(56, 189, 248, 0.08);
  transform: translateY(-6px) scale(1.02);
}

.hero-stats strong {
  display: block;
  font-size: 1.1rem;
  color: var(--accent);
  margin-bottom: 0.15rem;
}

.hero-stats span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.hero-visual {
  text-align: center;
}

.hero-photo-wrap {
  display: inline-block;
  padding: 4px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2), #818cf8, var(--accent));
  background-size: 300% 300%;
  box-shadow: 0 0 64px rgba(56, 189, 248, 0.35), 0 0 120px rgba(34, 211, 238, 0.15);
  animation: gradientRing 4s ease infinite, photoGlow 3s ease-in-out infinite;
}

@keyframes gradientRing {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes photoGlow {
  0%, 100% { box-shadow: 0 0 64px rgba(56, 189, 248, 0.35), 0 0 120px rgba(34, 211, 238, 0.15); }
  50% { box-shadow: 0 0 80px rgba(56, 189, 248, 0.55), 0 0 160px rgba(34, 211, 238, 0.25); }
}

.hero-photo {
  display: block;
  width: min(280px, 70vw);
  height: min(280px, 70vw);
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--bg);
}

.hero-location {
  margin-top: 1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Sections */
.section {
  padding: 3.5rem 0;
}

.section--alt {
  background: var(--bg-alt);
}

.section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

.section-lead {
  color: var(--text-muted);
  max-width: 40rem;
  margin-bottom: 2rem;
}

/* About */
.about-grid {
  display: grid;
  gap: 2rem;
}

.about-p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  max-width: 48rem;
}

.recruiter-note {
  margin-top: 1.25rem;
  padding: 1rem 1.15rem;
  border-radius: var(--radius);
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid rgba(34, 211, 238, 0.35);
  border-left: 4px solid var(--accent-2);
}

.recruiter-note p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin: 0;
}

.recruiter-note strong {
  color: var(--accent);
}

.highlights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.highlight-card {
  background: rgba(26, 34, 45, 0.7);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.25s;
}

.highlight-card:hover {
  border-color: rgba(56, 189, 248, 0.55);
  box-shadow: 0 20px 48px rgba(56, 189, 248, 0.2), 0 12px 32px rgba(0, 0, 0, 0.3);
  transform: translateY(-8px) scale(1.02);
}

.highlight-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0;
}

.highlight-card strong {
  color: var(--text);
}

.highlight-card--featured {
  background: rgba(34, 211, 238, 0.06);
  border-color: rgba(34, 211, 238, 0.4);
  border-left: 4px solid var(--accent-2);
}

.highlight-card--featured p {
  color: var(--text);
}

.about-cards {
  display: grid;
  gap: 1rem;
}

.info-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.info-card h3 {
  font-size: 0.95rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.info-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Skills */
.skills-grid {
  display: grid;
  gap: 1.25rem;
}

.skills-grid--wide {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.skill-group {
  background: rgba(26, 34, 45, 0.7);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.25s;
}

.skill-group:hover {
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow: 0 16px 40px rgba(56, 189, 248, 0.15);
  transform: translateY(-6px) scale(1.01);
}

.skill-group h3 {
  font-size: 0.95rem;
  margin-bottom: 0.65rem;
  color: var(--accent);
}

.skill-group p {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.55;
  margin: 0;
}

/* Timeline */
.timeline {
  position: relative;
  padding-left: 1.5rem;
  border-left: 2px solid rgba(56, 189, 248, 0.35);
}

.timeline-item {
  position: relative;
  padding-bottom: 2.5rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -1.65rem;
  top: 0.35rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  transition: transform 0.3s, box-shadow 0.3s;
}

.timeline-item.is-visible::before {
  animation: timelinePulse 2.5s ease-in-out infinite;
}

@keyframes timelinePulse {
  0%, 100% { box-shadow: 0 0 12px var(--accent); }
  50% { box-shadow: 0 0 20px var(--accent), 0 0 32px rgba(56, 189, 248, 0.3); }
}

.timeline-item.is-visible:hover::before {
  transform: scale(1.35);
}

.timeline-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin-bottom: 0.35rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.timeline-item h3 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.timeline-en {
  font-weight: 400;
  color: var(--text-muted);
  font-size: 0.9rem;
}

body.lang-pt .timeline-en {
  display: none;
}

.timeline-company {
  color: var(--accent-2);
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.timeline-context {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-style: italic;
  margin-bottom: 0.75rem;
}

.pill--featured {
  background: rgba(34, 211, 238, 0.2);
  color: var(--accent-2);
  border-color: rgba(34, 211, 238, 0.45);
  font-weight: 700;
}

.pill--freelance {
  background: rgba(168, 85, 247, 0.18);
  color: #c4b5fd;
  border-color: rgba(168, 85, 247, 0.4);
  font-weight: 700;
}

.timeline--freelance {
  border-left-color: rgba(168, 85, 247, 0.4);
}

.timeline--freelance .timeline-item::before {
  background: #a855f7;
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.65);
}

.timeline--freelance .timeline-item.is-visible::before {
  animation: timelinePulseFreelance 2.5s ease-in-out infinite;
}

@keyframes timelinePulseFreelance {
  0%, 100% { box-shadow: 0 0 12px rgba(168, 85, 247, 0.65); }
  50% { box-shadow: 0 0 20px rgba(168, 85, 247, 0.85), 0 0 32px rgba(168, 85, 247, 0.3); }
}

.timeline-context a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.timeline-context a:hover {
  color: var(--accent-2);
}

.timeline-bullets {
  list-style: disc;
  padding-left: 1.25rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.timeline-bullets li {
  margin-bottom: 0.35rem;
}

.timeline-item--compact p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Portfolio carousel */
.portfolio-carousel-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.portfolio-carousel {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding: 0.5rem 0 1rem;
  flex: 1;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-dim) transparent;
}

.portfolio-carousel.is-dragging {
  scroll-snap-type: none;
  cursor: grabbing;
}

.portfolio-carousel::-webkit-scrollbar {
  height: 6px;
}

.portfolio-carousel::-webkit-scrollbar-thumb {
  background: var(--accent-dim);
  border-radius: 3px;
}

.project-card {
  flex: 0 0 min(320px, 85vw);
  scroll-snap-align: start;
  background: rgba(26, 34, 45, 0.75);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.25s;
}

.project-card:hover {
  border-color: rgba(56, 189, 248, 0.5);
  box-shadow: 0 20px 48px rgba(56, 189, 248, 0.18);
  transform: translateY(-8px) scale(1.02);
}

.project-card h3 {
  font-size: 1.05rem;
}

.project-badge {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.project-badge--freelance {
  color: #c4b5fd;
}

.project-card--freelance {
  border-color: rgba(168, 85, 247, 0.25);
}

.project-card--freelance:hover {
  border-color: rgba(168, 85, 247, 0.45);
  box-shadow: 0 20px 48px rgba(168, 85, 247, 0.12);
}

.project-card .btn {
  margin-top: auto;
  align-self: flex-start;
}

.project-card p {
  color: var(--text-muted);
  font-size: 0.88rem;
}

.project-features {
  list-style: none;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.project-features li::before {
  content: '→ ';
  color: var(--accent);
}

.project-card--oss .btn {
  margin-top: auto;
  align-self: flex-start;
}

.portfolio-nav {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

.portfolio-nav:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent);
}

.portfolio-nav:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

/* Drone page */
.page-drone .hero--drone {
  background: transparent;
  overflow: hidden;
}

.hero-grid--drone {
  align-items: stretch;
}

.hero-visual--drone {
  display: flex;
  align-items: center;
}

.drone-portfolio--hero {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}

.drone-trust-note {
  margin-top: 1.25rem;
  background: rgba(37, 211, 102, 0.08);
  border-color: rgba(37, 211, 102, 0.35);
  border-left-color: #4ade80;
}

.drone-trust-note strong {
  color: #4ade80;
}

@media (min-width: 768px) {
  .hero-grid--drone {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

/* (mobile header tweaks moved to consolidated block below) */

/* Drone portfolio */
.drone-grid {
  display: grid;
  gap: 2rem;
  align-items: start;
}

.drone-about .section-lead {
  margin-bottom: 1.25rem;
}

.drone-portfolio {
  display: grid;
  gap: 1rem;
}

.drone-card {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  padding: 1.25rem 1.35rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: rgba(26, 34, 45, 0.72);
  color: var(--text);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s, border-color 0.3s;
}

.drone-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.35);
}

.drone-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  flex-shrink: 0;
}

.drone-card--youtube .drone-card__icon {
  background: rgba(255, 0, 0, 0.15);
  color: #ff4444;
}

.drone-card--youtube:hover {
  border-color: rgba(255, 68, 68, 0.5);
}

.drone-card--instagram .drone-card__icon {
  background: linear-gradient(135deg, rgba(225, 48, 108, 0.2), rgba(131, 58, 180, 0.2));
  color: #e1306c;
}

.drone-card--instagram:hover {
  border-color: rgba(225, 48, 108, 0.45);
}

.drone-card--site {
  border-color: rgba(56, 189, 248, 0.4);
  background: linear-gradient(135deg, rgba(21, 27, 35, 0.98), rgba(56, 189, 248, 0.1));
}

.drone-card--site .drone-card__icon {
  background: rgba(56, 189, 248, 0.22);
  color: var(--accent);
}

.drone-card--site:hover {
  border-color: rgba(56, 189, 248, 0.75);
  box-shadow: 0 24px 56px rgba(56, 189, 248, 0.28), 0 0 40px rgba(56, 189, 248, 0.1);
}

.drone-card--site .drone-card__cta {
  color: var(--accent-2);
  font-weight: 500;
}

.drone-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.drone-card__body strong {
  font-size: 1.05rem;
}

.drone-card__handle {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  color: var(--accent);
}

.drone-card__cta {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

@media (min-width: 768px) {
  .drone-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Education */
.edu-grid {
  display: grid;
  gap: 1rem;
  margin-bottom: 2rem;
}

.edu-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.edu-card h3 {
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

.edu-meta {
  font-size: 0.85rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.edu-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.edu-card--wide {
  grid-column: 1 / -1;
}

.edu-article {
  margin-top: 0.5rem;
  font-size: 0.85rem !important;
  color: var(--text-muted) !important;
}

.edu-article em {
  color: var(--accent);
  font-style: normal;
}

.certs-title {
  font-size: 1rem;
  margin-bottom: 0.75rem;
  color: var(--accent);
}

.certs-list {
  list-style: none;
  display: grid;
  gap: 0.5rem;
}

.certs-list li {
  padding: 0.65rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* Contact */
.contact-section {
  position: relative;
  background: radial-gradient(ellipse 70% 55% at 50% 100%, rgba(56, 189, 248, 0.18), transparent),
    radial-gradient(ellipse 40% 30% at 20% 80%, rgba(34, 211, 238, 0.08), transparent);
}

.page-drone .contact-section {
  background: radial-gradient(ellipse 70% 55% at 50% 100%, rgba(34, 211, 238, 0.16), transparent),
    radial-gradient(ellipse 40% 30% at 80% 70%, rgba(37, 211, 102, 0.1), transparent);
}

.contact-inner {
  text-align: center;
}

.contact-text {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  background: var(--bg-alt);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: center;
}

.footer-brand {
  font-weight: 600;
  font-size: 0.95rem;
}

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

.footer-links a,
.footer-link-cookies {
  color: var(--text-muted);
  font-size: 0.9rem;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.footer-links a:hover,
.footer-link-cookies:hover {
  color: var(--accent);
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Cookie modal */
.cookie-modal {
  position: fixed;
  inset: auto 1rem 1rem 1rem;
  z-index: 200;
  max-width: 420px;
  margin-left: auto;
}

.cookie-modal[hidden] {
  display: none;
}

body.cookie-modal-open {
  overflow: hidden;
}

.cookie-modal__box {
  background: var(--bg-card);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}

.cookie-modal__box h2 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.cookie-modal__lead,
.cookie-modal__text {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.cookie-modal__details {
  margin-bottom: 0.75rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.cookie-modal__details[hidden] {
  display: none;
}

.cookie-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Responsive */
@media (max-width: 520px) {
  .site-tab__lg {
    display: none !important;
  }

  .site-tab__sm.t--pt,
  .site-tab__sm.t--en {
    display: inline !important;
  }

  body.lang-pt .site-tab__sm.t--en,
  body.lang-en .site-tab__sm.t--pt {
    display: none !important;
  }
}

@media (min-width: 521px) and (max-width: 960px) {
  .site-tab {
    font-size: 0.68rem;
    padding: 0.36rem 0.6rem;
  }
}

@media (min-width: 768px) {
  .nav-desktop {
    display: flex;
  }

  .menu-hamburguer {
    display: none;
  }

  .btn--nav-cv,
  .nav-wa {
    display: inline-flex;
  }

  .nav-responsive {
    display: none !important;
  }

  .hero-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-stats {
    grid-template-columns: repeat(4, 1fr);
  }

  .about-grid {
    grid-template-columns: 1.2fr 1fr;
  }

  .about-cards {
    grid-template-columns: 1fr;
  }

  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .edu-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .skills-grid:not(.skills-grid--wide) {
    grid-template-columns: repeat(4, 1fr);
  }

  .nav-desktop a {
    font-size: 0.875rem;
    padding: 0.4rem 0.65rem;
  }

  .logo {
    max-width: 220px;
  }
}

@media (min-width: 1200px) {
  .nav-desktop {
    gap: 0.35rem;
  }
}

/* Mobile */
@media (max-width: 767px) {
  :root {
    --header-h: 7.5rem;
    --pad-x: 1rem;
  }

  .header-bar-wrap {
    padding: 0.5rem 0;
  }

  .nav-floating {
    border-radius: 14px;
  }

  .nav-top {
    gap: 0.5rem;
    padding: 0.4rem 0.75rem;
  }

  .site-tabs {
    flex: 1;
    min-width: 0;
    max-width: calc(100% - 3.5rem);
  }

  .site-tab {
    flex: 1;
    min-width: 0;
    text-align: center;
    justify-content: center;
    display: inline-flex;
    align-items: center;
  }

  .nav-wrapper {
    padding: 0.5rem 0.75rem;
    gap: 0.5rem;
  }

  .logo {
    max-width: min(160px, 48vw);
    font-size: 0.85rem;
  }

  .logo-icon {
    width: 32px;
    height: 32px;
  }

  .nav-responsive .btn {
    width: 100%;
    justify-content: center;
  }

  body.nav-menu-open {
    overflow: hidden;
  }

  .hero {
    padding: 1.75rem 0 3rem;
  }

  .hero-subtitle {
    font-size: 0.72rem;
    line-height: 1.45;
    word-break: break-word;
  }

  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-cta .btn {
    width: 100%;
  }

  .hero-stats {
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }

  .hero-stats li {
    padding: 0.65rem 0.75rem;
  }

  .section {
    padding: 2.75rem 0;
  }

  .highlights-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-carousel-wrap {
    gap: 0.25rem;
  }

  .portfolio-nav {
    width: 36px;
    height: 36px;
    font-size: 1.25rem;
  }

  .project-card {
    flex: 0 0 min(300px, calc(100vw - var(--pad-x) * 2 - 5rem));
  }

  .timeline {
    padding-left: 1.15rem;
  }

  .timeline-item::before {
    left: -1.45rem;
  }

  .timeline-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
  }

  .contact-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .contact-actions .btn {
    width: 100%;
  }

  .cookie-modal {
    inset: auto var(--pad-x) var(--pad-x);
    max-width: none;
    left: var(--pad-x);
    right: var(--pad-x);
    bottom: calc(var(--pad-x) + env(safe-area-inset-bottom, 0px));
  }

  .cookie-modal__actions {
    flex-direction: column;
  }

  .cookie-modal__actions .btn {
    width: 100%;
  }

  .footer-links {
    flex-direction: column;
    gap: 0.65rem;
  }
}

@media (max-width: 380px) {
  .site-tab {
    font-size: 0.58rem;
    padding: 0.32rem 0.35rem;
  }

  .hero-content h1 {
    font-size: 1.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn:hover,
  .highlight-card:hover,
  .skill-group:hover,
  .project-card:hover,
  .hero-stats li:hover,
  .drone-card:hover {
    transform: none;
  }

  .page-bg__blob,
  .hero-photo-wrap,
  .hero-glow,
  .btn--cv,
  .timeline-item.is-visible::before,
  .timeline--freelance .timeline-item.is-visible::before {
    animation: none;
  }

  .reveal,
  .hero-animate {
    opacity: 1;
    transform: none;
    filter: none;
    animation: none;
    transition: none;
  }
}
