/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #000000;
    background-color: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: 'kern' 1, 'liga' 1;
}

/* Container */
.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 24px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px; /* Reduced gap for more compact layout */
}

/* Header Section */
.header {
    text-align: center;
    width: 100%;
    padding-top: 20px; /* Reduced top padding */
}

.title-box {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 10px;
    position: relative;
    overflow: visible;
}

.main-title {
    font-size: 3.6rem; /* SYMBIOTIC BOUNDARY INDEX */
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: 16px;
    color: #000000;
    text-transform: none;
    position: relative;
    display: block;
    white-space: normal; /* Permite quebra de linha quando necessário */
    overflow: visible; /* Mostra todo o conteúdo */
    text-overflow: clip; /* Remove as reticências */
    word-wrap: break-word; /* Quebra palavras longas se necessário */
}

.title-box {
    max-width: 100%; /* Usando toda a largura disponível */
    margin: 0 auto;
    padding: 0 10px;
    position: relative;
    overflow: visible;
}

.subtitle {
    font-size: 2.0rem; /* A Framework for Human–AI Symbolic Symbiosis */
    font-weight: 400;
    letter-spacing: -0.01em;
    line-height: 1.3;
    color: #000000;
    opacity: 0.8;
    font-style: normal;
    display: block;
    margin-bottom: 20px;
    white-space: normal; /* Permite quebra de linha quando necessário */
    overflow: visible; /* Mostra todo o conteúdo */
    text-overflow: clip; /* Remove as reticências */
    word-wrap: break-word; /* Quebra palavras longas se necessário */
}

/* Image Section */
.image-section {
    width: 100%;
    text-align: center;
    margin: 10px 0; /* Reduced margin */
    position: relative;
}

.cover-image {
    max-width: 60%; /* Further reduced for more compact look */
    height: auto;
    max-height: 300px; /* Reduced height */
    object-fit: contain;
    transition: none;
    display: block;
    margin: 0 auto;
}

.cover-image:hover {
    transform: none; /* Removed transform on hover */
    box-shadow: none; /* Removed box-shadow on hover */
}

/* Zenodo Section */
.zenodo-section {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
}

.zenodo-text {
    font-size: 1.125rem;
    font-weight: 500;
    margin-bottom: 12px;
    color: #000000;
    letter-spacing: 0.01em;
}

.zenodo-link {
    display: inline-block;
    font-size: 1rem;
    font-weight: 500;
    color: #000000;
    text-decoration: none;
    padding: 12px 24px;
    border: 2px solid #000000;
    transition: all 0.2s ease;
    letter-spacing: 0.01em;
    position: relative;
    overflow: hidden;
    text-transform: none; /* Removed uppercase */
    background-color: transparent; /* Changed background to transparent */
}

.zenodo-link::before {
    /* Removed decorative element */
    content: none;
}

.zenodo-link:hover {
    background-color: #000000;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: none; /* Removed box-shadow on hover */
}

.zenodo-link:active {
    transform: translateY(0);
}

/* Description Sections */
.description-section,
.author-section {
    max-width: 720px; /* Aumentei de 600px para 720px (20% a mais) */
    margin: 0 auto;
    padding: 0 24px;
    text-align: justify; /* Mudei de center para justify */
    position: relative;
}

.sbi-description,
.author-description {
    font-size: 1.125rem;
    line-height: 1.7;
    color: #000000;
    font-weight: 400;
    letter-spacing: 0.01em;
    margin-top: 20px;
    text-align: justify; /* Adicionei justificação específica */
    text-justify: inter-word; /* Melhora a distribuição das palavras */
}

.sbi-description {
    font-weight: 400;
}

/* Contact Section */
.contact-section {
    text-align: center; /* Mantive centralizado para o contato */
    max-width: 720px; /* Aumentei também aqui para consistência */
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
}

.contact-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: #000000;
}

.email-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px;
    max-width: 600px;
    text-align: center;
    width: 100%;
    overflow: hidden;
}

.email-link {
    color: #000;
    text-decoration: underline;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 8px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    background-color: #f9f9f9;
    white-space: nowrap;
    flex-wrap: nowrap;
}

.email-link:hover {
    opacity: 0.9;
    background-color: #f5f5f5;
}

.copy-email-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    margin-left: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #000;
    border-radius: 4px;
    transition: all 0.2s ease-in-out;
}

.copy-email-btn:hover {
    background-color: #000;
    color: #fff;
}

.copy-email-btn:hover svg {
    stroke: #fff;
}

/* Estilo quando o email-link está em hover e o botão também está em hover */
.email-link:hover .copy-email-btn:hover {
    background-color: transparent;
}

.email-link:hover .copy-email-btn:hover svg {
    stroke: #28a745;
}

/* Estilo quando apenas o email-link está em hover, mas o botão não */
.email-link:hover .copy-email-btn {
    background-color: #000;
    color: #fff;
}

.email-link:hover .copy-email-btn svg {
    stroke: #fff;
}

.copy-email-btn svg {
    width: 16px;
    height: 16px;
}

.contact-section::before {
    /* Removed decorative element */
    content: none;
}

/* Contact Form Styles */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 8px;
    color: #000000;
}

.form-group small {
    display: block;
    font-size: 0.875rem;
    color: #000000;
    opacity: 0.7;
    margin-top: 4px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    border: 2px solid #000000;
    background-color: transparent;
    color: #000000;
    transition: all 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #000000;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
}

/* Estilos para placeholders */
::placeholder {
    color: #000000;
    opacity: 0.7;
    font-size: 0.875rem;
    font-style: italic;
}

/* Suporte para diferentes navegadores */
::-webkit-input-placeholder {
    color: #000000;
    opacity: 0.7;
    font-size: 0.875rem;
    font-style: italic;
}

::-moz-placeholder {
    color: #000000;
    opacity: 0.7;
    font-size: 0.875rem;
    font-style: italic;
}

:-ms-input-placeholder {
    color: #000000;
    opacity: 0.7;
    font-size: 0.875rem;
    font-style: italic;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.submit-btn {
    display: inline-block;
    font-size: 1rem;
    font-weight: 500;
    color: #000000;
    text-decoration: none;
    padding: 12px 24px;
    background-color: transparent;
    border: 2px solid #000000;
    transition: all 0.2s ease;
    letter-spacing: 0.01em;
    cursor: pointer;
    margin-top: 10px;
}

.submit-btn:hover {
    background-color: #000000;
    color: #ffffff;
    transform: translateY(-1px);
}

.submit-btn:active {
    transform: translateY(0);
}

/* Form Status Styles */
.form-status {
    margin-top: 20px;
    padding: 15px;
    width: 100%; /* Largura igual ao formulário */
    text-align: center; /* Texto centralizado */
    max-width: 600px; /* Mesma largura máxima do formulário */
    margin-left: auto;
    margin-right: auto;
    transition: all 0.3s ease;
}

.form-status p {
    margin: 0;
    font-size: 1rem;
    font-weight: 500;
}

.form-status.success {
    background-color: rgba(40, 167, 69, 0.1); /* Verde claro transparente */
    border: 2px solid #28a745; /* Linhas verdes */
}

.form-status.error {
    background-color: rgba(220, 53, 69, 0.1); /* Vermelho claro transparente */
    border: 2px solid #dc3545; /* Linhas vermelhas */
}

.form-status.success p {
    color: #28a745; /* Fonte verde */
}

.form-status.error p {
    color: #dc3545; /* Fonte vermelha */
}

.contact-text {
    font-size: 1.125rem;
    font-weight: 500;
    margin-bottom: 20px;
    color: #000000;
    letter-spacing: 0.01em;
}

.email-link {
    display: inline-block;
    font-size: 1rem; /* Mudei de 1.125rem para 1rem (igual ao Zenodo) */
    font-weight: 500; /* Mudei de 600 para 500 (igual ao Zenodo) */
    color: #000000;
    text-decoration: none;
    padding: 12px 24px; /* Mudei de 16px 32px para 12px 24px (igual ao Zenodo) */
    background-color: transparent;
    border: 2px solid #000000;
    transition: all 0.2s ease;
    letter-spacing: 0.01em;
    position: relative;
    overflow: hidden;
}

.email-link::after {
    /* Removed decorative element */
    content: none;
}

.email-link:hover {
    background-color: #000000;
    color: #ffffff;
    transform: translateY(-1px); /* Adjusted transform */
    box-shadow: none; /* Removed box-shadow on hover */
}

.email-link:active {
    transform: translateY(0);
}

/* Footer */
.footer {
    width: 100%;
    text-align: center;
    padding: 40px 20px; /* Added padding for spacing */
    margin-top: 40px; /* Added margin to separate from content */
    color: #000000;
    opacity: 0.6;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        gap: 30px; /* Further reduced gap for mobile */
        padding: 0 20px; /* Aumentado para dar mais espaço lateral */
        justify-content: flex-start;
        padding-top: 30px; /* Adjusted top padding */
        padding-bottom: 30px; /* Adjusted bottom padding */
    }
    
    .header {
        padding-top: 20px; /* Adjusted top padding */
    }

    .title-box {
        padding: 0;
        max-width: 100%;
        margin: 0;
    }
    
    .main-title {
        font-size: 2.6rem; /* Reduzido para evitar estouro */
        margin-bottom: 10px;
        white-space: normal; /* Permite quebra de linha quando necessário */
        overflow: visible; /* Mostra todo o conteúdo */
        text-overflow: clip; /* Remove as reticências */
        word-wrap: break-word; /* Quebra palavras longas se necessário */
    }
    
    .subtitle {
        font-size: 1.4rem; /* Reduzido para evitar estouro */
        white-space: normal; /* Permite quebra de linha quando necessário */
        overflow: visible; /* Mostra todo o conteúdo */
        text-overflow: clip; /* Remove as reticências */
        word-wrap: break-word; /* Quebra palavras longas se necessário */
    }
    
    .image-section {
        margin: 15px 0; /* Adjusted margin */
    }
    
    .contact-title {
        font-size: 1.3rem;
    }

    .cover-image {
        max-height: 300px; /* Adjusted max-height for mobile */
        max-width: 90%; /* Keep 90% reduction */
    }
    
    .zenodo-section,
    .description-section,
    .author-section,
    .contact-section {
        padding: 0 16px;
    }
    
    .sbi-description,
    .author-description,
    .contact-text {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    .zenodo-text {
        font-size: 1rem;
    }
    
    .zenodo-link {
        font-size: 0.9rem;
        padding: 10px 20px;
        word-break: break-all;
    }
    
    .email-link {
        font-size: 1rem;
        padding: 14px 28px;
        word-break: break-all;
    }
    
    /* Responsive form styles */
    .contact-form {
        max-width: 100%;
    }
    
    .form-group label {
        font-size: 0.95rem;
    }
    
    .form-group small {
        font-size: 0.8rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 10px;
        font-size: 0.95rem;
    }
    
    .submit-btn {
        font-size: 0.95rem;
        padding: 10px 20px;
        width: 100%;
    }
    
    .form-status {
        padding: 12px;
        margin-top: 15px;
    }
    
    .form-status p {
        font-size: 0.95rem;
    }

    .footer {
        padding: 20px 16px; /* Adjusted padding for mobile */
        margin-top: 20px; /* Adjusted margin for mobile */
    }
}

@media (max-width: 480px) {
    .container {
        gap: 20px; /* Further reduced gap for smaller mobile */
        padding: 0 16px; /* Aumentado para dar mais espaço lateral */
        padding-top: 20px;
        padding-bottom: 20px;
    }
    
    .header {
        padding-top: 10px;
    }

    .title-box {
        padding: 0;
        max-width: 100%;
        margin: 0;
    }
    
    .main-title {
        font-size: 1.8rem; /* Reduzido para evitar estouro */
        line-height: 1.2;
        margin-bottom: 10px;
        white-space: normal; /* Permite quebra de linha quando necessário */
        overflow: visible; /* Mostra todo o conteúdo */
        text-overflow: clip; /* Remove as reticências */
        word-wrap: break-word; /* Quebra palavras longas se necessário */
    }
    
    .subtitle {
        font-size: 1.5rem; /* Reduzido para evitar estouro */
        line-height: 1.3;
        white-space: normal; /* Permite quebra de linha quando necessário */
        overflow: visible; /* Mostra todo o conteúdo */
        text-overflow: clip; /* Remove as reticências */
        word-wrap: break-word; /* Quebra palavras longas se necessário */
    }
    
    .image-section {
        margin: 10px 0;
    }
    
    .contact-title {
        font-size: 1.1rem;
    }

    .cover-image {
        max-height: 250px;
    }
    
    .zenodo-section,
    .description-section,
    .author-section,
    .contact-section {
        padding: 0 12px;
    }
    
    .sbi-description,
    .author-description,
    .contact-text {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .zenodo-text {
        font-size: 0.9rem;
    }
    
    .zenodo-link {
        font-size: 0.8rem;
        padding: 8px 16px;
    }
    
    .email-link {
        font-size: 0.9rem;
        padding: 8px 12px;
        white-space: nowrap;
        flex-wrap: nowrap;
        width: auto;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .copy-email-btn {
        margin-left: 4px;
        padding: 2px;
        flex-shrink: 0;
    }
    
    /* Smaller mobile form styles */
    .form-group {
        margin-bottom: 15px;
    }
    
    .form-group label {
        font-size: 0.85rem;
        margin-bottom: 6px;
    }
    
    .form-group small {
        font-size: 0.75rem;
        margin-top: 3px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 8px;
        font-size: 0.85rem;
    }
    
    .form-group textarea {
        min-height: 80px;
    }
    
    .submit-btn {
        font-size: 0.85rem;
        padding: 8px 16px;
        margin-top: 5px;
    }
    
    .form-status {
        padding: 10px;
        margin-top: 12px;
    }
    
    .form-status p {
        font-size: 0.85rem;
    }

    .footer {
        padding: 15px 12px;
        margin-top: 15px;
    }
}

/* Focus States for Accessibility */
.zenodo-link:focus,
.email-link:focus,
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus,
.submit-btn:focus {
    outline: 2px solid #000000; /* Adjusted outline */
    outline-offset: 2px;
}

/* Estilos para telas muito pequenas */
@media (max-width: 360px) {
    .email-link {
        font-size: 0.8rem;
        padding: 6px 8px;
    }
    
    .copy-email-btn {
        margin-left: 2px;
        padding: 1px;
    }
    
    .copy-email-btn svg {
        width: 14px;
        height: 14px;
    }
}

/* Print Styles */
@media print {
    .container {
        gap: 20px;
    }
    
    .zenodo-link,
    .email-link {
        border: 1px solid #000000;
        background-color: transparent;
        color: #000000;
        box-shadow: none;
    }
    
    .zenodo-link:after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
    }
    
    .email-link:after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
    }
}

