/* Enhanced Portfolio Cards Styling */

/* Portfolio container improvements */
.portfolio-img-con {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin: 0;
}

/* Card styling improvements */
.portfolio-img-con .filterDiv {
    width: 100%;
    padding: 0;
    margin-bottom: 30px;
    transition: all 0.4s ease;
    border: 1px solid transparent;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    background-color: #1e2a4a;
    position: relative;
    transform: translateY(0);
    display: flex;
    flex-direction: column;
    height: 220px;
    cursor: pointer;
    opacity: 0;
    animation: fadeIn 0.5s forwards;
}

/* Different card colors based on category */
.portfolio-img-con .filterDiv.cars {
    background-color: rgb(33,30,57);
    
}

.portfolio-img-con .filterDiv.animals {
    background-color: rgb(33,30,57);
    
}

.portfolio-img-con .filterDiv.fruits {
    background-color: rgb(33,30,57);
    
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.portfolio-img-con .filterDiv.show {
    display: flex;
}

.portfolio-img-con .filterDiv:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
}


/* Make the entire card clickable */
.portfolio-img-con .filterDiv .portfolio-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

/* Content styling - expanded to fill card */
.portfolio-img-content {
    position: relative;
    width: 100%;
    height: 100%;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.4s ease;
    z-index: 1;
}

/* Title styling with improved alignment */
.portfolio-img-title {
    flex: 1;
    text-align: left;
    max-width: 85%;
}

.portfolio-img-title h4 {
    font-weight: 700;
    color: var(--white-color);
    margin-bottom: 15px;
    font-size: 22px;
    line-height: 1.3;
    transition: color 0.3s ease;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.portfolio-img-con .filterDiv:hover .portfolio-img-title h4 {
    color: var(--accent);
}


.portfolio-img-title p {
    color: #d4d4d4;
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 0;
    margin-bottom: 0;
    line-height: 1.5;
    font-family: 'Lato', sans-serif;
    transition: color 0.3s ease;
}

/* Arrow button styling with improved hover effect */
.portfolio-img-content a {
    text-decoration: none;
    display: inline-block;
    align-self: flex-end;
    margin-top: auto;
    position: relative;
    z-index: 3;
}

.portfolio-img-content a i {
    background: var(--accent);
    color: var(--white-color);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-weight: 300;
    font-size: 20px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.portfolio-img-con .filterDiv:hover .portfolio-img-content a i {
    transform: translateX(5px) scale(1.1);
    background-color: #fdb43e;
    box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}

/* Add decorative elements to replace images */
.portfolio-img-con .filterDiv::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 80px;
    height: 80px;
    background: rgba(252, 166, 31, 0.1);
    border-radius: 0 0 0 100%;
    z-index: 1;
    transition: all 0.4s ease;
}

.portfolio-img-con .filterDiv.cars::before {
    background: rgba(97, 252, 180, 0.1);
}

.portfolio-img-con .filterDiv.animals::before {
    background: rgba(97, 252, 180, 0.1);
}

.portfolio-img-con .filterDiv.fruits::before {
    background: rgba(97, 180, 252, 0.1);
}

.portfolio-img-con .filterDiv:hover::before {
    width: 120px;
    height: 120px;
    opacity: 0.8;
}

/* Add a second decorative element */
.portfolio-img-con .filterDiv::after {
    content: '';
    position: absolute;
    bottom: 20px;
    left: 20px;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    z-index: 1;
    transition: all 0.4s ease;
}

.portfolio-img-con .filterDiv:hover::after {
    transform: scale(1.5);
    background: rgba(255, 255, 255, 0.2);
}

/* Filter buttons styling with improved visual feedback */
#myBtnContainer {
    margin-bottom: 50px;
}

#myBtnContainer button {
    border: none;
    color: var(--white-color);
    background: transparent;
    font-size: 20px;
    font-weight: 600;
    cursor: pointer;
    display: inline-block;
    margin: 0 25px;
    padding: 8px 0;
    position: relative;
    transition: all 0.4s ease;
    outline: none;
}

#myBtnContainer button:after {
    content: '';
    position: absolute;
    width: 0;
    height: 4px;
    bottom: 0;
    left: 0;
    background-color: var(--accent);
    transition: width 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-radius: 2px;
}

#myBtnContainer button:hover {
    color: var(--accent);
    transform: translateY(-2px);
}

#myBtnContainer button:hover:after {
    width: 100%;
}

#myBtnContainer button.active_button {
    border-bottom: none;
    color: var(--accent);
    transform: translateY(-2px);
}

#myBtnContainer button.active_button:after {
    width: 100%;
    height: 4px;
    background-color: var(--accent);
    box-shadow: 0 2px 4px rgba(252, 166, 31, 0.3);
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .portfolio-img-con {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .portfolio-img-con {
        grid-template-columns: 1fr;
        gap: 5px;
    }
    
    #myBtnContainer button {
        margin: 0 15px;
        font-size: 18px;
    }
    
    .portfolio-img-con .filterDiv {
        height: auto;
        min-height: 200px;
        
    }
}