/* ===== DevinSoto.com — Personal Hub ===== */

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

:root {
    --bg: #0a0a0a;
    --surface: #151515;
    --border: #2a2a2a;
    --text: #f0f0f0;
    --text-muted: #888;
    --accent-x: #1d9bf0;
    --accent-app: #34c759;
    --accent-ww: #a78bfa;
    --radius: 16px;
    --transition: 0.3s cubic-bezier(.4,0,.2,1);
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* ===== Hub Container ===== */
.hub {
    width: 100%;
    max-width: 480px;
    padding: 60px 24px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 48px;
}

/* ===== Identity ===== */
.hub__identity {
    text-align: center;
}

.hub__name {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
    animation: fadeUp 0.6s ease-out both;
}

.hub__tagline {
    margin-top: 12px;
    font-size: 1.05rem;
    color: var(--text-muted);
    font-weight: 400;
    letter-spacing: 0.04em;
    animation: fadeUp 0.6s 0.15s ease-out both;
}

/* ===== Link Cards ===== */
.hub__links {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
    animation: fadeUp 0.6s 0.3s ease-out both;
}

.link-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    text-decoration: none;
    transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
    cursor: pointer;
}

.link-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

/* Per-card accent on hover */
.link-card--x:hover {
    border-color: var(--accent-x);
    box-shadow: 0 8px 30px rgba(29, 155, 240, 0.15);
}

.link-card--app:hover {
    border-color: var(--accent-app);
    box-shadow: 0 8px 30px rgba(52, 199, 89, 0.15);
}

.link-card--ww:hover {
    border-color: var(--accent-ww);
    box-shadow: 0 8px 30px rgba(167, 139, 250, 0.15);
}

/* Icon */
.link-card__icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition);
}

.link-card--x .link-card__icon {
    background: rgba(29, 155, 240, 0.12);
    color: var(--accent-x);
}

.link-card--app .link-card__icon {
    background: rgba(52, 199, 89, 0.12);
    color: var(--accent-app);
}

.link-card--ww .link-card__icon {
    background: rgba(167, 139, 250, 0.12);
    color: var(--accent-ww);
}

/* Text */
.link-card__text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.link-card__title {
    font-size: 1rem;
    font-weight: 600;
}

.link-card__sub {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Arrow */
.link-card__arrow {
    flex-shrink: 0;
    font-size: 1.25rem;
    color: var(--text-muted);
    transition: transform var(--transition), color var(--transition);
}

.link-card:hover .link-card__arrow {
    transform: translateX(4px);
    color: var(--text);
}

/* ===== Footer ===== */
.hub__footer {
    padding: 24px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* ===== Animation ===== */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Responsive ===== */
@media (max-width: 520px) {
    .hub {
        padding: 48px 20px 32px;
        gap: 36px;
    }

    .hub__name {
        font-size: 2rem;
    }

    .link-card {
        padding: 16px 18px;
        gap: 12px;
    }

    .link-card__icon {
        width: 40px;
        height: 40px;
    }

    .link-card__icon svg {
        width: 24px;
        height: 24px;
    }
}

/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
