/*
  Portifólio Landing Page — Somente HTML e CSS
  Tema: Dark Blue com textos brancos
*/

/* Core */
:root {
  --bg: #0b1628;          /* fundo principal (dark blue) */
  --bg-2: #0f213f;         /* cards/nav */
  --text: #e6f1ff;         /* texto primário */
  --muted: #b6c6e3;        /* texto secundário */
  --accent: #4cc9f0;       /* cta/acento */
  --accent-2: #5eead4;     /* cta/acento secundário */
  --border: #1b2a4b;       /* linhas sutis */
  --shadow: 0 10px 30px rgba(0,0,0,.35);
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
  color: var(--text);
  background: radial-gradient(1200px 600px at 80% -10%, #1b3b6f33, transparent 60%),
              radial-gradient(800px 400px at 10% -10%, #0ea5e933, transparent 60%),
              var(--bg);
}

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

.container {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

/* Utilitários */
.text-center { text-align: center; }

.section { padding: 96px 0; }
.section h3 {
  font-size: clamp(1.75rem, 1.2rem + 1.4vw, 2.25rem);
  margin: 0 0 20px 0;
}

/* Header / Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(120%) blur(8px);
  background: linear-gradient(180deg, rgba(11,22,40,0.85), rgba(11,22,40,0.65));
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}
.brand {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--text);
}
.brand a { color: inherit; text-decoration: none;}

.nav-links { display: flex; gap: clamp(12px, 2vw, 28px); }
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  padding: 8px 6px;
  border-radius: 8px;
  transition: color .2s ease, background .2s ease;
}
.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--text);
  background: #ffffff0d;
  outline: none;
}

/* Hero */
.hero { padding-top: 140px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
}
.hero-text .title {
  font-size: clamp(2rem, 1.2rem + 3.2vw, 3.25rem);
  margin: 0 0 8px 0;
}
.hero-text .subtitle {
  margin: 0 0 16px 0;
  font-weight: 700;
  color: var(--accent);
}
.lead { color: var(--muted); margin-bottom: 24px; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  border-radius: 12px;
  padding: 12px 18px;
  transition: transform .08s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  color: #071524;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: var(--shadow);
}
.btn-primary:hover { filter: brightness(1.05); }
.btn-ghost {
  color: var(--text);
  border: 1px solid #ffffff22;
  background: #ffffff10;
}
.btn-ghost:hover {
  background: #ffffff18;
}
.btn-lg { padding: 14px 22px; font-size: 1.05rem; }
.btn .icon { display: inline-flex; }

.hero-media {
  display: grid;
  place-items: center;
}
.hero-photo {
  width: min(360px, 90%);
  aspect-ratio: 0.5 / 0.5;
  border-radius: 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: #0f203d;
}

/* Sobre */
.about-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(24px, 4vw, 50px);
  align-items: center;
}
.about-media img {
  border-radius: 20px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.about-text p { color: var(--muted); }
.about-text p + p { margin-top: 10px; }

.carousel-track img {
  margin: 0 40px;
}


/* Habilidades */
.chip-grid {
  list-style: none;
  margin: 16px 0 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.chip {
  background: #ffffff10;
  border: 1px solid #ffffff22;
  color: var(--text);
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 600;
}

/* Projetos */
.project-grid {
  margin-top: 8px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2.5vw, 24px);
}
.project-card {
  background: linear-gradient(180deg, #0f213f, #0b1a32);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.project-link { color: inherit; text-decoration: none; display: grid; }
.project-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.project-info { padding: 14px 16px 16px; }
.project-info h4 { margin: 0 0 6px 0; font-size: 1.05rem; }
.project-info p { margin: 0; color: var(--muted); }
.project-card:hover { transform: translateY(-2px); transition: transform .12s ease; }

/* Contato */
.contact-inner { max-width: 760px; }
.contact p { color: var(--muted); margin: 4px 0 18px; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0 40px;
  color: var(--muted);
}

/* Responsividade */
@media (max-width: 980px) {
  .hero-grid, .about-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 120px; }
  .project-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Páginas de Projeto */
.page-hero {
  padding-top: 140px;
  padding-bottom: 0;
  /* centraliza verticalmente o cabeçalho do projeto sem afetar o index */
  min-height: calc(100dvh - 140px);
  display: flex;
  align-items: center;
}
.page-hero .container {
  position: relative;
  display: grid;
  justify-items: center;
  text-align: center;
}
.page-title {
  margin: 0 0 6px 0;
  font-size: clamp(2rem, 1.2rem + 3.2vw, 3rem);
  font-weight: 800;
}
.page-subtitle { color: var(--muted); margin: 0; max-width: 70ch; }
.back-row { 
  margin: 0 0 16px 0;
  position: absolute;
  top: 0;
  left: 0;
}

/* Estilo específico da página projeto1 */
#inicio .page-subtitle { 
  text-align: center; 
  margin-left: auto; 
  margin-right: auto; 
  margin-top: 20px;
}

/* Título Insight centralizado apenas na página de projeto */
.insight h3 { text-align: center; }
.back-row .btn { padding: 8px 12px; font-weight: 600; }

@media (max-width: 640px) {
  .page-hero { padding-top: 120px; }
  .page-title, .page-subtitle { text-align: center; }
}
@media (max-width: 640px) {
  /* Hero: foto acima do texto */
  .hero-grid { display: flex; flex-direction: column-reverse; }
  /* Header centralizado e sem links */
  .nav { justify-content: center; }
  .nav-links { display: none; }
  .brand { text-align: center; }

  /* Títulos e textos centralizados */
  .section { padding: 72px 0; }
  .section h3 { text-align: center; }

  /* Hero centralizado */
  .hero-text { text-align: center; }
  .cta-row { justify-content: center; }

  /* Sobre centralizado */
  .about-text { text-align: center; }
  .about-media { display: grid; place-items: center; }

  #Visualizacao .visu-grid{ flex-direction: column;}
  .visu-text { text-align: center; }
  .visu-media { display: grid; place-items: center; }

  /* Habilidades centralizadas */
  .chip-grid { justify-content: center; }

  /* Projetos responsivo 1 coluna */
  .project-grid { grid-template-columns: 1fr; }

  /* Contato centralizado */
  .contact-inner { margin-inline: auto; text-align: center; }

  /* Footer centralizado */
  .site-footer .container { text-align: center; }
}




/* Carousel */
.carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 20px; /* acompanha as imagens da about-media */
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: #0f203d;
}
.carousel-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track > * {
  flex: 0 0 100%;
  scroll-snap-align: start;
}
.carousel img {
  width: 100%;
  height: auto;
  display: block;
}
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid #ffffff22;
  background: #0b1628cc;
  color: var(--text);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background .15s ease, opacity .15s ease;
}
.carousel-btn:hover { background: #0b1628ee; }
.carousel-btn:disabled { opacity: .4; cursor: default; }
.carousel-btn.prev { left: 10px; }
.carousel-btn.next { right: 10px; }

.carousel-dots {
  position: absolute;
  left: 0; right: 0; bottom: 10px;
  display: flex;
  gap: 8px;
  justify-content: center;
  pointer-events: none;
}
.carousel-dots button {
  pointer-events: auto;
  width: 8px; height: 8px;
  border-radius: 999px;
  background: #ffffff55;
  border: none;
}
.carousel-dots button.active { background: var(--accent); }
.carousel.is-single .carousel-btn,
.carousel.is-single .carousel-dots { display: none; }
