:root {
    --background-color: #e9eef3;
    --card-background: #f2f5f8;
    --text-color: #1f2a37; 
    --muted-text: #5f6b7a;
    --link-color: #1e40af; 
    --accent-color: #92400e;
    --max-width: 800px;
    --horizontal-padding: 2rem;
    --nav-width: 1200px;
}

/* Base Styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: var(--background-color);
    color: var(--text-color);
    -webkit-text-size-adjust: 100%;
}

/* Navigation Styles */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem var(--horizontal-padding);
    max-width: var(--nav-width);
    margin: 0 auto;
    flex-wrap: wrap;
}

.nav-left {
    font-weight: 500;
    margin-left: 2rem;
}

.nav-left a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

.nav-left a:hover {
    color: #666;
}

.nav-center {
    font-size: 1.2rem;
    font-weight: 600;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nav-center a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

.nav-center a:hover {
    color: #666;
}

.nav-right {
    display: flex;
    gap: 1.5rem;
    margin-right: 2rem;
    align-items: center;
}

.nav-right a {
    color: var(--text-color);
    text-decoration: none;
    line-height: 0;
    display: inline-flex;
    align-items: center;
}

/* Navigation Icon Specific Styles */
.nav-icon {
    width: 20px !important;
    height: 20px !important;
    object-fit: contain;
}

/* Container Styles */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 2rem var(--horizontal-padding);
}

/* Profile Section Styles */
.profile-section {
    display: flex;
    gap: 3rem;
    margin-bottom: 3rem;
}

.profile-image {
    flex: 0 0 300px;
}

.profile-image img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.profile-content h1 {
    margin-top: 0;
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.profile-content .location {
    color: #666;
    margin-bottom: 1rem;
}

/* Featured Projects Styles */
.featured-projects {
    margin-top: 3rem;
}

.project-card {
    background: var(--card-background);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: transform 0.2s ease-in-out;
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.project-image {
    flex: 0 0 140px;
    padding: 0.75rem;
}

.project-image img {
    width: 200px;
    height: 200px;
    object-fit: contain;
    border-radius: 6px;
    background: var(--background-color);
}

.project-content {
    flex: 1;
    min-width: 0;
}

.project-content h3 {
    margin-top: 0;
    margin-bottom: 0.75rem;
}

.project-content p {
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Conference tag style */
.conference-tag {
    color: #888;
    font-weight: normal;
    font-size: 0.9em;
}

/* Social Links Styles */
.social-links {
    margin-top: 3rem;
    text-align: center;
}

.social-links a {
    margin: 0 1rem;
    color: var(--link-color);
    text-decoration: none;
    font-weight: 500;
}

.social-links a:hover {
    text-decoration: underline;
}

/* Blog Post Styling */
.coming-soon-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 100px);
}

.coming-soon {
    text-align: center;
    padding: 2rem;
}

.coming-soon h1 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.coming-soon p {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.back-link {
    margin-top: 3rem;
}

.back-link a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

a {
    color: #0055ff;
    text-decoration: none;
}
  
a:hover {
    text-decoration: underline;
}

.back-link a:hover {
    color: #666;
}

/* Blog listing styles */
.blog-posts {
    max-width: 700px;
    margin: 0 auto;
}

.blog-post-card {
    background: var(--card-background);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    transition: transform 0.2s ease-in-out;
}

html {
    scroll-behavior: smooth;
}
  
.nav-left {
    display: flex;
    gap: 1.25rem;
    font-weight: 500;
  }
  
.nav-left a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.95rem;
}
  
.nav-left a:hover {
    text-decoration: underline;
}

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

.blog-post-card h3 {
    margin-top: 0;
}

.blog-post-card h3 a:hover {
    text-decoration: underline;
}

/* Individual blog post styles */
.blog-post {
    max-width: 700px;
    margin: 0 auto;
}

.post-metadata {
    color: #666;
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

/* Blog post typography */
.blog-post h1 {
    font-size: 2.5rem;
    line-height: 1.2;
    font-weight: 700;
    margin-bottom: 0.5rem;
    margin-top: 3rem;
    color: var(--text-color);
}

/* Quote styling for blog posts */
.quote {
    font-style: italic;
    background-color: #d5d3d0;
    padding: 1.5rem 2rem;
    border-radius: 8px;
    border-left: 4px solid #b8b6b3;
    margin: 2rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    position: relative;
    font-size: 1.1rem;
    line-height: 1.6;
    color: #2c2c2c;
}

.blog-post h2 {
    font-size: 1.75rem;
    line-height: 1.3;
    font-weight: 600;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.blog-post h3 {
    font-size: 1.4rem;
    line-height: 1.4;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    color: var(--text-color);
}

/* Banner image styling */
.post-banner {
    width: 100%;
    margin: 0 0 3rem;
    position: relative;
    background: var(--card-background);
    border-radius: 8px;
    overflow: hidden;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.post-banner img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

.post-banner figcaption {
    font-size: 0.8rem;
    color: #666;
    padding: 0.5rem 1rem;
    text-align: right;
    background: var(--card-background);
}

/* Blog content image styling */
.blog-content-image {
    display: block;
    width: 100%;
    height: auto;
    margin: 2rem auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border: 2px solid black;
}

/* Figure styling to match blog post width */
figure {
    width: 100%;
    margin: 2rem 0;
}

/* Reduce bottom margin for images inside figures (with captions) */
figure .blog-content-image {
    margin-bottom: 0.25rem;
}

/* Image caption styling */
.image-caption {
    font-size: 0.85rem;
    color: #666;
    font-style: italic;
    margin-top: 0.0rem;
    text-align: left;
    margin-bottom: 1rem;
}

/* Clickable prompt image styling */
.clickable-prompt-image {
    position: relative;
    display: block;
    width: 100%;
    background: none;
    border: none;
    padding: 0;
    margin: 2rem auto;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.clickable-prompt-image img {
    display: block;
    width: 100%;
    height: auto;
    margin: 0;
    box-sizing: border-box;
}

.clickable-prompt-image::before {
    content: 'Click to copy prompt';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 500;
    opacity: 0;
    transition: opacity 0.2s ease;
    border-radius: 8px;
    pointer-events: none;
}

.clickable-prompt-image:hover::before {
    opacity: 1;
}


/* Toast notification styling */
.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--text-color);
    color: var(--background-color);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 1000;
    pointer-events: none;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Footnotes section styling */
.footnotes {
    max-width: 700px;
    margin: 4rem auto 2rem;
    padding-top: 2rem;
    border-top: 1px solid #ddd;
}

.footnotes h4 {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 1.5rem;
}

.footnotes ol {
    padding-left: 1.5rem;
    margin: 0;
}

.footnotes li {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.footnotes strong {
    color: #444;
}

/* Footnote reference styling */
.footnote-ref {
    font-size: 0.8em;
    vertical-align: super;
    line-height: 0;
    color: #666;
    text-decoration: none;
    margin: 0 0.2em;
}

.footnote-ref:hover {
    color: #333;
    text-decoration: underline;
}

/* Media Queries */
@media (max-width: 768px) {
    :root {
        --horizontal-padding: 1rem;
    }

    nav {
        padding: 1rem;
        justify-content: center;
        text-align: center;
        gap: 1rem;
    }
    
    .nav-left, .nav-right {
        margin: 0;
        width: 100%;
        justify-content: center;
    }
    
    .nav-center {
        position: static;
        transform: none;
        width: 100%;
        order: -1;
    }

    .nav-icon {
        width: 20px !important;
        height: 20px !important;
    }

    .profile-section {
        flex-direction: column;
        gap: 2rem;
    }

    .profile-image {
        flex: 0 0 auto;
        max-width: 100%;
    }

    .container {
        padding: 1rem var(--horizontal-padding);
    }

    .project-card {
        flex-direction: column;
        gap: 1rem;
    }

    .project-image {
        flex: 0 0 auto;
        align-self: center;
    }

    .project-image img {
        width: 115px;
        height: 115px;
    }

    .blog-posts,
    .blog-post {
        padding: 0 1rem;
    }

    .post-banner {
        width: 100%;
        margin-bottom: 2rem;
        border-radius: 0;
    }
    
    .post-banner img {
        height: 200px;
    }

    .social-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    .social-links a {
        margin: 0.5rem;
    }

    .toast {
        bottom: 1rem;
        left: 1rem;
        right: 1rem;
        transform: translateX(0) translateY(100px);
        max-width: calc(100% - 2rem);
    }

    .toast.show {
        transform: translateX(0) translateY(0);
    }
}

/* iPad/Tablet Specific Adjustments */
@media (min-width: 769px) and (max-width: 1024px) {
    .profile-section {
        gap: 2rem;
    }

    .profile-image {
        flex: 0 0 250px;
    }

    .container {
        padding: 1.5rem var(--horizontal-padding);
    }
}

/* Small Phone Adjustments */
@media (max-width: 480px) {
    .profile-content h1 {
        font-size: 1.75rem;
    }

    .project-card {
        padding: 1.25rem;
        gap: 1rem;
    }

    .project-image img {
        width: 95px;
        height: 95px;
    }

    .social-links {
        flex-direction: column;
        align-items: center;
    }

    .social-links a {
        margin: 0.5rem 0;
    }
}

/* Touch Device Optimizations */
@media (hover: none) {
    .nav-left a,
    .social-links a,
    .project-card {
        transition: none;
    }
    
    .nav-right a,
    .social-links a {
        padding: 0.5rem;
    }
}