:root {
    --bg: #05070a;
    --card-bg: #0d1117;
    --border: #30363d;
    --text-muted: #8b949e;
    --text-bright: #f0f6fc;
    --blue: #58a6ff;
    --orange: #f0883e;
    --purple: #bc8cff;
    --green: #3fb950;
}

body {
    background-color: var(--bg);
    color: var(--text-muted);
    font-family: 'Inter', -apple-system, system-ui, sans-serif;
    margin: 0;
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 60px 20px;
}

header { margin-bottom: 50px; border-bottom: 1px solid var(--border); padding-bottom: 30px; }
h1 { color: var(--text-bright); font-size: 2.5rem; margin: 0; letter-spacing: -1px; }
.subtitle { font-size: 1.1rem; margin-top: 10px; color: var(--text-muted); }

/* Grid & Cards */
.projects-grid, .stack-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 30px;
    transition: all 0.3s ease;
}

.card:hover { border-color: var(--blue); transform: translateY(-5px); }

/* Links wrapping cards */
.projects-grid > a {
    text-decoration: none;
    color: inherit;
}
.projects-grid > a .card h3 { color: var(--text-bright) !important; }
.projects-grid > a .card p  { color: var(--text-muted)  !important; }

/* Badges */
.status {
    font-size: 0.75rem; font-weight: bold; padding: 4px 12px; border-radius: 20px;
    text-transform: uppercase; border: 1px solid currentColor; display: inline-block; margin-bottom: 15px;
}
.online   { color: var(--green);  background: rgba(63, 185, 80, 0.1); }
.building { color: var(--orange); background: rgba(240, 136, 62, 0.1); }

/* Tech Tags */
.tech-items { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.tech-items span {
    font-size: 0.75rem; background: #21262d; color: var(--text-bright);
    padding: 3px 10px; border-radius: 6px; border: 1px solid var(--border);
}

/* Architecture Diagram container */
.diagram-box {
    background: #000;
    padding: 40px;
    border-radius: 12px;
    border: 1px solid var(--border);
    margin: 30px 0;
    text-align: center;
}
.diagram-box svg, .diagram-box img { max-width: 100%; height: auto; }

a { color: inherit; text-decoration: none; }
a:visited { color: inherit; }

nav.breadcrumb a { color: var(--blue); text-decoration: none; font-weight: bold; }

/* Services section */
.services-section {
    margin-top: 70px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

.services-header { margin-bottom: 28px; }

.services-header h2 {
    margin: 0 0 8px;
    color: var(--text-bright);
    font-size: 1.9rem;
    letter-spacing: -0.5px;
}

.services-header p {
    margin: 0;
    color: var(--text-muted);
    font-size: 1rem;
}

.services-groups { display: grid; gap: 32px; }
.service-family  { display: grid; gap: 18px; }

.service-family-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.service-family-header h3   { margin: 0; color: var(--text-bright); font-size: 1.2rem; }
.service-family-header span { color: var(--text-muted); font-size: 0.92rem; }

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.service-card {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 92px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 18px;
    text-decoration: none;
    transition: all 0.25s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    border-color: var(--orange);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}

.service-icon {
    width: 48px; height: 48px; min-width: 48px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(240, 136, 62, 0.12);
    border: 1px solid rgba(240, 136, 62, 0.25);
    color: var(--orange);
    font-size: 1.15rem;
}

.service-text h4 { margin: 0 0 4px; color: var(--text-bright); font-size: 1rem; }
.service-text p  { margin: 0; color: var(--text-muted); font-size: 0.88rem; line-height: 1.4; }

@media (max-width: 1100px) {
    .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
    .services-section { margin-top: 50px; }
    .services-header h2 { font-size: 1.5rem; }
    .service-family-header { flex-direction: column; align-items: flex-start; }
    .services-grid { grid-template-columns: 1fr; }
    .service-card { min-height: auto; padding: 16px; }
}
