:root {
  --bg: #0a0a0a;
  --bg-alt: #111111;
  --bg-card: #151515;
  --border: #222;
  --text: #ffffff;
  --text-muted: #aaaaaa;
  --gold: #c9a227;
  --gold-light: #e0c04e;
  --blue: #2e8fd1;
}

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

html, body {
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

/* HEADER */
.header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 10%;
  background: var(--bg);
  position: fixed;
  top: 0;
  left: 0;
  border-bottom: 1px solid var(--border);
  z-index: 1000;
}

.header .logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-icon {
  height: 34px;
  width: auto;
}

.logo-text {
  font-weight: bold;
  font-size: 1.2rem;
  letter-spacing: 0.5px;
  color: var(--text);
}

.logo-text .accent {
  color: var(--gold);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 1.3rem;
  line-height: 1;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
}

.header nav {
  display: flex;
  align-items: center;
}

.header nav a {
  margin-left: 30px;
  text-decoration: none;
  color: var(--text-muted);
  transition: 0.2s;
}

.header nav a:hover {
  color: var(--text);
}

.btn-header {
  background: var(--gold);
  padding: 10px 18px;
  border-radius: 6px;
  color: #0a0a0a !important;
  font-weight: bold;
}

.btn-header:hover {
  background: var(--gold-light);
}

/* HERO */
.hero {
  padding: 160px 10% 100px;
  background: radial-gradient(circle at top, #1a1a1a, #0a0a0a);
  text-align: center;
}

.eyebrow {
  display: inline-block;
  color: var(--blue);
  font-weight: bold;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 18px;
}
.hero p {
  font-size: 1.3rem;
  color: var(--text-muted);
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  margin-bottom: 60px;
}

.btn {
  display: inline-block;
  padding: 14px 22px;
  margin: 10px;
  background: var(--gold);
  border: 1px solid var(--gold);
  border-radius: 6px;
  color: #0a0a0a;
  text-decoration: none;
  font-weight: bold;
  transition: 0.2s;
  cursor: pointer;
  font-size: 1rem;
}
.btn:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-outline:hover {
  background: var(--bg-card);
  border-color: var(--gold);
  color: var(--gold);
}

.hero-highlights {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
  max-width: 900px;
  margin: 0 auto;
}

.highlight {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 180px;
}

.highlight strong {
  color: var(--gold);
  font-size: 1.05rem;
}

.highlight span {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* SECTION TITLES */
.section-title {
  font-size: 2rem;
  margin-bottom: 10px;
}

.section-subtitle {
  color: var(--text-muted);
  margin-bottom: 40px;
}

/* WHY */
.why {
  padding: 80px 10% 40px;
  text-align: center;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 30px;
  margin-top: 40px;
  text-align: left;
}

.why-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 34px 30px;
  text-align: center;
}

.why-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(201, 162, 39, 0.12);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.why-icon svg {
  width: 36px;
  height: 36px;
}

.why-item h3 {
  color: var(--gold);
  margin-top: 0;
}

.why-item p {
  color: var(--text-muted);
  margin-bottom: 0;
}

/* ABOUT / CARROSSEL */
.about {
  padding: 80px 10%;
  text-align: center;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.carousel {
  position: relative;
  max-width: 1100px;
  margin: 40px auto 0;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid var(--border);
  background:
    radial-gradient(circle at 12% 20%, rgba(201, 162, 39, 0.2), transparent 55%),
    radial-gradient(circle at 88% 82%, rgba(46, 143, 209, 0.2), transparent 55%),
    var(--bg-card);
}

.carousel::before {
  content: "";
  position: absolute;
  top: -70px;
  right: -70px;
  width: 380px;
  height: 380px;
  background: url("MasDeveloperIcone.png") no-repeat center / contain;
  opacity: 0.06;
  pointer-events: none;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease;
}

.carousel-slide {
  position: relative;
  z-index: 1;
  flex: 0 0 100%;
  display: flex;
  align-items: center;
  gap: 50px;
  padding: 70px 80px;
  min-height: 380px;
  text-align: left;
}

.slide-avatar {
  flex: 0 0 170px;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.6rem;
  font-weight: bold;
  color: #0a0a0a;
  overflow: hidden;
  border: 3px solid var(--bg-card);
  box-shadow: 0 0 0 2px var(--gold);
}

.slide-avatar img {
  width: 60%;
  height: 60%;
  object-fit: contain;
}

.slide-avatar.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide-avatar.brand {
  flex-basis: 240px;
  width: 240px;
  height: 240px;
  background: none;
  border: none;
  box-shadow: none;
}

.slide-avatar.brand img {
  width: 100%;
  height: 100%;
}

.slide-content h3 {
  color: var(--gold);
  margin-top: 0;
  margin-bottom: 14px;
  font-size: 1.7rem;
}

.slide-content p {
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 1.05rem;
  margin: 0;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border);
  color: var(--text);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.2s;
}

.carousel-arrow.prev {
  left: 14px;
}
.carousel-arrow.next {
  right: 14px;
}

.carousel-arrow:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding-bottom: 22px;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #333;
  border: none;
  cursor: pointer;
  padding: 0;
}

.dot.active {
  background: var(--gold);
}

/* SERVIÇOS */
.services {
  padding: 90px 10% 80px;
  text-align: center;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 56px;
  text-align: left;
}

.service-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  transition: border-color 0.2s;
}

.service-card:hover {
  border-color: var(--gold);
}

.service-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}

.service-icon svg {
  width: 28px;
  height: 28px;
}

.service-icon.gold {
  background: rgba(201, 162, 39, 0.12);
  color: var(--gold);
}

.service-icon.blue {
  background: rgba(46, 143, 209, 0.12);
  color: var(--blue);
}

.service-card h3 {
  margin: 0 0 10px;
  font-size: 1.25rem;
}

.service-card p {
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0 0 20px;
  flex-grow: 1;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.service-tag {
  font-size: 0.8rem;
  font-weight: bold;
  color: var(--gold);
  background: rgba(201, 162, 39, 0.1);
  border: 1px solid rgba(201, 162, 39, 0.3);
  padding: 4px 12px;
  border-radius: 20px;
}

.services-cta {
  margin-top: 56px;
}

.cta {
  color: var(--gold);
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
}

.cta:hover {
  color: var(--gold-light);
}

/* CASES */
.cases {
  padding: 80px 10%;
  text-align: center;
}

.case-grid {
  display: flex;
  flex-direction: column;
  gap: 60px;
  text-align: left;
}

.case-item {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
  border-bottom: 1px solid var(--border);
  padding-bottom: 60px;
}

.case-item:nth-child(even) {
  flex-direction: row-reverse;
}

.case-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.case-media {
  flex: 2 1 520px;
  max-width: 640px;
  aspect-ratio: 16 / 10;
  border-radius: 10px;
  background: #000;
  border: 1px solid var(--border);
  display: block;
  object-fit: cover;
}

.case-media.portrait {
  flex: 0 1 300px;
  max-width: 300px;
  aspect-ratio: 9 / 16;
}

.case-info {
  flex: 1 1 300px;
  min-width: 0;
}

.case-tag {
  display: block;
  color: var(--blue);
  font-weight: bold;
  font-size: 1rem;
  letter-spacing: 0.3px;
  margin: 10px 0 16px;
}

.case-item h4 {
  margin: 0;
  font-size: 1.6rem;
}

.case-item p {
  color: var(--text-muted);
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.7;
}

/* FORM 2 STEPS */
.form-container {
  padding: 90px 10%;
  max-width: 1200px;
  margin: auto;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 60px;
  align-items: stretch;
  text-align: left;
}

.contact-media {
  position: relative;
  border-radius: 14px;
  background:
    radial-gradient(circle at 20% 15%, rgba(201, 162, 39, 0.16), transparent 55%),
    radial-gradient(circle at 85% 85%, rgba(46, 143, 209, 0.16), transparent 55%),
    var(--bg-card);
  border: 1px solid var(--border);
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  overflow: hidden;
}

.code-window {
  width: 100%;
  max-width: 340px;
  background: #0d0d0d;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.55);
  transform: rotate(-3deg);
}

.code-window-header {
  display: flex;
  gap: 6px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
}

.code-window-header .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot.red {
  background: #ff5f57;
}
.dot.yellow {
  background: #febc2e;
}
.dot.green {
  background: #28c840;
}

.code-window-body {
  padding: 24px 22px 28px;
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.code-line {
  height: 10px;
  border-radius: 5px;
  background: #2a2a2a;
}

.code-line.accent {
  background: var(--gold);
  opacity: 0.75;
}

.code-line.accent-blue {
  background: var(--blue);
  opacity: 0.75;
}

.chat-bubble {
  position: absolute;
  bottom: 32px;
  right: 28px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--gold);
  color: #0a0a0a;
  padding: 12px 18px;
  border-radius: 14px 14px 4px 14px;
  font-weight: bold;
  font-size: 0.9rem;
  box-shadow: 0 12px 28px rgba(201, 162, 39, 0.35);
  transform: rotate(2deg);
}

.chat-bubble svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.form-intro {
  color: var(--text-muted);
  margin: 0 0 26px;
  font-size: 1.05rem;
}

form label {
  display: block;
  margin: 18px 0 7px;
  font-weight: bold;
  font-size: 0.95rem;
  color: var(--text-muted);
}

form input, textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 8px;
  border: 1px solid var(--border);
  margin-bottom: 6px;
  background: var(--bg-alt);
  color: var(--text);
  box-sizing: border-box;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

form input::placeholder, textarea::placeholder {
  color: #666;
}

form input:focus, textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.15);
}

textarea {
  min-height: 150px;
  resize: vertical;
}

.form-step {
  display: none;
}

.form-step.active {
  display: block;
}

/* ---- FORM TABS ---- */
.form-tabs {
  display: flex;
  justify-content: space-between;
  margin-bottom: 26px;
}

.form-tabs .tab {
  width: 50%;
  padding: 16px 0;
  text-align: center;
  cursor: pointer;
  background: var(--bg-alt);
  color: var(--text-muted);
  font-weight: bold;
  font-size: 0.95rem;
  border-bottom: 2px solid #333;
  transition: 0.3s;
}

.form-tabs .tab.active {
  color: var(--gold);
  border-bottom: 2px solid var(--gold);
  background: var(--bg-card);
}

/* FOOTER */
.footer {
  padding: 30px 10%;
  text-align: center;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .nav-toggle {
    display: block;
  }

  .header nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 20px 5% 24px;
    display: none;
  }

  .header nav.open {
    display: flex;
  }

  .header nav a {
    margin-left: 0;
  }

  .btn-header {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .service-grid {
    grid-template-columns: 1fr;
  }
  .header {
    padding: 14px 5%;
  }
  .hero {
    padding: 140px 6% 80px;
  }
  .hero h1 {
    font-size: 2.2rem;
  }
  .why, .about, .services, .cases, .form-container {
    padding-left: 6%;
    padding-right: 6%;
  }
  .carousel-slide {
    flex-direction: column;
    text-align: center;
    padding: 40px 24px 56px;
    min-height: 0;
  }
  .slide-avatar {
    width: 130px;
    height: 130px;
    flex-basis: 130px;
  }
  .slide-avatar.brand {
    width: 160px;
    height: 160px;
    flex-basis: 160px;
  }
  .carousel-arrow {
    display: none;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .contact-media {
    min-height: 260px;
    padding: 26px;
  }
  .code-window {
    max-width: 260px;
  }
  .chat-bubble {
    bottom: 20px;
    right: 18px;
    padding: 9px 14px;
    font-size: 0.8rem;
  }
  .case-item,
  .case-item:nth-child(even) {
    flex-direction: column;
  }
  .case-media {
    max-width: 100%;
  }
}
