:root {
    --color-1: #672a93; /* Roxo da Logo */
    --color-2: #E1CCEA; /* Mantido lilás claro para contraste */
    --color-3: #7b3ba5; /* Tom levemente mais claro do roxo da logo */
    --color-4: #4d1d70; /* Tom levemente mais escuro do roxo da logo */
    --bg-color: #FDFBF7; 
    --text-color: #672a93;
}

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

body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
    background-image: url('planodefundosimol.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-color: var(--bg-color);
}

/* Background Animations */
.background-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.parallax-layer {
    position: absolute;
    width: 100%;
    height: 100%;
    transition: transform 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.35;
}

.shape-1 {
    width: 50vw;
    height: 50vw;
    background: var(--color-2);
    top: -20vh;
    left: -10vw;
    animation: float1 15s ease-in-out infinite alternate;
}

.shape-2 {
    width: 40vw;
    height: 40vw;
    background: var(--color-1);
    bottom: -15vh;
    right: -10vw;
    animation: float2 18s ease-in-out infinite alternate-reverse;
}

.shape-3 {
    width: 35vw;
    height: 35vw;
    background: var(--color-3);
    top: 40vh;
    left: 60vw;
    animation: float3 20s ease-in-out infinite alternate;
}

@keyframes float1 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, 40px) scale(1.1); }
}

@keyframes float2 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-40px, -50px) scale(1.05); }
}

@keyframes float3 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-60px, 30px) scale(1.15); }
}

/* Layout */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 60px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.logo-container {
    flex-shrink: 0;
    perspective: 1000px;
    margin-left: -80px;
}

.event-info {
    text-align: right;
    display: flex;
    flex-direction: column;
    justify-content: center;
    animation: fadeInRight 1s ease forwards 0.5s;
    opacity: 0;
    margin-right: -80px; 
}

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

.event-date {
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-4);
    margin-bottom: 5px;
    background: linear-gradient(to right, var(--color-4), var(--color-3));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.event-location {
    font-size: 1.1rem;
    font-weight: 500;
    color: #672a93;
    opacity: 0.8;
    line-height: 1.4;
}

.logo-link {
    display: inline-block;
    position: relative;
    text-decoration: none;
    outline: none;
    /* overflow: hidden removido para o tooltip aparecer */
}

/* Sparkles animation */
@keyframes sparkle-anim {
    0%, 100% { transform: scale(0) rotate(0deg); opacity: 0; }
    50% { transform: scale(1.2) rotate(180deg); opacity: 1; }
}

.logo-link .sparkle {
    position: absolute;
    background: white;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;
    z-index: 5;
    box-shadow: 0 0 10px #fff, 0 0 20px var(--color-1);
}

.logo-link:hover .sparkle {
    animation: sparkle-anim 0.8s ease-in-out infinite;
}

/* Posicionamento dos brilhos */
.sparkle-1 { top: 10%; left: 10%; animation-delay: 0.1s !important; }
.sparkle-2 { top: 20%; right: 15%; animation-delay: 0.3s !important; }
.sparkle-3 { bottom: 15%; left: 20%; animation-delay: 0.5s !important; }
.sparkle-4 { bottom: 25%; right: 10%; animation-delay: 0.2s !important; }
.sparkle-5 { top: 50%; left: 5%; animation-delay: 0.4s !important; }
.sparkle-6 { top: 40%; right: 5%; animation-delay: 0.6s !important; }

.logo {
    max-width: 380px;
    height: auto;
    filter: drop-shadow(0 15px 25px rgba(103, 42, 147, 0.15));
    transition: filter 0.5s ease; /* Removido transform transition do zoom */
    transform-style: preserve-3d;
    display: block;
}

.logo:hover {
    /* Zoom removido a pedido */
    filter: drop-shadow(0 25px 35px rgba(103, 42, 147, 0.35));
}

.logo-link:hover .logo-tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.logo-tooltip {
    position: absolute;
    bottom: -45px; /* Ajustado um pouco mais para baixo */
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background-color: var(--color-4);
    color: white;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    z-index: 10;
}

.logo-tooltip::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 0 6px 6px 6px;
    border-style: solid;
    border-color: transparent transparent var(--color-4) transparent;
}

.logo-link:hover .logo-tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.header-text {
    border-left: 4px solid var(--color-1);
    padding-left: 30px;
}

.header-text h1 {
    font-size: 4.5rem;
    font-weight: 700;
    color: var(--color-4);
    line-height: 1;
    margin-bottom: 12px;
    letter-spacing: -2px;
    background: linear-gradient(to right, var(--color-4), var(--color-3));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.header-text h2 {
    font-size: 1.4rem;
    font-weight: 500;
    color: #4a4a4a;
    line-height: 1.4;
}

.subtitle {
    text-align: center;
    font-size: 1.3rem;
    font-weight: 500;
    margin-bottom: 70px;
    color: var(--color-4);
}

.subtitle em {
    font-weight: 700;
    color: var(--color-1);
    font-style: italic;
    background: linear-gradient(120deg, var(--color-1), var(--color-3));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    transition: transform 0.3s ease;
}

.subtitle em:hover {
    transform: scale(1.1);
}

/* Welcome Section */
.welcome-section {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    text-align: left;
    max-width: 65%; /* Espaço para a proteína na direita */
    margin-bottom: 50px;
    color: var(--text-color);
    font-size: 1.15rem;
    line-height: 1.6;
}

.welcome-section h2 {
    font-size: 2.2rem;
    color: var(--color-4);
    margin-bottom: 20px;
}

.welcome-section p {
    margin-bottom: 15px;
}

.welcome-section .event-details {
    margin-top: 25px;
    background: rgba(255, 255, 255, 0.6);
    padding: 20px;
    border-radius: 12px;
    border-left: 4px solid var(--color-1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.welcome-section .event-details p {
    margin-bottom: 8px;
}

.welcome-section .event-details p:last-child {
    margin-bottom: 0;
}

/* Buttons */
.button-grid {
    display: flex;
    justify-content: center;
    align-items: stretch;
    flex-wrap: nowrap;
    background-color: transparent;

    border-top: 1.5px solid var(--color-2);
    border-bottom: 1.5px solid var(--color-2);
    margin: 0 auto 60px;
    padding: 0;
    
    /* Truque para ignorar a largura do container e ir até as bordas da tela sem bugar a posição */
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    position: relative;
}

/* Pseudo-elemento para criar o fundo sólido apenas abaixo da barra de navegação */
.button-grid::after {
    content: '';
    position: absolute;
    top: 100%; /* Começa exatamente abaixo da barra */
    left: 0;
    width: 100vw;
    height: 200vh; /* Garante que cubra até o fim da página */
    background-color: var(--bg-color); /* Fundo off-white */
    z-index: -1;
}

.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px 10px;
    flex: 1;
    background: transparent;
    color: var(--color-4);
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: 600;
    text-align: center;
    border: none; /* Reseta bordas padrão do button */
    border-right: 1.5px solid var(--color-2);
    cursor: pointer;
    font-family: inherit;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.action-btn:first-child {
    border-left: 1.5px solid var(--color-2);
}

.action-btn:hover {
    background-color: var(--color-2);
    color: var(--color-4);
}

/* Footer */
.footer {
    text-align: center;
    font-size: 1rem;
    font-weight: 500;
    color: #555;
    margin-top: auto;
    padding-top: 40px;
}

.footer a {
    color: var(--color-1);
    text-decoration: none;
    font-weight: 700;
    position: relative;
    padding: 0 2px;
}

.footer a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: var(--color-3);
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.footer a:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

/* Entrada Animations */
.animate-on-load {
    opacity: 0;
    transform: translateY(40px);
    animation: fadeInUp 1s forwards cubic-bezier(0.2, 0.8, 0.2, 1);
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

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

/* Responsividade para Celulares e Tablets */
@media (max-width: 860px) {
    .container {
        padding: 40px 15px;
    }

    .header {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .event-info {
        text-align: center;
        margin-top: 10px;
        margin-right: 0;
    }

    .event-date {
        font-size: 1.6rem;
    }
    
    .logo-container {
        margin-left: 0;
    }
    
    .logo {
        max-width: 250px; /* Logo um pouco menor no celular */
    }
    
    .header-text {
        border-left: none;
        border-top: 4px solid var(--color-1);
        padding-left: 0;
        padding-top: 25px;
    }
    
    .header-text h1 {
        font-size: 2.8rem;
    }
    
    .button-grid {
        flex-direction: column;
        gap: 10px; /* Adiciona espaçamento entre botões */
        border: none;
        margin-left: 0;
        margin-right: 0;
        width: 100%;
        margin-bottom: 40px;
    }
    
    .button-grid::after {
        display: none; /* Remove o fundo infinito branco no celular */
    }
    
    .action-btn {
        border: 1.5px solid var(--color-2);
        border-radius: 12px;
        background: #fff;
        padding: 15px;
        box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    }
    
    .action-btn:first-child {
        border-left: 1.5px solid var(--color-2);
        background: linear-gradient(135deg, var(--color-3), var(--color-4));
        color: white;
        border: none;
    }

    .action-btn:first-child span {
        color: white; /* Garante que o texto fique branco */
    }
    
    .action-btn:last-child {
        border-bottom: 1.5px solid var(--color-2);
    }
    
    .subtitle {
        font-size: 1.1rem;
        margin-bottom: 30px;
    }

    /* Diminui a proteína significativamente no celular */
    .mascot-protein {
        max-width: 50px; 
    }
    
    .mascot-container {
        bottom: -10px;
        right: -10px;
    }

}

/* Container da Mascote */
.mascot-container {
    position: fixed;
    bottom: -20px;
    right: -20px;
    z-index: 100;
    transition: transform 0.1s ease-out; /* Suavidade para o mousemove */
}

/* Balão de Fala */
.speech-bubble {
    position: absolute;
    bottom: 100%;
    left: 20%;
    transform: translateX(-50%) translateY(20px);
    background-color: #fff;
    border: 2px solid var(--color-1);
    color: var(--color-4);
    padding: 15px 20px;
    border-radius: 20px;
    border-bottom-right-radius: 0;
    font-size: 1rem;
    font-weight: bold;
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: -1;
}

.speech-bubble::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: -2px;
    border-width: 10px 10px 0 0;
    border-style: solid;
    border-color: var(--color-1) transparent transparent transparent;
}

.mascot-container:hover .speech-bubble {
    opacity: 1;
    transform: translateX(-50%) translateY(-20px);
}

/* Proteína Mascote (Imagem) */
.mascot-protein {
    display: block;
    max-width: 400px; /* Grande como solicitado */
    height: auto;
    cursor: pointer;
    filter: drop-shadow(0 15px 25px rgba(0,0,0,0.25));
    animation: floatMascot 5s ease-in-out infinite alternate;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.4s ease;
}

.mascot-protein:hover {
    animation-play-state: paused;
    transform: scale(1.1) rotate(-8deg) translateY(-20px);
    filter: drop-shadow(0 25px 35px rgba(0,0,0,0.4));
}

.mascot-protein:active {
    transform: scale(0.95) rotate(0deg);
}

@keyframes floatMascot {
    0% { transform: translateY(0) rotate(0deg); }
    100% { transform: translateY(-30px) rotate(4deg); }
}

/* Formulário de Inscrição */
.simol-form {
    text-align: left;
    margin-bottom: 20px;
}

.simol-form .form-row {
    display: flex;
    gap: 20px;
}

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

.simol-form label {
    display: block;
    font-weight: 600;
    color: var(--color-4);
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.simol-form input,
.simol-form select {
    width: 100%;
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    background-color: #fcfcfc;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.simol-form input:focus,
.simol-form select:focus {
    outline: none;
    border-color: var(--color-1);
    box-shadow: 0 0 0 3px rgba(138, 87, 181, 0.2);
    background-color: #fff;
}

.submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--color-3), var(--color-4));
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(59, 40, 160, 0.25);
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
    margin-left: 10px;
}

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

.form-message {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 500;
}

.form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

@media (max-width: 600px) {
    .simol-form .form-row {
        flex-direction: column;
        gap: 0;
    }
}

/* Área de Upload (Drag & Drop) */
.drop-area {
    border: 2px dashed #bbb;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    background-color: #fafafa;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #666;
}

.drop-area:hover, .drop-area.highlight {
    border-color: var(--color-1);
    background-color: rgba(138, 87, 181, 0.05);
    color: var(--color-4);
}

/* Modal de Aviso */
.modal {
    display: none; /* Oculto por padrão */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5); /* Fundo semi-transparente escuro */
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: #fff;
    padding: 40px;
    border-radius: 20px;
    max-width: 600px;
    width: 90%;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    text-align: center;
    position: relative;
    animation: scaleUp 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes scaleUp {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.checkbox-container input {
    margin: 0;
    cursor: pointer;
}

.checkbox-container span {
    font-size: 1.05rem;
}

/* Seção de Boas-vindas */
.welcome-section {
    margin-top: 50px;
    text-align: left;
    color: #000000 !important; /* Texto em preto conforme solicitado */
}

.welcome-section h2 {
    color: var(--color-4);
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.welcome-section p {
    margin-bottom: 15px;
    line-height: 1.6;
    color: #000000 !important;
}

/* Elementos Decorativos Flutuantes atrás da Proteína (bitmap2.png) */
@keyframes hover-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.floating-icon {
    position: absolute; /* Mudar para absolute para ficar relativo ao container da proteína */
    width: 100px; /* Grande como solicitado */
    height: 100px;
    background-image: url('bitmap2.png');
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.6; /* Bem visível */
    z-index: -1;
    pointer-events: none;
    animation: hover-float 4s ease-in-out infinite;
}

/* Posições ao redor da proteína */
.float-1 { top: -40px; left: -30px; animation-delay: 0s; }
.float-2 { top: 20px; left: -60px; animation-delay: -1.5s; width: 80px; height: 80px; }
.float-3 { top: -20px; right: -20px; animation-delay: -3s; width: 90px; height: 90px; }

/* Moléculas nos Botões */
.btn-molecule {
    position: absolute;
    width: 25px;
    height: 25px;
    background-image: url('bitmap2.png');
    background-size: contain;
    background-repeat: no-repeat;
    pointer-events: none;
    z-index: 100;
    opacity: 0;
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
}

.action-btn, #open-aviso-btn {
    position: relative; /* Necessário para posicionar as moléculas */
}

/* Correções específicas para Mobile que devem ficar no fim do arquivo */
@media (max-width: 860px) {
    .speech-bubble {
        font-size: 0.85rem;
        padding: 10px 15px;
        white-space: normal;
        width: 150px;
        text-align: center;
        left: auto;
        right: 0;
        bottom: 100%;
        animation: showBubbleMobile 5s forwards 1s; /* Aparece automático após 1 segundo */
    }

    @keyframes showBubbleMobile {
        0% { opacity: 0; transform: translateX(-20px) translateY(20px); }
        10% { opacity: 1; transform: translateX(-20px) translateY(-10px); }
        90% { opacity: 1; transform: translateX(-20px) translateY(-10px); }
        100% { opacity: 0; transform: translateX(-20px) translateY(20px); }
    }

    .mascot-protein {
        max-width: 50px; 
    }
    
    .mascot-container {
        bottom: -10px;
        right: -10px;
    }

    .welcome-section {
        max-width: 100%;
        font-size: 1rem;
        margin-bottom: 30px;
        padding-top: 10px;
    }
    
    .welcome-section h2 {
        font-size: 1.8rem;
    }
}
