/* 3D Carousel Widget Styles */

.carousel-3d-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    height: 500px;
    margin: 40px auto;
    perspective: 1200px;
    overflow: visible;
}

.carousel-3d {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-item {
    position: absolute;
    width: 320px;
    height: 400px;
    left: 50%;
    top: 50%;
    margin-left: -160px;
    margin-top: -200px;
    backface-visibility: hidden;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

/* Képgaléria mód */
.item-image {
    width: 100%;
    height: 100%;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    background: #fff;
    position: relative;
}

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.item-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    color: white;
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.carousel-item:nth-child(1) .item-caption {
    transform: translateY(0);
}

.item-caption h3 {
    margin: 0 0 5px 0;
    font-size: 20px;
    font-weight: 600;
}

.item-caption p {
    margin: 0;
    font-size: 14px;
    opacity: 0.9;
}

/* Szolgáltatás kártya mód */
.service-card {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.card-icon {
    font-size: 60px;
    margin-bottom: 20px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.service-card img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 20px;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.3));
}

.service-card h3 {
    font-size: 24px;
    margin: 0 0 15px 0;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.service-card p {
    font-size: 15px;
    line-height: 1.6;
    margin: 0 0 20px 0;
    opacity: 0.95;
}

.card-button {
    display: inline-block;
    padding: 12px 30px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    font-weight: 600;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.card-button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

/* Carousel Controls */
.carousel-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 10;
}

.carousel-controls button {
    pointer-events: all;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-controls button:hover {
    background: white;
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.carousel-prev {
    margin-left: -25px;
}

.carousel-next {
    margin-right: -25px;
}

/* Indicators */
.carousel-indicators {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator:hover {
    background: rgba(0, 0, 0, 0.5);
    transform: scale(1.2);
}

.indicator.active {
    background: #667eea;
    transform: scale(1.3);
}

/* Responsive */
@media (max-width: 768px) {
    .carousel-3d-container {
        height: 400px;
        max-width: 100%;
        padding: 0 20px;
    }
    
    .carousel-item {
        width: 280px;
        height: 350px;
        margin-left: -140px;
        margin-top: -175px;
    }
    
    .service-card {
        padding: 20px;
    }
    
    .service-card h3 {
        font-size: 20px;
    }
    
    .service-card p {
        font-size: 14px;
    }
    
    .carousel-controls button {
        width: 40px;
        height: 40px;
        font-size: 24px;
    }
}

/* 3D pozíciók - ez a CSS kiszámolja az elemek pozícióit */
/* A JavaScript fogja dinamikusan beállítani a transform értékeket */
