/* Importa fontes do Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inconsolata:wght@400;500;600&family=Lemon&family=Patua+One&family=Poppins:wght@200;400;500;600;700;800;900&display=swap');

/* Reset básico de estilo para todos os elementos */
* {
    scroll-behavior: smooth;
    padding: 0;
    margin: 0;
    font-family: 'Poppins', sans-serif;
    box-sizing: border-box;
}

/* Estiliza o corpo da página */
body {
    width: 100%;
    height: 100%;
    background-color: black;
    color: white;
}

/* Barra de navegação principal */
nav {
    width: 100%;
    height: 10vh;
    position: sticky;
    z-index: 99999;
}

/* Container da navegação */
.nav-container {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

/* Logo do site */
.nav-container .logo span {
    font-size: 2rem;
    font-weight: bold;
    color: rgb(84, 87, 238);
    text-shadow: 0 0 5px rgb(84, 87, 238);
}

/* Ícones do menu hamburguer (abrir) e cancel (fechar) */
.hamburg,
.cancel {
    z-index: 9999;
    cursor: pointer;
    position: absolute;
    right: 15px;
    top: 10px;
    color: white;
    font-size: clamp(2.5rem, 0.5rem +5vw, 3rem);
    display: none;
}

/* Container dos links da navegação */
.nav-container .links {
    display: flex;
}

/* Links da navegação */
.nav-container .links a {
    position: relative;
    font-size: 1.2rem;
    color: white;
    margin: 0 20px;
    text-decoration: none;
    font-weight: 550;
    transition: color 0.3s linear;
}

/* Linha animada abaixo do link */
.nav-container .links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background-color: rgb(84, 87, 238);
    transition: all 0.3s ease;
    transform: translateX(-50%);
    box-shadow: 0 0 10px rgb(84, 87, 238);
}

/* Efeito ao passar o mouse */
.nav-container .links a:hover {
    color: rgb(84, 87, 238);
}

.nav-container .links a:hover::after {
    width: 100%;
}

/* Menu dropdown para navegação mobile */
.dropdown {
    z-index: 9999;
    /* Aumentado para ficar acima de todos os outros elementos */
    position: absolute;
    top: 0;
    /* Ajustado para começar do topo */
    transform: translateY(-100vh);
    /* Mudado para esconder completamente fora da tela */
    width: 100%;
    height: auto;
    backdrop-filter: blur(5px) brightness(40%);
    box-shadow: 0 0 20px black;
    transition: 0.3s ease;
    /* Suavizado a transição */
    background-color: transparent;
}

/* Classe para mostrar o dropdown */
.dropdown.show {
    transform: translateY(0);
    /* Quando mostrado, fica na posição normal */
}

/* Links dentro do dropdown */
.dropdown a {
    display: flex;
    color: white;
    text-decoration: none;
    padding: 15px 0;
    /* Aumentado o padding para melhor área de toque */
    justify-content: center;
    align-items: center;
    transition: 0.3s linear;
    border-bottom: 1px solid rgba(84, 87, 238, 0.3);
    /* Separador visual */
}

/* Hover nos links do menu mobile */
.dropdown a:hover {
    background-color: rgb(84, 87, 238);
}

/* SEÇÕES RESPONSIVAS */
section {
    width: 100%;
    min-height: 90vh;
    padding: 50px 2rem;
    margin-top: 80px;
}


#home {
    height: 90vh;
    padding: 0;
}

/* Container principal (imagem + conteúdo) */
.main-container {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
}

/* Área da imagem principal */
.main-container .image {
    width: clamp(250px, 40vw, 450px);
    height: clamp(250px, 40vw, 450px);
    overflow: hidden;
    box-shadow: 0 0 30px rgba(84, 87, 238, 0.8), 0 0 60px rgba(84, 87, 238, 0.4);
    border-radius: 50%;
    animation: flutuar 4s ease-in-out infinite;
    flex-shrink: 0;
    order: 0;
}

/* Imagem dentro do container */
.main-container .image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Animação de flutuação */
@keyframes flutuar {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* Container de conteúdo textual */
.main-container .content {
    color: white;
    width: 40%;
    min-height: 100px;
}

/* Título principal */
.content h1 {
    font-size: clamp(1rem, 1rem + 5vw, 1.8rem);
}

/* Destaque em parte do título */
.content h1 span {
    font-weight: 700;
    text-shadow: 0 0 5px rgb(84, 87, 238);
    color: rgb(84, 87, 238);
}

/* Texto animado (palavras mudando) */
.content .typewriter {
    font-size: clamp(1rem, 1rem + 5vw, 2.5rem);
    font-weight: 700;
    margin: 10px 0;
}

.typewriter span {
    color: rgb(84, 87, 238);
    text-shadow: 0 0 10px rgb(84, 87, 238);
}

#cursor {
    color: white;
    font-weight: bold;
    margin-left: 5px;
}

/* Parágrafo */
.content p {
    font-size: clamp(0.4rem, 0.2rem + 9vw, 1rem);
    margin: 10px 0;
}

/* Container dos links sociais - CORRIGIDO */
.social-links {
    position: fixed;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    z-index: 100;
    /* Reduzido de 999 para evitar conflitos */
}

/* Links sociais individuais */
.social-links a {
    text-decoration: none;
    margin: 5px 0;
    /* Alterado para espaçamento vertical */
}

/* Ícone individual */
.social-links i {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 3rem;
    height: 3rem;
    background-color: transparent;
    border: 0.2rem solid rgb(84, 87, 238);
    border-radius: 50%;
    color: rgb(84, 87, 238);
    font-size: 1.5rem;
    transition: 0.2s linear;
}

/* Hover diretamente no ícone */
.social-links i:hover {
    transform: scale(1.3);
    filter: drop-shadow(0 0 10px rgb(84, 87, 238));
    background-color: rgb(84, 87, 238);
    color: white;
}

/* Botão principal */
.content button {
    width: 50%;
    height: 6vh;
    margin: 30px 0;
    background-color: rgb(84, 87, 238);
    color: white;
    border: none;
    outline: none;
    font-size: 120%;
    font-weight: 700;
    border-radius: 5px;
    transition: 0.2s linear;
}

/* Efeito hover no botão */
.content button:hover {
    scale: 1.1;
    color: rgb(84, 87, 238);
    border: 2px solid rgb(84, 87, 238);
    background-color: transparent;
    box-shadow: 0 0 40px 5px;
}

/* Seção Sobre - CENTRALIZADA */
#sobre {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 90vh;
    padding: 50px 0;
}

.section-title {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 50px;
    color: rgb(84, 87, 238);
    text-shadow: 0 0 10px rgb(84, 87, 238);
}

.about-content {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
    text-align: center;
    padding: 0 20px;
}

.about-text h3 {
    color: rgb(84, 87, 238);
    margin-bottom: 20px;
    font-size: 1.5rem;
    text-align: center;
}

.about-text p {
    margin-bottom: 20px;
    text-align: center;
}

/* Seção Skills */
#skills,
#habilidades {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 90vh;
    padding: 80px 20px;
}

.skills-container {
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.skill-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    border: 2px solid transparent;
    border-radius: 15px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.skill-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgb(84, 87, 238), rgba(84, 87, 238, 0.3));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.skill-item:hover::before {
    opacity: 0.1;
}

.skill-item:hover {
    transform: translateY(-10px);
    border-color: rgb(84, 87, 238);
    box-shadow: 0 15px 35px rgba(84, 87, 238, 0.3);
}

.skill-icon {
    font-size: 4rem;
    margin-bottom: 15px;
    color: rgb(84, 87, 238);
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.skill-item:hover .skill-icon {
    transform: scale(1.1);
    filter: drop-shadow(0 0 20px rgb(84, 87, 238));
}

.skill-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: white;
    text-align: center;
    position: relative;
    z-index: 2;
}

/* Cores específicas para cada tecnologia */
.skill-item[data-skill="git"] .skill-icon {
    color: #f05032;
}

.skill-item[data-skill="github"] .skill-icon {
    color: #ffffff;
}

.skill-item[data-skill="html"] .skill-icon {
    color: #e34f26;
}

.skill-item[data-skill="css"] .skill-icon {
    color: #1572b6;
}

.skill-item[data-skill="bootstrap"] .skill-icon {
    color: #7952b3;
}

.skill-item[data-skill="php"] .skill-icon {
    color: #777bb4;
}

.skill-item[data-skill="phpmyadmin"] .skill-icon {
    color: #6c78af;
}

.skill-item[data-skill="python"] .skill-icon {
    color: #3776ab;
}

.skill-item[data-skill="javascript"] .skill-icon {
    color: #f7df1e;
}

/* Animação de entrada para os itens */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Seção Projetos - CORRIGIDA */
#projetos {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 90vh;
    padding: 80px 20px;
    position: relative;
}

.section-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 50px;
    position: relative;
    z-index: 10;
    /* Reduzido para não interferir com o dropdown */
}

.project-card {
    background: linear-gradient(135deg, rgba(84, 87, 238, 0.1), rgba(84, 87, 238, 0.05));
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid rgba(84, 87, 238, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    z-index: 5;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(84, 87, 238, 0.2);
    z-index: 15;
    /* Aumenta quando hover para ficar acima dos social links */
}

.project-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(45deg, rgba(84, 87, 238, 0.3), rgba(84, 87, 238, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: rgb(84, 87, 238);
}

.project-image img{
    width: 100%;
    height: 100%;
   object-fit: cover; /* ou 'contain', dependendo do efeito desejado */

}

.project-info {
    padding: 25px;
}

.project-info h3 {
    color: rgb(84, 87, 238);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.project-info p {
    line-height: 1.6;
    margin-bottom: 20px;
    color: #ccc;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.tech-tag {
    background: rgba(84, 87, 238, 0.2);
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    border: 1px solid rgba(84, 87, 238, 0.5);
}

.project-links {
    display: flex;
    gap: 15px;
}

.project-link {
    padding: 8px 20px;
    background: rgb(84, 87, 238);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.project-link:hover {
    background: transparent;
    border: 1px solid rgb(84, 87, 238);
    color: rgb(84, 87, 238);
}

/* Seção Contato */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(84, 87, 238, 0.1), rgba(84, 87, 238, 0.05));
    border-radius: 10px;
    border: 1px solid rgba(84, 87, 238, 0.3);
    transition: transform 0.3s ease;
}

.contact-item:hover {
    transform: translateX(10px);
}

.contact-item i {
    font-size: 1.5rem;
    color: rgb(84, 87, 238);
    width: 30px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    color: rgb(84, 87, 238);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    padding: 15px;
    background: rgba(84, 87, 238, 0.1);
    border: 1px solid rgba(84, 87, 238, 0.3);
    border-radius: 8px;
    color: white;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: rgb(84, 87, 238);
    box-shadow: 0 0 10px rgba(84, 87, 238, 0.3);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    padding: 15px 30px;
    background: rgb(84, 87, 238);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background: transparent;
    border: 2px solid rgb(84, 87, 238);
    color: rgb(84, 87, 238);
    transform: translateY(-2px);
}

/* Footer */
footer {
    background: rgba(84, 87, 238, 0.1);
    padding: 40px 20px;
    text-align: center;
    border-top: 1px solid rgba(84, 87, 238, 0.3);
}

/* ====== MEDIA QUERIES AMPLAS ====== */

/* Extra Large Devices (Large desktops, 1400px and up) */
@media screen and (min-width: 1400px) {
    .nav-container .logo span {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 3.5rem;
    }

    .main-container .content {
        width: 35%;
    }

    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 40px;
    }

    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
        gap: 40px;
    }
}

/* Large Devices (desktops, 1200px and up) */
@media screen and (max-width: 1200px) {
    .nav-container .logo span {
        font-size: 1.8rem;
    }

    .social-links {
        left: 15px;
    }

    .social-links i {
        width: 2.8rem;
        height: 2.8rem;
        font-size: 1.4rem;
    }

    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    }
}

/* Medium Devices (tablets, 992px and up) */
@media screen and (max-width: 1200px) {
    .nav-container .logo span {
        font-size: 1.6rem;
    }

    .nav-container .links a {
        font-size: 1.1rem;
        margin: 0 15px;
    }

    .section-title {
        font-size: 2.5rem;
    }

    .section-container{
        padding-top: 100px;
    }
    .main-container {
        flex-direction: column;
        gap: 30px;
        padding: 20px;
    }

    .main-container .content {
        width: 80%;
        text-align: center;
    }

    .main-container .image {
        width: 350px;
        height: 350px;
    }

    .social-links {
        position: static;
        flex-direction: row;
        justify-content: center;
        transform: none;
        margin: 20px 0;
    }

    .social-links a {
        margin: 0 10px;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
        gap: 25px;
    }

    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 25px;
    }
}

/* Small Devices (landscape phones, 768px and up) */
@media screen and (max-width: 992px) {

    .hamburg,
    .cancel {
        display: block;
    }

    .nav-container .links {
        display: none;
    }

    .nav-container .logo span {
        font-size: 1.4rem;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 30px;
    }

    .main-container .image {
        width: 280px;
        height: 280px;
    }

    .content button {
        width: 70%;
        height: 7vh;
        font-size: 110%;
    }

    .about-text {
        font-size: 1rem;
        padding: 0 15px;
    }

    .about-text h3 {
        font-size: 1.3rem;
    }

    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 20px;
    }

    .skill-item {
        padding: 25px 15px;
    }

    .skill-icon {
        font-size: 3rem;
    }

    .skill-name {
        font-size: 1rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 10px;
    }

    .project-card {
        margin: 0;
    }

    .contact-item {
        padding: 15px;
        gap: 15px;
    }

    .contact-item i {
        font-size: 1.3rem;
    }

    section {
        padding: 40px 15px 20px;
        margin-top: 60px;
    }
}

/* Extra Small Devices (portrait phones, 576px and down) */
@media screen and (max-width: 679px) {
    .nav-container .logo span {
        font-size: 1.2rem;
    }

    .hamburg,
    .cancel {
        font-size: 2rem;
        right: 10px;
        top: 15px;
    }

    .section-title {
        font-size: 1.8rem;
        margin-bottom: 25px;
        padding-top: 50px;
    }

    .content .typewriter {
        font-size: clamp(0.9rem, 0.9rem + 4vw, 2rem);
        font-weight: 700;
        margin: 10px 0;
    }

    .typewriter span.typewriter-text {
        min-width: 120px;
        font-size: clamp(0.9rem, 0.9rem + 4vw, 2rem);
    }

    .main-container {
        padding: 15px;
        gap: 20px;
    }

    .main-container .content {
        width: 95%;
    }

    .main-container .image {
        width: 220px;
        height: 220px;
    }

    .content button {
        width: 80%;
        height: 8vh;
        font-size: 100%;
    }

    .about-text {
        font-size: 0.9rem;
        padding: 0 10px;
    }

    .about-text h3 {
        font-size: 1.2rem;
    }

    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 15px;
    }

    .skill-item {
        padding: 20px 10px;
    }

    .skill-icon {
        font-size: 2.5rem;
        margin-bottom: 10px;
    }

    .skill-name {
        font-size: 0.9rem;
    }

    .project-info {
        padding: 20px;
    }

    .project-info h3 {
        font-size: 1.2rem;
    }

    .project-info p {
        font-size: 0.9rem;
    }

    .contact-item {
        padding: 12px;
        gap: 12px;
        flex-direction: column;
        text-align: center;
    }

    .contact-item i {
        font-size: 1.5rem;
    }

    .form-group input,
    .form-group textarea {
        padding: 12px;
        font-size: 0.9rem;
    }

    .submit-btn {
        padding: 12px 25px;
        font-size: 1rem;
    }

    section {
        padding: 30px 10px 15px;
        margin-top: 50px;
    }
}

/* Ultra Small Devices (320px and down) */
@media screen and (max-width: 320px) {
    .nav-container .logo span {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.5rem;
        padding-top: 100px;
    }
    .content .typewriter {
        font-size: 1.5rem;
    }

    .main-container .image {
        width: 180px;
        height: 180px;
    }

    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .skill-item {
        padding: 15px 8px;
    }

    .skill-icon {
        font-size: 2rem;
    }

    .skill-name {
        font-size: 0.8rem;
    }

    .project-info {
        padding: 15px;
    }

    .contact-item {
        padding: 10px;
    }

    section {
        padding: 25px 8px 10px;
    }
}

