/* -----------------------------------------
   MODERN PORTFOLIO REDESIGN
----------------------------------------- */

.modern-portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 20px 0 50px 0;
}

.portfolio-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    background: #000;
    cursor: pointer;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(181, 67, 33, 0.3); /* Brand glow */
}

.portfolio-image {
    width: 100%;
    height: 100%;
    min-height: 250px;
    object-fit: cover;
    transition: transform 0.5s ease, filter 0.5s ease, opacity 0.5s ease;
}

.portfolio-item:hover .portfolio-image {
    transform: scale(1.1);
    opacity: 0.6;
    filter: blur(2px);
}

.portfolio-overlay {
    position: absolute;
    bottom: -10px; /* Hidden slightly initially */
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 50%, transparent 100%);
    opacity: 0;
    transition: all 0.4s ease;
}

.portfolio-item:hover .portfolio-overlay {
    bottom: 0;
    opacity: 1;
}

.portfolio-title {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    transform: translateY(20px);
    transition: all 0.4s ease 0.1s;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.portfolio-desc {
    color: #ddd;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 20px;
    transform: translateY(20px);
    transition: all 0.4s ease 0.2s;
}

.portfolio-btn {
    display: inline-block;
    padding: 10px 25px;
    background-color: #B54321;
    color: #fff !important;
    text-transform: uppercase;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 30px;
    text-decoration: none;
    align-self: flex-start;
    transform: translateY(20px);
    transition: all 0.4s ease 0.3s;
    box-shadow: 0 4px 15px rgba(181, 67, 33, 0.4);
}

.portfolio-btn:hover {
    background-color: #d1502a;
    box-shadow: 0 6px 20px rgba(181, 67, 33, 0.6);
}

.portfolio-item:hover .portfolio-title,
.portfolio-item:hover .portfolio-desc,
.portfolio-item:hover .portfolio-btn {
    transform: translateY(0);
}

/* Centerlized View More button */
.centerlized {
    text-align: center;
    margin: auto ,
}

.centerlized a {
    display: inline-block;
    padding: 5px 60px;
    background-color: #fff;
    color: #333;
    border: 2px solid #ddd;
    text-transform: uppercase;
    font-weight: 700;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.centerlized a:hover {
    background-color: #B54321;
    border-color: #B54321;
    color: #fff;
}
