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

/* Accessibility: skip navigation link */
.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #2b6cb0;
    color: #fff;
    padding: 12px 24px;
    z-index: 200;
    text-decoration: none;
    font-weight: 500;
    border-radius: 0 0 5px 5px;
}

.skip-link:focus {
    top: 0;
    color: #fff;
}

/* Accessibility: header email link */
.header-email {
    color: #fff;
    text-decoration: none;
}

.header-email:hover,
.header-email:focus {
    color: #fff;
    text-decoration: underline;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

header {
    background: linear-gradient(135deg, #2c5282 0%, #2b6cb0 100%);
    color: #fff;
    padding: 30px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.header-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    font-weight: 300;
    letter-spacing: 1px;
}

header .subtitle {
    font-size: 1.1em;
    opacity: 0.95;
    font-weight: 300;
}

nav {
    background-color: #fff;
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

nav ul {
    list-style: none;
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    padding: 0 20px;
}

nav li {
    margin: 0;
}

nav a {
    display: block;
    padding: 18px 30px;
    color: #4a5568;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

nav a:hover {
    color: #2b6cb0;
    background-color: #f7fafc;
}

nav a.active {
    color: #2b6cb0;
    border-bottom-color: #2b6cb0;
}

.container {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px;
}

.content {
    background-color: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.profile-section {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    margin-bottom: 40px;
}

.profile-text {
    flex: 1;
}

.profile-image {
    flex-shrink: 0;
}

.profile-image img {
    width: 220px;
    height: 220px;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

h2 {
    color: #2d3748;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e2e8f0;
    font-size: 1.8em;
}

.section {
    margin-bottom: 35px;
}

.section p {
    margin-bottom: 15px;
    text-align: justify;
}

a {
    color: #2b6cb0;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #1e4e8c;
    text-decoration: underline;
}

/* Accessibility: focus indicators for all interactive elements */
a:focus,
.quick-links a:focus,
.media-link:focus,
.download-btn:focus {
    outline: 2px solid #2b6cb0;
    outline-offset: 2px;
}

nav a:focus {
    outline: 2px solid #2b6cb0;
    outline-offset: -2px;
}

.quick-links a:focus,
.download-btn:focus {
    outline-color: #1e4e8c;
}

.media-link:focus {
    background-color: #2b6cb0;
    color: white;
}

.quick-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.quick-links a {
    padding: 10px 20px;
    background-color: #2b6cb0;
    color: white;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease;
    font-weight: 500;
}

.quick-links a:hover {
    background-color: #1e4e8c;
    text-decoration: none;
}

/* Research page specific styles */
.publication {
    margin-bottom: 25px;
    padding: 20px;
    background-color: #f7fafc;
    border-radius: 5px;
    border-left: 4px solid #2b6cb0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.publication:hover {
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.publication-title {
    font-weight: 600;
    font-size: 1.1em;
    color: #2d3748;
    margin-bottom: 8px;
}

.publication-venue {
    color: #2b6cb0;
    font-style: italic;
    margin-bottom: 5px;
}

.publication-authors {
    color: #718096;
    font-size: 0.95em;
}

.media-links {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
}

.media-link {
    padding: 8px 16px;
    background-color: #edf2f7;
    color: #2d3748;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.95em;
}

.media-link:hover {
    background-color: #2b6cb0;
    color: white;
    text-decoration: none;
}

.featured-article {
    background-color: #ebf8ff;
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 20px;
    border-left: 4px solid #3182ce;
}

.featured-article h3 {
    color: #2c5282;
    margin-bottom: 10px;
}

/* CV page specific styles */
.cv-info {
    margin: 30px 0;
    color: #4a5568;
}

.download-btn {
    display: inline-block;
    padding: 15px 40px;
    background-color: #2b6cb0;
    color: white;
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 1.1em;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.download-btn:hover {
    background-color: #1e4e8c;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    text-decoration: none;
}

.pdf-icon {
    margin-right: 8px;
}

.cv-preview {
    margin-top: 40px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
}

.cv-preview iframe {
    width: 100%;
    height: 800px;
    border: none;
}

.alternative-link {
    margin-top: 20px;
    color: #718096;
    font-size: 0.9em;
}

.alternative-link a {
    color: #2b6cb0;
    text-decoration: none;
}

.alternative-link a:hover {
    text-decoration: underline;
}

footer {
    background-color: #2d3748;
    color: #e2e8f0;
    padding: 25px 0;
    text-align: center;
    margin-top: 60px;
}

footer p {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Mobile responsive styles */
@media (max-width: 768px) {
    header h1 {
        font-size: 1.8em;
    }

    header .subtitle {
        font-size: 0.95em;
    }

    nav ul {
        flex-direction: column;
        padding: 0;
    }

    nav a {
        border-bottom: none;
        border-left: 3px solid transparent;
        padding: 15px 20px;
    }

    nav a.active {
        border-left-color: #2b6cb0;
        border-bottom-color: transparent;
    }

    .container {
        padding: 0 15px;
    }

    .content {
        padding: 20px;
    }

    .profile-section {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 25px;
    }

    .profile-image img {
        width: 180px;
        height: 180px;
    }

    .quick-links {
        flex-direction: column;
        width: 100%;
    }

    .quick-links a {
        width: 100%;
        text-align: center;
    }

    h2 {
        font-size: 1.5em;
    }

    .section p {
        text-align: left;
    }

    .publication {
        padding: 15px;
    }

    .publication-title {
        font-size: 1em;
    }

    .publication-venue,
    .publication-authors {
        font-size: 0.9em;
    }

    .featured-article {
        padding: 15px;
    }

    .featured-article h3 {
        font-size: 1.1em;
    }

    .media-links {
        flex-direction: column;
    }

    .media-link {
        width: 100%;
        text-align: center;
    }

    .download-btn {
        padding: 12px 30px;
        font-size: 1em;
    }

    .cv-preview iframe {
        height: 500px;
    }
}
