:root {
  --bg: #bdc8d8d9;   /* antes #ffffff */
  --text: #222;
  --accent: #4a90e2;
  --card-bg: #ffffff;
}

[data-theme="dark"] {
  --bg: #2b2929;
  --text: #f5f5f5;
  --accent: #90caf9;
  --card-bg: #1e1e1e;
}

* { box-sizing: border-box; }

body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  transition: background 0.3s, color 0.3s;
  line-height: 1.5;
}

header {
  text-align: center;
  padding: 2.5rem 1rem 1.5rem;
}

header h1 { margin: .2rem 0; }
header p { opacity: .8; margin-top: 0; }

header nav {
  margin-top: 1rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
header nav a {
  padding: .4rem .8rem;
  text-decoration: none;
  color: var(--accent);
  font-weight: 600;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  transition: transform .2s, background .2s;
}
header nav a:hover { transform: translateY(-2px); background: color-mix(in srgb, var(--accent) 18%, transparent); }

section {
  padding: 2rem 1rem;
  max-width: 1080px;
  margin: auto;
}

.about {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 1rem;
  align-items: center;

}
@media (max-width: 640px) {
  .about { grid-template-columns: 1fr; text-align: center; }
}

.profile-img {
  width: 200px;   /* antes 140px */
  height: 200px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0px 12px 28px rgba(0,0,0,0.18);
  border: 3px solid color-mix(in srgb, var(--accent) 30%, white);
  margin: auto;
  display: block;
}

.badges {
  display: flex;
  gap: .5rem;
  padding: 0;
  list-style: none;
  flex-wrap: wrap;
}
.badges li {
  background: var(--card-bg);
  padding: .35rem .7rem;
  border-radius: 999px;
  font-size: .9rem;
  box-shadow: 0 2px 6px rgba(0,0,0,.08);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: .8rem;
  padding: 0;
  list-style: none;
}
.skills-grid li {
  background: var(--card-bg);
  padding: 12px 14px;
  text-align: center;
  border-radius: 10px;
  transition: transform 0.2s, box-shadow .2s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.skills-grid li:hover { transform: translateY(-3px); box-shadow: 0 6px 16px rgba(0,0,0,0.10); }

.card {
  background: var(--card-bg);
  padding: 1rem 1.2rem;
  border-radius: 12px;
  margin-bottom: 1rem;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  transition: transform 0.2s ease;
}
.card:hover { transform: translateY(-4px); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}
.gallery-grid img {
  width: 100%;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow .3s;
  box-shadow: 0 8px 22px rgba(0,0,0,.12);
}
.gallery-grid img:hover {
  transform: scale(1.02);
  box-shadow: 0 16px 32px rgba(0,0,0,.18);
}

#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(2px);
  justify-content: center;
  align-items: center;
  z-index: 50;
}
#lightbox img {
  max-width: 88%;
  max-height: 88%;
  border-radius: 14px;
}

#theme-toggle {
  position: fixed;
  top: 12px;
  right: 12px;
  background: var(--accent);
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  cursor: pointer;
  color: white;
  font-size: 1.1rem;
  box-shadow: 0 10px 24px rgba(0,0,0,.18);
  transition: transform .2s ease;
  z-index: 100;
}
#theme-toggle:hover { transform: translateY(-2px) scale(1.02); }
