/* ===========================
   DM Dev — style.css
   =========================== */

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

:root {
  --bg:        #0a0a0f;
  --bg2:       #0f0f17;
  --bg3:       #13131e;
  --accent:    #4f8ef7;
  --accent2:   #6ee7b7;
  --text:      #e8e8f0;
  --muted:     #8888aa;
  --border:    rgba(255,255,255,0.07);
  --radius:    14px;
  --font-main: 'Inter', sans-serif;
  --font-head: 'Space Grotesk', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== REVEAL ANIMATION ===== */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px 0;
  transition: background 0.3s, padding 0.3s, backdrop-filter 0.3s;
}
.navbar.scrolled {
  background: rgba(10,10,15,0.92);
  backdrop-filter: blur(14px);
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}
.logo span { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-links a {
  font-size: 0.95rem;
  color: var(--muted);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }
.btn-nav {
  background: var(--accent);
  color: #fff !important;
  padding: 10px 22px;
  border-radius: 8px;
  font-weight: 600;
  transition: opacity 0.2s !important;
}
.btn-nav:hover { opacity: 0.85; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: 0.3s;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 0;
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 16px 24px;
}
.mobile-menu a {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font-size: 1rem;
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu.open { display: flex; }

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent);
  color: #fff;
  padding: 14px 28px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1rem;
  transition: opacity 0.2s, transform 0.2s;
}
.btn-primary:hover { opacity: 0.88; transform: translateY(-2px); }
.btn-primary.btn-large { padding: 18px 36px; font-size: 1.1rem; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--text);
  padding: 14px 28px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  border: 1px solid var(--border);
  transition: border-color 0.2s, background 0.2s;
}
.btn-secondary:hover { border-color: var(--accent); background: rgba(79,142,247,0.07); }

/* ===== SECTION COMMONS ===== */
.section-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent2);
  margin-bottom: 14px;
  padding: 4px 14px;
  border: 1px solid rgba(110,231,183,0.25);
  border-radius: 100px;
}
.section-title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}
.section-sub {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 560px;
}
.section-header {
  text-align: center;
  margin-bottom: 64px;
}
.section-header .section-sub { margin: 0 auto; }

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 100px;
  overflow: hidden;
}
.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 40%, transparent 100%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  top: -200px; left: 50%;
  transform: translateX(-50%);
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(79,142,247,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 60px 0;
}
.hero-badge {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent2);
  background: rgba(110,231,183,0.08);
  border: 1px solid rgba(110,231,183,0.2);
  padding: 6px 18px;
  border-radius: 100px;
  margin-bottom: 28px;
  letter-spacing: 0.02em;
}
.hero-title {
  font-family: var(--font-head);
  font-size: clamp(2.6rem, 6vw, 4.8rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.04em;
  margin-bottom: 24px;
}
.highlight {
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 36px;
}
.hero-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 56px;
}
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}
.stat { text-align: center; }
.stat-num {
  display: block;
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
}
.stat-label {
  font-size: 0.82rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}
.hero-scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
}
.hero-scroll-indicator span {
  display: block;
  width: 20px;
  height: 34px;
  border: 2px solid var(--border);
  border-radius: 100px;
  position: relative;
}
.hero-scroll-indicator span::after {
  content: '';
  position: absolute;
  top: 6px; left: 50%;
  transform: translateX(-50%);
  width: 4px; height: 8px;
  background: var(--accent);
  border-radius: 2px;
  animation: scrollDot 1.8s infinite;
}
@keyframes scrollDot {
  0% { top: 6px; opacity: 1; }
  100% { top: 18px; opacity: 0; }
}

/* ===== SOBRE ===== */
.sobre {
  padding: 120px 0;
  background: var(--bg2);
}
.sobre-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.sobre-text .section-title { margin-top: 12px; }
.sobre-text p {
  color: var(--muted);
  margin-bottom: 20px;
  font-size: 1.02rem;
}
.sobre-text .btn-primary { margin-top: 8px; }
.sobre-card .card-inner {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
}
.card-icon { font-size: 1.6rem; margin-bottom: 10px; }
.card-inner h3 {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.card-inner p { color: var(--muted); font-size: 0.95rem; }
.card-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 24px 0;
}

/* ===== SERVIÇOS ===== */
.servicos {
  padding: 120px 0;
  background: var(--bg);
}
.servicos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.servico-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color 0.3s, transform 0.3s;
}
.servico-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}
.servico-icon { font-size: 2rem; }
.servico-card h3 {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 700;
}
.servico-card p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
  flex: 1;
}
.servico-card ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.servico-card ul li {
  color: var(--muted);
  font-size: 0.88rem;
  padding-left: 18px;
  position: relative;
}
.servico-card ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent2);
  font-weight: 700;
}
.btn-servico {
  display: inline-block;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.95rem;
  margin-top: 4px;
  transition: gap 0.2s, letter-spacing 0.2s;
}
.btn-servico:hover { letter-spacing: 0.02em; }

/* ===== SKILLS ===== */
.skills {
  padding: 120px 0;
  background: var(--bg2);
}
.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.skill-item {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  font-size: 0.95rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: border-color 0.2s, background 0.2s;
}
.skill-item:hover {
  border-color: var(--accent);
  background: rgba(79,142,247,0.05);
}
.skill-icon { font-size: 1.3rem; }

/* ===== CONTATO ===== */
.contato {
  padding: 140px 0;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}
.contato::before {
  content: '';
  position: absolute;
  bottom: -200px; left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(110,231,183,0.07) 0%, transparent 70%);
  pointer-events: none;
}
.contato-inner {
  text-align: center;
  position: relative;
  z-index: 1;
}
.contato-inner .section-title { margin: 14px 0 16px; }
.contato-inner .section-sub { margin: 0 auto 40px; }

/* ===== FOOTER ===== */
.footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 32px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer p { color: var(--muted); font-size: 0.88rem; }
.footer-links {
  display: flex;
  gap: 24px;
}
.footer-links a {
  color: var(--muted);
  font-size: 0.88rem;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--text); }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .sobre-inner { grid-template-columns: 1fr; gap: 48px; }
  .servicos-grid { grid-template-columns: 1fr 1fr; }
  .skills-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .servicos-grid { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: 1fr 1fr; }
  .hero-stats { gap: 24px; }
  .stat-divider { display: none; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
}

