/* Project Carousel Block Styles - Based on project-area design */
.project-area {
    position: relative;
    overflow: hidden;
}

.project__wrapper {
    display: flex;
    position: relative;
    margin: 0 0 75px 0;
}

@media (max-width: 991px) {
    .project__wrapper {
        flex-direction: column;
        gap: 50px;
        margin: 0 0 50px 0;
    }
}

.section__title {
    text-align: left;
    width: 420px;
    flex: 0 0 auto;
    margin: 70px 0 0 0;
    position: relative;
}

.section__title .title {
    margin: 0 0 10px 0;
    font-size: 45px;
    font-weight: 800;
    letter-spacing: 1px;
    line-height: 1.2;
}

.section__title .sub-title {
    display: block;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 2px;
    font-weight: 600;
    line-height: 1;
    margin: 0;
    color:var(--main-color) !important;
}

@media (max-width: 991px) {
    .section__title {
        width: 100%;
        text-align: center;
        margin: 0;
    }
}

@media (max-width: 575px) {
    .section__title .title {
        font-size: 35px;
        line-height: 1.1;
    }
}

/* Swiper Container */
.swiper-container.project-active {
    margin: 0 -200px 0 30px;
    overflow: hidden;
    position: relative;
}

@media (max-width: 1199px) {
    .swiper-container.project-active {
        margin: 0 -230px 0 100px;
    }
}

@media (max-width: 1023px) {
    .swiper-container.project-active {
        margin: 0 -230px 0 80px;
    }
}

@media (max-width: 991px) {
    .swiper-container.project-active {
        margin: 0 -230px 0 110px;
    }
}

@media (max-width: 767px) {
    .swiper-container.project-active {
        margin: 0;
    }
}

/* Swiper Wrapper */
.swiper-wrapper {
    display: flex;
    transition: transform 0.3s ease;
    width: 100%;
}

/* Swiper Slide */
.swiper-slide {
    flex-shrink: 0;
    height: auto;
}

/* Project Item */
.project__item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.project__item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
    border-radius: 8px;
}

.project__item:hover img {
    transform: scale(1.05);
}

.project__item a {
    display: block;
    position: relative;
}

/* Navigation Button */
.slider-button-prev {
    position: absolute;
    top: 50%;
    left: 30.5%;
    transform: translateY(-50%) rotate(180deg);
    display: flex;
    align-items: center;
    line-height: 1;
    font-size: 38px;
    letter-spacing: -7px;
    cursor: pointer;
    z-index: 10;
}

.slider-button-prev i {
    transition: all 0.3s ease;
    color: #fff;
    animation: shapeBlinker 0.6s linear infinite;
}

.slider-button-prev i:last-child {
    color: var(--main-color);
    animation-delay: 0.2s;
}

.slider-button-prev:hover i {
    color: var(--main-color);
}

@media (max-width: 1199px) {
    .slider-button-prev {
        left: 34.5%;
    }
}

@media (max-width: 1023px) {
    .slider-button-prev {
        left: 43.5%;
    }
}

@media (max-width: 991px) {
    .slider-button-prev {
        left: 0;
        top: calc(50% + 60px);
    }
}

/* Scrollbar */
.swiper-scrollbar {
    display: block;
    width: 100%;
    height: 2px;
    position: relative;
    margin: 11px 0;
    border-radius: 0;
    background: transparent;
}

.swiper-scrollbar::before {
    content: '';
    position: absolute;
    width: 0%;
    height: 100%;
    pointer-events: none;
    opacity: 0.65;
    left: 0;
    top: 0;
    background: var(--main-color);
    transition: width 0.3s ease;
}

/* Lightbox Styles */
.project-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    opacity: 0;
    animation: fadeIn 0.3s ease forwards;
}

.lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: -40px;
    background: none;
    border: none;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close:hover {
    color: var(--main-color);
}

/* Animations */
@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

@keyframes shapeBlinker {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .project__wrapper {
        margin: 0 0 30px 0;
    }
    
    .section__title {
        margin-bottom: 30px;
    }
    
    .slider-button-prev {
        font-size: 28px;
        letter-spacing: -5px;
    }
}

@media (max-width: 575px) {
    .project__wrapper {
        gap: 30px;
    }
    
    .slider-button-prev {
        font-size: 24px;
        letter-spacing: -4px;
    }
}

/* Lightbox Styles */
.project-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-overlay {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.lightbox-content {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: -40px;
    background: none;
    border: none;
    color: white;
    font-size: 30px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close:hover {
    color: var(--main-color);
}

/* Swiper Wrapper and Slides */
.swiper-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 1;
    display: flex;
    transition-property: transform;
    box-sizing: content-box;
}

.swiper-slide {
    flex-shrink: 0;
    width: 100%;
    height: 100%;
    position: relative;
    transition-property: transform;
}

/* Responsive carousel settings */
@media (max-width: 1200px) {
    .swiper-slide {
        width: 33.333% !important;
    }
}

@media (max-width: 1024px) {
    .swiper-slide {
        width: 50% !important;
    }
}

@media (max-width: 768px) {
    .swiper-slide {
        width: 100% !important;
    }
}