/**
 * Main styles for Edward Hong Wang's academic website
 * Most styles are now directly in index.html for faster loading
 * This file contains supplementary styles for potential future use
 */

/* Global Styles - Fallback */
:root {
    --primary-color: rgb(2, 90, 119);
    --dark-color: #333;
    --light-color: #f4f4f4;
    --danger-color: #dc3545;
    --success-color: #28a745;
}

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

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

a:hover {
    color: #2c5aa0;
    text-decoration: none;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Navbar */
.navbar {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: 700;
    color: var(--primary-color) !important;
}

.nav-link {
    font-weight: 500;
    margin: 0 8px;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

/* Home Section */
#home {
    padding-top: 100px;
    padding-bottom: 100px;
}

.profile-image {
    text-align: center;
    margin-bottom: 2rem;
}

.profile-image img {
    width: 220px;
    height: 220px;
    object-fit: cover;
    border: 5px solid #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

.social-links {
    margin-top: 20px;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    font-size: 18px;
    text-align: center;
    color: var(--primary-color);
    background-color: #f0f8ff;
    border-radius: 50%;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--primary-color);
    color: #fff;
    transform: translateY(-3px);
}

/* About Section */
#about {
    background-color: #f9f9f9;
}

/* Research Section */
.research-item {
    background-color: #fff;
    border-radius: 5px;
    padding: 20px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.research-item:hover {
    transform: translateY(-5px);
}

/* Publications Section */
.publication-item {
    background-color: #fff;
    border-radius: 5px;
    padding: 20px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

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

.publication-links {
    margin-top: 15px;
}

.publication-links a {
    margin-right: 10px;
}

/* Contact Section */
#contact {
    background-color: #fff;
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: #fff;
    text-align: center;
}

/* ------- Utility Classes ------- */

/* For elements that need high contrast visibility */
.highlight {
    color: var(--primary-color);
    font-weight: bold;
}

/* Responsive design fixes */
@media (max-width: 768px) {
    #home {
        text-align: center;
    }
    
    .profile-image {
        margin-bottom: 2rem;
    }
    
    .research-item {
        padding: 15px !important;
    }
}

/* Section Headers - Fallback */
section h2 {
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 25%;
    width: 50%;
    height: 3px;
    background-color: var(--primary-color);
} 