/* --- Modern CSS Reset & Custom Properties --- */
:root {
    --bg-gradient: radial-gradient(circle at top left, #1e293b, #0f172a, #020617);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.8);
    --accent-color: #38bdf8;
    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.15);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    --font-stack: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

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

body {
    background: var(--bg-gradient);
    color: var(--text-primary);
    font-family: var(--font-stack);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100dvh; /* Modern viewport height accounts for mobile UI bars */
    padding: 1.5rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- Layout --- */
.bento-grid {
    display: grid;
    gap: 1.5rem;
    width: 100%;
    max-width: 550px;
}

/* --- Glassmorphism Card Component --- */
.card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2.5rem;
    border-radius: 1.5rem;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

/* --- Photo & Typography --- */
.photo-halo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.5rem;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.2);
    flex-shrink: 0;
}

.photo-halo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

h1 {
    font-size: clamp(1.8rem, 5vw, 2.2rem); /* Fluid typography scales with viewport */
    font-weight: 800;
    margin-bottom: 0.25rem;
    letter-spacing: -0.03em;
}

.title {
    font-size: 1.1rem;
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 1.25rem;
}

.bio-section p {
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 440px;
}

h2 {
    font-size: 0.85rem;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.25rem;
}

/* --- Interactive Elements --- */
.social-links {
    display: flex;
    justify-content: center;
    width: 100%;
}

.li-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.875rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); /* Smoother animation curve */
}

/* Hover & Keyboard Focus Accessibility */
.li-link:hover, .li-link:focus-visible {
    background: rgba(255, 255, 255, 0.18);
    border-color: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    outline: none;
}

.li-icon {
    width: 32px;
    height: 32px;
    display: block;
}

/* --- Accessibility Adjustments --- */
@media (prefers-reduced-motion: reduce) {
    .li-link {
        transition: none;
    }
}