/* ===============================
   SEÇÃO HOME
   =============================== */

/* Container principal da seção home */
#home {
    display: flex;                 /* Usa Flexbox para organizar conteúdo */
    flex-direction: column;        /* Empilha elementos verticalmente */
    justify-content: flex-end;     /* Alinha o conteúdo na parte inferior */
    padding: 0 9rem;               /* Espaçamento interno horizontal */
    margin: 0 0 10rem 0;           /* Margem inferior */
    
}

/* Imagem de fundo decorativa do home */
#home .background-image {
    position: absolute;                        /* Fixa fora do fluxo normal */
    background-image: url(../../assets/img/FundoB.jpeg); /* Define a imagem QUE ESTA BRANCA */
    border-radius: 10px;
    min-height: 200px;
    margin-top: -100px;
    width: 200px;                              /* Largura fixa */
    height: 50vh;                              /* Altura relativa à viewport */
    background-position: -300px 0;            /* Posição da imagem dentro do container */
    top: 0;                                    /* Distância do topo */
    right: 10%;                                /* Distância da direita */
    z-index: 0;                                /* Fica atrás dos elementos principais */
}

/* Container interno do home (para conteúdo e imagem) */
#home .container {
    margin-top: -350px;
    display: flex;
    justify-content: space-between;           /* Espaço entre elementos filhos */
    align-items: flex-end;                     /* Alinha os filhos na parte inferior */
}

/* Conteúdo interno do home (texto, título) */
#home .content,
#home .title {
    display: flex;
    flex-direction: column;                   /* Empilha verticalmente */
}

/* Título principal */
#home-title {
    display: flex;                             /* Flex para alinhamento interno se necessário */
    color: var(--primary-color);               /* Cor principal definida */
    font-size: 6.5rem;                           /* Tamanho grande */
    margin-top: 10px;
}

/* Subtítulo */
#home-subtitle {
    display: flex;
    color: var(--highlight-color);             /* Cor de destaque */
    font-size: 1.6rem;
    font-weight: 600;                          /* Negrito médio */
    margin-top: 25px;
    
}

/* Container de informações adicionais no home */
#home .info {
    display: flex;   /* Itens organizados horizontalmente */
}

/* ===============================
   ANIMAÇÃO DE ROTAÇÃO
   =============================== */

/* Classe para elementos que devem girar automaticamente */
.autoRotateAnimation {
    animation: autoRotateAnimation;            /* Aplica keyframe */
    animation-timeline: view();                /* Define timeline do scroll-view */
}

/* Keyframes para rotação de 360° */
@keyframes autoRotateAnimation {
    from { transform: rotate(0deg); }          /* Início: 0° */
    to { transform: rotate(360deg); }          /* Fim: 360° */
}

/* ===============================
   SEÇÃO ABOUT
   =============================== */

/* Container principal do About */
#about {
    display: flex;
    padding: 10rem 9rem;                       /* Espaçamento interno grande */
}

/* Conteúdo interno do About */
#about .content { display: flex; }

/* Título da seção About */
#about-title {
    color: var(--primary-color);
    font-size: 4.5rem;
}

/* Classe para destaque de palavras */
.highlight { color: var(--highlight-color); }

/* Container de texto e imagem */
#about .info {
    display: flex;
    gap: 15rem;                                /* Espaçamento entre texto e imagem */
    justify-content: space-between;
    align-items: center;                        /* Alinha verticalmente ao centro */
}

/* Container do texto */
#about .text {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;                               /* Espaçamento entre parágrafos */
}

/* Estilo dos parágrafos */
#about .text p {
    color: var(--primary-color);
    font-size: 1.25rem;
    font-weight: 300;
    line-height: 1.75rem;
}

/* Botão de currículo */
#curriculum {
    text-decoration: none;                      /* Remove sublinhado */
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    background-color: var(--tone-color);
}

/* Container de imagem */
#about .image { 
    
    position: relative;
    
}

/* Imagem do perfil */
#profile-picture {
    display: block;
    max-width: 300px;                           /* Tamanho máximo */
    border-radius: 2rem;                  /* Arredondamento de cantos específicos */
    pointer-events: none;                       /* Imagem não interativa */
}

/* Avatar Notion decorativo */
.notion {
    position: absolute;
    z-index: 3;                                 /* Fica acima da imagem principal */
    top: -35px;
    left: -35px;
}

/* Avatar Notion interativo */
#notion-avatar {
    max-width: 100px;
    border-radius: 50%;                         /* Redondo */
    transition: 0.3s ease;                      /* Suaviza transformações */
}

/* Efeito hover/focus no avatar */
#notion-avatar:hover,
#notion-avatar:focus {
    transform: scale(1.1);                      /* Aumenta levemente */
}

/* ===============================
   SEÇÃO SKILLS
   =============================== */

/* Container geral da seção skills */
#skills {
    display: flex;
    height: 100%;
    padding: 10rem 9rem;
    gap: 0.625rem;
}

/* Conteúdo interno das skills */
#skills .content {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    gap: 4rem;
}

/* Título das skills */
#skills .title {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

#skills-title {
    color: var(--primary-color);
    font-size: 4.5rem;
}

#skills-subtitle {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 300;
}

/* Container de ícones de skills */
#skills .icons {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    width: 100%;
    max-width: 2560px;
    position: relative;
    height: 100px;
    overflow: hidden;
    mask-image: linear-gradient(to right, #fff0, rgb(0 0 0) 20%, rgb(0 0 0) 80%, #fff0); /* Efeito fade nas laterais */
}

/* Keyframes para animação de rolagem dos ícones */
@keyframes scrollLeft {
    to { left: -200px; }
}

/* Cada ícone individual */
#skills .icon {
    height: 6rem;
    width: 6rem;
    position: absolute;
    left: max(calc(50px * 5), 100%);            /* Posicionamento inicial */
    animation-name: scrollLeft;                  /* Aplica animação de rolagem */
    animation-duration: 10s;
    animation-timing-function: linear;
    animation-iteration-count: infinite;        /* Repetição infinita */
}

/* Delays individuais para cada skill */
.html      { animation-delay: calc(10s / 6 * (6 - 1) * -1); }
.css       { animation-delay: calc(10s / 6 * (6 - 2) * -1); }
.javascript{ animation-delay: calc(10s / 6 * (6 - 3) * -1); }
.bootstrap { animation-delay: calc(10s / 6 * (6 - 4) * -1); }
.mysql     { animation-delay: calc(10s / 6 * (6 - 5) * -1); }
.figma     { animation-delay: calc(10s / 6 * (6 - 6) * -1); }

/* Texto descritivo das skills */
#skills .text {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;               /* Permite quebrar linhas */
    gap: 0.5rem;
    color: var(--tertiary-color);
}

/* Efeito hover no texto */
#skills .text p {
    cursor: pointer;
    transition: 0.2s ease;
}
#skills .text p:hover,
#skills .text p:focus { color: var(--highlight-color); }

/* ===============================
   SEÇÃO PROJECTS
   =============================== */

/* Container geral dos projetos */
#projects {
    display: flex;
    flex-direction: column;
    height: 100%;
    margin-left: -31px;
    padding: 10rem 9rem 15rem 9rem;
}

/* Container interno */
#projects .container {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 2rem;
    
}
/* Título dos projetos */
#projects .title {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

#projects-title {
    color: var(--primary-color);
}

#projects-subtitle {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 300;
}

/* Link "see more" */
.seemore {
    text-decoration: none;
    color: var(--primary-color);
    font-size: 1.75rem;
}









/* ===============================
   CARD DO PROJETO
   =============================== */

.container { display: flex; }
.card-item { list-style: none; }
.swiper-slide { width: fit-content; }

.card-wrapper {
    margin: 0 0 2rem 0;
    padding: 20px 0;
    overflow: hidden;
}

.card-link {
    user-select: none;
    display: flex;
    flex-direction: column;
    background: var(--tertiary-color);
    border-radius: 14px;
    text-decoration: none;
    border: 0.10px solid #005548;
    box-shadow: 0 10px 10px rgba(0, 0, 0, 0);
    transition: 0.2s ease;
}

.card-content {
    
    padding: 10px; }


.card-link:hover {
    
    border-color:  #35dfc5; }


.card-image {
    max-width: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 15px 15px 0 0;
    margin: 0;
}

.badges {
    
    display: flex;
     justify-content: flex-start;
      flex-direction: row;
       gap: .75rem; }


.badge {

    padding: .25rem .75rem;
    margin: 1rem 0 1.1rem;
    font-size: .75rem;
    width: fit-content;
    border-radius: 15px;
    transition: .2s ease;
}

.card-title {

     font-size: 1.3rem;
      font-weight: 500;
       margin-bottom: 0.70rem; 
       color: var(--primary-color); }


.card-button {

    height: 2rem;
    width: 2rem;
    color: var(--primary-color);
    border-radius: 50%;
    margin: 1rem 0 .3rem;
    background: none;
    cursor: pointer;
    border: 2px solid var(--primary-color);
    transform: rotate(-45deg);
    transition: 0.4s ease;

}
.card-link:hover .card-button {

    color: #222;
    background-color: var(--primary-color);

}
.swiper-pagination-bullet {

    height: 10px;
    width: 10px;
    opacity: .5;
    background: var(--primary-color);
}

/* ===============================
   SEÇÃO CONTACT
   =============================== */

#contact {

    display: flex;
    flex-direction: column;
    width: 100%;
    height: 30.4375rem;
    padding: 10rem;
    align-items: center;
    gap: .625rem;
    background: var(--primary-color);
}

#contact .content { display: flex; gap: 6.125rem; }


#contact .contact { 
    
    display: flex; 
    flex-direction: column;
     width: 100%;
      gap: 2.5rem; }


#contact .info {

     display: flex;
      flex-direction: column;
       align-items: flex-start;
        gap: .5rem; }

#contact-text { 

    font-size: 1.25rem;
     font-weight: 600;
      line-height: normal; }

#contact-phone, #contact-mail {

    font-size: 1.125rem;
    text-decoration: none;
    color: var(--background-color);

}

#contact-mail:visited {
    
    text-decoration: none; }

#social-text {
     font-size: 1.25rem;
      font-weight: 600;
       line-height: normal; }

#contact .social { 

    display: flex;
     flex-direction: column; 
     width: 100%; 
     gap: 2.5rem; }

#contact .icons {

     display: flex;
      align-items: center;
       gap: 1rem; }


/* ===============================
   MEDIA QUERIES (RESPONSIVO)
   =============================== */

/* Ajustes para telas menores que 1280px */
@media (max-width: 1280px) {

    #home { margin: 0 0 4rem 0; }
    #home-title { font-size: 6rem; }
    #home .container { gap: 15rem; }
}

/* Ajustes para telas menores que 1150px */
@media (max-width: 1150px) {

    #profile-star { display: none; }

    #home { padding: 10rem 5rem 0 5rem; }

    #home .container { gap: 0; }

    .bold { border: .75rem solid var(--primary-color); }

    #about { padding: 10rem 5rem; height: 100%; }

    #about .info { flex-direction: column; gap: 5rem; }

    #skills { padding: 10rem 5rem; }

    #projects { padding: 10rem 5rem; }
}

/* Ajustes para telas menores que 768px */
@media (max-width: 768px) {

    body { overflow-x: hidden; }

    #home-title { font-size: 4.75rem; }

    #contact { padding: 5rem; }

    #contact .content { flex-wrap: wrap; }

    #contact .contact { align-items: center; }

    #contact .social { align-items: center; }

    .swiper-slide { display: flex; justify-content: center; }
}

/* Ajustes para telas menores que 481px */
@media (max-width: 481px) {

    .bold { border: .5rem solid var(--primary-color); }

    #home { padding: 5rem 2rem 0 2rem; }

    #home-title { font-size: 3.75rem; }

    #about { padding: 5rem 2rem 5rem 2rem; }
    
}