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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f8f9fa;
}

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

/* Header Styles */
header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px 40px;
    margin-bottom: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Header Content Layout */
.header-content {
    display: flex;
    align-items: center;
    gap: 60px;
}

/* Profile Image Styles */
.profile-image-container {
    flex-shrink: 0;
}

.profile-image {
    width: 150px;
    height: 180px;
    border-radius: 50% / 60%;  /* Creates oval shape */
    border: 4px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

/* Header Text Section */
.header-text {
    flex: 1;
}

h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1.2em;
    opacity: 0.95;
    margin-bottom: 20px;
}

.contact-info {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 0.95em;
}

.contact-info a {
    color: white;
    text-decoration: none;
    opacity: 0.9;
    transition: opacity 0.3s;
}

.contact-info a:hover {
    opacity: 1;
}

/* Section Styles */
.section {
    background: white;
    margin-bottom: 30px;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

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

h3 {
    color: #333;
    margin-bottom: 10px;
    font-size: 1.2em;
}

/* Item Styles */
.education-item,
.project-item,
.publication-item,
.award-item {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #f0f0f0;
}

.education-item:last-child,
.project-item:last-child,
.publication-item:last-child,
.award-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.date {
    color: #666;
    font-size: 0.9em;
    margin-bottom: 5px;
}

.institution {
    font-weight: 600;
    color: #444;
}

.description {
    margin-top: 10px;
    color: #555;
    line-height: 1.7;
}

/* Research Interests Grid */
.research-interests {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.interest-item {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 3px solid #667eea;
}

.interest-item strong {
    display: block;
    margin-bottom: 5px;
}

/* Publication Styles */
.publication-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.authors {
    color: #666;
    font-size: 0.95em;
    margin-bottom: 5px;
}

.venue {
    color: #667eea;
    font-style: italic;
}

/* Skills & Tags */
.skills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.skill-tag {
    background: #f0f0f0;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9em;
    color: #555;
    transition: all 0.3s ease;
}

.skill-tag:hover {
    background: #e0e0e0;
    transform: translateY(-2px);
}

/* Project Tech Badges */
.project-tech {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tech-badge {
    background: #667eea;
    color: white;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.85em;
    transition: all 0.3s ease;
}

.tech-badge:hover {
    background: #5568d3;
    transform: translateY(-1px);
}

/* Animation Classes */
.section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.section.fade-in {
    opacity: 1;
    transform: translateY(0);
}

/* Dark Mode Styles */
body.dark-mode {
    background: #1a1a1a;
    color: #e0e0e0;
}

body.dark-mode .profile-image {
    border-color: rgba(255, 255, 255, 0.7);
}

body.dark-mode .section {
    background: #2a2a2a;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

body.dark-mode h2 {
    color: #9ba3f5;
    border-bottom-color: #3a3a3a;
}

body.dark-mode h3 {
    color: #e0e0e0;
}

body.dark-mode .skill-tag {
    background: #3a3a3a;
    color: #e0e0e0;
}

body.dark-mode .interest-item {
    background: #3a3a3a;
    border-left-color: #9ba3f5;
}

body.dark-mode .date,
body.dark-mode .authors,
body.dark-mode .description {
    color: #b0b0b0;
}

body.dark-mode .institution {
    color: #d0d0d0;
}

/* Print Styles */
@media print {
    body {
        background: white;
    }

    .section {
        box-shadow: none;
        border: 1px solid #ddd;
        page-break-inside: avoid;
    }

    header {
        background: #667eea !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    header {
        padding: 40px 20px;
    }

    .header-content {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

    h1 {
        font-size: 2em;
    }

    .section {
        padding: 20px;
    }

    .contact-info {
        justify-content: center;
    }

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

@media (max-width: 480px) {
    h1 {
        font-size: 1.6em;
    }

    h2 {
        font-size: 1.4em;
    }

    .subtitle {
        font-size: 1em;
    }
}