/* Project Detail Page Styles */

.project-hero {
    position: relative;
    height: 80vh;
    min-height: 600px;
    margin-top: 76px;
    overflow: hidden;
}

.project-hero .carousel-inner,
.project-hero .carousel-item,
.project-hero .carousel-item img {
    height: 100%;
}

.project-hero .carousel-item img {
    width: 100%;
    object-fit: cover;
}

.project-hero-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 4rem 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
    z-index: 10;
}

.project-hero-category {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.project-hero-title {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 700;
    color: var(--bg-white);
    margin-bottom: 0.5rem;
}

.project-hero-location {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
}

/* Project Details */
.project-content {
    font-size: 1.05rem;
    line-height: 1.9;
}

.project-intro {
    border-left: 4px solid var(--primary-color);
    padding-left: 2rem;
}

.project-intro .lead {
    font-size: 1.3rem;
    color: var(--text-dark);
}

.section-heading {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.custom-list {
    list-style: none;
    padding-left: 0;
}

.custom-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1rem;
}

.custom-list li::before {
    content: '\f0da';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

/* Sidebar */
.project-info-card {
    background: var(--bg-light);
    padding: 2rem;
    border: 1px solid var(--border-color);
}

.info-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--primary-color);
}

.info-item {
    display: flex;
    justify-content: space-between;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

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

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

.info-value {
    color: var(--text-light);
}

.share-card {
    background: var(--bg-light);
    padding: 2rem;
    border: 1px solid var(--border-color);
}

.share-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.share-buttons {
    display: flex;
    gap: 0.75rem;
}

.share-btn {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-white);
    color: var(--text-dark);
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.share-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--bg-white);
}

.cta-card {
    background: var(--primary-color);
    padding: 2rem;
    text-align: center;
    color: var(--bg-white);
}

.cta-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--bg-white);
}

.cta-text {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
}

/* Gallery */
.gallery-item {
    position: relative;
    display: block;
    overflow: hidden;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.gallery-overlay i {
    color: var(--bg-white);
    font-size: 2rem;
}

/* Related Projects */
.related-project-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.related-project-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.related-project-image {
    overflow: hidden;
}

.related-project-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

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

.related-category {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--primary-color);
}

.related-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0.5rem 0 1rem;
}

.related-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
    text-decoration: none;
    transition: all 0.3s ease;
}

.related-link:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

/* Next Project */
.next-project {
    position: relative;
    height: 60vh;
    min-height: 400px;
    overflow: hidden;
}

.next-project-link {
    display: block;
    width: 100%;
    height: 100%;
    background: url('https://images.unsplash.com/photo-1600585154340-be6161a56a0c?w=1920&h=800&fit=crop');
    background-size: cover;
    background-position: center;
    position: relative;
    text-decoration: none;
    transition: all 0.6s ease;
}

.next-project-link:hover {
    transform: scale(1.02);
}

.next-project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

.next-project-link:hover .next-project-overlay {
    background: rgba(0, 0, 0, 0.3);
}

.next-project-content {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.next-label {
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.next-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    color: var(--bg-white);
    margin-bottom: 0.5rem;
}

.next-category {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
}

@media (max-width: 991px) {
    .project-sidebar {
        margin-top: 3rem;
    }
}

@media (max-width: 767px) {
    .project-hero {
        height: 60vh;
        min-height: 400px;
    }

    .project-hero-title {
        font-size: 2.5rem;
    }

    .gallery-item img {
        height: 250px;
    }
}