/* Reset e Variáveis */
:root {
    --roxo: #8a2be2;
    --roxo-escuro: #6a1cb0;
    --fundo: #121212;
    --texto: #f0f0f0;
    --card: #1e1e1e;
    
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Poppins', sans-serif;
    background: var(--fundo);
    color: var(--texto);
    line-height: 1.6;
    padding-top: 80px;
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(30, 30, 30, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 1px solid var(--roxo);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--roxo);
    object-fit: cover;
}

nav {
    display: flex;
    gap: 20px;
}

nav a {
    color: var(--texto);
    text-decoration: none;
    transition: 0.3s;
}

nav a:hover {
    color: var(--roxo);
}

/* Seções */
section {
    padding: 5rem 0;
}

h1, h2 {
    font-weight: 700;
    margin-bottom: 1.5rem;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    color: #fff;
}

#vanta-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 1200px;
    padding: 0 20px;
    text-align: left;
}

.hero h1 {
    font-size: clamp(3rem, 7vw, 5rem);
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 1.5rem;
    text-align: left;
    max-width: 700px;
    line-height: 1.1;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Botão */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, var(--roxo) 0%, var(--roxo-escuro) 100%);
    color: white;
    padding: 1.3rem 2.8rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.4s ease;
    border: 2px solid transparent;
    font-size: 1.2rem;
    box-shadow: 0 8px 25px rgba(138, 43, 226, 0.3);
}

.pulse {
    animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 8px 25px rgba(138, 43, 226, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 12px 35px rgba(138, 43, 226, 0.5);
    }
}

.btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(138, 43, 226, 0.6);
}

/* Sobre Mim */
.about {
    background: rgba(30, 30, 30, 0.5);
    padding: 5rem 0;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.about.visible {
    opacity: 1;
    transform: translateY(0);
}

.about h2 {
    font-size: 2.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--roxo); /* Título em roxo */
}

.about h2 i {
    color: var(--roxo);
}

.bio p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.7;
}

blockquote {
    font-style: italic;
    border-left: 3px solid var(--roxo);
    padding-left: 1.5rem;
    margin: 2.5rem 0;
    color: #ccc;
    font-size: 1.3rem;
    line-height: 1.6;
}

/* Skills */
.skills-marquee {
    width: 100%;
    overflow: hidden;
    position: relative;
    background: var(--card);
    padding: 1.5rem 0;
    border-radius: 12px;
    border: 1px solid #333;
    margin-top: 3rem;
}

.skills-track {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    width: max-content;
    animation: scrollSkills 25s linear infinite;
}

.skill-tag {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(82, 80, 85, 0.1);
    color: var(--texto);
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(138, 43, 226, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.skill-tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(138, 43, 226, 0.2), transparent);
    transition: left 0.5s ease;
}

.skill-tag:hover::before {
    left: 100%;
}

.skill-tag:hover {
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.15), rgba(148, 0, 211, 0.1));
    border-color: rgba(138, 43, 226, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(138, 43, 226, 0.2);
}

.skill-tag img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.skill-tag:hover img {
    transform: scale(1.1);
}

@keyframes scrollSkills {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - 0.75rem)); }
}

/* Projetos */
.projects h2,
.instagram-projects h2 {
    font-size: 2.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.projects h2 i,
.instagram-projects h2 i {
    color: var(--roxo);
}

.projects-carousel-container {
    position: relative;
    width: 100%;
    margin-top: 2rem;
    overflow: hidden;
    padding: 0 60px;
}

.projects-carousel-track {
    display: flex;
    gap: 1.5rem;
    animation: scrollCarousel 35s linear infinite;
}

.projects-carousel-track.paused {
    animation-play-state: paused;
}

@keyframes scrollCarousel {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-280px * 4 - 1.5rem * 4)); }
}

.projects-carousel-container::before,
.projects-carousel-container::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 80px;
    z-index: 2;
    pointer-events: none;
}

.projects-carousel-container::before {
    left: 0;
    background: linear-gradient(90deg, var(--fundo) 20%, transparent 100%);
}

.projects-carousel-container::after {
    right: 0;
    background: linear-gradient(270deg, var(--fundo) 20%, transparent 100%);
}

.project-card {
    background: var(--card);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #333;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 380px;
    width: 280px;
    flex-shrink: 0;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(138, 43, 226, 0.25);
    border-color: var(--roxo);
}

.project-image {
    height: 160px;
    background: #2a2a2a;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-info {
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
}

.project-info h3 {
    margin-bottom: 0.5rem;
    color: var(--roxo);
    font-size: 1.1rem;
}

.project-info p {
    color: #ccc;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    line-height: 1.4;
}

.tags-marquee {
    width: 100%;
    overflow: hidden;
    position: relative;
    margin: 0.8rem 0;
}

.tags-track {
    display: flex;
    align-items: center;
    gap: 8px;
    animation: scrollTags 20s linear infinite;
    width: max-content;
}

.tag {
    display: flex;
    align-items: center;
    gap: 5px;
    background: rgba(218, 217, 217, 0.15);
    color: var(--texto);
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 0.75rem;
    white-space: nowrap;
    border: 1px solid rgba(138, 43, 226, 0.3);
}

.tag img {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

@keyframes scrollTags {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.links {
    display: flex;
    gap: 12px;
    margin-top: 0.8rem;
}

.links a {
    color: white;
    text-decoration: none;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border-radius: 6px;
    background: rgba(138, 43, 226, 0.1);
}

.links a:hover {
    color: var(--roxo);
    background: rgba(138, 43, 226, 0.2);
}

/* Instagram Projects */
.instagram-projects {
    background: #121212;
    padding: 6rem 0;
}

.instagram-projects h2 i {
    color: #E1306C;
}

.instagram-carousel .instagram-track {
    animation: scrollInstagramReverse 40s linear infinite;
}

@keyframes scrollInstagramReverse {
    0% { transform: translateX(calc(-280px * 4 - 1.5rem * 4)); }
    100% { transform: translateX(0); }
}

/* Contato */
.contact {
    padding: 5rem 2rem;
    background: linear-gradient(135deg, rgba(30, 30, 30, 0.8) 0%, rgba(30, 30, 30, 0.6) 100%);
    border-radius: 20px;
    margin: 3rem auto;
    max-width: 1200px;
    border: 1px solid rgba(138, 43, 226, 0.2);
    backdrop-filter: blur(15px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.contact .container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 3rem;
    text-align: left;
}

.contact h2 {
    font-size: 3rem;
    color: var(--roxo);
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(138, 43, 226, 0.3);
    background: linear-gradient(135deg, var(--roxo) 0%, #9b59b6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: right;
    flex: 1;
    order: 2; /* Coloca o h2 na direita */
}

.contact-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: flex-start;
    order: 1; /* Coloca o conteúdo na esquerda */
}

.contact-text {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--texto);
    margin-bottom: 0;
}

.whatsapp-btn {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    transition: all 0.3s ease;
    border: none;
    border-radius: 50px;
    padding: 1rem 2rem;
    color: white;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.whatsapp-btn:hover {
    background: linear-gradient(135deg, #128C7E 0%, #25D366 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

/* Responsivo */
@media (max-width: 768px) {
    .contact .container {
        flex-direction: column;
        text-align: center;
    }
    
    .contact h2 {
        text-align: center;
        order: 1;
    }
    
    .contact-content {
        order: 2;
        align-items: center;
    }
    
    .contact-text {
        text-align: center;
    }
}
.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 2rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--card);
    border-radius: 50%;
    color: var(--texto);
    font-size: 1.5rem;
    transition: all 0.3s ease;
    text-decoration: none; /* Remove o sublinhado */
}

.social-links a:hover {
    color: var(--roxo);
    transform: translateY(-3px);
    text-decoration: none; /* Garante que não aparece sublinhado no hover */
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 2rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--card);
    border-radius: 50%;
    color: var(--texto);
    font-size: 1.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.github-link {
    color: #333; 
}

.github-link:hover {
    color: #4078c0; 
    transform: translateY(-3px);
}

.linkedin-link {
    color: #0077b5; 
}

.linkedin-link:hover {
    color: #004471; 
    transform: translateY(-3px);
}

.social-links a:hover {
    transform: translateY(-3px);
}

/* Rodapé */
footer {
    background-color: #1f1f1f;
    color: #fff;
    padding: 2rem 0;
    text-align: center;
}

/* Responsividade */
@media (max-width: 768px) {
    .projects-carousel-container {
        padding: 0 40px;
    }
    
    .project-card {
        width: 260px;
    }
}

@media (max-width: 480px) {
    .projects-carousel-container {
        padding: 0 30px;
    }
    
    .project-card {
        width: 240px;
    }
}

/* Tags dos Projetos Principais - Movimento padrão (esquerda) */
.tags-track {
    display: flex;
    align-items: center;
    gap: 8px;
    animation: scrollTags 20s linear infinite;
    width: max-content;
}

@keyframes scrollTags {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Tags dos Projetos Instagram - Movimento invertido (direita) */
.instagram-tags-track {
    display: flex;
    align-items: center;
    gap: 8px;
    animation: scrollTagsReverse 15s linear infinite;
    width: max-content;
}

@keyframes scrollTagsReverse {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

/* =============================== */
/* 🎯 BOTÃO FLUTUANTE IA - COM ÍCONE */
/* =============================== */

.ia-floating-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--roxo), #6a11cb);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 9999;
    box-shadow: 
        0 8px 32px rgba(138, 43, 226, 0.3),
        0 2px 8px rgba(255, 255, 255, 0.1) inset;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    overflow: hidden;
}

.ia-floating-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ia-floating-button:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 
        0 15px 40px rgba(138, 43, 226, 0.5),
        0 5px 15px rgba(255, 255, 255, 0.2) inset;
}

.ia-floating-button:hover::before {
    opacity: 1;
}

.ia-floating-button:active {
    transform: scale(0.95);
    transition: all 0.1s ease;
}

.ia-floating-icon {
    font-size: 1.8rem;
    color: white;
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.ia-floating-button:hover .ia-floating-icon {
    transform: scale(1.2);
    animation: iconBounce 0.6s ease;
}

@keyframes iconBounce {
    0%, 100% {
        transform: scale(1.2);
    }
    50% {
        transform: scale(1.4);
    }
}

.ia-floating-tooltip {
    position: absolute;
    right: 85px;
    top: 50%;
    transform: translateY(-50%) translateX(10px);
    background: linear-gradient(135deg, rgba(30, 30, 30, 0.95), rgba(20, 20, 20, 0.98));
    backdrop-filter: blur(20px);
    color: white;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    border: 1px solid var(--borda);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.ia-floating-tooltip::before {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid var(--borda);
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
}

.ia-floating-tooltip::after {
    content: '';
    position: absolute;
    right: -5px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid rgba(30, 30, 30, 0.95);
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
}

.ia-floating-button:hover .ia-floating-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
}

.ia-floating-pulse {
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    background: var(--roxo);
    animation: pulse-ring 2s ease-in-out infinite;
    z-index: -1;
    opacity: 0.4;
}

@keyframes pulse-ring {
    0% {
        transform: scale(0.95);
        opacity: 0.4;
    }
    100% {
        transform: scale(1.3);
        opacity: 0;
    }
}

/* =============================== */
/* 🎯 MODAL DE CONFIRMAÇÃO */
/* =============================== */

.ia-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 20px;
}

.ia-modal.active {
    display: flex;
    opacity: 1;
}

.ia-modal-content {
    background: rgba(30, 30, 30, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid var(--borda);
    border-radius: 20px;
    max-width: 420px;
    width: 100%;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.ia-modal.active .ia-modal-content {
    transform: scale(1);
}

.ia-modal-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 1.5rem 1.5rem 1rem;
    border-bottom: 1px solid var(--borda);
}

.ia-modal-header i {
    font-size: 1.8rem;
    background: linear-gradient(135deg, var(--roxo), #6a11cb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ia-modal-header h3 {
    font-size: 1.3rem;
    font-weight: 600;
    flex: 1;
    color: white;
}

.ia-modal-close {
    background: none;
    border: none;
    color: var(--texto);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.ia-modal-close:hover {
    background: rgba(138, 43, 226, 0.1);
    color: var(--roxo);
}

.ia-modal-body {
    padding: 1.5rem;
}

.ia-modal-body p {
    margin-bottom: 1.5rem;
    line-height: 1.5;
    color: #e0e0e0;
    text-align: center;
}

.ia-modal-features {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.75rem 1rem;
    background: rgba(138, 43, 226, 0.08);
    border-radius: 10px;
    border: 1px solid var(--borda);
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: rgba(138, 43, 226, 0.12);
    transform: translateX(5px);
}

.feature-item i {
    font-size: 1.1rem;
    color: var(--roxo);
    width: 20px;
    text-align: center;
}

.feature-item span {
    font-size: 0.9rem;
    color: white;
    flex: 1;
}

.ia-modal-footer {
    display: flex;
    gap: 12px;
    padding: 1rem 1.5rem 1.5rem;
    border-top: 1px solid var(--borda);
}

.ia-modal-cancel {
    flex: 1;
    background: transparent;
    border: 1px solid var(--borda);
    color: var(--texto);
    padding: 12px 20px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
}

.ia-modal-cancel:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: #666;
}

.ia-modal-confirm {
    flex: 1;
    background: linear-gradient(135deg, var(--roxo), #6a11cb);
    color: white;
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
}

.ia-modal-confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(138, 43, 226, 0.4);
}

.ia-modal-confirm i {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.ia-modal-confirm:hover i {
    transform: translateX(3px);
}

/* =============================== */
/* 🎯 RESPONSIVIDADE */
/* =============================== */

@media (max-width: 768px) {
    .ia-floating-button {
        bottom: 20px;
        right: 20px;
        width: 60px;
        height: 60px;
    }
    
    .ia-floating-icon {
        font-size: 1.5rem;
    }
    
    .ia-floating-tooltip {
        display: none;
    }
    
    .ia-modal-content {
        max-width: 100%;
    }
    
    .ia-modal-header {
        padding: 1.25rem 1.25rem 0.75rem;
    }
    
    .ia-modal-body {
        padding: 1.25rem;
    }
    
    .feature-item {
        padding: 0.625rem 0.875rem;
    }
}

@media (max-width: 480px) {
    .ia-floating-button {
        bottom: 15px;
        right: 15px;
        width: 55px;
        height: 55px;
    }
    
    .ia-modal-header {
        gap: 10px;
    }
    
    .ia-modal-header i {
        font-size: 1.5rem;
    }
    
    .ia-modal-header h3 {
        font-size: 1.2rem;
    }
    
    .ia-modal-footer {
        flex-direction: column;
    }
}

/* =============================== */
/* 🎯 ANIMAÇÃO DE ENTRADA */
/* =============================== */

@keyframes float-in {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.8);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.ia-floating-button {
    animation: float-in 0.6s ease-out;
}
* {
  -webkit-tap-highlight-color: transparent;
}
