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

html {
    zoom: 1.1;
}

:root {
    --serif-font: 'Lora', serif;
    --sans-font: 'Assistant', sans-serif;
    --primary-red: #dc2626;
    --text-gray: #4b5563;
    --link-blue: #2563eb;   
    --border-color: #e5e5e5;
}

/* Body and Fonts */
body {
    font-family: var(--sans-font);
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    margin: 0;
    padding: 0;
    width: 100%; /* Ensure body occupies full width */
}

.main-name {
    font-family: var(--serif-font);
}

h1 {
    font-family: var(--serif-font);
    font-size: 2.75rem;
    font-weight: 500;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

h2 {
    font-family: var(--serif-font);
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #1a1a1a;
}

/* Header styles */
header {
    border-bottom: 1px solid var(--border-color);
    padding: 1rem;
    margin-bottom: 2rem;
}

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

.logo {
    font-family: var(--serif-font);
    font-size: 1.5rem;
    font-style: italic;
    font-weight: 550;
    text-decoration: none;
    color: #000;
}

.nav-fonts {
    font-weight: bold; /* Makes the font bold */
}

nav {
    display: flex;
    gap: 2rem;
}

nav a {
    text-decoration: none;
    color: #333;
    font-size: 0.95rem;
    font-family: 'Assistant', sans-serif; /* Apply Assistant font */
}

/* Main content styles */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.container-2 {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    align-items: start;
}

.content {
    font-family: var(--sans-font);
    font-weight: 550;
}

.content p {
    margin-bottom: 1.5rem;
    color: var(--text-gray);
    font-size: 0.95rem;
}

.subtitle {
    font-family: var(--serif-font);
    font-style: italic;
    font-size: 50rem; /* Increased font size */
    color: var(--primary-red);
    margin-bottom: 2rem;
    line-height: 1.4;
    font-weight: bold;
}

/* Link styles */
a {
    color: var(--link-blue);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    text-decoration: underline;
}

/* Social links styles */
.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 2rem;
}

.social-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 9999px;
    text-decoration: none;
    color: #333;
    font-size: 0.875rem;
}

.social-button:hover {
    background-color: #f9fafb;
}

.icon {
    display: inline-block;
    vertical-align: middle;
}

/* Image styles */
.image-container {
    position: relative;
    max-width: 500px;
    aspect-ratio: 1; /* Ensures the container remains square */
    margin: 0 auto; /* Centers the container horizontally */
    display: flex; /* Enables flexbox for centering */
    justify-content: center; /* Centers the image horizontally */
    align-items: center; /* Centers the image vertically */
}

.profile-image {
    width: 70%; /* Adjusts the image width */
    height: 70%; /* Adjusts the image height */
    object-fit: cover; /* Ensures the image maintains its aspect ratio */
    border-radius: 0.5rem; /* Adds rounded corners to the image */
}


/* Recent sections styles */
.recent-sections {
    max-width: 1200px;
    margin: 4rem auto 0;
    padding: 0 1rem;
}

.recent-sections section {
    margin-bottom: 3rem;
}

.section-description {
    color: var(--text-gray);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;

}

.section-link {
    color: var(--link-blue);
    text-decoration: none;
    font-family: var(--sans-font);
    font-size: 0.95rem;
}

.post-list, .paper-list {
    list-style: none;
    padding: 0;
}

.post-list li, .paper-list li {
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.post-date {
    color: var(--text-gray);
    font-family: var(--sans-font);
}

.featured-blog-section {
    margin-top: 2.5rem;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.worklog-group {
    margin-top: 1.5rem;
}

.worklog-group-title {
    font-family: var(--serif-font);
    font-size: 1.2rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.35rem;
}

.worklog-grid {
    margin-top: 0.8rem;
}

.blog-card {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    background-color: #fff;
    display: flex;
    flex-direction: column;
}

.blog-card-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.blog-card-content {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.blog-card-title {
    font-family: var(--serif-font);
    font-size: 1.15rem;
    color: #1a1a1a;
    line-height: 1.35;
}

.blog-card-excerpt {
    color: var(--text-gray);
    font-size: 0.95rem;
    line-height: 1.55;
}

.blog-card-link {
    font-size: 0.95rem;
    font-weight: 600;
    width: fit-content;
}

.blog-post-wrapper {
    max-width: 860px;
    margin: 2.5rem auto 3rem;
    padding: 0 1rem;
}

.blog-post-wrapper img {
    max-width: 100%;
    height: auto;
    display: block;
}

.blog-post-header {
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.25rem;
}

.blog-post-meta {
    color: var(--text-gray);
    font-size: 0.92rem;
    margin-bottom: 0.5rem;
}

.blog-post-title {
    font-family: var(--serif-font);
    font-size: 2rem;
    font-weight: 600;
    line-height: 1.25;
    color: #1a1a1a;
}

.blog-post-intro {
    color: var(--text-gray);
    font-size: 1rem;
    margin-top: 0.75rem;
}

.blog-post-content h2 {
    font-size: 1.35rem;
    margin-top: 1.75rem;
    margin-bottom: 0.65rem;
}

.blog-post-content {
    counter-reset: blog-h2;
}

.blog-post-content h2 {
    counter-increment: blog-h2;
    counter-reset: blog-h3;
}

.blog-post-content h2::before {
    content: counter(blog-h2) ". ";
}

.blog-post-content h3 {
    font-family: var(--serif-font);
    font-size: 1.12rem;
    font-weight: 600;
    color: #1f2937;
    margin-top: 1.2rem;
    margin-bottom: 0.45rem;
    counter-increment: blog-h3;
    counter-reset: blog-h4;
}

.blog-post-content h3::before {
    content: counter(blog-h2) "." counter(blog-h3) " ";
}

.blog-post-content h4 {
    font-family: var(--sans-font);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-gray);
    margin-top: 0.9rem;
    margin-bottom: 0.35rem;
    letter-spacing: 0.01em;
    text-transform: none;
    counter-increment: blog-h4;
}

.blog-post-content h4::before {
    content: counter(blog-h2) "." counter(blog-h3) "." counter(blog-h4) " ";
}

.blog-mini-heading {
    font-size: 0.98rem;
    font-weight: 700;
    color: #374151;
    margin-top: 0.95rem;
    margin-bottom: 0.35rem;
}

.blog-post-content p {
    color: var(--text-gray);
    margin-bottom: 1rem;
    font-size: 1rem;
}

.blog-post-content ul {
    padding-left: 1.2rem;
    margin-bottom: 1rem;
}

.blog-post-content li {
    color: var(--text-gray);
    margin-bottom: 0.45rem;
}

.blog-code-block {
    background-color: #fafafa;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.8rem 0.9rem;
    margin: 0.6rem 0 1rem;
    color: #1a1a1a;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.92rem;
    white-space: pre-wrap;
    line-height: 1.5;
}

.blog-post-hero-image {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 1.2rem;
}

.blog-inline-image {
    width: 100%;
    max-height: 360px;
    object-fit: cover;
    border-radius: 10px;
    margin: 0.5rem 0 1rem;
}

.blog-uniform-image {
    width: 100%;
    height: 360px;
    object-fit: contain;
    border-radius: 10px;
    margin: 0.5rem 0 1rem;
}

.blog-media-left,
.blog-media-right {
    width: auto;
    max-width: min(100%, 760px);
    height: auto;
    max-height: none;
    object-fit: contain;
}

.blog-media-left {
    margin-left: 0;
    margin-right: auto;
}

.blog-media-right {
    margin-left: auto;
    margin-right: 0;
}

.blog-formula {
    font-family: var(--serif-font);
    color: #1a1a1a;
    border-left: 3px solid var(--border-color);
    padding-left: 0.75rem;
    margin-bottom: 1rem;
}

.blog-flow {
    font-family: var(--serif-font);
    color: #1a1a1a;
    margin-bottom: 1rem;
}

.blog-table-wrap {
    margin: 0.7rem 0 1rem;
    overflow-x: auto;
}

.blog-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 420px;
}

.blog-table th,
.blog-table td {
    text-align: left;
    border: 1px solid var(--border-color);
    padding: 0.6rem 0.7rem;
    font-size: 0.95rem;
    color: var(--text-gray);
}

.blog-table th {
    color: #1a1a1a;
    background-color: #fafafa;
    font-weight: 600;
}

.blog-back-link {
    display: inline-block;
    margin-top: 0.8rem;
    font-weight: 600;
}

@media (max-width: 1100px) {
    .blog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Footer Styles */
.footer123 {
    background-color: #f8f8f8;
    padding: 4rem 0;
    font-family: system-ui, -apple-system, sans-serif;
}

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

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

.heading123 {
    color: #666;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.list123 {
    list-style: none;
    padding: 0;
    margin: 0;
}

.link123 {
    color: #333;
    text-decoration: none;
    display: block;
    padding: 0.5rem 0;
    font-size: 0.9rem;
}

.link123:hover {
    color: #e91e63;
}

.newsletter123 {
    text-align: left;
    margin-bottom: 3rem;
    padding: 2rem 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.newsletter-title123 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #333;
}

.highlight123 {
    color: #e91e63;
}

.newsletter-desc123 {
    color: #666;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    line-height: 1.5;
}

.newsletter-buttons123 {
    display: flex;
    gap: 1rem;
}

.button-linkedin123 {
    background-color: #e91e63;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.9rem;
}

.button-substack123 {
    background-color: transparent;
    color: #333;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.9rem;
    border: 1px solid #ddd;
}

.social123 {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.social-link123 {
    text-decoration: none;
    color: #666;
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.social-count123 {
    color: #999;
}

.copyright123 {
    color: #999;
    font-size: 0.9rem;
    text-align: left;
}

/* Responsive styles */
@media (max-width: 768px) {
    nav {
        display: none;
    }

    .container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .image-container {
        order: -1;
    }

    h1 {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1.25rem;
    }

    .columns123 {
        grid-template-columns: repeat(2, 1fr);
    }

    .newsletter-buttons123 {
        flex-direction: column;
    }

    .social123 {
        flex-wrap: wrap;
    }

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

    .blog-card-image {
        height: 200px;
    }

    .blog-post-title {
        font-size: 1.6rem;
    }

    .blog-post-hero-image {
        max-height: 280px;
    }

    .blog-inline-image {
        max-height: 240px;
    }

    .blog-uniform-image {
        height: 240px;
    }

    .blog-media-left,
    .blog-media-right {
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
}

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

    .blog-card-content {
        padding: 0.9rem;
    }

    .blog-card-title {
        font-size: 1.05rem;
    }
}

.paper-item::before {
    content: "●"; /* Unicode character for a bold dot */
    color: black; /* Dark color for the dot */
    font-weight: bold;
    margin-right: 8px; /* Adds spacing between the dot and text */
}
.experience-item {
    margin-left: 2em;
    font-size: 1rem;
    line-height: 1.5;
  }
  
  .role {
    font-weight: bold;
  }
  
  .duration {
    margin-left: 0.5em;
    color: #555;
    font-style: italic;
  }
  

  .internship {
    margin-bottom: 2rem;
    padding-left: 1rem;
  }
  
  .internship h3 {
    margin-bottom: 0.25rem;
  }
  
  .internship .date {
    color: #777;
    font-style: italic;
    margin-left: 0.5rem;
  }
  
  .internship ul {
    padding-left: 1.25rem;
    margin-top: 0.5rem;
  }
  
  .internship li {
    margin-bottom: 0.4rem;
    line-height: 1.6;
  }
  