/* ===== RESET E VARIÁVEIS ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #0a192f;
    --secondary-color: #64ffda;
    --accent-color: #ff6b9d;
    --light-color: #ccd6f6;
    --dark-color: #020c1b;
    --text-color: #8892b0;
    --text-light: #a8b2d1;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    --border-radius: 15px;
    --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* ===== FUNDO ESTRELADO ===== */
body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: linear-gradient(to bottom, #020c1b, #0a192f, #112240);
    min-height: 100vh;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
}

#starfield {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -3;
    pointer-events: none;
}

#planets {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    pointer-events: none;
}

/* Cursor Personalizado */
.cursor {
    width: 20px;
    height: 20px;
    border: 2px solid var(--secondary-color);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: all 0.1s ease;
    mix-blend-mode: difference;
}

.cursor-follower {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(100, 255, 218, 0.3);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9998;
    transition: all 0.3s ease;
    mix-blend-mode: difference;
}

/* ===== HEADER COM FOTO DIMENSIONADA ===== */
header {
    background: rgba(10, 25, 47, 0.85);
    color: var(--light-color);
    text-align: center;
    padding: 40px 20px 30px;
    border-radius: var(--border-radius);
    margin-bottom: 40px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(100, 255, 218, 0.1);
}

/* CONTAINER DA FOTO - CORRIGIDO */
.profile-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 25px;
    position: relative;
}

.profile-image-frame {
    position: relative;
    width: 180px; /* Tamanho do frame */
    height: 180px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* WRAPPER QUE VAI CORTAR A FOTO */
.profile-image-wrapper {
    position: relative;
    width: 140px; /* Tamanho interno */
    height: 140px;
    border-radius: 50%;
    overflow: hidden; /* ESSENCIAL: corta a foto */
    border: 4px solid var(--secondary-color);
    box-shadow: 
        0 0 20px rgba(100, 255, 218, 0.5),
        0 0 40px rgba(100, 255, 218, 0.3);
    animation: float 6s ease-in-out infinite;
}

/* A FOTO EM SI - DIMENSIONAMENTO CORRETO */
.profile-image {
    width: 100%; /* 100% do wrapper */
    height: 100%; /* 100% do wrapper */
    object-fit: cover; /* PREENCHE mantendo proporção */
    object-position: center 25%; /* AJUSTE O ROSTO AQUI */
    display: block;
    transition: var(--transition);
}

/* Hover na foto */
.profile-image:hover {
    transform: scale(1.08);
    filter: brightness(1.1);
}

/* Animação de flutuação */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
}

/* Borda animada externa */
.image-border {
    position: absolute;
    top: -12px;
    left: -12px;
    right: -12px;
    bottom: -12px;
    border: 3px solid var(--accent-color);
    border-radius: 50%;
    animation: pulse 2s infinite;
    z-index: -1;
    pointer-events: none;
}

@keyframes pulse {
    0%, 100% { 
        transform: scale(1); 
        opacity: 0.7; 
    }
    50% { 
        transform: scale(1.05); 
        opacity: 0.4; 
    }
}

/* Badge de status */
.status-badge {
    position: absolute;
    bottom: 10px;
    right: -5px;
    background: linear-gradient(45deg, var(--accent-color), var(--secondary-color));
    color: var(--dark-color);
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    z-index: 10;
    white-space: nowrap;
}

.online-dot {
    color: #00ff88;
    font-size: 0.7rem;
    animation: blink 2s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Informações do Header */
header h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 10px;
    background: linear-gradient(45deg, var(--light-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 5px 15px rgba(100, 255, 218, 0.2);
}

header .subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 25px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    padding: 0 15px;
}

/* Links Sociais */
.header-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light-color);
    background: rgba(100, 255, 218, 0.1);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.3rem;
    transition: var(--transition);
    text-decoration: none;
    border: 1px solid rgba(100, 255, 218, 0.2);
}

.btn-social:hover {
    background: var(--secondary-color);
    color: var(--dark-color);
    transform: translateY(-5px) scale(1.1);
    border-color: var(--secondary-color);
    box-shadow: 0 10px 25px rgba(100, 255, 218, 0.4);
}

/* ===== CONTAINER PRINCIPAL ===== */
.container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

/* ===== SEÇÕES ===== */
.section {
    background: rgba(17, 34, 64, 0.7);
    color: var(--text-light);
    padding: 35px;
    margin-bottom: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(100, 255, 218, 0.1);
    position: relative;
    overflow: hidden;
}

.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
    transform: translateX(-100%);
    transition: transform 0.8s ease;
}

.section:hover::before {
    transform: translateX(0);
}

.section:hover {
    transform: translateY(-8px);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(100, 255, 218, 0.1);
    border-color: rgba(100, 255, 218, 0.3);
}

.section-title {
    font-family: 'Poppins', sans-serif;
    color: var(--light-color);
    font-size: 1.9rem;
    margin-bottom: 30px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--secondary-color);
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--accent-color);
}

.section-title i {
    color: var(--secondary-color);
    font-size: 1.5rem;
}

/* ===== CONTATO ===== */
.contact-info {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    margin-top: 15px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.1rem;
    padding: 12px 20px;
    background: rgba(100, 255, 218, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(100, 255, 218, 0.1);
    transition: var(--transition);
}

.contact-item:hover {
    background: rgba(100, 255, 218, 0.1);
    border-color: var(--secondary-color);
    transform: translateX(5px);
}

.contact-item i {
    color: var(--secondary-color);
    font-size: 1.3rem;
    width: 25px;
}

.contact-item a {
    color: var(--light-color);
    text-decoration: none;
    transition: var(--transition);
    position: relative;
}

.contact-item a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--secondary-color);
    transition: width 0.3s ease;
}

.contact-item a:hover::after {
    width: 100%;
}

/* ===== RESUMO ===== */
.summary-content p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    line-height: 1.8;
    padding-left: 15px;
    border-left: 3px solid var(--secondary-color);
}

/* ===== EXPERIÊNCIA ===== */
.experience-item {
    margin-bottom: 35px;
    padding-bottom: 35px;
    border-bottom: 1px solid rgba(100, 255, 218, 0.1);
    position: relative;
}

.experience-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.experience-item::before {
    content: '●';
    position: absolute;
    left: -25px;
    top: 0;
    color: var(--secondary-color);
    font-size: 1.5rem;
    animation: spin 10s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.job-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
    flex-wrap: wrap;
    gap: 15px;
}

.job-title {
    font-size: 1.5rem;
    color: var(--light-color);
    font-weight: 600;
}

.job-period {
    background: linear-gradient(45deg, var(--accent-color), var(--secondary-color));
    color: var(--dark-color);
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.job-company {
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.job-description {
    padding-left: 25px;
}

.job-description li {
    margin-bottom: 10px;
    line-height: 1.7;
    position: relative;
}

.job-description li::before {
    content: '▸';
    position: absolute;
    left: -20px;
    color: var(--accent-color);
}

/* ===== EDUCAÇÃO ===== */
.education-item {
    padding: 25px;
    background: rgba(100, 255, 218, 0.05);
    border-radius: var(--border-radius);
    border: 1px solid rgba(100, 255, 218, 0.1);
}

.edu-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 12px;
}

.edu-title {
    font-size: 1.4rem;
    color: var(--light-color);
    font-weight: 600;
}

.edu-period {
    color: var(--secondary-color);
    font-weight: 600;
    padding: 5px 12px;
    background: rgba(100, 255, 218, 0.1);
    border-radius: 15px;
    font-size: 0.9rem;
}

.edu-institution {
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 20px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.edu-details {
    background: rgba(10, 25, 47, 0.8);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid rgba(100, 255, 218, 0.05);
}

.edu-details ul {
    padding-left: 20px;
    margin-top: 10px;
}

.edu-details li {
    margin-bottom: 6px;
}

/* ===== CERTIFICADOS ===== */
.certificates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.certificate-card {
    background: linear-gradient(145deg, rgba(17, 34, 64, 0.8), rgba(10, 25, 47, 0.8));
    border: 1px solid rgba(100, 255, 218, 0.1);
    border-radius: var(--border-radius);
    padding: 25px;
    display: flex;
    gap: 20px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.certificate-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.certificate-card:hover::before {
    transform: translateX(0);
}

.certificate-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--secondary-color);
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.4),
        0 0 25px rgba(100, 255, 218, 0.2);
}

.cert-icon {
    background: linear-gradient(45deg, var(--secondary-color), var(--accent-color));
    color: var(--dark-color);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    flex-shrink: 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.cert-content h4 {
    color: var(--light-color);
    margin-bottom: 8px;
    font-size: 1.2rem;
    font-weight: 600;
}

.cert-issuer {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 8px;
}

.cert-hours {
    color: var(--secondary-color);
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 8px;
    display: inline-block;
    padding: 3px 10px;
    background: rgba(100, 255, 218, 0.1);
    border-radius: 15px;
}

.cert-year {
    background: linear-gradient(45deg, var(--accent-color), #ff8ba0);
    color: var(--dark-color);
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 700;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

/* ===== HABILIDADES ===== */
.skills-category {
    margin-bottom: 35px;
}

.skills-category h3 {
    color: var(--light-color);
    margin-bottom: 20px;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(100, 255, 218, 0.2);
}

.skills-category h3 i {
    color: var(--secondary-color);
}

.skills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.skill-tag {
    background: linear-gradient(45deg, rgba(100, 255, 218, 0.1), rgba(255, 107, 157, 0.1));
    color: var(--light-color);
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

.skill-tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

.skill-tag:hover::before {
    left: 100%;
}

.skill-tag:hover {
    background: linear-gradient(45deg, var(--secondary-color), var(--accent-color));
    color: var(--dark-color);
    transform: translateY(-5px) scale(1.05);
    border-color: transparent;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.skill-tag i {
    font-size: 1rem;
}

.soft-skill {
    background: linear-gradient(45deg, rgba(255, 107, 157, 0.1), rgba(155, 107, 255, 0.1));
}

/* ===== FOOTER ===== */
footer {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-light);
    margin-top: 60px;
    border-top: 1px solid rgba(100, 255, 218, 0.1);
    background: rgba(10, 25, 47, 0.8);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

footer p {
    margin-bottom: 12px;
    font-size: 1rem;
}

.footer-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.stat {
    padding: 8px 20px;
    background: rgba(100, 255, 218, 0.1);
    border-radius: 20px;
    font-size: 0.9rem;
    border: 1px solid rgba(100, 255, 218, 0.2);
}

/* Botão Voltar ao Topo */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, var(--secondary-color), var(--accent-color));
    color: var(--dark-color);
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 30px rgba(100, 255, 218, 0.4);
}

/* ===== ANIMAÇÕES ===== */
[data-animate] {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.215, 0.61, 0.355, 1);
}

[data-animate].animated {
    opacity: 1;
    transform: translateY(0);
}

/* Animações específicas */
[data-animate="slide-left"].animated {
    transform: translateX(0);
}

[data-animate="slide-up"].animated {
    transform: translateY(0);
}

[data-animate="fade-up"].animated {
    transform: translateY(0);
}

[data-animate="scale-up"].animated {
    transform: scale(1);
}

[data-animate="flip"].animated {
    transform: perspective(1000px) rotateY(0deg);
}

[data-animate="bounce"].animated {
    animation: bounce 0.5s ease;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ===== AJUSTE PARA AJUSTAR FOTO ===== */
/* Adicione esta classe via JavaScript para ajustar o enquadramento */
.photo-adjusted-20 { object-position: center 20% !important; }
.photo-adjusted-25 { object-position: center 25% !important; }
.photo-adjusted-30 { object-position: center 30% !important; }
.photo-adjusted-35 { object-position: center 35% !important; }
.photo-adjusted-40 { object-position: center 40% !important; }

/* ===== RESPONSIVIDADE ===== */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }
    
    header .subtitle {
        font-size: 1rem;
    }
    
    .profile-image-frame {
        width: 160px;
        height: 160px;
    }
    
    .profile-image-wrapper {
        width: 130px;
        height: 130px;
    }
    
    .section {
        padding: 25px;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .contact-info {
        flex-direction: column;
        gap: 15px;
    }
    
    .certificates-grid {
        grid-template-columns: 1fr;
    }
    
    .btn-social {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    .skills-container {
        justify-content: center;
    }
    
    .footer-stats {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 15px;
    }
    
    .container {
        padding: 0 15px;
    }
    
    header {
        padding: 30px 15px 25px;
    }
    
    header h1 {
        font-size: 1.8rem;
    }
    
    .profile-image-frame {
        width: 150px;
        height: 150px;
    }
    
    .profile-image-wrapper {
        width: 120px;
        height: 120px;
    }
    
    .status-badge {
        bottom: 5px;
        right: -10px;
        padding: 5px 12px;
        font-size: 0.75rem;
    }
    
    .job-header, .edu-header {
        flex-direction: column;
        gap: 10px;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

/* Animações de entrada */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.8s ease forwards;
}