

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=DM+Sans:ital,wght@0,300;0,400;0,500;1,300&display=swap');


:root {
  --bg:      #080b14;
  --bg2:     #0d1120;
  --card:    #131929;
  --card2:   #1a2236;
  --border:  rgba(120, 100, 255, 0.15);
  --border2: rgba(120, 100, 255, 0.08);
  --purple:  #7c5cfc;
  --blue:    #3b82f6;
  --pink:    #e879f9;
  --grad:    linear-gradient(135deg, #7c5cfc, #3b82f6);
  --grad2:   linear-gradient(135deg, #7c5cfc 0%, #e879f9 50%, #3b82f6 100%);
  --text:    #f0f4ff;
  --muted:   #8892a4;
  --muted2:  #5a6478;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Noise texture overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.035'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}


body::after {
  content: '';
  position: fixed;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: var(--purple);
  filter: blur(120px);
  opacity: 0.1;
  top: -150px;
  left: -150px;
  pointer-events: none;
  z-index: 0;
}

/* ========== HEADER ========== */
header.project-header {
  position: relative;
  z-index: 10;
  padding: 5rem 2rem 3rem;
  text-align: center;
  border-bottom: 1px solid var(--border2);
  background: rgba(8, 11, 20, 0.6);
  backdrop-filter: blur(12px);
}

/* Back link */
.voltar {
  position: absolute;
  left: 2rem;
  top: 2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--border2);
  border-radius: 100px;
  background: var(--card);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.voltar::before {
  content: '←';
  font-size: 1rem;
  line-height: 1;
}

.voltar:hover {
  color: var(--text);
  border-color: rgba(124, 92, 252, 0.4);
  background: rgba(124, 92, 252, 0.08);
}

/* Project badge above title */
.project-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(124, 92, 252, 0.12);
  border: 1px solid rgba(124, 92, 252, 0.3);
  color: #a78bfa;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.3rem 0.85rem;
  border-radius: 100px;
  margin-bottom: 1.2rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  animation: fadeUp 0.5s ease both;
}

h1 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.1;
  margin-bottom: 0.8rem;
  background: var(--grad2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: fadeUp 0.5s 0.1s ease both;
}

.project-subtitle {
  color: var(--muted);
  font-size: 1rem;
  max-width: 520px;
  margin: 0 auto;
  animation: fadeUp 0.5s 0.2s ease both;
}

main {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.projeto-apresentacao {
  text-align: center;
  margin-bottom: 4rem;
  animation: fadeUp 0.6s 0.15s ease both;
  justify-content: center;
}

.projeto-apresentacao .img-wrap {
  position: relative;
  display: inline-block;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow:
    0 0 0 1px rgba(124, 92, 252, 0.1),
    0 20px 60px rgba(0, 0, 0, 0.5),
    0 0 80px rgba(124, 92, 252, 0.12);
}

.projeto-apresentacao img {
  width: 100%;
  max-width: 800px;
  display: block;
  border-radius: 20px;
  transition: transform 0.4s ease;
}

.projeto-apresentacao .img-wrap:hover img {
  transform: scale(1.02);
}

/* Fallback for pages without .img-wrap wrapper */
.projeto-apresentacao > img {
  display: block;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;;
  border-radius: 20px;
  border: 1px solid var(--border);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.5),
    0 0 80px rgba(124, 92, 252, 0.12);
  transition: transform 0.4s ease;
}

.projeto-apresentacao > img:hover {
  transform: scale(1.01);
}

.projeto-apresentacao p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.8;
  max-width: 680px;
  margin: 1.8rem auto 0;
}

/* ========== SECTION HEADINGS ========== */
.section-heading {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.section-heading h2 {
  font-family: 'Syne', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.4px;
}

.section-heading::before {
  content: '';
  width: 4px;
  height: 22px;
  background: var(--grad);
  border-radius: 2px;
  flex-shrink: 0;
}

/* Legacy h2 compatibility */
.tecnologias h2,
.galeria h2,
.funcionalidades h2,
.links-section h2 {
  font-family: 'Syne', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.4px;
  margin-bottom: 1.5rem;
  padding-left: 1rem;
  border-left: 3px solid var(--purple);
}

/* ========== SECTION CARDS ========== */
.projeto-section {
  background: var(--card);
  border: 1px solid var(--border2);
  border-radius: 20px;
  padding: 2rem;
  margin-bottom: 2rem;
  transition: border-color 0.25s;
  animation: fadeUp 0.5s ease both;
}

.projeto-section:hover {
  border-color: rgba(124, 92, 252, 0.25);
}

/* ========== TECNOLOGIAS ========== */
.tecnologias {
  background: var(--card);
  border: 1px solid var(--border2);
  border-radius: 20px;
  padding: 2rem;
  margin-bottom: 2rem;
  transition: border-color 0.25s;
  animation: fadeUp 0.5s 0.1s ease both;
}

.tecnologias:hover {
  border-color: rgba(124, 92, 252, 0.25);
}

.tecnologias ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding: 0;
  justify-content: center;
  align-items: center;
}

.tecnologias li {
  background: rgba(124, 92, 252, 0.1);
  border: 1px solid rgba(124, 92, 252, 0.25);
  color: #c4b5fd;
  padding: 0.45rem 1rem;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  transition: background 0.2s, border-color 0.2s;
}

.tecnologias li:hover {
  background: rgba(124, 92, 252, 0.2);
  border-color: rgba(124, 92, 252, 0.5);
}

/* ========== FUNCIONALIDADES / APLICACAO ========== */
.funcionalidades,
.aplicacao-wrap {
  background: var(--card);
  border: 1px solid var(--border2);
  border-radius: 20px;
  padding: 2rem;
  margin-bottom: 2rem;
  transition: border-color 0.25s;
  animation: fadeUp 0.5s 0.15s ease both;
}

.funcionalidades:hover,
.aplicacao-wrap:hover {
  border-color: rgba(124, 92, 252, 0.25);
}

.aplicacao {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.aplicacao li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
  padding: 0.6rem 0.8rem;
  border-radius: 10px;
  transition: background 0.2s;
}

.aplicacao li:hover {
  background: rgba(255, 255, 255, 0.03);
}

.aplicacao li::before {
  content: '→';
  color: var(--purple);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 0.05rem;
}

/* ========== GALERIA ========== */
.galeria {
  margin-bottom: 2rem;
  animation: fadeUp 0.5s 0.2s ease both;
}

.galeria h2 {
  margin-bottom: 1.5rem;
}

.galeria-imagens {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.galeria-imagens img {
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--border2);
  display: block;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  cursor: zoom-in;
}

.galeria-imagens img:hover {
  transform: scale(1.03);
  border-color: rgba(124, 92, 252, 0.35);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(124, 92, 252, 0.15);
}

/* ========== LINKS / BOTÕES ========== */
.links,
.links-section {
  text-align: center;
  margin-bottom: 3rem;
  animation: fadeUp 0.5s 0.25s ease both;
}

.links-wrap {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.8rem;
  border-radius: 100px;
  text-decoration: none;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, opacity 0.2s;
  cursor: pointer;
  border: none;
}

.btn-primary,
.btn:not(.btn-outline) {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 0 30px rgba(124, 92, 252, 0.3);
}

.btn-primary:hover,
.btn:not(.btn-outline):hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 40px rgba(124, 92, 252, 0.5);
  opacity: 0.92;
}

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

.btn-outline:hover {
  border-color: rgba(124, 92, 252, 0.4);
  background: rgba(124, 92, 252, 0.08);
  transform: translateY(-2px);
}

/* Legacy .btn without modifiers */
.btn:not(.btn-primary):not(.btn-outline) {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 0 30px rgba(124, 92, 252, 0.3);
}

/* ========== FOOTER ========== */
footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 2rem 1rem;
  color: var(--muted2);
  font-size: 0.8rem;
  border-top: 1px solid var(--border2);
  margin-top: 2rem;
  background: var(--bg);
}

footer a {
  color: var(--purple);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

footer a:hover {
  color: #a78bfa;
}

/* ========== ANIMATIONS ========== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ========== SCROLLBAR ========== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(124, 92, 252, 0.4); border-radius: 3px; }

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  header.project-header {
    padding: 4.5rem 1.5rem 2rem;
  }

  .voltar {
    left: 1rem;
    top: 1rem;
  }

  main {
    padding: 2.5rem 1.2rem;
  }

  .galeria-imagens {
    grid-template-columns: 1fr;
  }

  .links-wrap {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }
}