/* Gallery Page Specific Styles */

.gallery-section {
    position: relative;
    display: block;
    padding: 80px 0 50px;
}

.project-filter {
    position: relative;
    display: block;
    margin-bottom: 60px;
    text-align: center;
}

.project-filter ul {
    position: relative;
    display: inline-block;
    padding: 0;
    margin: 0;
    list-style: none;
    border-radius: 10px;
    background: #f8f8f8;
    padding: 10px;
}

.project-filter ul li {
    position: relative;
    display: inline-block;
    margin: 0 5px;
}

.project-filter ul li.active a,
.project-filter ul li:hover a {
    background: #f83735;
    color: #ffffff;
    transform: translateY(-5px);
    box-shadow: 0px 10px 20px 0px rgba(248, 55, 53, 0.3);
}

.project-filter ul li a {
    position: relative;
    display: block;
    font-size: 16px;
    line-height: 28px;
    font-weight: 500;
    color: #615e5d;
    background: #ffffff;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 500ms ease;
    border: 1px solid transparent;
}

.gallery-item {
    position: relative;
    display: block;
    margin-bottom: 30px;
    overflow: hidden;
    border-radius: 10px;
}

.gallery-item .image-box {
    position: relative;
    display: block;
    overflow: hidden;
    background: #f8f8f8;
    border-radius: 10px;
}

.gallery-item .image-box img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: all 500ms ease;
}

.gallery-item:hover .image-box img {
    transform: scale(1.1);
}

.gallery-item .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, rgba(12, 13, 36, 0.8) 0%, rgba(248, 55, 53, 0.6) 100%);
    opacity: 0;
    transition: all 500ms ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.gallery-item:hover .overlay {
    opacity: 1;
}

.gallery-item .overlay .content {
    text-align: center;
    transform: translateY(20px);
    transition: all 500ms ease;
}

.gallery-item:hover .overlay .content {
    transform: translateY(0);
}

.gallery-item .overlay h3 {
    color: #ffffff;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
}

.gallery-item .overlay p {
    color: #ffffff;
    font-size: 16px;
    margin-bottom: 20px;
    opacity: 0.9;
}

.gallery-item .overlay .link-btn {
    display: inline-block;
    padding: 10px 20px;
    background: #f83735;
    color: #ffffff;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: all 300ms ease;
}

.gallery-item .overlay .link-btn:hover {
    background: #ffffff;
    color: #f83735;
}

.project-detail-section {
    position: relative;
    display: block;
    padding: 100px 0;
    background: #f8f8f8;
}

.project-carousel {
    position: relative;
    display: block;
    margin-bottom: 50px;
}

.project-carousel .item {
    position: relative;
    display: block;
}

.project-carousel .item img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 10px;
}

.project-info {
    position: relative;
    display: block;
    background: #ffffff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0px 0px 30px 0px rgba(0, 0, 0, 0.1);
}

.project-info h2 {
    color: #0c0d24;
    font-size: 30px;
    font-weight: 700;
    margin-bottom: 20px;
}

.project-info .info-list {
    position: relative;
    display: block;
    margin-bottom: 30px;
}

.project-info .info-list li {
    position: relative;
    display: block;
    margin-bottom: 15px;
    font-size: 16px;
    color: #615e5d;
}

.project-info .info-list li strong {
    color: #0c0d24;
    margin-right: 10px;
    min-width: 120px;
    display: inline-block;
}

/* Page title background */
.page-title-bg {
    background-image: url(../images/gallery/IMG_2742.jpeg);
    background-size: cover;
    background-position: center;
}

/* Animation classes for filtering */
.gallery-item.animate-out {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
}

.gallery-item.animate-in {
    opacity: 1;
    transform: scale(1);
    transition: all 0.3s ease;
}

/* Modal styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal.show {
    opacity: 1;
    visibility: visible;
}

.modal-dialog {
    position: relative;
    max-width: 900px;
    margin: 50px auto;
    padding: 20px;
}

.modal-content {
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
}

.modal-header {
    background: #f8f8f8;
    padding: 20px 30px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-title {
    font-size: 24px;
    font-weight: 700;
    color: #0c0d24;
    margin: 0;
}

.modal-header .close {
    background: none;
    border: none;
    font-size: 30px;
    color: #615e5d;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.modal-body {
    padding: 30px;
}

/* Carousel controls */
.carousel-control-prev,
.carousel-control-next {
    width: 50px;
    height: 50px;
    background: rgba(248, 55, 53, 0.8);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
}

.carousel-control-prev {
    left: 20px;
}

.carousel-control-next {
    right: 20px;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background: #f83735;
}

/* Additional button styles for gallery page */
.theme-btn-two {
    position: relative;
    display: inline-block;
    overflow: hidden;
    font-size: 16px;
    line-height: 30px;
    font-weight: 500;
    color: #ffffff;
    background: transparent;
    border: 2px solid #ffffff;
    padding: 15px 35px;
    text-align: center;
    text-decoration: none;
    z-index: 1;
    transition: all 500ms ease;
    border-radius: 5px;
    margin-left: 20px;
}

.theme-btn-two:hover {
    color: #0c0d24;
    background: #ffffff;
}

.theme-btn-two .btn-shape {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: #ffffff;
    z-index: -1;
    transition: all 500ms ease;
}

.theme-btn-two:hover .btn-shape {
    left: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .project-filter ul li {
        display: block;
        margin: 5px 0;
    }
    
    .gallery-item .image-box img {
        height: 250px;
    }
    
    .project-carousel .item img {
        height: 300px;
    }
    
    .modal-dialog {
        margin: 20px;
        padding: 10px;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .project-info {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .project-filter ul {
        padding: 5px;
    }
    
    .project-filter ul li a {
        padding: 8px 15px;
        font-size: 14px;
    }
    
    .gallery-item .overlay h3 {
        font-size: 20px;
    }
    
    .gallery-item .overlay p {
        font-size: 14px;
    }
}
