/* Expert Profile - Base Styles */
:root {
    --primary-color: #6a3de8;
    --primary-dark: #5227cf;
    --primary-light: #8a65f0;
    --primary-lighter: #e9d8fd;
    --primary-lightest: #f5f0ff;
    --secondary-color: #4c1d95;
    --neutral-50: #f9fafb;
    --neutral-100: #f3f4f6;
    --neutral-200: #e5e7eb;
    --neutral-300: #d1d5db;
    --neutral-500: #6b7280;
    --neutral-600: #4b5563;
    --neutral-700: #374151;
    --neutral-900: #111827;
    --danger: #ef4444;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --border-radius-md: 0.375rem;
    --border-radius-lg: 0.5rem;
    --border-radius-xl: 0.75rem;
    --border-radius-full: 9999px;
}

.expert-profile {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    color: var(--neutral-700);
    line-height: 1.6;
    background-color: var(--neutral-100);
}

.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

h1,
h2,
h3 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--neutral-900);
    margin-top: 0;
    margin-bottom: 1rem;
}

p {
    margin-top: 0;
    margin-bottom: 1rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    padding: 0.625rem 1.5rem;
    border-radius: var(--border-radius-md);
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    border: 2px solid transparent;
    font-size: 0.9rem;
    text-decoration: none;
    gap: 0.5rem;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn--primary {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.btn--primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn--outline {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn--outline:hover {
    background-color: var(--primary-lightest);
    color: var(--primary-dark);
}

.expert-profile__hero {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.expert-profile__hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    z-index: 1;
}

.expert-profile__hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.expert-profile__title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.expert-profile__subtitle {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    color: var(--primary-lighter);
    font-weight: 400;
}

.expert-profile__badge {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius-full);
    margin-bottom: 1.5rem;
}

.expert-profile__badge-icon {
    font-size: 1.25rem;
    margin-right: 0.75rem;
    color: var(--primary-lighter);
}

.expert-profile__badge p {
    margin: 0;
    font-weight: 500;
    font-size: 0.9rem;
}

.expert-profile__cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius-full);
    text-decoration: none;
    font-weight: 600;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.expert-profile__cta-btn:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.expert-profile__content {
    padding: 3rem 0;
}

.expert-profile__grid {
    display: grid;
    grid-template-columns: minmax(300px, 1fr) 2.5fr;
    gap: 2.5rem;
}

.profile-card {
    background: white;
    border-radius: var(--border-radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    position: sticky;
    top: 2rem;
}

.profile-card__photo-container {
    width: 150px;
    height: 150px;
    margin: 2rem auto 1rem;
    border-radius: var(--border-radius-full);
    overflow: hidden;
    box-shadow: 0 0 0 4px white, 0 0 0 6px var(--primary-lighter);
    position: relative;
}

.profile-card__photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-card__name {
    font-size: 1.35rem;
    text-align: center;
    margin-bottom: 0.25rem;
}

.profile-card__title {
    font-size: 0.95rem;
    text-align: center;
    color: var(--neutral-500);
    margin-bottom: 0;
}

.profile-card__subtitle {
    font-size: 0.9rem;
    text-align: center;
    color: var(--neutral-500);
    margin-top: 0.25rem;
    margin-bottom: 1.5rem;
}

.profile-card__section {
    padding: 1.5rem;
    border-top: 1px solid var(--neutral-200);
}

.profile-card__section-title {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary-color);
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.profile-card__section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--primary-color);
    border-radius: var(--border-radius-full);
}

.profile-card__expertise-list,
.profile-card__honors-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.profile-card__expertise-item,
.profile-card__honor-item {
    display: flex;
    align-items: center;
    padding: 0.6rem 0;
}

.profile-card__expertise-icon,
.profile-card__honor-badge {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-lightest);
    color: var(--primary-color);
    border-radius: var(--border-radius-full);
    margin-right: 0.85rem;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.profile-card__honor-name {
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.4;
    margin: 0;
}

.profile-card__social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.profile-card__social-link {
    width: 40px;
    height: 40px;
    border-radius: var(--border-radius-full);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    background-color: var(--neutral-200);
    color: var(--neutral-700);
    transition: all 0.3s ease;
}

.profile-card__social-link:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    color: white;
}

.profile-card__social-link--linkedin:hover {
    background-color: #0077b5;
}

.profile-card__social-link--twitter:hover {
    background-color: #1da1f2;
}

.content-section {
    background: white;
    border-radius: var(--border-radius-xl);
    padding: 2.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-lg);
}

.content-section__header {
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 1rem;
}

.content-section__header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 4px;
    background: var(--primary-color);
    border-radius: var(--border-radius-full);
}

.content-section__title {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    color: var(--primary-dark);
}

.content-section__lead {
    font-size: 1.125rem;
    color: var(--neutral-600);
    margin-bottom: 0;
}

.bio-content p {
    font-size: 1.05rem;
    line-height: 1.7;
}

.career-timeline {
    margin: 1rem 0;
}

.career-milestones {
    position: relative;
    padding: 0.5rem 0;
}

.career-milestones::before {
    content: '';
    position: absolute;
    top: 1rem;
    bottom: 1rem;
    left: 38px;
    width: 4px;
    background: var(--primary-lightest);
    border-radius: var(--border-radius-full);
}

.career-milestone {
    display: flex;
    margin-bottom: 2rem;
    position: relative;
}

.career-milestone:last-child {
    margin-bottom: 0;
}

.career-milestone__year {
    flex: 0 0 80px;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
    background-color: white;
    line-height: 1;
    padding-top: .5rem;
    z-index: 1;
}

.career-milestone__content {
    flex: 1;
    padding-left: 1.5rem;
}

.career-milestone__content h3 {
    margin-bottom: 0.25rem;
    font-size: 1.2rem;
}

.career-milestone__content p {
    font-size: .95rem;
    margin-bottom: 0;
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.achievement-card {
    background: var(--neutral-50);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    text-align: center;
    border: 1px solid var(--neutral-200);
    transition: all 0.3s ease;
}

.achievement-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-lighter);
}

.achievement-card__icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    background: var(--primary-lightest);
    color: var(--primary-color);
    border-radius: var(--border-radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
}

.achievement-card__title {
    font-size: 1.25rem;
    color: var(--primary-dark);
}

.achievement-card__text {
    font-size: 0.95rem;
    color: var(--neutral-600);
    margin-bottom: 0;
}

.bio-quote {
    background: var(--primary-lightest);
    border-left: 5px solid var(--primary-color);
    border-radius: 0 var(--border-radius-lg) var(--border-radius-lg) 0;
    padding: 2rem;
    margin: 2.5rem 0;
}

.bio-quote__text {
    font-size: 1.2rem;
    color: var(--primary-dark);
    font-style: italic;
    margin: 0;
}

.bio-quote__author {
    display: block;
    text-align: right;
    margin-top: 1rem;
    font-style: normal;
    font-weight: 600;
    color: var(--neutral-600);
}

.industry-impact {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.industry-card {
    background: white;
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--neutral-200);
    text-align: center;
}

.industry-card__icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 1rem;
    background: var(--primary-lightest);
    color: var(--primary-color);
    border-radius: var(--border-radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.industry-card__title {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
}

.industry-card__text {
    font-size: 0.9rem;
    color: var(--neutral-600);
    margin-bottom: 0;
}

.publications {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.publication {
    background: white;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--neutral-200);
    display: flex;
    flex-direction: column;
}

.publication--featured {
    border-left: 4px solid var(--primary-color);
}

.publication__content {
    padding: 1.5rem;
    flex-grow: 1;
}

.publication__title {
    font-size: 1.2rem;
    color: var(--primary-dark);
    margin-bottom: 0.75rem;
}

.publication__meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: var(--neutral-500);
}

.publication__meta-item {
    display: inline-flex;
    align-items: center;
}

.publication__meta-item i {
    margin-right: 0.35rem;
}

.publication__summary {
    font-size: 0.95rem;
    line-height: 1.6;
}

.publication__footer {
    padding: 1rem 1.5rem;
    background-color: var(--neutral-50);
    border-top: 1px solid var(--neutral-200);
    display: flex;
    justify-content: flex-end;
}

.publications-cta {
    display: flex;
    justify-content: center;
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.resource-card {
    background: var(--neutral-50);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.resource-card:hover {
    background: white;
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.resource-card__icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    background: var(--primary-lightest);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
}

.resource-card__title {
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
    color: var(--primary-dark);
}

.resource-card__text {
    font-size: 0.95rem;
    color: var(--neutral-600);
    margin-bottom: 1.5rem;
}

.resource-card__link {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
}

.resource-card__link:hover {
    text-decoration: underline;
}

/* Floating Action & Modal Styles */
.floating-action {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 90;
}

.floating-action__button {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-color);
    color: white;
    border: none;
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    transition: all 0.3s ease;
}

.floating-action__button:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
    background-color: var(--primary-dark);
}

.floating-action__button--top {
    opacity: 0;
    visibility: hidden;
    transform: scale(0.8);
    transition: all 0.3s ease;
}

.floating-action__button--top.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
    z-index: 100;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.active {
    display: flex;
    opacity: 1;
}

.modal__content {
    background-color: white;
    border-radius: var(--border-radius-lg);
    width: 90%;
    max-width: 500px;
    box-shadow: var(--shadow-xl);
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.modal.active .modal__content {
    transform: scale(1);
}

.modal__header {
    padding: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--neutral-200);
}

.modal__title {
    font-size: 1.25rem;
    margin-bottom: 0;
}

.modal__close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--neutral-500);
    cursor: pointer;
}

.modal__body {
    padding: 1.5rem;
}

.share-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.share-options__button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
    border-radius: var(--border-radius-md);
    color: white;
    text-decoration: none;
    font-weight: 500;
    gap: 0.5rem;
    transition: opacity 0.2s;
}

.share-options__button:hover {
    opacity: 0.85;
}

.share-options__button--linkedin {
    background-color: #0077b5;
}

.share-options__button--twitter {
    background-color: #1da1f2;
}

.share-options__button--facebook {
    background-color: #3b5998;
}

.share-options__button--email {
    background-color: var(--neutral-600);
}

.copy-link {
    display: flex;
    gap: 0.5rem;
}

.copy-link__input {
    flex-grow: 1;
    padding: 0.625rem;
    border-radius: var(--border-radius-md);
    border: 1px solid var(--neutral-300);
    background-color: var(--neutral-100);
}

.copy-link__button {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    background-color: var(--neutral-800);
    color: white;
    padding: 0.625rem 1rem;
    border: none;
    border-radius: var(--border-radius-md);
    cursor: pointer;
}

@media (max-width: 992px) {
    .expert-profile__grid {
        grid-template-columns: 1fr;
    }

    .profile-card {
        position: relative;
        top: 0;
        margin-bottom: 2rem;
    }

    .expert-profile__title {
        font-size: 2rem;
    }

    .content-section {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .expert-profile__content {
        padding: 2rem 0;
    }

    .expert-profile__grid {
        gap: 1rem;
    }

    .content-section {
        padding: 1.5rem;
    }

    .content-section__title {
        font-size: 1.5rem;
    }

    .content-section__lead {
        font-size: 1rem;
    }

    .career-milestones::before {
        left: 18px;
    }

    .career-milestone__year {
        flex: 0 0 40px;
        font-size: 1rem;
        padding-top: .75rem;
    }

    .career-milestone__content {
        padding-left: 1rem;
    }

    .industry-impact,
    .publications {
        grid-template-columns: 1fr;
    }
}