*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg: #0b1120;
    --bg-card: #111827;
    --bg-card-hover: #1a2332;
    --border: rgba(148, 163, 184, 0.12);
    --text: #f1f5f9;
    --text-muted: #94a3b8;
    --accent: #38bdf8;
    --accent-soft: rgba(56, 189, 248, 0.12);
    --tools: #38bdf8;
    --projects: #34d399;
    --projects-soft: rgba(52, 211, 153, 0.12);
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
    --radius: 12px;
    --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(56, 189, 248, 0.15), transparent),
        radial-gradient(ellipse 60% 40% at 100% 100%, rgba(52, 211, 153, 0.08), transparent);
    pointer-events: none;
    z-index: 0;
}

.container {
    position: relative;
    z-index: 1;
    max-width: 960px;
    margin: 0 auto;
    padding: 2.5rem 1.25rem 3rem;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 3rem;
}

.logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: var(--accent-soft);
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: 14px;
    margin-bottom: 1.25rem;
    font-size: 1.5rem;
}

.header h1 {
    font-size: clamp(1.75rem, 5vw, 2.25rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.35rem;
}

.header .subtitle {
    color: var(--text-muted);
    font-size: 1.05rem;
}

.header .company {
    display: inline-block;
    margin-top: 0.75rem;
    padding: 0.3rem 0.85rem;
    background: var(--accent-soft);
    color: var(--accent);
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* Sections */
.section {
    margin-bottom: 2.75rem;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 1.15rem;
}

.section-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 9px;
    font-size: 1.1rem;
}

.section-icon--tools {
    background: var(--accent-soft);
}

.section-icon--projects {
    background: var(--projects-soft);
}

.section h2 {
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.section-count {
    margin-left: auto;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Link grid */
.link-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 0.85rem;
}

.link-card {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 1.15rem 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-decoration: none;
    color: inherit;
    transition: background 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.link-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(148, 163, 184, 0.25);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.link-card--tools:hover {
    border-color: rgba(56, 189, 248, 0.35);
}

.link-card--projects:hover {
    border-color: rgba(52, 211, 153, 0.35);
}

.link-card__name {
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.link-card__arrow {
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: transform 0.2s, color 0.2s;
    flex-shrink: 0;
}

.link-card:hover .link-card__arrow {
    transform: translateX(3px);
}

.link-card--tools:hover .link-card__arrow {
    color: var(--tools);
}

.link-card--projects:hover .link-card__arrow {
    color: var(--projects);
}

.link-card__desc {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.45;
}

.link-card__url {
    margin-top: 0.25rem;
    color: var(--text-muted);
    font-size: 0.75rem;
    opacity: 0.7;
    word-break: break-all;
}

/* Footer */
.footer {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* Responsive */
@media (max-width: 480px) {
    .container {
        padding: 1.75rem 1rem 2.5rem;
    }

    .link-grid {
        grid-template-columns: 1fr;
    }
}
