
:root {
    /* --bg-color: #f4f1eb; */
    --bg-color: #e0e9e2;
    --text-color: #2d2d2d;
    --text-muted: #6b6b6b;
    --accent-color: #3d3d3d;
    --border-color: #e8e5dc;
    --card-bg: #ffffff;
}

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

body {
    font-family: 'Lato', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.65;
    letter-spacing: 0.2px;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    border-bottom: 1px solid var(--border-color);
}

a:hover {
    color: var(--text-color);
    border-bottom: 1px solid var(--text-color);
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--card-bg);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    z-index: 1000;
}

.nav-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    font-size: 1.4rem;
    color: var(--text-color);
    letter-spacing: 0.5px;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 400;
    letter-spacing: 0.3px;
}

.nav-links a:hover {
    color: var(--text-color);
}

/* Container */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 6rem 2rem 2rem;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 1.5rem 0 2rem;
}

.hero-photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1.5rem;
    border: 1px solid #b9b6ae;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.hero h1 {
    font-family: 'Epilogue', serif;
    font-size: 2.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    letter-spacing: 1px;
}

.hero .affiliation {
    color: var(--text-muted);
    font-size: 1.05rem;
    font-weight: 300;
    margin-bottom: 1rem;
}

.hero .bio {
    margin-top: 2rem;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.7;
}

/* Section */
section {
    padding: 2.5rem 0;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 1rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid var(--border-color);
    letter-spacing: 0.5px;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 1.5rem;
    font-style: italic;
}

/* Research Interests */
.interests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.interest-card {
    background: var(--card-bg);
    padding: 2rem;
    border: 1px solid var(--border-color);
    border-radius: 2px;
}

.interest-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--text-color);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.75rem;
}

.interest-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.7;
}

/* Publications */
.pub-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.pub-item {
    padding: 1.5rem;
    background: var(--card-bg);
    border-left: 2px solid var(--accent-color);
    border: 1px solid var(--border-color);
    border-radius: 2px;
}

.pub-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.6rem;
    color: var(--text-color);
    line-height: 1.5;
}

.pub-authors {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.pub-venue {
    font-size: 0.9rem;
    color: var(--accent-color);
    font-style: italic;
}

/* Experience Timeline */
.experience-list {
    position: relative;
    margin-top: 1.5rem;
    padding-left: 0.5rem;
}

/* The vertical line */
.experience-list::before {
    content: '';
    position: absolute;
    top: 1rem;
    bottom: -1rem;
    left: 31px; /* Centers line relative to 48px logo + 8px padding */
    width: 2px;
    background-color: #cedad4; /* Slightly darker to make the timeline visible */
}

.experience-item {
    position: relative;
    padding-left: 5rem;
    margin-bottom: 3.5rem;
}

.experience-item-myntra {
    position: relative;
    padding-left: 5rem;
    margin-bottom: 3.5rem;
}

.experience-item:last-child {
    margin-bottom: 0;
}

/* The company logo marker */
.experience-logo {
    position: absolute;
    top: -4px;
    left: 0;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    padding: 6px;
    object-fit: contain;
    z-index: 2; /* Keeps logo above the line */
    box-shadow: 0 4px 10px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
}

/* The company logo marker */
.experience-logo-myntra {
    position: absolute;
    top: -4px; /* Adjusted top to account for larger size */
    left: 0;
    width: 64px;  /* Increased from 48px */
    height: 64px; /* Increased from 48px */
    border-radius: 12px; /* Slightly larger radius for the larger size */
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    
    /* "Filled" adjustments */
    padding: 0;   /* Removed padding to let the logo fill the space */
    overflow: hidden; /* Ensures the image doesn't bleed past rounded corners */
    object-fit: cover; /* "Cover" fills the area; use "contain" if you want to see the whole logo with no cropping */
    
    z-index: 2; 
    box-shadow: 0 4px 12px rgba(0,0,0,0.1); /* Slightly deeper shadow for larger element */
    transition: all 0.3s ease;
}

/* Hover effects */
.experience-item:hover .experience-logo {
    transform: translateY(-3px) scale(1.08);
    border-color: var(--accent-color);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.experience-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.2rem;
}

.experience-company {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.2rem;
}

.experience-duration {
    font-size: 0.85rem;
    color: var(--accent-color);
    font-style: italic;
    margin-bottom: 0.8rem;
    display: inline-block;
}

.experience-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-top: 0.8rem;
    line-height: 1.6;
    padding-left: 1.2rem;
}

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

.pub-links {
    margin-top: 1.2rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.pub-link {
    color: var(--text-muted);
    font-size: 0.85rem;
    padding: 0.3rem 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: 2px;
    text-decoration: none;
}

.pub-link:hover {
    border-color: var(--text-color);
    color: var(--text-color);
}

/* Projects */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.project-card {
    background: var(--card-bg);
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: 2px;
}

.project-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.6rem;
    color: var(--text-color);
}

.project-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.project-tag {
    background: #f0ece5;
    color: var(--text-muted);
    padding: 0.3rem 0.8rem;
    border-radius: 2px;
    font-size: 0.8rem;
}

/* Skills */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.skill-category {
    background: var(--card-bg);
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: 2px;
}

.skill-category h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.skill-tag {
    background: var(--bg-color);
    color: var(--text-color);
    padding: 0.4rem 0.85rem;
    border-radius: 4px;
    font-size: 0.85rem;
    border: 1px solid #c9d2ce; /* Match background lightness */
    transition: all 0.2s ease;
    cursor: default;
}

.skill-tag:hover {
    background: var(--text-color);
    color: var(--card-bg);
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* Education */
.education-card {
    background: var(--card-bg);
    padding: 2rem;
    border: 1px solid var(--border-color);
    border-left: 3px solid var(--text-color);
    border-radius: 2px;
    margin-top: 1rem;
    transition: transform 0.2s ease;
}

.education-card:hover {
    transform: translateY(-2px);
}

.education-degree {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.3rem;
}

.education-major {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 1.2rem;
}

.education-grade {
    display: inline-block;
    background: var(--bg-color);
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-color);
    border: 1px solid #c9d2ce;
}

/* Contact */
.contact-section {
    text-align: center;
    padding: 4rem 0;
}

.contact-email {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    letter-spacing: 0.5px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.social-link {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    font-size: 1.3rem;
    transition: all 0.2s;
}

.social-link:hover {
    border-color: var(--text-color);
    color: var(--text-color);
    transform: translateY(-3px);
}

/* Footer */
footer {
    text-align: center;
    padding: 3rem 0;
    color: var(--text-muted);
    font-size: 0.85rem;
    border-top: 1px solid var(--border-color);
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.2rem;
    }

    .nav-links {
        display: none;
    }

    .container {
        padding: 5rem 1.5rem 3rem;
    }
}
