@import url('https://fonts.googleapis.com/css2?family=Arimo:ital,wght@0,400..700;1,400..700&family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

/* Reset and Base Styles */

:root {
    --text-primary: #000000;
    --text-secondary: #666666;
    --bg-primary: #FAFAF8;
    --border-color: #e5e5e5;
}

html,
body {
    height: 100%;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    font-size: 16px;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--bg-primary);
    border-bottom: none;
    z-index: 1000;
    padding: 10px 0;
    outline: none;
}

.navbar .container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-brand {
    font-size: 18px;
    font-weight: 400;
    color: var(--text-primary);
    text-decoration: none;
    display: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0;
    outline: none;
    align-items: center;
}

.nav-menu li:not(:last-child)::after {
    content: '·';
    color: var(--text-secondary);
    margin: 0 0.25rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 400;
    outline: none;
    transition: color 0.2s ease, text-decoration 0.2s ease;
}

.nav-link:hover {
    color: #9CAF88;
}

.nav-link.active {
    text-decoration: underline;
    text-decoration-color: #9CAF88;
    text-decoration-thickness: 3px;
    text-underline-offset: 4px;
}


/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    padding: 0;
    overflow: hidden;
}

.hero .container {
    max-width: 1200px;
}

.hero-layout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 200px;
    position: relative;
}

.hero-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    position: relative;
    z-index: 2;
}

.hero-link {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 48px;
    font-weight: 400;
    transition: color 0.2s ease, text-decoration 0.2s ease;
    display: block;
    text-align: left;
}

.hero-link:hover {
    color: #9CAF88;
}

.hero-image {
    position: relative;
    z-index: 1;
}

.hero-image img {
    width: 400px;
    height: 500px;
    object-fit: cover;
    display: block;
}

/* Section Styles */
.page-content {
    min-height: 100vh;
    padding: 120px 0 100px;
    display: flex;
    flex-direction: column;
}

.section-title {
    font-size: 32px;
    font-weight: 400;
    margin-bottom: 60px;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

/* About Section */
.about-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.about-text {
    flex: 1;
    max-width: 700px;
    margin: 0 auto;
}

.about-image {
    display: flex;
    justify-content: center;
}

.about-image img {
    width: 700px;
    height: auto;
    object-fit: cover;
    display: block;
}

.about-text p {
    margin-bottom: 24px;
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.8;
}

.about-text a {
    color: var(--text-primary);
    text-decoration: underline;
    text-decoration-color: #9CAF88;
    text-decoration-thickness: 3px;
    text-underline-offset: 3px;
}

.about-text a:hover {
    color: var(--text-secondary);
    text-decoration-color: #7a8d6a;
}

/* Projects Section */
.projects-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.project-card {
    display: flex;
    height: 220px;
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.project-image {
    flex: 0 0 300px;
    height: 220px;
    overflow: hidden;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
    margin: auto;
    padding: 10px;
}

.project-content {
    flex: 1;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.project-content h3 {
    font-size: 24px;
    font-weight: 400;
    color: var(--text-primary);
    margin: 0;
}

.project-content p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
    flex: 1;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.project-tag {
    font-size: 12px;
    color: var(--text-secondary);
    background-color: rgba(0, 0, 0, 0.05);
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 400;
}

/* Project Detail Pages */
.project-detail {
    display: flex;
    flex-direction: column;
    gap: 5px;
    max-width: 800px;
    margin: 0 auto;
}

.project-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
}


.project-title {
    font-size: 32px;
    font-weight: 400;
    color: var(--text-primary);
    margin: 0 0 2px 0;
    letter-spacing: -0.5px;
    text-align: left;
}

.project-description {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-secondary);
}

.project-description a {
    color: var(--text-primary);
    text-decoration: underline;
    text-decoration-color: #9CAF88;
    text-decoration-thickness: 3px;
}

.project-description a:hover {
    color: var(--text-secondary);
    text-decoration-color: #7a8d6a;
}

.project-tech-stack h3 {
    font-size: 18px;
    color: var(--text-primary);
    margin-bottom: 8px;
    font-weight: 400;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tech-tag {
    font-size: 14px;
    color: var(--text-secondary);
    background-color: rgba(0, 0, 0, 0.05);
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 400;
}

/* Project SVG Styles */
.project-svg {
    margin-top: 0px;
    padding: 0;
}

.project-svg.full-width {
    width: 100vw;
    position: relative;
    left: -12%;
    /* transform: translateX(-50%); */
    max-width: 1200px;
    margin: 0;
    padding: 0;
}

.project-svg.full-width .interactive-svg {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    max-height: 950px;
    overflow: hidden;
}

.project-svg .interactive-svg {
    width: 90%;
    height: auto;
    max-width: 90%;
    display: block;
    border-radius: 4px;
    margin: 0 auto;
    padding: 0;
}

/* PDF Embed Styles */
.pdf-embed {
    margin-top: 5px;
    padding-top: 5px;
    border-top: 1px solid var(--border-color);
}


.pdf-embed iframe {
    width: 100%;
    min-height: 600px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: #f9f9f9;
}

/* Dash App Embed Styles */
.dash-embed {
    margin-top: 5px;
    padding-top: 5px;
    border-top: 1px solid var(--border-color);
}

.dash-embed iframe {
    width: 100%;
    min-height: 800px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: #ffffff;
}

/* Video Embed Styles */
.video-embed {
    margin: 10px 0;
    padding: 5px 0;
    width: 100%;
}

.video-embed video {
    width: 100%;
    max-width: 100%;
    height: auto;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: #000;
}

/* Plotly Chart Embed Styles */
.plotly-chart {
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--border-color);
    width: 100%;
    display: flex;
    justify-content: center;
}

.plotly-charts-side-by-side {
    display: flex;
    gap: 20px;
    margin: 20px 0;
    width: 100%;
    justify-content: space-between;
}

.plotly-chart-container-side {
    width: 48%;
    min-height: 400px;
    margin: 0;
    padding: 0;
}

.plotly-chart .plotly {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.plotly-chart-container {
    width: 85%;
    max-width: 85%;
    margin: 0;
    padding: 0;
}

/* Paper/Blog Content Styles */
.paper-content {
    width: 100%;
    padding: 0;
}

.paper-header {
    margin: 0 0 5px 0;
    padding: 0 0 5px 0;
    border-bottom: none;
}

.paper-title {
    font-size: 28px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 5px 0;
    line-height: 1.2;
}

.paper-meta {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.8;
}

.paper-meta p {
    margin: 5px 0;
}

.paper-section {
    margin-bottom: 20px;
}

.paper-section h2 {
    font-size: 28px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 15px 0;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.paper-section h3:first-of-type {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.paper-section h3 {
    font-size: 22px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 20px 0 10px 0;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.paper-image.float-left,
.paper-image.float-right {
    clear: both;
}

.paper-section h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 25px 0 12px 0;
}

.paper-section p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-primary);
    margin: 0 0 12px 0;
}

.paper-section a {
    color: var(--text-primary);
    text-decoration: underline;
    text-decoration-color: #9CAF88;
    text-decoration-thickness: 3px;
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.paper-section a:hover {
    color: var(--text-secondary);
    text-decoration-color: #7a8d6a;
}

.paper-note {
    font-style: italic;
    color: var(--text-secondary);
    font-size: 14px;
    margin: 20px 0;
    padding-left: 20px;
    border-left: 3px solid var(--border-color);
}

.paper-references {
    list-style: decimal;
    padding-left: 30px;
    margin-top: 20px;
}

.paper-references li {
    margin-bottom: 12px;
    line-height: 1.6;
    color: var(--text-primary);
}

.paper-references a {
    color: var(--text-primary);
    text-decoration: underline;
    text-decoration-color: #9CAF88;
    text-decoration-thickness: 3px;
}

.paper-section ul,
.paper-section ol {
    margin: 18px 0;
    padding-left: 30px;
    line-height: 1.8;
}

.paper-section ul li,
.paper-section ol li {
    margin-bottom: 10px;
    color: var(--text-primary);
}

.paper-image {
    margin: 20px 0;
    width: 100%;
    display: flex;
    justify-content: center;
}

.paper-image img {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}

/* Newspaper-style image layout - alternating left/right */
.paper-image.float-left {
    float: left;
    width: 40%;
    max-width: 400px;
    margin: 15px 25px 15px 0;
    display: block;
}

.paper-image.float-left img {
    width: 100%;
    max-width: 100%;
}

.paper-image.float-right {
    float: right;
    width: 40%;
    max-width: 400px;
    margin: 15px 0 15px 25px;
    display: block;
}

.paper-image.float-right img {
    width: 100%;
    max-width: 100%;
}

.paper-image-full {
    justify-content: flex-start;
}

.paper-image-full img {
    width: 100%;
    max-width: 100%;
}

.paper-section pre {
    background-color: #1e1e1e;
    border: 1px solid #333;
    border-radius: 6px;
    padding: 24px;
    overflow-x: auto;
    margin: 24px 0;
    font-size: 14px;
    line-height: 1.7;
    color: #d4d4d4;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.paper-section code {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', 'Courier New', monospace;
    background-color: #2d2d2d;
    color: #f8f8f2;
    padding: 3px 6px;
    border-radius: 3px;
    font-size: 13px;
    font-weight: 400;
}

.paper-section pre code {
    background-color: transparent;
    color: #d4d4d4;
    padding: 0;
    font-size: 14px;
    font-weight: normal;
}

/* Prism.js syntax highlighting overrides for better Python colors */
.paper-section pre[class*="language-"] {
    background-color: #1e1e1e;
    border: 1px solid #333;
}

.paper-section pre code[class*="language-"] {
    color: #d4d4d4;
}

/* Python syntax highlighting colors */
.paper-section .token.keyword,
.paper-section .token.operator,
.paper-section .token.boolean {
    color: #569cd6;
}

.paper-section .token.string,
.paper-section .token.char {
    color: #ce9178;
}

.paper-section .token.comment {
    color: #6a9955;
    font-style: italic;
}

.paper-section .token.function {
    color: #dcdcaa;
}

.paper-section .token.number {
    color: #b5cea8;
}

.paper-section .token.variable,
.paper-section .token.attr-name {
    color: #9cdcfe;
}

.paper-section .token.builtin,
.paper-section .token.class-name {
    color: #4ec9b0;
}

.paper-section .token.punctuation {
    color: #d4d4d4;
}

.paper-section .token.property {
    color: #92c5f7;
}

/* Contact Section */
.contact-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-item {
    font-size: 16px;
}

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

.separator {
    color: var(--text-secondary);
    margin: 0 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 24px;
    }

    .nav-menu {
        gap: 0.25rem;
        font-size: 14px;
    }

    .hero-layout {
        flex-direction: column;
        gap: 40px;
    }

    .hero-links {
        margin-right: 0;
        width: 100%;
        max-width: 400px;
    }

    .hero-image {
        width: 100%;
        max-width: 400px;
    }

    .hero-image img {
        width: 100%;
        height: auto;
        max-height: 500px;
    }

    .section-title {
        font-size: 28px;
        margin-bottom: 40px;
    }

    .about-content {
        flex-direction: column;
        gap: 40px;
    }

    .about-image {
        flex: none;
        justify-content: center;
    }

    .about-image img {
        width: 100%;
        max-width: 700px;
        height: auto;
    }

    .page-content {
        padding: 80px 0 60px;
    }

    .project-card {
        flex-direction: column;
        height: auto;
    }

    .project-image {
        flex: none;
        height: 200px;
        width: 100%;
    }

    .project-image img {
        height: 100%;
    }

    .project-content {
        padding: 20px;
    }

    .project-title {
        font-size: 28px;
    }

    .pdf-embed iframe {
        min-height: 400px;
    }
}

@media (max-width: 480px) {
    .hero-link {
        font-size: 36px;
    }

    .section-title {
        font-size: 24px;
    }

    .paper-title {
        font-size: 28px;
    }

    .paper-section h2 {
        font-size: 24px;
    }

    .paper-section h3 {
        font-size: 20px;
    }

    .paper-section p {
        font-size: 15px;
    }
}