/* Basic reset and typography */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

/* Header styles */
header {
    background: linear-gradient(135deg, #2c3e50, #1a2a3a);
    color: white;
    padding: 2rem 0;
    text-align: center;
}

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

h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.subtitle {
    font-size: 1.2rem;
    font-weight: 300;
    opacity: 0.9;
}

/* Navigation */
nav {
    background-color: #34495e;
    padding: 1rem 0;
}

nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

nav li {
    margin: 0 1rem;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.3s;
}

nav a:hover, nav a.active {
    background-color: #3498db;
}

/* Main content styles */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

section {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

h2 {
    color: #2c3e50;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #3498db;
}

/* Research interests */
.interests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.interest-card {
    background: #f1f8ff;
    padding: 1.5rem;
    border-radius: 6px;
    border-left: 4px solid #3498db;
}

.interest-card h3 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

/* Publications */
.publication {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
}

.publication:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.publication h3 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.publication .authors {
    font-style: italic;
    color: #7f8c8d;
    margin-bottom: 0.5rem;
}

.publication .journal {
    color: #3498db;
    font-weight: 500;
}

.publication h3 a {
    color: #2c3e50;
    text-decoration: none;
}

.publication h3 a:hover {
    color: #3498db;
    text-decoration: underline;
}

/* Contact */
.contact-info {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 1rem;
}

.contact-item {
    flex: 1;
    min-width: 250px;
    background: #f1f8ff;
    padding: 1.5rem;
    border-radius: 6px;
}

.contact-item h3 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

/* Footer */
footer {
    background: #2c3e50;
    color: white;
    text-align: center;
    padding: 1.5rem;
    margin-top: 2rem;
}

/* Experience section */
.experience-item ul {
    margin-top: 0.5rem;
    padding-left: 1.5rem;
}

.experience-item li {
    margin-bottom: 0.3rem;
}

/* Experience, Education, and Skills sections */
.experience-item, .education-item, .skill-category {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
}

.experience-item:last-child, .education-item:last-child, .skill-category:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.experience-item h3, .education-item h3, .skill-category h3 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

/* Awards and Grants */
.awards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.award-category {
    background: #f1f8ff;
    padding: 1.5rem;
    border-radius: 6px;
    border-left: 4px solid #3498db;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.award-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}

.award-category h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e0e0e0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.award-item {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e8f4ff;
}

.award-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.award-title {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.3rem;
}

.award-date {
    font-size: 0.9rem;
    color: #3498db;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

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

/* Additional styling for award organization */
.award-organization {
    font-size: 0.9rem;
    color: #7f8c8d;
    font-weight: 500;
    margin-bottom: 0.3rem;
}

/* Fancy date styling */
.award-date {
    font-size: 0.9rem;
    color: #3498db;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: inline-block;
    background: rgba(52, 152, 219, 0.1);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    position: relative;
}

.award-date::before {
    content: "📅";
    margin-right: 0.3rem;
}

/* Enhanced award item styling */
.award-item {
    margin-bottom: 1.2rem;
    padding-bottom: 1.2rem;
    border-bottom: 1px dashed #e8f4ff;
    transition: all 0.3s ease;
    position: relative;
}

.award-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.award-item:hover {
    transform: translateX(5px);
}

.award-item::before {
    content: "";
    position: absolute;
    left: -10px;
    top: 8px;
    width: 6px;
    height: 6px;
    background: #3498db;
    border-radius: 50%;
}

/* Improved section spacing */
#awards, #editorial-activities, #conference-activities {
    scroll-margin-top: 2rem;
}

/* Enhanced award category styling */
.award-category {
    background: linear-gradient(135deg, #f1f8ff 0%, #e3f2fd 100%);
    padding: 1.8rem;
    border-radius: 8px;
    border-left: 4px solid #3498db;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.award-category::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    border-width: 0 20px 20px 0;
    border-style: solid;
    border-color: #3498db #fff;
}

.award-category:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}

.award-category h3 {
    color: #2c3e50;
    margin-bottom: 1.2rem;
    padding-bottom: 0.6rem;
    border-bottom: 2px solid rgba(52, 152, 219, 0.2);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    position: relative;
}

.award-category h3::before {
    content: "▸";
    margin-right: 0.5rem;
    color: #3498db;
}

/* Teaching and Supervision */
.teaching-item {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
}

.teaching-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* Collaborations */
.collaborations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.collaboration-category {
    background: #f1f8ff;
    padding: 1.5rem;
    border-radius: 6px;
    border-left: 4px solid #3498db;
}

/* Responsive design */
@media (max-width: 768px) {
    .header-content h1 {
        font-size: 2rem;
    }
    
    main {
        padding: 1rem;
    }
    
    section {
        padding: 1.5rem;
    }
    
    nav ul {
        flex-direction: column;
        align-items: center;
    }
    
    nav li {
        margin: 0.5rem 0;
    }
    
    .contact-info {
        flex-direction: column;
    }
    
    .award-category h3::before {
        display: none;
    }
    
    .award-item::before {
        left: 0;
    }
}

/* Hero video styling */
#hero-video {
    margin-bottom: 2rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

#hero-video video {
    width: 100%;
    height: auto;
    display: block;
    max-height: 500px;
    object-fit: cover;
}

/* Responsive video */
@media (max-width: 768px) {
    #hero-video video {
        max-height: 300px;
    }
}

@media (max-width: 480px) {
    #hero-video video {
        max-height: 200px;
    }
}

@media print {
    #hero-video {
        display: none;
    }
}

/* Print styles for better printing */
@media print {
    body {
        background: white;
        font-size: 12pt;
    }
    
    header {
        background: #2c3e50 !important;
        color: white !important;
        -webkit-print-color-adjust: exact;
        color-adjust: exact;
    }
    
    nav {
        display: none;
    }
    
    section {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .award-category {
        background: white !important;
        border: 1px solid #3498db;
        box-shadow: none;
        -webkit-print-color-adjust: exact;
        color-adjust: exact;
    }
    
    .award-date {
        background: rgba(52, 152, 219, 0.2) !important;
        -webkit-print-color-adjust: exact;
        color-adjust: exact;
    }
}