   /* ==============================================
        |                VARIÁVEIS CSS               |
        ==============================================
        */
        :root {
            --primary-color: #007BFF; /* Azul Padrão */
            --secondary-color: #00BFFF; /* Azul DeepSkyBlue */
            --background-color: #121212; /* Quase preto */
            --surface-color: #1E1E1E; /* Cinza escuro para cards */
            --text-color: #E0E0E0; /* Cinza claro para texto */
            --header-height: 70px;
        }

        /* ==============================================
        |                RESET BÁSICO E GERAL        |
        ==============================================
        */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        html {
            scroll-behavior: smooth;
        }

        body {
            font-family: 'Poppins', sans-serif;
            background-color: var(--background-color);
            color: var(--text-color);
            line-height: 1.7;
        }

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

        img {
            max-width: 100%;
            height: auto;
            display: block;
        }

        section {
            padding: 6rem 0;
        }

        h2 {
            text-align: center;
            font-size: 2.8rem;
            margin-bottom: 3rem;
            color: white;
            font-weight: 600;
        }
        
        h3 {
             color: var(--primary-color);
             font-size: 1.5rem;
             margin-bottom: 1rem;
        }

        /* ==============================================
        |                HEADER E NAVEGAÇÃO          |
        ==============================================
        */
        .header {
            background-color: rgba(18, 18, 18, 0.85);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            width: 100%;
            position: fixed;
            top: 0;
            left: 0;
            z-index: 1000;
            transition: background-color 0.3s ease;
        }

        .navbar {
            display: flex;
            justify-content: center; /* Alinha o menu ao centro */
            align-items: center;
            height: var(--header-height);
            padding: 0 2rem;
        }

        .nav-menu {
            display: flex;
            list-style: none;
            gap: 1.5rem; /* Espaçamento reduzido para mais itens */
        }

        .nav-link {
            text-decoration: none;
            color: var(--text-color);
            font-weight: 400;
            position: relative;
            transition: color 0.3s ease;
            font-size: 0.95rem;
        }

        .nav-link::after {
            content: '';
            position: absolute;
            width: 0;
            height: 2px;
            bottom: -5px;
            left: 50%;
            transform: translateX(-50%);
            background-color: var(--secondary-color);
            transition: width 0.4s ease;
        }

        .nav-link:hover {
            color: var(--secondary-color);
        }

        .nav-link:hover::after {
            width: 100%;
        }

        .hamburger {
            display: none;
            cursor: pointer;
            position: absolute; /* Para não empurrar o menu */
            right: 2rem;
            z-index: 1002;
        }

        .bar {
            display: block;
            width: 25px;
            height: 3px;
            margin: 5px auto;
            background-color: var(--text-color);
            transition: all 0.3s ease-in-out;
        }

        /* ==============================================
        |                SEÇÃO HERO                  |
        ==============================================
        */
        .hero {
            height: 100vh;
            display: flex;
            justify-content: center;
            align-items: center;
            text-align: center;
            position: relative;
            background-color: var(--background-color); /* Fallback */
            overflow: hidden;
        }
        
        #constellation-canvas {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 1; /* Fica atrás do texto */
        }

        .hero-text {
            position: relative;
            z-index: 2; /* Garante que o texto fique na frente */
            padding: 1rem;
        }

        .hero-text h1 {
            font-size: clamp(2.5rem, 5vw, 4rem);
            margin-bottom: 1rem;
            color: white;
            font-weight: 700;
        }
        
        .highlight-name {
            color: var(--secondary-color);
        }

        .typing-effect {
            display: inline-block;
            border-right: 3px solid var(--secondary-color);
            white-space: nowrap;
            overflow: hidden;
            animation: typing 3.5s steps(30, end), blink-caret .75s step-end infinite;
        }

        @keyframes typing {
            from { width: 0 }
            to { width: 100% }
        }

        @keyframes blink-caret {
            from, to { border-color: transparent }
            50% { border-color: var(--secondary-color); }
        }

        .hero-text p {
            font-size: 1.3rem;
            margin-bottom: 2.5rem;
            font-weight: 300;
        }

        .hero-buttons {
            display: flex;
            justify-content: center;
            gap: 1rem;
            flex-wrap: wrap;
        }

        .btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 0.75rem;
            padding: 12px 28px;
            background: var(--primary-color);
            color: white;
            text-decoration: none;
            border-radius: 50px;
            font-weight: 600;
            border: 2px solid var(--primary-color);
            transition: all 0.3s ease;
            box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
        }
        
        .btn svg {
            width: 20px;
            height: 20px;
            fill: currentColor;
        }

        .btn:hover {
            background-color: var(--secondary-color);
            border-color: var(--secondary-color);
            transform: translateY(-3px);
            box-shadow: 0 6px 20px rgba(0, 191, 255,  0.4);
        }
        
        .btn-outline {
            background: transparent;
            color: var(--secondary-color);
            border-color: var(--secondary-color);
        }
        
        .btn-outline:hover {
            background: var(--secondary-color);
            color: var(--background-color);
        }
        
        /* ==============================================
        |                SEÇÃO SOBRE                 |
        ==============================================
        */
        .about-content {
            display: grid;
            grid-template-columns: 1fr 2fr;
            align-items: center;
            gap: 4rem;
        }

        .about-image img {
            border-radius: 50%; /* Deixa a imagem redonda */
            width: 350px; /* Define uma largura fixa */
            height: 350px; /* Define uma altura fixa */
            object-fit: cover; /* Garante que a imagem cubra o espaço sem distorcer */
            box-shadow: 0 0 40px rgba(0, 123, 255, 0.3);
        }
        
        .about-text p {
            margin-bottom: 1rem;
        }

        /* ==============================================
        |         SEÇÕES DE CARD (EXPERIÊNCIA, ETC)      |
        ==============================================
        */
        .card-grid {
            display: grid;
            grid-template-columns: 1fr;
            gap: 2.5rem;
        }
        
        .card {
            background-color: var(--surface-color);
            border-radius: 15px;
            padding: 2rem;
            border-left: 5px solid var(--primary-color);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }
        
        .card:hover {
            transform: translateY(-5px);
            box-shadow: 0 0 25px rgba(0, 123, 255, 0.15);
        }
        
        .card-title {
            font-size: 1.4rem;
            font-weight: 600;
            color: white;
        }
        
        .card-subtitle {
            font-size: 1rem;
            font-weight: 400;
            color: var(--secondary-color);
            margin-bottom: 1rem;
        }
        
        .card-content ul {
            list-style-position: inside;
            padding-left: 1rem;
        }
        
        .card-content li {
            margin-bottom: 0.5rem;
        }
        
        .tag-list {
            display: flex;
            flex-wrap: wrap;
            gap: 0.5rem;
            margin-top: 1rem;
        }
        
        .tag {
            background-color: var(--primary-color);
            color: white;
            padding: 0.3rem 0.8rem;
            border-radius: 20px;
            font-size: 0.8rem;
            font-weight: 500;
        }
        
        #experience {
             background-color: var(--surface-color);
        }
        
        #projects {
            background-color: var(--background-color);
        }
        
        #education {
             background-color: var(--surface-color);
        }
        
        /* ==============================================
        |                SEÇÃO DIFERENCIAIS          |
        ==============================================
        */
        .diferenciais-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 2rem;
            text-align: center;
        }
        
        .diferencial-card {
            background-color: var(--surface-color);
            padding: 2rem;
            border-radius: 15px;
        }
        
        .diferencial-card svg {
            width: 50px;
            height: 50px;
            color: var(--primary-color);
            margin-bottom: 1rem;
        }
        
        .diferencial-card h4 {
            font-size: 1.2rem;
            color: white;
            margin-bottom: 0.5rem;
        }

        /* ==============================================
        |                SEÇÃO HABILIDADES           |
        ==============================================
        */
        .skills-section h3 {
            text-align: center;
            font-size: 1.8rem;
            margin-bottom: 2rem;
            color: var(--secondary-color);
        }
        
        .skills-grid {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 1.5rem;
            margin-bottom: 3rem; /* Espaço entre as seções de skills */
        }

        .skill-item {
            background-color: rgba(255, 255, 255, 0.05);
            padding: 0.8rem 1.6rem;
            border-radius: 8px; /* Cantos suavemente arredondados */
            font-size: 1rem;
            font-weight: 500;
            border: 1px solid rgba(0, 123, 255, 0.3);
            color: var(--text-color);
            transition: transform 0.3s ease, background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
        }

        .skill-item:hover {
            transform: translateY(-5px);
            background-color: var(--primary-color);
            color: white;
            border-color: var(--secondary-color);
            box-shadow: 0 5px 20px rgba(0, 123, 255, 0.4);
        }

        /* ==============================================
        |                SEÇÃO CONTATO               |
        ==============================================
        */
.contact {
            background-color: var(--surface-color);
            text-align: center;
        }

        .contact p {
            max-width: 600px;
            margin: 0 auto 1.5rem;
            font-size: 1.1rem;
        }

        .contact-email {
            font-size: 1.1rem;
            font-weight: 500;
            color: var(--secondary-color);
            margin-bottom: 2.5rem;
            word-break: break-all;
        }

        /* ==============================================
        |                FOOTER                      |
        ==============================================
        */
        .footer {
            text-align: center;
            padding: 2.5rem 0;
            font-size: 0.9rem;
        }
        
        /* ==============================================
        |       ASSISTENTE VIRTUAL (CHATBOT)           |
        ==============================================
        */
        .chat-fab {
            position: fixed;
            bottom: 2rem;
            right: 2rem;
            width: 60px;
            height: 60px;
            background-color: var(--primary-color);
            border-radius: 50%;
            display: flex;
            justify-content: center;
            align-items: center;
            cursor: pointer;
            box-shadow: 0 4px 15px rgba(0, 123, 255, 0.4);
            z-index: 1001;
            transition: transform 0.3s ease;
        }
        .chat-fab:hover {
            transform: scale(1.1);
        }
        .chat-fab svg {
            width: 32px;
            height: 32px;
            color: white;
        }
        
        .chat-window {
            position: fixed;
            bottom: 6rem;
            right: 2rem;
            width: 90%;
            max-width: 400px;
            height: 500px;
            background-color: var(--surface-color);
            border-radius: 15px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.3);
            display: flex;
            flex-direction: column;
            overflow: hidden;
            z-index: 1000;
            transform: scale(0);
            transform-origin: bottom right;
            transition: transform 0.3s ease;
        }
        .chat-window.open {
            transform: scale(1);
        }
        
        .chat-header {
            background-color: var(--primary-color);
            color: white;
            padding: 1rem;
            font-weight: 600;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        .chat-header .close-btn {
            background: none;
            border: none;
            color: white;
            font-size: 1.5rem;
            cursor: pointer;
        }
        
        .chat-messages {
            flex-grow: 1;
            padding: 1rem;
            overflow-y: auto;
            display: flex;
            flex-direction: column;
            gap: 0.75rem;
        }
        
        .message {
            padding: 0.75rem 1rem;
            border-radius: 10px;
            max-width: 80%;
            line-height: 1.4;
        }
        
        .message.user {
            background-color: var(--primary-color);
            color: white;
            align-self: flex-end;
            border-bottom-right-radius: 0;
        }
        
        .message.bot {
            background-color: #333;
            color: var(--text-color);
            align-self: flex-start;
            border-bottom-left-radius: 0;
        }
        
        .message.bot.loading span {
            display: inline-block;
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background-color: var(--secondary-color);
            animation: bounce 1s infinite;
        }
        .message.bot.loading span:nth-child(2) { animation-delay: 0.1s; }
        .message.bot.loading span:nth-child(3) { animation-delay: 0.2s; }
        
        @keyframes bounce {
            0%, 80%, 100% { transform: scale(0); }
            40% { transform: scale(1); }
        }
        
        .chat-input-area {
            display: flex;
            padding: 0.5rem;
            border-top: 1px solid #333;
        }
        
        .chat-input-area input {
            flex-grow: 1;
            background: none;
            border: none;
            outline: none;
            color: var(--text-color);
            font-family: 'Poppins', sans-serif;
            padding: 0.5rem;
        }
        
        .chat-input-area button {
            background: none;
            border: none;
            color: var(--primary-color);
            cursor: pointer;
            padding: 0.5rem;
        }
        .chat-input-area button:hover {
            color: var(--secondary-color);
        }
        .chat-input-area button svg {
            width: 24px;
            height: 24px;
        }

        /* ==============================================
        |                RESPONSIVIDADE              |
        ==============================================
        */
        @media(max-width: 992px) {
            .about-content {
                grid-template-columns: 1fr;
                text-align: center;
            }
            .about-image {
                margin: 0 auto 2rem;
                width: 280px;
                height: 280px;
                aspect-ratio: 1 / 1;
            }
        }
        
        @media(max-width: 768px) {
            section {
                padding: 4rem 1rem;
            }
            h2 {
                font-size: 2.2rem;
            }
            .hero-text h1 {
                font-size: clamp(2rem, 8vw, 2.5rem);
            }
            .hero-text p {
                font-size: 1.1rem;
            }
            
            .navbar {
                justify-content: flex-end;
            }

            .hamburger {
                display: block;
            }

            .hamburger.active .bar:nth-child(2) { opacity: 0; }
            .hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
            .hamburger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
            .hamburger.active + .nav-menu {
                left: 0;
            }

            .nav-menu {
                position: fixed;
                left: -100%;
                top: 0;
                flex-direction: column;
                justify-content: center;
                background-color: rgba(18, 18, 18, 0.95);
                backdrop-filter: blur(10px);
                width: 100%;
                height: 100vh;
                text-align: center;
                transition: 0.3s ease-in-out;
                gap: 2rem;
            }
            
            .nav-link {
                font-size: 1.5rem;
            }

            .hero-buttons {
                flex-direction: column;
                align-items: center;
                gap: 1.2rem;
            }
            
            .btn {
                width: 100%;
                max-width: 320px;
                padding: 14px 20px;
            }
            
            .chat-window {
                bottom: 1rem;
                right: 1rem;
                width: calc(100% - 2rem);
            }
            
            .about-image img {
                width: 250px;
                height: 250px;
            }
            
            .card {
                padding: 1.5rem;
            }
        }
        
        @media(max-width: 380px) {
            .typing-effect {
                white-space: normal; /* Permite quebra de linha */
                border-right: none; /* Remove o cursor piscando */
                animation: none; /* Remove a animação de digitação */
            }
            .hero-text h1 {
                animation: none;
                border-right: none;
            }
        }