body {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    background-color: #FDCA40;
    color: #073B3A;
    font-family: 'Source Code Pro', monospace;
    margin: 0;
    text-align: center;
    padding: 1rem 0; /* Vertical padding only */
    overflow-x: hidden;
}

.projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 350px));
    justify-content: center;
    gap: 2rem;
    padding: 2rem 0; /* Vertical padding only */
    width: calc(100% - 2rem); /* Accounts for body padding */
    max-width: 1200px;
    box-sizing: border-box;
}

.projects-title {
    font-size: clamp(1.5rem, 5vw, 2rem); /* More responsive font size */
    font-weight: bold;
    color: #073B3A;
    margin-bottom: 2rem;
    text-align: center;
    width: 100%;
    padding: 0 1rem; /* Prevents text from touching edges */
}

.project-card {
    position: relative;
    width: 100%;
    max-width: 350px;
    height: 200px;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
    margin: 0 auto; /* Centers card if it's alone */
}

/* Rest of your existing card styles remain the same */
.image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: opacity 0.5s ease;
}

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

.project-description {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.5s ease;
    padding: 1rem;
    text-align: center;
    font-size: 1rem;
    border-radius: 10px;
    overflow: hidden;
    word-wrap: break-word;
    white-space: normal;
    box-sizing: border-box;
}

.project-card:hover .image-container {
    opacity: 0.4;
}

.project-card:hover .project-description {
    opacity: 1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .projects-container {
        grid-template-columns: minmax(300px, 350px); /* Single centered column */
        width: calc(100% - 1rem);
        padding: 1rem 0;
    }
    
    .project-card {
        height: 180px;
    }
}

/* Add this to your CSS */
.home-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 10px 20px;
    background-color: #073B3A;
    color: #FDCA40;
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    z-index: 1000; /* Ensures it stays above other content */
}

.home-button:hover {
    background-color: #0a5250;
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.home-button:active {
    transform: translateY(1px);
}

a {
    color: white;
}

/* Responsive adjustment for smaller screens */
@media (max-width: 768px) {
    .home-button {
        padding: 8px 16px;
        font-size: 0.9rem;
        bottom: 15px;
        right: 15px;
    }
}