/* ===== HERO SECTION ===== */
.portfolio-hero {
    background: url('../img/portfolio-hero.jpg') center/cover no-repeat;
    height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: #fff;
    text-align: center;
}

.portfolio-hero::before {
    content: "";
    position: absolute;
    top:0; left:0; width:100%; height:100%;
    background: rgba(0,0,0,0.5);
}

.portfolio-hero .hero-content {
    position: relative;
    z-index: 1;
}

.portfolio-hero h1 { font-size: 3rem; margin-bottom: 10px; }
.portfolio-hero p { font-size: 1.2rem; }

/* ===== PORTFOLIO GRID ===== */
.portfolio-section {
    padding: 60px 20px;
    max-width: 1200px;
    margin: auto;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

/* Overlay */
.portfolio-overlay {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 20px;
    background: rgba(0,123,255,0.8);
    color: #fff;
    transform: translateY(100%);
    transition: transform 0.4s ease;
    text-align: center;
}

.portfolio-item:hover .portfolio-overlay {
    transform: translateY(0);
}

.portfolio-overlay h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.portfolio-overlay p {
    font-size: 0.95rem;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .portfolio-hero h1 { font-size: 2.5rem; }
    .portfolio-hero p { font-size: 1rem; }
}

@media (max-width: 500px) {
    .portfolio-grid { grid-template-columns: 1fr; }
}
