:root {
  --bg: #f5f5f5;
  --card: #ffffff;
  --text: #111111;
  --text-2: #555555;
  --accent: #2D9CFF;
  --border: #e0e0e0;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Inter, Arial;
  background: var(--bg);
  color: var(--text);
}

.container { width: min(1100px, 92%); margin-inline: auto; }


.topbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
}
.brand {
  font-weight: 700;
  color: var(--accent);
}
.menu a {
  color: var(--text-2);
  text-decoration: none;
  margin-left: 18px;
  font-size: 0.95rem;
}
.menu a:hover { color: var(--accent); }


.hero {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 32px 0 10px;
}
.avatar {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 16px;
  border: 2px solid var(--border);
}
.intro h1 { margin: 0 0 6px; font-size: 1.9rem; }
.tagline { margin: 0; color: var(--text-2); line-height: 1.55; }


.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px;
  margin: 16px auto;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}
.card h2 {
  margin: 0 0 14px;
  font-size: 1.4rem;
  color: var(--accent);
}


.info-block {
  margin-bottom: 16px;
  padding-left: 8px;
  border-left: 3px solid var(--accent);
}
.info-block strong {
  font-size: 1.05rem;
  color: var(--text);
}
.info-block p {
  margin: 4px 0;
  color: var(--text-2);
  font-size: 0.95rem;
}


.list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.contacts i {
  color: var(--accent);
  margin-right: 10px;
  width: 20px;
  text-align: center;
}
.list li:last-child { border-bottom: none; }


.footer {
  margin-top: 26px;
  border-top: 1px solid var(--border);
  background: var(--card);
}
.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  font-size: 0.95rem;
  color: var(--text-2);
}
.footer .social a {
  color: var(--text-2);
  text-decoration: none;
  margin-left: 16px;
}
.footer .social a:hover { color: var(--accent); }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }


@media (max-width: 720px) {
  .hero { flex-direction: column; align-items: flex-start; }
  .avatar { width: 120px; height: 120px; border-radius: 12px; }
  .menu { display: none; }
}


.resume-button {
  margin-top: 14px;
}

.btn-cv {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: transparent;
  color: var(--accent);
  border: 1.6px solid var(--accent);
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.btn-cv:hover {
  background-color: var(--accent);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.btn-cv i {
  font-size: 0.9rem;
}

.footer {
  background-color: var(--accent);
  padding: 20px 0;
  text-align: center;
  color: white;
  border-top: none;
  border-radius: 0 0 10px 10px;
  margin-top: 30px;
}

.social-footer {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin-bottom: 10px;
}

.social-footer a {
  color: white;
  font-size: 1.8rem;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.social-footer a:hover {
  transform: translateY(-4px);
  opacity: 0.8;
}

.footer p {
  font-size: 0.9rem;
  color: white;
  margin: 0;
}

.lang-switch {
  display: flex;
  gap: 6px;
  align-items: center;
}

.lang-btn {
  background: transparent;
  border: 1.5px solid var(--accent);
  color: var(--accent);
  font-weight: 600;
  border-radius: 6px;
  padding: 3px 8px;
  cursor: pointer;
  transition: 0.3s ease;
  font-size: 0.85rem;
}

.lang-btn.active,
.lang-btn:hover {
  background: var(--accent);
  color: white;
}


.topbar .nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.topbar .lang-switch {
  margin-left: auto;
  margin-right: 15px;
}

@media (max-width: 720px) {
  .lang-switch {
    margin-left: 0;
  }

  .lang-btn {
    padding: 5px 10px;
    font-size: 0.9rem;
  }
}

.card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 14px rgba(45, 156, 255, 0.15);
}


a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.25s ease;
}
a:hover {
  color: #1b6fcf;
  text-decoration: underline;
}


.avatar {
  transition: transform 0.4s ease, box-shadow 0.3s ease;
}
.avatar:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}


.btn-cv {
  transition: all 0.3s ease, box-shadow 0.3s ease;
}
.btn-cv:hover {
  background-color: var(--accent);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 5px 10px rgba(45, 156, 255, 0.3);
}


.social-footer a {
  color: white;
  font-size: 1.8rem;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.social-footer a:hover {
  transform: translateY(-4px) scale(1.05);
  opacity: 0.85;
}


.card:focus-within,
.card:hover {
  border-color: rgba(45, 156, 255, 0.4);
}


section {
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
@media (max-width: 720px) {
  .card:hover,
  .avatar:hover {
    transform: none;
    box-shadow: none;
  }
}

body {
  font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, Inter, Arial, sans-serif;
}


.brand {
  display: flex;
  align-items: center;
}

.brand a {
  display: inline-flex;
  align-items: center;
}

.brand .logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  cursor: pointer;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.brand .logo:hover {
  transform: scale(1.1);
  opacity: 0.9;
}


.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
}

@media (max-width: 720px) {
  .brand .logo {
    width: 36px;
    height: 36px;
  }
}



.brand .logo {
  width: 60px;              
  height: 60px;
  transform: scale(1.6);    
  transform-origin: center; 
  object-fit: contain;
  transition: transform 0.3s ease, opacity 0.3s ease;
}


.brand .logo:hover {
  transform: scale(1.08);
}


@media (max-width: 720px) {
  .brand .logo {
    width: 32px;
    height: 32px;
  }
}

.flag {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;

  
  aspect-ratio: 1/1;
  display: block;
}


.lang-switch {
  display: flex;
  gap: 8px;
  align-items: center;
}


.lang-btn {
  background: transparent;
  border: 1.5px solid var(--accent);
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}


.lang-btn:hover,
.lang-btn.active {
  background: var(--accent);
}


.lang-btn.active .flag,
.lang-btn:hover .flag {
  filter: none;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* mais colunas */
  gap: 10px;
  margin-top: 15px;
}

.tech {
  background: #f1f1f1;
  padding: 10px;
  text-align: center;
  border-radius: 8px;
  font-weight: 500;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.tech i {
  font-size: 24px;
}
