@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');
* {margin: 0;padding: 0}
html {scroll-behavior: smooth}

body {
    font-family: "Roboto", serif;
    font-optical-sizing: auto;
    font-weight: normal;
    font-style: normal;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    height: 100%;
    color: #111;
    font-size: 18px;
}

a{text-decoration: none;}

/* TOP BAR */
section {scroll-margin-top: 81px;}
.lang {font-size: 12px;}
.lang a{text-decoration: none;color: #000;}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;   /* isso faz ocupar a tela toda */
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 1000;

  background: rgba(255, 255, 255, 0.95);
  transition: background 0.3s, box-shadow 0.3s;
}

.topbar.transparent {
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(6px);
}

.topbar.transparent nav a,
.topbar.transparent .logo,
.topbar.transparent .lang a {
  color: #fff;
}

nav#menu a {
  margin: 0 10px;
  text-decoration: none;
  font-size: 14px;
  color: #000;
  opacity: 0.6;
}

nav#menu a.active {
  color: #d62b2b;
  opacity: 1;
}

.topbar.transparent nav#menu a {
  color: #fff;
  opacity: 0.7;
}

.topbar.transparent nav#menu a.active {
  color: #d62b2b;
  opacity: 1;
}

/*BANNER*/
.embla__dots{
    width: 100%;
    margin: 0 auto;
    position: absolute;
    bottom: 35px;
}

.bn {
    height: 750px;
    background: #000;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    text-transform: uppercase;
}

.bn span{
    color: #d62b2b;
}

.bn1, .bn2, .bn3 {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.bn1::before, .bn2::before, .bn3::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.3;
    z-index: 1;
    transform-origin: center;
    animation: perspectiva 5s infinite alternate ease-in-out;
}

.bn1::before {
    background: url(../img/bn1.jpg) center center/contain no-repeat;
}

.bn2::before {
    background: url(../img/bn2.jpg) top left/cover no-repeat;
}

.bn3::before {
    background: url(../img/bn3.jpg) top center/cover no-repeat;
}

@keyframes perspectiva {
    0% {
        transform: perspective(300px) rotateX(5deg) rotateY(5deg) scale(1);
    }
    50% {
        transform: perspective(300px) rotateX(-5deg) rotateY(-5deg) scale(1.05);
    }
    100% { 
        transform: perspective(300px) rotateX(5deg) rotateY(5deg) scale(1);
    }
}


@keyframes perspectiva {
    0% {
        transform: scale(1.1);
    }
    100% { 
        transform: scale(1);
    } 
}

h1 {
    color: #fff;
    position: relative;
    z-index: 2;
    font-size: 32px;
}

.content{
  max-width: 990px;
  margin: 0 auto;
}

/*ALL*/
.highlight, .case, .human, .content, #team {
  padding: 100px 0;
}

.red{
  color: #d62b2b;
}

/* HIGHLIGHT */
.highlight {
  text-align: center;
  background-color: #000;
  font-weight: bold;
}

.highlight h2 {
  font-size: 32px;
}

.text-roller {
  height: 40px;
  overflow: hidden;
  margin: 10px 0 0 0;
}

.roller {
  display: flex;
  flex-direction: column;
  transition: transform 0.5s ease;
  color: #fff;
}

.roller h2 {
  height: 40px;
  line-height: 40px;
  margin: 0;
}

/* TEAM */
#team {
  text-align: center;
  background: #fff;
}

.team{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  max-width: 900px;
  margin: auto;
}

.member{
  width: 140px;
  text-align: center;
}

.member img{
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  margin: auto;
}

.name{
  display: block;
  margin-top: 8px;
  font-size: 14px;
  font-weight: 600;
}

.role{
  display: block;
  font-size: 13px;
  color: #888;
  margin-top: 2px;
}

/* CASE */
.case {
  text-align: center;
  background-color: #fff;
}

.case h1{color: #000;}

.case-content {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  margin: 60px 0 0 0;
}

.case-text {
  text-align: left;
  max-width: 30%;
}

.case-text .button {
  width: fit-content;
  padding: 10px 20px;
  background: #000;
  color: #fff;
  border: none;
  cursor: pointer;
}

.case-text .button a {
  color: #fff;
}

.case-text .button:hover {
  background: #d62b2b;
}

.case-image{
  background: url(../img/mascot.png) center/cover no-repeat;
  width: 480px;
  height: 320px;
  image-rendering: pixelated;
}

/* SERVICES */
.services{
  background: #000;
}

.services .content{
  color: #fff;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  text-align: center;
}

.services h1 {
  grid-column: 1 / -1;
  text-align: center;
}

.service h3 {
  font-size: 23px;
  margin-bottom: 10px;
}

.box{
    width: 90px;
    height: 70px;
    padding: 20px 0 0 0;
    margin: 0 auto 20px auto;
    background: #d62b2b;
    border-radius: 50%;
    text-align: center;
}

.services .fa-solid{
  font-size: 48px;
  margin-bottom: 20px;
}

.services p {
  font-size: 17px;
  color: #707070;
}

/* HUMAN */
.human{
  position: relative;
  overflow: hidden;
  color: #fff;
  text-align: center;
}

/* VIDEO FIXO */
.human .bg-video{
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100dvh;
  object-fit: cover;
  z-index: -2; /* fica atrás de tudo */
  pointer-events: none;
}

/* OVERLAY PRETO 50% */
.human::before{
  content:"";
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: -1;
  pointer-events: none;
}

/* CONTEÚDO NORMAL */
.human .content{
  position: relative;
  z-index: 1;
}

/*GALERIA*/
#portfolio{
  padding:60px 20px;
  max-width: 900px;
  margin: 0 auto;
}

/* tabs */
.tabs{
  text-align:center;
  margin-bottom:20px;
}
.tab{
  padding:10px 20px;
  margin:5px;
  border:1px solid #fff;
  background:none;
  color:#fff;
  cursor:pointer;
}
.tab.active{
  background:#fff;
  color:#000;
}

/*GALERIA*/
.gallery{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(150px,1fr));
  gap:30px;
}

.gallery img{
  width:100%;
  cursor:pointer;
  border-radius:8px;
  background: rgba(0, 0, 0, 0.3);
  padding: 10px;
}

.pixel{
  image-rendering: pixelated;
}

/* lightbox */
#lightbox{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.9);
  display:none;
  align-items:center;
  justify-content:center;
  z-index:999;
}
#lightbox img{
  max-width:90%;
  max-height:90%;
}

#lightbox.pixel-mode img{
  image-rendering: pixelated;
  transform: scale(4);
  transform-origin: center;
  max-width:none;
  max-height:none;
}

#lightbox .close,
#lightbox .prev,
#lightbox .next{
  position:absolute;
  color:#fff;
  font-size:40px;
  cursor:pointer;
  user-select:none;
}
.close{ top:80px; right:30px; }
.prev{ left:30px; }
.next{ right:30px; }

/*CONTACT*/
.contact {
  background: #050505;
  color: #fff;
  text-align: center;
  padding: 80px 0;
}

.social-links {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.social {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 12px 20px;
  border-radius: 6px;
  text-decoration: none;
  color: #fff;
  transition: 0.3s ease;
}

.social:hover {
  transform: translateY(-3px);
}

.social .icon {
  width: 45px;
  height: 45px;
  background: #1f1f1f;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  font-size: 18px;
}

.social span {
  font-weight: 500;
  font-size: 15px;
}

/* FOOTER */
footer {
  background: #000;
  color: #fff;
  text-align: center;
  padding: 20px;
}

#mmenu {
  position:fixed;
  width: 52px;
  top: 20px;
  right: 20px;
  background: #d62b2b;
  color: #fff;
  z-index: 9999;;
  padding: 15px 0;
  text-align: center;
  border-radius: 100px;
  font-size: 18px;
}


/* mob menu */
#mobile {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #000;
  z-index: 9999;
}

#mobile ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

#mobile li {
  border-bottom: 1px solid #111;
}

#mobile li:last-child {
  border-bottom: none;
}

#mobile a {
  display: block; 
  color: #fff;
  text-decoration: none;
  padding: 20px 30px;
  text-align: left;
}

#mobile a.active {
  font-weight: bold;
  color: #d62b2b;
}

#mmenu, #mobile {display: none}

.vgen-icon {
  width: 20px;
  height: 20px;
  filter: invert(1);
}

@media (max-width: 768px) {
  section {scroll-margin-top: 0;}
  #topbar {display: none;}
  #mmenu {display: block}      

    .bn {
      height: 50dvh;
    }

    .bn h1{font-size: 16px;}
    .embla__prev, .embla__next {
      top: 370px !important;
    }

    .bn1::before {
    background: url(../img/bn1.jpg) center center/cover no-repeat;
    }

    .bn2::before {
        background: url(../img/bn2.jpg) -40px center/cover no-repeat;
    }

    .bn3::before {
        background: url(../img/bn3.jpg) center/cover no-repeat;
    }

    /*ALL*/
    .highlight, .case, .human, .content, #team {
      padding: 100px 20px;
    }

    /* SERVICES */
    .services .content{
      color: #fff;
      display: grid;
      grid-template-columns: repeat(1, 1fr);
      gap: 0px;
      text-align: center;
      padding: 100px 20px;
    }

    .service h3 {
      font-size: 23px;
      margin-bottom: 10px;
    }

    .box{
        width: 90px;
        height: 70px;
        padding: 20px 0 0 0;
        margin: 20px auto;
        background: #d62b2b;
        border-radius: 50%;
        text-align: center;
    }

    .case-content {
      display: flex;
      flex-direction: column-reverse;
    }

    .case-image{
      width: 100%;
      height: 200px;
    }

    .case-text {
      max-width: 100%;
      margin: 20px 0 0 0;
      text-align: justify;
    }

    .case-text .button{
      text-align: center;
      margin: 0 auto;
    }

    .case-text .button a{
      width: 100%;
      color: #fff;      
    }
    
}