*:where(*, *::before, *::after) {
  box-sizing: border-box;
}

:root {
  --bg: #020409;
  --bg-alt: #080b16;
  --surface: #10152a;
  --surface-alt: #1a2040;
  --text: #f5f6ff;
  --muted: #9ca4c7;
  --accent: #5cda21;
  --accent-dark: #40a713;
  --border: rgba(255, 255, 255, 0.08);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  --radius: 18px;
  --transition: 200ms ease;
}

body {
  margin: 0;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top, rgba(92, 218, 33, 0.12), transparent 55%),
    var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

main {
  width: min(1200px, 100%);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2.5rem) 4rem;
}

.site-header {
  width: min(1200px, 100%);
  margin: 0 auto;
  padding: 1.5rem clamp(1rem, 4vw, 2.5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-header > * {
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  transition:
    background var(--transition),
    transform var(--transition);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition:
    transform var(--transition),
    opacity var(--transition);
}

.nav-toggle[aria-expanded="true"] {
  background: rgba(255, 255, 255, 0.05);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(4px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-4px) rotate(-45deg);
}

.brand {
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.logo {
  width: 70px;
  height: 60px;
  border-radius: 8px;
  background: white;
}
.brand span {
  color: var(--accent);
}

.novocode {
  text-decoration: none;
  color: var(--text);
}

.turboweb {
  color: var(--accent);
  font-weight: 600;
}

.formacao {
  color: red;
  font-size: 0.8rem;
  font-style: italic;
}

.btn-whatsapp {
  position: fixed;
  bottom: 20px;
  right: 20px;

  width: 60px;
  height: 60px;

  background: #25d366;
  color: white;

  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 30px;

  text-decoration: none;

  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);

  transition: 0.3s;
  z-index: 9999;
}

.btn-whatsapp:hover {
  transform: scale(1.1);
  background: #1ebe5d;
}

.site-nav ul {
  list-style: none;
  display: flex;
  gap: 1rem;
  margin: 0;
  padding: 0;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color var(--transition);
}

.site-nav a:hover,
.site-nav a:focus {
  color: var(--accent);
}

.btn {
  border: none;
  border-radius: 999px;
  padding: 0.65rem 1.5rem;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    background var(--transition);
}

.btn.primary {
  background: var(--accent);
  color: #041104;
  box-shadow: 0 10px 25px rgba(92, 218, 33, 0.35);
}

.btn.primary:hover {
  transform: translateY(-2px);
  background: var(--accent-dark);
}

.btn.secondary {
  border: 1px solid var(--border);
  color: var(--text);
  background: transparent;
}

.btn.ghost {
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.9rem;
  padding: 0.5rem 1.25rem;
}

.btn.full {
  width: 100%;
}

.hero {
  padding: 4rem 0;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2.5rem;
  align-items: center;
}

.hero-copy h1 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  margin: 0.5rem 0 1rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 0.78rem;
  color: var(--accent);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}

.hero-photo {
  position: relative;
  justify-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.photo-ring {
  padding: 0.75rem;
  border-radius: 30px;
  background: linear-gradient(
    135deg,
    rgba(92, 218, 33, 0.25),
    rgba(92, 218, 33, 0)
  );
  box-shadow: var(--shadow);
}

.photo-ring img {
  border-radius: 24px;
}

.hero-card {
  position: static;
  background: var(--surface);
  padding: 1rem 1.2rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.hero-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.hero-card strong {
  font-size: 0.95rem;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.metrics article {
  padding: 1.4rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.metrics span {
  display: block;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--accent);
}

.section-head {
  max-width: 720px;
  margin-bottom: 2rem;
}

.section-head h2 {
  margin: 0.6rem 0 0;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.about {
  padding: 3rem 0;
  border-top: 1px solid var(--border);
}

.about-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.details-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.details-list strong {
  color: var(--accent);
  font-weight: 600;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.skills-grid article {
  padding: 1.5rem;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition:
    transform var(--transition),
    border-color var(--transition);
}

.skills-grid article:hover {
  transform: translateY(-6px);
  border-color: rgba(92, 218, 33, 0.4);
}

.projects {
  padding: 3rem 0;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.project-grid article {
  padding: 1.75rem;
  background: var(--surface-alt);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.project-grid .tag {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.7rem;
  color: var(--muted);
}

.project-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.project-grid li {
  font-size: 0.85rem;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.contact {
  padding: 3rem 0 4rem;
  border-top: 1px solid var(--border);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

form {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow);
}

label {
  font-size: 0.85rem;
  color: var(--muted);
}

input,
select,
textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid transparent;
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  transition:
    border-color var(--transition),
    background var(--transition);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: rgba(92, 218, 33, 0.6);
  background: rgba(8, 11, 22, 0.9);
}

.form-inline {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.checkbox {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
}

.checkbox input {
  width: auto;
}

.contact-card {
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface-alt);
}

.contact-card ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.contact-card a {
  color: var(--accent);
  text-decoration: none;
}

.site-footer {
  text-align: center;
  padding: 1.5rem 0 2rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
}

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-photo {
    order: -1;
  }

  .metrics {
    gap: 1rem;
  }
}

@media (max-width: 900px) {
  .metrics {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }

  .projects,
  .about,
  .contact {
    padding: 2.5rem 0;
  }
}

@media (max-width: 720px) {
  .site-header {
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
  }

  .nav-toggle {
    display: inline-flex;
    order: 2;
  }

  .site-header .btn.ghost {
    order: 4;
    width: 100%;
    justify-content: center;
  }

  .site-nav {
    width: 100%;
    order: 3;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition:
      max-height 250ms ease,
      opacity 200ms ease;
  }

  .site-nav.open {
    max-height: 320px;
    opacity: 1;
  }

  .site-nav ul {
    flex-direction: column;
    width: 100%;
    align-items: flex-start;
    padding: 0.75rem 0;
  }

  .hero-actions {
    flex-direction: column;
  }

  main {
    padding-bottom: 3rem;
  }

  form,
  .contact-card {
    padding: 1.5rem;
  }
}

@media (max-width: 540px) {
  .hero-copy h1 {
    font-size: 1.9rem;
  }

  .section-head h2 {
    font-size: 1.8rem;
  }

  .metrics article {
    padding: 1.1rem;
  }

  .hero-card {
    width: 100%;
    text-align: center;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-card,
  .metrics article,
  .skills-grid article,
  .project-grid article {
    animation: float 6s ease-in-out infinite;
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-6px);
  }
}
