:root {
  --color-background: #040712;
  --color-surface: rgba(255, 255, 255, 0.05);
  --color-surface-strong: rgba(10, 15, 28, 0.9);
  --color-accent: #45f391;
  --color-accent-strong: #2dd870;
  --color-text: #e5ecff;
  --color-text-muted: #94a3c6;
  --color-border: rgba(255, 255, 255, 0.08);
  --color-gradient-1: rgba(69, 243, 145, 0.35);
  --color-gradient-2: rgba(39, 127, 255, 0.3);
  --shadow-soft: 0 20px 60px rgba(6, 12, 31, 0.65);
  --shadow-card: 0 16px 40px rgba(6, 14, 35, 0.55);
  --container-width: min(1120px, 92vw);
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  font-family: "Inter", Arial, sans-serif;
  background: radial-gradient(circle at top left, rgba(29, 57, 149, 0.18), transparent 35%),
    radial-gradient(circle at top right, rgba(24, 161, 112, 0.2), transparent 40%),
    var(--color-background);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  font-family: "Poppins", "Inter", system-ui;
  margin: 0 0 0.75em;
  color: #f8fbff;
  line-height: 1.2;
}

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

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

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

.section {
  position: relative;
  padding: clamp(5rem, 10vw, 7rem) 0;
  scroll-margin-top: 6rem;
}

.section-heading {
  max-width: 640px;
  margin-bottom: clamp(2.5rem, 8vw, 3.5rem);
}

.section-heading.align-center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.section-heading p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 1.05rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(4, 7, 18, 0.8);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}

.site-header.scrolled {
  background: rgba(4, 7, 18, 0.95);
  border-color: rgba(255, 255, 255, 0.08);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.95rem 0;
}

.brand {
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #f1f5ff;
}

.brand::before {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 4px;
  background: linear-gradient(135deg, var(--color-accent), #2b9fff);
  box-shadow: 0 0 20px rgba(69, 243, 145, 0.45);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.7rem;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
}

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

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

.contact-link {
  padding: 0.45rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(69, 243, 145, 0.35);
  color: #f6fff9;
  background: rgba(69, 243, 145, 0.12);
  transition: background 0.2s ease, transform 0.2s ease;
}

.contact-link:hover {
  background: rgba(69, 243, 145, 0.18);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--color-text);
  display: block;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.hero {
  display: flex;
  align-items: center;
  min-height: min(96vh, 760px);
  overflow: hidden;
}

.hero-content {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 6vw, 4rem);
  align-items: center;
  padding-top: clamp(3rem, 7vw, 5rem);
  padding-bottom: clamp(3rem, 7vw, 5rem);
}

.subtitle {
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 0.75rem;
  color: rgba(148, 163, 198, 0.72);
  margin-bottom: 1rem;
}

.hero-text h1 {
  font-size: clamp(2.45rem, 5vw, 3.8rem);
}

.lead {
  color: var(--color-text-muted);
  font-size: 1.12rem;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-accent), #2b9fff);
  color: #020409;
  box-shadow: 0 12px 28px rgba(69, 243, 145, 0.28);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(69, 243, 145, 0.35);
}

.btn-outline {
  border-color: rgba(255, 255, 255, 0.18);
  color: var(--color-text);
  background: rgba(255, 255, 255, 0.04);
}

.btn-outline:hover {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0 0;
}

.stats dt {
  font-size: 2rem;
  font-weight: 700;
  color: #f4fbff;
}

.stats dd {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.hero-media {
  position: relative;
  display: grid;
  gap: 1.5rem;
  justify-items: center;
}

.mockup-card {
  width: min(360px, 90%);
  border-radius: 18px;
  background: linear-gradient(165deg, rgba(69, 243, 145, 0.06), rgba(27, 36, 68, 0.85));
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: var(--shadow-card);
  padding: 1.5rem 1.7rem;
  backdrop-filter: blur(24px);
}

.mockup-header {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
}

.mockup-header span {
  width: 11px;
  height: 11px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
}

.mockup-header span:first-child {
  background: #ff6874;
}

.mockup-header span:nth-child(2) {
  background: #f3c95c;
}

.mockup-header span:nth-child(3) {
  background: #4ce69c;
}

.mockup-body {
  display: grid;
  gap: 0.9rem;
  color: rgba(236, 243, 255, 0.9);
  font-weight: 500;
  font-size: 0.95rem;
}

.mockup-body span {
  position: relative;
  padding-left: 1.4rem;
}

.mockup-body span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-accent), #2b9fff);
  box-shadow: 0 0 10px rgba(69, 243, 145, 0.45);
}

.floating-card {
  background: rgba(9, 16, 32, 0.85);
  border: 1px solid rgba(69, 243, 145, 0.15);
  border-radius: 14px;
  padding: 1.4rem 1.6rem;
  font-size: 0.98rem;
  max-width: 320px;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
  animation: float 6s ease-in-out infinite alternate;
}

.floating-card span {
  display: block;
  margin-top: 0.7rem;
  color: var(--color-text-muted);
  font-size: 0.85rem;
}

@keyframes float {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-18px);
  }
}

.background-ornament {
  position: absolute;
  pointer-events: none;
  background: radial-gradient(circle, rgba(69, 243, 145, 0.22), transparent 70%);
  filter: blur(0px);
}

.ornament-1 {
  width: 420px;
  height: 420px;
  top: -140px;
  right: 10%;
  opacity: 0.6;
}

.ornament-2 {
  width: 480px;
  height: 480px;
  bottom: -200px;
  left: -120px;
  background: radial-gradient(circle, rgba(39, 127, 255, 0.2), transparent 70%);
}

.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 6vw, 4rem);
}

.about-grid {
  display: grid;
  gap: 1.5rem;
}

.about-card {
  background: rgba(7, 12, 26, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  padding: 1.8rem;
  box-shadow: 0 10px 28px rgba(6, 12, 31, 0.4);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.about-card:hover {
  transform: translateY(-6px);
  border-color: rgba(69, 243, 145, 0.25);
}

.services {
  background: rgba(9, 12, 25, 0.85);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: rgba(6, 10, 22, 0.9);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 2rem;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, background 0.25s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  background: rgba(10, 18, 34, 0.95);
}

.service-icon {
  font-size: 1.8rem;
  margin-bottom: 1.2rem;
}

.service-card p {
  color: var(--color-text-muted);
  margin: 0;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.75rem;
}

.project-card {
  display: grid;
  grid-template-rows: auto 1fr;
  background: rgba(5, 10, 21, 0.92);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.project-card:hover {
  transform: translateY(-8px);
  border-color: rgba(69, 243, 145, 0.3);
}

.project-thumb {
  height: 200px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.project-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(4, 7, 18, 0) 35%, rgba(4, 7, 18, 0.75) 100%);
}

/* Projetos - Portfolio */
.thumb-petdudis {
  background-image: url('images/pet-dudis.png');
}

.thumb-gocal {
  background-image: url('images/gocal.png');
}

.thumb-hubrh {
  background-image: url('images/hubrh.png');
}

.thumb-tagpdf {
  background-image: url('images/tag-pdf.png');
}

.thumb-agendoo {
  background-image: url('images/agendoo.png');
}

/* Tecnologias - Ícones e símbolos */
.thumb-biovida {
  background: linear-gradient(135deg, #e34f26, #f16529);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  color: rgba(255, 255, 255, 0.9);
}

.thumb-biovida::before {
  content: "</>";
  font-weight: bold;
  font-family: monospace;
}

.thumb-atmos {
  background: linear-gradient(135deg, #61dafb, #21a1f1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  color: rgba(255, 255, 255, 0.9);
}

.thumb-atmos::before {
  content: "⚛";
}

.thumb-gourmet {
  background: linear-gradient(135deg, #68a063, #539e43);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  color: rgba(255, 255, 255, 0.9);
}

.thumb-gourmet::before {
  content: "{ }";
  font-weight: bold;
  font-family: monospace;
}

.thumb-horizon {
  background: linear-gradient(135deg, #00758f, #00a0d1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  color: rgba(255, 255, 255, 0.9);
}

.thumb-horizon::before {
  content: "🗄";
}

.thumb-aurora {
  background: linear-gradient(135deg, #f34f29, #d73a49);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  color: rgba(255, 255, 255, 0.9);
}

.thumb-aurora::before {
  content: "⚙";
}

.thumb-green {
  background: linear-gradient(135deg, #7377ad, #8892bf);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  color: rgba(255, 255, 255, 0.9);
}

.thumb-green::before {
  content: "<?>";
  font-weight: bold;
  font-family: monospace;
}

.project-body {
  padding: 1.8rem;
}

.project-tag {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(148, 163, 198, 0.85);
  margin-bottom: 0.8rem;
}

.project-body p {
  color: var(--color-text-muted);
  margin-bottom: 1.3rem;
}

.project-link {
  color: var(--color-accent);
  font-weight: 600;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.timeline-step {
  position: relative;
  padding: 2.1rem 1.8rem;
  background: rgba(6, 10, 22, 0.92);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: var(--shadow-soft);
}

.step-number {
  font-size: 2.6rem;
  font-weight: 700;
  color: rgba(69, 243, 145, 0.38);
  margin-bottom: 1.2rem;
}

.timeline-step p {
  color: var(--color-text-muted);
  margin: 0;
}

.testimonials {
  background: rgba(6, 10, 22, 0.82);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.testimonial-card {
  background: rgba(5, 9, 20, 0.9);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  padding: 2rem;
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 1.4rem;
}

.testimonial-card p {
  margin: 0;
  font-size: 1.02rem;
  color: rgba(230, 236, 255, 0.92);
}

.testimonial-card span {
  display: block;
  color: var(--color-text-muted);
  font-size: 0.85rem;
}

.cta {
  background: linear-gradient(145deg, rgba(69, 243, 145, 0.08), rgba(26, 40, 80, 0.4));
}

.cta-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  background: rgba(6, 10, 22, 0.9);
  border-radius: 24px;
  padding: clamp(2.5rem, 6vw, 3.5rem);
  border: 1px solid rgba(69, 243, 145, 0.18);
  box-shadow: var(--shadow-soft);
}

.cta-card p {
  color: var(--color-text-muted);
  margin: 0;
}

.contact {
  background: rgba(5, 8, 18, 0.88);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 6vw, 3.5rem);
  align-items: start;
}

.contact-info p {
  color: var(--color-text-muted);
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 2rem 0;
  display: grid;
  gap: 1rem;
  color: rgba(229, 236, 255, 0.95);
}

.contact-list a {
  color: inherit;
}

.contact-icon {
  margin-right: 0.9rem;
  font-size: 1.1rem;
}

.social-links {
  display: flex;
  gap: 1.2rem;
}

.social-links a {
  color: var(--color-text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.social-links a:hover {
  color: var(--color-accent);
}

.contact-form {
  background: rgba(2, 4, 10, 0.85);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: clamp(2rem, 5vw, 2.5rem);
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 1.3rem;
}

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

.form-field {
  display: grid;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: rgba(182, 195, 226, 0.85);
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(8, 14, 30, 0.85);
  color: var(--color-text);
  font-family: inherit;
  font-size: 0.98rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-field input:focus-visible,
.form-field textarea:focus-visible {
  outline: none;
  border-color: rgba(69, 243, 145, 0.45);
  box-shadow: 0 0 0 3px rgba(69, 243, 145, 0.12);
}

.form-field textarea {
  resize: vertical;
}

.checkbox-field {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.checkbox-field input {
  width: 18px;
  height: 18px;
  border-radius: 4px;
}

.site-footer {
  background: rgba(0, 3, 10, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 3.5rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2.5rem;
}

.footer-grid p,
.footer-grid li {
  color: var(--color-text-muted);
  margin: 0;
  list-style: none;
}

.footer-grid ul {
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.7rem;
}

.footer-grid h4 {
  margin-bottom: 0.9rem;
  color: rgba(238, 242, 255, 0.92);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.newsletter-form {
  display: flex;
  margin-top: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 999px;
  overflow: hidden;
}

.newsletter-form input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 0.75rem 1rem;
  color: #f5f8ff;
  font-size: 0.95rem;
}

.newsletter-form input::placeholder {
  color: rgba(148, 163, 198, 0.6);
}

.newsletter-form input:focus-visible {
  outline: none;
}

.newsletter-form button {
  padding: 0 1rem;
  border: none;
  background: linear-gradient(135deg, var(--color-accent), #2b9fff);
  color: #020409;
  font-weight: 600;
  cursor: pointer;
  transition: filter 0.2s ease;
}

.newsletter-form button:hover {
  filter: brightness(1.05);
}

.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: rgba(148, 163, 198, 0.7);
  font-size: 0.85rem;
}

.footer-bottom a {
  color: rgba(229, 236, 255, 0.85);
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-actions {
    justify-content: center;
  }

  .mockup-card {
    order: -1;
  }

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

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

@media (max-width: 880px) {
  .nav-links {
    position: absolute;
    inset: 64px 16px auto;
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem;
    background: rgba(4, 7, 18, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    box-shadow: var(--shadow-soft);
    transform-origin: top right;
    transform: scale(0.9) translateY(-10px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, transform 0.25s ease;
  }

  .nav-links.is-open {
    opacity: 1;
    visibility: visible;
    transform: scale(1) translateY(0);
  }

  .nav-toggle {
    display: flex;
  }

  .nav-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .cta-card {
    flex-direction: column;
    text-align: center;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 4rem 0;
  }

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

  .services-grid,
  .portfolio-grid,
  .timeline,
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

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