/* =========================================================
   MAYCON DEV — TOKENS (mirrors /style.css so sub-pages match the brand)
========================================================= */

:root {
  --bg: #060810;
  --bg-alt: #0a0d17;
  --surface: #10131f;
  --surface-2: #171c2c;
  --border: #232a3d;
  --text: #edf0f7;
  --text-dim: #8d94a8;
  --text-faint: #5b6072;
  --mint: #00ffc2;
  --blue: #2fa9ff;
  --gradient: linear-gradient(120deg, var(--mint), var(--blue));

  --font-display: "Space Grotesk", "Arial", sans-serif;
  --font-mono: "JetBrains Mono", "Courier New", monospace;
  --font-body: "Inter", "Arial", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  max-width: 1400px;
  margin: auto;
  line-height: 1.6;
}

img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.01em; }

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--mint); border-radius: 10px; }

/* =========================================================
   NAV (simplified, no JS toggle needed — wraps gracefully)
========================================================= */

header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(6, 8, 16, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 18px 6%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

.m4-mark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  text-decoration: none;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  justify-content: center;
}

.nav a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: color 0.25s ease;
}

.nav a:hover, .nav a:focus-visible { color: var(--mint); }

:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; }

/* =========================================================
   IFRAME PREVIEW
========================================================= */

.iframe-zoom {
  width: 100%;
  height: 450px;
  overflow: hidden;
  margin-top: 20px;
  border-radius: 15px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border);
}

.iframe-zoom iframe {
  width: 160%;
  height: 160%;
  transform: scale(0.65);
  transform-origin: top left;
  border: none;
}

/* =========================================================
   BANNER
========================================================= */

.banner img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 15px;
}

/* =========================================================
   INFO
========================================================= */

.info { padding: 60px 10%; }
.info h1 { font-size: 40px; margin-bottom: 20px; }
.info p { color: var(--text-dim); line-height: 1.6; }
.info li { color: var(--text-dim); margin-left: 20px; }

/* =========================================================
   BUTTONS
========================================================= */

.buttons { display: flex; gap: 20px; margin-bottom: 20px; flex-wrap: wrap; }

.buttons a {
  background: var(--gradient);
  color: #04120e;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  transition: 0.3s ease;
  font-weight: 600;
}

.buttons a:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -10px rgba(0, 255, 194, 0.45); }

/* =========================================================
   SCREENSHOTS
========================================================= */

.screenshots { padding: 40px 10%; }
.screenshots h2 { margin-bottom: 20px; font-size: 28px; }

.images { display: flex; gap: 20px; flex-wrap: wrap; }

.images img {
  width: 400px;
  max-width: 100%;
  border-radius: 15px;
  border: 1px solid var(--border);
  transition: 0.3s ease;
}

.images img:hover { transform: scale(1.03); }

/* =========================================================
   TECNOLOGIAS
========================================================= */

.tecnologias { padding: 40px 10%; }
.tecnologias h2 { margin-bottom: 20px; font-size: 28px; }

.tech span {
  background: var(--surface);
  padding: 10px 20px;
  border-radius: 8px;
  margin-right: 10px;
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 13px;
  display: inline-block;
  margin-bottom: 10px;
}

/* =========================================================
   FOOTER
========================================================= */

.footer {
  background: var(--bg-alt);
  padding: 50px 10%;
  text-align: center;
  margin-top: 50px;
  border-top: 1px solid var(--border);
}

.social { display: flex; justify-content: center; gap: 22px; margin-bottom: 18px; }

.social a { color: var(--text-dim); text-decoration: none; transition: 0.25s ease; font-size: 14.5px; }
.social a:hover { color: var(--mint); }

.footer span { display: block; color: var(--text-faint); font-size: 13px; }

/* =========================================================
   PROJECT LISTING (projetos.html)
========================================================= */

.filtros { text-align: center; margin: 34px 0; }

.filtros button {
  padding: 10px 22px;
  margin: 5px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-dim);
  border-radius: 999px;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 13px;
  transition: 0.25s ease;
}

.filtros button:hover { background: var(--mint); color: #04120e; border-color: var(--mint); }

.projetos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  padding: 0 6% 60px;
}

.card {
  background: var(--surface);
  padding: 26px;
  border-radius: 15px;
  text-decoration: none;
  color: var(--text);
  transition: 0.3s ease;
  border: 1px solid var(--border);
  text-align: center;
}

.card:hover {
  transform: translateY(-8px);
  border-color: var(--mint);
  box-shadow: 0 20px 40px -20px rgba(0, 255, 194, 0.25);
}

.card h3 { margin-bottom: 8px; font-size: 20px; }
.card p { color: var(--text-dim); font-size: 14px; }

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1024px) {
  .images img { width: 100%; }
  .images { flex-direction: column; }
}

@media (max-width: 768px) {
  .info { padding: 30px 20px; }
  .info h1 { font-size: 30px; }
  .buttons { flex-direction: column; }
  .banner img { height: 250px; }
  .iframe-zoom { height: 320px; }
}

@media (max-width: 480px) {
  .info h1 { font-size: 24px; }
  .buttons a { width: 100%; text-align: center; }
  .tech { display: flex; flex-wrap: wrap; gap: 10px; }
}
