* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    outline: none;
    scroll-behavior: smooth;
    font-family: "Poppins", sans-serif;
}

:root {
    --bg-color: #080808;
    --second-bg-color: #131313;
    --text-color: white;
    --main-color: #8b2052;
}

html {
    font-size: 60%;
    overflow-x: hidden;
}

body {
    background: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 10% 2rem;
    background: black;
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 5;
}


.logo {
    font-size: 3.0rem;
    color: var(--text-color);
    font-weight: 800;
    cursor: pointer;
    transition: 0.4s ease;
    text-decoration: none;
}
.fatec {
  width: 60px;
  height: auto;
  margin-left: 100px;
  margin-top: 5px;
  text-decoration: none;
}

/* remove a linha de borda do link da logo Fatec */
.navbar a:has(.fatec) {
  border-bottom: none !important;
}

/* animação da logo */
.logo:hover {
  transform: scale(1.1);
}

.logo span {
  text-shadow: 0 0 30px var(--main-color);
  transition: 0.4s ease;
}

/* LINKS DO MENU NAVBAR */
.navbar a {
  font-size: 1.8rem;
  color: var(--text-color);
  margin-left: 6rem;
  font-weight: 700;
  transition: 0.3s ease;
  border-bottom: 3px solid transparent;
  text-decoration: none;
}

.navbar a:hover,
.navbar a.active {
  color: var(--main-color);
  border-bottom: 2px solid var(--main-color);
}

/* ÍCONE HAMBURGUER */
#menu-icon {
  font-size: 3.6rem;
  color: var(--main-color);
  cursor: pointer;
  display: none;
  z-index: 1001;
}

/* ======= MENU RESPONSIVO ======= */
@media (max-width: 1250px) {
  #menu-icon {
    display: block;
  }

  .navbar {
    position: absolute;
    top: 100%;
    right: -100%;
    width: 250px;
    background: var(--second-bg-color);
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem;
    border-left: 2px solid var(--main-color);
    border-bottom: 2px solid var(--main-color);
    transition: all 0.4s ease;
    z-index: 1000;
  }

  .navbar.active {
    right: 0;
  }

  .navbar a {
    display: block;
    margin: 1.5rem 0;
    font-size: 2rem;
    color: var(--text-color);
  }

  .fatec {
    margin-top: 1rem;
    margin-left: 0;
  }
}

section {
    min-height: 100vh;
    padding: 10rem 12% 10rem;
}

.full-width {
    padding: 0;
    margin: 0;
    width: 100vw;
    max-width: 100%;
    min-height: 0;
}

.home {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15rem;
}

.span {
    color: var(--main-color);
}

.home-content {
    display: flex;
    flex-direction: column;
    align-items: baseline;
    text-align: left;
    justify-content: center;
    margin-top: 3rem;
}

span {
    color: var(--main-color);
}

.logo span {
    color: var(--main-color);
}

.home-content h3 {
    margin-bottom: 2rem;
    margin-top: 1.4rem;
    font-size: 2.3rem;
}

.home-content h1 {
    font-size: 4.5rem;
    font-weight: 700;
    margin-top: 1.7rem;
    line-height: 1;
}

@media (max-width: 1000px) {
    .home-img {
        display: none;
    }
}

.home-img {
    border-radius: 50%;

}

.home-img img {
    position: relative;
    top: 3.0rem;
    width: 30vw;
    border-radius: 46%;
    cursor: pointer;
    transition: 0.4s ease-in-out;
    height: 520px;
}

.home-img img:hover {
    box-shadow: 0 0 20px var(--main-color),
        0 0 50px var(--main-color),
        0 0 100px var(--main-color);
}


.home-content p {
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1.8;
    max-width: 1000px;
}

@media (max-width: 768px) {
    .home {
        flex-direction: column;
        align-items: center;
        gap: 4rem; /* Adjust gap */
    }

    .home-content {
        text-align: center;
        margin-top: 1rem;
    }

    .home-img img {
        display: none;
    }
}


.social-icons a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 4.8rem;
    height: 4.5rem;
    background: transparent;
    border: 2px solid var(--main-color);
    font-size: 2.5rem;
    border-radius: 50%;
    color: var(--main-color);
    margin: 3rem 1.5rem 3rem 0;
    transition: 0.3s ease-in-out;
    text-decoration: none;
}

.social-icons a:hover {
    color: var(--main-color);
    transform: scale(1.3)translateY(-5px);
    box-shadow: 0 0 25px var(--main-color);
    border-radius: 4rem;
    font-size: 1.8rem;
    color: rgb(0, 0, 0);
    border: 3px solid transparent;
    letter-spacing: 0.1rem;
    font-weight: 600;
    transition: 0.3s ease-in-out;
    background-color: var(--main-color);
}

.btn {
    display: inline-block;
    padding: 1rem 2.8rem;
    background: var(--main-color);
    cursor: pointer;
    transition: 0.3s ease-in-out;
    font-weight: 600;
    letter-spacing: 0.1rem;
    border: 2px solid transparent;
    font-size: 1.6rem;
    color: rgb(0, 0, 0);
    box-shadow: 0 0 25px var(--main-color);
    border-radius: 4rem;
}

.btn:hover {
    transform: scale(1.05);
}

.btn-group {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.btn-group a:nth-of-type(2) {
    background-color: black;
    color: var(--main-color);
    border: 2px solid;
    box-shadow: 0 0 20px var(--main-color);
}

.btn-group a:nth-of-type(2):hover {
    box-shadow: 0 0 25px var(--main-color);
    background-color: var(--main-color);
    color: black;
}

.text-animation {
    font-size: 25px;
    font-weight: 800;
    min-width: 272px;
}

.text-animation span {
    position: relative;
}

.text-animation span::before {
    content: "Web Developer";
    color: var(--main-color);
    animation: words 20s infinite;
}

.text-animation span::after {
    content: "";
    background-color: var(--bg-color);
    position: absolute;
    width: calc(100% + 8px);
    height: 90%;
    border-left: 3px solid var(--bg-color);
    right: -8px;
    animation: cursor 0.6s infinite, typing 20s steps(14) infinite;
}

@keyframes cursor {
    to {
        border-left: 2px solid var(--main-color);
    }
}

@keyframes words {

    0%,
    20% {
        content: "Web Developer";
    }

    21%,
    40% {
        content: "Web Designer";
    }

    41%,
    60% {
        content: "UI/UX Designer";
    }

    61%,
    80% {
        content: "Web Developer";
    }

    81%,
    100% {
        content: "Web Designer";
    }
}

@keyframes typing {

    10%,
    15%,
    30%,
    35%,
    50%,
    55%,
    70%,
    75%,
    90%,
    95% {
        width: 0;
    }

    5%,
    20%,
    25%,
    40%,
    45%,
    60%,
    65%,
    80%,
    85% {
        width: calc(100% + 8px);
    }
}

.heading {
    font-size: 6rem;
    text-align: center;
    margin: -1rem 0;
}

.formacao {
    padding: 130px 100px;
    background: var(--second-bg-color);
}

.formacao h2 {
    margin-bottom: 5rem;
    margin-top: -5rem;
}

.timeline-items {
    max-width: 1200px;
    margin: auto;
    display: flex;
    flex-wrap: wrap;
    position: relative; 
}

.timeline-items::before {
    content: "";
    position: absolute;
    width: 5px;
    height: 100%;
    background-color: var(--main-color);
    left: calc(50% - 1px);
}

.timeline-item {
    margin-bottom: 40px;
    width: 100%;
    position: relative;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-item:nth-child(odd) {
    padding-right: calc(50% + 30px);
    text-align: right;
}

.timeline-item:nth-child(even) {
    padding-left: calc(50% + 30px);
}

.timeline-dot {
    height: 21px;
    width: 21px;
    background-color: var(--main-color);
    box-shadow: 0 0 25px var(--main-color),
        0 0 50px var(--main-color);
    position: absolute;
    left: calc(50% - 8px);
    border-radius: 20%;
    top: 10px;
}

.timeline-date {
    font-size: 20px;
    margin: 6px 0 15px;
    color: white;
    font-weight: 800;
}

.timeline-content {
    background-color: var(--bg-color);
    border: 3px solid var(--main-color);
    padding: 30px 50px;
    border-radius: 4rem;
    box-shadow: 0 0 10px var(--main-color);
    cursor: pointer;
    transition: 0.3s ease-in-out;
}

.timeline-content:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px var(--main-color);
    background-color: var(--main-color);
}


.timeline-content p {
    color: white;
    font-size: 13px;
    font-weight: 500;
    line-height: 22px;
}

/* TIMELINE RESPONSIVA celular e tablets */

@media (max-width: 870px) {

    /* Linha lateral */
    .timeline-items::before {
        left: 20px;
        width: 3px;
    }

    /* Cada item vira um bloco único */
    .timeline-item,
    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        width: 100%;
        padding: 0 0 0 60px !important;
        text-align: left !important;
    }

    /* Bolinha da timeline */
    .timeline-dot {
        left: 12px !important;
        top: 18px !important;
    }

    /* Caixa */
    .timeline-content {
        width: 100%;
        padding: 18px 20px;
        margin-top: 10px;
        border-radius: 1.4rem;
        box-sizing: border-box;
        word-wrap: break-word; 
        word-break: break-word;
    }

    /* Data (1º semestre, etc) */
    .timeline-date {
        font-size: 1.8rem;
        font-weight: 700;
        margin-bottom: 8px;
    }

    /* Texto dentro da caixa */
    .timeline-content p {
        font-size: 1.45rem;
        line-height: 1.55;
        white-space: normal;
    }
}
/* HABILIDADES */

.Habilidades {
    background: var(bg-color);
    color: black;
    box-sizing: border-box;
}

.Habilidades h2 {
    margin-bottom: 3.5rem;
    color: var(--text-color);
    margin-bottom: 60px;
}

.Habilidades p {
    font-weight: 700;
    font-size: 1.5rem;
}


.Habilidades-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    align-items: center;
    gap: 2.5rem;
}

.Habilidades-box {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--main-color);
    height: 320px;
    border-radius: 3rem;
    padding: 20px 20px;
    border: 30px solid transparent;
    cursor: pointer;
    transition: all 0.5s ease-in-out;
}

.Habilidades-box:hover {
    background: #77204b;
    border: 5px solid var(--main-color);
    transform: scale(1.02);

}

.Habilidades-box .projetos-info {
    height: 100%;
    display: flex;
    flex-direction: column;
    text-align: center;
    justify-content: center;
    align-items: center;
    padding: 5rem 5rem;
}

.Habilidades-info h4 {
    margin: 2rem 0;
    font-weight: 700;
    font-size: 1.9rem;
}

.Habilidades i {
    font-size: 50px;
}
    /* projetos */
.projetos {
    background: var(--second-bg-color);
    color: rgb(0, 0, 0);
    box-sizing: border-box;
    padding: 50px;
}

.projetos h2 {
    margin-bottom: 3rem;
    color: var(--text-color);
    margin-bottom: 40px;
    margin-top: 20px;
}


.projetos-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 2fr));
    align-items: center;
    gap: 2.3rem;
}

.projetos-box {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--main-color);
    height: 260px;
    border-radius: 3rem;
    padding: 20px 20px;
    border: 5px solid transparent;
    cursor: pointer;
    transition: 0.4s ease-in-out;
    position: relative;
    overflow: hidden;
    
}

.projetos-box::after {
  content: attr(data-projeto);
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 100%; /* Fica embaixo do card */
  margin-top: 10px;

  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  padding: 6px 18px;
  border-radius: 10px;
  font-size: 1.6rem;
  font-weight: 700;

  opacity: 0;
  transition: all 0.35s ease-in-out;
  pointer-events: none;
  white-space: nowrap;
}

.projetos-box:hover::after {
  opacity: 1;
  margin-top: 4px;
}

/* TEXTO DO PROJETO APARECENDO LOGO ABAIXO DO TÍTULO */
.projeto-nome {
    font-size: 2.0rem;
    font-weight: 600;
    color: #77204b;
    margin-top: 8px;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity .3s ease, transform .3s ease;
}

/* Quando passar o mouse, aparece */
.projetos-box:hover .projeto-nome {
    opacity: 1;
    transform: translateY(0);
}
.projetos-box:hover {
    background: rgb(44, 3, 22);
    border: 5px solid var(--main-color);
    color: var(--main-color);
    transform: scale(1.03);
    font-size: 14px;
}

.projetos-box .projetos-info {
    height: 100%;
    display: flex;
    flex-direction: column;
    text-align: center;
    justify-content: center;
    align-items: center;
    padding: 5rem 5rem;
}

.projetos-info h4 {
    margin: 2rem 0;
    font-weight: 700;
    font-size: 4.2rem;
}

.projetos i {
    font-size: 27px;
}

/* ICONES DAS MINHAS HABILIDADES  */
.icon-photoshop {
    max-width: 45px;
}

.icon-sql {
    max-width: 50px;
}

.icon-canva{
    max-width: 47px;
}

.icon-eclipse{
    max-width: 47px;
}

ul {
    color: black;
}

/* ===== TIMELINE RESPONSIVA (celular e tablets) ===== */

@media (max-width: 920px) {

    /* Linha lateral */
    .timeline-items::before {
        left: 20px;
        width: 3px;
    }

    /* Cada item vira um bloco único */
    .timeline-item,
    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        width: 100%;
        padding: 0 0 0 60px !important;
        text-align: left !important;
    }

    /* Bolinha da timeline */
    .timeline-dot {
        left: 12px !important;
        top: 18px !important;
    }

    /* Caixa */
    .timeline-content {
        width: 100%;
        padding: 18px 20px;
        margin-top: 10px;
        border-radius: 1.4rem;
        box-sizing: border-box;
        word-wrap: break-word; 
        word-break: break-word;
    }

    /* Data (1º semestre, etc) */
    .timeline-date {
        font-size: 1.8rem;
        font-weight: 700;
        margin-bottom: 8px;
    }

    /* Texto dentro da caixa */
    .timeline-content p {
        font-size: 1.45rem;
        line-height: 1.55;
        white-space: normal;
    }
}

/* Melhor responsividade em telas bem pequenas (até 420px) */
@media (max-width: 420px) {

    .timeline-content {
        padding: 16px;
    }

    .timeline-content p {
        font-size: 1.35rem;
    }

    .timeline-date {
        font-size: 1.6rem;
    }
}

/* ===== CORREÇÃO DE CENTRALIZAÇÃO MOBILE ===== */
@media (max-width: 480px) {

    /* Centraliza tudo no mobile e faz com que o fundo cinza acompanhe */
    section,
    .home,
    .about,
    .services,
    .projetos,
    .contact,
    .formacao,
    .habilidades {
        text-align: center;
        margin: 0 auto;
        padding: 4rem 0; /* Removi o padding lateral e fiz com que o padding superior e inferior fosse suficiente */
        width: 100%; /* Garante que o fundo de cada seção ocupe 100% da largura */
        box-sizing: border-box;
    }

    /* Ajusta a home para que o conteúdo fique centralizado */
    .home {
        flex-direction: column;
        align-items: center;
        gap: 4rem; /* Ajusta o espaço entre a imagem e o conteúdo */
    }

    /* Corrige contêiner da home que ficava deslocado */
    .home-content {
        width: 100%;
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center; /* Centraliza o texto dentro da home */
    }

    /* Ajusta título */
    .home-content h1,
    .home-content h3,
    .home-content p {
        width: 100%;
        text-align: center !important;
    }

    /* Centraliza a imagem na home */
    .home-img img {
        margin: 0 auto;
        display: block;
        width: 70%;
        max-width: 260px; /* Garante que a imagem não ultrapasse esse tamanho */
    }

    /* Centraliza os projetos */
    .projetos-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        padding: 0;
        margin: 0;
    }

    .projetos-box {
        width: 100%; /* Remove qualquer margem lateral */
        margin: 1rem 0; /* Garante o espaçamento vertical */
        padding: 1rem;
        text-align: center;
    }

    /* Ajuste no cartão de habilidades para centralizar */
    .Habilidades-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        padding: 0;
        margin: 0;
    }

    .Habilidades-box {
        width: 90%; /* Ajusta os cards de habilidades para ocupar uma boa parte da tela */
        margin: 1rem auto;
        padding: 1rem;
        text-align: center;
    }

    /* Corrige o cabeçalho para telas pequenas */
    header {
        padding: 2rem 5%; /* Ajusta o padding do header */
    }

    /* Ajusta a formatação do texto nas seções */
    .heading {
        font-size: 4.5rem;
    }

    /* Ajusta os ícones sociais na home para ficarem centralizados */
    .social-icons {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    /* Centraliza o mapa */
    .full-width iframe {
        width: 100%; /* Faz o mapa ocupar 100% da largura */
        height: 370px;
        margin: 0; /* Remove qualquer margem do mapa */
        border: none; /* Remove a borda */
    }
}

