@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;
}

/* Seção de certificados - largura total */
.cert-section-full-width {
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

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);
}

/* Slider / abas de certificados dinâmico - MOBILE FIRST */
.cert-slider {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    justify-content: center;
    padding: 0;
    max-width: 1600px;
    margin: 0 auto;
}

.cert-nav {
    background: linear-gradient(135deg, var(--glow-color), #449eff);
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(12, 159, 250, 0.4);
    flex-shrink: 0;
    z-index: 10;
}

.cert-nav:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(12, 159, 250, 0.6);
    background: linear-gradient(135deg, #449eff, var(--glow-color));
}

.cert-viewport {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    padding: 1rem 0;
}

.cert-pages {
    display: flex;
    transition: transform 0.45s cubic-bezier(.2,.8,.2,1);
    width: 100%;
}

/* MOBILE FIRST - 1 card por página */
.cert-page {
    min-width: 100%;
    flex-shrink: 0;
    padding: 0 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cert-page .cert-card {
    background: rgba(0,0,0,0.3);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    width: 100%;
    max-width: 450px;
    min-height: 300px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(12, 159, 250, 0.2);
}

.cert-page .cert-card:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 30px rgba(12, 159, 250, 0.4);
    background: rgba(12, 159, 250, 0.15);
}

.cert-page .cert-card img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
    border-radius: 8px;
}

.cert-pagination {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.cert-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(156,156,156,0.25);
    transition: all 0.2s ease;
    cursor: pointer;
}

.cert-dot.active {
    background: var(--glow-color);
    box-shadow: 0 0 8px rgba(12,159,250,0.25);
    transform: scale(1.15);
}

/* Tablet - 2x2 grid */
@media (min-width: 768px) {
    .cert-slider {
        gap: 1.5rem;
    }

    .cert-nav {
        width: 50px;
        height: 50px;
        font-size: 2.5rem;
    }

    .cert-viewport {
        padding: 1.5rem 0;
    }

    .cert-page {
        padding: 0 1rem;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(2, auto);
        gap: 2rem;
    }

    .cert-page .cert-card {
        max-width: 100%;
        height: 280px;
        min-height: auto;
    }
}

/* Desktop - 2x2 grid otimizado */
@media (min-width: 1024px) {
    .cert-slider {
        gap: 2rem;
        padding: 0 1rem;
    }

    .cert-viewport {
        padding: 2rem 0;
    }

    .cert-page {
        padding: 0 2rem;
        gap: 2.5rem;
        max-width: 1200px;
        margin: 0 auto;
    }

    .cert-page .cert-card {
        height: 300px;
    }
}

/* Desktop Large */
@media (min-width: 1400px) {
    .cert-page {
        padding: 0 4rem;
    }
}

/* Modal Lightbox para certificados */
.cert-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cert-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.cert-modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.cert-modal-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 0 50px rgba(12, 159, 250, 0.5);
}

.cert-modal-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #fff;
    font-size: 5rem;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
    transition: all 0.3s ease;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.cert-modal-close:hover,
.cert-modal-close:focus {
    color: var(--glow-color);
    text-shadow: 0 0 20px var(--glow-color);
    transform: scale(1.2);
}

.cert-modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    border: 2px solid rgba(156, 156, 156, 0.3);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10001;
}

.cert-modal-nav:hover {
    background: rgba(12, 159, 250, 0.8);
    border-color: var(--glow-color);
    box-shadow: 0 0 20px rgba(12, 159, 250, 0.5);
    transform: translateY(-50%) scale(1.1);
}

.cert-modal-prev {
    left: 30px;
}

.cert-modal-next {
    right: 30px;
}

@media (max-width: 768px) {
    .cert-modal-close {
        top: 10px;
        right: 15px;
        font-size: 4rem;
    }

    .cert-modal-nav {
        width: 50px;
        height: 50px;
        font-size: 2.5rem;
    }

    .cert-modal-prev {
        left: 10px;
    }

    .cert-modal-next {
        right: 10px;
    }

    .cert-modal-content {
        max-width: 95%;
        max-height: 85%;
    }
}

/* CHATKIT - Widget de Chat Flutuante */
#chatkit-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 9999;
}

.chatkit-float-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--glow-color), #449eff);
    border: none;
    color: white;
    font-size: 2.4rem;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(12, 159, 250, 0.4);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse-chat 2s infinite;
}

.chatkit-float-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(12, 159, 250, 0.6);
}

.chatkit-float-btn.hidden {
    display: none;
}

@keyframes pulse-chat {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(12, 159, 250, 0.4);
    }
    50% {
        box-shadow: 0 4px 30px rgba(12, 159, 250, 0.7);
    }
}

.chatkit-widget-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 400px;
    max-width: calc(100vw - 4rem);
    height: 600px;
    max-height: calc(100vh - 4rem);
    background: rgba(0, 0, 0, 0.95);
    border: 1px solid rgba(156, 156, 156, 0.2);
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.chatkit-widget-container.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

.chatkit-header {
    background: linear-gradient(135deg, var(--glow-color), #449eff);
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 15px 15px 0 0;
}

.chatkit-header h3 {
    color: white;
    font-size: 1.6rem;
    margin: 0;
    font-weight: 600;
}

.chatkit-header button {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.chatkit-header button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.chatkit-chat-area {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: rgba(0, 0, 0, 0.3);
}

.chatkit-chat-area::-webkit-scrollbar {
    width: 6px;
}

.chatkit-chat-area::-webkit-scrollbar-track {
    background: rgba(156, 156, 156, 0.1);
}

.chatkit-chat-area::-webkit-scrollbar-thumb {
    background: var(--glow-color);
    border-radius: 3px;
}

/* Responsividade do chat */
@media (max-width: 480px) {
    .chatkit-widget-container {
        width: calc(100vw - 2rem);
        height: calc(100vh - 2rem);
        bottom: 1rem;
        right: 1rem;
    }

    #chatkit-container {
        bottom: 1rem;
        right: 1rem;
    }

    .chatkit-float-btn {
        width: 55px;
        height: 55px;
        font-size: 2.2rem;
    }
}

/* SEÇÃO PROJETOS - MOBILE FIRST */
.projeto-slider-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin: 0 auto;
    max-width: 1100px;
    padding: 0 0.5rem;
}

.projeto-viewport {
    overflow: hidden;
    flex: 1;
}

.projeto-pages {
    display: flex;
    transition: transform 0.4s ease-in-out;
}

/* MOBILE FIRST - 1 card por página */
.projeto-page {
    min-width: 100%;
    display: flex;
    align-items: stretch;
    justify-content: center;
    padding: 0.5rem;
}

.projeto-arrow {
    background: rgba(12, 159, 250, 0.2);
    border: 2px solid var(--glow-color);
    color: var(--glow-color);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1.8rem;
    flex-shrink: 0;
}

.projeto-arrow:hover {
    background: var(--glow-color);
    color: white;
    transform: scale(1.1);
}

.projeto-pagination {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.projeto-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(12, 159, 250, 0.3);
    cursor: pointer;
    transition: all 0.3s;
}

.projeto-dot:hover {
    background: rgba(12, 159, 250, 0.6);
}

.projeto-dot.active {
    background: var(--glow-color);
    box-shadow: 0 0 8px var(--glow-color);
    transform: scale(1.2);
}

.projeto-card {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(156, 156, 156, 0.2);
    border-radius: 15px;
    padding: 2rem;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
    max-width: 450px;
}

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

.projeto-header {
    flex: 1;
}

.projeto-titulo {
    font-size: 1.8rem;
    color: var(--glow-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    line-height: 1.3;
}

.projeto-descricao {
    color: var(--main-text-color);
    font-size: 1.4rem;
    line-height: 1.6;
    /* Mobile: mostrar mais texto */
    display: block;
}

.projeto-footer {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

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

.tech-tag {
    background: rgba(12, 159, 250, 0.15);
    color: var(--glow-color);
    padding: 0.4rem 0.9rem;
    border-radius: 12px;
    font-size: 1.1rem;
    border: 1px solid rgba(12, 159, 250, 0.3);
}

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

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

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

.projeto-link-site {
    background: linear-gradient(45deg, #10b981, #059669);
}

.projeto-link-site:hover {
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

/* Tablet - 2x2 grid */
@media (min-width: 768px) {
    .projeto-slider-container {
        gap: 1.5rem;
        padding: 0 1rem;
    }

    .projeto-arrow {
        width: 50px;
        height: 50px;
        font-size: 2rem;
    }

    .projeto-page {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(2, auto);
        gap: 2rem;
        padding: 1rem;
    }

    .projeto-card {
        max-width: 100%;
        padding: 1.8rem;
        gap: 1.2rem;
    }

    .projeto-titulo {
        font-size: 1.6rem;
    }

    .projeto-descricao {
        font-size: 1.2rem;
        /* Tablet: limitar linhas */
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .tech-tag {
        font-size: 1rem;
        padding: 0.3rem 0.8rem;
    }

    .projeto-link {
        font-size: 1.1rem;
        padding: 0.6rem 1.2rem;
    }
}

/* Desktop */
@media (min-width: 1024px) {
    .projeto-slider-container {
        gap: 2rem;
    }

    .projeto-page {
        gap: 2.5rem;
        padding: 1.5rem;
    }

    .projeto-card {
        padding: 2rem;
    }

    .projeto-titulo {
        font-size: 1.7rem;
    }

    .projeto-descricao {
        /* Desktop: limitar mais */
        -webkit-line-clamp: 2;
    }
}

/* 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); }
}

/* ChatKit - Botão flutuante e widget */
#chatkit-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
}

.chatkit-float-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--glow-color), #449eff);
    border: none;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(12, 159, 250, 0.5);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s infinite;
}

.chatkit-float-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(12, 159, 250, 0.7);
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(12, 159, 250, 0.5);
    }
    50% {
        box-shadow: 0 4px 30px rgba(12, 159, 250, 0.8);
    }
}

.chatkit-widget-container {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 400px;
    height: 600px;
    background: rgba(0, 0, 0, 0.95);
    border: 2px solid var(--glow-color);
    border-radius: 20px;
    box-shadow: 0 10px 50px rgba(12, 159, 250, 0.3);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: none;
    flex-direction: column;
    overflow: hidden;
    animation: slideIn 0.3s ease-out;
}

.chatkit-widget-container.active {
    display: flex;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.chatkit-header {
    background: linear-gradient(135deg, rgba(12, 159, 250, 0.2), rgba(68, 158, 255, 0.1));
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(12, 159, 250, 0.3);
}

.chatkit-header h3 {
    color: var(--glow-color);
    font-size: 1.8rem;
    margin: 0;
    text-shadow: 0 0 10px rgba(12, 159, 250, 0.5);
}

.chatkit-header button {
    background: transparent;
    border: none;
    color: var(--main-text-color);
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0.5rem;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chatkit-header button:hover {
    color: var(--glow-color);
    background: rgba(12, 159, 250, 0.1);
    transform: rotate(90deg);
}

.chatkit-chat-area {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
}

/* Customização do ChatKit widget interno */
#chatkit-chat-area open-ai-chatkit {
    width: 100% !important;
    height: 100% !important;
    background: transparent !important;
}

/* Ajustes para o componente interno do ChatKit */
#chatkit-chat-area {
    position: relative;
}

#chatkit-chat-area::part(container) {
    background: transparent !important;
    border: none !important;
}

/* Scrollbar customizada para o chat */
.chatkit-chat-area::-webkit-scrollbar {
    width: 8px;
}

.chatkit-chat-area::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
}

.chatkit-chat-area::-webkit-scrollbar-thumb {
    background: var(--glow-color);
    border-radius: 10px;
}

.chatkit-chat-area::-webkit-scrollbar-thumb:hover {
    background: #449eff;
}

/* Responsivo - Mobile */
@media (max-width: 768px) {
    #chatkit-container {
        bottom: 20px;
        right: 20px;
    }

    .chatkit-float-btn {
        width: 55px;
        height: 55px;
        font-size: 2.2rem;
    }

    .chatkit-widget-container {
        width: calc(100vw - 40px);
        height: calc(100vh - 140px);
        right: 20px;
        bottom: 85px;
    }

    .chatkit-header h3 {
        font-size: 1.6rem;
    }
}

@media (max-width: 480px) {
    .chatkit-widget-container {
        width: calc(100vw - 20px);
        height: calc(100vh - 120px);
        right: 10px;
        bottom: 75px;
    }

    .chatkit-header {
        padding: 1.2rem;
    }

    .chatkit-header h3 {
        font-size: 1.4rem;
    }
}

/* Estilos do input e mensagens do chat */
.chatkit-input-area {
    padding: 1.5rem;
    border-top: 1px solid rgba(12, 159, 250, 0.3);
    background: rgba(0, 0, 0, 0.5);
}

.chatkit-form {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.chatkit-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(12, 159, 250, 0.3);
    border-radius: 25px;
    padding: 1.2rem 2rem;
    color: var(--main-text-color);
    font-size: 1.5rem;
    font-family: "Open Sans", sans-serif;
    transition: all 0.3s ease;
    outline: none;
}

.chatkit-input:focus {
    border-color: var(--glow-color);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 15px rgba(12, 159, 250, 0.2);
}

.chatkit-input::placeholder {
    color: rgba(156, 156, 156, 0.6);
}

.chatkit-send-btn {
    background: linear-gradient(135deg, var(--glow-color), #449eff);
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    min-width: 45px;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(12, 159, 250, 0.4);
}

.chatkit-send-btn:hover {
    transform: scale(1.1) rotate(15deg);
    box-shadow: 0 6px 20px rgba(12, 159, 250, 0.6);
}

.chatkit-send-btn:active {
    transform: scale(0.95);
}

/* Mensagens do chat */
.chatkit-message {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    animation: messageSlideIn 0.3s ease-out;
}

@keyframes messageSlideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chatkit-message-user {
    flex-direction: row-reverse;
}

.chatkit-avatar {
    width: 35px;
    height: 35px;
    min-width: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    background: linear-gradient(135deg, var(--glow-color), #449eff);
    color: white;
    box-shadow: 0 2px 10px rgba(12, 159, 250, 0.3);
}

.chatkit-message-user .chatkit-avatar {
    background: linear-gradient(135deg, #9c9c9c, #666);
}

.chatkit-bubble {
    max-width: 75%;
    padding: 1.2rem 1.6rem;
    border-radius: 18px;
    font-size: 1.4rem;
    line-height: 1.6;
    word-wrap: break-word;
    background: rgba(12, 159, 250, 0.15);
    border: 1px solid rgba(12, 159, 250, 0.3);
    color: var(--main-text-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.chatkit-message-user .chatkit-bubble {
    background: linear-gradient(135deg, rgba(12, 159, 250, 0.3), rgba(68, 158, 255, 0.2));
    border: 1px solid rgba(12, 159, 250, 0.4);
    color: white;
}

/* Indicador de digitando */
.chatkit-typing-indicator {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1.5rem;
    animation: messageSlideIn 0.3s ease-out;
}

.chatkit-typing-dots {
    display: flex;
    gap: 0.5rem;
    padding: 1.2rem 1.6rem;
    background: rgba(12, 159, 250, 0.15);
    border: 1px solid rgba(12, 159, 250, 0.3);
    border-radius: 18px;
}

.chatkit-typing-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--glow-color);
    animation: typing 1.4s infinite;
    box-shadow: 0 0 5px var(--glow-color);
}

.chatkit-typing-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.chatkit-typing-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.7;
    }
    30% {
        transform: translateY(-10px);
        opacity: 1;
    }
}

/* Responsivo para input do chat */
@media (max-width: 480px) {
    .chatkit-input-area {
        padding: 1rem;
    }

    .chatkit-input {
        padding: 1rem 1.5rem;
        font-size: 1.4rem;
    }

    .chatkit-send-btn {
        width: 40px;
        height: 40px;
        min-width: 40px;
        font-size: 1.6rem;
    }

    .chatkit-bubble {
        max-width: 85%;
        font-size: 1.3rem;
        padding: 1rem 1.3rem;
    }

    .chatkit-avatar {
        width: 30px;
        height: 30px;
        min-width: 30px;
        font-size: 1.4rem;
    }
}

/* 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));
    }

    .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);
    }
}