/* Project Divider Styles */
.project-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 40px 0 24px 0;
    font-family: 'Montserrat', 'Segoe UI', 'Arial', 'Helvetica Neue', Helvetica, sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: 0.08em;
    color: #000;
    text-transform: uppercase;
}

.project-divider::before,
.project-divider::after {
    content: '';
    flex: 1 1 0%;
    border-bottom: 4px solid #000;
    margin: 0 18px;
    min-width: 32px;
}

@media (max-width: 600px) {
    .project-divider {
        font-size: 1.1rem;
    }

    .project-divider::before,
    .project-divider::after {
        margin: 0 8px;
        min-width: 12px;
    }
}

/* Style for project website link */
.project-link a {
    color: #2c68c4;
    font-weight: bold;
    text-decoration: none;
    transition: text-decoration 0.2s;
    display: inline-block;
    margin-top: 8px;
}

.project-link a:hover {
    text-decoration: underline;
}

/* Extra bold for project details and website link titles */
.details-title {
    font-weight: 900;
    letter-spacing: 0.02em;
    font-size: 1.08em;
}

/* Project subtitle under project title */
.project-subtitle {
    color: #808080;
    font-weight: bold;
    margin-top: -6px;
    margin-bottom: -5px;
    font-size: 1.1rem;
}

/* Site Icon next to title */
.header-bar {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.site-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    font-size: 2.5rem;
    font-weight: bold;
    margin: 0;
}

.site-icon {
    width: 105px;
    height: 110px;
    object-fit: contain;
    margin-right: 0;
}

/* Compact Project Card Layout (matches user image) */
.compact-project-card {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    background: #fff;
    border: 2px solid #d3d3d3;
    border-radius: 12px;
    /* box-shadow removed */
    padding: 18px 18px 18px 18px;
    margin: 0 auto 24px auto;
    max-width: 540px;
    width: 100%;
    gap: 24px;
    font-family: 'Segoe UI', 'Arial', 'Helvetica Neue', Helvetica, sans-serif;
}

.compact-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 240px;
    max-width: 260px;
    flex-shrink: 0;
    gap: 8px;
}

.compact-left .project-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0 0 6px 0;
    color: #191919;
    letter-spacing: 0.01em;
    font-family: inherit;
    margin-top: 6px;
}

.project-four .project-title {
    white-space: nowrap;
    width: max-content;
    max-width: none;
}

.compact-left .project-image {
    width: 320px;
    height: 260px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.project-img-scaled {
    width: 75%;
    height: 90%;
    object-fit: cover;
    border-radius: 10px;
    margin-right: 76px;
}

.compact-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 18px;
    padding-top: 8px;
    min-width: 0;
    margin-top: 0;
}

.compact-right .project-details strong,
.compact-right .project-link strong {
    font-size: 1.1rem;
    font-weight: bold;
    color: #191919;
    font-family: inherit;
}

.compact-right .project-details ul {
    margin: 6px 0 0 0;
    padding-left: 0;
    list-style: none;
    color: #222;
    font-size: 0.98rem;
    letter-spacing: 0.01em;
    font-family: inherit;
}

.compact-right .project-link span {
    color: #222;
    font-size: 0.98rem;
    letter-spacing: 0.01em;
    font-family: inherit;
}

@media (max-width: 600px) {
    .compact-project-card {
        flex-direction: column;
        align-items: stretch;
        padding: 12px 4px;
        gap: 10px;
        max-width: 98vw;
    }

    .compact-left .project-image {
        width: 100%;
        min-width: 0;
        height: 120px;
    }

    .compact-left,
    .compact-right {
        max-width: 100%;
        min-width: 0;
        padding-left: 0;
    }
}

.project-card-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-width: 240px;
    max-width: 260px;
    flex-shrink: 0;
    gap: 12px;
}

.project-card-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 18px;
    padding-left: 18px;
}

@media (max-width: 700px) {
    .project-card {
        align-items: stretch;
        padding: 18px 8px;
        gap: 18px;
    }

    .project-card-left,
    .project-card-right {
        max-width: 100%;
        min-width: 0;
        padding-left: 0;
    }

    .project-card-left {
        align-items: stretch;
    }
}

/* Project Card Styles */
.project-card {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    background: #fff;
    border: 8px solid #191919;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    padding: 32px 28px;
    margin: 0 auto;
    max-width: 760px;
    width: 100%;
    gap: 32px;
}

.project-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.project-title {
    margin: 0 0 8px 0;
    font-size: 1.4rem;
    font-weight: 700;
    color: #222;
}

.project-details ul {
    margin: 6px 0 0 18px;
    padding: 0;
    color: #444;
    font-size: 1rem;
}

.project-link {
    margin-top: 10px;
    font-size: 1rem;
}

.project-link a {
    color: #2c68c4;
    text-decoration: underline;
    word-break: break-all;
}

@media (max-width: 700px) {
    .project-card {
        flex-direction: column;
        align-items: stretch;
        padding: 18px 8px;
        gap: 18px;
    }

    .project-image {
        width: 100%;
        height: 140px;
    }
}

.footer-nav {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-family: 'Segoe UI', 'Arial', 'Helvetica Neue', Helvetica, sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: #fff;
}

.footer-nav a {
    color: #fff;
    text-decoration: none;
    transition: color 0.2s;
    font-family: inherit;
    font-weight: inherit;
    justify-content: center;
    gap: 0;
}

.footer-left {
    flex: 1;
    text-align: left;
    display: flex;
    justify-content: flex-start;
}

.footer-sep {
    color: #fff;
    font-size: 1.1em;
    margin: 0 0.2em;
    user-select: none;
}

/* Site title header */
.site-title {
    color: #fff;
    font-size: 3.0rem;
    font-family: 'Segoe UI', 'Arial', 'Helvetica Neue', Helvetica, sans-serif;
    font-weight: 750;
    margin: -5px 115px 2.5rem 0;
    /* letter-spacing removed */
    text-align: center;
}

/* Footer styles */
.footer-social-links {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
}

html,
body {
    height: 100%;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Footer styles */
.site-footer {
    width: 100vw;
    margin-left: -50vw;
    left: 50%;
    position: relative;
    background: #191919;
    color: #fff;
    padding: 2.5rem 2rem 2.5rem 2rem;
    font-size: 1rem;
    display: flex;
    align-items: center;
    border-top: 1px solid #2c68c4;
    margin-top: auto;
    font-family: 'Segoe UI', 'Arial', 'Helvetica Neue', Helvetica, sans-serif;
    font-weight: 700;
    justify-content: space-between;
}

.footer-github-link {
    display: flex;
    align-items: center;
    margin-left: 1rem;
    text-decoration: none;
    line-height: 0;
    color: #ffffff !important;
}


.footer-github-link svg {
    width: 45px;
    height: 45px;
    fill: currentColor;
}

.footer-left {
    flex: 1;
    text-align: left;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    background-image: url('pattern.png');
    background-repeat: repeat;
    background-size: auto;
}

main {
    width: min(100%, 1100px);
    margin: 0 auto;
    padding: 0 1rem 2rem;
}

.header-bar {
    background: #191919;
    padding: 4rem 0;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    text-align: center;
}

.header-bar nav {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.github-link {
    position: absolute;
    top: 50%;
    left: 2.7rem;
    color: #fff;
    line-height: 0;
}

.github-link svg {
    width: 56px;
    height: 56px;
    fill: currentColor;
}

.footer-linkedin-link {
    display: flex;
    align-items: center;
    margin-left: 0.5rem;
    text-decoration: none;
    line-height: 0;
    color: #ffffff !important;
}

.footer-linkedin-link svg {
    width: 43px;
    height: 43px;
    fill: currentColor;
}

.footer-itchio-link {
    display: flex;
    align-items: center;
    margin-left: 0.5rem;
    text-decoration: none;
    line-height: 0;
    color: #ffffff !important;
}

.footer-itchio-link img {
    width: 58px;
    height: 58px;
    object-fit: contain;
}

.nav-btn {
    background: #000000;
    color: #ffffff;
    border: none;
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    font-weight: 700;
}

.nav-btn.active {
    background: #2c68c4;
    color: #ffffff;
}

.about-section,
.projects-section,
.links-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 3rem;
    min-height: 1px;
}

@media (max-width: 900px) {
    .header-bar {
        padding: 1.5rem 1rem;
    }

    .header-bar nav {
        gap: 0.75rem;
        flex-wrap: wrap;
    }

    .nav-btn {
        padding: 0.65rem 1.1rem;
        font-size: 1rem;
    }
}

@media (max-width: 600px) {

    .about-section,
    .projects-section,
    .links-section {
        margin-top: 1.25rem;
    }

    .header-bar nav {
        flex-direction: column;
        align-items: stretch;
        width: min(100%, 380px);
        margin: 0 auto;
    }

    .nav-btn {
        width: 100%;
    }
}