/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: whitesmoke;
    color: #334155;
    line-height: 1.6;
}

/* Gallery container */
.gallery-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header styles */
.gallery-header {
    text-align: center;
    margin-bottom: 40px;
}

.gallery-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.gallery-header p {
    font-size: 1.1rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
}

.gallery-header a {
    font-size: 1.1rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
    display: inline-block; /* Needed for transform */
    transition: all 0.3s ease; /* Smooth animation */
}

.gallery-header a:hover {
    color: #1e40af; /* Change color on hover */
    transform: scale(1.05); /* Slightly grow */
    text-decoration: underline; /* Optional underline effect */
}

/* Projects grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

/* Project card styles */
.project-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Card image */
.card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

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

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

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .image-overlay {
    opacity: 1;
}

.action-buttons {
    display: flex;
    gap: 15px;
}

.action-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: #fff;
    color: #3b82f6;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.action-btn:hover {
    background: #3b82f6;
    color: #fff;
    transform: translateY(-3px);
}

/* Card content */
.card-content {
    padding: 20px;
}

.project-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 12px;
}

.project-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.date {
    font-size: 0.9rem;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 5px;
}


/* No projects state */
.no-projects {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #94a3b8;
}

.no-projects i {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

.no-projects h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #64748b;
}

/* Responsive adjustments */
/* Tablet: 768px */
@media (max-width: 768px) {
    .gallery-header h1 { font-size: 1.8rem; }
    .gallery-header a, 
    .gallery-header p { font-size: 1rem; }

    .gallery-container {
        padding: 2rem 1rem;
    }

    .projects-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr); /* 3 cards per row */
        gap: 1rem; /* space between cards */
    }

    .card-image {
        height: 160px; /* slightly smaller images */
    }

    .card-content {
        padding: 1rem;
    }

    .project-title {
        font-size: 1.1rem;
    }

    .action-btn {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
}

/* Mobile: 576px */
@media (max-width: 576px) {
    .gallery-header h1 { font-size: 1.5rem; }
    .gallery-header a,
    .gallery-header p { font-size: 0.95rem; }

    .projects-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 cards per row */
        gap: 0.8rem; /* smaller gap */
    }

    .card-image {
        height: 140px; /* smaller images */
    }

    .card-content {
        padding: 0.8rem;
    }

    .project-title {
        font-size: 1rem;
    }

    .action-btn {
        width: 30px;
        height: 30px;
        font-size: 0.85rem;
    }
}

.hero-section.project {
    background-image: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('../img/hero-projects-bg.jpg');
}

