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

:root {
    --bg: #0f172a;
    --surface: #1e293b;
    --surface-hover: #26354b;
    --border: #334155;
    --primary: #3b82f6;
    --primary-hover: #2563eb;
    --text: #f8fafc;
    --muted: #94a3b8;
    --stack: #38bdf8;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: "Segoe UI", sans-serif;
    line-height: 1.6;
}

/* ---------------- Hero ---------------- */

.hero {
    max-width: 900px;
    margin: 0 auto;
    padding: 5rem 2rem 4rem;
    text-align: center;
}

.hero h1 {
    font-size: clamp(2.8rem, 6vw, 4rem);
    margin-bottom: 1rem;
}

.hero p {
    color: var(--muted);
    font-size: 1.05rem;
    margin: 0 auto 1rem;
    max-width: 750px;
}

/* ---------------- Layout ---------------- */

.container {
    width: min(1200px, 90%);
    margin: auto;
    padding-bottom: 4rem;
}

.category {
    margin-bottom: 4rem;
}

.category h2 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    padding-bottom: .75rem;
    border-bottom: 1px solid var(--border);
}

/* ---------------- Grid ---------------- */

.projects {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
    gap: 1.75rem;
}

/* ---------------- Cards ---------------- */

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.6rem;
    display: flex;
    flex-direction: column;
    transition: .25s ease;
}

.card:hover {
    transform: translateY(-6px);
    background: var(--surface-hover);
    border-color: var(--primary);
}

.card h3 {
    margin-bottom: .8rem;
    font-size: 1.3rem;
}

.card p {
    color: var(--muted);
    margin-bottom: 1.25rem;
    flex-grow: 1;
}

/* ---------------- Tech Stack ---------------- */

.stack {
    color: var(--stack);
    font-size: .9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

/* ---------------- Buttons ---------------- */

.buttons {
    display: flex;
    gap: .75rem;
    flex-wrap: wrap;
}

.buttons a {
    text-decoration: none;
    color: white;
    background: var(--primary);
    padding: .75rem 1.2rem;
    border-radius: 8px;
    font-weight: 600;
    transition: .2s;
}

.buttons a:hover {
    background: var(--primary-hover);
}

.buttons a:last-child {
    background: transparent;
    border: 1px solid var(--border);
}

.buttons a:last-child:hover {
    border-color: var(--primary);
    background: rgba(59,130,246,.1);
}

/* ---------------- Footer ---------------- */

footer {
    text-align: center;
    padding: 2rem;
    color: var(--muted);
    border-top: 1px solid var(--border);
}

/* ---------------- Responsive ---------------- */

@media (max-width: 700px) {

    .hero {
        padding-top: 3rem;
    }

    .buttons {
        flex-direction: column;
    }

    .buttons a {
        text-align: center;
    }

}