@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@100..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    text-decoration: none;
    scroll-behavior: smooth;
}

body{
    width: 100%;
    height: auto;
    background-color: #10172a;
    overflow-x: hidden;
}

body.light-theme {
    background: #1b2942;
  }

/* Custom Scrollbar */
::-webkit-scrollbar{
    width: 10px;
}

::-webkit-scrollbar-track{
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb{
    background: rgb(113, 4, 156);
    border-radius: 12px;
    transition: all 0.33s ease;
}

::-webkit-scrollbar-thumb:hover{
    background: rgb(142, 11, 194);
}

nav{
    position: fixed;
    width: 100%;
    top: 0;
    height: 10vh;
    background: linear-gradient(0deg, #10172a, #080c16);
    z-index: 1000;
}

.nav-container{
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.hamburg {
  order: 1; /* primeiro */
  margin-left: 15px;
}

.check {
  order: 2; /* depois */
  margin-right: 15px;
}

.logo h2{
    margin-left: 60px;
    color: #f1f1f1;
    font-size: 1.6rem;
}

.logo h2 span{
    color: rgb(160, 54, 202);
    text-shadow: 0 0 10px rgb(160, 54, 202);
    font-size: 2.5rem;
}

/* Ícones hamburguer e cancelar */
.hamburg, .cancelar {
  cursor: pointer;
  display: block;
  color: white;
  font-size: clamp(2rem, 1rem + 4vw, 2.5rem);
  z-index: 10001;
}

/* Dropdown menu (fechado por padrão) */
.dropdown {
  position: fixed;
  inset: 0;
  display: none;
  justify-content: center;
  align-items: center;
  background: rgba(0,0,0,0.9);
  z-index: 10000;
}

/* Quando ativo */
.dropdown.active {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* Links do menu hamburguer */
.dropdown .links {
  display: flex;
  flex-direction: column;
  gap: 25px;
  align-items: center;
}

.dropdown .links a {
  font-size: 2rem;
  font-weight: 600;
  color: white;
  text-decoration: none;
  transition: color 0.3s ease, transform 0.2s ease;
}

.dropdown .links a:hover {
  color: rgb(113, 4, 156);
  transform: scale(1.1);
}

/* Botão de fechar (X) */
.dropdown .cancelar {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 2.5rem;
  color: white;
  cursor: pointer;
}

@media (max-width: 768px){
    .nav-container .links{ display: none; }
    .hamburg{ display: block; }
  }

  /* Desktop: esconde dropdown e ícone */
@media (min-width: 769px){
    .dropdown{ display: none !important; }
    .hamburg, .cancelar{ display: none; }
}

.nav-container .links a{
    position: relative;
    font-size: 1.1rem;
    color: white;
    margin: 0 20px;
    text-decoration: none;
    font-weight: 550;
    transition: 0.3s linear;
}

.nav-container .links a::before{
    position: absolute;
    content: "";
    bottom: -3px;
    left: 0;
    width: 0%;
    height: 2.5px;
    background-color: rgb(113, 4, 156);
    transition: 0.2s linear;
}

.nav-container .links a:hover::before{
    width: 100%;
}

.nav-container .links a:hover{
    color: rgb(113, 4, 156);
}

.links {
    display: flex;
    gap: 35px;
    align-items: center;
}

.check {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 60px;
}

/* Esconde o checkbox padrão */
.check input {
    display: none;
}

/* Estilo do botão */
.check label {
    position: relative;
    width: 56px;
    height: 30px;
    background: #211b41; /* azul escuro (modo lua) */
    border-radius: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5px;
    box-sizing: border-box;
    transition: background 0.6s ease;
    color: white;
    font-size: 1.3rem;
}

/* Quando marcado, muda para cor do sol */
.check input:checked + label {
    background: orange;
}

/* Ícones */
.check label i {
    transition: opacity 0.3s ease;
}

/* Modo lua: esconde sol */
.check input:not(:checked) + label .ri-sun-fill {
    opacity: 0;
}

/* Modo sol: esconde lua */
.check input:checked + label .ri-moon-fill {
    opacity: 0;
}

section{
    width: 100%;
    min-height: 90vh;
    display: flex;
}

section .main{
    display: flex;
    justify-content: space-around;
    padding-left: 100px;
    align-items: center;
}

.main .image{
    display: flex;
    align-items: center;
    width: 700px;
    height: 58vh;
}

.main .image img{
    width: 100%;
}

.main .image:hover{
    animation: animate 2s ease-in-out infinite;
}

@keyframes animate{
    0%{
        scale: 1;
    }

    50%{
        scale: 1.05;
    }

    100%{
        scale: 1;
    }
}

.typewritter-text {
    border-right: 2px solid #fff;
    display: inline-block;
    padding-right: 5px;
    animation: blink 0.7s infinite;
}

@keyframes blink {
    50% {
    border-color: transparent;
    }
}

.main .content{
    color: white;
    width: 47%;
}

.content h1{
    font-size: clamp(1.2rem, 1.2rem + 5vw, 2rem);
}

.content h1 span{
    color: rgb(113, 4, 156);
    text-shadow: 0 0 10px rgb(113, 4, 156);
    font-size: 2.5rem;
}

.content .typewritter{
    font-size: clamp(1.2rem, 1.2rem + 5vw, 2.7rem);
    font-weight: 600;
}

.content .typewritter-text{
    color: rgb(113, 4, 156);
    text-shadow: 0 0 10px rgb(113, 4, 156);
}

p{
    font-size: clamp(0.6rem, 0.4rem + 9vw, 1.1rem);
    margin: 10px 0;
    max-width: 85%;
}

.social-links i{
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 3.5rem;
    height: 3.5rem;
    background-color: transparent;
    border: 0.2rem solid rgb(113, 4, 156);
    border-radius: 50%;
    color: rgb(113, 4, 156);
    margin: 5px 15px 0px 0px;
    font-size: 1.8rem;
    transition: 0.2s linear;
}

.social-links i:hover{
    scale: 1.3;
    color: black;
    background-color: rgb(113, 4, 156);
    filter: drop-shadow(0 0 10px rgb(113, 4, 156));
}

.content button{
    width: 25%;
    height: 6vh;
    margin: 25px 0px 0px 0px;
    background-color: rgb(113, 4, 156);
    color: white;
    border: none;
    outline: none;
    font-size: 150%;
    font-weight: 700;
    cursor: pointer;
    border-radius: 5px;
    transition: 0.2s linear;
}

.content button:hover{
    scale: 1.1;
    color: rgb(113, 4, 156);
    border: 2px solid rgb(113, 4, 156);
    background-color: transparent;
    font-weight: 700;
    box-shadow: 0 0 20px rgb(113, 4, 156);
}

.faixa {
  width: 100%;
  overflow: hidden;          /* esconde o que passar da tela */
  background: linear-gradient(0deg, #161f3a, #10172a);
  padding: 25px 0;
}

.conteudo {
  display: flex;
  gap: 40px;                 /* espaço entre ícones */
  white-space: nowrap;       /* evita quebra de linha */
}

.faixa img {
  height: 47px;
  flex-shrink: 0;
}

.sobre{
    background: linear-gradient(0deg, #0e1324, #161f3a);
    display: flex;
    justify-content: space-around;
    scroll-margin-top: 80px;
}

.sobre.light-theme{
    background: linear-gradient(0deg, #161f3a, #1b2942);
}

section .contente{
    width: 80%;
    margin: 0px auto;
    font-family: 'Poppins', sans-serif;
}

.sobre .sobre-detalhes{
    display: flex;
    justify-content: space-between;
    align-items: center;
}

section .titulo{
    display: flex;
    justify-content: center;
    margin-bottom: 50px;
    margin-top: 40px;
}

section .titulo span{
    color: white;
    font-size: 35px;
    font-weight: 600;
    position: relative;
    padding-bottom: 8px;
}

section .titulo span::before,
section .titulo span::after{
    content: '';
    position: absolute;
    height: 3px;
    width: 100%;
    background: rgb(113, 4, 156);
    left: 0;
    bottom: 0;
}

section .titulo span::after{
    bottom: -7px;
    width: 70%;
    left: 50%;
    transform: translate(-50%);
}

.sobre .direita{
    width: 45%;
}

.sobre .direita img{
    height: 560px;
    width: 700px;
}

.sobre-detalhes .esquerda{
    width: 55%;
}

section .topico{
    color: white;
    font-size: 28px;
    font-weight: 500;
    margin-bottom: 10px;
}

section .topico p{
    font-size: 20px;
}

.sobre-detalhes .esquerda p{
    text-align: justify;
    color: white; 
}

button a{
    color: white;
}

.contente button{
    width: 25%;
    height: 6vh;
    margin: 10px 0px 0px 0px;
    background-color: rgb(113, 4, 156);
    border: none;
    outline: none;
    font-size: 130%;
    font-weight: 700;
    cursor: pointer;
    border-radius: 5px;
    transition: 0.2s linear;
}

.contente button:hover{
    scale: 1.1;
    color: rgb(113, 4, 156);
    border: 2px solid rgb(113, 4, 156);
    background-color: transparent;
    font-weight: 700;
    box-shadow: 0 0 20px rgb(113, 4, 156);
}

section .button{
    margin: 16px 0;
}

.boxes{
    display: flex;
    justify-content: space-evenly;
    max-width: 70%;
    margin-top: 30px;
    margin-left: -20px;
}

.box i{
    font-size: 49px;
}

.box{
    text-align: center;
    color: white;
    background-color: rgba(113, 4, 156, 0.158);
    padding: 10px;
    border-radius: 7px;
    border: solid rgb(113, 4, 156);
    transition: 0.3s;
    cursor: pointer;
}

.box:hover{
    scale: 1.1;
}

.projetos {
  color: #f1f1f1;
  scroll-margin-top: 100px;
  background: linear-gradient(0deg, #161f3a, #0e1324);
}

.projetos.light-theme {
  background: linear-gradient(0deg, #1b2942, #161f3a);
}

.projetos h2{
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
}

.projetos h2 span{
    color: white;
    font-size: 36px;
    font-weight: 600;
    position: relative;
    padding-bottom: 8px;
}

.projetos h2 span::before,
.projetos h2 span::after{
    content: '';
    position: absolute;
    height: 3px;
    width: 100%;
    background: rgb(113, 4, 156);
    left: 0;
    bottom: 0;
}

.projetos h2 span::after{
    bottom: -7px;
    width: 70%;
    left: 50%;
    transform: translate(-50%);
}

.projetos-cont{
    display: flex;
    justify-content: space-evenly;
    flex-wrap: wrap;
    padding-bottom: 3rem;
}

.projetos-box {
    margin-top: 5rem;
    flex: 0 0 30%;
    text-align: center;
    border: solid rgb(113, 4, 156);
    border-radius: 10px;
    background-color: rgba(76, 1, 105, 0.164);
    padding: 10px;
    overflow: hidden;
    transition: 0.3s;
}

.projetos-box img {
    max-width: 100%;
    display: block;  
    border: solid rgb(113, 4, 156);
    border-radius: 10px;
}

.projetos-box:hover{
    scale: 1.1;
}

.projetos-box h3{
    padding-top: 8px;
    font-size: 1.8rem;
}

.projetos-box h5{
    text-align: justify;
    padding-left: 5px;
    width: 90%;
    font-size: 1.1rem;
    font-weight: 500;
    padding: 20px 0px 10px 6px;
}

.proj-span{
    display: flex;
    gap: 0.5rem;
    padding: 2px 5px 25px 5px;
    font-size: 1.1rem;
    flex-wrap: wrap;
}

span.html{
    background: #4275f8;
    padding: 2px 5px 2px 5px;
    border-radius: 10px;
}

span.css{
    background: #f84842;
    padding: 2px 5px 2px 5px;
    border-radius: 10px;
}

span.js{
    background: #f3c21f;
    padding: 2px 7px 2px 7px;
    border-radius: 10px;
}

span.word{
    background: #2fcdfd;
    padding: 2px 7px 2px 7px;
    border-radius: 10px;
}

span.elem{
    background: #a02ffd;
    padding: 2px 7px 2px 7px;
    border-radius: 10px;
}

span.woo{
    background: #2fff97;
    padding: 2px 7px 2px 7px;
    border-radius: 10px;
}

.proj-button button{
    padding: 10px 17px 10px 20px;
    background-color: rgb(113, 4, 156);
    border-radius: 10px;
    border: none;
    font-size: 1.2rem;
    font-weight: 600;
    color: white;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: 0.3s;
}

.proj-button button:hover{
    scale: 1.1;
    background-color: rgba(113, 4, 156, 0.281);
    border: solid rgb(113, 4, 156);
}

.proj-button i{
    font-size: 20px;
    padding-left: 5px;
}

.contato {
    width: 100%;
    height: 80vh; 
    color: #f1f1f1;
    display: flex;
    flex-direction: column;
    justify-content: center; 
    align-items: center;     
    text-align: center;      
}

.tit{
    text-align: center;
}

.tit h2{
    color: rgb(113, 4, 156);
    font-size: 180px;
    font-weight: 700;
    text-shadow: 0 0 25px rgb(113, 4, 156);
}

.cont{
    display: flex;
    justify-content: center;
}

.cont-button{
    display: flex;
    justify-content: center;
}

.cont-button a{
    width: 150%;
    padding: 0rem 2rem 0rem 2rem;
    height: 10vh;
    margin: 25px 0px 0px 0px;
    background-color: rgb(113, 4, 156);
    color: white;
    border: none;
    outline: none;
    font-size: 3.5rem;
    font-weight: 700;
    cursor: pointer;
    border-radius: 5px;
    transition: 0.2s linear;
}

.cont-button a:hover{
    scale: 1.1;
    color: #a02ffd;
    background-color: #f3eac8;
    border: 2px solid rgb(113, 4, 156);
    font-weight: 700;
    box-shadow: 0 0 20px rgb(113, 4, 156);
}

.ling {
    text-align: center;
    font-size: 1.4rem;
    margin-top: -20px;
}

.ling .cit{
    display: flex;
    justify-content: end;
    font-style: italic;
    font-size: 1.1rem;
    margin-top: 1rem;
}

.rodape{
    background: linear-gradient(0deg, #0a0a13, #10172a);
    width: 100%;
    height: 10vh;
    display: flex;
    justify-content: space-around;
    align-items: center;
    color: #f1f1f1;
    font-size: 1.2rem;
    font-style: italic;
}

.social i{
    font-size: 1.9rem;
    color: #f1f1f1;
}

.social i:hover{
    color: #c9c9c9;
}

.modal{
  display:none;
  position:fixed;
  inset:0;
  z-index:2000;
  background: rgba(0,0,0,.85);
  justify-content:center;
  align-items:center;
  padding: 24px;
}

.modal-content{
  width: min(900px, 92vw);
  border-radius: 16px;
  overflow: hidden;
  /* fundo na paleta do site */
  background: linear-gradient(0deg, #0e1324, #161f3a);
  color: #f1f1f1;
  box-shadow: 0 10px 40px rgba(0,0,0,.6);
}

.modal-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 10px 16px;
  background: #080c16; /* barra superior */
}

.modal-title{
  font-size: 1.1rem;
  font-weight: 700;
}

.modal-close{
  background: transparent;
  border: none;
  font-size: 1.8rem;
  line-height: 1;
  color: #f1f1f1;
  cursor: pointer;
}

.modal-body{
  padding: 0; /* vídeo encosta nas bordas */
}

.modal-body video{
  display:block;
  width:100%;
  height:auto;
  outline: none;
}

/* ======== TABLET ======== */
@media (max-width: 1024px) {
  /* Home */
  section .main {
    flex-direction: column;
    padding-left: 0;
    text-align: center;
  }

  .main .image {
    width: 70%;
    height: auto;
    margin-bottom: 20px;
  }

  .main .content {
    width: 90%;
  }

  /* Sobre */
  .sobre .sobre-detalhes {
    flex-direction: column;
    text-align: center;
    width: 100%;
  }

  .sobre .direita {
    display: none;
  }

  .sobre button{
    width: 40%;
  }

  .boxes {
    flex-wrap: wrap;
    max-width: 100%;
    gap: 16px;
    margin: 20px auto;
    margin-bottom: 90px;
  }

  /* Projetos */
  .projetos-box {
    flex: 0 0 45%; /* 2 por linha */
  }

  /* Contato */
  .contato{
    height: 60vh;
  }
  
  .tit h2 {
    font-size: 90px;
  }

  .cont-button a {
    font-size: 1.8rem;
    width: auto;
    height: auto;
    padding: 1rem 2rem;
  }

  /* Modal */
  .modal-content {
    width: 95%;
    max-height: 90vh;
  }

  .modal-body video {
    max-height: 70vh;
  }

  .sobre .esquerda {
    width: 100% !important;   /* força ocupar toda a largura */
    max-width: 100% !important;
    text-align: center;       /* opcional, se quiser centralizar */
  }

  .sobre p {
    width: 100% !important;   /* garante que o parágrafo não fique estreito */
    max-width: 100% !important;
  }

  section .main {
    flex-direction: column;   /* já está */
    padding-left: 0;
    text-align: center;
    margin-bottom: 50px;
  }

  .main .image {
    width: 70%;
    height: auto;
    margin-bottom: 20px;
  }

  .main .content {
    width: 80% !important;   /* força ocupar toda a largura */
    max-width: 100% !important;
    text-align: center;       /* centraliza texto */
    font-size: 1rem;          /* opcional: melhora leitura */
  }

  .content h1,
  .content h2,
  .content p {
    max-width: 100%;          /* garante que não fique estreito */
    margin: 0 auto;           /* centraliza */
  }
}

/* ======== MOBILE ======== */
@media (max-width: 600px) {
  /* Navbar */
  .logo h2 {
    margin-left: 10px;
    font-size: 1rem;
  }

  .logo h2 span{
    font-size: 1.9rem;
  }

  .check {
    margin-right: 10px;
  }

  /* Home */
  section .main {
    padding: 0 15px;
    margin-bottom: -50px;
  }

  .main .image {
    width: 100%;
    margin-bottom: -200px;
    margin-top: -70px;
  }

  .main .content {
    width: 100% !important;
    font-size: 0.85rem;
  }

  .content h1 {
    font-size: 1.3rem;
  }

  .content .typewritter {
    font-size: 1.5rem;
    white-space: nowrap; /* evita quebrar no meio */
    margin-bottom: 0.5rem;
  }

  .main button {
    margin-bottom: 1rem;
    width: 45%;
  }

  /* Ícones sociais */
  .social-links i {
    width: 3rem;
    height: 3rem;
    font-size: 1.5rem;
    margin: 5px;
    margin-top: 20px;
  }

  /* Sobre */
  .sobre .direita img {
    display: none;
  }

  .sobre button {
    height: 2.8rem;
    width: 9.4rem;
    font-size: 1.1rem;
  }

  p {
    max-width: 100%;
    font-size: 0.85rem;
  }

  .sobre p {
    width: 100%;
  }

  .sobre .box{
    font-size: 0.7rem;
  }

  .sobre .box i{
    font-size: 2rem;
  }

  /* Projetos */
  .projetos-box {
    flex: 0 0 90%; /* 1 por linha */
  }

  .tit-projetos{
    margin-bottom: -40px;
  }

  /* Contato */
  .contato {
    height: auto;
    padding: 40px 15px;
  }

  .tit h2 {
    font-size: 50px;
  }

  .cont-button a {
    font-size: 1rem;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    width: auto;
    display: inline-block;
  }

  .ling {
    margin-top: 0.3rem;
    font-size: 0.9rem;
  }

  .ling .cit {
    font-size: 0.7rem;
    margin-bottom: -25px;
  }

  /* Rodapé */
  .rodape {
    flex-direction: column;
    text-align: center;
    height: auto;
    padding: 12px 0;
    gap: 8px;
    font-size: 0.8rem;
  }

  .rodape i{
    font-size: 1.5rem;
  }

  /* Modal */
  .modal-content {
    width: 100%;
    height: auto;
    border-radius: 0;
  }

  .modal-body video {
    width: 100%;
    height: auto;
  }

  .hamburg {
    order: 2; /* vai pra direita */
  }

  .check {
    margin-right: -0.9rem;
    order: 1; /* vai pra esquerda */
  }

  .sobre .esquerda {
    width: 100% !important;   /* força ocupar toda a largura */
    max-width: 100% !important;
    text-align: center;       /* opcional, se quiser centralizar */
  }

  .sobre p {
    width: 100% !important;   /* garante que o parágrafo não fique estreito */
    max-width: 100% !important;
  }
}



