/* Project Details Page Styles */

/* === LOADING STATE === */
body.loading {
    overflow: hidden;
}

body.loading .navbar,
body.loading .project-header,
body.loading .project-gallery,
body.loading .project-details,
body.loading .related-projects,
body.loading .project-cta,
body.loading footer,
body.loading .jump-to-top {
    visibility: hidden;
}

/* === PROJECT HEADER === */
.project-header {
    padding: 60px 0 60px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.breadcrumb {
    background: none;
    padding: 0;
    margin-bottom: 2rem;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: ">";
    color: var(--text-color);
}

.breadcrumb a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: var(--primary-color);
}

.breadcrumb-item.active {
    color: var(--primary-color);
    font-weight: 600;
}

.project-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.project-meta {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.project-meta span {
    position: relative;
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.project-meta span:not(:last-child)::after {
    content: "•";
    position: absolute;
    right: -1rem;
    color: var(--text-color);
}

.project-subtitle {
    font-size: 1.2rem;
    color: var(--text-color);
    line-height: 1.6;
    max-width: 800px;
}

/* === PROJECT GALLERY === */
.project-gallery {
    padding: 80px 0;
}

.project-main-slider {
    margin-bottom: 0;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.project-image-container {
    position: relative;
    height: 70vh;
    overflow: hidden;
}

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



/* Navigation Buttons */
.project-main-slider .swiper-button-next,
.project-main-slider .swiper-button-prev {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary-color);
    font-size: 18px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.project-main-slider .swiper-button-next:hover,
.project-main-slider .swiper-button-prev:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

/* Pagination */
.project-main-slider .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid white;
    opacity: 1;
    transition: all 0.3s ease;
}

.project-main-slider .swiper-pagination-bullet-active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: scale(1.2);
}

/* Thumbnail Slider */
.project-thumb-slider {
    margin-top: 20px;
    padding: 10px 0;
}

.project-thumb-slider .swiper-slide {
    width: auto;
    margin-right: 15px;
}

.thumb-container {
    width: 120px;
    height: 80px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 3px solid transparent;
}

.thumb-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.thumb-container.active {
    border-color: var(--primary-color);
}

.thumb-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* === PROJECT DETAILS === */
.project-details {
    padding: 80px 0;
}

.project-description h2 {
    color: var(--secondary-color);
    margin-bottom: 2rem;
    font-size: 2.5rem;
    font-weight: 700;
}

.project-description h3 {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    font-weight: 600;
}

.project-description p {
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.project-description .lead {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--secondary-color);
    margin-bottom: 2rem;
}

/* === PROJECT INFO SIDEBAR === */
.project-info-sidebar {
    position: sticky;
    top: 120px;
}

.info-card {
    background: #fff;
    padding: 2rem;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
}

.info-card h4 {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    font-weight: 600;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.info-item:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: 600;
    color: var(--secondary-color);
}

.info-value {
    color: var(--text-color);
    font-weight: 500;
}

/* Services List */
.services-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.services-list li {
    padding: 0.5rem 0;
    color: var(--text-color);
}

.services-list li i {
    color: var(--primary-color);
    margin-right: 0.5rem;
    width: 16px;
}

/* Awards */
.award-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.award-item:last-child {
    border-bottom: none;
}

.award-item i {
    font-size: 1.2rem;
}

.award-item span {
    color: var(--text-color);
    font-weight: 500;
}

/* === RELATED PROJECTS === */
.related-projects {
    padding: 80px 0;
}

.related-project-card {
    background: #fff;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.related-project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.related-project-card .project-img-frame {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.related-project-card .project-img-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.related-project-card:hover .project-img-frame img {
    transform: scale(1.1);
}

.related-project-card .project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(112, 1, 1, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.related-project-card:hover .project-overlay {
    opacity: 1;
}

.related-project-card .project-info {
    padding: 1.5rem;
}

.related-project-card .project-info h5 {
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

/* === PROJECT CTA === */
.project-cta {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--secondary-color) 0%, #2a2a2a 100%);
    color: white;
}

.project-cta h2 {
    color: white;
    margin-bottom: 1rem;
    font-size: 2.5rem;
}

.project-cta .lead {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
}

.cta-buttons .btn {
    margin: 0.5rem;
}

.btn-outline-dark {
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
}

.btn-outline-dark:hover {
    background-color: white;
    border-color: white;
    color: var(--secondary-color);
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 1200px) {
    .project-title {
        font-size: 3rem;
    }
    
    .project-image-container {
        height: 60vh;
    }
}

@media (max-width: 992px) {
    .project-header {
        padding: 100px 0 40px;
    }
    
    .project-title {
        font-size: 2.5rem;
    }
    
    .project-meta {
        gap: 1rem;
    }
    
    .project-meta span:not(:last-child)::after {
        right: -0.75rem;
    }
    
    .project-image-container {
        height: 50vh;
    }
    
    .project-info-sidebar {
        position: static;
        margin-top: 3rem;
    }
    
    .thumb-container {
        width: 100px;
        height: 65px;
    }
}

@media (max-width: 768px) {
    .project-title {
        font-size: 2rem;
    }
    
    .project-subtitle {
        font-size: 1.1rem;
    }
    
    .project-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .project-meta span:not(:last-child)::after {
        display: none;
    }
    
    .project-image-container {
        height: 40vh;
    }
    
    .project-main-slider .swiper-button-next,
    .project-main-slider .swiper-button-prev {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
    
    .thumb-container {
        width: 80px;
        height: 50px;
    }
    
    .project-thumb-slider .swiper-slide {
        margin-right: 10px;
    }
    
    .info-card {
        padding: 1.5rem;
    }
    
    .cta-buttons .btn {
        display: block;
        width: 100%;
        margin: 0.5rem 0;
    }
}

@media (max-width: 576px) {
    .project-header {
        padding: 90px 0 30px;
    }
    
    .project-title {
        font-size: 1.8rem;
    }
    
    .project-gallery,
    .project-details,
    .related-projects,
    .project-cta {
        padding: 50px 0;
    }
    
    .project-image-container {
        height: 35vh;
    }
    
    .project-description h2 {
        font-size: 2rem;
    }
    
    .project-description h3 {
        font-size: 1.5rem;
    }
    
    .project-cta h2 {
        font-size: 2rem;
    }
}

/* === ANIMATION ENHANCEMENTS === */
.project-image-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 0%, rgba(112, 1, 1, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.project-main-slider .swiper-slide:hover .project-image-container::before {
    opacity: 1;
}

/* Custom scrollbar for project details */
.project-description::-webkit-scrollbar {
    width: 6px;
}

.project-description::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.project-description::-webkit-scrollbar-thumb {
    background: var(--primary-color);
}

.project-description::-webkit-scrollbar-thumb:hover {
    background: #5a0101;
}
