
/* ================== VARIÁVEIS ================== */
:root{
  --bg:#ffffff;
  --text:#111111;
  --card:#fafafa;
  --header:rgba(255,255,255,0.7);
  --overlay-light: rgba(255,255,255,0.6);
  --overlay-dark: rgba(0,0,0,0.6);
}

body.dark{
  --bg:#0f1115;
  --text:#e5e7eb;
  --card:#1a1d24;
  --header:rgba(20,20,25,0.7);
}

/* ================== RESET ================== */
*{
  margin:0;
  padding:0;
  box-sizing:border-box;
}

body{
  font-family:'Poppins',sans-serif;
  background:var(--bg);
  color:var(--text);
  overflow-x:hidden;
  transition:0.3s;
}

/* ================== HEADER ================== */
header{
  position:fixed;
  top:0;
  width:100%;
  display:flex;
  justify-content:center;
  background:var(--header);
  backdrop-filter:blur(16px);
  border-bottom:1px solid #eee;
  z-index:1000;
  transition:0.3s;
}

header.scrolled{
  padding:5px 0;
}

/* BOTÃO HAMBÚRGUER */
.menu-btn{
  display:none;
  flex-direction:column;
  justify-content:center;
  gap:6px;
  cursor:pointer;
  position: absolute;
  right: 20px;
  top: 20px;
  z-index: 1000;
}

.menu-btn span{
  width:25px;
  height:2px;
  background:var(--text);
  transition:0.4s;
}

/* ANIMAÇÃO VIRAR X */
.menu-btn.active span:nth-child(1){
  transform:rotate(45deg) translate(5px,5px);
}

.menu-btn.active span:nth-child(2){
  transform:rotate(-45deg) translate(5px,-5px);
}

.nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:50px;
  padding: 10px 40px;
}

.logo img{
  height:40px;
  width:auto;
  display:block;
}

nav a{
  color:var(--text);
  text-decoration:none;
  font-size:18px;
  opacity:0.8;
  transition:0.3s;
}

nav a:hover{
  color:#f1c40f;
  opacity:1;
  transform:scale(1.05);
}

.toggle{
  cursor:pointer;
  padding:6px 12px;
  border-radius:8px;
  border:1px solid #ccc;
  font-size:12px;
}

/* ================== SEÇÕES ================== */
section{
  min-height:100vh;
  padding:140px 20px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  text-align:center;
  opacity:0;
  transform:translateY(80px);
  transition:1s ease;
}

section.show{
  opacity:1;
  transform:translateY(0);
}

/* ================== FUNDO PADRÃO (REUTILIZÁVEL) ================== */
.hero, #sobre, #fotos{
  position:relative;
  color:var(--text);
}

.hero::before,
#sobre::before,
#fotos::before,
#documentos::before,
#projeto3d::before{
  content:"";
  position:absolute;
  inset:0;
  background:var(--overlay-light);
}

body.dark .hero::before,
body.dark #sobre::before,
body.dark #fotos::before,
body.dark #documentos::before,
body.dark #projeto3d::before{
  background:var(--overlay-dark);
}

.hero *,
#sobre *,
#fotos *,
#documentos *,
#projeto3d *{
  position:relative;
  z-index:1;
}

/* ================== HERO ================== */
.hero{
  background: url('img/fundoinicio.png') center/cover no-repeat fixed;
}

.hero h1{
  font-size:48px;
  margin-bottom:20px;
}

.hero p{
  max-width:600px;
  opacity:0.7;
  text-align: justify;
}

.hero img{
  margin-top:30px;
  width:700px;
  height:auto;
  border-radius:15px;
  box-shadow:0 10px 20px rgba(0,0,0,0.2);
}



/* ================== SOBRE ================== */
#sobre{
  background: url('img/fundosobre.jpeg') center/cover no-repeat;
  background-attachment:fixed;
  padding: 80px 20px;
}

.artigo {
  column-count: 1;
  column-gap: 30px;
  max-width: 1100px;
  text-align: justify;
  line-height: 1.8;
}

.artigo h3 {
  grid-column: span 2;
  font-size: 30px;
  margin-top: 20px;
  border-left: 5px solid #007BFF;
  padding-left: 10px;
}

/* Cada grupo de texto */
.artigo p {
  background: var(--card);
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
  line-height: 1.6;
  margin: 0;
}

.artigo p + p {
  margin-top: 10px;
}

/* ================== FOTOS ================== */
#fotos{
  background: url('img/fundofotos.png') center/cover no-repeat;
  padding: 60px 20px;
  text-align: center;
}

#fotos p{
  max-width:800px;
  opacity:0.7;
  text-align: justify;
  margin-bottom: 40px;
}


/* ================== GALERIA FOTOS ================== */

.btn-ver {
  display: inline-block;
  padding: 14px 28px;

  background: linear-gradient(135deg, #007BFF, #00C6FF);
  color: white;

  font-size: 16px;
  font-weight: 600;
  border-radius: 30px;

  border: none;
  cursor: pointer;

  transition: all 0.3s ease;
}

.btn-ver:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.btn-ver:active {
  transform: scale(0.95);
}

.galeria {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.95);

  justify-content: center;
  align-items: center;
  z-index: 2000;
}

/* imagem principal */
.galeria img {
  max-width: 80%;
  max-height: 80%;
  border-radius: 10px;
  z-index: 1;
  position: absolute;
}

/* botão fechar */
.fechar {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 30px;
  color: white;
  cursor: pointer;
}

/* setas */
.prev, .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 40px;
  color: white;
  cursor: pointer;
  padding: 10px;
  z-index: 3000;
}

.prev {
  left: 10px;
}

.next {
  right: 10px;
}

/* hover suave */
.prev:hover, .next:hover {
  opacity: 0.7;
}
/* ================== GRID PADRÃO ================== */
.grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:20px;
  margin-top:40px;
  width:100%;
  max-width:1000px;
}


.card{
  padding:25px;
  border-radius:20px;
  background:var(--card);
  transition:0.4s;
  margin-bottom: 10px;
}

.card:hover{
  transform:translateY(-10px);
  box-shadow:0 20px 40px rgba(0,0,0,0.2);
}

/* ================== BOTÃO ================== */
.btn{
  margin-top:25px;
  padding:12px 25px;
  border:none;
  border-radius:10px;
  background:green;
  color:#fff;
  cursor:pointer;
}

.btn:hover{
  background:#0a7d0a;
}

.preview {
  width: 80%;
  border-radius: 10px;
  margin-bottom: 10px;
}

/* ================== Documentos ================== */

#documentos{
  background: url('img/fundosobre.png') center/cover no-repeat;
  background-attachment:fixed;
  padding: 80px 20px;
  text-align: center;
}

.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  margin-top: 15px;
  padding: 10px 15px;

  background: #007BFF;
  color: white;
  border-radius: 8px;

  text-decoration: none;
  font-size: 14px;
  transition: 0.3s;
}

.btn-download:hover {
  background: #0056b3;
  transform: translateY(-2px);
}

.card::before {
  content: "📑";
  font-size: 40px;
  display: block;
  margin-bottom: 10px;
}

.card {
  text-align: center;
}

.card h3 {
  margin-bottom: 10px;
}

/* ================== Projeto 3D ================== */
#projeto3d{
  background: url('img/paisagem1.jpeg') center/cover no-repeat;
  background-attachment:fixed;
  padding: 80px 20px;
}

.sketchfab-embed-wrapper {
  position: relative;
  width: 100%;
  max-width: 1000px;
  margin: 40px auto;
}

.sketchfab-embed-wrapper iframe {
  width: 100%;
  height: 500px;
  border-radius: 12px;
  border: none;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.sketchfab-embed-wrapper p {
  text-align: center;
  font-size: 14px;
  color: #666;
}

.sketchfab-embed-wrapper a {
  color: #1CAAD9;
  text-decoration: none;
  font-weight: 500;
}

.sketchfab-embed-wrapper a:hover {
  text-decoration: underline;
}

/* ================== FOOTER ================== */
footer{
  background:#000000;
  color:#fff;
  text-align:center;
  padding:60px 20px;
}

.footer-content{
  max-width:600px;
  margin:auto;
}

.footer-content h3{
  margin-bottom:15px;
}

.footer-content p{
  opacity:0.8;
  margin:5px 0;
}

.linha{
  width:50px;
  height:2px;
  background:#f1c40f;
  margin:20px auto;
}

.social{
  margin:10px 0;
}

.social a img{
  width:25px;
  transition:0.3s;
  filter: grayscale(100%);
}

.social a img:hover{
  transform:scale(1.2);
  filter: grayscale(0%);
}

/* ================== MOBILE ================== */
@media(max-width:768px){

  .hero h1{
    font-size:32px;
  }

  .hero img{
    margin-top:30px;
  width:325px;
  height:auto;
  border-radius:15px;
  box-shadow:0 10px 20px rgba(0,0,0,0.2);
  }

  .grid{
    grid-template-columns:1fr;
  }

  .grid-fotos{
    grid-template-columns:1fr;
  }

  nav{
    position:absolute;
    top:100%;
    width:100%;
    flex-direction:column;
    display:flex;
    padding:20px 0;
    left:0;
    background:var(--header);
    backdrop-filter:blur(20px);
    align-items:center;
    gap:20px;
    padding:20px 0;

    /* animação */
    transform:translateX(-50%) translateY(-10px);
    opacity:0;
    pointer-events:none;
    transition:0.4s ease;
  }

  nav.show{
    display:flex;
    transform:translateY(0);
    opacity:1;
    pointer-events:auto;
  }

  .menu-btn{
    display:flex;
  }
 
  .sketchfab-embed-wrapper iframe {
    height: 300px;
  }

}

