@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Sour+Gummy:ital,wght@0,100..900;1,100..900&display=swap');

:root {
    --Main-bg-Color: linear-gradient(135deg, #000000, #010639, #000817);
    --PrimaryColor: #9c9c9c;
    --SecondaryColor: #449eff;
    --main-text-color: #9c9c9c;
    --font-text: "Sour Gummy", cursive;
    --header-height: 60px;
    --glow-color: #0c9ffa;
}

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

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

body {
    font-size: 1.6rem;
    font-family: "Open Sans", sans-serif;
    background: var(--Main-bg-Color);
    color: var(--main-text-color);
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* Background espacial animado */
.space-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: var(--Main-bg-Color);
}

.stars {
    position: absolute;
    width: 100%;
    height: 100%;
    background: transparent;
}

.stars::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(2px 2px at 20px 30px, #eee, transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255,255,255,0.8), transparent),
        radial-gradient(1px 1px at 90px 40px, #fff, transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(255,255,255,0.6), transparent),
        radial-gradient(2px 2px at 160px 30px, #ddd, transparent);
    background-repeat: repeat;
    background-size: 200px 100px;
    animation: sparkle 20s linear infinite;
}

@keyframes sparkle {
    from { transform: translateY(0px); }
    to { transform: translateY(-100px); }
}

/* Meteoros */
.meteor {
    position: absolute;
    width: 2px;
    height: 2px;
    background: linear-gradient(45deg, var(--glow-color), transparent);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--glow-color);
    animation: meteor-fall 3s linear infinite;
}

@keyframes meteor-fall {
    0% {
        transform: translate(-100px, -100px) rotate(45deg);
        opacity: 1;
    }
    100% {
        transform: translate(100vw, 100vh) rotate(45deg);
        opacity: 0;
    }
}

/* Header responsivo - AJUSTADO */
header {
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(156, 156, 156, 0.2);
    box-shadow: 0 4px 20px rgba(12, 159, 250, 0.1);
    padding: 1rem 0;
    height: var(--header-height);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 100%;
}

.logo {
    font-size: 2rem;
    font-weight: bold;
    color: var(--glow-color);
    text-shadow: 0 0 10px var(--glow-color);
    padding-left: 1px;
}

.nav-menu {
    display: none;
    list-style: none;
    gap: 1.5rem; /* AJUSTE: Espaçamento entre itens do menu reduzido */
}

.nav-menu.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-bottom: 1px solid rgba(156, 156, 156, 0.2);
}

.nav-menu a {
    text-decoration: none;
    color: var(--main-text-color);
    font-size: 1.4rem;
    padding: 0.8rem 1.2rem; /* AJUSTE: Padding interno dos links reduzido */
    border-radius: 25px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.nav-menu a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(12, 159, 250, 0.2), transparent);
    transition: left 0.5s;
}

.nav-menu a:hover::before {
    left: 100%;
}

.nav-menu a:hover {
    color: var(--glow-color);
    border-color: var(--glow-color);
    box-shadow: 0 0 15px rgba(12, 159, 250, 0.3);
    transform: translateY(-2px);
}

.hamburger {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--main-text-color);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
    background: var(--glow-color);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
    background: var(--glow-color);
}

/* Campo de busca futurista */
.search-container {
    margin-top: calc(var(--header-height) + 2rem);
    padding: 2rem 1rem;
    display: flex;
    justify-content: center;
}

.search-box {
    position: relative;
    width: 100%;
    /* AJUSTE: Aumenta a largura máxima da caixa de pesquisa */
    max-width: 750px; 
}

.search-input {
    width: 100%;
    /* AJUSTE: Aumenta a altura e o tamanho da fonte */
    padding: 1.8rem 2rem 1.8rem 5rem;
    font-size: 1.7rem;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(156, 156, 156, 0.3);
    border-radius: 50px;
    color: var(--main-text-color);
    outline: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.search-input::placeholder {
    color: rgba(156, 156, 156, 0.7);
}

.search-input:focus {
    border-color: var(--glow-color);
    box-shadow: 0 0 20px rgba(12, 159, 250, 0.3);
    transform: scale(1.02);
}

.search-icon {
    position: absolute;
    left: 2rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--glow-color);
    font-size: 1.8rem;
}

/* Seções principais */
main {
    padding: 2rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

section {
    margin-bottom: 8rem;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

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

.section-title {
    font-size: clamp(3rem, 8vw, 6rem);
    text-align: center;
    margin-bottom: 4rem;
    background: linear-gradient(45deg, #fff, var(--glow-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--glow-color), transparent);
    border-radius: 2px;
}

/* Sobre mim - CORRIGIDO */
.sobre-container {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    align-items: center;
}

.sobre-texto {
    flex: 1;
    font-size: 1.8rem;
    line-height: 1.6;
    text-align: justify;
    /* CORREÇÃO 1: Removida a fonte personalizada, agora usa a fonte padrão do site */
    font-family: "Open Sans", sans-serif;
    background: rgba(255, 255, 255, 0.05);
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid rgba(156, 156, 156, 0.1);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    transform: translateX(-100px);
    opacity: 0;
    transition: all 1.5s ease-out;
}

/* CORREÇÃO 2: Removido o efeito de shimmer rotativo de trás do texto */
/* .sobre-texto::before foi completamente removido */

.sobre-texto.animate-in {
    transform: translateX(0);
    opacity: 1;
}

.foto-container {
    position: relative;
    display: flex;
    justify-content: center;
    transform: translateX(100px);
    opacity: 0;
    transition: all 1.5s ease-out 0.3s;
}

.foto-container.animate-in {
    transform: translateX(0);
    opacity: 1;
}

/* FOTO COM EFEITO GIRANDO - MANTIDO APENAS AQUI */
.efeitos_da_fotoPTK {
    position: relative;
    width: 300px;
    height: 300px;
    border-radius: 50%;
}

.efeitos_da_fotoPTK::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    background: conic-gradient(
        var(--glow-color),
        #0a0abe,
        #0f0070,
        var(--glow-color)
    );
    animation: rotate 4s linear infinite;
    z-index: -1;
}

.fotoPatrick {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(0, 0, 0, 0.8);
    position: relative;
    z-index: 1;
}

@keyframes rotate {
    to { transform: rotate(360deg); }
}

/* Experiência */
.experiencia-grid {
    display: grid;
    gap: 3rem;
    grid-template-columns: 1fr;
}

.experiencia-card {
    background: rgba(0, 0, 0, 0.3);
    padding: 2.5rem;
    border-radius: 15px;
    border: 1px solid rgba(156, 156, 156, 0.2);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.experiencia-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(12, 159, 250, 0.1), transparent);
    transition: left 0.8s;
}

.experiencia-card:hover::before {
    left: 100%;
}

.experiencia-card:hover {
    transform: translateY(-5px);
    border-color: var(--glow-color);
    box-shadow: 0 10px 30px rgba(12, 159, 250, 0.2);
}

.empresa-titulo {
    font-size: 1.8rem;
    color: var(--glow-color);
    margin-bottom: 1rem;
    text-decoration: none;
    display: block;
}

.empresa-titulo:hover {
    text-shadow: 0 0 10px var(--glow-color);
}

.experiencia-texto {
    font-size: 1.4rem;
    line-height: 1.6;
    color: var(--main-text-color);
}

/* Certificados */
.certificados-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.cert-card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(156, 156, 156, 0.1);
}

.cert-card:hover {
    transform: scale(1.03) rotateY(5deg);
    box-shadow: 0 15px 40px rgba(12, 159, 250, 0.3);
}

.cert-card img {
    width: 100%;
    height: auto;
    display: block;
    transition: all 0.3s ease;
}

.cert-card:hover img {
    filter: brightness(1.2);
}

/* SEÇÃO PROJETOS */
.projetos-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

.projeto-card {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    border: 1px solid rgba(156, 156, 156, 0.2);
    backdrop-filter: blur(10px);
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.projeto-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(12, 159, 250, 0.1), transparent);
    transition: left 0.8s;
}

.projeto-card:hover::before {
    left: 100%;
}

.projeto-card:hover {
    transform: translateY(-10px);
    border-color: var(--glow-color);
    box-shadow: 0 20px 40px rgba(12, 159, 250, 0.3);
}

.projeto-header {
    padding: 2rem;
    border-bottom: 1px solid rgba(156, 156, 156, 0.1);
}

.projeto-titulo {
    font-size: 2rem;
    color: var(--glow-color);
    margin-bottom: 1rem;
    text-decoration: none;
}

.projeto-titulo:hover {
    text-shadow: 0 0 15px var(--glow-color);
}

.projeto-descricao {
    color: var(--main-text-color);
    font-size: 1.4rem;
    line-height: 1.6;
}

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

.projeto-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-tag {
    background: rgba(12, 159, 250, 0.2);
    color: var(--glow-color);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 1.2rem;
    border: 1px solid rgba(12, 159, 250, 0.3);
}

.projeto-links {
    display: flex;
    gap: 1rem;
}

.projeto-link {
    background: linear-gradient(45deg, var(--glow-color), #449eff);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.projeto-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(12, 159, 250, 0.4);
}

/* SEÇÃO CONTATO */
.contato-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
}

.contato-info {
    background: rgba(0, 0, 0, 0.3);
    padding: 3rem;
    border-radius: 15px;
    border: 1px solid rgba(156, 156, 156, 0.2);
    backdrop-filter: blur(10px);
}

.contato-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1rem;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.contato-item:hover {
    background: rgba(12, 159, 250, 0.1);
    transform: translateX(10px);
}

.contato-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, var(--glow-color), #449eff);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
}

.contato-texto h4 {
    color: var(--glow-color);
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
}

.contato-texto p {
    color: var(--main-text-color);
    font-size: 1.4rem;
}

.contato-texto a {
    color: var(--main-text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contato-texto a:hover {
    color: var(--glow-color);
}

.formulario-contato {
    background: rgba(0, 0, 0, 0.3);
    padding: 3rem;
    border-radius: 15px;
    border: 1px solid rgba(156, 156, 156, 0.2);
    backdrop-filter: blur(10px);
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    color: var(--glow-color);
    margin-bottom: 0.8rem;
    font-size: 1.4rem;
    font-weight: bold;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1.2rem;
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(156, 156, 156, 0.3);
    border-radius: 10px;
    color: var(--main-text-color);
    font-size: 1.4rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--glow-color);
    box-shadow: 0 0 15px rgba(12, 159, 250, 0.3);
}

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

.btn-enviar {
    background: linear-gradient(45deg, var(--glow-color), #449eff);
    color: white;
    border: none;
    padding: 1.5rem 3rem;
    border-radius: 25px;
    font-size: 1.6rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 0 auto;
}

.btn-enviar:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(12, 159, 250, 0.4);
}

/* Utilitários */
.hidden {
    display: none !important;
}

.highlight {
    background: rgba(255, 255, 0, 0.3);
    padding: 2px 4px;
    border-radius: 3px;
}

/* No results message */
.no-results {
    text-align: center;
    font-size: 1.8rem;
    color: var(--main-text-color);
    margin: 4rem 0;
    padding: 2rem;
    background: rgba(255, 0, 0, 0.1);
    border: 1px solid rgba(255, 0, 0, 0.3);
    border-radius: 10px;
    display: none;
}

/* Animações adicionais */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); opacity: 0.7; }
    25% { transform: translateY(-20px) rotate(90deg); opacity: 1; }
    50% { transform: translateY(-40px) rotate(180deg); opacity: 0.7; }
    75% { transform: translateY(-20px) rotate(270deg); opacity: 1; }
}

.section-title:hover {
    animation: glitch 0.3s ease-in-out;
}

@keyframes glitch {
    0% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
    100% { transform: translate(0); }
}

/* Media Queries - Desktop */
@media (min-width: 768px) {
    nav {
        display: flex;
        align-items: center;
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 1rem;
        height: 100%;
        gap: 2.5rem;
    }

    .nav-menu {
        display: flex;
        list-style: none;
        padding: 0;
        margin: 0;
        align-items: center;
        flex-grow: 1;
        justify-content: space-between;
    }

    .nav-menu li {
       display: flex;
       justify-content: center;
    }

    .nav-menu a {
        padding: 1rem 2rem;
        text-align: center;
    }

    .hamburger {
        display: none;
    }

    .sobre-container {
        flex-direction: row;
        align-items: flex-start;
    }

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

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

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

    .contato-container {
        grid-template-columns: 1fr 1fr;
    }

    .efeitos_da_fotoPTK {
        width: 400px;
        height: 400px;
    }
}

@media (min-width: 1024px) {
    .certificados-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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