:root {
  --bg: #050816;
  --bg-alt: #0b1020;
  --text: #e5e7eb;
  --muted: #9ca3af;
  --accent: #22d3ee;
  --accent-soft: rgba(34, 211, 238, 0.1);
  --border: #1f2933;
  --card-bg: #0f172a;
  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius-lg: 14px;
  --radius-md: 10px;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.8);
  --max-width: 1100px;
}

/* Reset básico */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

/* Utilitários */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header / Nav */
.header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
  background: linear-gradient(to bottom, rgba(5, 8, 22, 0.95), rgba(5, 8, 22, 0.85), transparent);
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo span {
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 0.95rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: radial-gradient(circle at top left, rgba(34, 211, 238, 0.12), transparent 55%);
}

.nav {
  display: flex;
  gap: 1.5rem;
}

.nav a {
  color: var(--muted);
  font-size: 0.9rem;
  text-decoration: none;
  position: relative;
  transition: color 0.2s ease;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.3rem;
  width: 0;
  height: 2px;
  background: linear-gradient(to right, #22d3ee, #38bdf8);
  border-radius: 999px;
  transition: width 0.2s ease;
}

.nav a:hover {
  color: var(--text);
}

.nav a:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.4rem;
}

.lang-btn {
  background: transparent;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  margin-left: 1rem;
  transition: transform 0.2s ease;
}

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

/* Hero */
.hero {
  padding: 4rem 0 3rem;
}

.hero-content {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 3rem;
  align-items: flex-start;
}

.hero-tag {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--muted);
  margin-bottom: 1.2rem;
}

.hero h1 {
  font-size: 2.8rem;
  line-height: 1.1;
  margin: 0 0 1rem;
}

.highlight {
  color: #4f46e5;
  font-weight: 700;
  text-shadow: 0 0 8px rgba(79, 70, 229, 0.4);
}

.hero-subtitle {
  font-size: 1.1rem;
  margin: 0 0 1.8rem;
  color: var(--muted);
  max-width: 32rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.4rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.18s ease-out;
}

.btn-primary {
  background: linear-gradient(to right, #22d3ee, #38bdf8);
  color: #020617;
  box-shadow: 0 12px 30px rgba(56, 189, 248, 0.35);
}

.btn-primary:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.btn-secondary {
  background: rgba(15, 23, 42, 0.7);
  color: var(--text);
  border-color: rgba(148, 163, 184, 0.5);
}

.btn-secondary:hover {
  background: rgba(15, 23, 42, 1);
}

.hero-extra {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.15);
}

/* Hero aside */
.hero-aside {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hero-card {
  background: radial-gradient(circle at top left, rgba(34, 211, 238, 0.18), transparent 60%);
  background-color: rgba(15, 23, 42, 0.95);
  border-radius: var(--radius-lg);
  padding: 1rem 1.2rem;
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: 0 18px 35px rgba(15, 23, 42, 0.7);
}

.hero-card-title {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.25rem;
}

.hero-card-text {
  margin: 0;
  font-weight: 500;
}

/* Seções */
.section {
  padding: 3.5rem 0;
}

.section-alt {
  background: radial-gradient(circle at top left, rgba(34, 211, 238, 0.08), transparent 60%), var(--bg-alt);
}

.section-header {
  text-align: left;
  margin-bottom: 2.5rem;
}

.section-title {
  font-size: 1.7rem;
  margin: 0 0 0.6rem;
}

.section-subtitle {
  margin: 0;
  color: var(--muted);
  max-width: 32rem;
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 2fr);
  gap: 2.5rem;
}

.section-content p {
  color: var(--muted);
  line-height: 1.7;
  margin: 0 0 0.9rem;
}

/* Projetos */
.projects-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.4rem;
}

.project-card {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: 1.5rem;
  padding: 1.3rem 1.4rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(to bottom right, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.92));
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: var(--shadow-soft);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  position: relative;
  overflow: hidden;
}

.project-card::before {
  content: "";
  position: absolute;
  inset: -120%;
  background-image: conic-gradient(from 200deg, transparent, rgba(34, 211, 238, 0.3), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.project-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.95);
  border-color: rgba(56, 189, 248, 0.4);
}

.project-card:hover::before {
  opacity: 1;
}

.project-meta {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
  margin-bottom: 0.6rem;
}

.project-title {
  font-size: 1.2rem;
  margin: 0 0 0.4rem;
}

.project-desc {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0 0 0.8rem;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.9rem;
}

.project-tag {
  font-size: 0.75rem;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background-color: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.35);
  color: var(--muted);
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.project-link {
  font-size: 0.8rem;
  color: var(--accent);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.project-link span {
  transform: translateY(0);
  transition: transform 0.15s ease;
}

.project-link:hover span {
  transform: translateY(-1px);
}

.project-link svg {
  width: 14px;
  height: 14px;
}

.project-right {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.project-highlight {
  font-size: 0.8rem;
  color: var(--muted);
}

/* Skills */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.skills-group h3 {
  font-size: 1rem;
  margin: 0 0 0.6rem;
}

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

.skills-group li {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 0.3rem;
}

/* Contato */
.contact-highlight {
  margin: 0.5rem 0;
}

.contact-highlight a {
  color: var(--accent);
  text-decoration: none;
}

.contact-highlight a:hover {
  text-decoration: underline;
}

/* Footer */
.footer {
  padding: 2.5rem 0 2rem;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  background: radial-gradient(circle at top, rgba(34, 211, 238, 0.08), transparent 65%);
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.footer-small {
  opacity: 0.9;
}

/* Responsividade */

/* ============================================================
   Breakpoints usados no projeto
   - 900px: Tablet / telas médias
   - 700px: Mobile médio (menu hamburguer, 1 coluna em grids)
   - 480px: Mobile pequeno (tipografia reduzida, espaçamentos menores)
   ============================================================ */

@media (max-width: 900px) {
  .hero-content {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero {
    padding-top: 3rem;
  }

  .section-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .project-card {
    grid-template-columns: minmax(0, 1fr);
  }

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

@media (max-width: 700px) {
  .nav {
    display: none;
    position: absolute;
    right: 1.5rem;
    top: 60px;
    flex-direction: column;
    gap: 0.75rem;
    padding: 0.9rem 1rem;
    background: rgba(15, 23, 42, 0.98);
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    transition: opacity 0.3s ease, transform 0.3s ease;
    opacity: 0;
    transform: translateY(-10px);
  }

  .nav.open {
    display: flex;
    opacity: 1;
    transform: translateY(0);
  }

  .nav-toggle {
    display: block;
  }

  .nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: none;
  }
  .nav.open + .nav-overlay {
    display: block;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .skills-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .projects-grid {
    gap: 1rem;
  }
}

.lang-btn {
  background: transparent;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  margin-left: 1rem;
  transition: transform 0.2s ease;
}

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

/* Melhorar a Responsividade em telas muito pequenas*/
@media (max-width: 480px) {

  .skills-group li {
    font-size: 0.8rem; /* reduz fonte em mobile */
  }

  .footer {
    padding: 1.5rem 0;
  }
  .footer-content {
    gap: 0.6rem;
    font-size: 0.75rem;
  }

  .hero h1 {
    font-size: 1.8rem;
  }
  .hero-subtitle {
    font-size: 0.95rem;
  }

  .section {
    padding: 2rem 0;
  }

  .project-card,
  .hero-card {
    padding: 0.8rem;
  }

  .section-title {
    font-size: 1.4rem;
  }
  .project-title {
    font-size: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}