/* Simple Portfolio Carousel Styles */
.simple-portfolio-carousel {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.portfolio-slides {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
}

.portfolio-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    display: flex;
    flex-direction: column;
}

.portfolio-slide.active {
    opacity: 1;
}

.portfolio-image {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.portfolio-slide:hover .portfolio-image img {
    transform: scale(1.05);
}

.portfolio-content {
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    color: white;
}

.portfolio-title {
    margin: 0 0 10px 0;
    font-size: 24px;
    font-weight: bold;
    line-height: 1.2;
}

.portfolio-title a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.portfolio-title a:hover {
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.portfolio-description {
    font-size: 14px;
    line-height: 1.4;
    opacity: 0.9;
    max-height: 100px;
    overflow: hidden;
}

.portfolio-description p {
    margin: 0 0 10px 0;
}

/* Navigation Arrows */
.portfolio-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.portfolio-nav:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.portfolio-prev {
    left: 15px;
}

.portfolio-next {
    right: 15px;
}

/* Dots Indicator */
.portfolio-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.portfolio-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid white;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.portfolio-dot.active,
.portfolio-dot:hover {
    background: white;
    transform: scale(1.2);
}

/* Responsive Design */
@media (max-width: 768px) {
    .simple-portfolio-carousel {
        margin: 0 10px;
    }
    
    .portfolio-slides {
        height: 400px;
    }
    
    .portfolio-content {
        padding: 15px;
    }
    
    .portfolio-title {
        font-size: 20px;
    }
    
    .portfolio-description {
        font-size: 13px;
        max-height: 80px;
    }
    
    .portfolio-nav {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .portfolio-prev {
        left: 10px;
    }
    
    .portfolio-next {
        right: 10px;
    }
    
    .portfolio-dot {
        width: 10px;
        height: 10px;
    }
}

@media (max-width: 480px) {
    .portfolio-slides {
        height: 300px;
    }
    
    .portfolio-content {
        padding: 12px;
    }
    
    .portfolio-title {
        font-size: 18px;
    }
    
    .portfolio-description {
        font-size: 12px;
        max-height: 60px;
    }
    
    .portfolio-nav {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    
    .portfolio-dots {
        bottom: 10px;
        gap: 6px;
    }
    
    .portfolio-dot {
        width: 8px;
        height: 8px;
    }
}

/* Loading Animation */
.simple-portfolio-carousel.loading {
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.simple-portfolio-carousel.loading::before {
    content: '';
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #333;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Accessibility */
.portfolio-nav:focus,
.portfolio-dot:focus {
    outline: 2px solid #ffd700;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .portfolio-nav,
    .portfolio-dots {
        display: none;
    }
    
    .portfolio-slide {
        position: static;
        opacity: 1;
        page-break-inside: avoid;
        margin-bottom: 20px;
    }
    
    .portfolio-content {
        position: static;
        background: none;
        color: black;
    }
}
