/* Variáveis CSS */
:root {
    --primary: #2563eb;
    --secondary: #7c3aed;
    --dark: #111827;
    --light: #f3f4f6;
    --text: #e5e7eb;
    --text-secondary: #9ca3af;
    --border: rgba(255, 255, 255, 0.1);
    --radius: 8px;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* Reset e Estilos Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    scroll-behavior: smooth;
    overflow-x: hidden !important;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    width: 100%;
    box-sizing: border-box;
}

/* Barra de Progresso */
.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    z-index: 1000;
    width: 0;
    transition: width 0.3s;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 0;
    background: rgba(17, 24, 39, 0.8);
    backdrop-filter: blur(10px);
    z-index: 100;
    transition: var(--transition);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    min-height: 64px;
    flex-wrap: nowrap;
    gap: 2rem;
}

.logo {
    font-size: 2rem;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 1px;
    padding: 0.2rem 0.5rem;
    background: linear-gradient(120deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    transition: var(--transition);
    display: inline-block;
    border-radius: 6px;
    align-self: center;
}

.nav-links {
    display: flex;
    gap: 2rem;
    max-width: 100%;
    overflow-x: hidden;
    flex-direction: row;
    align-items: center;
}

.nav-links a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 101;
}

.menu-toggle span {
    display: block;
    width: 28px;
    height: 3px;
    background: var(--text);
    margin: 6px 0;
    border-radius: 2px;
    transition: 0.3s;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

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

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.language-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 0.5rem;
    height: 100%;
}

#toggle-lang {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    color: var(--light);
    border: none;
    border-radius: 20px;
    padding: 0.5rem 1.2rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(124,58,237,0.08);
    transition: background 0.3s, color 0.3s, transform 0.2s;
    outline: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#toggle-lang:hover, #toggle-lang:focus {
    background: linear-gradient(90deg, var(--secondary), var(--primary));
    color: var(--light);
    transform: translateY(-2px) scale(1.05);
}

.stacks-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2.5rem;
    position: relative;
    z-index: 2;
}

.stack-btn {
    background: rgba(124, 58, 237, 0.08);
    color: var(--primary);
    border: 1px solid rgba(124, 58, 237, 0.18);
    border-radius: 20px;
    padding: 0.5rem 1.2rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s, color 0.3s, transform 0.2s;
    outline: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stack-btn.active, .stack-btn:hover, .stack-btn:focus {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    color: var(--light);
    border-color: var(--secondary);
    transform: translateY(-2px) scale(1.05);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 6rem 0;
    overflow: hidden;
}

.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.highlight {
    background: linear-gradient(120deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
}

.btn-primary {
    background: var(--primary);
    color: var(--light);
}

.btn-primary:hover {
    background: var(--secondary);
    transform: translateY(-2px);
}

.btn-outline {
    border: 2px solid var(--border);
    color: var(--text);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

.hero-background {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(124, 58, 237, 0.1), transparent 50%);
}

/* Sobre Section */
.sobre {
    padding: 6rem 0;
}

.sobre h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
}

.sobre-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}

.sobre-texto p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    width: 100%;
    box-sizing: border-box;
}

.stat-item h3 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.image-container {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
}

.profile-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

/* Habilidades Section */
.habilidades {
    padding: 6rem 0;
    background: rgba(124, 58, 237, 0.05);
}

.habilidades h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    width: 100%;
    box-sizing: border-box;
}

.skill-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.skill-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.skill-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(120deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.skill-card h3 {
    margin-bottom: 1rem;
}

.skill-card p {
    color: var(--text-secondary);
}

/* Projetos Section */
.projetos {
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.projetos::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background: radial-gradient(circle at center, rgba(124, 58, 237, 0.1), transparent 70%);
    animation: rotate 20s linear infinite;
}

.projetos h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-align: center;
    position: relative;
    z-index: 2;
}

.projetos-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 4rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 2;
}

/* Grade de Projetos */
.projetos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 2.5rem;
    position: relative;
    z-index: 2;
    max-width: 1400px;
    margin: 0 auto;
}

/* Cards dos Projetos */
.project-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    height: 100%;
    min-height: 680px;
    display: flex;
    flex-direction: column;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(124, 58, 237, 0.1), transparent);
    transform: translateX(-100%);
    transition: 0.6s;
}

.project-card:hover::before {
    transform: translateX(100%);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3),
                0 0 30px rgba(124, 58, 237, 0.3);
    border-color: rgba(124, 58, 237, 0.5);
}

.project-image {
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.project-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 50%, rgba(17, 24, 39, 0.8));
}

.project-image img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: 320px;
    object-fit: cover;
    box-sizing: border-box;
    /* Transição removida - sem efeitos de transform na imagem */
}

/* Efeito de zoom removido da imagem - mantém apenas os outros efeitos do card */

.project-content {
    padding: 1.5rem;
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-content h3 {
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
    background: linear-gradient(120deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: var(--transition);
}

.project-content p {
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
    line-height: 1.6;
    flex: 1;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.project-tags span {
    background: rgba(124, 58, 237, 0.1);
    color: var(--primary);
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    font-size: 0.875rem;
    transition: var(--transition);
    border: 1px solid rgba(124, 58, 237, 0.2);
}

.project-tags span:hover {
    background: var(--primary);
    color: var(--light);
    transform: translateY(-2px);
}

.project-links {
    display: flex;
    gap: 1rem;
    opacity: 1;
    transform: translateY(0);
    transition: all 0.4s ease;
    margin-top: auto;
}

.btn-project {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    border-radius: var(--radius);
    text-decoration: none;
    transition: var(--transition);
    background: rgba(124, 58, 237, 0.1);
    color: var(--primary);
    border: 1px solid rgba(124, 58, 237, 0.2);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    justify-content: center;
}

.btn-project:hover {
    background: var(--primary);
    color: var(--light);
    transform: translateY(-2px);
}

.btn-project i {
    font-size: 1rem;
}

/* Responsividade da Grade */
@media (max-width: 1200px) {
    .projetos-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
        gap: 2rem;
        max-width: 1200px;
    }
}

@media (max-width: 900px) {
    .projetos-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: 1.5rem;
        max-width: 900px;
    }
    
    .projetos h2 {
        font-size: 2.5rem;
    }
    
    .projetos-subtitle {
        font-size: 1rem;
        margin-bottom: 3rem;
    }
}

@media (max-width: 600px) {
    .projetos-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    .projetos h2 {
        font-size: 2rem;
    }
    
    .projetos-subtitle {
        font-size: 0.95rem;
        margin-bottom: 2.5rem;
    }
    
    .project-card {
        min-height: 620px;
    }
    
    .project-content {
        padding: 1.25rem;
    }
    
    .project-links {
        flex-direction: column;
    }
    
    .btn-project {
        width: 100%;
    }
}

@media (max-width: 992px) {
    .menu-toggle {
        display: block;
        position: absolute;
        top: 50%;
        right: 2rem;
        transform: translateY(-50%);
        z-index: 100000 !important;
        background: none;
        border: none;
        color: var(--text);
        font-size: 2rem;
        transition: opacity 0.2s;
        pointer-events: auto !important;
    }
    .menu-toggle.active {
        z-index: 100000 !important;
        pointer-events: auto !important;
    }
    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw !important;
        height: 100vh !important;
        background: rgba(17, 24, 39, 0.98) !important;
        padding: 8rem 2rem 2rem 2rem !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 2rem !important;
        display: none !important;
        z-index: 99999 !important;
        overflow-x: hidden !important;
    }
    .nav-links.active {
        display: flex !important;
        z-index: 99999 !important;
    }
    .menu-toggle.active {
        z-index: 100000 !important;
    }
    .navbar .container {
        position: relative;
    }
    .logo {
        font-size: 1.6rem;
        padding: 0.2rem 0.5rem;
        background: linear-gradient(120deg, var(--primary), var(--secondary));
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
        text-fill-color: transparent;
        border-radius: 6px;
    /* box-shadow removido para mobile */
    }
    .language-toggle {
        margin-left: 0;
        margin-top: 1.5rem;
        justify-content: center;
    }
}

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

.splide__pagination {
    bottom: -2rem !important;
}

.splide__pagination__page {
    width: 10px;
    height: 10px;
    background: var(--text-secondary);
    opacity: 0.5;
    transition: var(--transition);
}

.splide__pagination__page.is-active {
    background: var(--primary);
    opacity: 1;
    transform: scale(1.2);
}

.splide__arrow {
    background: rgba(255, 255, 255, 0.1);
    width: 2.5rem;
    height: 2.5rem;
    opacity: 1;
    transition: var(--transition);
}

.splide__arrow:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.splide__arrow svg {
    fill: var(--primary);
    width: 1.2rem;
    height: 1.2rem;
}

.splide__slide:last-child {
    margin-right: 0 !important;
}

@media (max-width: 900px) {
    .splide__slide {
        min-width: 260px;
        max-width: 320px;
    }
    .splide__list {
        gap: 1.2rem;
        padding-right: 2rem;
    }
}

@media (max-width: 600px) {
    .splide__slide {
        min-width: 200px;
        max-width: 98vw;
    }
    .splide__list {
        gap: 0.7rem;
        padding-right: 1rem;
    }
}

@media (max-width: 600px) {
    .timeline { margin-left: 1rem; }
    .timeline-content { margin-left: 1.5rem; }
}

.footer {
    padding: 3rem 0;
    background: rgba(124, 58, 237, 0.05);
    border-top: 1px solid var(--border);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    text-align: center;
}

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

.email-link {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

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

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-links a {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    transition: var(--transition);
    color: var(--text);
    font-size: 1.25rem;
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-3px);
    color: var(--light);
}

.copyright {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.experiencias-section {
    padding: 4rem 0;
}

.timeline {
    position: relative;
    margin: 2rem 0 0 2rem;
    border-left: 2px solid var(--primary);
}

.timeline-item {
    position: relative;
    margin-bottom: 2.5rem;
}

.timeline-dot {
    position: absolute;
    left: -1.1rem;
    top: 0.5rem;
    width: 1.2rem;
    height: 1.2rem;
    background: var(--primary);
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 0 0 4px rgba(0,255,255,0.2);
}

.timeline-content {
    background: #181c24;
    padding: 1.2rem 1.5rem;
    border-radius: 0.7rem;
    box-shadow: 0 2px 16px 0 rgba(0,0,0,0.12);
    margin-left: 2rem;
}

.timeline-period {
    font-size: 0.95rem;
    color: #0ff;
    font-weight: 600;
}

.timeline-role {
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.timeline-tech {
    font-size: 0.9rem;
    color: #aaa;
    margin-bottom: 0.5rem;
}

.btn-cv-float {
    position: fixed;
    right: 2rem;
    bottom: 2rem;
    z-index: 999;
    background: linear-gradient(90deg, #0ff, #08f);
    color: #181c24;
    padding: 0.9rem 1.4rem;
    border-radius: 2rem;
    box-shadow: 0 4px 24px 0 rgba(0,255,255,0.18);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    text-decoration: none;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.btn-cv-float:hover {
    background: linear-gradient(90deg, #08f, #0ff);
    color: #fff;
    box-shadow: 0 6px 32px 0 rgba(0,255,255,0.28);
}

.btn-cv-float i {
    font-size: 1.3rem;
}

@media (max-width: 600px) {
    .btn-cv-float {
        right: 1rem;
        bottom: 1rem;
        padding: 0.7rem 1.1rem;
        font-size: 0.95rem;
    }
}