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

:root {
    --emerald: #10b981;
    --emerald-light: #34d399;
    --emerald-dark: #059669;
    --bg-dark: #0a0f0d;
    --glass: rgba(16, 185, 129, 0.05);
    --border: rgba(16, 185, 129, 0.2);
}

body, html {
    background: linear-gradient(135deg, var(--bg-dark) 0%, #0a1410 100%);
    color: #e8f5f1;
    font-family: Arial, Helvetica, sans-serif;
    overflow-x: hidden;
    min-height: 100vh;
}

#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

/* CABEÇALHO */
h1 {
    font-family: "Arial Black", Gadget, sans-serif;
    font-size: 3.5rem;
    text-transform: uppercase;
    background: linear-gradient(135deg, #fff 0%, var(--emerald-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
    animation: fadeInDown 0.8s ease-out;
}

/* TÍTULOS */
.section-title, .project-card h3, .title-accent, .btn {
    font-family: Arial, sans-serif;
    font-weight: bold;
}

.title-accent {
    color: var(--emerald-light);
    display: block;
    font-size: 1.5rem;
    margin-bottom: 25px;
    animation: fadeIn 1s ease-out 0.3s both;
}

.bio {
    max-width: 750px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 40px;
    animation: fadeIn 1s ease-out 0.5s both;
}

.section-title {
    margin-top: 60px;
    margin-bottom: 40px;
    font-size: 2rem;
    color: var(--emerald);
    text-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
}

/* LINKS SOCIAIS */
.social-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: center;
    animation: fadeIn 1s ease-out 0.7s both;
}

.social-links a {
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.social-links a:hover {
    color: var(--emerald-light);
    transform: translateY(-2px);
}

.social-links a:focus {
    outline: 2px solid var(--emerald);
    outline-offset: 4px;
    border-radius: 4px;
}

/* BOTÃO CURRÍCULO */
.btn-curriculo {
    background: rgba(16, 185, 129, 0.1);
    padding: 10px 20px;
    border-radius: 6px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.btn-curriculo:hover {
    background: var(--emerald);
    color: var(--bg-dark);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.4);
}

/* LINK DE VOLTAR */
.back-link {
    color: var(--emerald);
    text-decoration: none;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.back-link:hover {
    color: var(--emerald-light);
    transform: translateX(-5px);
}

/* GRID DE PROJETOS */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 35px;
}

/* LAYOUT CV */
.cv-wrapper {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 30px;
    margin-top: 40px;
}

.sidebar-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cv-section-title {
    font-size: 1.2rem;
    color: var(--emerald-light);
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.exp-item {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(16, 185, 129, 0.1);
}

.exp-item:last-child {
    border-bottom: none;
}

.duration {
    font-size: 0.85rem;
    color: var(--emerald-light);
    font-weight: normal;
    white-space: nowrap;
}

/* CARD DE PROJETO */
.project-card {
    background: var(--glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: 15px;
    padding: 40px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    animation: fadeInUp 0.6s ease-out;
}

.project-card:hover {
    border-color: var(--emerald);
    box-shadow: 0 0 25px rgba(16, 185, 129, 0.15);
    transform: translateY(-5px);
}

.project-card h3 {
    font-size: 1.6rem;
    color: var(--emerald-light);
    margin-bottom: 20px;
}

.project-card p {
    font-size: 1.05rem;
    line-height: 1.9;
    margin-bottom: 25px;
    color: rgba(232, 245, 241, 0.9);
}

/* BADGES DE TECNOLOGIA */
.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.tech-badge {
    background: rgba(16, 185, 129, 0.1);
    color: var(--emerald-light);
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.85rem;
    border: 1px solid var(--border);
    display: inline-block;
    transition: all 0.3s ease;
}

.tech-badge:hover {
    background: rgba(16, 185, 129, 0.2);
    border-color: var(--emerald);
}

/* BOTÕES */
.btn {
    display: inline-block;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 6px;
    margin-top: 15px;
    transition: all 0.3s ease;
    text-align: center;
    font-size: 0.95rem;
}

.btn-primary {
    background: var(--emerald);
    color: var(--bg-dark);
    font-weight: bold;
}

.btn:hover {
    box-shadow: 0 0 20px var(--emerald);
    transform: translateY(-2px);
}

.btn:focus {
    outline: 2px solid var(--emerald-light);
    outline-offset: 4px;
}

.btn i {
    margin-left: 5px;
}

.project-actions {
    margin-top: auto;
}

/* FOOTER */
footer {
    text-align: center;
    margin-top: 100px;
    padding: 50px 20px;
    border-top: 1px solid var(--border);
    color: rgba(255,255,255,0.4);
    font-size: 0.9rem;
}

/* ANIMAÇÕES */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* RESPONSIVIDADE */
@media (max-width: 850px) {
    .cv-wrapper {
        grid-template-columns: 1fr;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    .title-accent {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .project-card {
        padding: 30px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 40px 15px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .project-card {
        padding: 25px;
    }
    
    .social-links {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}

/* ACESSIBILIDADE */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}

/* IMPRESSÃO */
@media print {
    #particles-js {
        display: none;
    }
    
    .container {
        max-width: 100%;
        padding: 20px;
    }
    
    .project-card {
        border: 1px solid #333;
        page-break-inside: avoid;
    }
    
    .btn, .social-links, .back-link {
        display: none;
    }
}