:root {
  /* Modo claro */
  color-scheme: light;
  --bg: #f7f9fc;
  --surface: #ffffff;
  --surface-2: #eef2fb;
  --text: #2f3140;
  --text-strong: #0f1117;
  --accent: #0084ff;
  --border: #dce3f0;
  --shadow-elev: 0 10px 24px #0f161e1f;
  --radius: 18px;
  --radius-sm: 10px;
  --grid-line: #0000000d;
  --header-bg: #ffffffd1;
  --header-border: #0000000f;
  --navbar-hover: #0000000d;
  --footer-bg: #f0f3f9;
  --gradient-primary: #0084ff;
  --gradient-name: #0084ff;
  --glow-color: #0084ff4d;
}

:root[data-theme="dark"] {
  /* Modo escuro */
  color-scheme: dark;
  --bg: #0f0f10;
  --surface: #1a1a1a;
  --surface-2: #222222;
  --text: #c5c5c5;
  --text-strong: #ffffff;
  --accent: #0084ff;
  --border: #2e2e2e;
  --shadow-elev: 0 10px 24px #00000059;
  --grid-line: #ffffff0f;
  --header-bg: #19191ab3;
  --header-border: #ffffff14;
  --navbar-hover: #ffffff14;
  --footer-bg: #151515;
  --gradient-name: #0084ff;
  --glow-color: #0084ff80;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    /* Fallback para tema do SO */
    color-scheme: dark;
    --bg: #0f0f10;
    --surface: #1a1a1a;
    --surface-2: #222222;
    --text: #c5c5c5;
    --text-strong: #ffffff;
    --accent: #0084ff;
    --border: #2e2e2e;
    --shadow-elev: 0 10px 24px #00000059;
    --grid-line: #ffffff0f;
    --header-bg: #19191ab3;
    --header-border: #ffffff14;
    --navbar-hover: #ffffff14;
    --footer-bg: #151515;
    --gradient-name: #0084ff;
    --glow-color: #0084ff80;
  }
}

/* Animações base */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes glowPulse {
  0%, 100% {
    text-shadow: 0 0 10px var(--glow-color);
  }
  50% {
    text-shadow: 0 0 20px var(--glow-color);
  }
}

@keyframes themeRipple {
  0% {
    transform: scale(0.25);
    opacity: 0.35;
  }
  70% {
    transform: scale(1.5);
    opacity: 0.2;
  }
  100% {
    transform: scale(1.8);
    opacity: 0;
  }
}

@keyframes buttonRipple {
  0% {
    width: 0;
    height: 0;
    opacity: 1;
  }
  100% {
    width: 300px;
    height: 300px;
    opacity: 0;
  }
}

@keyframes heartbeat {
  0%, 100% {
    transform: scale(1);
  }
  14% {
    transform: scale(1.15);
  }
  28% {
    transform: scale(1);
  }
  42% {
    transform: scale(1.15);
  }
  70% {
    transform: scale(1);
  }
}

@keyframes heartGlow {
  0%, 100% {
    filter: drop-shadow(0 0 0px rgba(255, 0, 0, 0));
  }
  50% {
    filter: drop-shadow(0 0 8px rgba(255, 0, 0, 0.6));
  }
}

/* Reset e base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: "Poppins", sans-serif;
  background-color: var(--bg);
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 30px 30px;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.6s ease, color 0.6s ease, background-image 0.6s ease;
  cursor: default;
}
body, button, a {
  -webkit-user-select: none;
  user-select: none;
}
a {
  text-decoration: none;
  cursor: pointer;
  position: relative;
}
.container,
nav {
  max-width: 1100px;
  width: 90%;
  margin: 0 auto;
}
.container {
  padding: 40px 20px;
}

html {
  scroll-behavior: smooth;
  touch-action: manipulation;
}
body {
  touch-action: manipulation;
}
section {
  scroll-margin-top: 100px;
}

@media (max-width: 900px) {
  section {
    scroll-margin-top: 420px;
  }
}

/* Cabeçalho e Navegação */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--header-bg);
  backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid var(--header-border);
  transition: background 0.6s ease, border-bottom-color 0.6s ease;
}
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  padding: 6px 0;
}
.logo {
  position: relative;
  width: 200px;
  height: 44px;
  display: flex;
  align-items: center;
}
.logo img {
  max-width: 200px;
  height: 100%;
  margin-top: 0;
  transition: opacity 0.3s ease;
  position: absolute;
  inset: 0;
  object-fit: contain;
}
.logo .logo-light {
  opacity: 1;
}
.logo .logo-dark {
  opacity: 0;
}
:root[data-theme="dark"] .logo .logo-light {
  opacity: 0;
}
:root[data-theme="dark"] .logo .logo-dark {
  opacity: 1;
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  justify-content: flex-end;
  flex-wrap: wrap;
}
.navbar {
  display: flex;
  margin-top: 5px;
  gap: 6px 12px;
  flex-wrap: wrap;
  align-items: center;
}
.navbar div {
  padding: 8px 6px;
}
.navbar a {
  color: var(--text-strong);
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  transition: color 0.3s ease, background-color 0.3s ease, transform 0.2s ease;
  position: relative;
  overflow: hidden;
  display: inline-block;
}
.navbar a::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(0, 132, 255, 0.15);
  transform: translate(-50%, -50%);
  transition: width 0.4s ease, height 0.4s ease;
  pointer-events: none;
}
.navbar a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
}
.navbar a:hover::before {
  width: 120px;
  height: 120px;
}
.navbar a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}
.navbar a:hover {
  background-color: var(--navbar-hover);
  transform: translateY(-3px);
  color: var(--accent);
  font-weight: 500;
}
.navbar a:active {
  transform: translateY(-1px);
}

/* Botão de alternância de tema */
.theme-toggle {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-strong);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: var(--shadow-elev);
  transition: transform 0.2s ease, box-shadow 0.35s ease, border-color 0.6s ease, background-color 0.6s ease, color 0.6s ease;
  overflow: hidden;
  will-change: transform, box-shadow;
}
.theme-toggle:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 12px 24px #0000001f;
  border-color: var(--accent);
}
.theme-toggle:active {
  transform: translateY(0) scale(0.98);
}
.theme-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-color: var(--accent);
}
.theme-ripple {
  position: absolute;
  width: 140%;
  height: 140%;
  border-radius: 999px;
  background: radial-gradient(circle at center, #0084ff4d, transparent 65%);
  transform: scale(0);
  opacity: 0;
  pointer-events: none;
}
.theme-toggle.rippling .theme-ripple {
  animation: themeRipple 0.6s ease;
}
.theme-icon {
  position: absolute;
  width: 22px;
  height: 22px;
  object-fit: contain;
  display: block;
  transition: opacity 0.6s ease, transform 0.6s ease, filter 0.6s ease;
}
.theme-icon.sun {
  opacity: 1;
  transform: scale(1);
  filter: none;
}
.theme-icon.moon {
  opacity: 0;
  transform: scale(0.6) rotate(-20deg);
  filter: brightness(0) invert(1);
}
:root[data-theme="dark"] .theme-icon.sun {
  opacity: 0;
  transform: scale(0.6) rotate(20deg);
}
:root[data-theme="dark"] .theme-icon.moon {
  opacity: 1;
  transform: scale(1);
}

/* Menu sanduíche responsivo */
.hamburger {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  transition: transform 0.2s ease;
}
.hamburger:hover {
  transform: scale(1.1);
}
.hamburger:active {
  transform: scale(0.95);
}
.hamburger-box {
  width: 24px;
  height: 16px;
  display: inline-block;
  position: relative;
}
.hamburger-inner,
.hamburger-inner::before,
.hamburger-inner::after {
  width: 24px;
  height: 2px;
  background-color: var(--text-strong);
  position: absolute;
  left: 0;
  transform-origin: center;
  transition: transform 0.25s ease, opacity 0.25s ease, top 0.25s ease;
}
.hamburger-inner {
  top: 50%;
  transform: translateY(-50%);
}
.hamburger-inner::before {
  content: '';
  top: -8px;
}
.hamburger-inner::after {
  content: '';
  top: 8px;
}
.hamburger.is-active .hamburger-inner {
  transform: rotate(45deg);
}
.hamburger.is-active .hamburger-inner::before {
  top: 0;
  transform: rotate(90deg);
}
.hamburger.is-active .hamburger-inner::after {
  top: 0;
  opacity: 0;
}

/* Seção Início */
.home {
  text-align: center;
  animation: fadeInUp 0.8s ease-out;
}
.avatar img {
  max-width: 220px;
  width: 40%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
  margin: 0 auto;
  border-radius: 50%;
  filter: drop-shadow(0 10px 24px #00000059);
  animation: fadeInUp 0.8s ease-out;
  transition: transform 0.3s ease, filter 0.3s ease;
}
.avatar img:hover {
  transform: scale(1.08) rotateZ(-2deg);
  filter: drop-shadow(0 20px 40px #0084ff60);
}
.avatar img:active {
  transform: scale(1.02);
}
.home-text {
  max-width: 1100px;
  width: 100%;
  margin: 30px auto;
}
.home-text h1 {
  font-size: 52px;
  line-height: 1.06;
  color: var(--text-strong);
  animation: fadeInUp 0.8s ease-out 0.2s both;
}
.home-text h1 > span {
  background: var(--gradient-name);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: glowPulse 2s ease-in-out infinite;
}
.home-text p {
  font-size: 18px;
  margin-top: 30px;
}
.home-btn {
  margin-top: 30px;
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease-out 0.4s both;
}
.btn-primary,
.btn-secondary {
  padding: 14px 28px;
  border-radius: 50px;
  font-size: 18px;
  font-weight: 600;
  font-family: "Poppins", sans-serif;
  min-width: 160px;
  transition: transform 0.2s ease, box-shadow 0.3s ease, background-color 0.6s ease, color 0.6s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  will-change: transform, box-shadow;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  justify-content: center;
  text-align: center;
  line-height: 1;
  vertical-align: middle;
}
.btn-primary {
  border: 0;
  background: var(--gradient-primary);
  color: #ffffff;
  box-shadow: var(--shadow-elev);
}
.btn-primary:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 18px 35px #0084ff60;
}
.btn-primary:active {
  transform: translateY(-2px) scale(0.98);
}
.btn-secondary {
  background: var(--surface);
  border: 2px solid var(--border);
  color: var(--text-strong);
  box-shadow: none;
}
.btn-primary:hover,
.btn-secondary:hover {
  transform: translateY(-4px);
}
.btn-secondary:hover {
  border-color: var(--accent);
  background: var(--surface-2);
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 12px 24px #0084ff1a;
}
.btn-primary:active,
.btn-secondary:active {
  transform: translateY(-2px) scale(0.97);
}

/* Ripple like project buttons */
.btn-primary::before,
.btn-secondary::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  transition: width 0.4s ease, height 0.4s ease;
}
.btn-primary::before {
  background: rgba(255, 255, 255, 0.3);
}
.btn-secondary::before {
  background: rgba(0, 132, 255, 0.15);
}
.btn-primary:hover::before,
.btn-secondary:hover::before {
  width: 300px;
  height: 300px;
}

/* Icon styles in Home buttons */
.btn-primary img,
.btn-secondary img {
  width: 22px;
  height: 22px;
  transition: transform 0.3s ease;
  position: relative;
  z-index: 1;
  display: block;
  align-self: center;
}
.btn-primary img {
  filter: brightness(0) invert(1);
}
.btn-primary:hover img,
.btn-secondary:hover img {
  transform: scale(1.15);
}
:root[data-theme="dark"] .btn-secondary img {
  filter: brightness(0) invert(1);
}

/* Seção Sobre Mim */
.about-me p {
  max-width: 1100px;
  margin: 12px auto;
  line-height: 1.7;
}
.about-me ul {
  max-width: 1100px;
  margin: 12px auto;
  padding-left: 18px;
  line-height: 1.7;
}
.about-me li {
  margin: 6px 0;
}

/* Seção Stacks Mais Usadas */
.experience-with {
  text-align: center;
}
.experience-with h2 {
  text-align: center;
  font-size: 28px;
  margin-bottom: 12px;
  background: var(--gradient-primary);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.experience-with-lang {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  max-width: 1100px;
  width: 100%;
  margin: 28px auto 50px;
}
.experience-with-lang .skill {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  padding: 16px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 6px 16px #00000040;
  transition: transform 0.25s ease, box-shadow 0.5s ease, border-color 0.6s ease, background-color 0.6s ease, color 0.6s ease;
  animation: fadeInUp 0.6s ease-out backwards;
  color: var(--text-strong);
  will-change: transform, box-shadow, border-color;
}
.experience-with-lang .skill:nth-child(1) { animation-delay: 0s; }
.experience-with-lang .skill:nth-child(2) { animation-delay: 0.05s; }
.experience-with-lang .skill:nth-child(3) { animation-delay: 0.1s; }
.experience-with-lang .skill:nth-child(4) { animation-delay: 0.15s; }
.experience-with-lang .skill:nth-child(5) { animation-delay: 0.2s; }
.experience-with-lang .skill:hover {
  transform: translateY(-8px) scale(1.05);
  border-color: var(--accent);
  box-shadow: 0 16px 32px #0084ff40;
}
.experience-with-lang .skill:active {
  transform: translateY(-4px) scale(0.98);
}
.experience-with-lang .skill .skill-icon {
  width: 56px;
  height: 56px;
  transition: filter 0.6s ease, transform 0.3s ease;
}
.experience-with-lang .skill:hover .skill-icon {
  transform: scale(1.1) rotate(-5deg);
}
:root[data-theme="dark"] .experience-with-lang .skill .skill-icon {
  filter: brightness(0) invert(1);
}
.experience-with-lang .skill-label {
  color: var(--text-strong);
  font-weight: 600;
  font-size: 14px;
}
.primary-heading {
  text-align: center;
  font-size: 36px;
  animation: fadeInUp 0.6s ease-out;
  background: var(--gradient-primary);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Seção Projetos */
.projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin: 40px 0;
}
.project-item {
  background: var(--surface);
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-elev);
  transition: transform 0.25s ease, box-shadow 0.5s ease, background-color 0.6s ease, color 0.6s ease;
  animation: fadeInUp 0.6s ease-out backwards;
  display: flex;
  flex-direction: column;
  position: relative;
  will-change: transform, box-shadow;
}
.project-item:nth-child(1) { animation-delay: 0s; }
.project-item:nth-child(2) { animation-delay: 0.1s; }
.project-item:nth-child(3) { animation-delay: 0.2s; }
.project-item img {
  width: 100%;
  display: block;
  transition: transform 0.4s ease;
}
.project-item:hover img {
  transform: scale(1.08);
}
.project-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px) saturate(1.2);
  -webkit-backdrop-filter: blur(10px) saturate(1.2);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
  z-index: 1;
}
:root[data-theme="dark"] .project-content {
  background: rgba(26, 26, 26, 0.7);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.project-header {
  margin-bottom: 12px;
}
.project-header h3 {
  color: var(--text-strong);
  font-size: 1.25rem;
  margin: 0;
  font-weight: 600;
}
.project-description {
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0 0 16px 0;
  flex: 1;
}
.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 5px;
}
.tag {
  display: inline-block;
  padding: 4px 12px;
  background: var(--surface-2);
  color: var(--accent);
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid var(--border);
}
.project-item:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 25px 50px #0084ff40;
  border-color: var(--accent);
}
.project-item:active {
  transform: translateY(-4px) scale(0.98);
}

.project-links {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.btn-project {
  padding: 10px 16px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  border: 0;
  background: var(--gradient-primary);
  color: #ffffff;
  box-shadow: var(--shadow-elev);
  transition: all 0.3s ease;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  position: relative;
  overflow: hidden;
  will-change: transform, box-shadow;
}

.btn-project::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  pointer-events: none;
  transition: width 0.4s ease, height 0.4s ease;
}

.btn-project:hover::before {
  width: 300px;
  height: 300px;
}

.btn-project img {
  width: 18px;
  height: 18px;
  filter: brightness(0) invert(1);
  transition: transform 0.3s ease;
  position: relative;
  z-index: 1;
}

.btn-project:hover img {
  transform: scale(1.15);
}

.btn-project:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 18px 35px #0084ff60;
}

.btn-project:active {
  transform: translateY(-2px) scale(0.98);
}

.btn-project.github {
  background: var(--surface);
  border: 2px solid var(--border);
  color: var(--text-strong);
  box-shadow: none;
}

.btn-project.github::before {
  background: rgba(0, 132, 255, 0.15);
}

.btn-project.github img {
  filter: none;
}

:root[data-theme="dark"] .btn-project.github img {
  filter: brightness(0) invert(1);
}

.btn-project.github:hover {
  transform: translateY(-4px) scale(1.05);
  border-color: var(--accent);
  box-shadow: 0 12px 24px #0084ff1a;
}

/* Seção Formação e Experiência */
.card-items {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 40px;
}
.card-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-elev);
  animation: fadeInUp 0.6s ease-out backwards;
  transition: transform 0.3s ease, box-shadow 0.6s ease, background-color 0.6s ease, border-color 0.6s ease, color 0.6s ease;
  will-change: transform, box-shadow, border-color;
}
.card-item:nth-child(1) { animation-delay: 0s; }
.card-item:nth-child(2) { animation-delay: 0.1s; }
.card-item:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 20px 45px #0084ff35;
  border-color: var(--accent);
}
.card-item:active {
  transform: translateY(-2px) scale(0.98);
}
.card-header {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
  justify-content: space-between;
  align-items: flex-start;
}
.card-content {
  display: flex;
  gap: 16px;
  flex: 1;
}
.card-content > div:first-child {
  min-width: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-content > div:first-child img {
  max-width: 50px;
  max-height: 50px;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
}
.card-icon {
  font-size: 32px;
  min-width: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-info {
  flex: 1;
}
.card-title {
  color: var(--text-strong);
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 4px;
}
.card-subtitle {
  color: #0084ff;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}
.card-date {
  color: var(--text);
  font-size: 16px;
  white-space: nowrap;
  text-align: right;
  margin-left: 16px;
}

/* Rodapé */
footer {
  background-color: var(--footer-bg);
  transition: background-color 0.6s ease, color 0.6s ease, background-image 0.6s ease;
}
footer h2 {
  color: var(--text-strong);
  font-size: 24px;
  margin-bottom: 20px;
}
footer p {
  font-size: 15px;
}
.email-container {
  display: flex;
  align-items: center;
  margin-top: 40px;
  transition: transform 0.2s ease;
}
.email-container:hover {
  transform: translateX(4px);
}
.email-container img {
  margin-right: 10px;
  transition: filter 0.6s ease, transform 0.2s ease;
}
.email-container:hover img {
  transform: scale(1.1);
}
:root[data-theme="dark"] .email-container img {
  filter: brightness(0) invert(1);
}

.social-links {
  display: flex;
  margin-top: 40px;
}
.social-links img {
  width: 28px;
  height: 28px;
  margin-right: 20px;
  filter: grayscale(100%);
  transition: filter 0.6s ease, transform 0.2s ease;
}
.social-links img:hover {
  filter: grayscale(0%);
  transform: translateY(-4px) scale(1.15) rotate(-10deg);
}
.social-links img:active {
  transform: scale(0.95);
}
:root[data-theme="dark"] .social-links img {
  filter: brightness(0) invert(1) grayscale(100%);
}
:root[data-theme="dark"] .social-links img:hover {
  filter: brightness(0) invert(1) grayscale(0%);
}

.footer-made {
  margin-top: 24px;
  text-align: center;
  font-size: 14px;
  color: var(--text);
  transition: color 0.3s ease;
}
.footer-made:hover .heart-icon {
  animation: heartbeat 0.8s ease-in-out infinite, heartGlow 0.8s ease-in-out infinite;
  filter: drop-shadow(0 0 8px rgba(255, 0, 0, 0.8)) !important;
}
:root[data-theme="dark"] .footer-made:hover .heart-icon {
  filter: brightness(0) invert(1) drop-shadow(0 0 8px rgba(255, 0, 0, 0.8)) !important;
}
.heart-icon {
  width: 16px;
  height: 16px;
  display: inline;
  vertical-align: middle;
  margin: 0 4px;
  transition: filter 0.6s ease;
  transform-origin: center;
  filter: drop-shadow(0 0 0px rgba(255, 0, 0, 0));
}
:root[data-theme="dark"] .heart-icon {
  filter: brightness(0) invert(1);
}

/* Responsividade: Tablet Grande */
@media (max-width: 900px) {
  nav {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    grid-template-rows: auto auto;
    align-items: center;
    column-gap: 12px;
    padding: 4px 0;
  }
  .logo {
    grid-column: 1;
    align-self: flex-start;
  }
  .nav-actions {
    display: contents;
  }
  .theme-toggle {
    grid-column: 3;
    justify-self: end;
    order: initial;
  }
  .hamburger {
    grid-column: 4;
    justify-self: end;
    order: initial;
  }
  .navbar {
    grid-column: 1 / -1;
    grid-row: 2;
    margin-top: 0;
    flex: 1 1 100%;
    width: 100%;
    align-self: stretch;
    padding: 0;
  }
  .about-text h1 {
    font-size: 40px;
  }
  .avatar img {
    width: 180px;
  }
  .hamburger {
    display: inline-block;
  }
  .navbar {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    width: 100%;
    grid-column: 1 / -1;
    grid-row: 2;
    background: var(--header-bg);
    border: 0;
    border-radius: 8px;
    padding: 0;
    max-height: 0;
    transform-origin: top;
    transform: scaleY(0);
    will-change: transform, max-height;
    opacity: 1;
    visibility: hidden;
    overflow: hidden;
    pointer-events: none;
    transition: transform 0.25s ease, max-height 0.25s ease, visibility 0s linear 0.25s, background-color 0.6s ease, border-color 0.6s ease;
  }
  .navbar.open {
    max-height: 60vh;
    transform: scaleY(1);
    visibility: visible;
    pointer-events: auto;
    margin-top: 25px;
    margin-bottom: 10px;
    padding: 8px 12px;
    border: 1px solid var(--header-border);
    transition: transform 0.3s ease, max-height 0.3s ease, background-color 0.6s ease, border-color 0.6s ease;
  }
  .navbar div {
    padding: 12px 16px;
  }
  .navbar a {
    font-size: 16px;
    padding: 10px 12px;
  }
  .experience-with-lang {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 14px;
  }
  .experience-with-lang .skill .skill-icon {
    width: 48px;
    height: 48px;
  }
}

/* Responsividade: Tablet/Medium */
@media (max-width: 720px) {
  nav {
    padding: 20px 0;
  }
  .navbar div {
    padding: 0px 12px;
  }
  .navbar a {
    font-size: 17px;
  }
  .about-text h1 {
    font-size: 32px;
  }
  .project-item {
    flex: 1 1 100%;
  }
  .experience-with h2 {
    font-size: 24px;
  }
  .experience-with-lang {
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 12px;
  }
  .card-header {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }
  .card-content {
    gap: 12px;
  }
  .card-content > div:first-child {
    min-width: 40px;
  }
  .card-content > div:first-child img {
    max-width: 40px;
    max-height: 40px;
  }
  .card-icon {
    font-size: 28px;
    min-width: 40px;
  }
  .card-title {
    font-size: 18px;
  }
  .card-subtitle {
    font-size: 13px;
  }
  .card-date {
    align-self: flex-end;
    margin-left: 0;
    white-space: normal;
  }
}

/* Responsividade: Mobile Pequeno */
@media (max-width: 420px) {
  .about-text h1 {
    font-size: 35px;
  }
  .about-btn {
    flex-wrap: nowrap;
  }
  .btn-primary,
  .btn-secondary {
    min-width: 120px;
    font-size: 14px;
    padding: 10px 16px;
  }
  .about-text p,
  footer p {
    font-size: 15px;
  }
  .btn-primary,
  .btn-secondary {
    min-width: 140px;
    font-size: 16px;
    padding: 12px 18px;
  }
  .avatar img {
    width: 48%;
  }
  .card-item {
    padding: 16px;
  }
  .card-content {
    gap: 10px;
  }
  .card-content > div:first-child {
    min-width: 36px;
  }
  .card-content > div:first-child img {
    max-width: 36px;
    max-height: 36px;
  }
  .card-icon {
    font-size: 24px;
    min-width: 36px;
  }
  .card-title {
    font-size: 17px;
  }
  .card-subtitle {
    font-size: 12px;
  }
  .card-date {
    font-size: 14px;
    white-space: normal;
  }
}

/* Efeito de Ripple */
.ripple-effect {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.6), transparent);
  transform: scale(0);
  animation: rippleAnimation 0.6s ease-out;
  pointer-events: none;
}

@keyframes rippleAnimation {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

button, a[href], .btn-project, .skill, .project-item, .card-item {
  position: relative;
}

/* Efeito de corações caindo */
.falling-heart {
  position: fixed;
  top: -50px;
  font-size: 30px;
  pointer-events: none;
  animation: fall linear forwards;
  z-index: 9999;
  user-select: none;
}

@keyframes fall {
  0% {
    top: -50px;
    opacity: 1;
    transform: translateX(0) rotate(0deg);
  }
  100% {
    top: 100vh;
    opacity: 0;
    transform: translateX(20px) rotate(360deg);
  }
}

.heart-wrapper {
  display: inline-block;
  position: relative;
}

.heart-wrapper::after {
  content: "Clique em mim";
  position: absolute;
  bottom: 120%;
  left: 50%;
  transform: translateX(-50%) scale(0);
  background: var(--surface);
  color: var(--text-strong);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border: 1px solid var(--border);
}

.heart-wrapper::before {
  content: "";
  position: absolute;
  bottom: 110%;
  left: 50%;
  transform: translateX(-50%) scale(0);
  border: 6px solid transparent;
  border-top-color: var(--surface);
  pointer-events: none;
  opacity: 0;
  transition: all 0.3s ease;
}

.heart-wrapper:hover::after,
.heart-wrapper:hover::before {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

.heart-icon {
  cursor: pointer;
  transition: transform 0.2s ease;
  position: relative;
}

.heart-icon:hover {
  transform: scale(1.2);
}

.heart-icon:active {
  transform: scale(0.9);
}