html {
    scroll-behavior: smooth;
    scroll-padding-top: 70px;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #0f172a;
    color: #f1f5f9;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

header {
    padding: 150px 20px;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.8) 0%, rgba(15, 23, 42, 0.9) 100%), url('site2.png');
    background-size: cover;
    background-position: center;
    width: 100%;
}

nav {
    position: sticky;
    top: 0;
    width: 100%;
    background-color: rgba(15, 23, 42, 0.95);
    padding: 20px 0;
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    gap: 30px;
}

nav a {
    color: #f1f5f9;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
    position: relative;
}

nav a:hover,
nav a.active {
    color: #38bdf8;
}

nav a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #38bdf8;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

nav a:hover::after,
nav a.active::after {
    transform: scaleX(1);
}

h1 { font-size: 2.5rem; margin-bottom: 10px; color: #38bdf8; }

.container { padding: 40px 20px; max-width: 800px; }

ul { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }

li { background: #1e293b; padding: 15px; border-radius: 8px; border-left: 4px solid #38bdf8; }

.grid-skills {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

.skill-card {
    background: #1e293b;
    padding: 20px;
    border-radius: 8px;
    border-top: 4px solid #38bdf8;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

.skill-card h3 {
    color: #38bdf8;
    margin-top: 0;
}

.btn-link {
    display: inline-block;
    margin-top: 15px;
    padding: 8px 16px;
    background-color: #38bdf8;
    color: #0f172a;
    text-decoration: none;
    font-weight: bold;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.btn-link:hover {
    background-color: #0284c7;
}

footer { margin-top: 50px; padding: 20px; font-size: 0.9rem; color: #94a3b8; }

.social-links {
    margin-bottom: 15px;
}

.social-links a {
    display: inline-block;
    color: #94a3b8;
    font-size: 1.5rem;
    margin: 0 10px;
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-links a:hover {
    color: #38bdf8;
    transform: scale(1.2);
}

/* Timeline Styles */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 40px auto 0;
    text-align: left;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: #38bdf8;
    top: 0;
    bottom: 0;
    left: 16px;
    border-radius: 2px;
}

.timeline-item {
    padding: 10px 0 30px 50px;
    position: relative;
}

.timeline-dot {
    position: absolute;
    width: 16px;
    height: 16px;
    background-color: #0f172a;
    border: 4px solid #38bdf8;
    border-radius: 50%;
    left: 6px;
    top: 15px;
    z-index: 1;
}

.timeline-content {
    background-color: #1e293b;
    padding: 20px;
    border-radius: 8px;
}

.timeline-content h3 { margin: 0 0 5px 0; color: #38bdf8; }

.timeline-date { color: #94a3b8; font-size: 0.9rem; font-weight: bold; display: block; margin-bottom: 10px; }

/* Contact Form Styles */
.contact-form { display: flex; flex-direction: column; gap: 15px; margin-top: 30px; text-align: left; }

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 15px;
    background-color: #1e293b;
    border: 1px solid #334155;
    border-radius: 8px;
    color: #f1f5f9;
    font-family: 'Inter', sans-serif;
    box-sizing: border-box;
}

.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: #38bdf8; }

/* Estilos do Pop-up de Sucesso */
.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.9); /* Fundo escuro com transparência */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.popup.hidden {
    opacity: 0;
    pointer-events: none;
}

.popup-content {
    background-color: #1e293b;
    padding: 40px;
    border-radius: 8px;
    text-align: center;
    border-top: 4px solid #38bdf8;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    max-width: 400px;
    width: 90%;
}

.popup-content i { font-size: 3rem; color: #38bdf8; margin-bottom: 15px; }
.popup-content h3 { color: #f1f5f9; margin-top: 0; }
.popup-content p { color: #94a3b8; margin-bottom: 20px; }

/* Estilos para Feedbacks/Depoimentos */
.feedback-card {
    background: #1e293b;
    padding: 30px;
    border-radius: 8px;
    border-top: 4px solid #38bdf8;
    text-align: left;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feedback-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

.quote-icon {
    font-size: 3rem;
    color: rgba(56, 189, 248, 0.15); /* Azul clarinho quase transparente */
    position: absolute;
    top: 20px;
    right: 20px;
}

.feedback-author {
    margin-top: 20px;
    border-top: 1px solid #334155;
    padding-top: 15px;
}

.feedback-author strong { display: block; color: #f1f5f9; }
.feedback-author span { color: #94a3b8; font-size: 0.85rem; }

/* Estilos para Páginas de Artigo */
.article-content {
    text-align: left;
    line-height: 1.8;
    color: #cbd5e1;
}
.article-content h2 { color: #f1f5f9; margin-top: 40px; border-bottom: 1px solid #334155; padding-bottom: 10px; }
.article-content p { margin-bottom: 20px; font-size: 1.1rem; }

/* Imagens interativas nos artigos */
.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-content img:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 25px rgba(56, 189, 248, 0.3); /* Sombra azulada com o tema */
}

/* Botão Hamburger (Mobile) */
.hamburger-btn {
    display: none;
    background: transparent;
    border: none;
    color: #f1f5f9;
    font-size: 1.5rem;
    cursor: pointer;
}
.hamburger-btn:hover { color: #38bdf8; }

/* Botão de Tema (Modo Escuro / Claro) */
.btn-theme {
    background: transparent;
    border: none;
    color: #f1f5f9;
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.3s;
    display: flex;
    align-items: center;
}
.btn-theme:hover { color: #38bdf8; }

/* Modo Claro (Light Mode) - Inclusão e Acessibilidade */
body.light-mode { background-color: #f8fafc; color: #334155; }

body.light-mode nav { background-color: rgba(255, 255, 255, 0.95); box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05); }
body.light-mode nav a, body.light-mode .btn-theme, body.light-mode .hamburger-btn { color: #334155; }
body.light-mode nav a:hover, body.light-mode nav a.active, body.light-mode .btn-theme:hover, body.light-mode .hamburger-btn:hover { color: #0284c7; }
body.light-mode nav a::after { background-color: #0284c7; }

body.light-mode h1, body.light-mode h2, body.light-mode .skill-card h3, body.light-mode .timeline-content h3 { color: #0284c7; }

body.light-mode li, body.light-mode .skill-card, body.light-mode .timeline-content, body.light-mode .feedback-card, body.light-mode .popup-content {
    background-color: #ffffff; color: #334155; border-top-color: #0284c7; box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}
body.light-mode li { border-left-color: #0284c7; border-top-color: transparent; }
body.light-mode .timeline-dot { background-color: #ffffff; border-color: #0284c7; }
body.light-mode .timeline::after { background-color: #0284c7; }

body.light-mode .btn-link { background-color: #0284c7; color: #ffffff; }
body.light-mode .btn-link:hover { background-color: #0369a1; }

body.light-mode .contact-form input, body.light-mode .contact-form textarea { background-color: #ffffff; color: #334155; border: 1px solid #cbd5e1; }
body.light-mode .article-content, body.light-mode .feedback-author span, body.light-mode .timeline-date { color: #475569; }
body.light-mode .article-content h1, body.light-mode .article-content h2 { color: #0f172a; border-bottom-color: #cbd5e1; }
body.light-mode .feedback-author strong, body.light-mode .popup-content h3 { color: #0f172a; }

/* Animação Fade-In (Seções aparecendo ao rolar) */
.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    ul, .grid-skills {
        grid-template-columns: 1fr;
    }

    nav {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        padding: 15px 0;
    }

    .hamburger-btn {
        display: block;
        align-self: flex-end;
        margin-right: 20px;
    }

    /* Esconde os links no mobile apenas onde há o botão hamburger */
    .hamburger-btn ~ a {
        display: none; 
    }

    nav.open .hamburger-btn ~ a { display: block; }

    .btn-theme {
        position: absolute;
        top: 15px;
        left: 20px;
    }
}
