:root {
    --primary-color: #2a2a2a;
    --secondary-color: #666;
    --accent-color: #3498db;
    --background-color: #ffffff;
    --sidebar-width: 300px;
    --transition-speed: 0.3s;
    --text-color: #2a2a2a;
    --secondary-background: #f5f5f5;
}

@supports (font-variation-settings: normal) {
    * {
        font-family: 'Inter var', sans-serif;
    }
}

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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--primary-color);
    display: flex;
    min-height: 100vh;
    background-color: var(--background-color);
}

/* Sidebar Styles */
.sidebar {
    width: var(--sidebar-width);
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    padding: 2rem;
    background-color: rgba(255, 255, 255, 0.95);
    border-right: 1px solid #eee;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
}

.profile {
    text-align: center;
}

.profile-image {
    width: 180px;
    height: 180px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    overflow: hidden;
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile h1 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.profile .title {
    color: var(--secondary-color);
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.profile .subtitle {
    color: var(--accent-color);
    font-size: 0.9rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--secondary-color);
    text-decoration: none;
    transition: color var(--transition-speed);
    font-size: 0.9rem;
}

.contact-link i {
    font-size: 1.2rem;
    color: var(--accent-color);
    transition: color var(--transition-speed);
}

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

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

.language-switch {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: auto;
    padding: 1rem 0;
}

.language-switch button {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid #eee;
    background: none;
    cursor: pointer;
    transition: all var(--transition-speed);
    font-size: 0.85rem;
    border-radius: 4px;
    min-width: 80px;
    text-align: center;
}

.language-switch button.active {
    background-color: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

.language-switch button:hover:not(.active) {
    background-color: var(--secondary-background);
}

/* Main Nav Styles */
.main-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: calc(100% - var(--sidebar-width));
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 100;
    padding: 0.75rem 2rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.main-nav ul {
    display: flex;
    justify-content: space-between;
    list-style: none;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}

.nav-group {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--secondary-color);
    text-decoration: none;
    font-size: 0.9rem;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
    flex-direction: column;
    text-align: center;
}

.nav-link i {
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
    transition: transform 0.3s ease;
}

.nav-link span:not(.process-tag) {
    font-weight: 500;
}

.process-tag {
    position: absolute;
    top: -0.5rem;
    right: -0.5rem;
    background: var(--accent-color);
    color: white;
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.nav-link:hover {
    color: var(--accent-color);
    background: rgba(52, 152, 219, 0.1);
}

.nav-link:hover i {
    transform: translateY(-2px);
}

.nav-link:hover .process-tag {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile Navigation */
@media (max-width: 1024px) {
    .main-nav {
        padding: 0.5rem;
    }

    .nav-group {
        gap: 0.75rem;
    }

    .nav-link {
        padding: 0.4rem;
        font-size: 0.8rem;
    }

    .nav-link i {
        font-size: 1rem;
    }

    .process-tag {
        display: none;
    }
}

@media (max-width: 768px) {
    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    .nav-group {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* Main Content Styles */
.content {
    margin-left: var(--sidebar-width);
    width: calc(100% - var(--sidebar-width));
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Hero Section */
.hero-section {
    height: 100vh;
    position: relative;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    transition: background-color 0.5s ease;
}

.left-brain, .right-brain {
    flex: 1;
    transition: flex 0.5s ease, background-color 0.5s ease;
}

.left-brain {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.1) 0%, rgba(52, 152, 219, 0.2) 100%);
}

.right-brain {
    background: linear-gradient(225deg, rgba(46, 204, 113, 0.1) 0%, rgba(46, 204, 113, 0.2) 100%);
}

.hero-content {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    z-index: 1;
}

.hero-text {
    margin-bottom: 2rem;
    transition: transform 0.5s ease, opacity 0.5s ease;
}

.hero-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero-section:hover .hero-text {
    transform: translateY(-10px);
    opacity: 0.9;
}

.play-recommendation {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    transition: opacity var(--transition-speed);
    position: relative;
}

.play-recommendation:hover {
    opacity: 0.7;
}

/* Tooltip Styles */
.tooltip {
    visibility: hidden;
    width: 220px;
    background-color: var(--secondary-background);
    color: var(--primary-color);
    text-align: center;
    border-radius: 6px;
    padding: 0.5rem;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -110px;
    opacity: 0;
    transition: opacity var(--transition-speed);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.play-recommendation:hover .tooltip {
    visibility: visible;
    opacity: 1;
}

/* Research Section */
.research-section,
.projects-section,
.field-work-section {
    padding: 4rem 2rem;
}

.section-header {
    margin-bottom: 2rem;
    text-align: center;
}

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

.research-item {
    background-color: #fff;
    border-radius: 4px;
    overflow: hidden;
    transition: transform var(--transition-speed);
}

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

.research-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.research-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.research-content {
    padding: 1.5rem;
}

.location {
    color: var(--secondary-color);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

/* Projects Section */
.projects-section {
    padding: 4rem 2rem;
    background-color: var(--background-color);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

.project-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    min-width: 0;
    font-size: 0.9rem;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.1);
}

.project-content {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-content h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

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

.project-tags span {
    background-color: var(--secondary-background);
    color: var(--secondary-color);
    padding: 0.25rem 0.7rem;
    border-radius: 15px;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.project-description {
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    flex-grow: 1;
    display: -webkit-box;
    display: box;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;
    box-orient: vertical;
    overflow: hidden;
}

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

.project-links a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    font-size: 0.9rem;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

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

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

@media (max-width: 1400px) {
    .projects-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .project-card {
        max-width: 500px;
        margin: 0 auto;
    }
}

@media (max-width: 640px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
}

/* Field Work Section */
.field-work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.field-work-item {
    position: relative;
    height: 400px;
    overflow: hidden;
}

.field-work-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.location-tag {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.9rem;
}

@media (max-width: 1024px) {
    :root {
        --sidebar-width: 250px;
    }
}

@media (max-width: 768px) {
    body {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        border-right: none;
        border-bottom: 1px solid #eee;
    }

    .content {
        margin-left: 0;
        width: 100%;
    }

    .main-nav {
        width: 100%;
    }

    .hero-section {
        height: calc(100vh - 300px);
    }

    .field-work-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .main-nav ul {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

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

.aboutme-section{
    padding: 20px;
    margin: 20px;
}

/* Resume Popup Styles */
.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.popup-content {
    position: relative;
    background-color: var(--background-color);
    margin: 15% auto;
    padding: 2rem;
    width: 90%;
    max-width: 500px;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.close-popup {
    position: absolute;
    right: 20px;
    top: 10px;
    font-size: 28px;
    cursor: pointer;
    color: var(--text-color);
}

.resume-options {
    display: flex;
    justify-content: space-around;
    margin-top: 2rem;
}

.resume-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem;
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-color);
    background-color: var(--secondary-background);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.resume-option:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.resume-option i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.resume-option span {
    font-size: 1rem;
    font-weight: 500;
}

/* Add specific font weights for headings */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', sans-serif;
    font-weight: 600; /* Semi-bold for headings */
}

/* Add this to your CSS file */
.contact-link.email-link {
    font-family: 'playwrite-ireland', serif;
    font-size: 1.1rem;
    letter-spacing: 0.02em;
    font-weight: 400;
}

/* Research Timeline Styles */
.research-timeline {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    justify-items: center;
}

.research-card {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1.5rem;
}

.research-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.15);
}

.research-meta {
    padding: 0.5rem 0;
    background-color: var(--secondary-background);
    color: var(--secondary-color);
    font-size: 0.9rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.research-content {
    padding: 1rem 0;
    flex-grow: 1;
}

.research-content h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.research-content h4 {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.research-description ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.research-description li {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    line-height: 1.5;
}

.research-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.research-tags span {
    background-color: var(--secondary-background);
    color: var(--secondary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

@media (max-width: 1024px) {
    .research-timeline {
        padding: 1.5rem;
        gap: 1.5rem;
    }
    
    .research-card {
        padding: 1.25rem;
    }
}

@media (max-width: 768px) {
    .research-timeline {
        grid-template-columns: 1fr;
        padding: 1rem;
    }
    
    .research-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .research-card {
        padding: 1.5rem;
    }
}

/* Section Tabs */
.section-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 1rem 0 2rem;
}

.tab-btn {
    padding: 0.5rem 1.5rem;
    border: none;
    background: none;
    font-size: 1rem;
    color: var(--secondary-color);
    cursor: pointer;
    position: relative;
    transition: color 0.3s ease;
}

.tab-btn::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.tab-btn.active {
    color: var(--accent-color);
}

.tab-btn.active::after {
    width: 100%;
}

/* Tab Content */
.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

/* Internship Card Styles */
.internship-timeline {
    max-width: 1000px;
    margin: 0 auto;
    padding: 1rem;
}

.internship-card {
    background: white;
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.internship-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

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

.internship-title h3 {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 0.2rem;
}

.internship-title h4 {
    font-size: 0.9rem;
    color: var(--accent-color);
}

.internship-meta {
    text-align: right;
    font-size: 0.85rem;
    color: var(--secondary-color);
}

.internship-meta .date {
    display: block;
    margin-bottom: 0.2rem;
}

.internship-content ul {
    list-style: none;
    padding-left: 0;
}

.internship-content li {
    position: relative;
    padding-left: 1.2rem;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    line-height: 1.5;
}

.internship-content li::before {
    content: '•';
    color: var(--accent-color);
    position: absolute;
    left: 0;
}

.internship-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.internship-tags span {
    background-color: var(--secondary-background);
    color: var(--secondary-color);
    padding: 0.2rem 0.6rem;
    border-radius: 15px;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.internship-tags span:hover {
    background-color: var(--accent-color);
    color: white;
}

@media (max-width: 768px) {
    .internship-header {
        flex-direction: column;
    }
    
    .internship-meta {
        text-align: left;
    }
}

/* Entrepreneurship Section Styles */
.entrepreneurship-section {
    padding: 4rem 2rem;
    background-color: var(--background-color);
}

.entrepreneur-story {
    max-width: 800px;
    margin: 0 auto 4rem;
    padding: 2rem;
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.story-content h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.story-content p {
    color: var(--secondary-color);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.ventures-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.venture-card {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.venture-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.1);
}

.venture-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.venture-header h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
}

.venture-duration {
    font-size: 0.85rem;
    color: var(--secondary-color);
}

.venture-role {
    display: block;
    font-size: 1rem;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.venture-location {
    display: block;
    font-size: 0.9rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.venture-description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

.venture-metrics {
    display: flex;
    gap: 2rem;
    margin-top: 1.5rem;
}

.metric {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.metric .number {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--accent-color);
}

.metric .label {
    font-size: 0.85rem;
    color: var(--secondary-color);
}

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

.venture-tags span {
    background-color: var(--secondary-background);
    color: var(--secondary-color);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.venture-tags span:hover {
    background-color: var(--accent-color);
    color: white;
}

@media (max-width: 768px) {
    .entrepreneur-story {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }

    .story-content h3 {
        font-size: 1.5rem;
    }

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

    .venture-card {
        max-width: 500px;
        margin: 0 auto;
    }
}

/* Updated Publications Section Styles */
.publications-section {
    padding: 4rem 2rem;
    background-color: var(--background-color);
}

.research-brief {
    max-width: 800px;
    margin: 1.5rem auto;
    text-align: center;
    color: var(--secondary-color);
    font-size: 1.1rem;
    line-height: 1.6;
}

.publications-container {
    max-width: 1200px;
    margin: 2rem auto;
}

.publications-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 2rem;
    align-items: stretch;
}

.publication-card {
    background: white;
    border-radius: 15px;
    padding: 1.75rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.publication-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.1);
}

.publication-status {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.in-prep .publication-status {
    background-color: #e3f2fd;
    color: #1976d2;
}

.copyright .publication-status {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.publication-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.publication-content h3 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    padding-right: 7rem;
    color: var(--primary-color);
}

.authors {
    font-size: 0.9rem;
    color: var(--secondary-color);
    margin-bottom: 0.75rem;
}

.authors span {
    transition: color 0.2s ease;
}

.authors span:hover {
    color: var(--accent-color);
    cursor: pointer;
}

.publication-date {
    font-size: 0.85rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.publication-description {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.publication-links {
    margin-top: auto;
}

.publication-links a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--primary-color);
    font-size: 0.9rem;
    transition: color 0.3s ease;
    padding: 0.5rem 0;
}

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

@media (max-width: 768px) {
    .publications-row {
        grid-template-columns: 1fr;
    }
    
    .publication-content h3 {
        padding-right: 0;
        margin-top: 2rem;
    }
    
    .publication-status {
        top: 1rem;
        right: 1rem;
    }
}

/* Design Section */
.design-section {
    padding: 2rem;
    text-align: center;
}

.design-intro {
    max-width: 800px;
    margin: 1rem auto;
    color: var(--secondary-color);
    font-size: 1.1rem;
    line-height: 1.6;
}

.portfolio-link {
    color: var(--accent-color);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

.portfolio-link:hover {
    color: var(--primary-color);
}

.portfolio-link i {
    font-size: 0.9rem;
}

/* Inspiration Section */
.inspiration-section {
    max-width: 1200px;
    margin: 4rem auto;
}

.inspiration-section h3 {
    text-align: center;
    margin-bottom: 2rem;
}

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

.inspiration-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

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

.inspiration-card h4 {
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.inspiration-card ul {
    list-style: none;
    padding: 0;
}

.inspiration-card li {
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
    padding-left: 1.5rem;
    position: relative;
}

.inspiration-card li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

/* Portfolio Section */
.design-portfolio {
    max-width: 1200px;
    margin: 4rem auto;
}

.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.filter-btn {
    padding: 0.5rem 1.5rem;
    border: none;
    background: none;
    color: var(--secondary-color);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.filter-btn::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.filter-btn.active {
    color: var(--accent-color);
}

.filter-btn.active::after {
    width: 100%;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.portfolio-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    aspect-ratio: 16/9;
}

.portfolio-image {
    width: 100%;
    height: 100%;
    position: relative;
}

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

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 2rem;
    text-align: center;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-item:hover .portfolio-image img {
    transform: scale(1.1);
}

.portfolio-overlay h4 {
    color: white;
    margin-bottom: 0.5rem;
}

.portfolio-overlay p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
}

.view-project {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1.5rem;
    border: 2px solid white;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.view-project:hover {
    background: white;
    color: black;
}

/* Design Philosophy */
.design-philosophy {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 2rem;
}

.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.philosophy-item {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.philosophy-item:hover {
    transform: translateY(-5px);
}

.philosophy-item i {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.philosophy-item h4 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.philosophy-item p {
    color: var(--secondary-color);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .portfolio-filters {
        flex-wrap: wrap;
    }
    
    .philosophy-grid {
        grid-template-columns: 1fr;
    }
}

/* Updated Professional Footer Styles */
.site-footer {
    background-color: var(--background-color);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1.5rem 2rem;
    margin-top: auto;
    font-size: 0.85rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.footer-left, .footer-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: var(--secondary-color);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color var(--transition-speed);
    opacity: 0.8;
}

.footer-links a:hover {
    color: var(--accent-color);
    opacity: 1;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    color: var(--secondary-color);
    text-decoration: none;
    font-size: 1.2rem;
    transition: color var(--transition-speed);
    opacity: 0.8;
}

.footer-social a:hover {
    color: var(--accent-color);
    opacity: 1;
}

.footer-credit {
    color: var(--secondary-color);
    font-size: 0.8rem;
    opacity: 0.8;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-credit a {
    color: var(--accent-color);
    text-decoration: none;
    transition: opacity var(--transition-speed);
}

.footer-credit a:hover {
    opacity: 1;
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .footer-left, .footer-right {
        flex-direction: column;
        gap: 1rem;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }

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

    .footer-credit {
        flex-direction: column;
        gap: 0.25rem;
    }

    .footer-credit span:nth-child(2) {
        display: none;
    }
}

/* Import Oswald font */
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600&display=swap');

/* Apply Oswald font to email link */
.oswald-font {
    font-family: 'Oswald', sans-serif;
    font-size: 0.85rem; /* Adjust the size for better alignment */
    color: var(--secondary-color);
    text-decoration: none;
    transition: color var(--transition-speed);
}

.oswald-font:hover {
    color: var(--accent-color);
}

/* Update Project Card Styles */
.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.project-date {
    font-size: 0.85rem;
    color: var(--secondary-color);
    opacity: 0.8;
}

.project-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.1);
}

.project-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

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

.project-tags span {
    background-color: var(--secondary-background);
    color: var(--secondary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
}

.project-description {
    color: var(--secondary-color);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

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

.project-links a {
    color: var(--accent-color);
    text-decoration: none;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: opacity 0.3s ease;
}

.project-links a:hover {
    opacity: 0.8;
}

.research-section {
    padding: 4rem 2rem;
    background-color: var(--background-color);
}

.research-timeline {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    justify-items: center;
}

.research-card {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1.5rem;
}

.research-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.15);
}

.research-meta {
    padding: 0.5rem 0;
    background-color: var(--secondary-background);
    color: var(--secondary-color);
    font-size: 0.9rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.research-content {
    padding: 1rem 0;
    flex-grow: 1;
}

.research-content h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.research-content h4 {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.research-description ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.research-description li {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    line-height: 1.5;
}

.research-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.research-tags span {
    background-color: var(--secondary-background);
    color: var(--secondary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

/* Research & Work Section */
.research-section {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.work-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    overflow: hidden;
    position: relative;
}

.work-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
}

.work-card-header {
    padding: 1.5rem;
    background: var(--accent-color);
    color: white;
}

.work-card-header h3 {
    margin: 0;
    font-size: 1.25rem;
}

.work-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    opacity: 0.9;
}

.work-card-content {
    padding: 1.5rem;
}

.work-card-description {
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

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

.work-tag {
    background: var(--secondary-background);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--secondary-color);
}

/* Work Detail Modal */
.work-detail-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    overflow-y: auto;
    padding: 2rem;
}

.work-detail-content {
    background: white;
    max-width: 800px;
    margin: 2rem auto;
    border-radius: 12px;
    padding: 2rem;
    position: relative;
}

.work-detail-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--secondary-color);
}

.work-detail-header {
    margin-bottom: 2rem;
}

.work-detail-header h2 {
    margin-bottom: 0.5rem;
}

.work-detail-meta {
    color: var(--secondary-color);
    font-size: 0.9rem;
}

.work-detail-body {
    display: grid;
    gap: 2rem;
}

.work-detail-section {
    margin-bottom: 2rem;
}

.work-detail-section h3 {
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.work-detail-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}

.work-detail-gallery img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
}

.work-detail-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.work-detail-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--accent-color);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.3s ease;
}

.work-detail-link:hover {
    background: var(--primary-color);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .work-grid {
        grid-template-columns: 1fr;
        padding: 1rem;
    }

    .work-detail-modal {
        padding: 1rem;
    }

    .work-detail-content {
        margin: 1rem auto;
        padding: 1.5rem;
    }

    .work-detail-gallery {
        grid-template-columns: 1fr;
    }

    .work-detail-links {
        flex-direction: column;
    }

    .work-detail-link {
        width: 100%;
        justify-content: center;
    }
}

/* Welcome Popup */
.welcome-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.welcome-popup.show {
    opacity: 1;
    visibility: visible;
}

.welcome-content {
    background: white;
    width: 90%;
    max-width: 500px;
    border-radius: 16px;
    position: relative;
    padding: 1.5rem;
    transform: translateY(20px);
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.welcome-popup.show .welcome-content {
    transform: translateY(0);
}

.welcome-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--secondary-color);
    transition: color 0.3s ease;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.welcome-close:hover {
    color: var(--primary-color);
    background: var(--secondary-background);
}

.welcome-header {
    text-align: center;
    margin-bottom: 1rem;
}

.welcome-header h2 {
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.progress-bar {
    width: 100%;
    height: 3px;
    background: #eee;
    border-radius: 1.5px;
    overflow: hidden;
}

.progress {
    width: 100%;
    height: 100%;
    background: var(--accent-color);
    transform-origin: left;
    animation: progress 10s linear;
}

@keyframes progress {
    from { transform: scaleX(1); }
    to { transform: scaleX(0); }
}

.welcome-body {
    color: var(--secondary-color);
    line-height: 1.6;
    text-align: center;
}

.welcome-body p {
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.welcome-domains {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
    margin: 1.25rem 0;
}

.domain-item {
    padding: 0.75rem 0.5rem;
    border-radius: 8px;
    background: var(--secondary-background);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.domain-item:hover {
    transform: translateY(-2px);
    background: var(--accent-color);
    color: white;
}

.domain-item i {
    font-size: 1.25rem;
    color: var(--accent-color);
}

.domain-item:hover i {
    color: white;
}

.domain-item span {
    font-size: 0.8rem;
    font-weight: 500;
    line-height: 1.2;
    text-align: center;
}

.welcome-footer {
    font-size: 0.9rem;
    color: var(--secondary-color);
    margin-top: 0.5rem;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .welcome-content {
        padding: 1.25rem;
        width: 95%;
    }

    .welcome-header h2 {
        font-size: 1.3rem;
    }

    .welcome-domains {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    .domain-item {
        padding: 0.5rem;
    }
}

/* Bio Section Styles */
#bio {
    background: var(--primary-background);
    padding: 4rem 0;
}

.bio-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.bio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    margin-top: 2rem;
}

.bio-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.bio-text {
    color: var(--secondary-color);
    line-height: 1.8;
    font-size: 1rem;
    text-align: justify;
    margin: 0;
    padding: 0;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

.bio-column:nth-child(2) .bio-text {
    animation-delay: 0.3s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Styles */
@media (max-width: 768px) {
    .bio-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .bio-content {
        padding: 0 1.5rem;
    }

    .bio-text {
        font-size: 0.95rem;
        line-height: 1.7;
    }
}

/* Project Section Divisions */
.projects-container {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.self-projects, .thesis-projects {
    width: 100%;
}

.section-subtitle {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

/* Thesis Project Card */
.thesis-card {
    display: flex;
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    position: relative;
    border: 1px solid #eee;
}

.thesis-content {
    flex: 1;
}

.thesis-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.thesis-abstract {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

.thesis-buttons {
    display: flex;
    gap: 1rem;
}

.thesis-button {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.github-button {
    background: #24292e;
    color: white;
}

.thesis-doc-button {
    background: var(--accent-color);
    color: white;
}

.details-button {
    background: var(--secondary-background);
    color: var(--primary-color);
}

.currently-working {
    position: absolute;
    top: 0.5rem;
    right: 1rem;
    background: #22c55e;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.currently-working::before {
    content: '';
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    display: inline-block;
}

/* Thesis Modal */
.thesis-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.thesis-modal-content {
    position: relative;
    background: white;
    width: 90%;
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    border-radius: 12px;
    max-height: 90vh;
    overflow-y: auto;
}

.thesis-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--secondary-color);
}

.thesis-details h2 {
    margin-bottom: 1rem;
}

.thesis-details section {
    margin-bottom: 2rem;
}

.hardware-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

.hardware-table th, .hardware-table td {
    border: 1px solid #ddd;
    padding: 0.75rem;
    text-align: left;
}

.hardware-table th {
    background: var(--secondary-background);
}

.thesis-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}

.thesis-gallery img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
}