/* Projects Component Styles */

.projects-container {
    padding: 8rem 4rem;
    background-color: #ffffff;
    position: relative;
    z-index: 10;
    /* Ensure it scrolls over the sticky hero */
    min-height: 100vh;
}

.project-item {
    max-width: 1000px;
    margin: 0 auto 10rem auto;
    /* Spacing between projects */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    opacity: 0;
    /* Hidden initially for animation */
    transform: translateY(50px);
}

.project-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    color: #1a1a1a;
    font-weight: normal;
    line-height: 2.8rem;
}

.project-separator {
    width: 60px;
    height: 1px;
    background-color: var(--color-accent);
    margin: 2rem auto 1.6rem auto;
}

.project-description {
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto 4rem auto;
    font-weight: 300;
}

.project-image-link {
    display: block;
    width: 100%;
    text-decoration: none;
}

.project-image-container {
    width: 100%;
    max-width: 650px;
    /* Constrain width to remove excess whitespace */
    margin: 0 auto 3rem auto;
    /* Center it */
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    /* Increased opacity for visibility */
    transition: transform 0.3s ease;
    background-color: #ffffff;
    /* Ensure shadow is visible for transparent PNGs */
}

.project-image-container:hover {
    transform: translateY(-5px);
}

.project-image-placeholder {
    width: 100%;
    height: 350px;
    /* Reduced height from 500px */
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-family: var(--font-body);
    font-weight: 500;
    border: 2px dashed #e0e0e0;
}

/* Link Styles (Matching Navbar) */
.project-link {
    text-decoration: none;
    color: #777;
    font-size: 1.1rem;
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
    padding-bottom: 4px;
    font-family: var(--font-body);
}

.project-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #333;
    transition: width 0.3s ease;
    opacity: 0;
}

.project-link:hover {
    color: #333;
}

.project-link:hover::after {
    width: 100%;
    opacity: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .projects-container {
        padding: 4rem 2rem;
    }

    .project-title {
        font-size: 3rem;
        line-height: 3.5rem;
    }

    .project-image-placeholder {
        height: 250px;
    }

    .project-separator {
        margin: 1.4rem auto 1.6rem auto;
    }
}