/* Modern Academic Theme */
:root {
    --primary-color: #1a252f;
    /* Very Dark Blue/Grey */
    --accent-color: #c0392b;
    /* Deep Red/Burgundy for academic flair */
    --text-color: #2c3e50;
    --text-light: #7f8c8d;
    --bg-color: #fdfdfd;
    /* Off-white for paper feel */
    --section-bg: #fff;
    --border-color: #ecf0f1;
    --font-heading: 'Georgia', 'Playfair Display', serif;
    --font-body: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --container-max: 1000px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    line-height: 1.8;
    color: var(--text-color);
    background-color: var(--bg-color);
    font-size: 17px;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.2s ease;
}

a:hover {
    color: var(--accent-color);
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 40px;
}

/* Header / Hero Section */
header {
    padding: 80px 0;
    background: linear-gradient(to bottom, #ffffff, #f9f9f9);
    border-bottom: 1px solid var(--border-color);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
}

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

.profile-img {
    width: 250px;
    height: 320px;
    /* Portrait ratio */
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    /* Strong shadow for depth */
    transition: transform 0.3s ease;
}

.profile-img:hover {
    transform: translateY(-5px);
}

.header-text {
    max-width: 500px;
}

.header-text h1 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    color: var(--primary-color);
    line-height: 1.1;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}

.subtitle {
    font-size: 1.4rem;
    font-weight: 300;
    color: var(--accent-color);
    margin-bottom: 5px;
    font-family: var(--font-heading);
    font-style: italic;
}

.affiliation {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 30px;
    font-weight: 500;
}

/* Buttons */
.social-links {
    display: flex;
    gap: 15px;
}

.btn {
    display: inline-block;
    padding: 10px 25px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn:not(.btn-outline) {
    background-color: var(--primary-color);
    color: #fff;
    border: 2px solid var(--primary-color);
}

.btn:not(.btn-outline):hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: #fff;
}

/* Navigation */
nav {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    /* Modern frosted glass effect */
    border-bottom: 1px solid var(--border-color);
    z-index: 100;
    padding: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 40px;
    padding: 20px 0;
}

nav a {
    font-weight: 500;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-light);
    padding: 5px 0;
    position: relative;
}

nav a:hover,
nav a.active {
    color: var(--primary-color);
}

/* Animated Underline */
nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

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

/* Main Content */
main {
    padding: 60px 0;
}

section {
    margin-bottom: 80px;
    scroll-margin-top: 100px;
    /* Fix for sticky header covering section top */
}

h2 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 40px;
    text-align: center;
    position: relative;
    padding-bottom: 20px;
}

h2::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background-color: var(--accent-color);
    margin: 15px auto 0;
}

p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

/* Item Lists */
.item-list {
    list-style: none;
    max-width: 800px;
    margin: 0 auto;
}

.item-list li {
    padding: 25px;
    background-color: var(--section-bg);
    border: 1px solid var(--border-color);
    margin-bottom: 25px;
    border-radius: 8px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.item-list li:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border-color: #ddd;
}

.item-title {
    font-size: 1.25rem;
    color: var(--primary-color);
    display: block;
    margin-bottom: 5px;
    font-family: var(--font-heading);
    font-weight: 500;
}

.item-meta {
    font-size: 0.9rem;
    color: var(--accent-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.item-desc {
    margin-top: 10px;
    font-size: 1rem;
    color: #555;
    font-style: italic;
}

/* Footer */
footer {
    margin-top: 100px;
    padding: 60px 0;
    background-color: var(--primary-color);
    color: #fff;
    text-align: center;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 850px) {
    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .profile-img {
        width: 200px;
        height: 250px;
    }

    .header-text h1 {
        font-size: 2.5rem;
    }

    .social-links {
        justify-content: center;
    }

    .container {
        padding: 0 20px;
    }

    nav ul {
        flex-wrap: wrap;
        gap: 20px;
    }
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.skill-category h3 {
    font-size: 1.1rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.skill-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px dashed #eee;
}

.skill-name {
    font-weight: 500;
}

.skill-level {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Interests Section */
.interests-container {
    background: var(--primary-color);
    color: #fff;
    padding: 40px;
    border-radius: 8px;
}

.interests-container h3 {
    color: #fff;
    border-bottom-color: rgba(255, 255, 255, 0.2);
}

.interest-tag {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    padding: 5px 15px;
    border-radius: 30px;
    margin: 0 10px 10px 0;
    font-size: 0.95rem;
}
/* Tutoring Section */
.tutoring-container {
    background-color: var(--section-bg);
    border: 2px solid var(--accent-color);
    padding: 40px;
    border-radius: 8px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: 0 5px 20px rgba(192, 57, 43, 0.1);
}

.tutoring-container h3 {
    color: var(--accent-color);
    font-size: 1.8rem;
    margin-bottom: 15px;
    font-family: var(--font-heading);
}

.tutoring-text {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: var(--text-color);
    line-height: 1.6;
}

.tutoring-features {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.feature-item {
    font-weight: 500;
    color: var(--primary-color);
    background: #f8f9fa;
    padding: 8px 15px;
    border-radius: 4px;
    border: 1px solid #eee;
}
