@font-face {
    font-family: 'Inter';
    src: url('/assets/fonts/Inter-VariableFont_opsz,wght.ttf') format('truetype');
}

:root {
    color-scheme: dark;
    --bg: radial-gradient(circle at 30% 30%, #2a1a3a, transparent 40%), radial-gradient(circle at 70% 60%, #1a0f2e, transparent 50%), linear-gradient(135deg, #0b0014, #000000);
    --text: #ffffff;
    --card-bg: #191b24;
    --btn-radius: 12px;
    --btn-shadow: rgba(0, 0, 0, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: "Inter", system-ui, sans-serif;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    padding: 8rem 1rem 2rem 1rem;

    /* Fade-in animation */
    opacity: 0;
    animation: body-fade-in 2s ease forwards;
}

@keyframes body-fade-in {
    to {
        opacity: 1;
    }
}

.container {
    width: 100%;
    max-width: 480px;
    text-align: center;
}

.avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1.25rem;
    border: 4px solid var(--card-bg);
}

h1 {
    font-size: 2.75rem;
    margin-bottom: 2rem;
    font-weight: 900;
}

.bio {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 4rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-wrap: wrap;
    line-height: 1.5rem;
}

.section-title {
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
}

.links {
    width: 75%;
    min-width: 300px;
    margin: 0 auto;
}

.link-btn {
    font-size: 1.1rem;

    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;

    width: 100%;
    padding: 1rem;
    margin-bottom: 1rem;

    background: var(--card-bg);
    color: var(--text);
    text-decoration: none;
    font-weight: 700;

    border-radius: var(--btn-radius);
    transition: transform 0.25s ease, box-shadow 0.25s ease;

    /* Fade-in animation for buttons */
    opacity: 0;
    scale: 0;
}

.link-btn:hover {
    transform: scale(1.06);
    box-shadow: 0 6px 20px -4px var(--btn-shadow);
    filter: brightness(1.05);
}

.link-btn img {
    width: 1.2em;
    height: 1.2em;
    display: block;
}

/* Bounce on hover */
.link-btn:hover img {
    animation: bounce 0.9s forwards;
}


/* decreasing‑amplitude wave */
@keyframes bounce {
    0% {
        transform: translateY(0);
    }

    20% {
        transform: translateY(-6px);
    }

    40% {
        transform: translateY(0);
    }

    55% {
        transform: translateY(-4px);
    }

    70% {
        transform: translateY(0);
    }

    80% {
        transform: translateY(-2px);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes fade-in {
    to {
        opacity: 1;
        scale: 1;
    }
}

/* Mobile tweaks */
@media (hover: none) {
    .link-btn:hover {
        transform: none;
        box-shadow: none;
    }

    .link-btn:hover .icon {
        animation: none;
    }
}

@media only screen and (max-width: 460px) {
    .bio-normal {
        display: none;
    }

    .bio-small {
        display: block;
    }
}

@media only screen and (min-width: 460px) {
    .bio-normal {
        display: block;
    }

    .bio-small {
        display: none;
    }
}

/* Respect reduced‑motion user preference */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }

    body {
        opacity: 1 !important;
    }

    .link-btn {
        opacity: 1 !important;
        scale: 1 !important;
    }
}