/**
 * Coverflow Carousel Styles
 * Modern coverflow effect for hero section
 * 
 * @package CursorTheme
 */

/* Hero Coverflow Section */
.hero-coverflow {
    position: relative;
    padding: 0 0 2rem 0;
    overflow-x: hidden;
}

/* Coverflow Container */
.coverflow-container {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: visible;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 2rem 0;
}

/* Individual Slide */
.coverflow-slide {
    position: absolute;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    height: 100%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.5) rotateY(0deg);
    opacity: 0;
    z-index: 0;
}

/* Slide Background */
.slide-bg {
    width: 100%;
    height: 100%;
    background-color: transparent;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid #828282;
}

.slide-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    image-rendering: high-quality;
}

/* Slide Overlay */
.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.15) 100%);
    z-index: 1;
}

/* Remove background overlay for active slide only */
.coverflow-slide.active .slide-overlay {
    background: transparent;
}

/* Slide Content */
.slide-content {
    position: absolute;
    bottom: 3rem;
    left: 2rem;
    color: white;
    z-index: 2;
    transition: opacity 0.3s ease;
}

.slide-content h1,
.slide-content .slide-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.1;
    text-shadow: 0 3px 12px rgba(0, 0, 0, 0.65), 0 1px 2px rgba(0, 0, 0, 0.6);
}

.slide-content p {
    font-size: 15px;
    margin-bottom: 2rem;
    max-width: 500px;
    line-height: 1.6;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6), 0 1px 2px rgba(0, 0, 0, 0.55);
}

/* Buttons Container */
.slide-content .buttons {
    display: flex;
    gap: 1rem;
}

/* Button Styles */
.slide-content button,
.slide-content .button {
    background: #22c55e;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3);
    transition: all 0.3s ease;
    text-decoration: none;
}

.slide-content button:hover,
.slide-content .button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.4);
}

.slide-content button.secondary,
.slide-content .button.secondary {
    background: #f97316;
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.3);
}

.slide-content button.secondary:hover,
.slide-content .button.secondary:hover {
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.4);
}

/* Navigation Arrows */
.coverflow-prev,
.coverflow-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    border: none;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.8rem;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.coverflow-prev {
    left: 1rem;
}

.coverflow-next {
    right: 1rem;
}

.coverflow-prev:hover,
.coverflow-next:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: translateY(-50%) scale(1.1);
}

/* Carousel Dots */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.carousel-dots .dot {
    width: 12px;
    height: 12px;
    background: #666;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dots .dot.active {
    background: #E63946;
    transform: scale(1.2);
}

.carousel-dots .dot:hover {
    background: #888;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-coverflow {
        padding: 0 20px 0.5rem 20px;
    }
    
    .coverflow-container {
        height: 500px;
        margin: 1rem 0;
    }
    
    .slide-content {
        bottom: 2rem;
        left: 1rem;
        right: 1rem;
    }
    
    .slide-content h1 {
        font-size: 2.5rem;
    }
    
    .slide-content p {
        font-size: 1rem;
    }
    
    .slide-content .buttons {
        flex-direction: column;
    }
    
    .slide-content button {
        width: 100%;
        justify-content: center;
    }
    
    .coverflow-prev,
    .coverflow-next {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .coverflow-prev {
        left: 0.5rem;
        top:8rem;
    }
    
    .coverflow-next {
        right: 0.5rem;
        top:8rem;
    }
}

@media (max-width: 480px) {
    .coverflow-container {
        height: 300px;
    }
    
    .slide-content h1 {
        font-size: 2rem;
    }
    
    .slide-content p {
        font-size: 0.9rem;
    }
    
    .slide-content button {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }

    .slide-bg{
        height: 80%;
    }

    .carousel-dots{
        margin-top: -2rem;
    }
}

