/* ═══════════════════════════════════════════════
   manutencao.css — Página de Manutenção
   Portfólio Cleison Máquina
   Tema escuro premium · Animação CPU Architecture
   ═══════════════════════════════════════════════ */

:root {
    --accent:       #0099e3;
    --accent-glow:  rgba(0, 153, 227, 0.30);
    --bg:           #061220;
    --text-main:    #e4f3ff;
    --text-muted:   #6b9dbf;
    --border:       rgba(0, 153, 227, 0.18);
    --radius:       14px;
    --transition:   0.35s cubic-bezier(.4, 0, .2, 1);
    --font-display: 'Rajdhani', sans-serif;
    --font-body:    'DM Sans', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background: linear-gradient(150deg, #061220 0%, #091a2f 55%, #0c2342 100%);
    color: var(--text-main);
    min-height: 100dvh;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

img { max-width: 100%; display: block; }
a   { text-decoration: none; color: inherit; }

/* ── Fundo: grelha e orbe ─────────────────────── */

.bg-grid {
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 153, 227, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 153, 227, 0.04) 1px, transparent 1px);
    background-size: 52px 52px;
    pointer-events: none;
    z-index: 0;
}

.bg-glow {
    position: fixed;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(0, 153, 227, 0.14) 0%, transparent 65%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    animation: glow-pulse 8s ease-in-out infinite;
}

@keyframes glow-pulse {
    0%, 100% { opacity: 0.65; transform: translateX(-50%) scale(1); }
    50%       { opacity: 1;    transform: translateX(-50%) scale(1.10); }
}

/* ── Partículas flutuantes ────────────────────── */

#particles {
    position: fixed;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.particle {
    position: absolute;
    bottom: -10px;
    border-radius: 50%;
    background: var(--accent);
    pointer-events: none;
    animation: particle-float linear infinite;
}

@keyframes particle-float {
    0%   { transform: translateY(0);      opacity: 0; }
    8%   { opacity: var(--p-opacity, 0.5); }
    92%  { opacity: calc(var(--p-opacity, 0.5) * 0.35); }
    100% { transform: translateY(-110vh); opacity: 0; }
}

/* ── Navegação ────────────────────────────────── */

.maint-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    height: 62px;
    background: rgba(6, 18, 32, 0.82);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
}

.nav-logo {
    font-family: var(--font-display);
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 0.12em;
    transition: var(--transition);
}

.nav-logo:hover { opacity: 0.8; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    transition: color var(--transition);
}

.nav-links a:hover { color: var(--accent); }

/* ── Layout da página ─────────────────────────── */

.maint-page {
    flex: 1;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 94px 24px 40px;
    gap: 28px;
    text-align: center;
}

/* ── Logotipo ─────────────────────────────────── */

.maint-logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.maint-logo img {
    width: 44px;
    height: 44px;
    filter: drop-shadow(0 0 14px var(--accent-glow));
}

/* ── Área da animação ─────────────────────────── */

.maint-animation {
    width: 100%;
    max-width: 580px;
    position: relative;
}

.maint-screen {
    position: relative;
    display: block;
    width: 100%;
    animation: float-screen 7s ease-in-out infinite;
}

@keyframes float-screen {
    0%, 100% { transform: translateY(0px); }
    50%       { transform: translateY(-8px); }
}

/* ── SVG da CPU Architecture ──────────────────── */

/* Cor de currentColor para os caminhos de circuito */
.cpu-svg {
    display: block;
    width: 100%;
    height: auto;
    /* Caminhos finos em azul subtil, legíveis sobre fundo escuro */
    color: rgba(0, 153, 227, 0.32);
    filter: drop-shadow(0 0 24px rgba(0, 153, 227, 0.15));
}

/* ── CSS Motion Path — luzes a percorrer os circuitos ── */
/* Portado de globals.css do componente shadcn/ui         */

.cpu-architecture {
    offset-anchor: 10px 0px;
    animation: animation-path;
    animation-iteration-count: infinite;
    animation-timing-function: cubic-bezier(0.75, -0.01, 0, 0.99);
}

.cpu-line-1 {
    offset-path: path("M 10 20 h 79.5 q 5 0 5 5 v 30");
    animation-duration: 5s;
    animation-delay: 1s;
}

.cpu-line-2 {
    offset-path: path("M 180 10 h -69.7 q -5 0 -5 5 v 40");
    animation-delay: 6s;
    animation-duration: 2s;
}

.cpu-line-3 {
    offset-path: path("M 130 20 v 21.8 q 0 5 -5 5 h -25");
    animation-delay: 4s;
    animation-duration: 6s;
}

.cpu-line-4 {
    offset-path: path("M 170 80 v -21.8 q 0 -5 -5 -5 h -65");
    animation-delay: 3s;
    animation-duration: 3s;
}

.cpu-line-5 {
    offset-path: path("M 135 65 h 15 q 5 0 5 5 v 10 q 0 5 -5 5 h -39.8 q -5 0 -5 -5 v -35");
    animation-delay: 9s;
    animation-duration: 4s;
}

.cpu-line-6 {
    offset-path: path("M 94.8 95 v -46");
    animation-delay: 3s;
    animation-duration: 7s;
}

.cpu-line-7 {
    offset-path: path("M 88 88 v -15 q 0 -5 -5 -5 h -10 q -5 0 -5 -5 v -5 q 0 -5 5 -5 h 28");
    animation-delay: 4s;
    animation-duration: 4s;
}

.cpu-line-8 {
    offset-path: path("M 30 30 h 25 q 5 0 5 5 v 6.5 q 0 5 5 5 h 35");
    animation-delay: 3s;
    animation-duration: 3s;
}

@keyframes animation-path {
    0%   { offset-distance: 0%; }
    100% { offset-distance: 100%; }
}

/* ── Conteúdo textual ─────────────────────────── */

.maint-content {
    max-width: 520px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.maint-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 153, 227, 0.10);
    border: 1.5px solid var(--border);
    color: var(--accent);
    font-family: var(--font-display);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 6px 18px;
    border-radius: 20px;
    margin-bottom: 20px;
}

.maint-badge i { color: #f59e0b; }

.maint-title {
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 7vw, 5rem);
    font-weight: 700;
    line-height: 1.06;
    color: var(--text-main);
    letter-spacing: -0.01em;
    margin-bottom: 18px;
}

.maint-accent {
    color: var(--accent);
    text-shadow: 0 0 48px rgba(0, 153, 227, 0.38);
}

.maint-desc {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.75;
    font-weight: 300;
    margin-bottom: 32px;
}

/* ── Barra de progresso ───────────────────────── */

.maint-progress {
    width: 100%;
    max-width: 380px;
    margin-bottom: 28px;
}

.progress-track {
    width: 100%;
    height: 6px;
    background: rgba(0, 153, 227, 0.12);
    border-radius: 99px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.progress-fill {
    height: 100%;
    width: 100%;
    border-radius: 99px;
    background: linear-gradient(90deg, #0099e3 0%, #00d4ff 100%);
    box-shadow: 0 0 12px rgba(0, 153, 227, 0.55);
    transform: scaleX(0);
    transform-origin: left center;
}

/* ── Botão de retorno ─────────────────────────── */

.btn-home {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--accent);
    color: #fff;
    padding: 14px 34px;
    border-radius: 50px;
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    border: 2px solid var(--accent);
    transition: var(--transition);
    box-shadow: 0 8px 28px rgba(0, 153, 227, 0.32);
}

.btn-home:hover {
    background: transparent;
    color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 14px 40px rgba(0, 153, 227, 0.42);
}

.btn-home:active { transform: translateY(0); }

/* ── Ícones de redes sociais ──────────────────── */

.maint-social {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 28px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 153, 227, 0.08);
    border: 1.5px solid var(--border);
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: var(--transition);
}

.social-icon:hover {
    background: rgba(0, 153, 227, 0.18);
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 153, 227, 0.25);
}

/* ── Rodapé ───────────────────────────────────── */

.maint-footer {
    position: relative;
    z-index: 1;
    padding: 20px 24px;
    text-align: center;
    border-top: 1px solid var(--border);
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 300;
}

.footer-logo {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
    color: var(--accent);
    letter-spacing: 0.08em;
    margin-right: 4px;
}

/* ── Responsividade ───────────────────────────── */

@media (max-width: 768px) {
    .maint-nav       { padding: 0 20px; }
    .nav-links       { gap: 18px; }
    .nav-links a     { font-size: 0.82rem; }
    .maint-page      { padding: 82px 20px 32px; gap: 20px; }
    .maint-animation { max-width: 380px; }
    .maint-desc      { font-size: 0.95rem; }
    .maint-progress  { max-width: 300px; }
}

@media (max-width: 540px) {
    .nav-links { display: none; }
    .maint-page { padding: 82px 16px 32px; }
    .maint-animation { max-width: 290px; }
    .maint-title { font-size: clamp(2.2rem, 10vw, 3rem); }
    .maint-progress { max-width: 260px; }
    .maint-social { gap: 10px; }
    .social-icon { width: 36px; height: 36px; font-size: 0.82rem; }
}

/* Respeitar a preferência por movimento reduzido */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
