/* ========== CSS Custom Properties ========== */

:root {
    --bg: #0a0a0f;
    --surface: rgba(18, 18, 26, 0.7);
    --surface-border: rgba(255, 255, 255, 0.06);
    --text-primary: #f1f1f3;
    --text-secondary: #a0a0b0;
    --text-muted: #6b6b7b;
    --accent: #5eead4;
    --accent-glow: rgba(94, 234, 212, 0.25);
    --accent-subtle: rgba(94, 234, 212, 0.08);
    --tag-bg: rgba(255, 255, 255, 0.04);
    --tag-border: rgba(255, 255, 255, 0.08);
    --orb-1: rgba(94, 234, 212, 0.12);
    --orb-2: rgba(129, 140, 248, 0.10);
    --orb-3: rgba(244, 114, 182, 0.08);
    --radius-lg: 20px;
    --radius-full: 9999px;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}


/* ========== Reset & Base ========== */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg);
    color: var(--text-primary);
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}


/* ========== Background elements ========== */

#particles-canvas {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.bg-grid {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 28px 28px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 30%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 30%, transparent 70%);
}


/* Floating orbs */

.orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
    z-index: 0;
    animation: orbFloat 18s ease-in-out infinite;
}

.orb--1 {
    width: 420px;
    height: 420px;
    background: var(--orb-1);
    top: -15%;
    left: -8%;
    animation-delay: 0s;
    animation-duration: 20s;
}

.orb--2 {
    width: 350px;
    height: 350px;
    background: var(--orb-2);
    bottom: -18%;
    right: -10%;
    animation-delay: -7s;
    animation-duration: 22s;
}

.orb--3 {
    width: 280px;
    height: 280px;
    background: var(--orb-3);
    top: 50%;
    left: 55%;
    animation-delay: -13s;
    animation-duration: 19s;
}

@keyframes orbFloat {
    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(40px, -50px) scale(1.15);
    }
    50% {
        transform: translate(-25px, 30px) scale(0.9);
    }
    75% {
        transform: translate(-35px, -20px) scale(1.08);
    }
}


/* ========== Card ========== */

.card-wrapper {
    position: relative;
    z-index: 2;
    width: 90vw;
    max-width: 540px;
    animation: cardEntry 0.8s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
    opacity: 0;
    transform: translateY(24px);
}

@keyframes cardEntry {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    position: relative;
    background: var(--surface);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-lg);
    padding: 44px 40px 38px;
    text-align: center;
    overflow: hidden;
    transition: box-shadow 0.5s ease, border-color 0.5s ease;
    box-shadow: 0 4px 32px rgba(0, 0, 0, 0.5), 0 1px 2px rgba(255, 255, 255, 0.04) inset;
}

.card__glow {
    position: absolute;
    inset: -1px;
    border-radius: var(--radius-lg);
    pointer-events: none;
    z-index: 0;
    opacity: 0;
    background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), var(--accent-glow), transparent 55%);
    transition: opacity 0.4s ease;
}

.card:hover .card__glow,
.card:focus-within .card__glow {
    opacity: 1;
}

.card::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: var(--radius-lg);
    padding: 1px;
    background: conic-gradient(from 0deg at 50% 50%, transparent 40%, rgba(255, 255, 255, 0.05) 48%, rgba(94, 234, 212, 0.18) 50%, rgba(255, 255, 255, 0.05) 52%, transparent 60%);
    mask: linear-gradient(#000, #000) content-box, linear-gradient(#000, #000);
    mask-composite: exclude;
    -webkit-mask: linear-gradient(#000, #000) content-box, linear-gradient(#000, #000);
    -webkit-mask-composite: xor;
    animation: borderShimmer 6s linear infinite;
    pointer-events: none;
    z-index: 1;
    opacity: 0.7;
}

@keyframes borderShimmer {
    to {
        transform: rotate(360deg);
    }
}

.card__content {
    position: relative;
    z-index: 2;
}


/* ========== Avatar & Typography ========== */

.avatar {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    overflow: hidden;
    /* ensures image stays inside the circle */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    box-shadow: 0 8px 28px rgba(94, 234, 212, 0.3);
    animation: avatarPop 0.6s 0.15s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

.avatar__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* keeps image aspect ratio, fills the circle */
    display: block;
}

@keyframes avatarPop {
    0% {
        transform: scale(0.6);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.name {
    font-size: 1.85rem;
    font-weight: 700;
    letter-spacing: -0.6px;
    color: var(--text-primary);
    margin-bottom: 2px;
    animation: fadeUp 0.55s 0.2s both;
}

.title {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--accent);
    letter-spacing: 0.4px;
    margin-bottom: 6px;
    animation: fadeUp 0.55s 0.26s both;
}

.divider {
    width: 36px;
    height: 2px;
    background: var(--accent);
    border-radius: 1px;
    margin: 12px auto 14px;
    opacity: 0.6;
    animation: fadeUp 0.55s 0.30s both;
}

.bio {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.55;
    max-width: 360px;
    margin: 0 auto 20px;
    animation: fadeUp 0.55s 0.34s both;
}

@keyframes fadeUp {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Status */

.status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    animation: fadeUp 0.55s 0.38s both;
}

.status__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #34d399;
    box-shadow: 0 0 10px rgba(52, 211, 153, 0.7);
    animation: pulse 2.2s infinite;
}

@keyframes pulse {
    0%,
    100% {
        box-shadow: 0 0 8px rgba(52, 211, 153, 0.5);
    }
    50% {
        box-shadow: 0 0 18px rgba(52, 211, 153, 0.9), 0 0 32px rgba(52, 211, 153, 0.35);
    }
}


/* ========== Tag groups ========== */

.tag-group {
    margin-bottom: 16px;
    animation: fadeUp 0.55s 0.42s both;
}

.tag-group:last-of-type {
    margin-bottom: 22px;
}

.tag-group__title {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.skills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 9px;
}

.skill-tag {
    display: inline-block;
    padding: 6px 14px;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--tag-bg);
    border: 1px solid var(--tag-border);
    border-radius: var(--radius-full);
    cursor: default;
    transition: all 0.28s ease;
    letter-spacing: 0.2px;
    position: relative;
    overflow: hidden;
}

.skill-tag::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-full);
    background: var(--accent-subtle);
    opacity: 0;
    transition: opacity 0.28s;
}

.skill-tag:hover {
    color: var(--accent);
    border-color: rgba(94, 234, 212, 0.35);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(94, 234, 212, 0.12);
}

.skill-tag:hover::before {
    opacity: 1;
}


/* ========== Social links (now using Font Awesome) ========== */

.socials {
    display: flex;
    justify-content: center;
    gap: 12px;
    animation: fadeUp 0.55s 0.46s both;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid var(--tag-border);
    background: var(--tag-bg);
    color: var(--text-secondary);
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    position: relative;
    font-size: 1.2rem;
    /* for Font Awesome icons */
}

.social-link:hover {
    color: var(--accent);
    border-color: rgba(94, 234, 212, 0.45);
    background: var(--accent-subtle);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(94, 234, 212, 0.18);
}

.social-link:active {
    transform: scale(0.94);
    transition: transform 0.1s ease;
}


/* ========== Responsive ========== */

@media (max-width: 560px) {
    .card {
        padding: 32px 22px 28px;
        border-radius: 16px;
    }
    .card::after,
    .card__glow {
        border-radius: 16px;
    }
    .name {
        font-size: 1.5rem;
    }
    .title {
        font-size: 0.82rem;
    }
    .bio {
        font-size: 0.8rem;
        max-width: 280px;
    }
    .skill-tag {
        padding: 5px 11px;
        font-size: 0.72rem;
    }
    .social-link {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }
    .avatar {
        width: 46px;
        height: 46px;
        font-size: 18px;
    }
    .tag-group {
        margin-bottom: 14px;
    }
    .tag-group:last-of-type {
        margin-bottom: 18px;
    }
    .tag-group__title {
        font-size: 0.65rem;
        letter-spacing: 1px;
    }
}

@media (max-height: 680px) {
    .card {
        padding: 26px 24px 22px;
    }
    .avatar {
        width: 40px;
        height: 40px;
        font-size: 16px;
        margin-bottom: 12px;
    }
    .name {
        font-size: 1.35rem;
    }
    .bio {
        margin-bottom: 12px;
        font-size: 0.78rem;
    }
    .skills {
        gap: 6px;
    }
    .skill-tag {
        padding: 4px 10px;
        font-size: 0.7rem;
    }
    .social-link {
        width: 34px;
        height: 34px;
        font-size: 0.9rem;
    }
    .divider {
        margin: 8px auto 10px;
    }
    .status {
        margin-bottom: 14px;
    }
    .tag-group {
        margin-bottom: 11px;
    }
    .tag-group:last-of-type {
        margin-bottom: 15px;
    }
    .tag-group__title {
        margin-bottom: 6px;
    }
}