:root {
    --primary-color: #2B5B96; /* Deep blue */
    --secondary-color: #4B7BB5; /* Lighter blue */
    --accent-color: #E87480; /* Soft coral */
    --accent-blue: #4B7BB5;
    --accent-green: #A23438; /* Deep red */
    --accent-red-dark: #7A1E24; /* Darker red */
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-white: #ffffff;
    --bg-light: #f9fafb;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header */
.header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 50%, var(--accent-color) 100%);
    color: white;
    padding: 4rem 0;
    margin-bottom: 3rem;
}

.profile-section {
    display: flex;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.profile-picture {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid rgba(255, 255, 255, 0.3);
    box-shadow: var(--shadow-lg);
}

.profile-info h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.subtitle {
    font-size: 1.25rem;
    opacity: 0.95;
    margin-bottom: 1rem;
}

.contact-info {
    margin: 1rem 0;
}

.contact-info p {
    margin: 0.5rem 0;
    opacity: 0.9;
}

.contact-info a {
    color: white;
    text-decoration: underline;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.social-link {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    color: white;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.mini-title {
    font-size: 0.9rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.85;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

/* Education and Focus Areas Section */
.education-focus-section {
    padding: 2rem 0;
    margin-bottom: 2rem;
}

.education-focus-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.education-focus-column {
    display: flex;
    flex-direction: column;
}

.mini-section-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--accent-red-dark);
    position: relative;
    padding-bottom: 0.5rem;
}

.mini-section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

/* Compact Timeline for Education */
.timeline-compact {
    padding-left: 0;
}

.timeline-compact::before {
    left: 25px;
    width: 3px;
    transform: translateX(-50%);
}

.timeline-compact .timeline-item {
    margin-bottom: 2rem;
    padding-left: 0;
}

.timeline-compact .timeline-logo {
    height: 50px;
    width: 50px;
    border: 3px solid var(--border-color);
    padding: 8px;
}

.timeline-compact .timeline-logo-wrapper {
    position: relative;
    width: 50px;
    height: 50px;
    flex-shrink: 0;
}

.timeline-compact .timeline-content-wrapper h3 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.timeline-compact .timeline-year {
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
}

/* Focus Areas Grid */
.focus-areas-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.focus-area-item {
    background: white;
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.focus-area-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    border-color: var(--primary-color);
}

.focus-area-item h3 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
}

.header-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: flex-start;
}

.institution-logo {
    height: 36px;
    max-width: 120px;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    padding: 0.35rem 0.6rem;
    box-shadow: var(--shadow-sm);
}

/* Section Titles */
.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--accent-red-dark);
    position: relative;
    padding-bottom: 0.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

/* Current Focus Section */
.current-focus {
    padding: 3rem 0;
    background: var(--bg-light);
    margin-bottom: 3rem;
}

.focus-content {
    display: block;
}

.focus-text p {
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.bio-text-inline {
    color: var(--text-dark);
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

/* Publications */
.publications {
    padding: 3rem 0;
    margin-bottom: 3rem;
}

.publications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.publication-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.publication-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
    border-color: var(--primary-color);
}

.publication-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.publication-authors {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.publication-venue {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.publication-link {
    color: var(--primary-color);
    text-decoration: none;
}

.publication-link:hover {
    text-decoration: underline;
}

.publication-media {
    margin-top: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    min-height: 180px;
}

.media-icon {
    font-size: 1.2rem;
}

.publication-media-icon {
    width: 280px;
    max-width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: contain;
    background-color: white;
    border-radius: 10px;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    padding: 0.5rem;
}

.publication-media-icon:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: var(--shadow-lg);
}

/* Projects and Activities */
.projects-activities {
    padding: 3rem 0;
    background: var(--bg-light);
    margin-bottom: 3rem;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
}

.project-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    min-height: 450px;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.project-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.project-link {
    color: inherit;
    text-decoration: none;
}

.project-link:hover {
    text-decoration: underline;
}

.project-role {
    color: var(--accent-color);
    font-weight: 500;
    margin-bottom: 1rem;
}

.project-image {
    width: 100%;
    height: 200px;
    object-fit: contain;
    background-color: white;
    border-radius: 8px;
    margin-top: 1rem;
    padding: 0.5rem;
}

.project-media {
    margin-top: auto;
}

.project-logo {
    height: 28px;
    width: auto;
    object-fit: contain;
    margin-bottom: 0.5rem;
}

/* Timeline (Education & Work) */
.education,
.work-experience {
    padding: 2rem 0;
    margin-bottom: 2rem;
}

.timeline {
    position: relative;
    padding-left: 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--primary-color), var(--accent-red-dark));
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
    padding-left: 0;
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.work-experience .timeline-item {
    margin-bottom: 2.5rem;
}

.timeline-logo-wrapper {
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.timeline-logo {
    display: block;
    height: 60px;
    width: 60px;
    object-fit: contain;
    border-radius: 50%;
    border: 3px solid var(--border-color);
    background: white;
    padding: 8px;
    box-shadow: var(--shadow-sm);
}

.timeline-content-wrapper {
    flex: 1;
    padding-top: 0.25rem;
}

.timeline-year {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.timeline-content-wrapper h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.work-experience .timeline-content-wrapper h3 {
    font-size: 1.15rem;
}

.timeline-content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.timeline-content p {
    color: var(--text-light);
    margin: 0.5rem 0;
}

.timeline-details {
    font-style: italic;
    color: var(--text-light);
}

.achievements {
    list-style: none;
    margin-top: 1rem;
}

.achievements li {
    margin: 0.5rem 0;
    color: var(--text-light);
}

/* Skills */
.skills {
    padding: 3rem 0;
    background: var(--bg-light);
    margin-bottom: 3rem;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
}

.skill-category h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.skill-tag {
    background: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-dark);
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.skill-tag:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* Student Projects */
.student-projects {
    padding: 3rem 0;
    background: var(--bg-light);
    margin-bottom: 3rem;
}

.student-projects-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--accent-red-dark);
    position: relative;
    padding-bottom: 0.5rem;
}

.student-projects-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

.student-projects-intro {
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.student-projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.student-project-item {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.student-project-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    border-color: var(--primary-color);
}

.student-project-item h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
}


/* Footer */
.footer {
    background: var(--text-dark);
    color: white;
    padding: 2rem 0;
    text-align: center;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    cursor: pointer;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 8px;
}

.close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
}

.close:hover {
    color: var(--accent-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .profile-section {
        flex-direction: column;
        text-align: center;
    }

    .profile-picture {
        width: 150px;
        height: 150px;
    }

    .profile-info h1 {
        font-size: 2rem;
    }

    .focus-content {
        grid-template-columns: 1fr;
    }

    .publications-grid,
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .container {
        padding: 0 1rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .education-focus-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .focus-areas-grid {
        grid-template-columns: 1fr;
    }

    .header-logos {
        justify-content: center;
    }

    .focus-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 2rem 0;
    }

    .profile-info h1 {
        font-size: 1.5rem;
    }

    .subtitle {
        font-size: 1rem;
    }
}

