/* ===== COMPETÊNCIAS TÉCNICAS SEPARADAS ===== */
.competencias-grid {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}
.competencias-bloco {
    flex: 1 1 260px;
    background: #1e293b;
    border-radius: 0.75rem;
    padding: 1.5rem 1.25rem 1.25rem 1.25rem;
    box-shadow: 0 4px 24px 0 rgba(0,191,255,0.07);
    min-width: 240px;
    margin-bottom: 1rem;
}
.competencias-titulo {
    display: flex;
    align-items: center;
    font-size: 1.1rem;
    font-weight: 700;
    color: #00bfff;
    letter-spacing: 0.01em;
    margin-bottom: 0.5rem;
}
@media (max-width: 900px) {
    .competencias-grid {
        flex-direction: column;
        gap: 1.5rem;
    }
}
/* ===== ESTILOS BASE ===== */
body {
    background-color: #020617;
    color: #cbd5e1;
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    color: #f0f4f8;
    font-weight: bold;
}

h2 {
    font-size: 1.875rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid rgba(0, 191, 255, 0.3);
    padding-bottom: 0.75rem;
}

section {
    margin-bottom: 5rem;
}

/* ===== GRID DE PROJETOS ===== */
#projetos .grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

@media (max-width: 768px) {
    #projetos .grid {
        grid-template-columns: 1fr;
    }
}

/* ===== CARTÕES DE PROJETO ===== */
.project-card {
    background-color: #0f172a;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-card h3 {
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.project-card p {
    color: #cbd5e1;
    line-height: 1.6;
    flex-grow: 1;
}

.project-card:hover {
    box-shadow: 0 25px 50px -12px rgba(0, 191, 255, 0.2);
    transform: translateY(-0.25rem);
}

/* ===== PILLS DE TECNOLOGIA ===== */
.tech-pill {
    display: inline-block;
    background-color: #1e293b;
    color: #00bfff;
    padding: 0.2rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.tech-pill i {
    vertical-align: middle;
    margin-right: 0.35rem;
    opacity: 0.95;
}

/* Reduce gap for containers that used tailwind gap-2 to make badges more compact */
.flex.flex-wrap.gap-2 {
    gap: 0.35rem !important;
}

/* Logo inside pill (use local SVGs in res/logos/) */
.pill-logo {
    width: 16px;
    height: 16px;
    object-fit: contain;
    margin-right: 0.35rem;
    vertical-align: middle;
    display: inline-block;
}

/* ===== DESCRIÇÕES DE PROJETOS ===== */
.project-card p[data-i18n] {
    font-size: 0.9rem;
    text-align: justify;
    hyphens: auto;
}

@media (max-width: 768px) {
    .project-card p[data-i18n] {
        text-align: left;
    }
}

/* ===== BOTÃO FLUTUANTE DE DOWNLOAD ===== */
.fab-download {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 50;
    background-color: #00bfff;
    color: white;
    padding: 1rem;
    border-radius: 9999px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.fab-download:hover {
    background-color: #60a5fa;
    transform: scale(1.1);
}

/* ===== BOTÕES DE CONTROLO ===== */
.control-group {
    position: fixed;
    right: 1.5rem;
    bottom: 5.5rem; /* acima do botão de download */
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 60;
}
.control-btn {
    background: rgba(14, 23, 40, 0.9);
    color: #cbd5e1;
    border: none;
    padding: 0.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 6px 18px rgba(2,6,23,0.6);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    transition: transform 0.15s ease, background 0.15s ease;
}
.control-btn:hover {
    transform: translateY(-3px);
    background: #0b1220;
}
.control-btn:focus {
    outline: 3px solid rgba(0,191,255,0.2);
    outline-offset: 2px;
}

/* ===== MODO CLARO ===== */
body.light {
    background-color: #f7fafc;
    color: #0f172a;
}
body.light h1, body.light h2, body.light h3 {
    color: #0f172a;
}
body.light .project-card {
    background-color: #ffffff;
    box-shadow: 0 10px 30px rgba(2,6,23,0.06);
}
body.light .project-card:hover {
    box-shadow: 0 25px 50px -12px rgba(3, 102, 214, 0.15);
}
body.light .project-card h3 {
    color: #0366d6;
}
body.light .project-card p {
    color: #334155;
}
body.light .competencias-bloco {
    background-color: #ffffff;
    box-shadow: 0 10px 30px rgba(2,6,23,0.06);
}
body.light .competencias-titulo {
    color: #0366d6;
}
body.light .tech-pill {
    background-color: #e6eef9;
    color: #0366d6;
}
body.light .tech-pill:hover {
    background-color: #d0e2f7;
}
body.light .nav-tab {
    background-color: #f1f5f9;
    color: #0f172a;
}
body.light .nav-tab.active {
    background-color: #0366d6;
    color: white;
}
/* Improve content contrast in light mode */
body.light p,
body.light li,
body.light .tab-content,
body.light .project-card,
body.light .competencias-bloco,
body.light .frameworks-bloco,
body.light .timeline-item,
body.light .timeline-dot,
body.light .competencias-titulo {
    color: #0f172a !important;
}

/* Override utility-like classes used in markup to ensure readable contrast */
body.light .text-brand-gray-300 { color: #0f172a !important; }
body.light .text-brand-gray-400 { color: #334155 !important; }
body.light .text-brand-gray-500 { color: #475569 !important; }

/* Card de Sobre Mim no modo light */
body.light .bg-brand-gray-900 {
    background-color: #ffffff !important;
    box-shadow: 0 10px 30px rgba(2,6,23,0.06);
}

/* Links in light mode should remain visible */
body.light a { color: #0366d6; }

/* ===== SISTEMA DE NAVEGAÇÃO POR ABAS ===== */
.nav-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 3rem;
    border-bottom: 2px solid #1e293b;
    padding-bottom: 1rem;
}

.nav-tab {
    padding: 0.75rem 1.5rem;
    border-top-left-radius: 0.5rem;
    border-top-right-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s;
    cursor: pointer;
    background-color: #0f172a;
    color: #94a3b8;
    border: none;
}

.nav-tab:hover {
    color: #cbd5e1;
    background-color: #1e293b;
}

.nav-tab.active {
    background-color: #00bfff;
    color: white;
    box-shadow: 0 10px 15px -3px rgba(0, 191, 255, 0.3);
}

.nav-tab span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ===== CONTEÚDO DAS ABAS ===== */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* ===== TIMELINE DE EXPERIÊNCIA ===== */
.timeline {
    position: relative;
    border-left: 4px solid #1e293b;
}

.timeline-item {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 2.5rem;
}

.timeline-dot {
    position: absolute;
    left: -0.625rem;
    top: 0.25rem;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 9999px;
    border: 4px solid #020617;
}

.timeline-dot.active {
    background-color: #00bfff;
}

.timeline-dot.inactive {
    background-color: #1e293b;
}

/* ===== UTILITÁRIOS ===== */
.scroll-smooth {
    scroll-behavior: smooth;
}

/* ===== RESPONSIVIDADE ===== */
@media (max-width: 768px) {
    .nav-tabs {
        flex-direction: column;
        align-items: stretch;
    }
    
    .nav-tab {
        width: 100%;
        text-align: center;
    }
}

/* ===== MENU DE DOWNLOAD CV (PT/EN) ===== */
.cv-download-menu {
    position: fixed;
    right: 1.5rem;
    bottom: 5.25rem; /* sits above the fab button */
    z-index: 70;
    background: #0b1220;
    color: #cbd5e1;
    padding: 0.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 10px 30px rgba(2,6,23,0.6);
    min-width: 200px;
    /* start hidden but keep in flow for transitions */
    opacity: 0;
    transform: translateY(6px) scale(0.98);
    visibility: hidden;
    pointer-events: none;
    transition: opacity 180ms ease, transform 180ms ease, visibility 180ms;
}
.cv-download-menu[aria-hidden="false"] {
    opacity: 1;
    transform: translateY(0) scale(1);
    visibility: visible;
    pointer-events: auto;
}
.cv-download-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #00bfff;
    margin-bottom: 0.25rem;
}
.cv-download-actions {
    display: flex;
    gap: 0.4rem;
    justify-content: space-between;
}
.cv-download-option {
    background: transparent;
    border: 1px solid rgba(99,102,241,0.08);
    color: #e6eef9;
    padding: 0.45rem 0.7rem;
    border-radius: 0.375rem;
    cursor: pointer;
    font-weight: 700;
    transition: background 140ms, color 140ms, transform 140ms;
}
.cv-download-option:hover, .cv-download-option:focus {
    background: rgba(0,191,255,0.08);
    color: #00bfff;
    outline: none;
    transform: translateY(-2px);
}
/* Light mode adjustments */
body.light .cv-download-menu {
    background: #ffffff;
    color: #0f172a;
    box-shadow: 0 8px 20px rgba(2,6,23,0.06);
}
