:root {
    --bg: #03030c; /* Very dark, almost black for space */
    --card: rgba(15, 15, 30, 0.7); /* Darker, slightly transparent card for ethereal feel */
    --text: #e0e0f0; /* Light, subtle bluish-white text */
    --accent: #99ccff; /* Cooler blue for cosmic glows */
    --accent-hover: #66b3ff; /* Brighter blue on hover */
    --border: rgba(153, 204, 255, 0.3); /* Border to match accent */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden; /* prevents unwanted scrollbars */
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    background-attachment: fixed;
    background-image: none; /* Ensure no old background image remains */
    background-size: auto;
    background-position: initial;
    background-repeat: initial;
}

#stars-canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* Full-screen particles canvas (if still needed, though stars will replace it) */
#particles-canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* Perfect absolute centering for content */
.container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 420px;
    padding: 2.5rem 1.5rem;
    text-align: center;
    z-index: 10;
}

    /* Optional: subtle glass backdrop for better readability over particles */
    .container::before {
        content: "";
        position: absolute;
        inset: -2rem;
        background: rgba(15, 15, 30, 0.7); /* Darker, more opaque backdrop */
        border-radius: 28px;
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        z-index: -1;
        border: 1px solid var(--border);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6); /* Slightly darker shadow */
    }

.avatar {
    width: 120px; /* slightly larger for impact */
    height: 120px;
    border-radius: 50%;
    border: 4px solid var(--accent);
    object-fit: cover;
    margin-bottom: 1.5rem;
    box-shadow: 0 0 25px rgba(153, 204, 255, 0.4); /* Accent color for shadow */
    position: relative;
    transition: all 0.45s ease;
    overflow: hidden;
    z-index: 20;
}

    .avatar:hover {
        transform: scale(1.12);
        box-shadow: 0 0 35px #99ccff, 0 0 70px #66b3ff, 0 0 110px #3399ff, inset 0 0 40px rgba(153, 204, 255, 0.8); /* Updated neon core */
    }

        .avatar:hover::after {
            content: '';
            position: absolute;
            inset: -30%;
            background: radial-gradient(circle, rgba(102, 179, 255, 0.7) 15%, transparent 65%); /* Updated neon pulse */
            opacity: 0.7;
            animation: neon-pulse 2.2s infinite ease-in-out;
            pointer-events: none;
            border-radius: 50%;
        }

@keyframes neon-pulse {
    0%, 100% {
        opacity: 0.7;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.25);
    }
}

h1 {
    font-size: 2.1rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.tag {
    font-size: 1rem;
    color: var(--accent);
    margin-bottom: 1.8rem;
    font-weight: 500;
}

.bio {
    font-size: 0.95rem;
    color: #c0c0e0; /* Adjusted bio text color for space theme */
    margin-bottom: 2.5rem;
    line-height: 1.6;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
}

.links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.btn {
    background: var(--card);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 1rem 1.5rem;
    border-radius: 16px;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    position: relative;
    overflow: hidden;
}

    .btn:hover {
        transform: translateY(-3px);
        background: rgba(102, 179, 255, 0.15); /* Accent color for hover background */
        border-color: var(--accent);
        box-shadow: 0 10px 25px rgba(102, 179, 255, 0.25); /* Accent color for hover shadow */
    }

    .btn i {
        font-size: 1.3rem;
    }

footer {
    margin-top: 3rem;
    font-size: 0.85rem;
    color: #a0a0c0; /* Adjusted footer text color for space theme */
    opacity: 0.7;
}

/* Mobile / small screen adjustments */
@media (max-width: 480px) {
    .container {
        padding: 2rem 1rem;
        width: 92%;
    }

    .avatar {
        width: 96px;
        height: 96px;
    }

    h1 {
        font-size: 1.9rem;
    }
}

/* Extra safety for very short viewports (prevents cutoff) */
@media (max-height: 600px) {
    .container {
        transform: translate(-50%, -50%) scale(0.92);
        padding: 1.5rem 1rem;
    }
}

