/* ===== GENERAL RESET AND TYPOGRAPHY ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #3a5a9f;
    --primary-light: #4c6cb3;
    --primary-dark: #2d3e50;
    --accent-color: #39a2db;
    --text-color: #333;
    --text-light: #666;
    --text-dark: #222;
    --bg-color: #f8fafc;
    --bg-light: #ffffff;
    --bg-accent: #e8f0fe;
    --border-color: #e0e0e0;
    --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --border-radius: 8px;
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    font-size: 16px;
}

/* ===== LAYOUT COMPONENTS ===== */
.wrapper {
    max-width: 1200px;
    margin: 2rem auto;
    background-color: var(--bg-light);
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    overflow: hidden;
}

.container {
    width: 100%;
    padding: 2rem;
    margin: 0 auto;
}

header {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

main {
    min-height: 60vh;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.2rem;
}

h2 {
    font-size: 1.8rem;
    position: relative;
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.4rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-color);
}

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

a:hover {
    color: var(--primary-light);
}

/* ===== HEADER & NAVIGATION ===== */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.page-header h1 {
    margin-bottom: 0;
}

nav {
    display: flex;
    gap: 1.5rem;
}

nav a {
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transition: var(--transition);
}

nav a:hover::after,
nav a.active::after {
    width: 100%;
}

nav a.active {
    color: var(--primary-color);
    font-weight: 600;
}

/* ===== HOME PAGE LAYOUT ===== */
header .container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
}

/* Left Section - Profile */
.left-section {
    background-color: var(--bg-accent);
    border-radius: var(--border-radius);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: var(--card-shadow);
}

.profile-container {
    position: relative;
    margin-bottom: 1.5rem;
}

.profile-photo-circle {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--bg-light);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.left-section h1 {
    font-size: 1.6rem;
    margin-bottom: 0.8rem;
}

.title-container {
    margin-bottom: 1.5rem;
}

.role {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.3rem;
}

.education, .university {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 0.3rem;
}

.email a {
    font-size: 0.9rem;
}

.contact-icons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.contact-icons a {
    width: 40px;
    height: 40px;
    background-color: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    transition: var(--transition);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.contact-icons a:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.contact-icons i {
    font-size: 1.2rem;
}

/* Right Section Content */
.right-section {
    padding: 0 0 1rem;
}

.right-section nav {
    justify-content: flex-end;
    margin-bottom: 2rem;
}

/* About Section */
#about p {
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

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

.research-card {
    background-color: var(--bg-light);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    border-top: 3px solid var(--primary-color);
}

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

.card-icon {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.research-card h3 {
    margin-bottom: 0.8rem;
    color: var(--primary-dark);
}

.research-card p {
    font-size: 0.95rem;
    color: var(--text-light);
}

/* Skills Section */
.skills-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.skill-item {
    display: flex;
    background-color: var(--bg-light);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    border-left: 4px solid var(--primary-color);
}

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

.skill-icon {
    margin-right: 1rem;
    color: var(--primary-color);
    font-size: 1.5rem;
    flex-shrink: 0;
}

.skill-content h3 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.skill-content p {
    font-size: 0.95rem;
    color: var(--text-light);
}

/* CTA Section */
.cta-container {
    margin-top: 2.5rem;
    text-align: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.5rem;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50px;
    font-weight: 500;
    transition: var(--transition);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn:hover {
    background-color: var(--primary-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

.btn i {
    margin-right: 0.5rem;
}

/* ===== PROJECTS PAGE ===== */
.section-intro {
    max-width: 800px;
    margin: 0 auto 3rem;
    text-align: center;
}

.section-intro p {
    font-size: 1.1rem;
    color: var(--text-light);
}

.project-category {
    margin-bottom: 4rem;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
}

.category-header i {
    font-size: 1.8rem;
    color: var(--primary-color);
}

.category-header h3 {
    margin-bottom: 0;
    font-size: 1.6rem;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.ai4science .category-header i { color: #4285F4; }
.generative-ai .category-header i { color: #DB4437; }
.time-series .category-header i { color: #0F9D58; }

.ai4science { background-color: #f0f8ff; padding: 2rem; border-radius: var(--border-radius); }
.generative-ai { background-color: #fff0f0; padding: 2rem; border-radius: var(--border-radius); }
.time-series { background-color: #f0fff0; padding: 2rem; border-radius: var(--border-radius); }

.project-item {
    background-color: var(--bg-light);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.project-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.journal-tag {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: var(--primary-color);
    color: white;
    font-size: 0.75rem;
    padding: 0.3rem 0.7rem;
    border-radius: 50px;
    z-index: 2;
    font-weight: 500;
}

.project-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.project-item .content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-item h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    color: var(--primary-dark);
}

.project-item p {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 1.2rem;
    flex-grow: 1;
}

.project-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: auto;
}

.project-link {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background-color: #f1f5f9;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--primary-color);
    transition: var(--transition);
}

.project-link:hover {
    background-color: var(--primary-color);
    color: white;
}

.project-link i {
    margin-right: 0.4rem;
    font-size: 0.9rem;
}

/* ===== BLOG PAGE ===== */
.blog-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.blog-category {
    margin-bottom: 3rem;
    background-color: var(--bg-accent);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--card-shadow);
}

.blog-category .category-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.8rem;
}

.blog-category .category-header i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.blog-category h3 {
    font-size: 1.3rem;
    margin-bottom: 0;
    color: var(--primary-dark);
}

.blog-post {
    padding: 1.2rem;
    margin-bottom: 1rem;
    background-color: var(--bg-light);
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    transition: var(--transition);
}

.blog-post:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.blog-post a {
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--primary-dark);
    transition: var(--transition);
    display: block;
    margin-bottom: 0.5rem;
}

.blog-post a:hover {
    color: var(--primary-color);
}

.blog-meta {
    font-size: 0.85rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.blog-meta i {
    color: var(--primary-color);
    font-size: 0.8rem;
}

/* ===== FOOTER ===== */
footer {
    background-color: var(--bg-accent);
    padding: 1.5rem 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

footer p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 0;
}

footer .fa-heart {
    color: #e25555;
    margin: 0 0.2rem;
}

/* ===== PLACEHOLDER SVG ===== */
utils/placeholder.svg {
    background-color: #eee;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fadeIn {
    animation: fadeIn 0.8s ease;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 992px) {
    .container {
        padding: 1.5rem;
    }
    
    header .container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .left-section {
        max-width: 600px;
        margin: 0 auto;
        padding: 1.5rem;
    }
    
    .profile-photo-circle {
        width: 150px;
        height: 150px;
    }
    
    .right-section nav {
        justify-content: center;
        margin-bottom: 1.5rem;
    }
    
    .project-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .wrapper {
        margin: 1rem;
    }
    
    .container {
        padding: 1rem;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .page-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .skills-list,
    .research-areas {
        grid-template-columns: 1fr;
    }
    
    .profile-photo-circle {
        width: 120px;
        height: 120px;
    }
    
    .project-grid {
        grid-template-columns: 1fr;
    }
    
    .project-image {
        height: 180px;
    }
    
    .ai4science,
    .generative-ai,
    .time-series {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0.8rem;
    }
    
    nav {
        gap: 0.8rem;
    }
    
    .contact-icons a {
        width: 36px;
        height: 36px;
    }
    
    .contact-icons i {
        font-size: 1rem;
    }
    
    .btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
    }
}
