:root {
    /* Color Palette - Static Studio Light */
    --bg-center: #f8fafc;
    --bg-edge: #e2e8f0;

    --text-primary: #0f172a;
    --text-secondary: #475569;

    --card-bg: rgba(255, 255, 255, 0.85);
    --card-border: rgba(255, 255, 255, 0.6);
    --shadow: 0 30px 60px -12px rgba(15, 23, 42, 0.1);

    /* Social Brand Colors */
    --brand-github: #333333;
    --brand-linkedin: #0077b5;
    --brand-twitter: #000000;
    --brand-email: #ea4335;

    /* Typography */
    --font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg-center: #1e293b;
        --bg-edge: #0f172a;
        --card-bg: rgba(30, 41, 59, 0.8);
        --card-border: rgba(255, 255, 255, 0.1);
        --shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.5);

        --brand-github: #ffffff;
        --brand-twitter: #ffffff;
    }
}

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

body {
    font-family: var(--font-stack);
    background: radial-gradient(circle at center, var(--bg-center), var(--bg-edge));
    color: var(--text-primary);
    min-height: 100vh;
    padding: 20px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* Container */
.container {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 0 16px;
    z-index: 10;
}

/* Profile Card */
.profile-card {
    width: 90%;
    max-width: 420px;

    background: var(--card-bg);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid var(--card-border);
    border-radius: 32px;
    padding: 48px 32px 32px 32px;

    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;

    box-shadow: var(--shadow);
    animation: fadeUp 1s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
}

.profile-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    width: 100%;
    margin-bottom: 24px;
}

/* Profile Image */
.profile-image-wrapper {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
    z-index: 2;
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.5s ease;
    display: block;
}

/* Image Interaction: Tactile Pop */
.profile-image-wrapper:hover {
    transform: translateY(-10px) scale(1.10);
}

.profile-image-wrapper:hover .profile-img {
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35), 0 0 0 6px rgba(255, 255, 255, 0.8);
}

/* Typography */
h1 {
    font-size: clamp(1.5rem, 5vw, 2.25rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    color: var(--text-primary);
    line-height: 1.1;
    margin: 0;
}

.role {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin: 0;
}

.bio {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* Social Links - Prismic #16 Interaction */
.social-links {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 32px;
}

.social-link {
    position: relative;
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    /* Visibilty Fix: Darker border (0.15) to see against light bg */
    border: 3px solid rgba(0, 0, 0, 0.15);
    background: transparent;
    overflow: hidden;
    color: var(--text-secondary);
    transition: transform 0.5s ease, border-color 0.5s ease;
    z-index: 1;

    perspective: 1000px;
    transform-style: preserve-3d;
}

/* Brand Colors */
.social-link.github {
    --brand-color: var(--brand-github);
}

.social-link.linkedin {
    --brand-color: var(--brand-linkedin);
}

.social-link.twitter {
    --brand-color: var(--brand-twitter);
}

.social-link.email {
    --brand-color: var(--brand-email);
}

/* Inset Fill Layer */
.social-link::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 2px;
    width: calc(100% - 4px);
    height: calc(100% - 4px);
    border-radius: 50%;
    background: var(--brand-color);
    transition: top 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 0;
}

.icon {
    width: 28px;
    height: 28px;
    position: relative;
    z-index: 3;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), color 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* Hover Logic */
.social-link:hover {
    border-color: var(--brand-color);
}

.social-link:hover::before {
    top: 2px;
}

.social-link:hover .icon {
    color: #ffffff;
    transform: rotateY(360deg);
}

/* Footer */
.copyright {
    width: 100%;
    margin-top: 0;
    padding-top: 24px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    font-size: 0.8rem;
    color: var(--text-secondary);
    opacity: 0.5;
    font-weight: 500;
}

/* Animation */
@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile */
@media (max-width: 480px) {
    .profile-card {
        padding: 32px 24px 24px 24px;
        width: 90%;
    }

    .profile-image-wrapper {
        width: 140px;
        height: 140px;
    }
}