/* ===== Variables ===== */
:root {
  --intern-padding: 1rem;
  --bg: #0d0d10;
  --card: #111216;
  --muted: #bfbfbf;
  --accent-1: #3e5cff;
  /* azul */
  --accent-2: #ff3ea5;
  /* yellow */
  --yellow: #dab532;
  /* amarelo */
  --glass: rgba(255, 255, 255, 0.04);
  --radius: 12px;
  --max-width: 1100px;
  --container-padding: 24px;
  --mono: 'Space Grotesk', system-ui, -apple-system, "Segoe UI", Roboto;
  --ui: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto;
}

/* ===== Reset / Base ===== */
* {
  box-sizing: border-box
}

html,
body {
  height: 100%
}

body {
  margin: 0;
  font-family: var(--ui);
  background: linear-gradient(180deg, #070708 0%, var(--bg) 100%);
  color: #e9e9ee;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
}

a {
  display: inline-block;
  color: inherit;
  text-decoration: none
}

img {
  max-width: 100%;
  height: auto;
  display: block
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 48px var(--container-padding);
  display: flex;
}
.wrap.wrap--no-padding {
  padding: 0;
}

/* ===== Header ===== */
header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: linear-gradient(180deg, rgba(13, 13, 16, 0.9) 60%, rgba(13, 13, 16, 0.6));
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03)
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px var(--container-padding)
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center
}

.logo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background-color: #ffffff;
}

.nav-links {
  display: flex;
  gap: 18px;
  align-items: center
}

.nav-links--cta {
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--yellow);
  color: #0a0a0a;
}

/* ===== Hero ===== */
.hero {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 32px;
  align-items: center;
  padding: 64px 0
}

.hero-left h1 {
  font-size: clamp(28px, 4vw, 44px);
  margin: 0 0 12px;
  font-family: var(--mono);
  letter-spacing: -0.6px
}

.hero-left p {
  color: var(--muted);
  margin: 0 0 20px
}

.hero-ctas {
  display: flex;
  gap: 12px
}

.btn-primary {
  background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
  padding: 12px 18px;
  border-radius: 8px;
  font-weight: 600;
  color: white;
  text-align: center;
}

.btn-yellow {
  background: var(--yellow);
}

.btn-ghost {
  padding: 12px 18px;
  border-radius: 10px;
  border: 1px solid #ffffff0f
}

.btn-ghost:hover {
  background-color: #ffffff0f;
}

.hero-right {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01))
}

.hero-right .portrait {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  filter: contrast(1.05) saturate(1.05)
}

.hero-accent {
  position: absolute;
  left: 8px;
  bottom: 12px;
  background: var(--glass);
  padding: 10px;
  border-radius: 10px;
  font-size: 13px;
  color: var(--muted);
  backdrop-filter: blur(4px);
}

/* ===== Sections ===== */
section {
  padding: 64px 0
}

.container-max-width {
  max-width: var(--max-width);
  margin: auto;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px
}

.section-title h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 700
}

.section-sub {
  color: var(--muted);
  font-size: 14px
}

/* About */
.about {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 28px;
  align-items: center
}

.about .photo img {
  width: 180px;
  height: 180px;
  margin: auto;
  display: flex;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.03)
}

.about .bio {
  color: var(--muted)
}

.skills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px
}

.chip {
  background: rgba(255, 255, 255, 0.03);
  padding: 8px 10px;
  border-radius: 999px;
  font-size: 13px
}

/* Projects */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px
}

.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
  border-radius: 12px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.03)
}

.card .thumb {
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 12px
}

.card h3 {
  margin: 0 0 6px
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px
}

/* Services */
.services {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px
}

.service {
  background: rgba(255, 255, 255, 0.02);
  padding: 18px;
  border-radius: 12px;
  text-align: center
}

.service h4 {
  margin: 10px 0 6px
}

.service p {
  color: var(--muted);
  font-size: 13px
}

/* Testimonials */
.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px
}

.testimonials .item {
  padding: 18px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.01), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.03);
  color: var(--muted)
}

.testimonials .item img {
  margin: 0 0 1rem 0;
}

/* Contact */
.contact {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between
}

.contact__content {
  width: 100%;
  max-width: 400px;
  padding: var(--intern-padding);
}

.contact .note {
  color: var(--muted)
}

.contact .cta {
  margin: 2rem 0 0 0;
  display: grid;
}

.contact .cta small {
  margin: 0.5rem 0 0 0;
}


.footer {
  background: #111;
  color: #ddd;
  padding: 60px 0;
}

.footer-container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
}

/* Logo da primeira coluna */
.footer-logo {
  width: 90px;
  margin-bottom: 15px;
}

/* Títulos */
.footer-col h3 {
  font-size: 1.1rem;
  margin-bottom: 15px;
  font-weight: 700;
  color: #fff;
}

/* --- alinhamento dos títulos --- */
.footer-col:not(.footer-col-logo) {
  padding-top: 105px;
  /* mesma altura da logo + margem! */
}

/* Listas */
.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col ul li {
  margin-bottom: 8px;
  color: #aaa;
}

/* ===== Small screens ===== */
@media (max-width:980px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 36px 0
  }

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

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

  .services {
    grid-template-columns: repeat(2, 1fr)
  }

  .testimonials {
    grid-template-columns: 1fr
  }

  footer {
    padding: 1rem;
  }

  .footer-col:not(.footer-col-logo) {
    padding-top: 0;
  }
}

@media (max-width:600px) {
  .wrap {
    flex-flow: column-reverse;
  }

  .projects-grid {
    grid-template-columns: 1fr
  }

  .nav-links {
    display: none
  }
}

/* Small tasteful retro pixel border on headings */
.pixel-border {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}