/* Reset Básico para consistência entre navegadores */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    margin: 0;
    background-color: #f0f2f5;
    color: #333;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

body.menu-open {
    overflow: hidden;
}

/* Conteiner principal */
.container {
    max-width: 950px;
    width: 100%;
    margin: 40px auto;
    background: #ffffff;
    padding: 50px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    text-align: center;
    flex-grow: 1;
}

/* Estilos do Cabeçalho Principal */
.main-header {
    background-color: #2c3e50;
    color: white;
    padding: 25px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 700px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.7em;
    color: #f7f7f7;
    text-decoration: none;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
}

/* Estilo da foto de perfil */
.profile-pic {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover; 
    flex-shrink: 0; 
    margin-right: 20px;
    border: 2px solid #5d9cec;
}


.menu-toggle {
    display: block;
    background: none;
    border: none;
    color: white;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    z-index: 1001;
}

.menu-toggle:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* ==================================== */
/* MENU LATERAL (SLIDE-IN) */
/* ==================================== */
.nav-menu {
    position: fixed;
    top: 0;
    left: -280px;
    width: 250px;
    height: 100%;
    background-color: #34495e;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
    padding-top: 80px;
    transition: left 0.4s cubic-bezier(0.645, 0.045, 0.355, 1);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.nav-menu.active {
    left: 0;
}

.nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

.nav-links li {
    width: 100%;
    text-align: center;
}

.nav-links a {
    display: block;
    padding: 15px 20px;
    color: #e0e6ed;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-links li:last-child a {
    border-bottom: none;
}

.nav-links a:hover {
    background-color: #2c3e50;
    color: #5d9cec;
}

/* ==================================== */
/* OVERLAY */
/* ==================================== */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    padding: 80px 20px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 380px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.hero-content {
    max-width: 600px;
}

.hero-section h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 3em;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-section p {
    font-size: 1.1em;
    margin-bottom: 30px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* Botões */
.btn {
    display: inline-block;
    padding: 10px 22px;
    background-color: #f39c12;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    font-weight: 600;
    font-size: 1em;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: #e67e22;
    transform: translateY(-3px);
}

.primary-btn {
    background-color: #2ecc71;
}

.primary-btn:hover {
    background-color: #27ae60;
}

/* Estilos para as seções de certificados */
.certificados-section {
    padding: 50px 0;
}

.certificados-section h2 {
    font-family: 'Montserrat', sans-serif;
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 2.2em;
    text-align: center;
}

.section-description {
    font-size: 1em;
    color: #666;
    margin-bottom: 35px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

/* Grid dos Diplomas */
.diploma-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 25px;
    padding: 0 90px;
}

/* Card Individual do Diploma */
.diploma-card {
    background-color: #ffffff;
    padding: 25px;
    border: 1px solid #e0e6ed;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.07);
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.diploma-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.diploma-card h3 {
    font-family: 'Montserrat', sans-serif;
    color: #34495e;
    margin-top: 0;
    font-size: 1.6em;
    margin-bottom: 12px;
    line-height: 1.3;
}

.diploma-card p {
    margin: 8px 0;
    color: #555;
    font-size: 0.95em;
}

.diploma-card p strong {
    color: #444;
}

.diploma-card .btn {
    margin-top: 20px;
    font-size: 0.95em;
    padding: 9px 18px;
    align-self: flex-start;
}

/* Rodapé */
.main-footer {
    background-color: #2c3e50;
    color: #e0e6ed;
    padding: 25px 20px;
    text-align: center;
    margin-top: 40px;
}

.footer-content {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.main-footer p {
    margin-bottom: 12px;
    font-size: 0.9em;
}

.social-links a {
    color: #e0e6ed;
    font-size: 1.6em;
    margin: 0 12px;
    transition: color 0.3s ease, transform 0.2s ease;
}

.social-links a:hover {
    color: #5d9cec;
    transform: translateY(-3px);
}

/* Botão Voltar ao Topo */
#backToTopBtn {
    display: none;
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 99;
    background-color: #f39c12;
    color: white;
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    font-size: 1.4em;
    text-align: center;
    line-height: 48px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease, transform 0.2s ease;
}

#backToTopBtn:hover {
    background-color: #e67e22;
    transform: translateY(-3px);
}

/* ==================================== */
/* RESPONSIVIDADE (Ajustes gerais e do slide-in) */
/* ==================================== */
@media (max-width: 768px) {
    .navbar {
        padding: 12px 20px;
    }
    .nav-menu {
        width: 220px;
        left: -250px;
        padding-top: 70px;
    }
    .nav-links a {
        font-size: 1em;
        padding: 12px 15px;
    }
    
     .profile-pic {
        display: none; 
    }

    .hero-section h1 {
        font-size: 2.1em;
    }
    .hero-section p {
        font-size: 1em;
    }
    .container {
        padding: 25px 20px;
        margin: 15px auto;
    }
    .certificados-section h2 {
        font-size: 1.8em;
    }
    .diploma-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 10px;
    }
    .diploma-card h3 {
        font-size: 1.3em;
    }
    .main-footer {
        padding: 20px 20px;
    }
    .social-links a {
        font-size: 1.3em;
        margin: 0 8px;
    }
    #backToTopBtn {
        width: 40px;
        height: 40px;
        font-size: 1.2em;
        bottom: 15px;
        right: 15px;
        line-height: 40px;
    }
}

@media (max-width: 480px) {
    .nav-menu {
        width: 180px;
        left: -210px;
    }
    .hero-section h1 {
        font-size: 1.5em;
    }
    .hero-section p {
        font-size: 0.9em;
    }
    .certificados-section h2 {
        font-size: 1.6em;
    }
    .logo {
        font-size: 1.4em;
    }
    .diploma-card {
        padding: 18px;
    }
    .diploma-card h3 {
        font-size: 1.1em;
    }
    .diploma-card p {
        font-size: 0.85em;
    }
    .btn {
        padding: 8px 15px;
        font-size: 0.9em;
    }
}
