*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body{
    background-color: #27173a;
    color: #fff;
    height: 100vh;
    overflow-x: hidden;
}

.interface{
    max-width: 1280px;
    margin: 0 auto;
}

.logo img {
    width: 200px;
    filter: drop-shadow(0 4px 8px #4c017ab0);
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.logo img:hover{
    transform: scale(1.1);
}

.flex{
    display: flex;
}

.btn-contato button{
    padding: 10px 40px;
    font-size: 19px;
    font-weight: 600;
    background-color: #9878f8;
;
    border: 0;
    border-radius: 30px;
    cursor: pointer;
    transition: .3s;
    color: #ffffff;
}

.btn-contato button:hover {
    box-shadow: 0px 0px 15px #818CF8;
    transform: scale(1.1);
}

h2.titulo{
    color: #ffffff;
    font-size: 38px;
    text-align: center;
}

h2.titulo span{
    color: #8a0ee8;
}


header{
    padding: 40px 4%;
}

header > .interface{
    display: flex;
    align-items: center;
    justify-content: space-between;
}

header a{
    color: #a09c9c;
    text-decoration: none;
    display: inline-block;
    transition: .2s;
    font-size: 1.2rem;
}

header nav.menu-desktop a:hover{
    color: #ffffff;
    transform: scale(1.1);
}

header nav ul{
    list-style-type: none;
}

header nav.menu-desktop ul li{
    display: inline-block;
    padding: 0 40px;
}

/* estilo menu mobile */
.btn-abrir-menu{
    display: none;
}

.btn-abrir-menu i{
    color: #aa56eb;
    font-size: 40px;
}

.menu-mobile{
    background-color: linear-gradient(145deg, #8f5ae9, #9878f8);;
    height: 100vh;
    position: fixed;
    top: 0;
    right: 0;
    z-index: 99999;
    width: 0%;
    overflow: hidden;
    transition: .5s;
}

.menu-mobile.abrir-menu{
    width: 70%;
}

.menu-mobile.abrir-menu ~ .overlay-menu{
    display: block;
}

.menu-mobile .btn-fechar{
    padding: 20px 5%;
}

.menu-mobile .btn-fechar i{
    color: #5e0c9d;
    font-size: 30px;
}

.menu-mobile nav ul{
    text-align: right;
}

.menu-mobile nav ul li a{
    color: #fff;
    font-size: 20px;
    font-weight: 300;
    padding: 20px 8%;
    display: block;
    transition: 0.3s;
}

.menu-mobile nav ul li a:hover{
    background-color: #5c00a3;
    color: #e9c9f9;
}

.overlay-menu{
    background-color: #a36effba;
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 88888;
    display: none;
}

section.topo-do-site{
    padding: 40px 4%;
}

section.topo-do-site .flex{
    align-items: center;
    justify-content: center;
    gap: 90px;
}

.topo-do-site h1{
    color: #fff;
    font-size: 38px;
}

.topo-do-site .txt-topo-site p{
    color: #fff;
    margin: 40px 0;
}

.topo-do-site .img-topo-site img{
    position: relative;
    animation: flutuar 2s ease-in-out infinite alternate;
}

@keyframes flutuar{
    0%{
        top: 0;
    }
    100%{
        top: 30px;
    }
}

section.especialidades{
    padding: 80px 4%;
}

section.especialidades .flex{
    gap: 60px;
}

.especialidades .especialidades-box{
    color: #fff;
    padding: 40px;
    border-radius: 20px;
    margin-top: 45px;
    transition: .2s;
    box-shadow: 0 0 10px #00000050;
}

.especialidades .especialidades-box:hover{
    transform: scale(1.05);
    box-shadow: 0 0 20px #666565;
}

.especialidades .especialidades-box i{
    font-size: 90px;
    color:#277ae6;
}

.especialidades .especialidades-box h3{
    font-size: 28px;
    margin: 15px 0;
}

section.sobre{
    padding: 40px 4%;
}

section.sobre .flex{
    align-items: center;
    gap: 60px;
}

.sobre .txt-sobre{
    color: #fff;
}

.sobre .txt-sobre h2{
    font-size: 40px;
    line-height: 40px;
    margin-bottom: 30px;
}

.sobre .txt-sobre h2 span{
    color: #8a0ee8;
    display: block;
}

.sobre .txt-sobre p{
    margin: 30px 0;
    text-align: justify;
}

.btn-social button{
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    background-color: #5d00a3;
    font-size: 22px;
    cursor: pointer;
    margin: 0 5px;
    transition: .2s;
    color: #fff;
}

.btn-social button:hover {
    transform: scale(1.2);
    box-shadow: 0 0 10px #666565;
}

section.portfolio{
    padding: 80px 4%;
    box-shadow: 0 0 40px 10px #ffffff3e;
}

section.portfolio .flex{
    justify-content: space-around;
    margin-top: 60px;
}

.img-port{
    width: 360px;
    height: 460px;
    background-size: cover;
    background-position: top;
    transition: 8s;
    cursor: pointer;
    border-radius: 40px;
    position: relative;
}

.img-port:hover{
    background-position: 100% 100%;
}

.overlay{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #3a3a3ab8;
    border-radius: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 600;
    color: #fff;
    opacity: 0;
    transition: .5s;
}

.overlay:hover{
    opacity: 1;
}

.carousel-container {
  position: relative;
  overflow: hidden;
}

.carousel {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  gap: 40px;
  padding: 20px 0;
}

.carousel::-webkit-scrollbar {
  display: none; /* Chrome */
}

.btn-left,
.btn-right {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.6);
  border: none;
  color: white;
  font-size: 30px;
  padding: 10px 14px;
  cursor: pointer;
  border-radius: 50%;
  z-index: 2;

  /* Pra garantir que o tamanho não mude */
  width: 44px;
  height: 44px;

  /* Centralizar o símbolo dentro do botão */
  display: flex;
  align-items: center;
  justify-content: center;

  /* Transição suave */
  transition: background-color 0.3s ease, transform 0.3s ease;

}

.btn-left {
  left: -10px;
}

.btn-right {
  right: -10px;
}

/* Efeito hover: só muda cor e dá um leve scale */
.btn-left:hover,
.btn-right:hover {
  background: rgba(0, 0, 0, 0.85);
  transform: translateY(-50%) scale(1.1);
}

footer{
    padding: 40px 4%;
    box-shadow: 0 0 40px 10px #ffffff1d;
}

footer .flex{
    justify-content: space-between;
}

footer .logo-footer img {
    border-radius: 10%;
    display: block;
    max-width: 100%;
    height: auto;
}

footer .line-footer{
    padding: 20px 0;
}

.borda{
    border-top: 4px solid #5d00a3;
}

footer .line-footer p i{
    color: #fff;
    font-size: 22px;
}

footer .line-footer p a{
    color: #fff;
}

@media screen and (max-width: 1020px){
    .flex{
        flex-direction: column;
    }

    h2.titulo{
        font-size: 34px;
        line-height: 30px;
    }

    .menu-desktop, .btn-contato{
        display: none;
    }

    .btn-abrir-menu{
        display: block;
        cursor: pointer;
    }

    section.topo-do-site .flex{
        gap: 40px;
    }
    
    section.topo-do-site{
        padding: 20px 8%;
    }

    .topo-do-site h1{
        font-size: 30px;
    }

    .topo-do-site .img-topo-site img{
        width: 100%;
    }

    section.especialidades{
        padding: 40px 8%;
    }

    section.sobre{
        padding: 80px 8%;
    }

    .sobre .txt-sobre h2{
        font-size: 35px;
        line-height: 35px;
        text-align: center;
    }

    .btn-social{
        text-align: center;
    }

    .img-sobre img{
        width: 100%;
    }

    section.portfolio {
        padding: 40px 8%; /* menos padding que no desktop */
    }

    section.portfolio h2.titulo {
        font-size: 28px;
        line-height: 32px;
        text-align: center;
        margin-bottom: 20px;
    }

    /* .flex precisa ser display flex e nowrap no mobile */
    section.portfolio .flex {
        display: flex;
        flex-wrap: nowrap;
        gap: 20px;
        overflow-x: auto; /* para scroll horizontal */
        -webkit-overflow-scrolling: touch; /* suaviza o scroll no iOS */
        margin-top: 40px; /* ajuste visual */
        justify-content: flex-start; /* ou space-between/around se preferir */
    }

    .img-port {
        flex: 0 0 auto; /* impede que o item encolha e permite largura fixa */
        width: 320px; /* largura fixa para o card */
        height: 400px;
        border-radius: 40px;
        background-size: cover;
        background-position: top;
        cursor: pointer;
        position: relative;

    }

    .carousel-container {
        width: 100%;
        overflow: visible;
        position: relative;
    }

    /* Botões com tamanho menor e posicionamento mais alinhado */
    .btn-left,
    .btn-right {
        width: 36px;
        height: 36px;
        font-size: 24px;
        top: 45%;
        background: rgba(0, 0, 0, 0.6);
    }

    .btn-left {
        left: 0;
    }

    .btn-right {
        right: 0;
    }

    footer .flex{
        flex-direction: column;
        gap: 30px;
    }

    footer .line-footer{
        text-align: center;
    }
}
