/* Projects Section Styling */
#projects {
    padding: 100px 5%;
    text-align: center;
    background-color: var(--background-color);
    color: white;
    position: relative;
    overflow: hidden;
}

#projects h2 {
    font-size: 2.8rem;
    margin-bottom: 50px;
    color: var(--primary-color);
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 3px;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

#projects h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
    transition: width 0.4s ease;
}

#projects:hover h2::after {
    width: 120px;
}

/* Project Grid Layout */
.project-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 50px;
}

/* Project Cards - Now clickable */
.project-card {
    display: block;
    text-decoration: none;
    background: var(--card-background);
    border-radius: var(--border-radius);
    overflow: hidden;
    width: 300px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: inherit;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    border-color: var(--primary-color);
}

/* Project Image Container */
.project-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--card-background);
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-image img.hidden {
    display: none;
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

/* Project Icon Container */
.project-icon {
    font-size: 4rem;
    color: var(--primary-color);
    transition: transform 0.3s ease, color 0.3s ease;
    display: none;
}

.project-icon.hidden {
    display: none;
}

.project-icon:not(.hidden) {
    display: block;
}

.project-card:hover .project-icon:not(.hidden) {
    transform: scale(1.1);
    color: var(--accent-color);
}

.project-card h4 {
    color: var(--primary-color);
    font-size: 1.4rem;
    margin: 20px 0 10px;
    padding: 0 15px;
}

.project-card p {
    color: var(--text-color);
    font-size: 0.95rem;
    padding: 0 15px;
    margin-bottom: 20px;
    line-height: 1.5;
}

/* Update CTA button to look like a button but not be clickable */
.project-card .cta-button {
    display: inline-block;
    margin: 0 15px 20px;
    font-size: 0.9rem;
    padding: 8px 20px;
    background: var(--primary-color);
    color: white;
    border-radius: var(--border-radius);
    transition: background 0.3s ease;
    pointer-events: none; /* Prevent the button from being clickable */
}

.project-card:hover .cta-button {
    background: var(--primary-hover-color);
}

/* Project category headings */
.project-category h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin: 30px 0 20px;
    text-align: center;
    width: 100%;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .project-grid {
        gap: 20px;
    }
    
    .project-card {
        width: 100%;
        max-width: 350px;
    }
}