/* ===================================
   Academic Profile Website Styles
   =================================== */

/* CSS Variables for easy customization */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #34495e;
    --accent-color: #3498db;
    --text-color: #333333;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --border-color: #e1e8ed;
    --shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
}

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

/* Typography */
h1, h2, h3, h4 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
    line-height: 1.2;
}

h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--accent-color);
}

h3 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Navigation Bar */
.navbar {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: var(--secondary-color);
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: var(--accent-color);
    text-decoration: none;
}

/* Header Section */
.header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    padding: 4rem 0;
    text-align: center;
}

.header h1 {
    color: var(--white);
    margin-bottom: 0.5rem;
}

.subtitle {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.affiliation {
    font-size: 1.1rem;
    opacity: 0.85;
}

/* Section Styles */
.section {
    padding: 4rem 0;
}

.section-alt {
    background-color: var(--light-bg);
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.profile-photo {
    text-align: center;
}

.profile-photo img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center top;
    border: 4px solid var(--accent-color);
    box-shadow: var(--shadow);
    background-color: var(--white);
    padding: 10px;
}

.photo-note {
    font-size: 0.85rem;
    color: #666;
    font-style: italic;
    margin-top: 1rem;
}

.research-interests {
    list-style: none;
    padding-left: 0;
}

.research-interests li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.research-interests li:before {
    content: "▹";
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

/* CV Section */
.cv-download {
    background-color: var(--white);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    margin-bottom: 2rem;
}

.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--accent-color);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-download:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
    text-decoration: none;
}

.cv-note {
    font-size: 0.85rem;
    color: #666;
    font-style: italic;
    margin-top: 1rem;
}

.cv-content {
    max-width: 800px;
}

.cv-item {
    margin-bottom: 2rem;
}

.cv-item-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.5rem;
}

.cv-date {
    color: #666;
    font-size: 0.95rem;
}

.cv-detail {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.5;
}

.publication {
    line-height: 1.8;
    padding-left: 1.5rem;
    text-indent: -1.5rem;
}

.skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

.skill-tag {
    background-color: var(--light-bg);
    border: 1px solid var(--border-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--secondary-color);
}

/* Contact Section */
.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.contact-item {
    padding: 1rem;
    background-color: var(--light-bg);
    border-radius: 8px;
    border-left: 4px solid var(--accent-color);
}

.contact-item strong {
    display: block;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.contact-item p {
    margin: 0;
    line-height: 1.6;
}

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

.footer p {
    margin: 0.5rem 0;
}

.footer-note {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .navbar .container {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-menu {
        gap: 1rem;
    }

    .header {
        padding: 3rem 0;
    }

    .section {
        padding: 3rem 0;
    }

    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .profile-photo {
        margin-bottom: 1rem;
    }

    .research-interests {
        text-align: left;
    }

    .cv-item-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }

    .contact-info {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    h1 {
        font-size: 1.75rem;
    }

    .subtitle {
        font-size: 1.1rem;
    }

    .nav-menu {
        gap: 0.75rem;
        font-size: 0.9rem;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .footer {
        display: none;
    }

    .section {
        page-break-inside: avoid;
    }

    a {
        text-decoration: underline;
    }
}
