@import url('https://fonts.googleapis.com/css2?family=Merienda:wght@300..900&family=Montserrat:ital,wght@0,100..900;1,100..900&family=Orbitron:wght@400..900&family=Outfit:wght@100..900&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    scroll-behavior: smooth;
    line-height: 1.6;
    transition: background-color 0.3s, color 0.3s;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    background-color: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 10;
}

header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 1rem 0;
}

.header-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 2rem;
}

.logo-area img {
    width: 50px;
}

.site-name {
    font-family: "Montserrat", cursive;
    flex-grow: 1;
    text-align: center;
    font-size: 1.5rem;
    font-weight: bold;
}

nav ul {
    display: flex;
    gap: 1rem;
    list-style: none;
    margin: 0;
}

nav ul li a {
    text-decoration: none;
    font-weight: 600;
    color: #111;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #007bff;
}

.btn-cv {
    background-color: #00d4ff;
    color: white !important;
    padding: 10px 18px;
    border-radius: 30px;
    font-weight: bold;
    text-decoration: none;
    margin-left: 50px;
    transition: background 0.3s ease, transform 0.2s ease;
    /* COMENTÁRIO: Ajuste a posição do botão CV aqui. Por exemplo, altere margin-left para mudar o espaçamento à esquerda, ou adicione align-self: center; para centralizar verticalmente se necessário. */
}

.btn-cv:hover {
    background-color: #0099cc;
    transform: translateY(-2px);
}

.menu-toggle {
    display: none;
}

#home.section {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    min-height: 80vh;
    padding-top: 0px;
    padding-bottom: 40px;
    text-align: center;
    position: relative;
}

.home-hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 600px;
    margin: 0 auto;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
}

.hero-image img {
    width: 100%;
    max-width: 200px;
    border-radius: 20px;
    animation: float 3s ease-in-out infinite;
    filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s ease;
}

@keyframes float {

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

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

.texto1 {
    color: #ffffff;
}

.texto2 {
    color: #00d4ff;
    font-weight: bold;
}

.hero-content h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: fadeDown 1s ease forwards;
    color: red;
    /*MUDA A COR DO MEU NOME*/
}

.hero-content .cursor {
    color: #00d4ff;
}

.cursor {
    display: inline-block;
    animation: blink 0.7s infinite;
    margin-left: 4px;
    text-align: center;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.hero-content .subtitulo {
    font-size: 1.3rem;
    color: #ccc;
    margin-bottom: 2rem;
    animation: fadeUp 1.5s ease forwards;
}

.btn-cta {
    display: inline-block;
    padding: 12px 30px;
    font-size: 1rem;
    color: #fff;
    background: #00d4ff;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.3s ease, transform 0.3s ease;
    animation: fadeIn 2s ease forwards;
}

.btn-cta:hover {
    background: #0099cc;
    transform: scale(1.05);
}

@keyframes fadeDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

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

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 0;
    top: 0;
    left: 0;
}

.home-hero .container,
.hero-content {
    position: relative;
    z-index: 1;
}

#particles-sobre {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 0;
    top: 0;
    left: 0;
    pointer-events: none;
}

#sobre {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    background-color: rgba(0, 0, 0, 0.85);
    padding: 80px 20px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

#sobre .container {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    color: white;
    animation: fadeInUp 1s ease forwards;
}

#sobre .container h2 {
    color: white;
    text-transform: uppercase;
}

#sobre .container h2 span {
    color: #00d4ff;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.sobre-flex {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.sobre-img img {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    border: 3px solid #00d4ff;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.4);
    object-fit: cover;
    animation: float 4s ease-in-out infinite;
    transition: transform 0.3s;
}

.sobre-img img:hover {
    transform: scale(1.05);
}

.sobre-texto {
    max-width: 500px;
    color: white;
    text-align: left;
    animation: fadeInUp 1s ease forwards;
}

.section {
    padding: 60px 20px;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.section.visible {
    opacity: 1;
    transform: translateY(0);
}

.section h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #007bff;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s forwards;
    text-align: center;
    /* Centraliza todos os h2, incluindo Certificações */
}

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

.container.projeto {
    text-align: center;
}

.container.projeto h2 {
    text-transform: uppercase;
    font-size: 2.5rem;
    color: #00d4ff;
    margin-bottom: 20px;
}

ul {
    padding-left: 1.5rem;
}

.contato-list li {
    margin-bottom: 0.5rem;
}

.contato-list a {
    color: #333;
    text-decoration: none;
}

.contato-list a:hover {
    color: #007bff;
}

footer {
    background-color: #222;
    color: #fff;
    text-align: center;
    padding: 1.5rem 0;
    font-size: 0.9rem;
    margin-top: 3rem;
}

.projetos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
    min-height: auto;
}

.card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.5s ease, opacity 0.5s ease;
}

.card img {
    width: 100%;
    display: block;
    height: 180px;
    object-fit: cover;
}

.card-content {
    padding: 1rem;
}

.card-content h3 {
    margin-bottom: 0.5rem;
    color: #007bff;
}

.card-content p {
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.card-content a {
    text-decoration: none;
    font-weight: bold;
    position: relative;
}

.card-content a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    background: #007bff;
    transition: width 0.3s ease;
}

.card-content a:hover::after {
    width: 100%;
}

.card.visible {
    transform: translateY(0);
    opacity: 1;
}

.linha-do-tempo {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.evento {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-left: 3px solid #00d4ff;
    padding: 10px 15px;
    border-radius: 10px;
    animation: fadeInUp 1s ease forwards;
}

.icone {
    font-size: 24px;
    color: #00d4ff;
    margin-top: 4px;
}

.evento h4 {
    margin: 0;
    font-size: 18px;
    color: #00d4ff;
}

.evento p .dev {
    color: rgb(0, 255, 0);
    font-weight: bold;
}

.evento p .club {
    color: rgb(176, 96, 255);
    font-weight: bold;
}

.evento p {
    margin: 5px 0 0;
    font-size: 15px;
    color: white;
}

/*HABILIDADES*/

#habilidades {
    min-height: 75vh;
    background: linear-gradient(135deg, #0f0f0f, #1a1a1a);
    color: #00f7ff;
    padding: 80px 20px;
    position: relative;
    overflow: hidden;
}

#habilidades .container h2 {
    text-transform: uppercase;
    font-size: 2.5rem;
    color: #00d4ff;
    text-shadow: 0 0 3px #00f7ff;
    margin-bottom: 20px;
    text-align: center;
}

#particles-habilidades {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 0;
}

#habilidades .container {
    position: relative;
    z-index: 1;
}

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

.skill {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.1);
    animation: fadeInUp 1s ease forwards;
    cursor: pointer;
}

.skill i {
    font-size: 30px;
    margin-bottom: 10px;
}

.skill span {
    display: block;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
}

.skill.html i,
.skill.html span {
    color: #e34c26;
}

.skill.css i,
.skill.css span {
    color: #264de4;
}

.skill.js i,
.skill.js span {
    color: #f0db4f;
}

.skill.git i,
.skill.git span {
    color: #f1502f;
}

.skill.responsive i,
.skill.responsive span {
    color: #00f7ff;
}

.skill.nodejs i,
.skill.nodejs span {
    /* Estilização para Node.js, similar às outras */
    color: #68a063;
}

.skill.n8n i,
.skill.n8n span {
    /* Estilização para n8n, similar às outras */
    color: #ff7e03;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/*CERTIFICAÇÕES*/

#certificacoes .container h2 {
    text-transform: uppercase;
    font-size: 2.5rem;
    color: #00d4ff;
    margin-bottom: 20px;
    text-align: center;
}

.certificates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    grid-template-areas:
        "html-css javascript"
        "nike nike";
    gap: 20px;
    justify-items: center;
    margin-top: 30px;
}

.certificate-card {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.certificate-card:hover {
    transform: scale(1.05);
}

.certificate-card img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 10px;
}

.certificate-card p {
    font-size: 1rem;
    color: #333;
}

.certificate-card:nth-child(1) {
    grid-area: html-css;
}

.certificate-card:nth-child(2) {
    grid-area: javascript;
}

.certificate-card.nike-centered {
    grid-area: nike;
    justify-self: center;
}

/* Para adicionar o 4º certificado, ajuste o grid-template-areas para algo como "html-css javascript" "nike quarto" e adicione .certificate-card:nth-child(4) { grid-area: quarto; } */

/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    padding-top: 60px;
}

.lightbox-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    position: relative;
    top: 50px;
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

.prev,
.next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: white;
    font-weight: bold;
    font-size: 20px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev:hover,
.next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/*CONTATO*/

#contato {
    min-height: 75vh;
    display: flex;
    align-items: center;
    position: relative;
    background: linear-gradient(135deg, #0f0f0f, #1a1a1a);
    color: #00f7ff;
    overflow: hidden;
    padding: 80px 20px;
}

#contato .container h2 {
    text-transform: capitalize;
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 20px;
    text-align: center;
}

#particles-contato {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.contato-container {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 600px;
    margin: 0 auto;
}

#contact-form {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-bottom: 30px;
}

#contact-form label {
    color: #fff;
    margin-bottom: 5px;
    font-weight: bold;
}

#contact-form input,
#contact-form textarea {
    margin-bottom: 15px;
    padding: 12px;
    border: 1px solid #00d4ff;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

#contact-form input:focus,
#contact-form textarea:focus {
    border-color: #0099cc;
    outline: none;
}

#contact-form button {
    background: #00d4ff;
    color: white;
    border: none;
    padding: 12px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: bold;
    transition: background 0.3s ease, transform 0.3s ease;
}

#contact-form button:hover {
    background: #0099cc;
    transform: scale(1.05);
}

.contato-list {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.contato-list li {
    margin: 0;
    font-size: 1.2rem;
}

.contato-list a {
    color: #cdcdcd;
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: transform 0.3s ease, text-shadow 0.3s;
}

.contato-list a:hover {
    transform: scale(1.05);
}

.contato-list i {
    margin-right: 10px;
    font-size: 1.5rem;
}

/* Cores específicas */
.contato-list a.linkedin {
    color: #0077b5;
}

.contato-list a.linkedin:hover {
    text-shadow: 0 0 10px #0077b5;
}

.contato-list a.whatsapp {
    color: #25D366;
}

.contato-list a.whatsapp:hover {
    text-shadow: 0 0 10px #25D366;
}

.contato-list a.github {
    color: #ffffff;
}

.contato-list a.github:hover {
    text-shadow: 0 0 10px #ffffff;
}

footer {
    margin-top: -1rem;
    background: #000;
    color: #00f7ff;
    padding: 2rem 1rem;
    text-align: center;
    box-shadow: 0 0 15px #00f7ff88;
    border-top: 1px solid #00f7ff33;
}

.footer-glow {
    padding: 1rem;
    text-align: center;
    color: white;
    background-color: #000;
    box-shadow: 0 0 20px #ffffff55;
    border-top: 1px solid #ffffff55;
    border-radius: 12px;
}

/* Media Queries para Responsividade */

@media (max-width: 878px) {
    main {
        padding-top: 120px;
    }

    header {
        position: fixed;
        top: 0;
        width: 100%;
        background-color: #fff;
        z-index: 1000;
        align-items: center;
    }

    header .container.header-flex {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    header .container {
        align-items: center;
    }

    .site-name {
        font-size: 1.5rem;
    }

    .btn-cv {
        margin-left: 0;
        /* Corrige posição em mobile, removendo margin-left */
        margin-top: 10px;
        /* Adiciona espaço acima para melhor layout */
    }

    .sobre-flex {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

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

    .hero-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .hero-image img {
        width: 200px;
        height: auto;
    }

    .projetos-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1rem 0;
        min-height: 200px;
    }

    .contato-list {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

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

    nav ul {
        display: none;
    }

    .certificates-grid {
        grid-template-columns: 1fr;
        grid-template-areas:
            "html-css"
            "javascript"
            "nike";
    }

    .certificate-card.nike-centered {
        justify-self: center;
    }
}

@media (max-width: 768px) {
    .hero-content h2 {
        font-size: 2.5rem;
    }

    .subtitulo {
        font-size: 1.1rem;
    }

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

    .linha-do-tempo {
        gap: 15px;
    }

    #contact-form {
        max-width: 100%;
    }

    .contato-list {
        gap: 15px;
    }

    .lightbox-content {
        width: 90%;
        position: relative;
        top: 200px;
        align-items: center;
    }
}

@media (max-width: 440px) {
    header .container {
        padding: 0rem;
    }

    .projetos-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1rem 0;
        min-height: 200px;
    }

    .sobre-texto h2,
    .sobre-p {
        text-align: center;
    }

    .hero-content h2 {
        font-size: 2rem;
    }

    .btn-cta {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .skill i {
        font-size: 25px;
    }

    .skill span {
        font-size: 14px;
    }

    #certificacoes .container h2 {
        font-size: 2.0rem;
        align-items: center;
        text-align: center;
    }


    .certificate-card {
        max-width: 100%;
    }
}