:root {
    /* Colors */
    --color-primary: #111;
    --color-secondary: #4a5568;
    --color-light: #fafafa;
    --color-border: #eaeaea;
    --color-hover: #f0f0f0;
    --color-accent: #FF3366;
    --color-background: #ffffff;
    
    /* Spacing */
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 2rem;
    
    /* Font families */
    --font-primary: 'Gabarito', sans-serif;
    --font-secondary: 'Manrope', sans-serif;
}

@font-face {
    font-family: 'Interkosmos';
    src: url('assets/fonts/Interkosmos.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

body {
    font-family: var(--font-primary);
    margin: 0;
    padding: 0;
    background: #ffffff;
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 100px;
    min-height: 100vh;
    box-sizing: border-box;
    overflow-x: hidden;
    height: 100vh;
}

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 0rem;
    padding: 2rem 1.5rem;
    background-color: #fff;
    position: relative;
    width: 240px;
}

.nav-item {
    display: block;
    padding: 0.75rem 1rem;
    color: #888;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease-in-out;
    font-size: 0.95rem;
    transform: translateY(0);
    position: relative;
    font-weight: 400;
    border: none;
}

.sidebar.has-fixed-name .nav-item {
    transform: translateY(2.5rem);
}

.nav-item:hover {
    color: #000;
    background-color: var(--color-hover);
}

.nav-item.active {
    color: #000;
    font-weight: 600;
}

.nav-item.active::before {
    content: "•";
    position: absolute;
    left: 0.25rem;
    color: #5db6e9;
    font-weight: 700;
}

.profile-container {
    margin-bottom: 3rem;
    padding: 2rem 0;
}

.profile-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 0 4px;
}

.profile-name {
    font-family: 'Space Mono', monospace;
    text-align: left;
    font-size: 5vw;
    line-height: 0.9;
    margin: 0;
    width: auto;
    min-width: 0;
    flex: 1 1 0;
    white-space: nowrap;
    letter-spacing: -0.02em;
}

.profile-name .asterisk {
    color: #5db6e9;
    font-size: 1.2em;
    vertical-align: middle;
}

.profile-name .letter {
    display: inline-block;
    transition: font-family 0.2s ease;
    width: 0.9em;
    min-width: 0.9em;
    max-width: 0.9em;
    text-align: center;
    vertical-align: middle;
    line-height: 1;
    height: 1em;
    overflow: hidden;
    margin: 0 0.05em;
}

.profile-name .letter:hover {
    font-family: 'Interkosmos', monospace;
    position: relative;
    top: 0.08em;
}

.profile-title {
    text-align: right;
    font-size: 2.8vw;
    margin: 0;
    flex: 1 1 0;
    min-width: 0;
    white-space: nowrap;
    font-weight: 500;
    opacity: 0.9;
}

.profile-title .creative {
    color: #5db6e9;
    font-weight: 600;
}

.main-content {
    padding: 40px 40px;
    overflow-y: auto;
    /* height: calc(100vh - 200px); */
    position: relative;
    z-index: 1;
}

h2 {
    font-family: 'Manrope', sans-serif;
    font-size: 22px;
    color: rgb(8, 9, 10);
    margin-top: 0;
    margin-bottom: 12px;
    padding: 0 4px;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 8px;
}

h2 span {
    display: inline-block;
    font-weight: 500;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 24px;
    padding: 0 4px;
    margin-top: 24px;
}

.project-card {
    display: flex;
    flex-direction: column;
    border-radius: 12px;
    overflow: visible;
    text-decoration: none;
    gap: 12px;
    padding: 12px;
    min-height: 320px;
    background: #fff;
    position: relative;
}

.project-card:hover {
    transform: none;
    box-shadow: none;
}

.project-image-wrapper {
    position: relative;
    width: 100%;
    height: 240px;
    border-radius: 12px;
    overflow: hidden;
    /* Remove border */
    /* border: 4px solid transparent; */
    box-shadow: 0 0 0 4px #fff, 0 2px 8px rgba(0,0,0,0.04);
    /* Removed transition for instant hover effect */
    padding: 0;
    box-sizing: border-box;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-card:hover .project-image-wrapper {
    box-shadow: 0 0 0 4px #000, 0 2px 8px rgba(0,0,0,0.08);
}

.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
    display: block;
}

.project-card .project-title {
    font-size: 1.6rem;
    font-weight: 600;
    color: #000;
    padding: 0;
    margin-top: 4px;
    transition: color 0.2s ease;
}

.project-card .project-category {
    font-size: 0.85rem;
    color: #222;
    font-weight: 500;
    padding: 2px 10px;
    margin-left: 0;
    margin-top: 6px;
    background: #f0f0f0;
    border: none;
    border-radius: 12px;
    display: inline-block;
    text-transform: none;
    letter-spacing: normal;
}

.project-card .project-description {
    font-size: 1rem;
    color: #4a5568;
    line-height: 1.5;
    padding: 0;
    margin: 0;
    transition: color 0.2s ease;
}

.project-card:hover .project-title {
    color: #5db6e9;
}

.project-category {
    position: static;
    background: #f0f0f0;
    color: #222;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 2px 10px;
    border-radius: 12px;
    box-shadow: none;
    border: none;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    pointer-events: auto;
    margin-left: 10px;
}

@media (max-width: 900px) {
    .profile-name {
        font-size: 8vw;
    }
    
    .profile-title {
        font-size: 4vw;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 900px) {
    body {
        grid-template-columns: 1fr;
        gap: 0;
        padding: 0;
    }
    
    .mobile-menu-header {
        display: flex !important;
        padding-left: 1rem;
        padding-right: 2rem;
        box-sizing: border-box;
    }

    .hamburger-menu {
        display: block;
        margin-right: 0;
    }

    .hamburger-menu.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger-menu.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger-menu.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        max-width: none;
        background: rgba(255,255,255,0.97);
        backdrop-filter: blur(8px);
        z-index: 2000;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transform: scale(1.05) translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s, transform 0.3s;
        box-shadow: none;
    }

    .sidebar.active {
        opacity: 1;
        transform: scale(1) translateY(0);
        pointer-events: auto;
    }

    .nav-items {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
        gap: 2.5rem;
        margin: 0;
        padding: 0;
    }

    .profile-name-fixed {
        font-size: 1.2rem;
        margin: 0;
    }

    .nav-item {
        font-size: 2rem;
        font-weight: 700;
        color: #222;
        background: none;
        border: none;
        width: 100%;
        text-align: center;
        padding: 1.2rem 0;
        border-radius: 0;
        transition: color 0.2s, background 0.2s;
    }

    .nav-item.active,
    .nav-item:focus,
    .nav-item:hover {
        color: #5db6e9;
        background: rgba(0,0,0,0.04);
    }

    .mobile-menu-header {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        z-index: 2100;
        background: transparent;
        box-shadow: none;
        display: flex !important;
        justify-content: space-between;
        align-items: center;
        padding: 1rem;
    }

    .main-content {
        margin-top: 70px;
    }

    .project-header {
        margin-bottom: 2rem;
    }

    .project-header .project-title {
        font-size: 2rem;
    }

    .project-header .project-subtitle {
        font-size: 1rem;
    }

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

    .project-media .project-image {
        width: 100%;
        height: auto;
        max-height: 300px;
        object-fit: cover;
    }

    .hamburger-menu {
        margin-right: 0;
    }

    .mobile-menu-header .profile-name-fixed span {
        font-family: 'Space Mono', monospace;
        letter-spacing: 0.18em;
        font-size: 1.5rem;
        font-weight: 700;
        text-transform: uppercase;
        white-space: nowrap;
        display: inline-block;
    }
    .mobile-menu-header .profile-name-fixed .asterisk {
        margin: 0 0.18em 0 0.18em;
        font-size: 1.1em;
        vertical-align: middle;
    }
}

@media (min-width: 901px) {
    .mobile-menu-header {
        display: none !important;
    }
}

@media (max-width: 600px) {
    .mobile-menu-header {
        padding: 0.75rem;
    }

    .profile-name-fixed {
        font-size: 1rem;
    }

    .nav-item {
        padding: 0.6rem 0.75rem;
        font-size: 0.95rem;
    }

    .main-content {
        margin-top: 60px;
        padding: 15px;
    }

    .project-header .project-title {
        font-size: 1.75rem;
    }

    .project-header .project-subtitle {
        font-size: 0.9rem;
    }

    .project-section .project-description {
        font-size: 0.95rem;
        line-height: 1.5;
    }
}

/* Add styles for very small screens */
@media (max-width: 400px) {
    .sidebar {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }

    .profile-name-fixed {
        width: 100%;
        text-align: center;
        margin-bottom: 0.5rem;
    }

    .nav-item {
        padding: 0.3rem 0.5rem;
        font-size: 0.8rem;
    }
}

/* Webkit browsers (Chrome, Safari, newer Edge) */
.sidebar::-webkit-scrollbar,
.main-content::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track,
.main-content::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar::-webkit-scrollbar-thumb,
.main-content::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

/* Firefox */
.sidebar,
.main-content {
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
}

#flipbook-container {
    width: calc(100% - 240px);
}

.tagline {
    color: #4a5568;
    margin: 8px 0;
}

.bio {
    line-height: 1.6;
    color: #4a5568;
}

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

.tools-list li {
    padding: 8px 0;
    color: #4a5568;
}

.nav-links {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.coming-soon-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
}

.profile-name-fixed {
    font-family: 'Space Mono', monospace;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    line-height: 1.2;
    width: 100%;
    position: static;
    text-align: left;
    padding: 0;
    letter-spacing: 0.18em;
}

.profile-name-fixed span {
    display: inline-block;
    white-space: nowrap;
}

.profile-name-fixed .asterisk {
    color: #5db6e9;
    font-size: 1.1em;
    margin-left: 0.2em;
    vertical-align: middle;
}

.profile-name-fixed.visible {
    opacity: 1;
}

/* Project Page Styles */
.project-header {
    margin-bottom: 3rem;
}

.project-header .project-title {
    font-family: 'Space Mono', monospace;
    font-size: 3rem;
    margin: 0 0 1rem 0;
    color: var(--color-primary);
}

.project-header .project-subtitle {
    font-size: 1.25rem;
    color: var(--color-secondary);
    margin: 0;
}

.project-content {
    max-width: 1200px;
    margin: 0 auto;
}

.project-section {
    margin-bottom: 4rem;
}

.project-section .project-description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--color-secondary);
    margin-bottom: 2rem;
}

.project-media {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
}

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

.project-media .project-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    outline: 1px solid var(--color-border);
    transition: outline 0.2s ease;
}

.project-media .project-image:hover {
    outline: 2px solid var(--color-primary);
}

@media (max-width: 768px) {
    .project-header .project-title {
        font-size: 2rem;
    }
    
    .project-header .project-subtitle {
        font-size: 1.1rem;
    }
    
    .project-section .project-description {
        font-size: 1rem;
    }
}

.asterisk-tooltip {
    position: relative;
    display: inline-block;
    margin-left: 0.08em;
}

.asterisk-tooltip .tooltip {
    visibility: hidden;
    opacity: 0;
    width: max-content;
    background: #222;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 6px 12px;
    position: absolute;
    z-index: 10;
    left: 120%;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.9rem;
    white-space: nowrap;
    pointer-events: none;
    transition: opacity 0.2s;
}

.asterisk-tooltip:hover .tooltip {
    visibility: visible;
    opacity: 1;
}

.asterisk {
    display: inline-block;
    transition: transform 0.4s cubic-bezier(0.4, 0.2, 0.2, 1);
    margin: 0;
    vertical-align: middle;
}

.asterisk-tooltip:hover .asterisk {
    animation: spin 0.7s linear;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Mobile menu styles */
.mobile-menu-header {
    display: none;
}

.hamburger-menu {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.hamburger-menu span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--color-primary);
    margin: 5px 0;
    transition: all 0.3s ease-in-out;
}

@media (max-width: 900px) {
    body {
        grid-template-columns: 1fr;
        gap: 0;
        padding: 0;
    }
    
    .mobile-menu-header {
        display: flex !important;
        padding-left: 1rem;
        padding-right: 2rem;
        box-sizing: border-box;
    }

    .hamburger-menu {
        display: block;
        margin-right: 0;
    }

    .hamburger-menu.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger-menu.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger-menu.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        max-width: none;
        background: rgba(255,255,255,0.97);
        backdrop-filter: blur(8px);
        z-index: 2000;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transform: scale(1.05) translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s, transform 0.3s;
        box-shadow: none;
    }

    .sidebar.active {
        opacity: 1;
        transform: scale(1) translateY(0);
        pointer-events: auto;
    }

    .nav-items {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
        gap: 2.5rem;
        margin: 0;
        padding: 0;
    }

    .profile-name-fixed {
        font-size: 1.2rem;
        margin: 0;
    }

    .nav-item {
        font-size: 2rem;
        font-weight: 700;
        color: #222;
        background: none;
        border: none;
        width: 100%;
        text-align: center;
        padding: 1.2rem 0;
        border-radius: 0;
        transition: color 0.2s, background 0.2s;
    }

    .nav-item.active,
    .nav-item:focus,
    .nav-item:hover {
        color: #5db6e9;
        background: rgba(0,0,0,0.04);
    }

    .mobile-menu-header {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        z-index: 2100;
        background: transparent;
        box-shadow: none;
        display: flex !important;
        justify-content: space-between;
        align-items: center;
        padding: 1rem;
    }

    .main-content {
        margin-top: 70px;
    }

    .hamburger-menu {
        margin-right: 0;
    }

    .mobile-menu-header .profile-name-fixed span {
        font-family: 'Space Mono', monospace;
        letter-spacing: 0.18em;
        font-size: 1.5rem;
        font-weight: 700;
        text-transform: uppercase;
        white-space: nowrap;
        display: inline-block;
    }
    .mobile-menu-header .profile-name-fixed .asterisk {
        margin: 0 0.18em 0 0.18em;
        font-size: 1.1em;
        vertical-align: middle;
    }
}

@media (max-width: 600px) {
    .mobile-menu-header {
        padding: 0.75rem;
    }

    .profile-name-fixed {
        font-size: 1rem;
    }

    .nav-item {
        padding: 0.6rem 0.75rem;
        font-size: 0.95rem;
    }
}

/* Show .desktop-only only on desktop, hide on mobile */
.desktop-only { display: block; }
@media (max-width: 900px) {
  .desktop-only { display: none !important; }
}

.profile-name.desktop-only { display: block; }
@media (max-width: 900px) {
  .profile-name.desktop-only { display: none !important; }
}

.sidebar .profile-link,
.mobile-menu-header .profile-link {
  color: #111;
  text-decoration: none;
}
.sidebar .profile-link:visited,
.sidebar .profile-link:hover,
.sidebar .profile-link:active,
.mobile-menu-header .profile-link:visited,
.mobile-menu-header .profile-link:hover,
.mobile-menu-header .profile-link:active {
  color: #111;
  text-decoration: none;
}

.intro-section {
    padding: 0 4px;
}

.intro-text {
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--color-secondary);
    margin-bottom: 1.5rem;
}

.intro-text:last-child {
    margin-bottom: 0;
}

.project-title-row {
    font-size: 1.15rem;
    font-weight: 600;
    color: #000;
    margin-bottom: 0.3em;
}

.project-category-row {
    margin-bottom: 0.7em;
}

.profile-image-container {
    width: 240px;
    height: 240px;
    margin: 0 auto 2rem;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.about-grid {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 3rem;
    align-items: start;
    margin-bottom: 3rem;
}

.about-image {
    position: sticky;
    top: 2rem;
}

.about-text {
    padding-right: 2rem;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.skill-card {
    background: var(--color-light);
    padding: 1.5rem;
    border-radius: 12px;
    transition: transform 0.2s ease;
}

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

.skill-card h3 {
    margin: 0 0 0.75rem 0;
    color: var(--color-primary);
    font-size: 1.2rem;
}

.skill-card p {
    margin: 0;
    color: var(--color-secondary);
    line-height: 1.5;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.tool-category {
    background: var(--color-light);
    padding: 1.5rem;
    border-radius: 12px;
}

.tool-category h3 {
    margin: 0 0 1rem 0;
    color: var(--color-primary);
    font-size: 1.2rem;
}

.tools-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.75rem;
}

.tools-list li {
    color: var(--color-secondary);
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--color-border);
}

.tools-list li:last-child {
    border-bottom: none;
}

@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-image {
        position: static;
        margin: 0 auto;
    }

    .about-text {
        padding-right: 0;
    }

    .skills-grid,
    .tools-grid {
        grid-template-columns: 1fr;
    }
}

.email-section {
    margin-bottom: 2rem;
    padding: 0 4px;
}

.email-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: white;
    border-radius: 8px;
    text-decoration: none;
    color: var(--color-primary);
    font-size: 1.1rem;
    font-weight: 500;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border: 2px solid transparent;
}

.email-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-color: var(--color-primary);
}

.email-link i {
    font-size: 1.2rem;
    color: var(--color-primary);
}

@media (max-width: 600px) {
    .email-link {
        font-size: 1rem;
        padding: 0.75rem 1.25rem;
    }
}

/* Project Hero Styles */
.project-hero {
    margin-bottom: var(--spacing-lg);
    border-radius: 12px;
    overflow: hidden;
}

.project-hero-image {
    width: 100%;
    display: block;
    border-radius: 12px;
}

@media (max-width: 768px) {
    .project-hero {
        margin-left: -20px;
        margin-right: -20px;
        border-radius: 0;
    }
}

/* Project Portfolio Styles */
.project-overview {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.project-details {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding-left: 2rem;
    border-left: 1px solid var(--color-border);
}

.project-details h3 {
    font-family: 'Space Mono', monospace;
    font-size: 1rem;
    color: #5db6e9;
    margin: 0 0 0.5rem 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.project-details p {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.5;
    color: #4a5568;
}

@media (max-width: 768px) {
    .project-overview {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .project-details {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1.5rem;
        padding-left: 0;
        border-left: none;
        border-top: 1px solid var(--color-border);
        padding-top: 2rem;
    }
}

.blog-posts {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    padding: 0 4px;
    margin-top: 2rem;
}

.blog-post {
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 2.5rem;
}

.blog-post:last-child {
    border-bottom: none;
}

.post-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    color: var(--color-secondary);
}

.post-date {
    font-family: 'Space Mono', monospace;
}

.post-category {
    color: var(--color-accent);
    font-weight: 500;
}

.post-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
    line-height: 1.3;
    color: var(--color-primary);
}

.post-excerpt {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--color-secondary);
    margin: 0 0 1.25rem 0;
}

.read-more {
    display: inline-block;
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.2s ease;
}

.read-more:hover {
    color: var(--color-primary);
}

@media (max-width: 768px) {
    .blog-posts {
        gap: 2rem;
    }

    .post-title {
        font-size: 1.5rem;
    }

    .post-excerpt {
        font-size: 1rem;
    }
}

/* Hero Collage Grid System */
.hero-collage {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 16px;
    margin-bottom: 2rem;
}

.collage-main {
    grid-row: 1 / 3;
}

.collage-secondary {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.collage-secondary .project-hero-image {
    height: calc(50% - 8px);
    object-fit: cover;
}

/* Media Section Grids */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px;
    margin-bottom: 2rem;
}

.design-system-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    margin-bottom: 2rem;
}

.components-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 2rem;
}

/* Responsive adjustments for collage */
@media (max-width: 768px) {
    .hero-collage {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .collage-main {
        grid-row: auto;
    }
    
    .collage-secondary {
        flex-direction: row;
    }
    
    .collage-secondary .project-hero-image {
        height: 200px;
        width: calc(50% - 6px);
    }
}

@media (max-width: 480px) {
    .collage-secondary {
        flex-direction: column;
    }
    
    .collage-secondary .project-hero-image {
        width: 100%;
        height: 150px;
    }
    
    .feature-grid,
    .design-system-grid,
    .components-grid {
        grid-template-columns: 1fr;
    }
}

/* SAX page specific styling for smaller images */
.sax-page .feature-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.sax-page .design-system-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

@media (max-width: 480px) {
    .collage-secondary {
        flex-direction: column;
    }
    
    .collage-secondary .project-hero-image {
        width: 100%;
        height: 150px;
    }
    
    .feature-grid,
    .design-system-grid,
    .components-grid {
        grid-template-columns: 1fr;
    }
    
    /* SAX page mobile adjustments */
    .sax-page .feature-grid,
    .sax-page .design-system-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}