:root {
    --primary-color: #0a66c2; /* LinkedIn blue - professional */
    --secondary-color: #34ace0;
    --text-color: #333;
    --text-light: #666;
    --background-color: #f9fafb;
    --card-background: #ffffff;
    --accent-color: #e1306c; /* Location pin - standout color */
    --stanford-red: #8C1515; /* Stanford's official red color */
    --border-radius: 18px;
    --spacing: 1.5rem;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.06), 0 1px 8px rgba(0, 0, 0, 0.03);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.card-container {
    width: 100%;
    max-width: 500px; /* Optimized for mobile */
    margin: 0 auto;
}

.card {
    background: var(--card-background);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1), 0 5px 15px rgba(0, 0, 0, 0.05);
}

.card-header {
    text-align: left;
    padding: 2rem var(--spacing) 1.5rem;
    position: relative;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.profile-image {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid white;
    margin: 0;
    position: relative;
    z-index: 2;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    transition: var(--transition);
}

.profile-image:hover {
    transform: scale(1.03);
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.qr-code {
    width: 100px;
    height: 100px;
    background: white;
    padding: 6px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    margin-left: 1rem;
}

.qr-code:hover {
    transform: scale(1.05);
}

.qr-code img {
    width: 100%;
    height: 100%;
}

.card-content {
    padding: 1.8rem var(--spacing);
    position: relative;
    z-index: 1;
}

h1 {
    font-size: 1.9rem;
    margin-bottom: 0.6rem;
    color: var(--primary-color);
    text-align: left;
    font-weight: 700;
    letter-spacing: -0.01rem;
}

.quick-info {
    margin-bottom: 1.8rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    padding: 0 0.5rem;
}

.role, .location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-color);
}

.role-text {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.role-text div {
    line-height: 1.3;
}

.company-icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

.company-icon.stanford {
    width: 18px;
    height: 18px;
    margin-top: 2px;
}

.location {
    color: var(--text-light);
    margin-top: 0.5rem;
}

.location i {
    color: var(--accent-color);
    font-size: 1rem;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}

.current {
    color: var(--text-color);
}

.previous {
    color: var(--text-light);
}

.bio {
    margin-bottom: 2.2rem;
    padding: 0 0.25rem;
}

.bio p {
    margin-bottom: 1.4rem;
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-color);
}

.bio p strong {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1rem;
}

.bio p:last-child {
    margin-bottom: 0;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
}

a:hover {
    color: var(--secondary-color);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.contact-row {
    display: flex;
    width: 100%;
    flex-direction: column;
    gap: 0.85rem;
}

.contact-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: 14px;
    background: var(--card-background);
    color: var(--primary-color);
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.06);
    width: 100%;
}

.contact-button:hover, .contact-button:active {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(10, 102, 194, 0.2);
}

.contact-button i {
    font-size: 1.2rem;
}

/* Larger screens */
@media (min-width: 768px) {
    .card-container {
        max-width: 650px;
    }
    
    .card-header {
        padding: var(--spacing);
    }
    
    .profile-image {
        margin: 0;
        width: 150px;
        height: 150px;
    }
    
    .qr-code {
        width: 120px;
        height: 120px;
        margin-left: 1.5rem;
    }
    
    h1 {
        font-size: 2.3rem;
        text-align: left;
        letter-spacing: -0.02rem;
    }
    
    .contact-info {
        gap: 1rem;
    }
    
    .contact-row {
        flex-direction: row;
        gap: 1rem;
    }
    
    .contact-button {
        font-size: 0.95rem;
        padding: 1.1rem;
        width: 50%;
    }
    
    .contact-button i {
        font-size: 1.2rem;
    }
    
    .role, .location {
        font-size: 0.9rem;
        gap: 0.75rem;
    }
    
    .role-text {
        gap: 0.25rem;
    }

    .role-text div {
        line-height: 1.4;
    }

    .company-icon.stanford {
        width: 20px;
        height: 20px;
        margin-top: 3px;
    }

    .location i {
        width: 18px;
        height: 18px;
    }
}

.role .institution {
    color: var(--stanford-red);
    font-weight: 500;
} 