* 
{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root 
{
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Georgia", "Times New Roman", serif;
}

body 
{
  font-family: var(--font-sans);
  background-color: #fafaf9;
  color: #1c1917;
  line-height: 1.6;
  overflow-x: hidden;
}

.container 
{
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.header 
{
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background-color: transparent;
  border-bottom: none;
  z-index: 100;
  padding: 1.5rem 0;
}


.header-corpo 
{
  display: flex;
  justify-content: space-between;
  align-items: center;
}


.logo-header 
{
  width: auto;
  height: 160px;
  cursor: pointer;
}


.logo 
{
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: #fff;
}

.nav 
{
  display: flex;
  gap: 2rem;
}

.nav-link 
{
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  position: relative;
  padding-bottom: 0.25rem;
}

.nav-link::after 
{
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: #fff;
  transition: width 0.5s ease;
}

.nav-link:hover::after 
{
  width: 100%;
}

.nav-link:hover 
{
  color: rgba(255, 255, 255, 0.8);
}

.inicio 
{
  height: 100vh;
  position: relative;
  background-image: url("images/montanhacinza.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
}

.inicio::before 
{
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 1;
}

.inicio-corpo 
{
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  padding: 0 2rem;
}

.inicio-titulo 
{
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 400;
  color: #fff;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.inicio-subtitulo 
{
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 3rem;
  line-height: 1.6;
}

.inicio-buttons 
{
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  align-items: center;
}

.portfolio 
{
  padding: 8rem 0;
}

.section-titulo 
{
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 400;
  text-align: center;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.section-subtitulo 
{
  text-align: center;
  color: #373737;
  margin-bottom: 4rem;
  font-size: 1rem;
}

.portfolio-grid 
{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}

.portfolio-item 
{
  aspect-ratio: 1;
  overflow: hidden;
  cursor: pointer;
  border-radius: 4px;
  transition: transform 0.3s ease;
}

.portfolio-item img 
{
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.modal 
{
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn 
{
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal.active 
{
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-corpo 
{
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  animation: zoomIn 0.3s ease;
}

@keyframes zoomIn 
{
  from {
    transform: scale(0.8);
  }
  to {
    transform: scale(1);
  }
}

.modal-close 
{
  position: absolute;
  top: 2rem;
  right: 3rem;
  color: #fafaf9;
  font-size: 3rem;
  font-weight: 300;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.modal-close:hover 
{
  opacity: 0.7;
}

.modal-nav 
{
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 2rem;
  transform: translateY(-50%);
}

.modal-prev,
.modal-next 
{
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fafaf9;
  font-size: 2rem;
  padding: 1rem 1.5rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
  border-radius: 4px;
}

.modal-prev:hover,
.modal-next:hover 
{
  background-color: rgba(255, 255, 255, 0.2);
}

.sobre-mim 
{
  padding: 6rem 0;
  background-color: #fafaf9;
}

.sobre-mim h2
{
  margin-top: 2rem;
}

.sobre-mim .container {
  display: grid; 
  grid-template-columns: 1fr 1fr; 
  grid-template-rows: auto auto; 
  gap: 0 20rem; 
  align-items: start;
}

.sobre-mim .section-titulo {
  grid-column: 1 / 2; 
  grid-row: 1 / 2; 
  text-align: left;
  margin-bottom: 0.5rem; 
}

.sobre-mim .container img {
  grid-column: 2 / 3; 
  grid-row: 1 / 3;
  width: 100%; 
  height: auto;
  object-fit: cover;
}

.sobre-mim-texto {
  grid-column: 1 / 2;
  grid-row: 2 / 3; 
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.sobre-mim-texto p {
  text-align: left;
  margin-bottom: 0;
}


.servicos 
{
  padding: 8rem 0;
  background-color: #fafaf9;
}

.servicos-grid 
{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
}

.servico-card 
{
  text-align: center;
  padding: 3rem 2rem;
  border-radius: 8px;
  background-color: #fff;
  border: 1px solid #e7e5e4;
  transition: all 0.3s ease;
}


.servico-icone 
{
  color: #292524;
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: center;
  transition: color 0.3s ease;
}

.servico-titulo 
{
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.servico-descricao 
{
  color: #373737;
  line-height: 1.7;
}

.contato-section 
{
  padding: 8rem 0;
  background-color: #fff;
}

.contato-grid 
{
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  max-width: 600px;
  margin: 0 auto;
}

.contato-item 
{
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0;
  background: none;
  border: none;
  transition: transform 0.3s ease;
}

.contato-icone 
{
  color: #292524;
  flex-shrink: 0;
}

.contato-texto 
{
  text-align: left;
}

.contato-info 
{
  color: #1c1917;
  font-size: 1rem;
  line-height: 1.6;
}

.footer 
{
  background-color: rgba(10, 10, 10);
  /* background: #1c1917; */
  color: #fafaf9;
  padding: 3rem 0 2rem;
  position: relative;
}

.footer::before 
{
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(245, 245, 10, 0.2), transparent);
}

.footer-cta 
{
  text-align: center;
  margin-bottom: 3rem;
}

.footer-titulo 
{
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 400;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.footer-subtitulo 
{
  color: rgba(250, 250, 249, 0.7);
  font-size: 1.125rem;
}

.footer-corpo 
{
  display: flex;
  justify-content: center;
  margin-bottom: 3rem;
}

.social-links 
{
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.social-link 
{
  color: #fafaf9;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: rgba(250, 250, 249, 0.1);
  transition: all 0.3s ease;
  border: 1px solid rgba(250, 250, 249, 0.2);
}

.social-link:hover 
{
  background-color: rgba(250, 250, 249, 1);
  color: #292524;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}


.footer-bottom 
{
  text-align: center;
  padding-top: 2.5rem;
  color: rgba(250, 250, 249, 0.5);
  font-size: 0.875rem;
  position: relative;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  padding-left: calc(50vw - 50%);
  padding-right: calc(50vw - 50%);
  border-top: 1px solid rgba(250, 250, 249, 0.1);
}


@media (max-width: 768px) 
{
  .logo 
  {
    color: black;
    font-size: 1rem;
  }

  .nav 
  {
    gap: 1rem;
  }

  .nav-link 
  {
    font-size: 0.8rem;
  }

  .inicio 
  {
    height: 70vh;
    background-attachment: scroll;
  }

  .inicio-titulo 
  {
    font-size: 2rem;
  }

  .inicio-subtitulo 
  {
    font-size: 1rem;
    margin-bottom: 2rem;
  }

  .portfolio-grid 
  {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }

  .servicos-grid 
  {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .servico-card 
  {
    padding: 2rem 1.5rem;
  }

  .contato-grid 
  {
    gap: 2rem;
  }

  .contato-item 
  {
    gap: 1rem;
  }

  .section-divisao 
  {
    height: 30vh;
    background-attachment: scroll;
  }

  
}

@media (max-width: 480px) 
{
  .container 
  {
    padding: 0 1rem;
  }

  .portfolio-grid 
  {
    grid-template-columns: 1fr;
  }

  .inicio-titulo 
  {
    font-size: 1.75rem;
  }

  .sobre-mim .container 
  {
    display: flex;
    flex-direction: column;
    align-items: center; 
    gap: 2rem; 
  }

  .sobre-mim .section-titulo 
  {
    text-align: center;
    margin-bottom: 0;
  }

  .sobre-mim .container img 
  {
    width: 100%; 
    max-width: 400px; 
    margin: 0 auto; 
    height: auto;
  }

  .sobre-mim-texto 
  {
    display: block; 
    flex-grow: 1;
  }

  .sobre-mim-texto .section-subtitulo 
  {
    text-align: center;
    margin-bottom: 1rem;
  }

  .sobre-mim-texto 
  {
    align-items: center;
  }

  .sobre-mim .section-titulo,
  .sobre-mim .section-subtitulo 
  {
    text-align: center;
  }

  
}

.section-divisao 
{
  height: 50vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  position: relative;
}

.section-divisao::before 
{
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.2);
}

#section-divisao1 
{
  background-image: url('images/farolcinza.jpg');
}


#section-divisao2 
{
  background-image: url('images/cactocinza.jpg');
}

#section-divisao3 
{
  background-image: url('images/deserto.jpg');
}

/* Menu Hambúrguer */
.menu-toggle {
    display: none; /* Esconde no desktop */
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 101; 
}

.hamburger-icon {
    display: block;
    width: 25px;
    height: 2px;
    background-color: #ffffff;
    position: relative;
    transition: background-color 0.3s ease;
}

.hamburger-icon::before,
.hamburger-icon::after {
    content: '';
    display: block;
    width: 25px;
    height: 2px;
    background-color: #ffffff; 
    position: absolute;
    transition: transform 0.3s ease, top 0.3s ease;
}

.hamburger-icon::before {
    top: -8px;
}

.hamburger-icon::after {
    top: 8px;
}

/* Animação de fechar*/
.menu-toggle.active .hamburger-icon {
    background-color: transparent;
}

.menu-toggle.active .hamburger-icon::before {
    transform: rotate(45deg);
    top: 0;
}

.menu-toggle.active .hamburger-icon::after {
    transform: rotate(-45deg);
    top: 0;
}

/* MOBILE */
@media (max-width: 768px) {
    .header {
        padding: 1rem 0; 
        position: absolute; 
        background-color: transparent;
    }

    .header-corpo {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-direction: row;
        width: 100%;
    }

    .logo-header {
        height: 100px;
    }

  .logo 
  {
    color: #fff;
    font-size: 1.1rem;
    flex: 1;
    text-align: left;
  }

    .nav {
        display: flex;
        flex-direction: column;
        align-items: center;
        position: fixed;
        top: 0;
        right: 0;
        width: 70%;
        height: 100%;
        background-color: rgba(10, 10, 10, 0.96);
        backdrop-filter: blur(6px);
        padding: 5rem 2rem 2rem;
        gap: 0;
        box-shadow: -4px 0 16px rgba(0, 0, 0, 0.4);
        transform: translateX(100%);
        transition: transform 0.35s ease;
        z-index: 101;
    }

    .nav.open {
        transform: translateX(0);
    }

    .nav-link {
        color: #fff;
        padding: 1rem 0;
        width: 100%;
        text-align: center;
        font-size: 1rem;
    }

    .nav-link:last-child {
        border-bottom: none;
    }

    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        z-index: 102;
        position: relative;
    }

    .menu-toggle.active {
        position: fixed;
        top: 1rem;
        right: 1rem;
    }

    .inicio {
        padding-top: 0; 
    }

    
    
}