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

:root {
    --blob-color: linear-gradient(
        to right,
        rgba(255, 182, 193, 0.3),    /* More transparent pink */
        rgba(255, 192, 203, 0.3)      /* More transparent pink */
    );
    --blob-size: 400px;
    --text-color: #E0E3E6;           /* Silvery grey for text */
    --text-color-muted: #A0A7AD;     /* Muted silvery grey for secondary text */
    --bg-color: #1A1E23;             /* Dark bluish-grey background */
}

body {
    font-family: 'Space Mono', monospace;
    line-height: 1.6;
    padding: 2rem;
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
    position: relative;
    margin: 0;
    font-weight: 300;
}

main {
    max-width: 1200px;
    margin-left: 2rem;
    position: relative;
    z-index: 1;
}

header {
    margin-bottom: 3rem;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-family: 'Space Mono', monospace;
    white-space: nowrap;
    font-weight: 400;
    letter-spacing: -1px;
}

.ingress {
    font-size: 1.2rem;
    color: var(--text-color-muted);
}

.category {
    margin-bottom: 1rem;
}

.category h2 {
    cursor: pointer;
    font-size: 1.5rem;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
    color: var(--text-color);
    line-height: 1.3;
    max-width: 800px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 300;
    outline: none;
}

.subscribe-text {
    color: rgba(255, 105, 180, 0.6);
    font-size: 0.9rem;
    font-weight: 300;
    margin-left: 0.5rem;
    animation: subtlePulse 3s ease-in-out infinite;
    display: inline-block;
}

@keyframes subtlePulse {
    0%, 100% {
        opacity: 0.6;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.02);
    }
}

/* Books section styles */
.books-content {
    padding: 2rem 0;
    width: 100%;
    max-width: 100%;
}

.books-read-section {
    margin-bottom: 3rem;
}

.books-read-section h3,
.book-recommendations-section h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-color);
    font-weight: 400;
}

.books-read-section h4,
.book-recommendations-section h4 {
    font-size: 1.1rem;
    margin: 2rem 0 1rem;
    color: var(--text-color);
    font-weight: 400;
}

.books-note,
.recommendations-note {
    color: var(--text-color-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.books-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.2rem;
    margin-top: 1rem;
    column-gap: 1.5rem;
    width: 100%;
    max-width: 100%;
}

.book-item {
    padding: 0.2rem 0;
    transition: all 0.2s ease;
    position: relative;
    cursor: pointer;
    border-bottom: 1px solid transparent;
}

.book-item:hover {
    border-bottom-color: rgba(255, 105, 180, 0.3);
    transform: translateX(3px);
}

.book-item-content {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    position: relative;
}

.book-item .book-title {
    font-size: 0.85rem;
    line-height: 1.2;
}

.book-item .book-author {
    font-size: 0.75rem;
    opacity: 0.7;
}

.book-item .book-author.book-info-hidden {
    display: none;
}

.book-item:hover .book-author.book-info-hidden {
    display: block;
}

.book-item .book-rating {
    display: none;
    font-size: 0.7rem;
    margin-top: 0.2rem;
}

.book-item:hover .book-rating {
    display: block;
}

.book-item .book-cover {
    display: none;
    position: absolute;
    bottom: 100%;
    left: 0;
    margin-bottom: 10px;
    width: 100px;
    height: 150px;
    object-fit: cover;
    z-index: 10000;
    border: 2px solid #FF69B4;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    background: var(--bg-color);
    pointer-events: none;
}

.book-item:hover .book-cover {
    display: block;
}

.book-item .book-cover-placeholder {
    display: none;
    position: absolute;
    bottom: 100%;
    left: 0;
    margin-bottom: 10px;
    width: 100px;
    height: 150px;
    background: var(--bg-color);
    border: 2px solid #FF69B4;
    align-items: center;
    justify-content: center;
    color: var(--text-color-muted);
    font-size: 0.7rem;
    z-index: 10000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    pointer-events: none;
}

.book-item:hover .book-cover-placeholder {
    display: flex;
}

.book-title {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-color);
    margin-bottom: 0.3rem;
    line-height: 1.3;
}

.book-author {
    font-size: 0.8rem;
    color: var(--text-color-muted);
}

.book-recommendation-form {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    max-width: 600px;
}

.book-recommendation-form input {
    flex: 1;
    padding: 1rem;
    background: transparent;
    border: 1px solid var(--text-color-muted);
    color: var(--text-color);
    font-family: 'Space Mono', monospace;
    font-size: 0.9rem;
}

.book-recommendation-form input:focus {
    outline: 2px solid #FF69B4;
    outline-offset: 2px;
    border-color: #FF69B4;
}

.book-recommendation-form button {
    padding: 1rem 2rem;
    background: transparent;
    border: 1px solid var(--text-color-muted);
    color: var(--text-color);
    font-family: 'Space Mono', monospace;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.book-recommendation-form button:hover {
    background: #FF69B4;
    border-color: #FF69B4;
    color: var(--bg-color);
    transform: translateY(-2px);
}

.recommendation-status {
    margin-top: 1rem;
    padding: 0.5rem;
    font-size: 0.9rem;
    min-height: 1.5rem;
}

.recommendation-status.success {
    color: #FF69B4;
}

.recommendation-status.error {
    color: #ff4444;
}

.recommended-books-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
    align-items: start;
}

.recommended-book-item {
    border: 1px solid rgba(255, 105, 180, 0.3);
    padding: 1rem;
    background: rgba(255, 192, 203, 0.05);
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.recommended-book-item .book-cover {
    width: 100%;
    max-width: 120px;
    height: auto;
    aspect-ratio: 2/3;
    object-fit: cover;
    margin-bottom: 0.5rem;
    align-self: flex-start;
}

.recommended-book-item::before {
    content: 'Recommended';
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    font-size: 0.7rem;
    color: #FF69B4;
    background: rgba(255, 105, 180, 0.1);
    padding: 0.2rem 0.5rem;
    border-radius: 2px;
}

.book-rating {
    font-size: 0.8rem;
    color: #FF69B4;
    margin-top: 0.3rem;
    letter-spacing: 2px;
}

.goodreads-config {
    margin-bottom: 2rem;
    padding: 1.5rem;
    border: 1px solid var(--text-color-muted);
    background: rgba(255, 192, 203, 0.02);
}

.goodreads-input-group {
    display: flex;
    gap: 1rem;
    margin: 1rem 0;
    max-width: 600px;
}

.goodreads-input-group input {
    flex: 1;
    padding: 1rem;
    background: transparent;
    border: 1px solid var(--text-color-muted);
    color: var(--text-color);
    font-family: 'Space Mono', monospace;
    font-size: 0.9rem;
}

.goodreads-input-group input:focus {
    outline: 2px solid #FF69B4;
    outline-offset: 2px;
    border-color: #FF69B4;
}

.goodreads-input-group button {
    padding: 1rem 2rem;
    background: transparent;
    border: 1px solid var(--text-color-muted);
    color: var(--text-color);
    font-family: 'Space Mono', monospace;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    white-space: nowrap;
}

.goodreads-input-group button:hover:not(:disabled) {
    background: #FF69B4;
    border-color: #FF69B4;
    color: var(--bg-color);
    transform: translateY(-2px);
}

.goodreads-input-group button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.books-help-text {
    font-size: 0.8rem;
    color: var(--text-color-muted);
    margin-top: 0.5rem;
    font-style: italic;
}

.category h2:focus:not(:active) {
    outline: 2px solid #FF69B4;
    outline-offset: 2px;
}

.category h2:active,
.category h2:focus:active {
    outline: none;
}

.category h2:hover {
    color: #FF69B4;
}

.subcategory h3 {
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0.5rem 0;
    margin-left: 1rem;
    transition: color 0.3s ease;
    color: var(--text-color);
    font-weight: 300;
    outline: none;
}

.subcategory h3:focus:not(:active) {
    outline: 2px solid #FF69B4;
    outline-offset: 2px;
}

.subcategory h3:active,
.subcategory h3:focus:active {
    outline: none !important;
}

.subcategory h3:focus-visible:not(:focus-within) {
    outline: 2px solid #FF69B4;
    outline-offset: 2px;
}

.subcategory h3:hover {
    color: #FF69B4;
}

.content, .subcontent {
    display: none;
    padding-left: 1rem;
    position: relative;
}

.content.active, .subcontent.active {
    display: block;
}

/* Adding connecting line styles */
.content.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 2px;
    height: 100%;
    background-color: var(--text-color-muted);
    transform: scaleY(0);
    transform-origin: top;
    animation: lineGrow 0.3s forwards;
}

@keyframes lineGrow {
    to {
        transform: scaleY(1);
    }
}

/* Remove the old cursor trail styles and replace with these new ones */
.expand {
    width: 30px;
    height: 30px;
}

svg {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    pointer-events: none;
}

svg line {
    stroke-width: 20px; /* Much thicker lines */
    stroke-linecap: round;
}

/* Project Grid Styles */
.project-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 1rem;
    opacity: 0;
    height: 0;
    overflow: hidden;
    transition: opacity 0.3s ease;
}

.content.active .project-grid {
    opacity: 1;
    height: auto;
    overflow: visible;
}

.project-card {
    background: var(--bg-color);
    padding: 1rem;
    display: flex;
    gap: 0.5rem;
    align-items: stretch;
    flex-direction: row-reverse;
}

.project-card img {
    width: 250px;
    height: 250px;
    object-fit: cover;
    margin: 0;
    display: block;
    cursor: pointer;
}

.project-info {
    flex: 1;
    padding: 0 0 2rem 0;
    position: sticky;
    top: 2rem;
    min-width: 300px;
}

.project-info h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-weight: 400;
    letter-spacing: 2px;
}

.project-date {
    font-size: 0.9rem;
    color: var(--text-color-muted);
    margin-bottom: 0.5rem;
    font-family: 'Space Mono', monospace;
}

.project-desc {
    font-size: 0.9rem;
    line-height: 1.4;
    color: var(--text-color);
    font-family: 'Space Mono', monospace;
    border-left: 2px solid var(--text-color-muted);
    padding-left: 1rem;
    margin: 0;
    white-space: pre-wrap;
    max-width: 1400px;  /* Wider text area */
    margin-bottom: 2rem;
}

/* Add some brutalist hover effects */
.project-card:hover .project-info h3 {
    color: #FF69B4;
    transform: translateX(5px);
    transition: all 0.3s ease;
}

.project-card:hover .project-desc {
    border-left-color: #FF69B4;
}

/* Responsive design - consolidated in media queries below */ 

/* Project list styles */
.project-list {
    display: block;
    padding-left: 1rem;
}

.project-title {
    cursor: pointer;
    padding: 0.5rem 0;
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    position: relative;
    z-index: 1;
    outline: none;
}

.project-title:focus {
    outline: 2px solid #FF69B4;
    outline-offset: 2px;
}

.project-title:active,
.project-title:focus:active {
    outline: none;
}

.project-preview {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.project-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-title:hover .project-preview {
    transform: scale(1.1);
}

.project-title h3 {
    font-family: 'Space Mono', monospace;
    font-size: 1rem;
    color: var(--text-color);
    margin: 0;
    font-weight: 300;
}

.project-year {
    font-family: 'Space Mono', monospace;
    font-size: 0.8rem;
    color: var(--text-color-muted);
}

.project-title:hover {
    transform: translateX(10px);
}

/* Project details container */
.project-details-container {
    position: fixed;
    top: 0;
    right: 0;
    width: calc(100% - 400px);
    height: 100vh;
    padding: 2rem;
    overflow-y: auto;
}

.project-details {
    display: none;
    opacity: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.project-details.active {
    display: block;
    opacity: 1;
    overflow: visible;
    border: 1px solid var(--text-color-muted);
    padding: 2rem;
    margin-top: 1rem;
    width: calc(100vw - 4rem);
    margin-left: -2rem;
    position: relative;
}

.project-images {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: flex-start;
    width: 100%;
}

.project-images img {
    width: calc(25% - 1rem);
    aspect-ratio: 1;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-images img:hover {
    transform: scale(1.05);
    cursor: pointer;
}

.project-info h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.project-info h2 {
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
    color: var(--text-color);
}

.project-info ul, .project-info ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.project-info li {
    margin-bottom: 0.5rem;
    color: var(--text-color-muted);
} 

/* Update hover effects for all text elements - removed duplicate */

/* Project title hover effects - consolidated above */

/* Project card hover effects - consolidated above */

/* Update webpage hover effects */
.webpage-title:hover h3 {
    color: #FF69B4;
}

.webpage-link:hover {
    color: #FF69B4;
}

/* Update blog post hover effects */
.blog-post h3:hover {
    color: #FF69B4;
    cursor: pointer;
}

/* Add transition for all text elements */
h1, h2, h3, h4, p, a, .project-year {
    transition: color 0.3s ease;
} 

.about-header {
    margin-bottom: 2rem;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 3rem;
}

.profile-image-container {
    width: 200px;
    height: 0;
    padding-bottom: 200px;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
    position: relative;
}

.profile-image-container:hover {
    transform: scale(1.05);
}

.profile-image {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.profile-image-container:hover .profile-image {
    filter: grayscale(0%);
}

.about-text {
    margin-bottom: 1.5rem;
    color: var(--text-color);
    font-size: 16px;
    line-height: 1.8;
    font-family: 'Space Mono', monospace;
    max-width: 500px;
    color: var(--text-color-muted);
    margin: 0;
} 

/* Update about content container */
.about-content {
    display: flex;
    align-items: center;
    gap: 3rem;
    max-width: 800px;
} 

/* Add this at the end of your styles.css */
@media (max-width: 768px) {
    body {
        padding: 1rem;
    }

    main {
        margin-left: 0;
        max-width: 100%;
    }

    h1 {
        font-size: 2rem;
    }

    .ingress {
        font-size: 1rem;
    }

    .about-content {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }

    .profile-image-container {
        width: 150px;
        padding-bottom: 150px;
    }

    .newsletter-signup {
        position: relative;
        left: 0;
        width: 100%;
        margin-top: 2rem;
        min-width: auto;
        padding: 2rem;
    }

    .blog-content {
        margin-right: 0;
        flex-direction: column;
        gap: 2rem;
        padding: 1rem;
    }

    .project-images img {
        width: 100%;
        aspect-ratio: 1;
    }

    .project-desc {
        max-width: 100%;
        font-size: 0.85rem;
    }

    .project-details.active {
        width: calc(100vw - 2rem);
        margin-left: -1rem;
        padding: 1rem;
    }

    .other-grid {
        width: 100%;
        margin-left: 0;
        padding-right: 0;
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }

    .cursor-toggle {
        top: 1rem;
        right: 1rem;
        padding: 6px 12px;
        font-size: 0.85rem;
    }

    .category h2 {
        font-size: 1.2rem;
        max-width: calc(100vw - 4rem);
    }
} 

@keyframes expandContent {
    from {
        max-height: 300px;
    }
    to {
        max-height: 2000px;
    }
} 

.project-details:not(.active) .project-card.preview {
    opacity: 1;
    max-height: 300px;
}

.project-card.preview:hover {
    transform: translateX(10px);
} 

/* Hide expanded content initially */
.project-expanded {
    display: none;
}

/* Show expanded content when active */
.project-details.active .project-expanded {
    display: block;
}

/* Ensure preview is always visible */
.project-card.preview {
    display: flex !important;
} 

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.98);
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.modal img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 95%;
    max-height: 95vh;
    object-fit: contain;
    cursor: default;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 30px;
    cursor: pointer;
    z-index: 1001;
}

.modal-close:hover {
    background: rgba(255,255,255,0.2);
    transform: scale(1.1);
}

/* Customize scrollbar */
.project-images::-webkit-scrollbar {
    height: 8px;
}

.project-images::-webkit-scrollbar-track {
    background: var(--bg-color);
}

.project-images::-webkit-scrollbar-thumb {
    background: var(--text-color-muted);
    border-radius: 4px;
} 

/* Blog styles */
.blog-content {
    max-width: 1200px;
    position: relative;
    padding: 2rem;  /* Add padding all around */
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 4rem;  /* Increase gap between blog posts and newsletter */
}

.blog-posts {
    flex: 2;
}

.blog-post {
    margin-bottom: 2rem;
    padding: 1.5rem;  /* Add more padding around blog posts */
    border-bottom: 1px solid var(--text-color-muted);
    cursor: pointer;
    max-width: 100%;
}

.blog-post .full-content {
    display: none;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--text-color-muted);
}

.blog-post.active .full-content {
    display: block;
}

/* Newsletter signup styles */
.newsletter-signup {
    flex: 1.2;
    min-width: 400px;
    padding: 3rem;  /* Increase padding in newsletter box */
    border: 1px solid var(--text-color-muted);
    border-radius: 4px;
    margin-top: 0;
    background: rgba(255, 192, 203, 0.1);
    backdrop-filter: blur(5px);
}

.newsletter-signup:hover {
    background: rgba(255, 192, 203, 0.15);
    transition: all 0.3s ease;
}

.newsletter-signup h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.newsletter-signup p {
    margin-bottom: 1.5rem;
    color: var(--text-color-muted);
}

.signup-form input {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1rem;
    background: transparent;
    border: 1px solid var(--text-color-muted);
    color: var(--text-color);
    font-family: 'Space Mono', monospace;
}

.signup-form input:focus {
    outline: 2px solid #FF69B4;
    outline-offset: 2px;
    border-color: #FF69B4;
}

.signup-form button {
    width: 100%;
    padding: 1rem;
    background: transparent;
    border: 1px solid var(--text-color-muted);
    color: var(--text-color);
    font-family: 'Space Mono', monospace;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.signup-form button:hover {
    background: #FF69B4;
    border-color: #FF69B4;
    color: var(--bg-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 105, 180, 0.2);
}

.signup-form button:focus {
    outline: 2px solid #FF69B4;
    outline-offset: 2px;
}

/* YouTube channel styles */
.youtube-channel-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.youtube-channel {
    border: 1px solid var(--text-color-muted);
    padding: 2rem;
    margin-bottom: 2rem;
    transition: transform 0.3s ease;
    background: rgba(255, 192, 203, 0.02);
    cursor: pointer;
}

.youtube-channel-link:hover .youtube-channel {
    transform: translateX(10px);
    background: rgba(255, 192, 203, 0.04);
    border-color: #FF69B4;
}

.channel-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.channel-logo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.channel-logo:hover {
    transform: scale(1.1);
}

.channel-logo-placeholder {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 105, 180, 0.2);
    border: 2px solid rgba(255, 105, 180, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Space Mono', monospace;
    font-size: 0.9rem;
    color: #FF69B4;
    font-weight: bold;
    flex-shrink: 0;
}

.channel-info h4 {
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
    color: var(--text-color);
    letter-spacing: 0.5px;
    font-weight: 300;
}

.channel-link {
    color: var(--text-color-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.channel-link:hover {
    color: #FF69B4;
}

.channel-desc {
    color: var(--text-color-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-top: 0;
    padding-left: 1rem;
    border-left: 2px solid var(--text-color-muted);
} 

.webpage-item {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--text-color-muted);
}

.webpage-title {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.webpage-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.webpage-title-text h3 {
    margin: 0;
}

.webpage-title-text {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.webpage-link {
    color: rgba(224, 227, 230, 0.8);  /* Lighter version of var(--text-color) */
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.9rem;
}

.webpage-desc {
    color: var(--text-color-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-top: 0.5rem;
} 

.subscriber-count {
    font-size: 0.9rem;
    color: var(--text-color-muted);
    margin-bottom: 1rem;
}

.subscriber-count span {
    color: #FF69B4;
    font-weight: 400;
} 

.markdown-content {
    color: var(--text-color);
    font-family: 'Space Mono', monospace;
    line-height: 1.6;
}

.markdown-content h1 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.markdown-content h2 {
    font-size: 1.4rem;
    margin: 1.5rem 0 1rem;
    color: var(--text-color);
}

.markdown-content h3 {
    font-size: 1.2rem;
    margin: 1.2rem 0 0.8rem;
}

.markdown-content p {
    margin-bottom: 1rem;
    color: var(--text-color-muted);
}

.markdown-content ul, .markdown-content ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-color-muted);
}

.markdown-content li {
    margin-bottom: 0.5rem;
} 

.other-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
    padding: 1rem 0;
    margin-top: 1rem;
    width: calc(100vw - 4rem - 2rem);
    margin-left: 0;
    padding-right: 2rem;  /* Add padding on the right */
    will-change: transform;
    contain: content;
}

.other-grid img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s ease;
    background: var(--bg-color);
    will-change: transform;
    backface-visibility: hidden;  /* Reduce paint operations */
}

.other-grid img:hover {
    transform: scale(1.05);
} 

.cursor-toggle {
    position: fixed;
    top: 2.2rem;  /* Nudge down slightly for better alignment with h1 */
    right: 20px;
    padding: 8px 16px;
    background: transparent;
    border: 1px solid var(--text-color-muted);
    color: var(--text-color);
    cursor: pointer;
    font-family: 'Space Mono', monospace;
    z-index: 1000;
    transition: all 0.3s ease;
    height: 40px;  /* Match height with header text */
    display: flex;
    align-items: center;
}

.cursor-toggle:hover {
    background: var(--text-color-muted);
    color: var(--bg-color);
}


.cursor-toggle:focus {
    outline: 2px solid #FF69B4;
    outline-offset: 2px;
} 

.cursor-trail {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
}

.cursor-trail line {
    stroke-width: 24;
    stroke-linecap: round;
    opacity: 0.25;
    transition: stroke 0.1s ease;
} 

.video-container {
    position: relative;
    padding-bottom: calc(50% - 1rem); /* Make videos take up half width */
    height: 0;
    overflow: hidden;
    margin-bottom: 1rem;
    width: calc(50% - 1rem);
    display: inline-block;
}

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

/* Update responsive breakpoints */
@media (max-width: 1400px) {
    .project-images img {
        width: calc(33.33% - 1rem);
        aspect-ratio: 1;
    }
}

@media (max-width: 1200px) {
    .project-images img {
        width: calc(50% - 1rem);
        aspect-ratio: 1;
    }

    .video-container {
        width: 100%;
        padding-bottom: 56.25%;
    }

    .project-desc {
        max-width: 90vw;
    }

    .blog-content {
        gap: 3rem;
    }
}

/* Mobile styles consolidated above */ 

/* Large screen adjustments */
@media (min-width: 1600px) {
    .project-desc {
        max-width: 1400px;
    }
} 

@media (min-width: 1800px) {
    .project-desc {
        max-width: 1800px;
    }
    main {
        max-width: 1800px;
    }
} 