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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #020617 0%, #0b1120 50%, #020617 100%);
    min-height: 100vh;
    padding-top: 80px;
    padding-bottom: 40px;
    transition: all 0.3s ease;
}

/* Cabeçalho do site */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 64px;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(148, 163, 184, 0.35);
    z-index: 1001;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.avatar-image {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 2px solid #4b5563;
    object-fit: cover;
    overflow: hidden;
}

.site-name {
    font-size: 1rem;
    font-weight: 600;
    color: #e5e7eb;
}

.site-role {
    font-size: 0.8rem;
    color: #9ca3af;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-link {
    font-size: 0.9rem;
    color: #e5e7eb;
    text-decoration: none;
    opacity: 0.85;
    transition: opacity 0.2s, color 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link i {
    font-size: 0.85rem;
}

.nav-link:hover {
    opacity: 1;
    color: #a5b4fc;
}

.nav-link.active {
    font-weight: 600;
    color: #a5b4fc;
}

.main-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

/* Página A4 do currículo */
.resume-container {
    width: 210mm;
    min-height: 297mm;
    background: #ffffff;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
    margin: 40px;
    position: relative;
}

.resume-content {
    padding: 50px 60px;
    color: #000; /* todo texto do currículo em preto */
}

.resume-header {
    text-align: center;
    margin-bottom: 30px;
}

.resume-header h1 {
    font-size: 2.2em;
    font-weight: 700;
    color: #000;
    margin-bottom: 8px;
}

.contact-info {
    font-size: 0.85em;
    color: #000;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}

.contact-info span {
    display: inline-flex;
    align-items: center;
}

.contact-info span:not(:last-child)::after {
    content: "•";
    margin-left: 8px;
    color: #000;
}

.social-links {
    font-size: 0.85em;
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.social-links a {
    color: #000;
    text-decoration: none;
}

.social-links a:hover {
    text-decoration: underline;
}

.section-title {
    font-size: 1.1em;
    font-weight: 700;
    color: #3182ce;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 32px;
    margin-bottom: 14px;
    border-bottom: 2px solid #3182ce;
    padding-bottom: 4px;
}

.section-title:first-of-type {
    margin-top: 0;
}

.section-content {
    font-size: 0.9em;
    color: #000;
    line-height: 1.6;
    margin-bottom: 24px;
}

.section-content p {
    margin-bottom: 10px;
}

/* Skills estilo linha única: Categoria: item, item, item */
.skills-grid {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 28px;
}

.skill-category {
    font-size: 0.85em;
    color: #000;
}

.skill-category-title {
    font-weight: 700;
}

.skill-category-items {
    font-weight: 400;
}

/* Experiência */
.experience-item {
    margin-bottom: 24px;
}

.experience-item:last-child {
    margin-bottom: 0;
}

.experience-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 4px;
}

.experience-header h4 {
    font-size: 0.95em;
    font-weight: 600;
    color: #000;
}

.experience-header .period {
    font-size: 0.85em;
    color: #000;
    white-space: nowrap;
}

.company-location {
    font-size: 0.85em;
    color: #000;
    font-style: italic;
    margin-bottom: 6px;
}

.experience-item ul {
    margin-left: 18px;
    margin-top: 6px;
}

.experience-item li {
    font-size: 0.85em;
    color: #000;
    line-height: 1.5;
    margin-bottom: 4px;
}

.stack-info {
    font-size: 0.8em;
    color: #000;
    margin-top: 6px;
    font-style: italic;
    font-weight: 700; /* Stack inteira em negrito */
}

/* Idiomas */
.languages-section {
    display: flex;
    gap: 20px;
    font-size: 0.9em;
    color: #000;
}

/* Rodapé do site */
.site-footer {
    margin-top: 40px;
    width: 100%;
    max-width: 210mm;
    padding: 30px 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    color: #e5e7eb;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-link {
    font-size: 0.85rem;
    color: #e5e7eb;
    text-decoration: none;
    opacity: 0.85;
    transition: opacity 0.2s, color 0.2s;
}

.footer-link:hover {
    opacity: 1;
    color: #a5b4fc;
}

.footer-socials {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

.footer-socials-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #9ca3af;
}

.social-icons {
    display: flex;
    gap: 16px;
}

.social-link {
    font-size: 1.5rem;
    text-decoration: none;
    color: #e5e7eb;
    opacity: 0.85;
    transition: opacity 0.2s, color 0.2s, transform 0.2s;
}

.social-link:hover {
    opacity: 1;
    color: #a5b4fc;
    transform: translateY(-2px);
}

/* Botões flutuantes */
.action-buttons {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    gap: 15px;
    z-index: 1000;
}

.btn {
    padding: 12px 24px;
    border-radius: 8px;
    border: none;
    font-size: 0.95em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-download {
    background: #667eea;
    color: white;
}

.btn-download:hover {
    background: #5568d3;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-fullscreen {
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
}

.btn-fullscreen:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
}

/* Overlay fullscreen - área clicável preta */
.fullscreen-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000000;
    z-index: 1500;
    cursor: pointer;
}

body.fullscreen-mode .fullscreen-overlay {
    display: block !important;
}

/* Modo fullscreen - esconde tudo exceto o currículo */
body.fullscreen-mode {
    padding: 0 !important;
    overflow: hidden !important;
}

body.fullscreen-mode .site-header,
body.fullscreen-mode .site-footer,
body.fullscreen-mode .action-buttons {
    display: none !important;
}

body.fullscreen-mode .main-wrapper {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100vh !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 20px !important;
    z-index: 1600 !important;
    pointer-events: none !important;
}

body.fullscreen-mode .resume-container {
    margin: 0 !important;
    box-shadow: 0 0 60px rgba(255, 255, 255, 0.15) !important;
    width: 210mm !important;
    max-width: 90vw !important;
    height: auto !important;
    min-height: 90vh !important;
    max-height: 95vh !important;
    overflow: hidden !important;
    position: relative !important;
    z-index: 1700 !important;
    pointer-events: auto !important;
}

body.fullscreen-mode .resume-content {
    height: 100% !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding: 3vh 4vh !important;
    display: block !important;
}

body.fullscreen-mode .resume-header h1 {
    font-size: 1.8em !important;
    margin-bottom: 6px !important;
}

body.fullscreen-mode .resume-header {
    margin-bottom: 20px !important;
}

body.fullscreen-mode .section-title {
    font-size: 0.95em !important;
    margin-top: 20px !important;
    margin-bottom: 10px !important;
}

body.fullscreen-mode .section-content {
    font-size: 0.8em !important;
    margin-bottom: 16px !important;
    line-height: 1.5 !important;
}

body.fullscreen-mode .experience-item {
    margin-bottom: 16px !important;
}

body.fullscreen-mode .experience-header h4 {
    font-size: 0.85em !important;
}

body.fullscreen-mode .experience-header .period {
    font-size: 0.75em !important;
}

body.fullscreen-mode .company-location {
    font-size: 0.75em !important;
    margin-bottom: 5px !important;
}

body.fullscreen-mode .experience-item ul {
    margin-left: 16px !important;
    margin-top: 5px !important;
}

body.fullscreen-mode .experience-item li {
    font-size: 0.75em !important;
    line-height: 1.4 !important;
    margin-bottom: 3px !important;
}

body.fullscreen-mode .stack-info {
    font-size: 0.7em !important;
    margin-top: 5px !important;
}

body.fullscreen-mode .skill-category {
    font-size: 0.75em !important;
}

body.fullscreen-mode .skills-grid {
    gap: 5px !important;
    margin-bottom: 16px !important;
}

body.fullscreen-mode .languages-section {
    font-size: 0.8em !important;
}

body.fullscreen-mode .contact-info,
body.fullscreen-mode .social-links {
    font-size: 0.75em !important;
    gap: 8px !important;
}

body.fullscreen-mode .contact-info {
    margin-bottom: 6px !important;
}

/* Botão de fechar fullscreen */
.close-fullscreen {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(102, 126, 234, 0.95);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.9em;
    font-weight: 600;
    cursor: pointer;
    z-index: 2000;
    display: none;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
}

.close-fullscreen:hover {
    background: rgba(85, 104, 211, 0.95);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

body.fullscreen-mode .close-fullscreen {
    display: block !important;
}

@media print {
    body {
        background: white;
        padding-top: 0;
        padding-bottom: 0;
    }
    .site-header,
    .site-footer,
    .action-buttons,
    .close-fullscreen,
    .fullscreen-overlay {
        display: none !important;
    }
    .resume-container {
        box-shadow: none;
        margin: 0;
        width: 100%;
        min-height: auto;
        page-break-after: avoid;
    }
    .resume-content {
        padding: 40px 50px;
    }
    /* Força tudo em uma página */
    @page {
        size: A4;
        margin: 0;
    }
    .experience-item {
        page-break-inside: avoid;
    }
}

@media (max-width: 768px) {
    .resume-container {
        width: 100%;
        margin: 20px 0;
    }
    .resume-content {
        padding: 40px 24px;
    }
    .site-header {
        padding: 0 16px;
    }
    .experience-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .site-footer {
        flex-direction: column;
        gap: 24px;
        padding: 30px 16px;
        align-items: center;
    }
    .footer-nav {
        align-items: center;
    }
    .footer-socials {
        align-items: center;
    }
    .action-buttons {
        bottom: 15px;
        right: 15px;
        flex-direction: column;
    }
    .header-left .site-role {
        display: none;
    }
}

/* Home page specific styles */
body.home-page {
    display: flex !important;
    flex-direction: column !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    color: #e5e7eb;
    min-height: 100vh !important;
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 40px 40px;
    text-align: center;
}

.greeting {
    font-size: 4rem;
    font-weight: 700;
    color: #e5e7eb;
    margin-bottom: 16px;
    line-height: 1.2;
}

.subtitle {
    font-size: 1.5rem;
    color: #9ca3af;
    font-weight: 400;
    margin-bottom: 20px;
}

.availability {
    font-size: 1rem;
    color: #d1d5db;
    font-weight: 400;
    margin-bottom: 40px;
}

.cta-button {
    display: inline-block;
    padding: 14px 32px;
    background: #667eea;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(102, 126, 234, 0.3);
}

.cta-button:hover {
    background: #5568d3;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/* Home page footer - restore original styling */
body.home-page .site-footer {
    margin-top: 0;
    max-width: none;
    padding: 30px 40px;
    border-top: 1px solid rgba(148, 163, 184, 0.2);
}

@media (max-width: 768px) {
    .greeting {
        font-size: 2.5rem;
    }

    .subtitle {
        font-size: 1.2rem;
    }

    .main-content {
        padding: 80px 20px 40px;
    }

    body.home-page .site-footer {
        flex-direction: column;
        gap: 24px;
        padding: 30px 16px;
        align-items: center;
    }

    body.home-page .footer-nav {
        align-items: center;
    }

    body.home-page .footer-socials {
        align-items: center;
    }
}
