/* TechToday — dark theme stylesheet */

:root {
    --bg: #121212;
    --bg-elevated: #1e1e1e;
    --border: #2c2c2c;
    --text: #e0e0e0;
    --text-muted: #9e9e9e;
    --text-faint: #757575;
    --accent: #90caf9;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Roboto, system-ui, -apple-system, "Segoe UI", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.container {
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header / Nav */

header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(18, 18, 18, 0.9);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid var(--border);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.5rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--text);
}

.brand:hover {
    text-decoration: none;
}

.brand .logo {
    width: 28px;
    height: 28px;
}

/* Hero */

.hero {
    padding: 1rem 1.5rem 0.75rem;
    text-align: center;
}

.hero h1 {
    font-size: 1.75rem;
    font-weight: 500;
    color: var(--accent);
}

.hero .subtitle {
    color: var(--text-faint);
    font-size: 1rem;
    margin-top: 0.375rem;
}

/* Sections */

section {
    padding: 0.75rem 0;
}

/* Project / feature cards */

.grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    counter-reset: project-card;
}

.card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    transition: transform 0.15s ease, border-color 0.15s ease;
}

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

.card-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card {
    counter-increment: project-card;
}

.card-header::before {
    content: counter(project-card);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    border-radius: 50%;
    border: 1px solid #4caf50;
    color: #ff9800;
    font-size: 0.8125rem;
    font-weight: 700;
    line-height: 1;
}

.card .icon {
    font-size: 1.25rem;
}

.card h3 {
    font-size: 1.0625rem;
    font-weight: 500;
    color: var(--text);
}

.card p {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.card .status {
    display: inline-block;
    width: fit-content;
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    margin-top: 0.25rem;
}

.status.live {
    background: rgba(102, 187, 106, 0.15);
    color: #81c784;
}

/* Footer */

footer {
    border-top: 1px solid var(--border);
    padding: 1rem 0;
    text-align: center;
    color: var(--text-faint);
    font-size: 0.8125rem;
}

/* Responsive */

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