:root {
    --bg-color: #FAFAFA;
    --card-bg: #FFFFFF;
    --text-primary: #1F2937;
    --text-secondary: #6B7280;
    --accent-color: #2563EB;
    /* Royal Blue */
    --accent-hover: #1D4ED8;
    --border-color: #E5E7EB;
    --highlight-bg: #EFF6FF;
    /* Light Blue */
    --highlight-border: #BFDBFE;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --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);
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: var(--accent-color);
    font-weight: 500;
    transition: color 0.2s ease;
}

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

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 24px;
}

/* Header */
.profile-header {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 60px;
    animation: fadeInDown 0.6s ease-out;
}

.profile-photo-placeholder {
    width: 140px;
    height: 140px;
    background: linear-gradient(135deg, #E0E7FF 0%, #DBEAFE 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
    font-weight: 700;
    font-size: 2.5rem;
    border: 4px solid #fff;
    box-shadow: var(--shadow-md);
    font-family: var(--font-heading);
}

.profile-photo {
    width: 140px;
    height: 140px;
    object-fit: cover;
    /* Ensures the image covers the area without distortion */
    border-radius: 50%;
    border: 4px solid #fff;
    box-shadow: var(--shadow-md);
}

.profile-info h1 {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.profile-info .title {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-weight: 400;
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-links a {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding-bottom: 2px;
}

.social-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.social-links a:hover {
    color: var(--accent-color);
}

.social-links a:hover::after {
    width: 100%;
}

/* Nav */
.main-nav {
    margin-bottom: 60px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
    position: sticky;
    top: 0;
    background: rgba(250, 250, 250, 0.9);
    backdrop-filter: blur(10px);
    z-index: 100;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.main-nav a {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 1rem;
    padding: 10px 0;
    display: block;
}

.main-nav a:hover {
    color: var(--accent-color);
}

/* Sections */
.section {
    margin-bottom: 80px;
    animation: fadeInUp 0.6s ease-out;
}

.section h2 {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 30px;
    color: var(--text-primary);
    position: relative;
    display: inline-block;
}

.section h2::after {
    content: '';
    width: 40px;
    height: 4px;
    background-color: var(--accent-color);
    position: absolute;
    bottom: -8px;
    left: 0;
    border-radius: 2px;
}

.summary-text {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.8;
    max-width: 800px;
}

/* Cards & Grid */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 24px;
}

.card {
    background-color: var(--card-bg);
    padding: 24px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--highlight-border);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.card h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

.card .date {
    font-size: 0.85rem;
    color: var(--text-secondary);
    background-color: var(--bg-color);
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 500;
}

.card .role {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.card .field {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 16px;
}

.highlight-box {
    background-color: var(--highlight-bg);
    border: 1px solid var(--highlight-border);
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--text-primary);
}

/* Item List Style (Work) */
.item {
    margin-bottom: 30px;
    padding-left: 20px;
    border-left: 3px solid var(--border-color);
}

.item h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.item .meta {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
    font-style: italic;
}

.item .description {
    color: var(--text-secondary);
    margin-bottom: 0;
}

/* Awards List */
.awards-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.award-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.award-date {
    font-weight: 600;
    color: var(--accent-color);
    min-width: 80px;
    padding-top: 2px;
}

.award-content h3 {
    font-size: 1.1rem;
    font-family: var(--font-heading);
    margin-bottom: 4px;
}

.award-content p {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
}

.skill-category h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 12px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 8px;
}

.skill-category p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Footer */
footer {
    text-align: center;
    margin-top: 100px;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 650px) {
    .profile-header {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .social-links {
        justify-content: center;
    }

    .main-nav ul {
        justify-content: center;
        gap: 20px;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }

    .award-item {
        flex-direction: column;
        gap: 5px;
        margin-bottom: 10px;
    }

    .award-date {
        font-size: 0.9rem;
        color: var(--text-secondary);
    }
}