/* Portfolio Page Specific Styles */

/* CSS Variables */
:root {
    --primary-color: #dd4554;
    --text-dark: #2c3e50;
    --transition-smooth: all 0.3s ease;
    --shadow-soft: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 8px 25px rgba(0, 0, 0, 0.15);
    --gradient-primary: linear-gradient(135deg, #dd4554 0%, #e74c3c 100%);
}

/* Portfolio Hero Slideshow */
.portfolio-hero {
    position: relative;
    height: 60vh;
    overflow: hidden;
    background: #000;
}

.slideshow-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.slide.active {
    opacity: 1;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.6) 0%,
        rgba(221, 69, 84, 0.3) 50%,
        rgba(0, 0, 0, 0.4) 100%
    );
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    transform: translateY(-50%);
    z-index: 10;
    color: white;
    text-align: center;
}

.slide-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    font-family: 'Poppins', sans-serif;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.slide.active .slide-title {
    animation: slideInUp 1s ease-out 0.5s forwards;
}

.slide-description {
    font-size: 1.3rem;
    margin-bottom: 0;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.slide.active .slide-description {
    animation: slideInUp 1s ease-out 0.7s forwards;
}

/* Slideshow Controls */
.slideshow-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    z-index: 20;
    pointer-events: none;
}

.prev-btn,
.next-btn {
    position: absolute;
    top: 0;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.prev-btn {
    left: 2rem;
}

.next-btn {
    right: 2rem;
}

.prev-btn:hover,
.next-btn:hover {
    background: rgba(221, 69, 84, 0.8);
    border-color: rgba(255, 255, 255, 0.6);
    transform: scale(1.1);
}

/* Slideshow Indicators */
.slideshow-indicators {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
    z-index: 20;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition-smooth);
    border: 2px solid transparent;
}

.indicator.active {
    background: var(--primary-color);
    border-color: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.1);
}

/* Portfolio Albums Section */
.portfolio-albums {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.portfolio-albums::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="portfolio-dots" width="25" height="25" patternUnits="userSpaceOnUse"><circle cx="12.5" cy="12.5" r="1" fill="%23dd4554" opacity="0.04"/></pattern></defs><rect width="100" height="100" fill="url(%23portfolio-dots)"/></svg>');
    pointer-events: none;
}

/* Advanced Filters */
.advanced-filters {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 3rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
}

/* Search Filter */
.search-filter {
    position: relative;
}

.search-filter .form-control {
    padding: 0.75rem 1rem;
    border: 2px solid rgba(221, 69, 84, 0.2);
    border-radius: 10px;
    background: white;
    color: var(--text-dark);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition-smooth);
    width: 100%;
    min-width: 200px;
}

.search-filter .form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(221, 69, 84, 0.1);
}

.search-filter .form-control:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 150px;
}

.filter-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.filter-select {
    padding: 0.75rem 1rem;
    border: 2px solid rgba(221, 69, 84, 0.2);
    border-radius: 10px;
    background: white;
    color: var(--text-dark);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition-smooth);
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23dd4554' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.75rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(221, 69, 84, 0.1);
}

.filter-select:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

.clear-filters {
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition-smooth);
    border: 2px solid rgba(108, 117, 125, 0.3);
    color: #6c757d;
    background: transparent;
    font-size: 0.9rem;
}

.clear-filters:hover {
    background: #6c757d;
    color: white;
    border-color: #6c757d;
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

/* Albums Grid */
.albums-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
    max-width: 100%;
    justify-items: center;
}

.album-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
    background: white;
    opacity: 1;
    transform: scale(1);
    cursor: pointer;
    width: 100%;
    max-width: 450px;
    min-width: 350px;
}

.album-card.hide {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
}

.album-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-medium);
}

.album-cover {
    position: relative;
    height: 400px;
    overflow: hidden;
}

.album-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.album-card:hover .album-image {
    transform: scale(1.1);
}

/* Album Overlay */
.album-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.9) 0%,
        rgba(0, 0, 0, 0.6) 50%,
        transparent 100%
    );
    display: flex;
    align-items: flex-end;
    justify-content: center;
    opacity: 1;
    transition: var(--transition-smooth);
    padding: 0;
}

.album-card:hover .album-overlay {
    background: linear-gradient(
        to top,
        rgba(221, 69, 84, 0.9) 0%,
        rgba(0, 0, 0, 0.6) 50%,
        transparent 100%
    );
}

.album-info {
    text-align: center;
    color: white;
    padding: 1.25rem 1.5rem;
    width: 100%;
    transform: translateY(0);
    transition: var(--transition-smooth);
}

.album-card .album-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    font-family: 'Poppins', sans-serif;
    color: white !important;
    background: none !important;
    -webkit-background-clip: unset !important;
    -webkit-text-fill-color: unset !important;
    background-clip: unset !important;
}

.album-card .album-subtitle {
    font-size: 0.85rem;
    opacity: 0.9;
    margin-bottom: 0.5rem;
    font-style: italic;
    color: white !important;
}

.album-card .album-count {
    font-size: 0.8rem;
    margin-bottom: 0;
    opacity: 0.8;
    color: white !important;
}

.album-card .album-count i {
    margin-right: 0.5rem;
}



/* Load More Button */
.load-more-albums {
    padding: 1rem 2.5rem;
    font-weight: 600;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.load-more-albums::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    transition: var(--transition-smooth);
    z-index: -1;
}

.load-more-albums:hover::before {
    left: 0;
}

.load-more-albums:hover {
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

/* Animations */
@keyframes slideInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.album-card {
    animation: fadeInScale 0.6s ease-out forwards;
}

/* Responsive Design */
@media (max-width: 992px) {
    .portfolio-hero {
        height: 50vh;
    }
    
    .slide-title {
        font-size: 2.8rem;
    }
    
    .slide-description {
        font-size: 1.1rem;
    }
    
    .albums-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 1.5rem;
    }
    
    .album-cover {
        height: 350px;
    }
    
    .prev-btn,
    .next-btn {
        width: 50px;
        height: 50px;
        font-size: 1rem;
    }
    
    .prev-btn {
        left: 1rem;
    }
    
    .next-btn {
        right: 1rem;
    }
}

@media (max-width: 768px) {
    .portfolio-hero {
        height: 40vh;
    }
    
    .slide-title {
        font-size: 2.2rem;
    }
    
    .slide-description {
        font-size: 1rem;
        padding: 0 1rem;
    }
    
    .albums-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1rem;
    }
    
    .album-cover {
        height: 300px;
    }
    
    .advanced-filters {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
        padding: 1.5rem;
    }
    
    .filter-group {
        width: 100%;
        max-width: 300px;
        min-width: auto;
    }
    
    .filter-select {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }
    
    .clear-filters {
        width: 100%;
        max-width: 200px;
        padding: 0.6rem 1.2rem;
    }
    
    .album-info {
        padding: 1rem 1.25rem;
        text-align: center;
    }
    
    .album-card .album-title {
        font-size: 1.2rem;
        color: white !important;
        background: none !important;
        -webkit-background-clip: unset !important;
        -webkit-text-fill-color: unset !important;
        background-clip: unset !important;
    }
    
    .album-card .album-subtitle {
        font-size: 0.8rem;
        color: white !important;
    }
    
    .album-card .album-count {
        font-size: 0.75rem;
        margin-bottom: 0;
        color: white !important;
    }
    

    
    .slideshow-indicators {
        bottom: 1rem;
    }
    
    .indicator {
        width: 10px;
        height: 10px;
    }
}

@media (max-width: 576px) {
    .portfolio-hero {
        height: 35vh;
    }
    
    .slide-title {
        font-size: 1.8rem;
    }
    
    .slide-description {
        font-size: 0.9rem;
    }
    
    .albums-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1rem;
    }
    
    .album-cover {
        height: 250px;
    }
    
    .album-filters .filter-btn {
        min-width: 180px;
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
    
    .album-card .album-title {
        font-size: 1.3rem;
        color: white !important;
        background: none !important;
        -webkit-background-clip: unset !important;
        -webkit-text-fill-color: unset !important;
        background-clip: unset !important;
    }
    
    .album-card .album-subtitle {
        font-size: 0.9rem;
        color: white !important;
    }
    
    .album-card .album-count {
        font-size: 0.8rem;
        color: white !important;
    }
    
    .album-actions .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.8rem;
    }
    
    .prev-btn,
    .next-btn {
        display: none;
    }
    
    .load-more-albums {
        padding: 0.8rem 2rem;
        font-size: 0.9rem;
    }
}

/* Loading Animation */
.albums-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(221, 69, 84, 0.3);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Intersection Observer Animation */
.album-card {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.album-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger animation delays */
.album-card:nth-child(1) { transition-delay: 0.1s; }
.album-card:nth-child(2) { transition-delay: 0.2s; }
.album-card:nth-child(3) { transition-delay: 0.3s; }
.album-card:nth-child(4) { transition-delay: 0.1s; }
.album-card:nth-child(5) { transition-delay: 0.2s; }
.album-card:nth-child(6) { transition-delay: 0.3s; }
.album-card:nth-child(7) { transition-delay: 0.1s; }
.album-card:nth-child(8) { transition-delay: 0.2s; }
.album-card:nth-child(9) { transition-delay: 0.3s; }

/* Navbar adjustments for portfolio page - maintain glass effect */
.navbar.scrolled {
    background: transparent !important;
}

/* Portfolio-specific navbar link colors - override black text */
.navbar.scrolled .navbar-nav .nav-link {
    color: var(--text-light) !important;
}

.navbar.scrolled .navbar-nav .nav-link:hover,
.navbar.scrolled .navbar-nav .nav-link.active {
    color: var(--primary-color) !important;
}

.navbar.scrolled .navbar-nav .nav-link.btn.btn-primary {
    color: var(--text-light) !important;
}

.navbar.scrolled .navbar-nav .nav-link.btn.btn-primary:hover {
    color: white !important;
}

/* Auto-initialize slideshow on page load */
.slide:first-child {
    opacity: 1;
}

/* Smooth transitions for filter animations */
.album-card {
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.album-card.hide {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Album Link Styles */
.album-link {
    display: block;
    text-decoration: none;
    color: inherit;
    width: 100%;
    height: 100%;
}

.album-link:hover {
    color: inherit;
    text-decoration: none;
}

.view-album-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--gradient-primary);
    color: white;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-top: 10px;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(10px);
}

.album-card:hover .view-album-btn {
    opacity: 1;
    transform: translateY(0);
}

.view-album-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 5px 15px rgba(221, 69, 84, 0.4);
}

/* No Portfolios Found Section */
.no-portfolios-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
    width: 100%;
    grid-column: 1 / -1; /* Span all grid columns */
    margin: 0 auto;
}

.no-portfolios-content {
    max-width: 500px;
    padding: 3rem 2rem;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
}

.no-portfolios-content i {
    opacity: 0.6;
    color: var(--primary-color) !important;
}

.no-portfolios-content h4 {
    color: var(--text-dark);
    font-weight: 600;
}

.no-portfolios-content p {
    color: #6c757d;
    font-size: 1.1rem;
}

.no-portfolios-content .btn {
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.no-portfolios-content .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(221, 69, 84, 0.3);
}

/* Responsive adjustments for no portfolios section */
@media (max-width: 768px) {
    .no-portfolios-container {
        min-height: 300px;
    }
    
    .no-portfolios-content {
        padding: 2rem 1.5rem;
        margin: 0 1rem;
    }
    
    .no-portfolios-content i {
        font-size: 3rem !important;
    }
    
    .no-portfolios-content h4 {
        font-size: 1.25rem;
    }
    
    .no-portfolios-content p {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .no-portfolios-content {
        padding: 1.5rem 1rem;
    }
    
    .no-portfolios-content i {
        font-size: 2.5rem !important;
    }
}