:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --text-color: #2c3e50;
    --background-color: #f5f6fa;
    --card-background: #ffffff;
    --timeline-color: #3498db;
    --nav-background: rgba(255, 255, 255, 0.95);
    --nav-text: #2c3e50;
    --nav-active: #e74c3c;
    --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --hover-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Navigation Styles */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--nav-background);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.nav-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--nav-text);
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-name:hover {
    color: var(--nav-active);
}

.nav-right {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--nav-text);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--nav-active);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.active {
    color: var(--nav-active);
    font-weight: 600;
}

.theme-toggle {
    background: none;
    border: none;
    color: var(--nav-text);
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0.5rem;
    transition: transform 0.3s ease;
}

.theme-toggle:hover {
    transform: rotate(180deg);
}

/* Container Styles */
.container {
    max-width: 1400px;
    margin: 80px auto 0;
    padding: 2rem;
    display: flex;
    gap: 3rem;
    flex: 1;
}

/* Sidebar Styles */
.sidebar {
    width: 300px;
    position: sticky;
    top: 100px;
    height: fit-content;
    margin-top: 0;
}

.profile-section {
    background-color: var(--card-background);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-section:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
}

.profile-image {
    width: 200px;
    height: 200px;
    margin: 0 auto 2rem;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--secondary-color);
    box-shadow: 0 0 20px rgba(52, 152, 219, 0.3);
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.social-icon {
    color: var(--primary-color);
    font-size: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
}

.social-icon:hover {
    color: var(--secondary-color);
    transform: translateY(-3px);
}

/* Main Content Styles */
.main-content {
    flex: 1;
    max-width: 900px;
    margin-top: 0;
}

.intro-section {
    background-color: var(--card-background);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    margin-bottom: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-top: 0;
}

.intro-section:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
}

.welcome-text {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.intro-text {
    font-size: 1.1rem;
    line-height: 1.8;
}

.advisor-link {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

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

.scholar-link {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

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

.section-title {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.section-title i {
    color: var(--secondary-color);
}

/* Research Interests Grid */
.research-interests {
    background-color: var(--card-background);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    margin-bottom: 2rem;
}

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

.interest-card {
    padding: 2rem;
    border-radius: 15px;
    background-color: var(--background-color);
    text-align: center;
    transition: all 0.3s ease;
}

.interest-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--hover-shadow);
}

.interest-card i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.interest-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

/* Timeline Styles */
.academic-journey {
    background-color: var(--card-background);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    margin-bottom: 2rem;
}

.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 2px;
    background-color: var(--timeline-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
    padding-left: 2rem;
    transition: transform 0.3s ease;
}

.timeline-item:hover {
    transform: translateX(10px);
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -0.5rem;
    top: 0.5rem;
    width: 1rem;
    height: 1rem;
    background-color: var(--timeline-color);
    border-radius: 50%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-item:hover::before {
    transform: scale(1.5);
    box-shadow: 0 0 10px rgba(52, 152, 219, 0.5);
}

.date {
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

/* News Section */
.news {
    background-color: var(--card-background);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--card-shadow);
}

.news-list {
    list-style: none;
}

.news-list li {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
    transition: transform 0.3s ease;
}

.news-list li:hover {
    transform: translateX(10px);
}

.news-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
}

/* Footer Styles */
.footer {
    background-color: var(--card-background);
    padding: 2rem;
    margin-top: 3rem;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pageviews {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.pageviews-map {
    height: 40px;
    border-radius: 5px;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        position: static;
        margin-bottom: 2rem;
    }

    .profile-section {
        max-width: 500px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .nav-content {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-right {
        flex-wrap: wrap;
        justify-content: center;
    }

    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .container {
        padding: 1rem;
    }

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

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

.modal-content {
    background-color: var(--card-background);
    margin: 15% auto;
    padding: 2rem;
    border-radius: 15px;
    width: 300px;
    text-align: center;
    position: relative;
}

.close {
    position: absolute;
    right: 1rem;
    top: 0.5rem;
    font-size: 1.5rem;
    cursor: pointer;
}

.modal-qr {
    width: 200px;
    height: 200px;
    margin: 1rem 0;
}

/* Publications Page Styles */
.page-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.publication-item {
    display: flex;
    gap: 2rem;
    background-color: var(--card-background);
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 2rem;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease;
}

.publication-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
}

.pub-image {
    flex: 0 0 300px;
    overflow: hidden;
}

.pub-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pub-content {
    flex: 1;
    padding: 2rem;
}

.pub-title {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

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

.pub-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: var(--background-color);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.pub-link:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Projects Page Styles */
.project-card {
    display: flex;
    gap: 2rem;
    background-color: var(--card-background);
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 2rem;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease;
}

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

.project-image {
    flex: 0 0 400px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-content {
    flex: 1;
    padding: 2rem;
}

.project-title {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.project-description {
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* Pageviews Map Styles */
.pageviews-map-container {
    width: 100%;
    height: 400px;
    margin-bottom: 1rem;
    border-radius: 10px;
    overflow: hidden;
}

/* Main Wrapper Styles */
.main-wrapper {
    max-width: 1400px;
    margin: 80px auto 0;
    padding: 2rem;
}

.main-wrapper .page-title {
    margin-bottom: 2rem;
    padding: 0 2rem;
}

.last-updated {
    color: var(--secondary-color);
    font-style: italic;
    margin: -1rem 0 2rem 2rem;
}

/* Container adjustments */
.container {
    margin: 0 auto;
    padding: 0 2rem;
}

/* Home Container Specific Styles */
.home-container {
    display: flex;
    gap: 3rem;
    padding-top: 0;
}

.main-wrapper {
    max-width: 1400px;
    margin: 80px auto 0;
    padding: 2rem;
}

.container {
    margin: 0 auto;
    padding: 0 2rem;
}

/* News Section Styles */
.news-container {
    max-height: 300px;
    overflow-y: auto;
    padding-right: 10px;
    /* Styling the scrollbar */
    scrollbar-width: thin;
    scrollbar-color: #888 #f1f1f1;
}

.news-container::-webkit-scrollbar {
    width: 6px;
}

.news-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.news-container::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

.news-container::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Teaching Experience Section */
.teaching-experience {
    margin: 2rem 0;
    padding: 1rem;
    background: var(--card-bg);
    border-radius: 8px;
    box-shadow: var(--card-shadow);
}

.teaching-experience .timeline {
    margin-top: 1.5rem;
}

/* CV Action Buttons */
.cv-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.action-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.preview-button {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.preview-button:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.download-button {
    background: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.download-button:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.action-button i {
    font-size: 1.1rem;
} 