:root {
  --bg: #0b1020;
  --surface: #141b34;
  --surface-2: #1a2345;
  --text: #e6ebff;
  --muted: #a4b0d3;
  --primary: #5d8cff;
  --primary-2: #7d5dff;
  --border: rgba(255, 255, 255, 0.12);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.32);
  --container: 1120px;
}

body {
  font-family: "Inter", Arial, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: radial-gradient(circle at top right, #1a2a5f 0%, var(--bg) 42%);
}

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

.section {
  padding: 5rem 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(8px);
  background: rgba(11, 16, 32, 0.72);
  border-bottom: 1px solid var(--border);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
}

.logo {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(120deg, var(--primary), var(--primary-2));
  display: grid;
  place-items: center;
  font-weight: 800;
}

.main-nav {
  display: flex;
  gap: 1.4rem;
  font-weight: 500;
}

.main-nav a {
  color: var(--muted);
  transition: color 0.2s ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--text);
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  border-radius: 4px;
  background: var(--text);
}

.menu-toggle span + span {
  margin-top: 5px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 2rem;
  align-items: center;
}

.tag {
  display: inline-block;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: rgba(125, 93, 255, 0.2);
  color: #c7b8ff;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

h1 {
  font-size: clamp(2rem, 3.6vw, 3.5rem);
  line-height: 1.15;
  margin-bottom: 1rem;
}

h2 {
  font-size: clamp(1.6rem, 2.8vw, 2.3rem);
  margin-bottom: 0.8rem;
}

.hero-description,
#aboutText,
.section-heading p,
#contactPitch,
.form-note {
  color: var(--muted);
}

.hero-actions {
  display: flex;
  gap: 0.9rem;
  margin: 1.5rem 0;
}

.btn {
  display: inline-block;
  border-radius: 12px;
  padding: 0.75rem 1.1rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(120deg, var(--primary), var(--primary-2));
}

.btn-ghost {
  border-color: var(--border);
  color: var(--text);
  background: transparent;
}

.hero-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.hero-social a {
  color: var(--muted);
  font-weight: 500;
}

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

.hero-card,
.project-card,
.skill-card,
.contact-form,
.contact-info {
  border: 1px solid var(--border);
  background: rgba(20, 27, 52, 0.8);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.hero-card {
  padding: 1.5rem;
}

.hero-card ul {
  display: grid;
  gap: 0.7rem;
  margin-top: 1rem;
}

.section-heading {
  margin-bottom: 1.5rem;
}

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

.project-card {
  padding: 1.2rem;
}

.project-card h3 {
  margin-bottom: 0.5rem;
}

.project-card p {
  color: var(--muted);
  min-height: 72px;
}

.project-links {
  display: flex;
  gap: 0.8rem;
  margin-top: 1rem;
}

.project-links a {
  font-weight: 600;
  color: #bfd0ff;
}

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

.skill-card {
  padding: 0.9rem;
  text-align: center;
  font-weight: 600;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 1rem;
}

.contact-info,
.contact-form {
  padding: 1.4rem;
}

.contact-info ul {
  margin-top: 1rem;
  display: grid;
  gap: 0.5rem;
}

.contact-social-wrap {
  margin-top: 1.2rem;
}

.contact-social-wrap h3 {
  font-size: 1rem;
  margin-bottom: 0.7rem;
}

.contact-social-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.contact-social-tabs a {
  display: inline-block;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  font-weight: 600;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.contact-social-tabs a:hover,
.contact-social-tabs a:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(93, 140, 255, 0.65);
}

.contact-form {
  display: grid;
  gap: 0.55rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 10px;
  padding: 0.75rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid rgba(93, 140, 255, 0.65);
  border-color: transparent;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.2rem 0 2rem;
  color: var(--muted);
}

.reveal,
.reveal-delay {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.reveal-delay {
  transition-delay: 0.12s;
}

.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Modais */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal.is-open {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: var(--surface);
  border-radius: 16px;
  padding: 2rem;
  max-width: 420px;
  width: 90%;
  text-align: center;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from {
    transform: translateY(40px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-icon {
  font-size: 3.2rem;
  margin-bottom: 1rem;
  line-height: 1;
}

.modal-success .modal-icon {
  color: #4ade80;
}

.modal-error .modal-icon {
  color: #ef4444;
}

.modal-content h2 {
  margin-bottom: 0.5rem;
}

.modal-content p {
  color: var(--muted);
  margin-bottom: 1.5rem;
}

