/* ============================================
   rzanei.com — personal links page
   Shares the FrameLab palette so the two sites
   read as related, but a single centred card
   instead of a full marketing layout.
   ============================================ */

:root {
    --green: #0cc481;
    --green-hover: #0aa96f;
    --dark: #080808;
    --surface: #101010;
    --surface-raised: #161616;
    --ivory: #edece4;
    --text-secondary: #a9a8a0;
    --text-muted: #6f6f68;
    --border: rgba(237, 236, 228, 0.12);
    --border-strong: rgba(237, 236, 228, 0.22);
    --font-display: 'Space Grotesk', 'Segoe UI', system-ui, sans-serif;
    --font-body: 'Poppins', 'Segoe UI', system-ui, sans-serif;
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --radius: 14px;
}

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

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    background: var(--dark);
    color: var(--ivory);
    line-height: 1.7;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 20px;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(12, 196, 129, 0.10) 0%, transparent 55%),
        radial-gradient(ellipse at 80% 100%, rgba(15, 28, 28, 0.6) 0%, transparent 55%);
    pointer-events: none;
    z-index: -1;
}

.grid-bg {
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(237, 236, 228, 0.022) 1px, transparent 1px),
        linear-gradient(90deg, rgba(237, 236, 228, 0.022) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: -1;
}

#particles-canvas {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
}

::selection {
    background: var(--green);
    color: var(--dark);
}

:focus-visible {
    outline: 2px solid var(--green);
    outline-offset: 3px;
    border-radius: 4px;
}

/* ============================================
   CARD
   ============================================ */
.card {
    width: 100%;
    max-width: 520px;
    animation: rise 0.8s var(--ease-out) both;
}

@keyframes rise {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ============================================
   PROFILE
   ============================================ */
.profile {
    text-align: center;
    margin-bottom: 40px;
}

.avatar {
    width: 116px;
    height: 116px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-strong);
    margin-bottom: 22px;
}

.profile h1 {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 6vw, 2.3rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.role {
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--green);
    margin-top: 10px;
}

.bio {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 18px auto 0;
    max-width: 400px;
    text-wrap: pretty;
}

/* ============================================
   LINKS
   ============================================ */
.links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.link {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 18px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--ivory);
    transition: background 0.35s var(--ease-out), border-color 0.35s var(--ease-out),
                transform 0.35s var(--ease-out);
    /* staggered entrance, --i set per item below */
    animation: rise 0.7s var(--ease-out) both;
    animation-delay: calc(0.15s + var(--i, 0) * 0.07s);
}

.link:nth-child(1) { --i: 1; }
.link:nth-child(2) { --i: 2; }
.link:nth-child(3) { --i: 3; }
.link:nth-child(4) { --i: 4; }

.link:hover {
    background: var(--surface-raised);
    border-color: var(--border-strong);
    transform: translateY(-2px);
}

.link-feature {
    border-color: rgba(12, 196, 129, 0.35);
}

.link-feature:hover {
    border-color: var(--green);
}

.link-mark {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(237, 236, 228, 0.05);
    border-radius: 10px;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    color: var(--green);
}

.link-mark img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    border-radius: 6px;
}

.link-body {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}

.link-title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.3;
}

.link-sub {
    color: var(--text-muted);
    font-size: 0.82rem;
    line-height: 1.5;
}

/* Arrow drawn in CSS, matching framelab.ie */
.arrow {
    position: relative;
    display: inline-block;
    width: 20px;
    height: 8px;
    flex-shrink: 0;
    color: var(--text-muted);
    transition: transform 0.45s var(--ease-out), color 0.35s var(--ease-out);
}

.arrow::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    margin-top: -1px;
    background: currentColor;
    border-radius: 2px;
    transform: scaleX(0.55);
    transform-origin: 100% 50%;
    transition: transform 0.45s var(--ease-out);
}

.arrow::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 1px;
    width: 8px;
    height: 8px;
    margin-top: -4px;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
    border-top-right-radius: 2px;
    transform: rotate(45deg);
}

.link:hover .arrow {
    transform: translateX(4px);
    color: var(--green);
}

.link:hover .arrow::before {
    transform: scaleX(1);
}

/* ============================================
   FOOTER
   ============================================ */
.foot {
    text-align: center;
    margin-top: 40px;
    color: var(--text-muted);
    font-size: 0.82rem;
    animation: rise 0.7s var(--ease-out) 0.5s both;
}

.copy {
    margin-top: 6px;
    opacity: 0.7;
}

@media (max-width: 480px) {
    body { padding: 34px 16px; }

    .link { padding: 14px 15px; gap: 13px; }

    .link-mark { width: 36px; height: 36px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        transition-duration: 0.001ms !important;
    }

    .card, .link, .foot {
        opacity: 1;
        transform: none;
    }
}
