/*** Projects Page Styles ***/
.project-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url('../img/projects-bg.jpg') center/cover no-repeat;
    padding: 150px 0 100px;
}

/* Accordion Styling */
.project-accordion {
    background: var(--bs-dark);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 20px;
}

.project-accordion .accordion-button {
    background: transparent;
    color: white;
    padding: 25px 30px;
    border: none;
    box-shadow: none;
}

.project-accordion .accordion-button:not(.collapsed) {
    background: rgba(228, 23, 121, 0.1);
    color: white;
}

.project-accordion .accordion-button::after {
    display: none; /* Hide default arrow */
}

.project-accordion .accordion-button.collapsed .accordion-arrow i {
    transform: rotate(0deg);
    transition: transform 0.3s ease;
}

.project-accordion .accordion-button:not(.collapsed) .accordion-arrow i {
    transform: rotate(180deg);
    transition: transform 0.3s ease;
}

/* Project Header Content */
.project-header-content {
    width: 100%;
}

.project-title {
    flex: 1;
}

.project-year {
    display: inline-block;
    background: var(--bs-primary);
    color: white;
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.project-title h3 {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.project-metadata {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.project-type {
    color: var(--bs-light);
    font-size: 0.9rem;
}

/* Project Preview */
.project-preview {
    display: flex;
    align-items: center;
    gap: 20px;
}

.preview-image {
    width: 120px;
    height: 80px;
    border-radius: 10px;
    overflow: hidden;
}

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

.accordion-arrow {
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Accordion Body */
.accordion-body {
    padding: 0;
    background: rgba(0, 0, 0, 0.3);
}

.project-content {
    padding: 30px;
}

.project-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 25px 0;
    padding: 25px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-icon {
    width: 40px;
    height: 40px;
    background: var(--bs-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-content h6 {
    margin-bottom: 5px;
    color: var(--bs-primary);
}

.info-content p {
    margin: 0;
    font-size: 0.9rem;
}

/* Behind the Scenes */
.bts-section {
    margin: 40px 0;
}

.bts-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--bs-primary);
}

.bts-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.bts-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    height: 250px;
    cursor: pointer;
}

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

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

.bts-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 15px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

/* Video Section */
.video-section {
    margin: 40px 0;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 10px;
    background: #000;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-caption {
    text-align: center;
    margin-top: 15px;
    font-style: italic;
    color: var(--bs-light);
}

/* Project Tags */
.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 25px;
}

.project-tag {
    background: rgba(228, 23, 121, 0.2);
    color: var(--bs-primary);
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.85rem;
    border: 1px solid rgba(228, 23, 121, 0.3);
}

/* Status Badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
}

.status-completed {
    background: rgba(25, 135, 84, 0.2);
    color: #198754;
    border: 1px solid rgba(25, 135, 84, 0.3);
}

.status-production {
    background: rgba(13, 202, 240, 0.2);
    color: #0dcaf0;
    border: 1px solid rgba(13, 202, 240, 0.3);
}

.status-upcoming {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

/* Breadcrumb */
.breadcrumb {
    background: transparent;
    padding: 0;
}

.breadcrumb-item a {
    color: var(--bs-primary);
    text-decoration: none;
}

.breadcrumb-item.active {
    color: var(--bs-light);
}

.breadcrumb-item + .breadcrumb-item::before {
    color: var(--bs-light);
}

/* Open First Accordion by Default */
.project-accordion:first-child .accordion-button {
    background: rgba(228, 23, 121, 0.1);
}

.project-accordion:first-child .accordion-collapse {
    display: block;
}

/* Responsive */
@media (max-width: 992px) {
    .project-preview {
        display: none;
    }
    
    .project-title h3 {
        font-size: 1.3rem;
    }
}

@media (max-width: 768px) {
    .bts-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .project-info-grid {
        grid-template-columns: 1fr;
    }
    
    .project-metadata {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .project-accordion .accordion-button {
        padding: 20px;
    }
    
    .project-content {
        padding: 20px;
    }
    
    .project-hero {
        padding: 100px 0 60px;
    }
    
    .bts-item {
        height: 200px;
    }
}

@media (max-width: 576px) {
    .bts-gallery {
        grid-template-columns: 1fr;
    }
    
    .bts-item {
        height: 250px;
    }
    
    .project-year {
        font-size: 0.8rem;
        padding: 4px 12px;
    }
    
    .status-badge {
        font-size: 0.75rem;
        padding: 4px 10px;
    }
}

/* Animation classes */
.project-accordion {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.project-accordion.loaded {
    opacity: 1;
    transform: translateY(0);
}

.project-accordion.accordion-active {
    z-index: 1;
    position: relative;
}

/* Hover effects for closed accordions */
.project-accordion:not(.accordion-active):hover {
    border-color: rgba(228, 23, 121, 0.3);
    box-shadow: 0 5px 15px rgba(228, 23, 121, 0.1);
    transition: all 0.3s ease;
}

/* Focus styles for accessibility */
.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(228, 23, 121, 0.25);
}

/* Smooth content reveal */
.accordion-collapse {
    transition: height 0.35s ease;
}

/* Custom scrollbar for accordion body */
.accordion-body::-webkit-scrollbar {
    width: 8px;
}

.accordion-body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.accordion-body::-webkit-scrollbar-thumb {
    background: var(--bs-primary);
    border-radius: 4px;
}

.accordion-body::-webkit-scrollbar-thumb:hover {
    background: rgb(182.4, 18.4, 96.8);
}