/* Gallery Modal CSS */

/* Breadcrumbs */
.breadcrumbs {
    background: #569451;
    padding: 60px 0;
    text-align: center;
}

.breadcrumbs h1 {
    color:white;
    font-size: 2.5rem;
    font-weight: bold;
    margin: 0;
    /* text-shadow: 2px 2px 4px rgba(0,0,0,0.3); */
}

/* Portfolio Section */
.portfolio {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.portfolio-container {
    margin: 0;
}

/* Filter Buttons */
.btn-filter {
    background: #6c757d;
    color: white;
    border: none;
    padding: 12px 24px;
    margin: 0 8px 20px 0;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.btn-filter:hover {
    background: #495057;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
    color: white;
}

.btn-filter.active {
    background: #54a214;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(84,162,20,0.3);
}

/* Portfolio Items */
.portfolio-item {
    padding: 15px;
    margin-bottom: 30px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.portfolio-wrap {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    background: white;
    height: 100%;
}

.portfolio-wrap:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.portfolio-wrap:hover img {
    transform: scale(1.1);
}

.portfolio-wrap:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-wrap img {
    width: 100%;
    height: 300px;
    object-fit: fill;
    transition: transform 0.3s ease;
    display: block;
}

/* Portfolio Overlay */
.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    opacity: 0;
    transition: all 0.3s ease;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.portfolio-info {
    color: white;
    text-align: center;
    padding: 30px 20px;
    width: 100%;
}

.portfolio-info h4 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
    margin-top: 0;
    color: #84ad62;
}

.portfolio-info p {
    font-size: 0.95rem;
    margin-bottom: 15px;
    opacity: 0.9;
    line-height: 1.4;
}

.portfolio-info .gallery-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.portfolio-info .gallery-links i {
    color: #54a214;
    font-size: 1.2rem;
}

.portfolio-info .gallery-links span {
    font-size: 0.9rem;
    font-weight: 500;
}

/* Modal Styles */
.modal-content {
    border-radius: 12px;
    border: none;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.modal-header {
    border-bottom: 2px solid #54a214;
    padding: 20px 25px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.modal-title {
    color: #54a214;
    font-weight: 600;
    font-size: 1.5rem;
}

.modal-body {
    padding: 25px;
}

.modal-image {
    max-height: 400px;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.modal-description {
    margin-top: 20px;
}

.modal-description p {
    font-size: 1rem;
    line-height: 1.6;
    color: #495057;
}

.btn-close {
    border: none;
    font-size: 1.5rem;
    opacity: 0.7;
    transition: opacity 0.3s ease;
        color: #569451 !important;

}

.btn-close:hover {
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .breadcrumbs {
        padding: 40px 0;
    }
    
    .breadcrumbs h1 {
        font-size: 2rem;
    }
    
    .portfolio {
        padding: 40px 0;
    }
    
    .portfolio-item {
        padding: 10px;
        margin-bottom: 20px;
    }
    
    .portfolio-wrap img {
        height: 250px;
    }
    
    .portfolio-info {
        padding: 20px 15px;
    }
    
    .portfolio-info h4 {
        font-size: 1.1rem;
    }
    
    .portfolio-info p {
        font-size: 0.9rem;
    }
    
    .btn-filter {
        padding: 10px 20px;
        margin: 0 5px 15px 0;
        font-size: 0.9rem;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .modal-image {
        max-height: 250px;
    }
}

@media (max-width: 576px) {
    .portfolio-wrap img {
        height: 200px;
    }
    
    .portfolio-info {
        padding: 15px 10px;
    }
    
    .portfolio-info h4 {
        font-size: 1rem;
        margin-bottom: 8px;
    }
    
    .portfolio-info p {
        font-size: 0.85rem;
        margin-bottom: 10px;
    }
    
    .portfolio-info .gallery-links {
        gap: 8px;
    }
    
    .portfolio-info .gallery-links i {
        font-size: 1rem;
    }
    
    .portfolio-info .gallery-links span {
        font-size: 0.8rem;
    }
    
    .btn-filter {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
    
    .modal-header {
        padding: 15px 20px;
    }
    
    .modal-title {
        font-size: 1.3rem;
    }
    
    .modal-body {
        padding: 15px;
    }
    
    .modal-image {
        max-height: 200px;
    }
    
    .modal-description p {
        font-size: 0.9rem;
    }
}

/* Animation for loading */
.portfolio-item {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.portfolio-item:nth-child(1) { animation-delay: 0.1s; }
.portfolio-item:nth-child(2) { animation-delay: 0.2s; }
.portfolio-item:nth-child(3) { animation-delay: 0.3s; }
.portfolio-item:nth-child(4) { animation-delay: 0.4s; }
.portfolio-item:nth-child(5) { animation-delay: 0.5s; }
.portfolio-item:nth-child(6) { animation-delay: 0.6s; }

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

/* Smooth transitions for filtering */
.portfolio-item {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Ensure equal height columns */
@media (min-width: 768px) {
    .portfolio-container {
        display: flex;
        flex-wrap: wrap;
        align-items: stretch;
    }
    
    .portfolio-item {
        display: flex;
    }
    
    .portfolio-wrap {
        width: 100%;
    }
}