:root {
    --primary-color: #1a237e;
    /* Deep Navy Blue */
    --secondary-color: #283593;
    /* Rich Navy */
    --accent-color: #1a237e;
    /* Changed to Deep Navy Blue */
    --accent-hover: #283593;
    /* For hover states */
    --text-color: #1e293b;
    /* Dark Slate */
    --light-text: #64748b;
    /* Light Slate */
    --background-color: #f8fafc;
    /* Light Background */
    --card-background: #ffffff;
    /* White */
    --hover-color: rgba(26, 35, 126, 0.1);
    /* Subtle Navy Hover */
    --input-background: #ffffff;
    /* For form inputs */
    --transition: all 0.3s ease;
    --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    --card-shadow-hover: 0 12px 30px rgba(0, 0, 0, 0.15);
    --card-border: 1px solid rgba(26, 35, 126, 0.15);
    --card-border-hover: 1px solid rgba(26, 35, 126, 0.25);
}

/* Global Styles */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 120px;
    /* Increased from 120px */
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
    max-width: 100%;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Navigation */
.navbar {
    background: var(--card-background);
    padding: 1.2rem 2rem;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand .brand-link {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: 1.4rem;
    letter-spacing: 0.3px;
    color: var(--accent-color);
    text-decoration: none;
    padding: 0.8rem 1.2rem;
    border-radius: 4px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    text-transform: uppercase;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.15);
}

.nav-brand .brand-link::after {
    content: '';
    position: absolute;
    bottom: 0.6rem;
    left: 1.2rem;
    right: 1.2rem;
    height: 2px;
    background: var(--accent-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    padding: 0.8rem 1.2rem;
    border-radius: 4px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.5px;
}

.nav-links a i {
    font-size: 1.1rem;
    color: var(--accent-color);
}

.nav-links a:hover,
.nav-brand .brand-link:hover {
    background: var(--hover-color);
    transform: translateY(-2px);
}

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

.nav-links a.active {
    color: var(--accent-color);
    background: var(--hover-color);
}

/* Sections with News Layout */
.sections-with-news {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
}

.sections-content {
    min-width: 0; /* Prevents grid overflow */
}

.news-sidebar {
    min-width: 0; /* Prevents grid overflow */
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    position: relative;
    overflow: hidden;
    padding: 4rem 2rem 2rem;
    text-align: center;
    min-height: 25vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    max-width: 800px;
    margin: 1rem auto 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.hero h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 2.8rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: white;
    margin: 0;
    padding-top: 1rem;
}

.typing-text {
    font-family: 'Inter', sans-serif;
    font-size: 1.4rem;
    font-weight: 400;
    letter-spacing: -0.01em;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    margin: 0;
    height: 1.2em;
}

.cta-buttons {
    margin-top: 1.5rem;
    padding-bottom: 0;
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.primary-btn {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 1.1rem;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    padding: 1rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
}

.primary-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Section Headers */
.container h2,
.skills-section h2 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1.5rem;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    text-align: left;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-top: 20px;
    /* Added padding to prevent cut-off */
}

/* All sections need top padding */
.education-section,
.experience-section,
.research-section,
.projects-section,
.contact-section {
    padding-top: 3rem;
}

.page-intro {
    margin-bottom: -1rem;
}


.timeline {
    display: grid;
    grid-template-columns: 1fr 2px 1fr;
    gap: 0.75rem 0;
    /* Reduced from 2rem 0 to create less vertical space */
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    height: 100%;
    background: var(--primary-color);
    left: 50%;
    transform: translateX(-50%);
    opacity: 0.4;
    z-index: 1;
}

.timeline-spacer {
    grid-column: 2 / 3;
    background: transparent;
}

/* Timeline Items */
.timeline-item {
    position: relative;
    padding: 0.8rem 1rem 0.5rem 1rem;
    /* Slightly reduced top/bottom padding */
    background: var(--card-background);
    border-radius: 6px;
    box-shadow: var(--card-shadow);
    border: var(--card-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 0;
    /* Ensure no bottom margin */
}

.timeline-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--card-shadow-hover);
    border-color: var(--card-border-hover);
}

.timeline-item.education {
    grid-column: 1 / 2;
    margin-right: 2rem;
    text-align: right;
}

.timeline-item.work {
    grid-column: 3 / 4;
    margin-left: 2rem;
    text-align: left;
}

.timeline-item::before {
    content: '';
    position: absolute;
    width: 14px;
    height: 14px;
    background: var(--accent-color);
    border: 2px solid white;
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    box-shadow: none;
    z-index: 2;
}

.timeline-item.education::before {
    right: -1.5rem;
}

.timeline-item.work::before {
    left: -1.5rem;
}

.timeline-date {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    color: var(--accent-color);
    font-size: 0.8rem;
    white-space: nowrap;
    margin-bottom: 0.3rem;
    display: block;
}

.timeline-content h4 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: var(--text-color);
    margin: 0 0 0.2rem 0;
    font-size: 1rem;
    white-space: nowrap;
}

.timeline-content p {
    color: var(--light-text);
    margin: 0 0 0.1rem 0;
    font-size: 0.85rem;
    line-height: 1.4;
    white-space: normal;
    word-break: normal;
    overflow-wrap: normal;
}

/* Timeline Logo Styling */
.timeline-item.education .timeline-content {
    padding-left: 80px;
    width: calc(100% - 80px);
}

.timeline-item.work .timeline-content {
    padding-right: 80px;
    width: calc(100% - 80px);
}

.timeline-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    position: absolute;
    border-radius: 4px;
    top: 50%;
    transform: translateY(-50%);
}

.timeline-item.education .timeline-logo {
    left: 1rem;
}

.timeline-item.work .timeline-logo {
    right: 1rem;
}


/* Card Styles (Generic) - Standardized for all card types */
.project-card,
.research-card,
.experience-card,
.education-card {
    background: var(--card-background);
    border-radius: 6px;
    box-shadow: var(--card-shadow);
    border: var(--card-border);
    border-width: 0.1rem;
    padding: 0.75rem 0.75rem 0.5rem 0.75rem;
    margin-bottom: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    flex: 0 0 auto;
}

.skill-card {
    background: var(--card-background);
    border-radius: 8px;
    box-shadow: var(--card-shadow);
    border: var(--card-border);
    border-width: 0.1rem;
    padding: 1rem 1rem 0.6rem 1rem;
    /* Reduced from 1rem 1.5rem */
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    flex: 0 0 auto;
}

.skill-card {
    padding: 0.6rem
}

.project-card:hover,
.research-card:hover,
.experience-card:hover,
.education-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--card-shadow-hover);
    border-color: var(--card-border-hover);
}

.skill-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--card-shadow-hover);
    border-color: var(--card-border-hover);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.25rem;
    flex-wrap: wrap;
}

/* Standardize all card titles */
.card-header h2 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    margin: -1.2rem 0 -0.2rem 0;
    color: var(--text-color);
    text-align: left;
}

.card-header h3 {
    margin-top: 0.2rem;
    margin-bottom: 0.4rem;
    font-size: 1rem;
    line-height: 1.0;
}

/* Card Content */
.card-content {
    color: var(--text-color);
    padding-right: 0px;
    /* Further increased padding to provide more space */
    position: relative;
    z-index: 0;
}

.card-content h3 {
    font-size: 1rem;
    margin-top: 0.8rem;
    margin-bottom: 0.4rem;
}

.card-content p {
    margin-bottom: -0.2rem;
    line-height: 1.5;
    font-size: 0.9rem;
}

.card-content ul {
    margin: 0 0 0.8rem 1.2rem;
    padding: 0;
}

.card-content li {
    margin-bottom: 0.25rem;
    line-height: 1.4;
    font-size: 0.9rem;
}

/* Ensure text doesn't wrap unnecessarily */
.card-content ul li {
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: none;
    /* Changed from auto to none to prevent hyphenation */
    max-width: 100%;
    white-space: nowrap;
    /* Force the last item not to wrap */
    overflow: visible;
    /* Allow content to overflow if needed */
}

/* Card Links - Standardized */
.card-links {
    display: flex;
    gap: 1rem;
}

.card-link {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    transition: color 0.3s ease;
    margin-left: auto;
    /* Push to right */
}

.card-link:hover {
    color: var(--accent-hover);
}

.publications-detail {
    margin-top: 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
}

/* Card Logo */
.card-logo {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 8px;
    max-width: 100px;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    z-index: 1;
}

.card-logo img {
    max-width: 100%;
    max-height: 60px;
    object-fit: contain;
}

/* Contact Page Styles */
.contact-intro {
    max-width: 800px;
    margin: 0 auto 2rem;
    text-align: center;
}

.contact-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* Changed from auto-fit to exactly 2 columns */
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-card {
    background-color: var(--card-background);
    border-radius: 8px;
    box-shadow: var(--card-shadow);
    border: var(--card-border);
    padding: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    display: flex;
    align-items: center;
    /* Changed from flex-start to center */
    gap: 1.2rem;
}

.contact-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--card-shadow-hover);
    border-color: var(--card-border-hover);
    background-color: rgba(26, 35, 126, 0.05);
    transform: scale(1.02);
}

.contact-icon {
    font-size: 2rem;
    color: var(--accent-color);
    background-color: rgba(26, 35, 126, 0.1);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Brand-specific colors for contact icons */
.contact-card:nth-child(1) .contact-icon {
    color: #ffffff;
    background-color: #0077b5;
    /* LinkedIn blue */
}

.contact-card:nth-child(2) .contact-icon {
    color: #ffffff;
    background-color: #333333;
    /* GitHub dark */
}

.contact-card:nth-child(3) .contact-icon {
    color: #ffffff;
    background-color: #EA4335;
    /* Gmail red */
}

.contact-card:nth-child(4) .contact-icon {
    color: #ffffff;
    background-color: #4285F4;
    /* Google blue */
}

.contact-icon-link {
    text-decoration: none;
    border: none;
    outline: none;
}

/* Modify bounce animation for contact icons to go lower */
@keyframes bounce {

    0%,
    100% {
        transform: translateY(-10px);
    }

    50% {
        transform: translateY(10px);
        /* Changed from -10px to 10px to make it go down instead of up */
    }
}

.contact-card:hover .contact-icon {
    animation: bounce 0.6s ease infinite;
}

.contact-info {
    flex-grow: 1;
}

.contact-info h3 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1.2rem;
    margin: 0 0 0.5rem 0;
    color: var(--text-color);
}

.contact-info p {
    color: var(--light-text);
    margin: 0 0 0.75rem 0;
    font-size: 0.95rem;
}

.contact-link {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    transition: all 0.3s ease;
    position: relative;
    padding-bottom: 2px;
}

.contact-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--accent-color);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}


.contact-link:hover::after {
    animation: underlineAnimation 2s infinite;
}

@keyframes underlineAnimation {
    0% {
        transform: scaleX(0);
        transform-origin: left;
    }

    50% {
        transform: scaleX(1);
        transform-origin: left;
    }

    50.1% {
        transform: scaleX(1);
        transform-origin: left;
    }

    100% {
        transform: scaleX(0);
        transform-origin: left;
    }
}

.contact-link:hover {
    color: var(--accent-hover);
}

/* Tags */
.card-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    /* Increased from 0.3rem for better spacing */
    margin-top: 0.8rem;
    margin-bottom: 0rem;
    padding-top: 0.4rem;
    border-top: 1px solid rgba(26, 35, 126, 0.08);
}

.card-tag {
    color: var(--accent-color);
    font-size: 0.8rem;
    font-weight: 700;
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0.15rem 0rem;
    /* Increased horizontal padding */
    position: relative;
    display: inline-flex;
    align-items: center;
}

/* Add a subtle dot before each tag for visual interest - Fixed alignment */
.card-tag::before {
    content: "•";
    display: inline-block;
    margin-right: 0.45rem;
    /* Increased right margin */
    margin-left: 0.2rem;
    /* Increased left margin */
    color: var(--accent-color);
    font-size: 0.7rem;
    position: static;
    vertical-align: middle;
}

/* Remove the dot from the first tag */
/* Add a bit more space to the first tag since it doesn't have a dot */
.card-tech>*:first-child::before {
    display: none;
    padding-left: 0.4rem;
    /* Increased left padding for first item */
}

/* Paper and Blog Links */
.content-link {
    display: inline-block;
    background-color: rgba(26, 35, 126, 0.15);
    color: var(--accent-color);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s ease;
    margin-left: 0rem;
    border: 1px solid rgba(26, 35, 126, 0.1);
}

.content-link:hover {
    background-color: var(--accent-color);
    color: white;
    transform: translateY(-1px);
    border-color: var(--accent-color);
}

/* News & Updates Section */
.news-updates {
    background: var(--card-background);
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    border: var(--card-border);
    padding: 1.2rem;
    margin-top: 2rem;
    position: sticky;
    top: 120px; /* Account for navbar height */
    max-height: calc(100vh - 140px);
    overflow-y: auto;
    width: 280px; /* Fixed width to prevent text wrapping */
}

.news-container h2 {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 1.4rem;
    color: var(--text-color);
    margin: 0 0 1.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--accent-color);
}

.news-container h2 i {
    color: var(--accent-color);
    font-size: 1.2rem;
}

.news-timeline {
    position: relative;
}

.news-timeline::before {
    content: '';
    position: absolute;
    left: 0.75rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent-color), rgba(26, 35, 126, 0.3));
    border-radius: 1px;
}

.news-item {
    position: relative;
    margin-bottom: 1.2rem;
    padding-left: 2.5rem;
}

.news-item::before {
    content: '';
    position: absolute;
    left: 0.5rem;
    top: 0.5rem;
    width: 8px;
    height: 8px;
    background: var(--accent-color);
    border-radius: 50%;
    border: 2px solid var(--card-background);
    box-shadow: 0 0 0 2px var(--accent-color);
}

.news-date {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--accent-color);
    margin-bottom: 0.4rem;
    background: rgba(26, 35, 126, 0.15);
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-content p {
    color: var(--text-color);
    font-size: 0.85rem;
    line-height: 1.4;
    margin: 0;
    font-weight: 500;
}

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

/* Skills Section Styles */
.skills {
    padding: 0;
    /* Reduced from 3rem */
    background-color: var(--background-color);
}

.skills-category {
    margin-bottom: 1.5rem;
    /* Reduced from 2.5rem */
}

.skills-category h3 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    /* Reduced from 1.2rem */
    margin: 0 0 0.5rem 0;
    /* Reduced bottom margin from 1rem */
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.skills-category h3 i {
    color: var(--accent-color);
}

.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    /* Reduced from 1rem */
    margin-bottom: -2.2rem;
    /* Reduced from 1rem */
}

.skill-name {
    font-weight: 500;
    color: var(--text-color);
    font-size: 0.9rem;
    /* Reduced from 0.95rem */
}

.ongoing-research-list {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.ongoing-research-list li {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(26, 35, 126, 0.1);
}

.ongoing-research-list li:last-child {
    margin-bottom: 0.75rem;
    padding-bottom: 0;
    border-bottom: none;
}

.ongoing-research-list li strong {
    display: block;
    font-size: 1.1rem;
    line-height: 1.0;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
}

.ongoing-research-list li p {
    margin: 0;
    color: var(--light-text);
    font-size: 0.95rem;
    line-height: 1.5;
}

.services {
    margin-bottom: -0.5rem;
}

.services h4 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1.3rem;
    margin: 0 0 0.5rem 0;
}

.service-list {
    margin: 0.5rem 0 0.0rem 1.2rem;
    padding: 0;
}

.service-list li {
    margin-bottom: 0.35rem;
    color: var(--light-text);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Responsive Styles for Mobile */
@media (max-width: 768px) {
    .sections-with-news {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0 1rem;
    }

    .news-sidebar {
        order: -1; /* Move news section to top on mobile */
    }

    .news-updates {
        position: static;
        max-height: none;
        margin-top: 1rem;
        margin-bottom: 2rem;
        width: 100%; /* Full width on mobile */
    }

    .news-container h2 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }

    .news-item {
        margin-bottom: 1rem;
        padding-left: 2rem;
    }

    .news-content p {
        font-size: 0.8rem;
    }

    .card-header {
        flex-direction: column;
    }

    .card-links {
        margin-top: 0.5rem;
    }

    .card-tag {
        font-size: 0.8rem;
    }

    .card-logo {
        position: relative;
        top: auto;
        right: auto;
        margin-bottom: 0.8rem;
        max-width: 70px;
    }

    .card-content {
        padding-right: 0;
    }

    .card-content ul li {
        white-space: normal;
        /* Allow wrapping on mobile */
    }

    .skills-grid {
        gap: 0.5rem;
        /* Reduced from 0.75rem */
    }

    .skill-card {
        padding: 0.5rem 1rem;
        /* Reduced from 0.75rem 1.25rem */
    }

    .contact-cards {
        grid-template-columns: 1fr;
        /* Single column on mobile */
    }

    .contact-card {
        padding: 1.2rem;
    }

    .contact-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
}

/* Education cards - light orange */
.education-card,
.timeline-item.education {
    background-color: hsla(21, 100%, 45%, 0.04);
    border-color: rgba(230, 81, 0, 0.5);
}

.education-card:hover,
.timeline-item.education:hover {
    background-color: rgba(230, 81, 0, 0.15);
    border-color: rgba(230, 81, 0, 1.0);
    transform: scale(1.03);
}

/* Work cards - light green */
.experience-card,
.timeline-item.work {
    background-color: rgba(76, 175, 80, 0.04);
    border-color: rgba(76, 175, 80, 0.5);
}

.experience-card:hover,
.timeline-item.work:hover {
    background-color: rgba(76, 175, 80, 0.15);
    border-color: rgba(76, 175, 80, 1.0);
    transform: scale(1.03);
}

/* Project cards - light blue */
.project-card {
    background-color: rgba(33, 150, 243, 0.04);
    border-color: rgba(33, 150, 243, 0.5);
}

.project-card:hover {
    background-color: rgba(33, 150, 243, 0.15);
    border-color: rgba(33, 150, 243, 0.15);
    transform: scale(1.03);
}

/* Research cards - light red/pink */
.research-card {
    background-color: rgba(244, 67, 54, 0.04);
    border-color: rgba(244, 67, 54, 0.5);
}

.research-card:hover {
    background-color: rgba(244, 67, 54, 0.15);
    border-color: rgba(244, 67, 54, 1.0);
    transform: scale(1.03);
}

/* Skills cards - light amber/gold */
.skill-card {
    background-color: rgba(255, 193, 7, 0.04);
    border-color: rgba(255, 193, 7, 0.5);
}

.skill-card:hover {
    background-color: rgba(255, 193, 7, 0.15);
    border-color: rgba(255, 193, 7, 1.0);
    transform: scale(1.04);
}

/* Timeline Headers */
.timeline-header {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    /* Reduced from 1.2rem */
    color: var(--text-color);
    text-align: center;
    margin-bottom: 0.75rem;
    /* Reduced from 1rem */
    padding: 0.4rem 0.8rem;
    /* Reduced from 0.5rem 1rem */
    border-radius: 4px;
    top: 100px;
    /* Increased from 80px to account for navbar */
    z-index: 10;
    transition: opacity 0.3s ease, transform 0.3s ease;
    opacity: 0.9;
    /* Reduced from 0.85 to make more subtle */
    backdrop-filter: blur(5px);
    width: 40%;
    /* Make headers smaller */
    margin-left: auto;
    margin-right: auto;
}

.education-header {
    background-color: rgba(230, 81, 0, 0.15);
    border: 1px solid rgba(230, 81, 0, 0.3);
    /* Reduced from 0.5 */
    grid-column: 1 / 2;
    margin-right: 12rem;
}

.work-header {
    background-color: rgba(76, 175, 80, 0.15);
    border: 1px solid rgba(76, 175, 80, 0.3);
    /* Reduced from 0.5 */
    grid-column: 3 / 4;
    margin-left: 12rem;
}

.header-spacer {
    grid-column: 2 / 3;
    background: transparent;
}