*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #0a0d14;
  --bg2: #111520;
  --card: #161b27;
  --border: #1f2840;
  --accent: #4f8ef7;
  --accent2: #7b5cf0;
  --grad: linear-gradient(135deg, #4f8ef7, #7b5cf0);
  --text: #e8ecf4;
  --muted: #7c8aa3;
  --white: #ffffff;
  --radius: 12px;
  --radius-lg: 20px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

/* ── NAVBAR ── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  height: 68px;
  background: rgba(10, 13, 20, 0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-size: 1.1rem;
  font-weight: 700;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover {
  color: var(--text);
}

.nav-cta {
  background: var(--grad);
  color: var(--white) !important;
  padding: 0.45rem 1.1rem;
  border-radius: 8px;
  font-weight: 600 !important;
  font-size: 0.85rem !important;
  transition: opacity 0.2s !important;
}
.nav-cta:hover {
  opacity: 0.85;
}

/* ── HERO ── */
#home {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 5% 80px;
  position: relative;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(79, 142, 247, 0.12) 0%,
    transparent 70%
  );
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--border);
  background: var(--card);
  padding: 0.35rem 1rem;
  border-radius: 100px;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 1.8rem;
}
.hero-badge span {
  color: var(--accent);
  font-weight: 600;
}

.hero-headline {
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1.2rem;
}
.hero-headline .grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--muted);
  max-width: 620px;
  margin: 0 auto 1.6rem;
}

.hero-body {
  max-width: 540px;
  margin: 0 auto 2.5rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.btn-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--grad);
  color: var(--white);
  padding: 0.75rem 1.8rem;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
  transition:
    opacity 0.2s,
    transform 0.2s;
}
.btn-primary:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

.btn-outline {
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.75rem 1.8rem;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
  transition:
    border-color 0.2s,
    transform 0.2s;
}
.btn-outline:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}

.hero-stats {
  display: flex;
  gap: 3rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border);
  width: 100%;
}
.stat {
  text-align: center;
}
.stat-num {
  font-size: 1.8rem;
  font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.stat-label {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.2rem;
}

/* ── SECTIONS ── */
section {
  padding: 100px 5%;
}
.section-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.8rem;
}
.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}
.section-sub {
  color: var(--muted);
  max-width: 560px;
  font-size: 0.98rem;
}
.section-header {
  margin-bottom: 3.5rem;
}

/* ── SOBRE ── */
#sobre {
  background: var(--bg2);
}

.sobre-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.sobre-text p {
  color: var(--muted);
  margin-bottom: 1.2rem;
  font-size: 0.97rem;
}
.sobre-text p strong {
  color: var(--text);
}

.skills-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 1rem;
}
.skill-item {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  background: var(--card);
  border: 1px solid var(--border);
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius);
  transition: border-color 0.2s;
}
.skill-item:hover {
  border-color: var(--accent);
}
.skill-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
  margin-top: 0.05rem;
}
.skill-name {
  font-weight: 600;
  font-size: 0.9rem;
}
.skill-desc {
  font-size: 0.82rem;
  color: var(--muted);
}

.sobre-ctas {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

/* ── PROJETOS ── */
#projetos {
  background: var(--bg);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.project-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition:
    border-color 0.2s,
    transform 0.2s;
  display: flex;
  flex-direction: column;
}
.project-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}

.project-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(79, 142, 247, 0.12);
  color: var(--accent);
  padding: 0.25rem 0.7rem;
  border-radius: 100px;
  margin-bottom: 1rem;
}

.project-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
}

.project-context {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 1rem;
  flex-grow: 1;
}

.project-results {
  list-style: none;
  margin-bottom: 1.3rem;
}
.project-results li {
  font-size: 0.85rem;
  color: var(--text);
  padding: 0.3rem 0;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}
.project-results li::before {
  content: "→";
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
  text-align: left;
}

.project-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: auto;
}
.tag {
  font-size: 0.75rem;
  font-weight: 500;
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 0.2rem 0.65rem;
  border-radius: 6px;
}

/* ── SERVIÇOS ── */
#servicos {
  background: var(--bg2);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.service-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition:
    border-color 0.2s,
    transform 0.2s;
}
.service-card:hover {
  border-color: var(--accent2);
  transform: translateY(-4px);
}

.service-icon {
  font-size: 2rem;
  margin-bottom: 1.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  background: rgba(123, 92, 240, 0.12);
  border-radius: 12px;
}
.service-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}
.service-desc {
  font-size: 0.87rem;
  color: var(--muted);
  margin-bottom: 1rem;
}
.service-deliverables {
  font-size: 0.8rem;
  color: var(--muted);
  font-style: italic;
}
.service-deliverables strong {
  color: var(--text);
  font-style: normal;
}

.services-cta {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  text-align: center;
}
.services-cta p {
  color: var(--muted);
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}
.services-cta p strong {
  color: var(--text);
}

/* ── CONTATO ── */
#contato {
  background: var(--bg);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 5rem;
  align-items: start;
}

.contact-info p {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

.contact-channels {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.channel {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--card);
  border: 1px solid var(--border);
  padding: 1rem 1.2rem;
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.2s;
}
.channel:hover {
  border-color: var(--accent);
}
.channel-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
}
.channel-label {
  font-size: 0.78rem;
  color: var(--muted);
}
.channel-value {
  font-size: 0.9rem;
  font-weight: 600;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
}

.form-group input,
.form-group select,
.form-group textarea {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.8rem 1rem;
  color: var(--text);
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
}

.form-group select option {
  background: var(--card);
}
.form-group textarea {
  resize: vertical;
  min-height: 130px;
}

.form-note {
  font-size: 0.8rem;
  color: var(--muted);
  font-style: italic;
  text-align: center;
  margin-top: 0.5rem;
}

/* ── FOOTER ── */
footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 3rem 5%;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-brand {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.3rem;
}
.footer-tagline {
  font-size: 0.8rem;
  color: var(--muted);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.footer-links a {
  font-size: 0.85rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover {
  color: var(--text);
}

.footer-copy {
  font-size: 0.78rem;
  color: var(--muted);
}
.footer-phrase {
  font-size: 0.8rem;
  color: var(--muted);
  font-style: italic;
  margin-top: 0.3rem;
}

/* ── DIVIDER ── */
.divider {
  width: 60px;
  height: 3px;
  background: var(--grad);
  border-radius: 2px;
  margin: 1rem 0 1.5rem;
}

/* ── HAMBURGER ── */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 18px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 110;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.2s ease;
}
.nav-toggle.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  top: 68px;
  left: 0;
  right: 0;
  background: rgba(10, 13, 20, 0.97);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 1.5rem 5% 2rem;
  gap: 0.5rem;
  transform: translateY(-130%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 99;
}
.mobile-menu.open {
  transform: translateY(0);
}
.mobile-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(31, 40, 64, 0.5);
  transition: color 0.2s, padding-left 0.2s;
}
.mobile-link:hover {
  color: var(--text);
  padding-left: 0.5rem;
}
.mobile-cta {
  background: var(--grad);
  color: var(--white) !important;
  border-radius: 10px;
  font-weight: 600;
  text-align: center;
  padding: 0.85rem 1.5rem;
  margin-top: 0.5rem;
  border-bottom: none;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .sobre-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .nav-links {
    display: none;
  }
  .nav-toggle {
    display: flex;
  }
  .hero-stats {
    gap: 2rem;
  }
}
@media (max-width: 540px) {
  .form-row {
    grid-template-columns: 1fr;
  }
  section {
    padding: 80px 6%;
  }
}
