/* =========================
   Portfolio Hero
============================ */
.portfolio-hero {
    text-align: center;
    padding: 60px 20px;
    margin-bottom: 40px;
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    border-radius: 12px;
}

.portfolio-hero h1 {
    font-size: 3rem;
    color: #1B5E20;
    margin-bottom: 15px;
    font-weight: 700;
}

.portfolio-hero p {
    font-size: 1.2rem;
    color: #555;
    max-width: 700px;
    margin: 0 auto;
}

/* =========================
   Portfolio Filter
============================ */
.portfolio-filter {
    text-align: center;
    margin-bottom: 40px;
}

#portfolioCategory {
    padding: 10px 15px;
    border-radius: 6px;
    border: 2px solid #1B5E20;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

#portfolioCategory:hover {
    border-color: #4CAF50;
}

/* =========================
   Portfolio Grid (Flex)
============================ */
.portfolio-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    padding: 0 20px 60px 20px;
}

/* Portfolio Card */
.portfolio-card {
    flex: 1 1 250px; /* flex-grow, flex-shrink, base width */
    max-width: 300px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    padding: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.4s ease, box-shadow 0.4s ease, opacity 0.4s ease;
}

.portfolio-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.portfolio-card img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 15px;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.portfolio-card img:hover {
    transform: scale(1.05);
}

.portfolio-card h3 {
    font-size: 1.3rem;
    color: #1B5E20;
    margin-bottom: 10px;
}

.portfolio-card p {
    font-size: 1rem;
    color: #555;
    margin-bottom: 15px;
    line-height: 1.5;
}

.read-more-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    background-color: #1B5E20;
    color: #fff;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s;
}

.read-more-btn:hover {
    background-color: #4CAF50;
    transform: translateY(-2px);
}

/* Hide animation */
.portfolio-card.hide {
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
}

/* =========================
   Responsive
============================ */
@media (max-width: 768px) {
    .portfolio-card {
        flex: 1 1 45%;
    }
}

@media (max-width: 480px) {
    .portfolio-card {
        flex: 1 1 90%;
    }

    .portfolio-hero h1 {
        font-size: 2rem;
    }

    .portfolio-hero p {
        font-size: 1rem;
    }
}
