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

/* Project Hero */
.project-hero {
    position: relative;
    height: 70vh;
    min-height: 500px;
    overflow: hidden;
    margin-top: 73px;
}

.project-hero-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

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

.project-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.3) 100%);
    z-index: 2;
    display: flex;
    align-items: flex-end;
    padding-bottom: var(--spacing-3xl);
}

.project-breadcrumb {
    font-size: 0.938rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--spacing-md);
}

.project-breadcrumb a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
}

.project-breadcrumb a:hover {
    color: white;
}

.project-breadcrumb span {
    color: var(--color-accent);
}

.project-hero-title {
    font-size: clamp(3rem, 6vw, 5rem);
    color: white;
    margin-bottom: var(--spacing-sm);
    line-height: 1.1;
}

.project-hero-subtitle {
    font-size: clamp(1.25rem, 2vw, 1.5rem);
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
}

/* Project Details */
.project-details {
    padding: var(--spacing-3xl) 0;
    background-color: white;
}

.project-details-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-3xl);
}

.project-info-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-2xl);
}

.info-card {
    background: linear-gradient(135deg, var(--color-bg-light) 0%, white 100%);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    text-align: center;
    border: 1px solid var(--color-border);
    transition: var(--transition);
}

.info-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-accent);
}

.info-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
    display: block;
}

.info-content h3 {
    font-size: 0.813rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--color-text-light);
    margin-bottom: var(--spacing-sm);
}

.info-content p {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1.3;
}

.project-description h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    margin-bottom: var(--spacing-lg);
    color: var(--color-primary);
}

.project-description p {
    font-size: 1.063rem;
    line-height: 1.8;
    color: var(--color-text);
    margin-bottom: var(--spacing-md);
}

.project-features {
    margin-top: var(--spacing-xl);
    padding: var(--spacing-lg);
    background-color: var(--color-bg-light);
    border-radius: var(--radius-md);
}

.project-features h3 {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-md);
    color: var(--color-primary);
}

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

.project-features li {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--color-text);
    padding-left: var(--spacing-lg);
    position: relative;
    margin-bottom: var(--spacing-sm);
}

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

@media (max-width: 968px) {
    .project-info-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .project-info-cards {
        grid-template-columns: 1fr;
    }

    .info-card {
        padding: var(--spacing-lg);
    }
}

/* Project Gallery */
.project-gallery {
    padding: var(--spacing-3xl) 0;
    background-color: var(--color-bg-light);
}

.project-gallery .section-heading {
    font-size: clamp(2rem, 4vw, 3rem);
    text-align: center;
    margin-bottom: var(--spacing-sm);
}

.project-gallery .section-description {
    font-size: 1.063rem;
    color: var(--color-text-light);
    text-align: center;
    margin-bottom: var(--spacing-2xl);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-md);
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
    background-color: white;
    cursor: pointer;
    transition: var(--transition);
}

.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
    transition: var(--transition);
}

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

.gallery-item-large {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-item-large img {
    height: 100%;
    min-height: 612px;
}

.gallery-item-wide {
    grid-column: span 2;
}

@media (max-width: 968px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-item-large,
    .gallery-item-wide {
        grid-column: span 2;
    }

    .gallery-item-large {
        grid-row: span 1;
    }

    .gallery-item-large img {
        height: 300px;
        min-height: auto;
    }
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-item-large,
    .gallery-item-wide {
        grid-column: span 1;
    }
}

/* Project CTA */
.project-cta {
    padding: var(--spacing-3xl) 0;
    background: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 100%);
    color: white;
}

.cta-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    color: white;
    margin-bottom: var(--spacing-md);
}

.cta-content p {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--spacing-xl);
    line-height: 1.7;
}

.cta-buttons {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
}

.cta-buttons .btn-outline-dark {
    background-color: transparent;
    color: white;
    border-color: white;
}

.cta-buttons .btn-outline-dark:hover {
    background-color: white;
    color: var(--color-primary);
}

@media (max-width: 768px) {
    .cta-buttons {
        flex-direction: column;
    }

    .cta-buttons .btn {
        width: 100%;
        justify-content: center;
    }
}

/* ===================================
   LIGHTBOX GALLERY
   =================================== */

.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

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

.lightbox-image {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: var(--radius-md);
    transition: opacity 0.3s ease;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 10001;
}

.lightbox-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 10001;
}

.lightbox-prev {
    left: 40px;
}

.lightbox-next {
    right: 40px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

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

@media (max-width: 768px) {
    .lightbox-prev {
        left: 20px;
        width: 50px;
        height: 50px;
    }

    .lightbox-next {
        right: 20px;
        width: 50px;
        height: 50px;
    }

    .lightbox-close {
        top: 10px;
        right: 10px;
    }
}
