html {
    scroll-behavior: smooth;
}

/* --- GLOBAIS E VARIÁVEIS --- */
:root {
    --primary-color: #3498db;
    --primary-hover: #2980b9;
    --dark-bg: #0d1117;
    --dark-card-bg: #161b22;
    --light-bg: #f7f9fc;
    --light-card-bg: #ffffff;
    --text-dark: #24292e;
    --text-light: #c9d1d9;
    --border-dark: #30363d;
    --border-light: #e1e4e8;
    --shadow-light: 0 8px 24px rgba(149, 157, 165, 0.2);
    --shadow-dark: 0 8px 24px rgba(0, 0, 0, 0.5);

    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Roboto Mono', monospace;

    /* Variáveis para a posição do mouse */
    --mouse-x: 50%;
    --mouse-y: 50%;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background-color: var(--light-bg);
    color: var(--text-dark);
    transition: background-color 0.3s, color 0.3s;
}

body.dark {
    background-color: var(--dark-bg);
    color: var(--text-light);
}

/* --- HERO HEADER --- */
.hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: 100vh;
    background-color: var(--light-bg);
    position: relative;
    padding: 2rem;
    overflow: hidden;
    background-image: radial-gradient(
        circle at var(--mouse-x) var(--mouse-y),
        rgba(52, 152, 219, 0.15),
        transparent 30%
    );
    transition: background-color 0.3s;
}

body.dark .hero {
    background-color: var(--dark-bg);
    background-image: radial-gradient(
        circle at var(--mouse-x) var(--mouse-y),
        rgba(52, 152, 219, 0.2),
        transparent 25%
    );
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 0.5rem;
}

.hero-subtitle {
    font-size: clamp(1rem, 4vw, 1.5rem);
    font-family: var(--font-secondary);
    color: var(--primary-color);
    margin-bottom: 2rem;
    min-height: 1.5rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* --- BOTÕES --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}
.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}
.btn-secondary:hover {
    background-color: var(--primary-color);
    color: white;
}

.btn-link {
    background-color: transparent;
    color: var(--text-dark);
    padding: 0.5rem 1rem;
    text-decoration: underline;
}
body.dark .btn-link { color: var(--text-light); }
.btn-link:hover { color: var(--primary-color); }

/* --- CONTROLES DO CABEÇALHO (IDIOMA E MODO ESCURO) --- */
.header-controls {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* --- SELETOR DE IDIOMA --- */
.language-selector {
    display: flex;
    gap: 0.5rem;
    background: var(--light-card-bg);
    padding: 0.5rem;
    border-radius: 50px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-light);
}

body.dark .language-selector {
    background: var(--dark-card-bg);
    border-color: var(--border-dark);
    box-shadow: var(--shadow-dark);
}

.lang-flag {
    width: 30px;
    height: 30px;
    cursor: pointer;
    border-radius: 50%;
    transition: transform 0.3s, opacity 0.3s;
    opacity: 0.6;
}

.lang-flag:hover {
    transform: scale(1.1);
    opacity: 1;
}

.lang-flag.active {
    opacity: 1;
    transform: scale(1.1);
    box-shadow: 0 0 0 2px var(--primary-color);
}

/* --- DARK MODE TOGGLE --- */
#darkModeToggle {
    background: var(--light-card-bg);
    border: 1px solid var(--border-light);
    border-radius: 50%;
    width: 45px;
    height: 45px;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-light);
}

body.dark #darkModeToggle {
    background: var(--dark-card-bg);
    border-color: var(--border-dark);
    box-shadow: var(--shadow-dark);
}

#darkModeToggle:hover {
    transform: scale(1.1) rotate(15deg);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* --- CONTAINER E SEÇÕES --- */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.section {
    padding-top: 4rem;
    padding-bottom: 4rem;
    position: relative;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    font-weight: 700;
    position: relative;
}
.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    margin: 0.5rem auto 0;
    border-radius: 2px;
}

/* --- GRID DE PROJETOS (MASONRY/PINTEREST) --- */
.project-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(280px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--light-card-bg);
    border-radius: 12px;
    box-shadow: var(--shadow-light);
    overflow: hidden;
    transition: transform 0.4s ease-out, box-shadow 0.4s ease-out;
    border: 1px solid var(--border-light);
    
    display: inline-block;
    width: 100%;
    margin-bottom: 2rem;
    break-inside: avoid;
}
body.dark .card {
    background: var(--dark-card-bg);
    box-shadow: var(--shadow-dark);
    border: 1px solid var(--border-dark);
}
.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.2);
}

.card-image-container {
    overflow: hidden;
}

.card-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s ease;
}
.card:hover .card-image {
    transform: scale(1.05);
}

.card-content {
    padding: 1.5rem;
}

.card-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background-color: var(--primary-color);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    font-family: var(--font-secondary);
}

.card-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.tech-stack {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.tech-stack span {
    font-family: var(--font-secondary);
    color: var(--primary-color);
    background-color: rgba(52, 152, 219, 0.1);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}
body.dark .tech-stack span {
    background-color: rgba(52, 152, 219, 0.2);
}

.card-actions {
    margin-top: 1.5rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

/* --- TIMELINE DE EXPERIÊNCIA --- */
.timeline {
    position: relative;
    max-width: 750px;
    margin: 0 auto;
}
.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--border-light);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
}
body.dark .timeline::after { background-color: var(--border-dark); }

.timeline-item {
    padding: 1rem 3rem;
    position: relative;
    width: 50%;
}
.timeline-item:nth-child(odd) { left: 0; }
.timeline-item:nth-child(even) { left: 50%; }

.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    background-color: var(--light-bg);
    border: 4px solid var(--primary-color);
    top: 20px;
    border-radius: 50%;
    z-index: 1;
}
body.dark .timeline-item::after { background-color: var(--dark-bg); }

.timeline-item:nth-child(even)::after { left: -10px; }

.timeline-content {
    padding: 1.5rem;
    background: var(--light-card-bg);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    position: relative;
    transition: all 0.3s ease; 
}

.timeline-content:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-light);
}

body.dark .timeline-content {
    background: var(--dark-card-bg);
    border-color: var(--border-dark);
}

body.dark .timeline-content:hover {
    box-shadow: var(--shadow-dark);
}

.timeline-content h3 { font-size: 1.25rem; font-weight: 600; margin-bottom: 0.5rem; }
.timeline-date {
    font-family: var(--font-secondary);
    font-size: 0.9rem;
    color: var(--primary-color);
    margin-bottom: 0.8rem;
    display: inline-block;
}

/* --- CARROSSEL DE RECOMENDAÇÕES --- */
.carousel-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}
.carousel-track {
    display: flex;
    overflow: hidden;
}
.carousel-card {
    flex: 0 0 100%;
    padding: 2rem;
    text-align: center;
    transition: opacity 0.5s, transform 0.5s;
    opacity: 0;
    transform: scale(0.95);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
}
.carousel-card.active {
    opacity: 1;
    transform: scale(1);
    position: relative;
}
.carousel-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1rem;
    border: 3px solid var(--primary-color);
}
.carousel-card h3 { font-size: 1.3rem; margin-bottom: 0.25rem; }
.carousel-card .role { color: #6c757d; margin-bottom: 1rem; }
.carousel-card .text { font-style: italic; max-width: 600px; margin: 0 auto; }
body.dark .carousel-card .role { color: #8b949e; }

.carousel-buttons {
    text-align: center;
    margin-top: 1.5rem;
}
.carousel-button {
    background: var(--light-card-bg);
    border: 1px solid var(--border-light);
    color: var(--text-dark);
    border-radius: 50%;
    width: 45px;
    height: 45px;
    font-size: 1.5rem;
    cursor: pointer;
    margin: 0 0.5rem;
    transition: all 0.3s;
}
body.dark .carousel-button {
    background: var(--dark-card-bg);
    border-color: var(--border-dark);
    color: var(--text-light);
}
.carousel-button:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* --- CARROSSEL DE TECNOLOGIAS --- */
.tech-carousel-container {
    position: relative;
    max-width: 90%;
    margin: 0 auto;
}
.tech-carousel-slider {
    overflow: hidden;
    position: relative;
    background: transparent;
    -webkit-mask-image: linear-gradient(to right, transparent, white 20%, white 80%, transparent);
    mask-image: linear-gradient(to right, transparent, white 20%, white 80%, transparent);
}
.tech-slide-track {
    display: flex;
    width: calc(20 * 200px); /* 10 slides * 2 (duplicado) * 200px (largura + margem) */
    animation: scroll 30s linear infinite;
}
.tech-carousel-slider:hover .tech-slide-track {
    animation-play-state: paused;
}
@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-10 * 200px)); } /* Metade dos slides * (largura do slide + margem) */
}
.tech-slide {
    height: 100px;
    width: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    perspective: 100px;
    margin: 0 50px; /* Espaçamento entre logos */
}
.tech-slide img {
    width: 70px;
    transition: transform 0.3s;
    filter: grayscale(1);
    opacity: 0.7;
}
body.dark .tech-slide img {
    opacity: 0.6;
}
.tech-slide img:hover {
    transform: scale(1.2);
    filter: grayscale(0);
    opacity: 1;
}
.tech-description {
    text-align: center;
    max-width: 800px;
    margin: 3rem auto 0;
    font-size: 1.1rem;
    line-height: 1.7;
}

/* --- FOOTER --- */
.footer {
    text-align: center;
    padding: 2rem;
    font-size: 0.9rem;
    color: #6c757d;
    border-top: 1px solid var(--border-light);
}
body.dark .footer {
    border-top: 1px solid var(--border-dark);
}


/* --- RESPONSIVIDADE --- */
@media (max-width: 768px) {
    .hero-title { font-size: 2.5rem; }
    .hero-subtitle { font-size: 1.2rem; }
    .container { padding: 4rem 1rem; }

    .project-grid { column-count: 1; }

    .timeline::after { left: 15px; }
    .timeline-item { width: 100%; padding-left: 50px; padding-right: 1rem; }
    .timeline-item:nth-child(even) { left: 0; }
    .timeline-item::after { left: 6px; }

    .header-controls {
        top: 1rem;
        right: 1rem;
    }
}

/* --- ESTILOS PARA AS SETAS DE SCROLL COM TEXTO --- */
.scroll-down-arrow {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-dark);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    cursor: pointer;
    animation: bounce 2s infinite;
    bottom: 1rem;
}

body.dark .scroll-down-arrow {
    color: var(--text-light);
}

.scroll-down-arrow:hover {
    color: var(--primary-color);
}

.scroll-text {
    font-size: 0.9rem;
    font-weight: 600;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* --- SEÇÃO "SOBRE MIM" DE PÁGINA INTEIRA --- */
.section-fullpage {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 4rem 2rem;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 4rem;
    max-width: 1200px;
    width: 100%;
}

.about-image-container {
    flex: 0 0 300px;
}

.about-image-container img {
    width: 100%;
    height: auto;
    border-radius: 50%;
    border: 5px solid var(--primary-color);
    box-shadow: var(--shadow-light);
}

body.dark .about-image-container img {
    box-shadow: var(--shadow-dark);
}

.about-text-container {
    flex: 1;
}

.about-text-container .section-title {
    text-align: left;
    margin-bottom: 1.5rem;
}

.about-text-container .section-title::after {
    margin: 0.5rem 0 0;
}

.about-text-container p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

@media (max-width: 900px) {
    .about-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .about-text-container .section-title,
    .about-text-container .section-title::after {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }
}

/* --- SEÇÃO DE CONTATO --- */
.contact-subtitle {
    text-align: center;
    max-width: 500px;
    margin: -2rem auto 3rem;
    font-size: 1.1rem;
    line-height: 1.6;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 2rem;
    text-decoration: none;
    color: var(--text-dark);
    background-color: var(--light-card-bg);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-light);
}

body.dark .contact-item {
    color: var(--text-light);
    background-color: var(--dark-card-bg);
    border-color: var(--border-dark);
    box-shadow: var(--shadow-dark);
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.contact-item i {
    font-size: 1.8rem;
    color: var(--primary-color);
}

.contact-item span {
    font-size: 1rem;
    font-weight: 500;
}


/* --- ANIMAÇÃO DE SCROLL (FADE-IN & SLIDE-UP) --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- ESTILOS DO CHATBOT --- */
:root {
    --chat-gradient: linear-gradient(135deg, #4facfe 0%, #3498db 100%);
    --chat-user-bg: #2ecc71;
    --chat-assistant-bg: var(--light-card-bg);
}

body.dark {
    --chat-assistant-bg: #161b22;
}

.chat-trigger-wrapper {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.chat-cta-bubble {
    display: none;
}

.chat-open-btn {
    background: var(--chat-gradient);
    color: white;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
    transition: all 0.3s ease;
    animation: pulse 2.5s infinite;
    position: relative;
    z-index: 2;
}

.chat-open-icon {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    pointer-events: none;
}

.chat-open-btn:hover {
    transform: scale(1.1) rotate(10deg);
    animation: none;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(52, 152, 219, 0.7); }
    70% { box-shadow: 0 0 0 20px rgba(52, 152, 219, 0); }
    100% { box-shadow: 0 0 0 0 rgba(52, 152, 219, 0); }
}

.chat-container {
    position: fixed;
    bottom: 6.5rem;
    right: 2rem;
    width: 400px;
    height: 75vh;
    max-height: 650px;
    background: var(--light-bg);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 1001;
    border: 1px solid var(--border-light);
    opacity: 0;
    transform: translateY(50px);
    transform-origin: bottom right;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    pointer-events: none; 
}

.chat-container.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.chat-container.fullscreen {
    width: 100%; height: 100%; max-height: 100%;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 0;
}

body.dark .chat-container {
    background: var(--dark-bg);
    border-color: var(--border-dark);
}

.chat-header {
    background: white;
    color: var(--text-dark);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    border-bottom: 1px solid var(--border-light);
    position: relative;
    z-index: 2;
}
body.dark .chat-header {
    background: var(--dark-card-bg);
    border-color: var(--border-dark);
    color: var(--text-light);
}

.chat-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 1rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    background-color: #f0f0f0;
    overflow: hidden;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.chat-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.15);
}

.chat-header-title {
    flex-grow: 1;
}
.chat-header-title h3 { margin: 0; font-size: 1.2rem; }
.chat-header-title span {
    font-size: 0.85rem;
    color: #2ecc71;
    font-weight: 600;
}

.chat-header-buttons button {
    background: none; border: none;
    color: #aaa;
    font-size: 1.2rem; cursor: pointer;
    padding: 0.5rem;
    transition: color 0.2s;
}
.chat-header-buttons button:hover { color: var(--primary-color); }
.chat-close-btn { font-size: 1.8rem; }
body.dark .chat-header-buttons button { color: #777; }
body.dark .chat-header-buttons button:hover { color: var(--text-light); }


.chat-box {
    flex-grow: 1;
    padding: 1.5rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background-color: var(--light-bg);
    background-image: radial-gradient(circle, var(--border-light) 1px, transparent 1px);
    background-size: 20px 20px;
}
body.dark .chat-box {
    background-color: var(--dark-bg);
    background-image: radial-gradient(circle, var(--border-dark) 1px, transparent 1px);
}

.chat-message {
    max-width: 80%;
    padding: 0.8rem 1.2rem;
    border-radius: 12px;
    line-height: 1.5;
    word-wrap: break-word;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.chat-message.assistant {
    background-color: var(--chat-assistant-bg);
    color: var(--text-dark);
    border-bottom-left-radius: 4px;
    align-self: flex-start;
}
body.dark .chat-message.assistant {
    color: var(--text-light);
}

.chat-message.user {
    background-color: var(--primary-color);
    color: white;
    border-bottom-right-radius: 4px;
    align-self: flex-end;
}

.typing-indicator {
    align-self: flex-start; display: flex; align-items: center; gap: 5px; padding: 0.75rem 1.2rem;
}
.typing-indicator span {
    width: 8px; height: 8px; background-color: #999; border-radius: 50%;
    animation: bounce-typing 1.4s infinite ease-in-out both;
}
.typing-indicator span:nth-child(1) { animation-delay: -0.32s; }
.typing-indicator span:nth-child(2) { animation-delay: -0.16s; }
@keyframes bounce-typing {
    0%, 80%, 100% { transform: scale(0); } 40% { transform: scale(1.0); }
}

.chat-input-area {
    display: flex;
    padding: 1rem;
    border-top: 1px solid var(--border-light);
    flex-shrink: 0;
    background: white;
    gap: 0.5rem;
    align-items: center;
}
body.dark .chat-input-area {
    border-top-color: var(--border-dark);
    background: var(--dark-card-bg);
}

#user-input {
    flex-grow: 1;
    border: 1px solid var(--border-light);
    outline: none;
    padding: 0.75rem 1rem;
    background: var(--light-bg);
    font-size: 1rem;
    color: var(--text-dark);
    border-radius: 25px;
    transition: border-color 0.3s, box-shadow 0.3s;
}
#user-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}
body.dark #user-input {
    background: var(--dark-bg);
    color: var(--text-light);
    border-color: var(--border-dark);
}

#send-btn {
    background: var(--chat-gradient);
    color: white;
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}
#send-btn:hover {
    transform: scale(1.1) rotate(-15deg);
    box-shadow: 0 4px 10px rgba(52, 152, 219, 0.5);
}

.quick-replies {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0 1.5rem 0.5rem;
}
.quick-reply-btn {
    background-color: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}
.quick-reply-btn:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* --- ESTILO ATUALIZADO PARA NOTIFICAÇÃO PROATIVA --- */
.chat-proactive-notification {
    position: absolute;
    bottom: 0;
    right: 85px;
    background: var(--dark-card-bg);
    color: var(--text-light);
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    max-width: 280px;
    
    /* Usando Flexbox para alinhar texto e botão */
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem;
    
    /* Adicione esta linha para alinhar os itens à esquerda */
    align-items: flex-start; 
    
    /* Animação */
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease-out, transform 0.4s ease-out;
    pointer-events: none;
}

body:not(.dark) .chat-proactive-notification {
    background: var(--light-card-bg);
    color: var(--text-dark);
    box-shadow: var(--shadow-light);
}

.chat-proactive-notification.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.chat-proactive-notification span {
    font-size: 0.95rem;
    line-height: 1.4;
}

.proactive-ask-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    align-self: flex-start;
}

.proactive-ask-btn:hover {
    background-color: var(--primary-hover);
}

.chat-proactive-notification::after {
    content: '';
    position: absolute;
    bottom: 15px;
    right: -8px;
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 8px solid var(--dark-card-bg);
}

body:not(.dark) .chat-proactive-notification::after {
    border-left-color: var(--light-card-bg);
}

/* --- PÁGINA DE CURSOS & CERTIFICAÇÕES --- */

.hero.hero-inner {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 6rem;
    padding-bottom: 4rem;
}

.courses-subtitle {
    font-size: clamp(1rem, 3vw, 1.25rem);
    font-family: var(--font-secondary);
    color: var(--text-muted);
    margin: 1rem auto 2rem;
    max-width: 700px;
}

body.dark .courses-subtitle {
    color: var(--text-light);
    opacity: 0.8;
}

.courses-intro {
    max-width: 700px;
    margin: 0 auto 2rem;
    text-align: center;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-muted);
}

body.dark .courses-intro {
    color: var(--text-light);
    opacity: 0.8;
}

.courses-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 2.5rem;
}

.courses-filter-tag {
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    border: 1px solid var(--border-light);
    font-size: 0.85rem;
    font-family: var(--font-secondary);
    cursor: default;
    background: var(--light-card-bg);
}

body.dark .courses-filter-tag {
    border-color: var(--border-dark);
    background: var(--dark-card-bg);
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.75rem;
}

@media (max-width: 900px) {
    .courses-grid {
        grid-template-columns: 1fr;
    }
}

.course-card .card-content {
    position: relative;
}

.course-header {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-bottom: 0.75rem;
}

.course-title {
    font-size: 1.2rem;
    font-weight: 600;
}

.course-provider {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-family: var(--font-secondary);
}

body.dark .course-provider {
    color: var(--text-light);
    opacity: 0.8;
}

.course-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    align-items: center;
}

.course-meta i {
    margin-right: 0.25rem;
}

.course-tag {
    padding: 0.15rem 0.7rem;
    border-radius: 999px;
    background: rgba(52, 152, 219, 0.1);
    color: var(--primary-color);
    font-size: 0.8rem;
    font-weight: 600;
    font-family: var(--font-secondary);
}

.course-description {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.course-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}
