/**
 * Featured Projects Carousel Styles
 */

.featured-projects-carousel {
    position: relative;
    width: 1280px;
    height: 526px;
    overflow: hidden;
    --slide-transition: 0.8s cubic-bezier(0.65, 0, 0.35, 1);
}

.fp-carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.fp-carousel-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.fp-carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--slide-transition), visibility var(--slide-transition);
    z-index: 1;
}

.fp-carousel-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.fp-slide-link {
    display: block;
    width: 100%;
    height: 100%;
    color: #fff;
    text-decoration: none;
}

.fp-slide-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 10s ease-out;
    transform: scale(1);
}

.fp-carousel-slide.active .fp-slide-image {
    transform: scale(1.05);
}

.fp-slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.6) 30%, rgba(0, 0, 0, 0.3) 60%, rgba(0, 0, 0, 0) 100%);
    z-index: 1;
}

.fp-slide-content {
    position: absolute;
    bottom: 24px;
    left: 24px;
    z-index: 2;
    max-width: 75%;
    padding: 20px;
    color: #fff;
    text-align: left;
}

.fp-slide-title {
    font-size: 64px;
    text-wrap: balance;
    font-weight: 300;
    text-align: left;
    line-height: 1.4;
    margin: 0 0 12px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease 0.3s, transform 0.8s ease 0.3s;
}

:is(.fp-slide-brand, .fp-slide-product)::before {
    content: "—";
    margin-right: 16px;
    font-size: 24px;
    font-weight: 300;
}

.fp-slide-brand,
.fp-slide-product {
    font-size: 24px;
    font-weight: 300;

    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease 0.5s, transform 0.8s ease 0.5s;
}

.fp-carousel-slide.active .fp-slide-title,
.fp-carousel-slide.active .fp-slide-brand,
.fp-carousel-slide.active .fp-slide-product {
    opacity: 1;
    transform: translateY(0);
}

/* Navigation arrows */
.fp-carousel-arrow {
    position: absolute;
    top: 50%;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
    border: none;
    cursor: pointer;
    z-index: 10;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;

    /* temporary hidden */
    display: none;
}

.fp-carousel-arrow:hover {
    background: rgba(0, 0, 0, 0.6);
}

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

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

/* Pagination */
.fp-carousel-pagination {
    position: absolute;
    right: 5%;
    bottom: 5%;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 10;
}

.fp-pagination-dot {
    width: 30px;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.4);
    border: none;
    cursor: pointer;
    padding: 0;
    border-radius: 2px;
    transition: width 0.5s ease, background-color 0.5s ease;
    outline: none;
}

.fp-pagination-dot.active {
    width: 50px;
    background-color: #fff;
}

/* Responsive styles */
@media (max-width: 991px) {
    .fp-slide-title {
        font-size: 40px;
    }
}

@media (max-width: 767px) {
    .featured-projects-carousel {
        height: 60vh;
        min-height: 300px;
    }
    
    .fp-slide-title {
        font-size: 32px;
    }
    
    .fp-slide-brand,
    .fp-slide-product {
        font-size: 14px;
    }
    
    .fp-carousel-arrow {
        width: 36px;
        height: 36px;
    }
    
    .fp-carousel-pagination {
        right: 4%;
        bottom: 4%;
    }
    
    .fp-pagination-dot {
        width: 24px;
        height: 3px;
    }
    
    .fp-pagination-dot.active {
        width: 40px;
    }
}

@media (max-width: 479px) {
    .featured-projects-carousel {
        height: 55vh;
        min-height: 250px;
    }
    
    .fp-slide-title {
        font-size: 28px;
        margin-bottom: 0px;
    }
    
    .fp-slide-content {
        bottom: 24px;
        left: 24px;
        max-width: 90%;
        padding: 10px;
    }
    
    .fp-carousel-arrow {
        width: 32px;
        height: 32px;
    }
    
    .fp-carousel-pagination {
        gap: 6px;
    }
    
    .fp-pagination-dot {
        width: 20px;
        height: 3px;
    }
    
    .fp-pagination-dot.active {
        width: 30px;
    }
} 