/* Стили для слайдера портфолио и карточек услуг */

/* Секция предварительного просмотра портфолио */
.portfolio-preview-section, 
.services-preview-section {
    padding: 80px 0;
    position: relative;
    background-color: rgba(0, 0, 0, 0.02);
}

.dark-theme .portfolio-preview-section,
.dark-theme .services-preview-section {
    background-color: rgba(255, 255, 255, 0.02);
}

/* Стили слайдера */
.portfolio-slider {
    display: flex;
    gap: 30px;
    margin: 40px 0;
    overflow-x: auto;
    padding: 20px 0;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-color) transparent;
}

.portfolio-slider::-webkit-scrollbar {
    height: 6px;
}

.portfolio-slider::-webkit-scrollbar-track {
    background: transparent;
}

.portfolio-slider::-webkit-scrollbar-thumb {
    background-color: var(--accent-color);
    border-radius: 10px;
}

/* Стили для элементов портфолио */
.portfolio-slide {
    min-width: 300px;
    width: calc(33.333% - 20px);
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    aspect-ratio: 1/1.2;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    height: 100%;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.8s cubic-bezier(0.33, 1, 0.68, 1);
}

.portfolio-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.8s cubic-bezier(0.33, 1, 0.68, 1);
}

.portfolio-overlay {
    position: absolute;
    bottom: -100%;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    transition: bottom 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.portfolio-item:hover .portfolio-overlay {
    bottom: 0;
}

.portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.portfolio-item:hover img {
    transform: scale(1.05);
}

.overlay-content h3 {
    color: white;
    font-size: 18px;
    font-weight: 500;
}

/* Кнопка просмотра всех работ */
.view-more-container {
    text-align: center;
    margin-top: 30px;
}

.view-more-btn {
    display: inline-flex;
    align-items: center;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    position: relative;
    padding: 5px 0;
}

.view-more-btn i {
    margin-left: 8px;
    transition: transform 0.3s;
}

.view-more-btn:hover {
    color: var(--accent-color);
}

.view-more-btn:hover i {
    transform: translateX(8px);
}

/* Секция услуг */
.services-preview-list {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin: 40px 0;
}

.service-preview-item {
    flex: 1;
    min-width: 250px;
    padding: 25px;
    border-radius: 10px;
    background-color: var(--card-background, white);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.service-preview-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
    z-index: -1;
    opacity: 0.3;
}

.service-preview-item:hover::before {
    width: 100%;
}

.service-preview-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.service-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    flex-shrink: 0;
    background-color: var(--accent-color);
    transition: transform 0.3s;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.service-preview-item:hover .service-icon {
    transform: rotate(360deg) scale(1.1);
}

.service-info {
    flex-grow: 1;
}

.service-info h3 {
    font-size: 18px;
    margin-bottom: 8px;
    transition: color 0.3s;
}

.service-info .price {
    font-weight: 600;
    color: var(--accent-color);
    font-size: 20px;
    transition: transform 0.3s;
}

.service-preview-item:hover .price {
    transform: scale(1.1);
}

/* Анимация заголовков секций */
.section-title {
    position: relative;
    display: inline-block;
    margin-bottom: 40px;
    font-size: 32px;
    font-weight: 500;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.section-title:hover::after {
    width: 100%;
}

/* Стили секции портфолио */
.portfolio-section {
    padding: 40px 0;
}

.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 30px 0;
}

.filter-btn {
    padding: 8px 20px;
    border: 1px solid rgba(188, 147, 245, 0.3);
    background: rgba(188, 147, 245, 0.1);
    color: var(--text-color);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn.active,
.filter-btn:hover {
    background: rgba(188, 147, 245, 0.3);
    border-color: rgba(188, 147, 245, 0.5);
    transform: translateY(-2px);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    padding: 20px;
}

/* Медиа-запросы для адаптивности */
@media (max-width: 992px) {
    .portfolio-slide {
        min-width: 250px;
        width: calc(50% - 15px);
    }
    
    .section-title {
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    .portfolio-slide {
        min-width: 220px;
        width: calc(100% - 30px);
    }
    
    .service-preview-item {
        min-width: 100%;
    }
    
    .section-title {
        font-size: 24px;
    }
}
