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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    background: #fff;
    font-size: 16px;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Links */
a {
    color: #0066cc;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #0052a3;
    text-decoration: underline;
}

/* Header Section */
.header {
    margin-bottom: 3rem;
}

.profile-section {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    margin-bottom: 2rem;
}

.profile-image {
    flex-shrink: 0;
}

.profile-image img {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #f0f0f0;
}

.profile-info {
    flex: 1;
}

.name {
    font-size: 2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.title {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.highlight {
    color: #0066cc;
    font-weight: 500;
}

.social-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1rem;
    justify-content: flex-start;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: #ffffff;
    border: 2px solid #e1e5e9;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.social-link i {
    font-size: 1.3rem;
    transition: all 0.3s ease;
    z-index: 2;
}

.social-link span {
    display: none; /* Hide text labels in circular design */
}

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    text-decoration: none;
}

.social-link:hover i {
    transform: scale(1.1);
}

/* Individual social link colors with circular backgrounds */
.social-link.cv {
    color: #dc3545;
}

.social-link.cv:hover {
    background: #dc3545;
    border-color: #dc3545;
    color: white;
}

.social-link.scholar {
    color: #4285f4;
}

.social-link.scholar:hover {
    background: #4285f4;
    border-color: #4285f4;
    color: white;
}

.social-link.linkedin {
    color: #0077b5;
}

.social-link.linkedin:hover {
    background: #0077b5;
    border-color: #0077b5;
    color: white;
}

.social-link.email {
    color: #ea4335;
}

.social-link.email:hover {
    background: #ea4335;
    border-color: #ea4335;
    color: white;
}

.social-link.github {
    color: #333;
}

.social-link.github:hover {
    background: #333;
    border-color: #333;
    color: white;
}

/* Add subtle pulse animation */
.social-link {
    animation: fadeInScale 0.6s ease backwards;
}

.social-link:nth-child(1) { animation-delay: 0.1s; }
.social-link:nth-child(2) { animation-delay: 0.2s; }
.social-link:nth-child(3) { animation-delay: 0.3s; }
.social-link:nth-child(4) { animation-delay: 0.4s; }
.social-link:nth-child(5) { animation-delay: 0.5s; }

/* Hover ripple effect */
.social-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease;
    z-index: 1;
}

.social-link:hover::before {
    width: 100%;
    height: 100%;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.bio {
    margin-top: 2rem;
}

.bio p {
    margin-bottom: 1rem;
    color: #333;
    line-height: 1.6;
    font-size: 1rem;
}

.bio p:last-child {
    margin-bottom: 0;
}

/* Section Headings */
h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1.5rem;
    margin-top: 3rem;
}

h2:first-child {
    margin-top: 0;
}

/* News Section */
.news {
    margin-bottom: 3rem;
}

.news-items {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.news-item {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.95rem;
    line-height: 1.5;
}

.news-item:last-child {
    border-bottom: none;
}

.news-date {
    color: #666;
    font-size: 0.85rem;
    min-width: 60px;
    flex-shrink: 0;
    font-weight: 500;
}

.news-emoji {
    flex-shrink: 0;
    font-size: 1rem;
}

.news-content {
    flex: 1;
    color: #333;
}

.news-link {
    margin-top: 1rem;
    text-align: left;
}

.see-more {
    font-size: 0.9rem;
    color: #0066cc;
    font-style: italic;
}

/* Research Highlights Section */
.research-highlights {
    margin-bottom: 3rem;
}

.research-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.research-item {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.research-preview {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
    height: 200px;
}

.research-chart {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.research-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
    transition: transform 0.3s ease;
}

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

.chart-placeholder {
    color: #6c757d;
    font-size: 0.9rem;
    font-style: italic;
    text-align: center;
    padding: 2rem;
    background: linear-gradient(45deg, #f1f3f4, #e8eaed);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.research-content h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

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

/* Education Section */
.education {
    margin-bottom: 4rem;
}

.education-items {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 1.5rem;
}

.education-item {
    padding: 1.5rem;
    background: var(--surface-color);
    border-radius: 8px;
    transition: transform 0.2s ease;
    border: 1px solid #f0f0f0;
}

.education-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.education-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    gap: 1rem;
}

.education-header h3 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--text-color);
    flex: 1;
}

.education-year {
    font-size: 0.9rem;
    color: var(--accent-color);
    font-weight: 600;
    white-space: nowrap;
}

.education-details p {
    margin: 0.3rem 0;
    color: #666;
    line-height: 1.4;
    font-size: 0.95rem;
}

.institution {
    font-weight: 600;
    color: #333 !important;
    font-size: 1rem;
}

.gpa, .honors {
    color: var(--accent-color) !important;
    font-weight: 500;
}

.focus, .collaboration {
    font-style: italic;
    color: #555 !important;
}

/* Footer */
.footer {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid #dee2e6;
    text-align: center;
    color: #6c757d;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }

    .profile-section {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1.5rem;
    }

    .profile-image img {
        width: 140px;
        height: 140px;
    }

    .name {
        font-size: 1.8rem;
    }

    .title {
        font-size: 1rem;
    }

    .social-links {
        justify-content: center;
        gap: 0.8rem;
    }

    .social-link {
        width: 45px;
        height: 45px;
    }

    .social-link i {
        font-size: 1.2rem;
    }

    .bio {
        text-align: left;
    }

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

    .news-item {
        flex-direction: column;
        gap: 0.3rem;
    }

    .news-date {
        min-width: auto;
        font-size: 0.8rem;
    }
}

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

    .profile-image img {
        width: 120px;
        height: 120px;
    }

    .name {
        font-size: 1.6rem;
    }

    h2 {
        font-size: 1.3rem;
    }

    .social-links {
        gap: 0.6rem;
    }

    .social-link {
        width: 40px;
        height: 40px;
    }

    .social-link i {
        font-size: 1.1rem;
    }
}

/* Print Styles */
@media print {
    .social-links,
    .news-emoji {
        display: none;
    }
    
    .container {
        max-width: none;
        padding: 0;
    }
    
    a {
        color: #000;
        text-decoration: underline;
    }
    
    .highlight {
        color: #000;
        font-weight: 600;
    }
}
