:root {
    --bg: #0c1020;
    --card: rgba(255, 255, 255, 0.04);
    --card-hover: rgba(255, 255, 255, 0.07);
    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.18);
    --text: #e2e8f0;
    --text-muted: #64748b;
    --accent: #7aa2c8;
    --accent-glow: rgba(122, 162, 200, 0.2);
    --mx: 50vw;
    --my: 50vh;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', 'Arial', sans-serif;
}

body {
    background: radial-gradient(ellipse at top, #141d30 0%, var(--bg) 65%);
    background-color: var(--bg);
    background-attachment: fixed;
    color: var(--text);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
}

/* Cursor spotlight */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: radial-gradient(550px circle at var(--mx) var(--my), rgba(122, 162, 200, 0.07), transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* Background orbs */
.orb {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    filter: blur(90px);
}

.orb-1 {
    width: 380px;
    height: 380px;
    background: rgba(122, 162, 200, 0.07);
    top: -80px;
    right: -80px;
    animation: drift 12s ease-in-out infinite alternate;
}

.orb-2 {
    width: 300px;
    height: 300px;
    background: rgba(88, 105, 127, 0.05);
    bottom: -60px;
    left: -60px;
    animation: drift 16s ease-in-out 1s infinite alternate-reverse;
}

.wrapper {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
    padding: 56px 24px;
    margin: 0 auto;
}

/* — Profile — */

.profile {
    text-align: center;
    margin-bottom: 36px;
}

#picture {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border);
    margin-bottom: 20px;
    animation:
        photoIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) both,
        photoPulse 3.5s ease-in-out infinite;
}

h1 {
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--text);
    animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}

.role {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 400;
    margin-top: 6px;
    animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.18s both;
}

#location {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 12px;
    font-size: 0.78rem;
    color: var(--text-muted);
    animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.26s both;

    svg {
        width: 9px;
        flex-shrink: 0;
        transition: transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
    }
}

#location:hover svg {
    transform: rotate(360deg);
}

/* — Links — */

#socials {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#socials li {
    opacity: 0;
    animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) calc(0.3s + var(--i) * 0.07s) forwards;
}

a {
    text-decoration: none;
}

.link-card {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 16px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text);
    /* transform is managed by JS; only background/border/shadow here */
    transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
    will-change: transform;
}

/* Shimmer sweep */
.link-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 25%, rgba(255, 255, 255, 0.05) 50%, transparent 75%);
    transform: translateX(-120%);
    transition: transform 0.6s ease;
    pointer-events: none;
    z-index: 0;
}

.link-card:hover::before {
    transform: translateX(120%);
}

.link-card:hover {
    background: var(--card-hover);
    border-color: var(--border-hover);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}

.link-icon {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
    transition: background 0.2s;

    svg {
        width: 15px;
        height: 15px;
        color: var(--accent);
    }
}

.link-card:hover .link-icon {
    background: rgba(122, 162, 200, 0.12);
}

.link-label {
    position: relative;
    z-index: 1;
    flex: 1;
    font-size: 0.875rem;
    font-weight: 500;
}

.link-arrow {
    position: relative;
    z-index: 1;

    svg {
        width: 9px;
        height: 9px;
        color: var(--text-muted);
        transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    }
}

.link-card:hover .link-arrow svg {
    transform: translateX(4px);
}

/* — Keyframes — */

@keyframes photoIn {
    from {
        opacity: 0;
        transform: scale(0.8);
        filter: blur(8px);
    }
    to {
        opacity: 1;
        transform: scale(1);
        filter: blur(0);
    }
}

@keyframes photoPulse {
    0%, 100% { box-shadow: 0 0 0 4px var(--accent-glow), 0 20px 48px rgba(0, 0, 0, 0.5); }
    50%       { box-shadow: 0 0 0 8px rgba(122, 162, 200, 0.08), 0 20px 48px rgba(0, 0, 0, 0.5); }
}

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

/* Typewriter cursor */
.cursor {
    color: var(--accent);
    font-weight: 300;
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0; }
}

@keyframes drift {
    from { transform: translate(0, 0) scale(1); }
    to   { transform: translate(28px, 18px) scale(1.04); }
}
