/* Project Details Page Styles */

/* Banner */
.project-banner {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: flex-end;
    margin-top: 80px;
    padding-bottom: 50px;
}

.project-banner-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-color: var(--primary-color);
    background-size: cover;
    background-position: center;
}

.project-banner-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.7) 100%);
}

.project-title {
    color: white;
    font-size: 3rem;
    margin-bottom: 10px;
    position: relative;
    z-index: 2;
}

.project-location {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 0;
    opacity: 0.9;
    position: relative;
    z-index: 2;
}

/* Overview Section */
.project-overview {
    padding: 80px 0;
    background-color: white;
}

.project-details-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
}

.project-description h2 {
    font-size: 2.2rem;
    margin-bottom: 30px;
    color: var(--primary-color);
}

.project-description h3 {
    font-size: 1.5rem;
    margin: 30px 0 15px;
    color: var(--secondary-color);
}

.project-brief {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.project-description p {
    margin-bottom: 20px;
    color: var(--grey-color);
    line-height: 1.7;
}

.project-info {
    align-self: start;
}

.info-box {
    background-color: var(--light-color);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow);
}

.info-box h3 {
    font-size: 1.4rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.info-box ul {
    list-style: none;
    padding: 0;
}

.info-box li {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
}

.info-box strong {
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 5px;
}

.info-box span {
    color: var(--grey-color);
}

/* Gallery Section */
.project-gallery {
    padding: 80px 0;
    background-color: var(--light-color);
}

.project-gallery h2 {
    font-size: 2.2rem;
    margin-bottom: 40px;
    text-align: center;
    color: var(--primary-color);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.gallery-item {
    height: 300px;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    position: relative;
    background-color: #e0e0e0; /* Light grey placeholder background */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.5s ease, transform 0.3s ease; /* Added opacity transition */
    opacity: 0; /* Initially hidden */
}

.gallery-item img.loaded {
    opacity: 1; /* Fade in when loaded */
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

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

/* Features Section */
.key-features {
    padding: 80px 0;
    background-color: white;
}

.key-features h2 {
    font-size: 2.2rem;
    margin-bottom: 40px;
    text-align: center;
    color: var(--primary-color);
}

.features-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.features-list li {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.features-list i {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-top: 5px;
}

.features-list h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.features-list p {
    color: var(--grey-color);
    margin: 0;
}

/* Related Projects */
.related-projects {
    padding: 80px 0;
    background-color: var(--light-color);
}

.related-projects h2 {
    font-size: 2.2rem;
    margin-bottom: 40px;
    text-align: center;
    color: var(--primary-color);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.related-item {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.related-item:hover {
    transform: translateY(-5px);
}

.related-image {
    height: 250px;
    overflow: hidden;
}

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

.related-item:hover .related-image img {
    transform: scale(1.05);
}

.related-title {
    padding: 20px;
    text-align: center;
    font-size: 1.2rem;
}

.related-link {
    display: block;
    text-align: center;
    padding: 0 0 20px;
    font-weight: 500;
    color: var(--secondary-color);
    position: relative;
}

.related-link::after {
    content: '→';
    margin-left: 5px;
    transition: var(--transition);
}

.related-item:hover .related-link::after {
    margin-left: 10px;
}

.back-to-projects {
    text-align: center;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .project-details-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .features-list {
        grid-template-columns: 1fr;
    }
    
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .project-banner {
        min-height: 400px;
    }
    
    .project-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
    
    .project-banner {
        min-height: 300px;
    }
    
    .project-title {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .project-banner {
        min-height: 250px;
    }
    
    .project-title {
        font-size: 1.8rem;
    }
}

/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
    transition: color 0.3s ease;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close:hover {
    color: #f1f1f1;
    background: rgba(0, 0, 0, 0.7);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    padding: 20px;
    user-select: none;
    transition: all 0.3s ease;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
}

.lightbox-nav:hover {
    background: rgba(0, 0, 0, 0.7);
    color: #f1f1f1;
}

.lightbox-prev {
    left: 30px;
}

.lightbox-next {
    right: 30px;
}

.lightbox-counter {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 16px;
    background: rgba(0, 0, 0, 0.7);
    padding: 10px 20px;
    border-radius: 20px;
    z-index: 10001;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .lightbox-close {
        top: 10px;
        right: 15px;
        font-size: 30px;
        width: 50px;
        height: 50px;
    }
    
    .lightbox-nav {
        font-size: 24px;
        width: 50px;
        height: 50px;
        padding: 15px;
    }
    
    .lightbox-prev {
        left: 15px;
    }
    
    .lightbox-next {
        right: 15px;
    }
    
    .lightbox-counter {
        bottom: 20px;
        font-size: 14px;
        padding: 8px 16px;
    }
    
    .lightbox-content {
        max-width: 95%;
        max-height: 85%;
    }
} 