/*
Theme Name: NMTech Portfolio
Theme URI: https://nmtech.pt
Author: NMTech
Author URI: https://nmtech.pt
Description: Portfólio pessoal NMTech — Engenharia de software com precisão e propósito.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: nmtech
*/

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600&display=swap');

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

:root {
  --bg: #0a0a0a;
  --bg-2: #111111;
  --bg-3: #1a1a1a;
  --border: #222222;
  --text: #ffffff;
  --text-muted: #888888;
  --text-dim: #555555;
  --accent: #3b82f6;
  --accent-dim: rgba(59,130,246,0.15);
  --green: #22c55e;
  --radius: 12px;
  --radius-sm: 8px;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

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

/* ── NAVIGATION ─────────────────────────────────────── */

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 40px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(10,10,10,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.5px;
  color: var(--text);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
}

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

.nav-cta {
  background: var(--text);
  color: var(--bg) !important;
  padding: 8px 20px;
  border-radius: 6px;
  font-size: 14px !important;
  font-weight: 600 !important;
  transition: opacity 0.2s !important;
}

.nav-cta:hover {
  opacity: 0.85;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
  transition: all 0.3s;
}

/* ── HERO ────────────────────────────────────────────── */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
}

.hero-inner {
  max-width: 800px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 6px 14px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 40px;
}

.hero-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(48px, 8vw, 88px);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -3px;
  margin-bottom: 28px;
}

.hero-title-dim {
  color: var(--text-dim);
}

.hero-description {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 48px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--text);
  color: var(--bg);
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  transition: opacity 0.2s;
  display: inline-block;
  cursor: pointer;
}

.btn-primary:hover {
  opacity: 0.85;
}

.btn-secondary {
  background: transparent;
  color: var(--text-muted);
  padding: 14px 28px;
  border-radius: 8px;
  border: 1px solid var(--border);
  font-size: 15px;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  transition: all 0.2s;
  display: inline-block;
  cursor: pointer;
}

.btn-secondary:hover {
  color: var(--text);
  border-color: #444;
}

/* ── SECTION BASE ─────────────────────────────────────── */

.section {
  padding: 96px 0;
}

.section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 16px;
}

.section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 700;
  letter-spacing: -1.5px;
  line-height: 1.1;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.7;
}

/* ── PROJECTS ─────────────────────────────────────────── */

.projects-section {
  background: var(--bg);
}

.project-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 64px;
}

.project-header {
  padding: 40px 48px;
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: start;
}

.project-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(34,197,94,0.1);
  border: 1px solid rgba(34,197,94,0.2);
  color: var(--green);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 20px;
}

.project-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 8px;
}

.project-tagline {
  font-size: 16px;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 16px;
}

.project-description {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 480px;
  line-height: 1.7;
}

.project-highlights {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 24px;
  min-width: 220px;
}

.project-highlights h4 {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.highlight-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-muted);
  padding: 5px 0;
}

.highlight-check {
  width: 16px;
  height: 16px;
  color: var(--accent);
  flex-shrink: 0;
}

/* Browser mockup */
.browser-mockup {
  margin: 0;
  background: var(--bg-3);
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: #1e1e1e;
  border-bottom: 1px solid var(--border);
}

.browser-dots {
  display: flex;
  gap: 6px;
}

.browser-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.browser-dot.red   { background: #ff5f56; }
.browser-dot.yellow{ background: #ffbd2e; }
.browser-dot.green { background: #27c93f; }

.browser-url {
  flex: 1;
  background: #2a2a2a;
  border-radius: 4px;
  padding: 4px 12px;
  font-size: 12px;
  color: var(--text-dim);
  font-family: monospace;
  max-width: 300px;
}

.browser-screenshots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1px;
  background: var(--border);
}

.screenshot-slot {
  background: var(--bg-2);
  aspect-ratio: 16/10;
  overflow: hidden;
  position: relative;
}

.screenshot-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.6s ease;
}

.screenshot-slot:hover img {
  transform: scale(1.03);
}

.screenshot-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--text-dim);
  font-size: 13px;
}

.screenshot-placeholder-icon {
  width: 40px;
  height: 40px;
  background: var(--bg-3);
  border: 1px dashed var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-modules {
  padding: 40px 48px;
  border-top: 1px solid var(--border);
}

.project-modules h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 24px;
}

.modules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}

.module-chip {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
}

.module-chip-name {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 2px;
}

.module-chip-desc {
  font-size: 12px;
  color: var(--text-dim);
}

/* ── SERVICES ─────────────────────────────────────────── */

.services-section {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 56px;
}

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

.service-card:hover {
  border-color: #333;
}

.service-icon {
  width: 44px;
  height: 44px;
  background: var(--accent-dim);
  border: 1px solid rgba(59,130,246,0.3);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 20px;
}

.service-card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
}

.service-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── TECH STACK ───────────────────────────────────────── */

.stack-section {
  background: var(--bg);
}

.stack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 56px;
}

.stack-item {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: border-color 0.2s;
}

.stack-item:hover {
  border-color: #333;
}

.stack-icon {
  font-size: 22px;
  line-height: 1;
}

.stack-name {
  font-size: 14px;
  font-weight: 600;
}

.stack-type {
  font-size: 12px;
  color: var(--text-dim);
}

/* ── CONTACT ──────────────────────────────────────────── */

.contact-section {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
}

.contact-inner {
  max-width: 640px;
}

.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(20px, 3vw, 32px);
  font-weight: 600;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  padding-bottom: 4px;
  transition: border-color 0.2s;
  margin: 32px 0 48px;
}

.contact-email:hover {
  border-color: var(--text-muted);
}

.contact-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: all 0.2s;
}

.contact-link:hover {
  color: var(--text);
  border-color: #333;
}

/* ── FOOTER ───────────────────────────────────────────── */

.site-footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 32px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-brand {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 15px;
}

.footer-copy {
  font-size: 13px;
  color: var(--text-dim);
}

/* ── DIVIDER ──────────────────────────────────────────── */

.section-divider {
  height: 1px;
  background: var(--border);
}

/* ── RESPONSIVE ───────────────────────────────────────── */

@media (max-width: 768px) {
  .site-nav {
    padding: 0 20px;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg-2);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }

  .hero {
    padding: 100px 0 60px;
  }

  .project-header {
    grid-template-columns: 1fr;
    padding: 28px 24px;
  }

  .project-modules {
    padding: 28px 24px;
  }

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

  .browser-screenshots {
    grid-template-columns: 1fr;
  }

  .site-footer {
    padding: 24px 20px;
    flex-direction: column;
    align-items: flex-start;
  }
}
