:root {
  --bg: #140d25;
  --card: rgba(255, 255, 255, 0.04);
  --card-border: rgba(193, 132, 255, 0.14);
  --text: #f5ecff;
  --muted: #d2c1ee;
  --primary: #b56cff;
  --primary-strong: #8c45dd;
  --shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
  --radius-xl: 26px;
  --max-width: 1220px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(181, 108, 255, 0.18), transparent 30%),
    radial-gradient(circle at top right, rgba(181, 108, 255, 0.12), transparent 25%),
    linear-gradient(180deg, #2a174d 0%, var(--bg) 42%, #120b22 100%);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

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

img {
  max-width: 100%;
  display: block;
  border-radius: 22px;
}

.container {
  width: min(var(--max-width), calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(14px);
  background: rgba(16, 10, 31, 0.65);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  gap: 20px;
}

.brand {
  font-size: 1rem;
  font-weight: 700;
  color: #f3e5ff;
}

.nav-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.nav-links a {
  padding: 12px 18px;
  border-radius: 14px;
  color: var(--muted);
  border: 1px solid transparent;
  transition: 0.25s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  border-color: rgba(181, 108, 255, 0.45);
  background: rgba(181, 108, 255, 0.08);
}

main {
  padding: 30px 0;
}

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
  align-items: center;
  margin-bottom: 30px;
}

.hero-text {
  padding: 20px;
}

.hero-image {
  padding: 10px;
  border-radius: 25px;
  border: 1px solid var(--card-border);
  background: rgba(255, 255, 255, 0.03);
}

h1 {
  font-size: 48px;
  line-height: 1.05;
  margin-bottom: 12px;
}

.subtitle {
  font-size: 20px;
  margin-bottom: 20px;
  color: #e0cfff;
  font-weight: 700;
}

.eyebrow {
  color: #e6d6ff;
  font-weight: 700;
  margin-bottom: 14px;
  font-size: 1rem;
}

.hero-text p,
.panel p {
  text-align: justify;
  line-height: 1.8;
}

.hero-text > p:not(.eyebrow):not(.subtitle) {
  margin-top: 18px;
}

.grid-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 30px;
}

.panel {
  padding: 25px;
  border-radius: var(--radius-xl);
  background: var(--card);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow);
}

.panel h2 {
  margin-bottom: 14px;
  font-size: 24px;
}

.panel p + p {
  margin-top: 14px;
}

#projetos {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  border-radius: 16px;
  font-weight: 700;
  border: 1px solid var(--primary);
  transition: 0.2s;
  min-height: 54px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  color: white;
}

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

.project-btn {
  margin-top: 24px;
}

.contact-section {
  padding: 25px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.contact-card {
  padding: 20px;
  display: flex;
  gap: 15px;
  align-items: center;
  border-radius: var(--radius-xl);
  background: var(--card);
  border: 1px solid var(--card-border);
}

.icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  color: white;
  flex-shrink: 0;
}

.contact-card h3 {
  margin-bottom: 5px;
  color: var(--text);
}

.contact-card a {
  color: var(--muted);
  word-break: break-word;
}

.contact-card a:hover {
  color: #ffffff;
}

.footer {
  text-align: center;
  padding: 20px;
  color: #cbb4ec;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 900px) {
  .hero,
  .grid-two,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .nav {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  h1 {
    font-size: 38px;
  }

  .hero-text,
  .panel,
  .contact-section {
    padding: 22px;
  }
}