/* Modern Portfolio Carousel Styles */

.portfolio-carousel-container {
    position: relative;
    margin: 60px 0;
    padding: 40px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 30px;
    overflow: hidden;
}

.portfolio-carousel-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(102, 126, 234, 0.1) 0%, 
        rgba(118, 75, 162, 0.1) 100%);
    backdrop-filter: blur(10px);
    z-index: 1;
}

.portfolio-carousel {
    position: relative;
    z-index: 2;
    display: flex;
    gap: 30px;
    padding: 20px 40px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.portfolio-carousel::-webkit-scrollbar {
    display: none;
}

.portfolio-card {
    min-width: 350px;
    max-width: 350px;
    height: 420px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 25px;
    padding: 30px;
    position: relative;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        0 2px 8px rgba(0, 0, 0, 0.05);
}

.portfolio-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        rgba(255, 255, 255, 0.05) 100%);
    border-radius: 25px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.portfolio-card:hover::before {
    opacity: 1;
}

.portfolio-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.2),
        0 8px 20px rgba(0, 0, 0, 0.1);
}

.card-glow {
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, 
        #00d4aa, #00a085, #667eea, #764ba2);
    border-radius: 27px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
    filter: blur(8px);
}

.portfolio-card:hover .card-glow {
    opacity: 0.6;
    animation: glow-pulse 2s infinite;
}

@keyframes glow-pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 0.8; }
}

.card-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card-icon {
    font-size: 48px;
    margin-bottom: 20px;
    display: block;
    text-align: center;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.card-title {
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 8px 0;
    text-align: center;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.card-subtitle {
    font-size: 14px;
    color: #00d4aa;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    margin: 0 0 20px 0;
}

.card-description {
    font-size: 15px;
    color: #5a6c7d;
    line-height: 1.6;
    text-align: center;
    flex-grow: 1;
    margin-bottom: 20px;
}

.card-tags {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: auto;
}

.tag {
    background: linear-gradient(135deg, #00d4aa, #00a085);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 212, 170, 0.3);
}

/* Brand vs Film Card Styling */
.brand-card {
    background: rgba(255, 255, 255, 0.95);
}

.film-card {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.95) 0%, 
        rgba(248, 250, 252, 0.95) 100%);
}

.film-card .card-title {
    color: #1a202c;
}

.film-card .card-subtitle {
    color: #667eea;
}

/* Navigation Dots */
.carousel-nav {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.nav-dots {
    display: flex;
    gap: 12px;
}

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

.nav-dot.active {
    background: #00d4aa;
    transform: scale(1.2);
    box-shadow: 0 0 20px rgba(0, 212, 170, 0.5);
}

/* Responsive Design */
@media (max-width: 768px) {
    .portfolio-carousel-container {
        margin: 40px -20px;
        border-radius: 0;
    }
    
    .portfolio-carousel {
        padding: 20px;
        gap: 20px;
    }
    
    .portfolio-card {
        min-width: 280px;
        max-width: 280px;
        height: 380px;
        padding: 25px;
    }
    
    .card-title {
        font-size: 20px;
    }
    
    .card-description {
        font-size: 14px;
    }
    
    .card-icon {
        font-size: 40px;
        margin-bottom: 15px;
    }
}

@media (max-width: 480px) {
    .portfolio-card {
        min-width: 250px;
        max-width: 250px;
        height: 350px;
        padding: 20px;
    }
    
    .card-title {
        font-size: 18px;
    }
    
    .card-icon {
        font-size: 36px;
    }
}

/* Smooth scroll animation */
.portfolio-carousel {
    scroll-snap-type: x mandatory;
}

.portfolio-card {
    scroll-snap-align: start;
}

/* Loading animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.portfolio-card {
    animation: fadeInUp 0.6s ease-out;
}

.portfolio-card:nth-child(1) { animation-delay: 0.1s; }
.portfolio-card:nth-child(2) { animation-delay: 0.2s; }
.portfolio-card:nth-child(3) { animation-delay: 0.3s; }
.portfolio-card:nth-child(4) { animation-delay: 0.4s; }
.portfolio-card:nth-child(5) { animation-delay: 0.5s; }
.portfolio-card:nth-child(6) { animation-delay: 0.6s; }
.portfolio-card:nth-child(7) { animation-delay: 0.7s; }
.portfolio-card:nth-child(8) { animation-delay: 0.8s; }
.portfolio-card:nth-child(9) { animation-delay: 0.9s; }
.portfolio-card:nth-child(10) { animation-delay: 1.0s; }

/* Interactive hover states */
.portfolio-card:hover .card-icon {
    transform: scale(1.1) rotate(5deg);
    transition: transform 0.3s ease;
}

.portfolio-card:hover .card-title {
    color: #00d4aa;
    transition: color 0.3s ease;
}

.portfolio-card:hover .tag {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 212, 170, 0.4);
    transition: all 0.3s ease;
}
