/* ================================
   RESET / BASE
================================== */

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

html,
body {
  height: 100%;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #020617;
  color: #f5f5f5;
  line-height: 1.6;
}

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

ul {
  list-style: none;
}

/* ================================
   LAYOUT GERAL
================================== */

.page {
  max-width: 1120px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

/* ================================
   TOPO / NAVBAR
================================== */

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 3rem;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid #4f46e5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
}

.logo-text {
  font-weight: 600;
  letter-spacing: 0.05em;
  font-size: 0.95rem;
  text-transform: uppercase;
  color: #e5e7eb;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.9rem;
}

.main-nav a {
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  color: #9ca3af;
  transition: background 0.2s ease, color 0.2s ease, transform 0.1s ease;
}

.main-nav a:hover {
  background: rgba(79, 70, 229, 0.15);
  color: #e5e7eb;
  transform: translateY(-1px);
}

/* ================================
   TROCA DE TEMA (BOTÕES)
================================== */

.theme-switcher {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.theme-btn {
  padding: 0.45rem 0.9rem;
  font-size: 0.8rem;
  border-radius: 999px;
  cursor: pointer;

  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(55, 65, 81, 0.8);
  color: #e5e7eb;

  backdrop-filter: blur(4px);

  transition: 
    background 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.15s ease;
}

.theme-btn:hover {
  transform: translateY(-2px);
  background: rgba(30, 41, 59, 0.85);
  border-color: rgba(148, 163, 184, 0.9);
}

/* BOTÃO DARK */
.theme-btn[data-theme="dark"] {
  border-color: rgba(99, 102, 241, 0.35);
}

.theme-btn[data-theme="dark"]:hover {
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.45);
  color: #818cf8;
}

/* BOTÃO LIGHT */
.theme-btn[data-theme="light"] {
  border-color: rgba(148, 163, 184, 0.4);
}

.theme-btn[data-theme="light"]:hover {
  box-shadow: 0 0 12px rgba(203, 213, 225, 0.45);
  color: #e2e8f0;
}

/* BOTÃO CREATIVE */
.theme-btn[data-theme="creative"] {
  border-color: rgba(236, 72, 153, 0.45);
}

.theme-btn[data-theme="creative"]:hover {
  color: #f472b6;
  box-shadow:
    0 0 14px rgba(236, 72, 153, 0.6),
    0 0 10px rgba(147, 51, 234, 0.4);
}

/* ================================
   HERO
================================== */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(0, 1.4fr);
  gap: 2.5rem;
  margin-bottom: 3.5rem;
}

.hero-left {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero-label {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #9ca3af;
}

.hero-title {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 800;
}

.hero-subtitle {
  font-size: 0.98rem;
  color: #d1d5db;
  max-width: 36rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.1s ease;
}

.btn.primary {
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  color: #f9fafb;
  box-shadow: 0 10px 30px rgba(79, 70, 229, 0.4);
}

.btn.primary:hover {
  box-shadow: 0 14px 40px rgba(79, 70, 229, 0.55);
  transform: translateY(-1px);
}

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

.btn.secondary:hover {
  background: rgba(31, 41, 55, 0.9);
}

/* TAGS */

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.8rem;
}

.hero-tags span {
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(55, 65, 81, 0.8);
  color: #9ca3af;
}

.hero-right {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hero-avatar {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 1.25rem;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(55, 65, 81, 0.6);
  background: #0f172a;
}

.hero-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* preenche o espaço mantendo estética */
  display: block;
}

/* CARD DE RESUMO */

.hero-info-card {
  border-radius: 1.25rem;
  padding: 1.4rem 1.3rem;
  background: radial-gradient(circle at top left, rgba(79, 70, 229, 0.12), transparent 55%),
              rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(55, 65, 81, 0.9);
}

.hero-info-card h2 {
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.hero-info-card ul {
  list-style: disc;
  padding-left: 1.2rem;
  font-size: 0.9rem;
  color: #d1d5db;
}

/* ================================
   SEÇÕES GERAIS
================================== */

.section {
  margin-bottom: 3rem;
}

.section-title {
  font-size: 1.3rem;
  margin-bottom: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9ca3af;
}

/* Texto padrão nas seções */
.section p {
  font-size: 0.98rem;
  color: #e5e7eb;
  margin-bottom: 1.2rem;
}

/* ================================
   EXPERIÊNCIA
================================== */

.experience-item {
  border-radius: 1rem;
  padding: 1.25rem 1.1rem;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(31, 41, 55, 0.9);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.5);
  margin-bottom: 1rem;
}

.experience-item h3 {
  font-size: 1rem;
  margin-bottom: 0.2rem;
}

.experience-company {
  font-size: 0.9rem;
  color: #9ca3af;
}

.experience-period {
  font-size: 0.85rem;
  color: #6b7280;
  margin-bottom: 0.6rem;
}

.experience-item ul {
  list-style: disc;
  padding-left: 1.2rem;
  font-size: 0.9rem;
  color: #d1d5db;
}

/* ================================
   SKILLS / TECH STACK
================================== */

.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.skills-group {
  border-radius: 1rem;
  padding: 1rem;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(31, 41, 55, 0.9);
}

.skills-group h3 {
  font-size: 0.95rem;
  margin-bottom: 0.55rem;
  color: #e5e7eb;
}

.skills-group ul li {
  font-size: 0.86rem;
  color: #d1d5db;
  margin-bottom: 0.25rem;
}

/* ================================
   PROJETOS
================================== */

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.project-card {
  border-radius: 1rem;
  padding: 1rem;
  background: radial-gradient(circle at top left, rgba(79, 70, 229, 0.12), transparent 55%),
              rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(55, 65, 81, 0.9);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

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

.project-card p {
  font-size: 0.88rem;
  color: #e5e7eb;
}

.project-status {
  margin-top: 0.4rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #a5b4fc;
}

.project-status {
  font-weight: 600;
  font-size: .85rem;
  margin-top: .4rem;
  color: #a1a1aa;
}

.project-status.done {
  color: #22c55e;
}

.project-status.progress {
  color: #eab308;
}

.project-status.planned {
  color: #64748b;
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: .6rem;
}

.btn-link {
  display: inline-block;
  padding: .4rem .9rem;
  border-radius: 999px;
  font-size: .8rem;
  text-decoration: none;
  border: 1px solid #4f46e5;
  color: #e5e7eb;
  background: #1d1b3f;
  transition: .15s;
}

.btn-link:hover {
  transform: translateY(-1px);
  background: #4f46e5;
  color: #f9fafb;
}

.btn-link.secondary {
  border-color: #475569;
  background: transparent;
  color: #cbd5f5;
}

.btn-link.secondary:hover {
  background: #111827;
  color: #e5e7eb;
}

/* ================================
   FORMAÇÃO
================================== */

.education-item {
  border-radius: 1rem;
  padding: 1rem;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(31, 41, 55, 0.9);
  margin-bottom: 0.9rem;
}

.education-item h3 {
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
}

.education-item ul li {
  font-size: 0.9rem;
  color: #d1d5db;
  margin-bottom: 0.35rem;
}

/* Se você ainda usar .education-list em algum lugar */
.education-list {
  list-style: none;
}

/* ================================
   CONTATO
================================== */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.contact-item {
  border-radius: 1rem;
  padding: 0.9rem;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(31, 41, 55, 0.9);
}

.contact-item h3 {
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
  color: #e5e7eb;
}

.contact-item a {
  font-size: 0.86rem;
  color: #a5b4fc;
  word-break: break-all;
}

/* ================================
   RODAPÉ
================================== */

.footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(31, 41, 55, 0.9);
  font-size: 0.8rem;
  color: #6b7280;
  text-align: center;
}

/* ================================
   RESPONSIVO
================================== */

/* Tablet */
@media (max-width: 900px) {
  .topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

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

  .hero-right {
    order: -1; /* foto e card vão pra cima em telas menores */
  }

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

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

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

/* Celular */
@media (max-width: 600px) {
  .page {
    padding-inline: 1rem;
  }

  .skills-grid,
  .projects-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }
}