/* In your home.css or a new projects.css file */

/* Projects Section General Styling */
.projects-section {
    padding: 80px 0; /* Adjust padding as needed */
    background-color: #f9f9f9; /* Light background for contrast */
    text-align: center;
}

.projects-section .section-header {
    margin-bottom: 50px;
}

.projects-section .section-title {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 10px;
}

.projects-section .section-subtitle {
    font-size: 1.1rem;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
}

/* Projects Container - Grid Layout */
.projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Responsive grid */
    gap: 30px; /* Space between project cards */
    padding: 0 20px; /* Padding for the container itself */
    max-width: 1200px; /* Max width of the grid */
    margin: 0 auto; /* Center the grid */
}

/* Project Card Styling */
.project-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden; /* Ensures image corners are rounded */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex; /* Use flex for internal layout */
    flex-direction: column; /* Stack image and info vertically */
    height: 100%; /* Ensures cards in a row are same height */
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.project-image {
    width: 100%;
    height: 200px; /* Fixed height for project images */
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Covers the area without distortion */
    display: block;
    transition: transform 0.3s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.05); /* Slight zoom on hover */
}

.project-info {
    padding: 20px;
    text-align: left;
    flex-grow: 1; /* Allows info section to take remaining space */
    display: flex;
    flex-direction: column;
}

.project-title {
    font-size: 1.6rem;
    color: #333;
    margin-bottom: 10px;
}

.project-description {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 15px;
    flex-grow: 1; /* Allows description to grow if needed */
}

.project-tags {
    margin-bottom: 15px;
}

.project-tags span {
    display: inline-block;
    background-color: #e0e0e0;
    color: #555;
    font-size: 0.8rem;
    padding: 5px 10px;
    border-radius: 5px;
    margin-right: 8px;
    margin-bottom: 8px;
    white-space: nowrap; /* Keep tags on one line */
}

.project-links {
    display: flex;
    gap: 10px; /* Space between buttons */
    margin-top: auto; /* Pushes buttons to the bottom of the card */
}

.project-links .professional-btn {
    flex: 1; /* Make buttons fill available space */
    padding: 10px 15px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-links .professional-btn i {
    margin-right: 8px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .projects-container {
        grid-template-columns: 1fr; /* Single column on smaller screens */
        padding: 0 15px;
    }
}