/* ===================================
   PROJECT DETAIL PAGE STYLES
   =================================== */

/* Project Hero Section */
.project-hero {
    padding: 140px 0 80px;
    background-color: #2c5f4f;
    color: var(--text-white);
    position: relative;
    background-size: cover;
    background-position: center;
    min-height: 500px;
    display: flex;
    align-items: center;
}

.project-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.7) 100%);
    z-index: 1;
}

.project-hero-content {
    position: relative;
    z-index: 2;
}

.back-link {
    display: inline-flex;
    align-items: center;
    color: var(--text-white);
    font-size: 0.95rem;
    margin-bottom: 20px;
    opacity: 0.9;
    transition: var(--transition);
}

.back-link:hover {
    opacity: 1;
    transform: translateX(-5px);
}

.project-location-badge {
    display: inline-block;
    background: rgba(201, 160, 92, 0.2);
    color: var(--accent-color);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 16px;
    border: 1px solid rgba(201, 160, 92, 0.3);
}

.project-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.2;
}

.project-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 32px;
    max-width: 800px;
}

.project-meta {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    flex-direction: column;
}

.meta-label {
    font-size: 0.85rem;
    opacity: 0.8;
    margin-bottom: 4px;
}

.meta-value {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--accent-color);
}

/* Project Details Section */
.project-details {
    padding: 80px 0;
    background: var(--bg-white);
}

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

.project-description h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    margin-top: 40px;
}

.project-description h2:first-child {
    margin-top: 0;
}

.project-description p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.features-list {
    list-style: none;
    padding: 0;
}

.features-list li {
    padding: 12px 0 12px 32px;
    position: relative;
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--text-dark);
}

.features-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
    font-size: 1.2rem;
}

.project-cta {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 40px;
    border-radius: 8px;
    margin-top: 60px;
    text-align: center;
    border: 2px solid var(--accent-color);
}

.project-cta h3 {
    font-size: 1.75rem;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.project-cta p {
    font-size: 1.1rem;
    margin-bottom: 24px;
    color: var(--text-dark);
}

/* Sidebar */
.project-info-box {
    background: var(--bg-light);
    padding: 32px;
    border-radius: 8px;
    border-left: 4px solid var(--accent-color);
    position: sticky;
    top: 100px;
}

.project-info-box h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid #ddd;
}

.info-item {
    margin-bottom: 20px;
}

.info-label {
    font-size: 0.85rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    font-weight: 600;
}

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

/* Photo Gallery */
.project-gallery {
    padding: 80px 0;
    background: #fafafa;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, #e0e0e0 0%, #f5f5f5 100%);
}

.gallery-item.portrait {
    aspect-ratio: 3/4;
}

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

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

.gallery-item::after {
    content: '🔍';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    background: rgba(44, 95, 79, 0.9);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 85%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 4px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
    transition: var(--transition);
}

.lightbox-close:hover {
    color: var(--accent-color);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    padding: 16px;
    user-select: none;
    transition: var(--transition);
}

.lightbox-prev:hover,
.lightbox-next:hover {
    color: var(--accent-color);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-caption {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    text-align: center;
    padding: 12px 24px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 4px;
    font-size: 0.95rem;
}

/* Related Projects */
.related-projects {
    padding: 80px 0;
    background: #fafafa;
}

.related-projects .section-title {
    text-align: center;
    margin-bottom: 50px;
}

.related-projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.related-project-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.related-project-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.related-project-card h3 {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin: 20px 20px 10px;
}

.related-project-card p {
    color: #666;
    font-size: 0.95rem;
    margin: 0 20px 20px;
}

.related-project-card .btn {
    margin: 0 20px 20px;
    display: inline-block;
}

.projects-nav {
    margin-top: 32px;
    text-align: center;
}

/* Responsive */
@media (max-width: 968px) {
    .project-content {
        grid-template-columns: 1fr;
    }

    .project-info-box {
        position: static;
    }

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

    .related-projects-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 640px) {
    .project-title {
        font-size: 2rem;
    }

    .project-subtitle {
        font-size: 1.05rem;
    }

    .project-meta {
        gap: 20px;
    }

    .project-hero {
        padding: 120px 0 60px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .lightbox-prev,
    .lightbox-next {
        font-size: 30px;
        padding: 10px;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }
}
