/* ========================================================
   MOZJOB - Estilos personalizados
   Institucional, sóbrio, com animações subtis
   ======================================================== */

* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* ========================================================
   ANIMAÇÕES — Subtis e profissionais
   ======================================================== */

/* Fade in para conteúdo above-the-fold (carregamento) */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeInUp 0.6s ease-out backwards;
}

.fade-in-delay-1 { animation: fadeInUp 0.6s ease-out 0.1s backwards; }
.fade-in-delay-2 { animation: fadeInUp 0.6s ease-out 0.2s backwards; }
.fade-in-delay-3 { animation: fadeInUp 0.6s ease-out 0.3s backwards; }

/* Reveal on scroll — suave, uma direção */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

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

/* Stagger — atrasos progressivos para filhos */
.reveal-stagger > * {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal-stagger.is-visible > * { opacity: 1; transform: translateY(0); }
.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0ms; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 80ms; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 160ms; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 240ms; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 320ms; }
.reveal-stagger.is-visible > *:nth-child(6) { transition-delay: 400ms; }

/* Card hover — subtil */
.card-hover {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card-hover:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -10px rgba(0, 0, 0, 0.12);
}

/* Icon helper */
[data-lucide] {
    display: inline-block;
    vertical-align: middle;
}

/* Smooth transitions em links e botões */
a, button {
    transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

/* Counter — preparar para animação JS */
.counter {
    font-variant-numeric: tabular-nums;
}

/* ========================================================
   TYPEWRITER — Animação de máquina de escrever
   ======================================================== */
.typewriter {
    opacity: 0;
}

.typewriter.typing,
.typewriter.done {
    opacity: 1;
}

.typewriter.typing::after {
    content: '|';
    display: inline-block;
    color: #F59E0B;
    font-weight: 300;
    margin-left: 4px;
    animation: cursorBlink 0.7s steps(2) infinite;
}

@keyframes cursorBlink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Para utilizadores com reduced-motion: mostra texto instantaneamente sem cursor */
@media (prefers-reduced-motion: reduce) {
    .typewriter { opacity: 1 !important; }
    .typewriter::after { display: none !important; }
}

/* Reduzir motion para utilizadores com preferência */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    .reveal, .reveal-stagger > * {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* Utilities */
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* Print */
@media print {
    nav, footer, .no-print { display: none; }
}
