*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: #0a0a0b;
  color: #e0e0e0;
  line-height: 1.6;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }


.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(10,10,11,0.5);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.nav-inner {
  max-width: 1100px; margin: 0 auto; padding: 0 24px;
  height: 64px; display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { font-size: 24px; font-weight: 800; color: #fff; }
.nav-logo span { color: #6c63ff; }
.nav-links { display: flex; gap: 32px; }
.nav-links a { font-size: 14px; color: #888; transition: color 0.2s; font-weight: 500; }
.nav-links a:hover { color: #fff; }

.btn {
  display: inline-block; padding: 10px 20px; border-radius: 6px;
  font-size: 13px; font-weight: 600; transition: all 0.2s; cursor: pointer;
}
.btn-primary { background: #6c63ff; color: #fff; }
.btn-primary:hover { background: #5a52e0; transform: translateY(-1px); }
.btn-outline { border: 1px solid #333; color: #ccc; }
.btn-outline:hover { border-color: #6c63ff; color: #fff; }

.streak-container {
  position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
  pointer-events: none; z-index: 0; overflow: visible;
}
.blur-streak {
  position: absolute; pointer-events: none;
}
.blur-streak-inner {
  width: 100%; height: 100%;
  filter: blur(80px);
  border-radius: 50%;
}
.hero {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  max-width: 1100px; margin: 0 auto; padding: 100px 24px 60px;
  gap: 60px; position: relative; z-index: 1;
}
.hero-content { flex: 1; }
.hero-greeting { color: #6c63ff; font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.hero-name { font-size: 52px; font-weight: 800; color: #fff; line-height: 1.1; margin-bottom: 8px; }
.hero-role {
  font-size: 22px; color: #888; font-weight: 400; margin-bottom: 20px;
  min-height: 33px; border-right: 2px solid #6c63ff;
  padding-right: 4px; display: inline-block;
  animation: blink 0.8s infinite;
}
@keyframes blink { 0%, 100% { border-color: #6c63ff; } 50% { border-color: transparent; } }
.hero-desc { font-size: 16px; color: #999; max-width: 480px; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 16px; }

.hero-visual { flex: 0 0 auto; }
.code-block {
  background: #141419; border: 1px solid #222; border-radius: 12px;
  padding: 0; overflow: hidden; width: fit-content;
}
.code-dots {
  padding: 12px 16px; display: flex; gap: 6px;
  border-bottom: 1px solid #1a1a1f;
}
.code-dots span { width: 10px; height: 10px; border-radius: 50%; }
.code-dots span:nth-child(1) { background: #ff5f57; }
.code-dots span:nth-child(2) { background: #febc2e; }
.code-dots span:nth-child(3) { background: #28c840; }
.code-block pre { padding: 20px 24px; margin: 0; text-align: left; }
.code-block code { font-family: 'Courier New', monospace; font-size: 14px; line-height: 1.8; color: #ccc; white-space: pre; text-align: left; display: block; }
.kw { color: #c678dd; }
.str { color: #98c379; }
.bool { color: #e5c07b; }

.section { padding: 100px 24px; max-width: 1100px; margin: 0 auto; position: relative; z-index: 1; scroll-margin-top: -10px; }
.section-dark { max-width: none; background: transparent; scroll-margin-top: -20px; }
.section-dark > * { max-width: 1100px; margin-left: auto; margin-right: auto; }
.section-title {
  font-size: 36px; font-weight: 800; color: #fff; margin-bottom: 48px;
  position: relative; display: inline-block;
}
.section-title::after {
  content: ''; position: absolute; bottom: -8px; left: 0;
  width: 48px; height: 3px; background: #6c63ff; border-radius: 2px;
}

.projects-section { padding-bottom: 0; margin-bottom: -120px; }

.showcase-item {
  display: flex; align-items: center; min-height: 100vh;
  max-width: 1100px; margin: 0 auto; padding: 60px 24px; gap: 60px;
}
.showcase-item.reverse { flex-direction: row-reverse; }
.showcase-preview {
  flex: 1; display: flex; align-items: center; justify-content: center;
  padding: 40px; min-height: 300px;
}
.showcase-info { flex: 1; }
.showcase-info h3 { font-size: 32px; font-weight: 800; color: #fff; margin-bottom: 16px; }
.showcase-info p { font-size: 16px; color: #999; margin-bottom: 20px; line-height: 1.7; }
.showcase-list {
  list-style: none; padding: 0; margin-bottom: 24px;
}
.showcase-list li {
  font-size: 14px; color: #aaa; padding: 6px 0; padding-left: 20px;
  position: relative;
}
.showcase-list li::before {
  content: ''; position: absolute; left: 0; top: 13px;
  width: 8px; height: 8px; border-radius: 50%; background: #6c63ff;
}

.project-tags { display: flex; flex-wrap: wrap; gap: 8px; opacity: 1 !important; transform: none !important; }
.project-tags span {
  font-size: 12px; padding: 4px 10px; background: #1c1c25; color: #aaa;
  border-radius: 6px; border: 1px solid #252530;
}

.terminal {
  background: #1a1a22; border-radius: 10px; overflow: hidden;
  width: 100%; max-width: 380px; border: 1px solid #252530;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.terminal.small { max-width: 100%; }
.terminal-bar {
  padding: 10px 14px; display: flex; gap: 5px;
  background: #141419; border-bottom: 1px solid #1c1c22;
}
.terminal-bar span:nth-child(1) { width: 8px; height: 8px; border-radius: 50%; background: #ff5f57; }
.terminal-bar span:nth-child(2) { width: 8px; height: 8px; border-radius: 50%; background: #febc2e; }
.terminal-bar span:nth-child(3) { width: 8px; height: 8px; border-radius: 50%; background: #28c840; }
.terminal-body { padding: 16px; font-family: 'Courier New', monospace; font-size: 13px; line-height: 1.7; }
.t-prompt { color: #28c840; }
.t-kw { color: #c678dd; }
.t-str { color: #98c379; }
.t-output { color: #6c63ff; }

.mockup-browser {
  background: #1a1a22; border-radius: 10px; overflow: hidden;
  width: 100%; border: 1px solid #252530;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.mockup-browser.small { max-width: 100%; }
.mockup-bar {
  padding: 10px 14px; display: flex; align-items: center; gap: 10px;
  background: #141419; border-bottom: 1px solid #1c1c22;
}
.mockup-dots { display: flex; gap: 5px; }
.mockup-dots span:nth-child(1) { width: 8px; height: 8px; border-radius: 50%; background: #ff5f57; }
.mockup-dots span:nth-child(2) { width: 8px; height: 8px; border-radius: 50%; background: #febc2e; }
.mockup-dots span:nth-child(3) { width: 8px; height: 8px; border-radius: 50%; background: #28c840; }
.mockup-url {
  font-size: 11px; color: #555; background: #0e0e11; padding: 4px 12px;
  border-radius: 4px; flex: 1; text-align: center;
}
.mockup-body { padding: 16px; min-height: 140px; position: relative; }

.mockup-header { height: 12px; background: #252530; border-radius: 3px; width: 60%; margin-bottom: 12px; }
.mockup-hero-block { height: 40px; background: linear-gradient(135deg, #6c63ff22, #6c63ff11); border-radius: 6px; margin-bottom: 16px; }
.mockup-products { display: flex; gap: 8px; }
.mockup-card {
  flex: 1; height: 60px; background: #252530; border-radius: 6px;
  position: relative; overflow: hidden;
}
.mockup-card::after {
  content: ''; position: absolute; bottom: 8px; left: 8px; right: 8px;
  height: 6px; background: #333; border-radius: 2px;
}

.lp-nav-mock { height: 8px; background: #252530; border-radius: 3px; width: 50%; margin-bottom: 12px; }
.lp-hero { height: 36px; background: linear-gradient(135deg, #6c63ff22, #28c84022); border-radius: 6px; margin-bottom: 6px; }
.lp-subtitle { height: 6px; background: #252530; border-radius: 2px; width: 65%; margin: 0 auto 14px; }
.lp-features { display: flex; gap: 8px; margin-bottom: 12px; }
.lp-feat { flex: 1; padding: 8px; background: #1c1c25; border-radius: 6px; border: 1px solid #252530; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.lp-feat-icon { width: 16px; height: 16px; border-radius: 50%; background: #6c63ff33; }
.lp-feat-text { height: 4px; width: 80%; background: #333; border-radius: 2px; }
.lp-cta { height: 14px; width: 35%; margin: 0 auto; background: #6c63ff44; border-radius: 4px; }

.dash-content { display: flex; flex-direction: column; gap: 8px; margin-left: 30%; }
.dash-sidebar {
  position: absolute; left: 0; top: 0; bottom: 0; width: 28%;
  background: #141419; border-right: 1px solid #1c1c22;
  padding: 10px 6px; display: flex; flex-direction: column; gap: 6px;
}
.dash-nav-item { height: 8px; background: #252530; border-radius: 3px; }
.dash-nav-item.active { background: #6c63ff44; }
.dash-top-cards { display: flex; gap: 6px; }
.dash-stat-card { flex: 1; height: 28px; background: #1c1c25; border: 1px solid #252530; border-radius: 4px; }
.dash-chart { height: 40px; background: linear-gradient(90deg, #6c63ff22, #6c63ff11, #6c63ff22); border-radius: 4px; }
.dash-table { display: flex; flex-direction: column; gap: 3px; }
.dash-table-row { height: 10px; background: #252530; border-radius: 2px; }
.dash-table-row.header { background: #6c63ff22; height: 8px; }

.integ-flow { display: flex; align-items: center; gap: 0; margin-bottom: 8px; }
.integ-flow:last-child { margin-bottom: 0; }
.integ-box {
  padding: 6px 10px; background: #1c1c25; border: 1px solid #252530;
  border-radius: 4px; font-size: 10px; font-weight: 700; color: #888;
  text-align: center; white-space: nowrap;
}
.integ-box.highlight { background: #6c63ff22; border-color: #6c63ff44; color: #6c63ff; }
.integ-arrow { flex: 1; height: 2px; background: linear-gradient(90deg, #252530, #6c63ff33, #252530); min-width: 16px; position: relative; }
.integ-arrow::after { content: ''; position: absolute; right: 0; top: -3px; border: 4px solid transparent; border-left: 5px solid #6c63ff33; }

.api-preview { background: #0e0e11; }

.mobile-preview { background: #0e0e11; }
.phone-mockup {
  width: 140px; background: #1a1a22; border-radius: 20px; border: 2px solid #252530;
  padding: 8px; position: relative;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.phone-mockup.large {
  width: 170px; padding: 10px; border-radius: 26px; border-width: 2px;
  aspect-ratio: 9 / 16;
}
.phone-mockup.large .phone-notch { width: 50px; height: 6px; margin: 4px auto 10px; border-radius: 4px; }
.phone-mockup.large .phone-header { height: 10px; margin-bottom: 12px; }
.phone-mockup.large .phone-screen { padding: 4px 8px; display: flex; flex-direction: column; height: 100%; }
.phone-mockup.large .phone-item { height: 28px; border-radius: 5px; }
.phone-mockup.large .phone-list { gap: 8px; margin-bottom: auto; }
.phone-mockup.large .phone-nav { padding: 8px 0; gap: 5px; margin-top: auto; }
.phone-mockup.large .phone-nav-item { height: 8px; border-radius: 3px; }
.phone-notch {
  width: 50px; height: 6px; background: #0e0e11; border-radius: 4px;
  margin: 4px auto 8px;
}
.phone-screen { padding: 4px 6px; }
.phone-header { height: 10px; background: #6c63ff33; border-radius: 3px; margin-bottom: 10px; }
.phone-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.phone-item { height: 20px; background: #252530; border-radius: 4px; }
.phone-nav {
  display: flex; gap: 4px; padding: 6px 0; border-top: 1px solid #252530;
}
.phone-nav-item { flex: 1; height: 6px; background: #252530; border-radius: 2px; }
.phone-nav-item.active { background: #6c63ff; }

.chat-body { display: flex; flex-direction: column; gap: 6px; min-height: 160px; }
.chat-bubble {
  padding: 8px 12px; border-radius: 12px; font-size: 12px;
  max-width: 85%; line-height: 1.4;
}
.chat-bubble.received {
  background: #1c1c25; color: #ccc; align-self: flex-start;
  border-bottom-left-radius: 4px;
}
.chat-bubble.sent {
  background: #6c63ff; color: #fff; align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.sys-topbar {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 8px; background: #141419; border-bottom: 1px solid #1c1c22;
  margin: -16px -16px 12px; padding: 8px 12px;
}
.sys-logo { width: 18px; height: 18px; background: #6c63ff33; border-radius: 4px; }
.sys-nav-items { display: flex; gap: 6px; flex: 1; margin-left: 10px; }
.sys-nav-link { width: 30px; height: 6px; background: #252530; border-radius: 2px; }
.sys-nav-link.active { background: #6c63ff44; }
.sys-avatar { width: 16px; height: 16px; background: #252530; border-radius: 50%; }
.sys-content { display: flex; flex-direction: column; gap: 8px; }
.sys-actions { display: flex; gap: 6px; align-items: center; }
.sys-search { flex: 1; height: 14px; background: #1c1c25; border: 1px solid #252530; border-radius: 3px; }
.sys-btn { width: 40px; height: 14px; background: #6c63ff33; border-radius: 3px; }
.sys-table { display: flex; flex-direction: column; gap: 3px; }
.sys-row { display: flex; gap: 4px; padding: 4px 0; }
.sys-row.header { border-bottom: 1px solid #252530; }
.sys-cell { flex: 1; height: 8px; background: #252530; border-radius: 2px; }
.sys-row.header .sys-cell { background: #6c63ff22; height: 6px; }
.sys-cell.small { flex: 0.5; }
.sys-pagination { height: 8px; width: 60px; background: #252530; border-radius: 2px; margin: 4px auto 0; }

.counters-section { padding: 60px 24px; }
.counters-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.counter { padding: 32px 16px; }
.counter-number { font-size: 48px; font-weight: 800; color: #6c63ff; }
.counter-suffix { font-size: 36px; font-weight: 800; color: #6c63ff; }
.counter-label { display: block; font-size: 14px; color: #666; margin-top: 8px; }

.skills-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; }
.skill-group h3 { font-size: 14px; color: #6c63ff; font-weight: 600; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 1px; }
.skill-items { display: flex; flex-direction: column; gap: 8px; }
.skill-item {
  padding: 10px 14px; background: #141419; border: 1px solid #1c1c22;
  border-radius: 8px; font-size: 14px; color: #bbb; transition: border-color 0.2s;
}
.skill-item:hover { border-color: #6c63ff44; color: #fff; }

.contact-desc { color: #888; font-size: 16px; margin-bottom: 36px; text-align: center; max-width: 500px; margin-left: auto; margin-right: auto; }
.section-dark#contato { padding: 100px 24px; max-width: 1100px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; scroll-margin-top: -25px; }
.section-dark#contato > * { text-align: center; }
.section-dark#contato .section-title::after { left: 50%; transform: translateX(-50%); }

.contact-form {
  display: flex; flex-direction: column; gap: 12px; width: 100%; max-width: 420px;
  margin: 0 auto; text-align: left;
}
.contact-form input,
.contact-form textarea {
  background: #141419; border: 1px solid #1c1c22; border-radius: 8px;
  padding: 12px 16px; color: #e0e0e0; font-family: 'Inter', sans-serif;
  font-size: 14px; outline: none; transition: border-color 0.2s; resize: vertical;
}
.contact-form input:focus,
.contact-form textarea:focus { border-color: #6c63ff; }
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: #555; }
.contact-form button { align-self: flex-start; border: none; }

.contact-socials { display: flex; gap: 12px; margin-top: 16px; justify-content: center; }
.social-link {
  width: 40px; height: 40px; border-radius: 50%; background: transparent;
  border: 1px solid #252530; color: #888; display: flex; align-items: center;
  justify-content: center; font-weight: 700; font-size: 14px; transition: all 0.2s;
}
.social-link:hover { border-color: #6c63ff; color: #6c63ff; }
.contact-card {
  display: flex; align-items: center; gap: 12px;
  background: #141419; border: 1px solid #1c1c22; border-radius: 12px;
  padding: 16px 24px; transition: all 0.2s; cursor: pointer;
}
.contact-card:hover { border-color: #6c63ff; transform: translateY(-2px); }
.contact-icon {
  width: 36px; height: 36px; border-radius: 8px; background: #6c63ff22;
  color: #6c63ff; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 16px;
}
.contact-card span { font-size: 14px; color: #ccc; }

.back-to-top {
  position: fixed; bottom: 28px; right: 28px; z-index: 99;
  width: 44px; height: 44px; border-radius: 50%;
  background: #6c63ff; color: #fff; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.4s, transform 0.4s;
  pointer-events: none;
}
.back-to-top.show {
  opacity: 1; transform: translateY(0);
  pointer-events: auto;
}
.back-to-top:hover { background: #5a52e0; }

.footer { text-align: center; padding: 32px; color: #444; font-size: 13px; border-top: 1px solid #141419; }

.fade-up {
  opacity: 0;
  transform: translateY(60px) scale(0.97);
  transition: opacity 1.6s cubic-bezier(0.22, 1, 0.36, 1), transform 1.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

@media (max-width: 768px) {
  .hero { flex-direction: column; text-align: center; padding-top: 80px; min-height: auto; gap: 40px; }
  .hero-name { font-size: 36px; }
  .hero-desc { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-visual { width: 100%; }
  .code-block { min-width: auto; }
  .nav-links { gap: 16px; }
  .nav-links a { font-size: 13px; }
  .showcase-item, .showcase-item.reverse { flex-direction: column; min-height: auto; padding: 40px 20px; gap: 32px; }
  .showcase-info { text-align: center; }
  .showcase-info h3 { font-size: 26px; }
  .showcase-list { display: inline-block; text-align: left; }
  .project-tags { justify-content: center; }
  .showcase-preview { padding: 20px; min-height: auto; }
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-socials { justify-content: center; }
  .section-title { font-size: 28px; display: block; text-align: center; }
  .section-title::after { left: 50% !important; transform: translateX(-50%) !important; }
  .projects-section { margin-bottom: -60px; }
  .phone-mockup.large { width: 140px; }
  .terminal { max-width: 100%; }
  .contact-form { max-width: 100%; }
  .section-dark#contato { padding: 60px 20px; scroll-margin-top: -10px; }
  .section { padding: 60px 20px; scroll-margin-top: 0px; }
  .section-dark { scroll-margin-top: 0px; }
}

@media (max-width: 480px) {
  .hero-name { font-size: 28px; }
  .hero-role { font-size: 16px; }
  .hero-desc { font-size: 14px; }
  .skills-grid { grid-template-columns: 1fr; }
  .nav-links { gap: 10px; }
  .nav-links a { font-size: 12px; }
  .nav-logo { font-size: 20px; }
  .nav { background: transparent; backdrop-filter: none; border-bottom: none; position: absolute; }
  .showcase-info h3 { font-size: 22px; }
  .showcase-info p { font-size: 14px; }
  .showcase-list li { font-size: 13px; }
  .section-title { font-size: 24px; }
  .mockup-body { padding: 10px; min-height: 120px; }
  .chat-bubble { font-size: 11px; padding: 6px 10px; }
  .integ-box { font-size: 9px; padding: 4px 6px; }
  .btn { padding: 10px 18px; font-size: 13px; }
  .projects-section { margin-bottom: -40px; }
}
