body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    color: #333;
    background-color: #ffffff;
    overflow-x: hidden;
    font-size: 18px;
    /* Increased base font size */
}

#star-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    transition: background-color 2s ease;
}

#star-canvas.white-out {
    background-color: #000 !important;
    /* Invert white-out for light theme */
    z-index: 1000;
}

header {
    background: rgba(255, 255, 255, 0.4);
    color: #333;
    padding: 0.8rem 2rem;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    backdrop-filter: blur(5px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 12px;
    transition: transform 0.3s ease;
}

.logo-link:hover {
    transform: scale(1.02);
}

.logo-svg {
    width: 40px;
    height: 40px;
}

.logo-name {
    font-size: 1.4rem;
    background: #6a1b9a;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
    display: inline-block;
    min-width: 80px;
    /* Prevent layout jump */
}


nav {
    display: flex;
    align-items: center;
    gap: 1rem;
    /* Reduced gap since we have pipelines */
}

.nav-separator {
    color: #6a1b9a;
    opacity: 0.3;
    font-weight: 300;
    user-select: none;
}

.nav-link {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #6a1b9a;
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover {
    color: #6a1b9a;
}

.header-right {
    justify-self: end;
}

.nav-button {
    color: #fff;
    text-decoration: none;
    background: #6a1b9a;
    padding: 0.7rem 1.5rem;
    border-radius: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.9rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    border: none;
    cursor: pointer;
}

.nav-button:hover {
    background: #8e24aa;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transform: translateY(-1px);
}

/* Project Card GitHub Button - Purple Pill with Liquid Gravity Effect */
.project-github-button {
    display: inline-block;
    margin-top: 2rem;
    padding: 0.6rem 1.5rem;
    background: #6a1b9a;
    color: #ffffff;
    text-decoration: none;
    text-transform: none;
    font-weight: 500;
    font-size: 0.8rem;
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
    cursor: pointer;
    border: none;
    position: relative;
    z-index: 1;
}

.project-github-button:hover {
    background: #8e24aa;
    box-shadow: 0 4px 12px rgba(106, 27, 154, 0.3);
    transform: translateY(-2px);
}

main {
    max-width: 1200px;
    /* Increased to accommodate larger project cards */
    margin: 3rem auto;
    padding: 3rem;
    /* Increased padding */
    background: rgba(255, 255, 255, 0.7);

    .description h3 {
        margin-bottom: 0;
    }

    .description h1 {
        margin-top: 0;
        margin-bottom: 0.2rem;
        /* Small gap to social links */
    }

    .social-links {
        margin-top: 0.5rem;
        display: flex;
        gap: 1.5rem;
    }

    .social-icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 32px;
        height: 32px;
        color: #6a1b9a;
        transition: all 0.3s ease;
        text-decoration: none;
    }

    .social-icon svg {
        width: 24px;
        height: 24px;
        fill: currentColor;
    }

    .social-icon:hover {
        transform: translateY(-3px);
        color: #8e24aa;
    }

    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1),
    0 1px 3px rgba(0, 0, 0, 0.05);
    /* Material shadow */
    backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.profile-container {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .profile-container {
        flex-direction: column;
        text-align: center;
    }
}

#profile-img {
    border-radius: 24px;
    width: 240px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15), 0 0 10px rgba(106, 27, 154, 0.1);
}

h1,
h2,
h3 {
    background: #6a1b9a;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

#experience ul {
    list-style: none;
    padding: 0;
}

#experience li {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

#experience li ul {
    list-style: disc;
    padding-left: 1.5rem;
    margin-top: 1rem;
}

#experience li ul li {
    margin-bottom: 0.5rem;
    padding-bottom: 0;
    border-bottom: none;
    font-size: 0.95rem;
    color: #444;
}

.date {
    color: #666;
    font-size: 0.9rem;
}



/* Search Filter Styles */
.projects-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    gap: 1rem;
}

.projects-header h1 {
    margin: 0;
}

.search-container {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 12px;
    color: #999;
    pointer-events: none;
    transition: color 0.3s ease;
    z-index: 2;
}

#project-search {
    width: 45px;
    /* Icon onlyish */
    min-width: 45px;
    height: 45px;
    padding: 0 12px 0 35px;
    font-size: 1rem;
    border: 1.5px solid rgba(106, 27, 154, 0.3);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    border-radius: 50px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    color: #333;
    cursor: pointer;
}

#project-search::placeholder {
    opacity: 0;
    transition: opacity 0.3s ease;
}

#project-search:focus,
#project-search:not(:placeholder-shown) {
    width: 280px;
    padding-left: 40px;
    padding-right: 20px;
    border-color: #6a1b9a;
    background: #fff;
    cursor: text;
    box-shadow: 0 4px 12px rgba(106, 27, 154, 0.15);
}

#project-search:focus+.search-icon,
#project-search:not(:placeholder-shown)+.search-icon {
    color: #6a1b9a;
}

#project-search:focus::placeholder {
    opacity: 1;
}

.loading-projects {
    grid-column: 1 / -1;
    text-align: center;
    padding: 2rem;
    font-size: 1.2rem;
    color: #6a1b9a;
}

/* Projects page styles */
.projects-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.project-card {
    position: relative;
    border: none;
    border-radius: 12px;
    padding: 2rem;
    aspect-ratio: 1 / 1;
    background: transparent;
    /* No background panel like inspiration */
    transition: all 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.project-points {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    /* Let clicks pass through to content */
    z-index: 1;
}

.project-card img,
.project-card h3,
.project-card p {
    position: relative;
    z-index: 2;
    /* Content above the points */
}

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

.project-card img {
    max-width: 80px;
    /* Logo style like inspiration might use */
    height: auto;
    margin-bottom: 1.5rem;
}

.project-languages {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 2;
}

.lang-tag {
    background: #f8f9fa;
    color: #666;
    padding: 0.25rem 0.8rem;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 400;
    border: 1px solid #eee;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.project-card:hover .lang-tag {
    background: #e1bee7;
    /* Darker solid purple for hover */
    transform: scale(1.05);
}

/* Pagination Styles */
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 3rem;
}

.pagination-button {
    background: #6a1b9a;
    color: white;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pagination-button:hover:not(:disabled) {
    background: #8e24aa;
    transform: translateY(-2px);
}

.pagination-button:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}

.page-info {
    color: #333;
}

/* Floating Chat Button */
.floating-chat-button {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    align-items: center;
    background: #6a1b9a;
    color: white;
    text-decoration: none;
    height: 55px;
    width: 55px;
    /* padding: 0; Removed as .button-content handles it */
    /* justify-content: center; Removed as .button-content handles it */
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(106, 27, 154, 0.3);
    z-index: 2000;
    overflow: hidden;
    white-space: nowrap;
    transition: width 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
        background 0.3s ease,
        box-shadow 0.3s ease;
    animation: fab-idle-jump 6s ease-in-out infinite;
}

.floating-chat-button .button-content {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 0 10px;
    /* Adjust padding for expanded state */
    box-sizing: border-box;
}

.floating-chat-button:hover {
    width: 300px;
    background: #8e24aa;
    box-shadow: 0 8px 25px rgba(106, 27, 154, 0.4);
    animation: none;
    transform: translateY(-5px);
}

.floating-chat-button img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.floating-chat-button span {
    font-size: 0.9rem;
    font-weight: 500;
    max-width: 0;
    opacity: 0;
    margin-left: 0;
    overflow: hidden;
    transition: max-width 0.4s ease, opacity 0.3s ease, margin-left 0.4s ease;
}

.floating-chat-button:hover span {
    max-width: 260px;
    opacity: 1;
    margin-left: 0.8rem;
}

@keyframes fab-idle-jump {

    0%,
    85%,
    100% {
        transform: translateY(0);
    }

    88% {
        transform: translateY(-10px);
    }

    91% {
        transform: translateY(0);
    }

    94% {
        transform: translateY(-5px);
    }

    97% {
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    body {
        font-size: 16px;
    }

    header {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
        padding: 1rem;
        gap: 0.5rem;
        height: auto;
    }

    .logo-link {
        order: 1;
        margin-bottom: 0;
        margin-right: auto;
        /* Push others right if needed, but space-between handles it */
    }

    .header-right {
        order: 2;
        width: auto;
        /* Only take needed space */
        margin-top: 0;
        padding-right: 0;
        display: flex;
        /* Ensure it stays flex */
    }

    .language-selector {
        display: none;
        /* Hide buttons on mobile */
    }

    .mobile-lang-selector {
        display: block !important;
        /* Show select on mobile */
        border: 1px solid rgba(106, 27, 154, 0.3);
        background: rgba(255, 255, 255, 0.8);
        border-radius: 8px;
        padding: 4px 8px;
        font-size: 0.9rem;
        color: #333;
        outline: none;
    }

    nav {
        order: 3;
        width: 100%;
        /* Force to new line */
        gap: 0.8rem;
        flex-wrap: wrap;
        justify-content: center;
        margin-top: 0.5rem;
    }

    .nav-separator {
        display: none;
        /* Hide separators on mobile for cleaner look if wrapping */
    }

    main {
        margin: 1.5rem auto;
        padding: 1.5rem;
        width: 90%;
        max-width: none;
    }

    .profile-container {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    #profile-img {
        width: 150px;
        margin: 0 auto;
    }

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

    .projects-container {
        grid-template-columns: 1fr;
        /* Single column for projects */
    }
}

@media (max-width: 600px) {
    .floating-chat-button {
        bottom: 1rem;
        right: 1rem;
    }

    .floating-chat-button:hover {
        width: 55px;
        padding: 0;
        justify-content: center;
    }

    .floating-chat-button span {
        display: none;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

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

.hidden-item {
    animation: fadeIn 0.5s ease-in-out;
}

.expand-button {
    background: none;
    border: none;
    color: #6a1b9a;
    cursor: pointer;
    font-size: 0.85rem;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1.5rem;
    padding: 0;
    font-weight: 500;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.expand-button:hover {
    opacity: 1;
}

.expand-button::before,
.expand-button::after {
    content: "";
    flex: 1;
    border-bottom: 1px solid rgba(106, 27, 154, 0.3);
    margin: 0 1rem;
    transition: border-color 0.3s ease;
}

.expand-button:hover::before,
.expand-button:hover::after {
    border-bottom-color: rgba(106, 27, 154, 0.8);
}

/* Skills Section Styles */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.skill-category {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.skill-category:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(106, 27, 154, 0.1);
    border-color: rgba(106, 27, 154, 0.2);
}

.skill-category h3 {
    color: #6a1b9a;
    font-size: 1.1rem;
    margin-top: 0;
    margin-bottom: 1rem;
    border-bottom: 2px solid rgba(106, 27, 154, 0.1);
    padding-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.skill-icon {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

/* Custom Star Loader */
.star-loader {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 120px;
    height: 120px;
    margin: 3rem auto;
    grid-column: 1 / -1;
}

.star-svg {
    position: absolute;
    fill: #6a1b9a;
}

.big-star {
    width: 60px;
    height: 60px;
    z-index: 1;
    /* Optional: subtle pulse for the "sun" */
    animation: star-pulse 2s ease-in-out infinite alternate;
}

.orbit-container {
    width: 100%;
    height: 100%;
    position: absolute;
    animation: star-orbit 4s linear infinite;
    z-index: 2;
}

.small-star {
    width: 25px;
    height: 25px;
    position: absolute;
    top: 5px;
    /* Positioned near edge */
    left: 50%;
    transform: translateX(-50%);
}

@keyframes star-orbit {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes star-pulse {
    from {
        transform: scale(0.9);
        opacity: 0.8;
    }

    to {
        transform: scale(1.1);
        opacity: 1;
    }
}

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

.skill-tag {
    font-size: 0.85rem;
    padding: 0.3rem 0.8rem;
    border: 1px solid #6a1b9a;
    border-radius: 20px;
    color: #333;
    transition: all 0.2s ease;
    cursor: default;
}

.skill-tag:hover {
    background-color: #6a1b9a;
    color: white;
}

/* Soft Skills Styles */
.soft-skills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
}

.soft-skill-badge {
    background-color: #f3e5f5;
    /* Light purple bg */
    color: #4a148c;
    /* Darker purple text */
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.95rem;
    border: 1px dashed #ab47bc;
    transition: transform 0.2s ease;
}

.soft-skill-badge:hover {
    transform: scale(1.05);
    background-color: #e1bee7;
}

/* Language Selector */
.mobile-lang-selector {
    display: none;
}

.language-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.5);
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid rgba(106, 27, 154, 0.1);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.lang-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 2px;
    border-radius: 4px;
    transition: transform 0.2s ease, filter 0.2s ease;
    opacity: 0.5;
    filter: grayscale(80%);
}

.lang-btn:hover {
    transform: scale(1.1);
    opacity: 0.8;
    filter: grayscale(40%);
}

.lang-btn.active {
    opacity: 1;
    filter: grayscale(0%);
    transform: scale(1.1);
}

.lang-divider {
    color: #aeaeae;
    font-weight: 300;
    user-select: none;
    font-size: 1rem;
}

/* Enforce Mobile Visibility Overrides */
@media (max-width: 768px) {
    .language-selector {
        display: none !important;
    }

    .mobile-lang-selector {
        display: block !important;
    }
}

/* Project Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 3000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: rgba(255, 255, 255, 0.95);
    width: 90%;
    max-width: 900px;
    max-height: 85vh;
    border-radius: 4px;
    /* Maintaining the sharper look */
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 50px rgba(106, 27, 154, 0.3);
    border: 1px solid rgba(106, 27, 154, 0.1);
    animation: modal-slide-up 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

@keyframes modal-slide-up {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

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

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    font-size: 2rem;
    color: #6a1b9a;
    cursor: pointer;
    z-index: 10;
    line-height: 1;
    opacity: 0.6;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.modal-close:hover {
    opacity: 1;
    transform: rotate(90deg);
}

.modal-body {
    padding: 3rem;
    overflow-y: auto;
    flex: 1;
    scrollbar-width: thin;
    scrollbar-color: #6a1b9a #f3e5f5;
}

.modal-body::-webkit-scrollbar {
    width: 6px;
}

.modal-body::-webkit-scrollbar-track {
    background: #f3e5f5;
}

.modal-body::-webkit-scrollbar-thumb {
    background: #6a1b9a;
}

.modal-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #6a1b9a;
    gap: 1rem;
}

/* Markdown Rendering Styles */
.readme-content {
    color: #333;
    line-height: 1.7;
}

.readme-content h1,
.readme-content h2,
.readme-content h3 {
    -webkit-text-fill-color: initial;
    background: none;
    color: #6a1b9a;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(106, 27, 154, 0.1);
    padding-bottom: 0.5rem;
}

.readme-content p {
    margin-bottom: 1rem;
}

.readme-content code {
    background: #f3e5f5;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'Roboto Mono', monospace;
    font-size: 0.9rem;
}

.readme-content pre {
    background: #1a1a1a;
    color: #f8f8f2;
    padding: 1.5rem;
    border-radius: 4px;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.readme-content pre code {
    background: none;
    padding: 0;
    color: inherit;
}

.readme-content ul,
.readme-content ol {
    margin-bottom: 1rem;
    padding-left: 2rem;
}

.readme-content li {
    margin-bottom: 0.5rem;
    border-bottom: none;
}

.modal-footer {
    padding: 1rem 3rem;
    background: #f3e5f5;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.translation-status {
    font-size: 0.8rem;
    font-style: italic;
    color: #6a1b9a;
    opacity: 0.8;
}

/* Blog Merge Styles */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #6a1b9a;
    opacity: 0.7;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.hero-quote-container {
    margin: 0;
    padding: 0 4rem;
    /* Space for arrows */
    max-width: 1000px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    transition: opacity 0.5s ease-in-out, transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.quote-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 3.5rem;
    color: #6a1b9a;
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 10;
    font-weight: 200;
}

.prev-quote {
    left: 0;
}

.next-quote {
    right: 0;
}

.hero-quote-container:hover .quote-nav {
    opacity: 0.4;
}

.quote-nav:hover {
    opacity: 1 !important;
    transform: translateY(-50%) scale(1.1);
}

/* Horizontal Slide States */
.hero-quote-container.slide-out-left {
    opacity: 0;
    transform: translateX(-30px);
}

.hero-quote-container.slide-out-right {
    opacity: 0;
    transform: translateX(30px);
}

.hero-quote-container.slide-in-left {
    transform: translateX(30px);
    opacity: 0;
}

.hero-quote-container.slide-in-right {
    transform: translateX(-30px);
    opacity: 0;
}

.section-header .hero-title {
    font-size: 2.6rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
    line-height: 1.25;
    font-style: italic;
    background: #333;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    background-image: linear-gradient(135deg, #1a1a1a 0%, #6a1b9a 100%);
    text-align: center;
}

.hero-author {
    font-size: 1.2rem;
    color: #6a1b9a;
    font-style: italic;
    align-self: flex-end;
    margin-top: 0;
    margin-right: 2rem;
    opacity: 0.8;
    font-weight: 500;
}

.hero-author::before {
    content: "— ";
}

.section-header .section-description {
    font-size: 1.25rem;
    color: #666;
    max-width: 600px;
    line-height: 1.6;
    margin: 0 auto;
    font-style: italic;
    opacity: 0.9;
}

.blog-categories {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding-bottom: 1rem;
    overflow-x: auto;
    scrollbar-width: none;
}

.blog-categories::-webkit-scrollbar {
    display: none;
}

.category-btn {
    background: none;
    border: none;
    color: #666;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.5rem 0;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    position: relative;
    opacity: 0.7;
}

.category-btn:hover {
    color: #6a1b9a;
    opacity: 1;
}

.category-btn.active {
    color: #6a1b9a;
    opacity: 1;
}

.category-btn.active::after {
    content: '';
    position: absolute;
    bottom: -0.6rem;
    left: 0;
    width: 100%;
    height: 3px;
    background: #6a1b9a;
    border-radius: 2px;
}

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

.blog-card {
    position: relative;
    aspect-ratio: 3 / 4;
    border-radius: 20px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(106, 27, 154, 0.1);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease;
    cursor: pointer;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(106, 27, 154, 0.15);
}

.blog-card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    transition: transform 0.6s ease, opacity 0.3s ease;
    filter: saturate(0.8);
}

.blog-card:hover .blog-card-bg {
    transform: scale(1.05);
    opacity: 1;
    filter: saturate(1);
}

.blog-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
            rgba(255, 255, 255, 0.1) 0%,
            rgba(255, 255, 255, 0.8) 60%,
            rgba(255, 255, 255, 0.95) 100%);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: #333;
    z-index: 2;
}

.blog-card-info {
    margin-top: 0;
}

.blog-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #6a1b9a;
    -webkit-text-fill-color: initial;
    background: none;
    margin-bottom: 0.8rem;
    line-height: 1.3;
}

.blog-card-summary {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.4;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-btn {
    align-self: flex-start;
    background: #6a1b9a;
    color: #fff;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.blog-card:hover .blog-card-btn {
    background: #8e24aa;
    transform: translateX(5px);
}

.back-to-blog-btn {
    background: none;
    border: none;
    color: #4a148c;
    /* Darker purple for better visibility */
    font-size: 3rem;
    /* Even larger arrow */
    cursor: pointer;
    line-height: 1;
    padding: 0;
    margin: 1rem 0 2rem 0;
    /* More margin to clear the layout */
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), color 0.3s ease;
    display: block;
    /* Force to own line above container */
    opacity: 0.8;
}

.back-to-blog-btn:hover {
    transform: translateX(-8px) scale(1.1);
    color: #6a1b9a;
    opacity: 1;
}

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

    .hero-quote-container {
        padding: 0 2.5rem;
    }

    .section-header .hero-title {
        font-size: 1.6rem;
    }

    .hero-author {
        font-size: 1rem;
        margin-right: 1.5rem;
    }

    .quote-nav {
        font-size: 2.5rem;
    }
}

/* Post View Refinements: Integrated Layout */
.post-layout-container {
    background: rgba(255, 255, 255, 0.95);
    padding: 0;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(106, 27, 154, 0.1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    width: 100%;
    box-sizing: border-box;
    margin-top: 1rem;
    overflow: hidden;
}

.post-hero-header {
    position: relative;
    width: 100%;
    aspect-ratio: 21 / 4.5;
    overflow: hidden;
}

.post-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.post-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
            rgba(255, 255, 255, 0.1) 0%,
            rgba(255, 255, 255, 0.8) 60%,
            rgba(255, 255, 255, 0.95) 100%);
    pointer-events: none;
}

.markdown-body {
    background: none !important;
    padding: 3rem 4rem 4rem 4rem !important;
    max-width: 900px;
    margin: 0 auto;
    box-shadow: none !important;
    border: none !important;
    backdrop-filter: none !important;
    color: #333;
    overflow: hidden;
    position: relative;
    z-index: 5;
}

/* Enhanced Blog Post Title */
.markdown-body h1 {
    display: block;
    margin-top: 0;
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -1.5px;
    background: linear-gradient(135deg, #1a1a1a 0%, #6a1b9a 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 2rem;
    line-height: 1.1;
    filter: drop-shadow(0 2px 4px rgba(106, 27, 154, 0.1));
}

@media (max-width: 768px) {
    .markdown-body h1 {
        font-size: 2.2rem;
        margin-bottom: 1.5rem;
    }

    .post-layout-container {
        background: #ffffff !important;
        backdrop-filter: none !important;
        border: none;
        opacity: 1 !important;
    }

    .markdown-body {
        padding: 1.5rem 2.5rem 1.5rem 1.5rem !important;
    }
}

.post-categories-labels {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 3rem;
    margin-top: -1.5rem;
    opacity: 0.8;
}

.post-category-tag {
    font-size: 0.85rem;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    background: rgba(106, 27, 154, 0.05);
    padding: 3px 10px;
    border-radius: 4px;
    border: 1px solid rgba(106, 27, 154, 0.1);
}

.post-date {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(106, 27, 154, 0.1);
    font-size: 0.9rem;
    color: #777;
    font-style: italic;
    text-align: right;
}

.post-date span {
    font-weight: 500;
}

@media (max-width: 900px) {
    .post-inline-image {
        float: none;
        width: 100%;
        margin: 0 0 2rem 0;
    }

    .video-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Video Grid for side-by-side embeds */
.video-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
    width: 100%;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    background: #000;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}



.blog-content-transition {
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.blog-content-hidden {
    opacity: 0;
    transform: translateY(20px);
}

/* Entropy Animation Component */
.entropy-animation-container {
    margin: 3rem auto;
    padding: 2.5rem;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 20px;
    border: 1px solid rgba(106, 27, 154, 0.1);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(10px);
    max-width: 800px;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.entropy-viz-header {
    margin-bottom: 2rem;
}

.entropy-viz-header h4 {
    margin: 0;
    font-size: 1.4rem;
    color: #6a1b9a;
    background: linear-gradient(135deg, #1a1a1a 0%, #6a1b9a 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

.entropy-svg-wrapper {
    width: 100%;
    margin: 0 auto;
    position: relative;
    padding: 20px 0;
}

.entropy-curve-path {
    fill: none;
    stroke: #6a1b9a;
    stroke-width: 5;
    stroke-linecap: round;
    opacity: 0.8;
}

.entropy-grid-line {
    stroke: rgba(106, 27, 154, 0.1);
    stroke-width: 1;
    stroke-dasharray: 6, 6;
}

.entropy-max-line {
    stroke: #ff1744;
    stroke-width: 2;
    stroke-dasharray: 4, 4;
}

.entropy-point {
    fill: #6a1b9a;
    stroke: white;
    stroke-width: 4;
    filter: drop-shadow(0 0 12px rgba(106, 27, 154, 0.7));
    offset-path: path("M 50 250 Q 400 50 750 250");
    animation: move-on-curve 6s ease-in-out infinite;
}

.entropy-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 1.5rem;
    padding: 0 1rem;
    font-size: 0.9rem;
    color: #555;
    font-weight: 500;
}

.label-limit {
    flex: 1;
    text-align: center;
}

.label-max {
    color: #ff1744;
    font-weight: 700;
}

@keyframes move-on-curve {

    0%,
    100% {
        offset-distance: 0%;
    }

    50% {
        offset-distance: 100%;
    }
}

@media (max-width: 768px) {
    .entropy-animation-container {
        padding: 1.5rem;
    }

    .entropy-labels {
        font-size: 0.8rem;
        flex-direction: column;
        gap: 0.5rem;
    }

    .entropy-viz-header h4 {
        font-size: 1.2rem;
    }
}

/* Social Sharing Styles */
.post-actions-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    width: 100%;
}

.share-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.main-share-btn {
    background: rgba(106, 27, 154, 0.1);
    border: 1px solid rgba(106, 27, 154, 0.15);
    color: #6a1b9a;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    padding: 10px;
}

.main-share-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
    transition: transform 0.4s ease;
}

.main-share-btn:hover {
    background: #6a1b9a;
    color: #fff;
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(106, 27, 154, 0.2);
}

.main-share-btn.active {
    background: #6a1b9a;
    color: #fff;
}

.main-share-btn.active svg {
    transform: rotate(45deg);
}

.share-options-container {
    position: absolute;
    right: 50px;
    top: 50%;
    transform: translateY(-50%) translateX(20px);
    display: flex;
    gap: 0.6rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 6px 10px;
    border-radius: 30px;
    border: 1px solid rgba(106, 27, 154, 0.1);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 100;
}

.share-options-container.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
}

.share-btn {
    background: none;
    border: none;
    color: #666;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 7px;
}

.share-btn svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.share-btn:hover {
    transform: scale(1.2);
    background: rgba(106, 27, 154, 0.1);
    color: #6a1b9a;
}

.share-btn.linkedin:hover {
    color: #0077b5;
}

.share-btn.whatsapp:hover {
    color: #25d366;
}

.share-btn.x:hover {
    color: #000;
}

.share-btn.email:hover {
    color: #ea4335;
}

@media (max-width: 600px) {
    .share-options-container {
        right: 0;
        top: 50px;
        transform: translateY(-10px);
    }

    .share-options-container.active {
        transform: translateY(0);
    }
}

/* --- AGI Post Animations --- */

/* Research Simulation Styles */
.research-simulation {
    margin: 2rem 0;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    border: 1px solid rgba(106, 27, 154, 0.1);
}

.research-row {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    gap: 1rem;
    position: relative;
}

.research-row:last-child {
    margin-bottom: 0;
}

.research-label {
    width: 140px;
    font-weight: 500;
    color: #333;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.progress-container {
    flex-grow: 1;
    height: 12px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

.progress-bar {
    height: 100%;
    width: 0%;
    border-radius: 6px;
    transition: width linear;
}

.human-bar {
    background: #9e9e9e;
    /* Gray for human */
}

.agi-bar {
    background: linear-gradient(90deg, #6a1b9a, #8e24aa);
    /* Purple for AGI */
    box-shadow: 0 0 10px rgba(106, 27, 154, 0.4);
}

.discovery-tag {
    position: absolute;
    right: 0;
    top: -20px;
    background: #4caf50;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: bold;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.discovery-tag.show {
    opacity: 1;
    transform: translateY(0);
}

.job-market-animation {
    display: grid;
    grid-template-columns: repeat(25, 1fr);
    gap: 4px;
    max-width: 800px;
    margin: 0 auto;
    justify-items: center;
    /* Center icons in their grid cells */
}

.job-person {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.job-person svg {
    width: 100%;
    height: 100%;
    fill: #9c27b0;
    /* Purple */
    transition: fill 1.5s ease;
}

.job-person.dimmed svg {
    fill: #e0e0e0;
    /* Gray */
}

@media (max-width: 600px) {
    .research-row {
        flex-wrap: wrap;
    }

    .research-label {
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .discovery-tag {
        top: auto;
        bottom: -20px;
        right: 0;
    }
}

/* Mobile optimizations for small screens */
@media (max-width: 480px) {
    header {
        padding: 0.5rem;
    }

    .logo-name {
        font-size: 1.2rem;
        min-width: auto;
    }

    nav {
        gap: 0.5rem;
    }

    .nav-link {
        font-size: 0.9rem;
        padding: 0.2rem 0;
    }

    .blog-categories {
        gap: 0.8rem;
        justify-content: flex-start;
        padding-left: 0.5rem;
        margin-bottom: 1.5rem;
        flex-wrap: nowrap;
        overflow-x: auto;
    }

    .category-btn {
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem;
        background: rgba(106, 27, 154, 0.05);
        /* Make them look more like buttons/pills on mobile */
        border-radius: 20px;
    }
}