.main-content {
    text-align: center;
}


.portfolio-section {
    margin-top: 3rem;
    padding: 2rem;
    background-color: #f8f8f8;
    border-radius: 15px;
    border: 1px solid #e0e0e0;
}

.portfolio-section h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #000000;
    font-weight: bold;
    text-align: center;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.portfolio-item {
    background-color: #ffffff;
    border-radius: 10px;
    padding: 1.5rem;
    border: 2px solid #000000;
    display: grid;
    grid-template-rows: auto 1fr auto;
    align-items: start;
    text-align: center;
    min-height: 320px;
}

.portfolio-item:hover {
    background-color: #f8f8f8;
}

.project-image {
    font-size: 5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    margin: 0 auto 0.5rem auto;
}



.project-info h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: #000000;
    font-weight: bold;
    margin-top: 0;
}

.project-info p {
    font-size: 1rem;
    line-height: 1.6;
    color: #555555;
    margin-bottom: 1.5rem;
}

.project-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    justify-content: flex-start;

}

.project-link {
    padding: 0.75rem 1.5rem;
    background: #000000;
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    border: 2px solid #000000;
    width: 100%;
    /* Fixed width for equal button sizes */
    text-align: center;
    /* Center text in fixed-width buttons */
    display: inline-block;
    /* Ensure consistent box model */
}

.project-link:hover {
    background: #333333;
}

.project-link.secondary {
    background: transparent;
    color: #000000;
    border: 2px solid #000000;
}

.project-link.secondary:hover {
    background: #000000;
    color: #ffffff;
}

/* HOMEPAGE: Main content headings and text */
h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #000000;
    font-weight: bold;
}

.subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: #333333;
    font-weight: 300;
    text-align: center;
}

.description {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    color: #555555;
}

/* HOMEPAGE: Features grid */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.feature {
    background-color: #f8f8f8;
    color: #000000;
    padding: 1rem;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
}

.feature:hover {
    background-color: #f0f0f0;
}

.feature h3 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    color: #000000;
}

h3 span {
    vertical-align: middle;
}

.feature p {
    font-size: 0.9rem;
    color: #666666;
}

/* HOMEPAGE: Copilot section */
.copilot-section {
    margin-top: 3rem;
    padding: 2rem;
    background-color: #f5f5f5;
    border-radius: 15px;
    border: 1px solid #e0e0e0;
}

.copilot-section h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #000000;
    font-weight: bold;
}

.copilot-description {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    color: #444444;
    text-align: center;
}

.copilot-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.copilot-feature {
    background-color: #ffffff;
    color: #000000;
    padding: 1.5rem;
    border-radius: 10px;
    border: 2px solid #000000;
    text-align: center;
}

.copilot-feature:hover {
    background-color: #f8f8f8;
}

.copilot-feature h4 {
    color: #000000;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    font-weight: bold;
}

.copilot-feature p {
    font-size: 0.9rem;
    color: #666666;
    line-height: 1.4;
}






@media (max-width: 768px) {
    .portfolio-section {
        margin-top: 2rem;
        padding: 1.5rem;
    }

    .portfolio-section h2 {
        font-size: 1.5rem;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .portfolio-item {
        grid-template-rows: auto 1fr auto;
        text-align: center;
        min-height: 0;
    }

    .project-image {
        margin: 0 auto 0.5rem auto;
    }

    .project-links {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        margin-top: 0.5rem;
    }

    .project-link {
        width: 100%;
        max-width: 200px;
        text-align: center;
    }

    .features {
        grid-template-columns: 1fr;
    }


    .copilot-features {
        grid-template-columns: 1fr;
    }

    .copilot-section {
        margin-top: 2rem;
        padding: 1.5rem;
    }

    .copilot-section h2 {
        font-size: 1.5rem;
    }
}