*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: #0d0d0d;
    color: #e0e0e0;
    font-family: 'Courier New', Courier, monospace;
    padding: 30px 40px;
    width: 100%;
    min-height: 100vh;
    line-height: 1.6;
}

.wrapper {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}

/* Header */
header {
    border: 1px solid #333333;
    background-color: #141414;
    padding: 20px 25px;
    margin-bottom: 25px;
}

.terminal-bar {
    border-bottom: 1px solid #282828;
    padding-bottom: 8px;
    margin-bottom: 12px;
    font-size: 0.85rem;
    color: #666666;

    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.terminal-date {
    color: #555555;
    white-space: nowrap;
}

.header-title {
    font-size: 2rem;
    font-weight: bold;
    color: #ffffff;
    letter-spacing: -0.5px;
}

.cursor {
    display: inline-block;
    width: 9px;
    height: 18px;
    background-color: #ffffff;
    margin-left: 6px;
    vertical-align: middle;
    animation: textBlink 1s infinite;
}

@keyframes textBlink {
    50% { opacity: 0; }
}

.header-sub {
    color: #888888;
    font-size: 0.9rem;
    margin-top: 4px;
}

/* Banner Global de Status */
.system-banner {
    border: 1px solid #333333;
    padding: 15px 20px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.95rem;
    letter-spacing: 1px;
}

.system-banner.ONLINE {
    border-color: #15803d;
    background-color: #052e16;
    color: #4ade80;
}

.system-banner.DEGRADED {
    border-color: #a16207;
    background-color: #451a03;
    color: #facc15;
}

.system-banner.OFFLINE {
    border-color: #b91c1c;
    background-color: #450a0a;
    color: #f87171;
}

/* Boxes */
.retro-box {
    border: 1px solid #333333;
    background-color: #111111;
    padding: 25px;
    margin-bottom: 25px;
}

h2 {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #ffffff;
    border-bottom: 1px dashed #333333;
    padding-bottom: 8px;
    margin-bottom: 18px;
}

/* Lista de Serviços */
.projects-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.project-card {
    border-bottom: 1px solid #222222;
    padding-bottom: 14px;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.project-card:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.project-card.hidden {
    display: none;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 6px;
}

.proj-name a {
    font-weight: bold;
    color: #ffffff;
    text-decoration: underline;
    font-size: 1.05rem;
}

.proj-name a:hover {
    color: #aaaaaa;
}

.proj-desc {
    color: #999999;
    font-size: 0.9rem;
    margin-bottom: 6px;
}

.proj-meta {
    display: flex;
    gap: 15px;
    align-items: center;
    font-size: 0.75rem;
    color: #666666;
}

.proj-type {
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* BADGES DE STATUS COM A BOLINHA PISCANDO */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background-color: #1a1a20;
    color: #e1e1e6;
    font-size: 0.8rem;
    font-weight: bold;
    border-radius: 6px;
    border: 1px solid #2a2a35;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
}

/* Animação Verde (Online) */
.status-badge.ONLINE .status-dot {
    background-color: #22c55e;
    animation: blinkGreen 2s infinite ease-in-out;
}

@keyframes blinkGreen {
    0%, 100% { background-color: #22c55e; box-shadow: 0 0 8px #22c55e; }
    50% { background-color: #14532d; box-shadow: 0 0 2px #14532d; }
}

/* Animação Vermelha (Offline) */
.status-badge.OFFLINE .status-dot {
    background-color: #ef4444;
    animation: blinkRed 1.5s infinite ease-in-out;
}

@keyframes blinkRed {
    0%, 100% { background-color: #ef4444; box-shadow: 0 0 8px #ef4444; }
    50% { background-color: #7f1d1d; box-shadow: 0 0 2px #7f1d1d; }
}

/* Animação Amarela (Degradado/Lento) */
.status-badge.DEGRADED .status-dot {
    background-color: #eab308;
    animation: blinkYellow 2s infinite ease-in-out;
}

@keyframes blinkYellow {
    0%, 100% { background-color: #eab308; box-shadow: 0 0 8px #eab308; }
    50% { background-color: #713f12; box-shadow: 0 0 2px #713f12; }
}

/* Filtros */
.project-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.filter-btn {
    background: #151515;
    border: 1px solid #333333;
    color: #777777;
    font-family: inherit;
    font-size: 0.75rem;
    padding: 6px 11px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-btn:hover {
    color: #ffffff;
    border-color: #555555;
}

.filter-btn.active {
    color: #ffffff;
    border-color: #777777;
    background: #1c1c1c;
}

.no-projects {
    color: #555555;
    font-size: 0.9rem;
}

/* Tech Stack */
.stacks-row {
    display: flex;
    gap: 25px;
    font-size: 2.2rem;
    flex-wrap: wrap;
    align-items: center;
    padding: 5px 0;
}

.stacks-row i {
    color: #777777;
    transition: color 0.2s, transform 0.2s;
    cursor: pointer;
}

.stacks-row i:hover {
    color: #ffffff;
    transform: translateY(-2px);
}

/* Footer */
footer {
    border-top: 1px solid #333333;
    padding-top: 20px;
    margin-top: 35px;
    font-size: 0.85rem;
    color: #666666;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.footer-links a {
    color: #aaaaaa;
    text-decoration: underline;
}

.footer-links a:hover {
    color: #ffffff;
}

/* Mobile */
@media (max-width: 650px) {
    body { padding: 15px 12px; }
    header, .retro-box { padding: 16px; margin-bottom: 18px; }
    .header-title { font-size: 1.5rem; }
    .terminal-bar { flex-direction: column; gap: 3px; }
    .project-header { flex-direction: column; align-items: flex-start; }
    footer { flex-direction: column; align-items: flex-start; }
}