/* Portfolio Specific Styles */

/* Portfolio Hero Section */
.portfolio-hero {
    position: relative;
    height: 70vh;
    min-height: 500px;
    background-color: #000;
    overflow: hidden;
}

.portfolio-hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 10;
    width: 90%;
    max-width: 800px;
    padding: 2rem;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.portfolio-hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
    animation: fadeInUp 1s ease forwards;
}

.portfolio-hero-subtitle {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease forwards 0.3s;
}

.portfolio-hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.portfolio-hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease, transform 8s ease;
    transform: scale(1);
}

.portfolio-hero-slide-content {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    max-width: 400px;
    transform: translateY(20px);
    opacity: 0;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.portfolio-hero-slide.active .portfolio-hero-slide-content {
    transform: translateY(0);
    opacity: 1;
    transition-delay: 0.5s;
}

.portfolio-hero-slide-content h3 {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.portfolio-hero-slide-content p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
}

/* Portfolio Gallery Section */
.portfolio-gallery {
    padding: 5rem 0;
    background-color: #f8f9fa;
}

.portfolio-filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.filter-btn {
    padding: 0.75rem 1.25rem;
    background-color: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.filter-btn.active {
    background-color: #e31c79;
    color: #fff;
    border-color: #e31c79;
}

.filter-search {
    position: relative;
    width: 100%;
    max-width: 300px;
}

.filter-search input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border: 1px solid #e6e6e6;
    border-radius: 30px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.filter-search input:focus {
    outline: none;
    border-color: #e31c79;
    box-shadow: 0 0 0 3px rgba(227, 28, 121, 0.1);
}

.filter-search i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.portfolio-item {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    background-color: #fff;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    opacity: 0;
    transform: translateY(30px);
}

.portfolio-item.animate {
    opacity: 1;
    transform: translateY(0);
}

.portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.portfolio-item-image {
    position: relative;
    overflow: hidden;
    height: 300px;
}

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

.portfolio-item:hover .portfolio-item-image img {
    transform: scale(1.1);
}

.portfolio-item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 60%);
    opacity: 0;
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
    transition: opacity 0.3s ease;
}

.portfolio-item:hover .portfolio-item-overlay {
    opacity: 1;
}

.portfolio-item-details {
    color: #fff;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s ease;
    transition-delay: 0.1s;
    width: 100%;
}

.portfolio-item:hover .portfolio-item-details {
    transform: translateY(0);
    opacity: 1;
}

.portfolio-item-details h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.portfolio-item-details .category {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.portfolio-item-details .description {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.view-btn {
    background-color: #e31c79;
    color: #fff;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.view-btn:hover {
    background-color: #c10058;
    transform: translateY(-2px);
}

.video-wrapper {
    position: relative;
    height: 100%;
}

.video-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background-color: rgba(227, 28, 121, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
}

.video-play-button i {
    color: #fff;
    font-size: 1.5rem;
}

.video-play-button:hover {
    background-color: #e31c79;
    transform: translate(-50%, -50%) scale(1.1);
}

/* Portfolio Modal */
.portfolio-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    overflow-y: auto;
}

.portfolio-modal-content {
    position: relative;
    width: 90%;
    max-width: 1200px;
    margin: 5vh auto;
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-modal:hover {
    background-color: rgba(227, 28, 121, 0.8);
    transform: rotate(90deg);
}

.portfolio-modal-body {
    display: flex;
    flex-direction: column;
}

.portfolio-modal-image {
    width: 100%;
    height: 70vh;
    max-height: 600px;
    overflow: hidden;
    position: relative;
}

.portfolio-modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-container {
    width: 100%;
    height: 100%;
}

.video-container video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: #000;
}

.portfolio-modal-info {
    padding: 2rem;
    background-color: #fff;
}

.portfolio-modal-info h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.portfolio-modal-info .category {
    font-size: 1rem;
    color: #888;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.portfolio-modal-info .description {
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
}

.portfolio-modal-nav {
    position: absolute;
    bottom: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 1rem;
    transform: translateY(50%);
}

.nav-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    background-color: rgba(227, 28, 121, 0.8);
}

.prev-btn {
    margin-right: auto;
}

.next-btn {
    margin-left: auto;
}

/* No Items Message */
.no-items {
    text-align: center;
    padding: 3rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    margin-top: 2rem;
}

.no-items p {
    font-size: 1.2rem;
    color: #666;
}

/* Error Message */
.error-message {
    text-align: center;
    padding: 3rem;
    background-color: #fff3f3;
    border-radius: 8px;
    margin-top: 2rem;
    border: 1px solid #ffcaca;
}

.error-message p {
    font-size: 1.2rem;
    color: #e74c3c;
    margin-bottom: 1rem;
}

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

/* Responsive Styles */
@media (min-width: 768px) {
    .portfolio-modal-body {
        flex-direction: row;
    }
    
    .portfolio-modal-image {
        width: 65%;
        height: 80vh;
    }
    
    .portfolio-modal-info {
        width: 35%;
        padding: 3rem 2rem;
    }
}

@media (max-width: 991px) {
    .portfolio-hero-title {
        font-size: 3rem;
    }
    
    .portfolio-hero-subtitle {
        font-size: 1.2rem;
    }
    
    .portfolio-filters {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .filter-search {
        max-width: 100%;
        margin-top: 1rem;
    }
}

@media (max-width: 767px) {
    .portfolio-hero {
        height: 60vh;
    }
    
    .portfolio-hero-title {
        font-size: 2.5rem;
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.5rem;
    }
    
    .portfolio-item-image {
        height: 250px;
    }
    
    .portfolio-modal-nav {
        bottom: 1rem;
        transform: none;
    }
}

@media (max-width: 480px) {
    .portfolio-hero-title {
        font-size: 2rem;
    }
    
    .portfolio-hero-subtitle {
        font-size: 1rem;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .filter-buttons {
        justify-content: center;
        width: 100%;
    }
}
