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

/* Base overrides */
body {
    padding-top: 0;
}

/* Logo link styling */
.logo a {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
}

/* Ensure images load properly */
img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Project Hero */
.project-hero {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: flex-end;
    padding-bottom: 4rem;
    margin-top: 70px;
}

.project-hero-image {
    position: absolute;
    inset: 0;
    z-index: 0;
}

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

.project-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
}

.project-hero-content {
    position: relative;
    z-index: 10;
    width: 100%;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #fff;
    font-size: 0.938rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.back-link:hover {
    gap: 0.75rem;
}

.project-hero-title {
    font-size: 3rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
}

.project-hero-location {
    font-size: 1.25rem;
    color: #e5e7eb;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Project Info Cards */
.project-info-section {
    padding: 4rem 0;
    background: #fff;
}

.project-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.project-info-card {
    background: #f9fafb;
    padding: 2rem;
    border-radius: 0.75rem;
    text-align: center;
    transition: all 0.3s ease;
}

.project-info-card:hover {
    background: #f3f4f6;
    transform: translateY(-4px);
}

.info-icon-box {
    width: 4rem;
    height: 4rem;
    background: #fff;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.info-icon-box i {
    font-size: 1.75rem;
    color: #2c3e50;
}

.info-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.info-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
}

/* Project Description */
.project-description-section {
    padding: 4rem 0;
    background: #f9fafb;
}

.description-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

.description-content {
    max-width: 100%;
}

.description-text {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #374151;
    margin-bottom: 1.5rem;
}

.features-list {
    background: #fff;
    padding: 2.5rem;
    border-radius: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.features-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #1a1a1a;
}

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

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 0;
    font-size: 1.063rem;
    color: #374151;
    border-bottom: 1px solid #f3f4f6;
}

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

.feature-item i {
    color: #10b981;
    font-size: 1.25rem;
    flex-shrink: 0;
}

/* Project Gallery */
.project-gallery-section {
    padding: 4rem 0;
    background: #fff;
}

.gallery-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 3rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 0.75rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

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

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

/* Testimonial */
.testimonial-section {
    padding: 4rem 0;
    background: #2c3e50;
}

.testimonial-card {
    background: #fff;
    padding: 3rem;
    border-radius: 1rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.quote-icon {
    width: 4rem;
    height: 4rem;
    background: #f3f4f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
}

.quote-icon i {
    font-size: 1.5rem;
    color: #2c3e50;
}

.testimonial-text {
    font-size: 1.25rem;
    line-height: 1.8;
    color: #374151;
    font-style: italic;
    margin-bottom: 2rem;
}

.testimonial-author {
    border-top: 2px solid #f3f4f6;
    padding-top: 1.5rem;
}

.author-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.25rem;
}

.author-location {
    font-size: 1rem;
    color: #6b7280;
}

/* Related Projects */
.related-projects-section {
    padding: 4rem 0;
    background: #f9fafb;
}

.related-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

.related-card {
    background: #fff;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: block;
}

.related-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

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

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

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

.related-content {
    padding: 1.5rem;
}

.related-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

.related-location {
    font-size: 0.938rem;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* CTA Section */
.cta-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
}

.cta-content {
    text-align: center;
    color: #fff;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-text {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: #e5e7eb;
}

.cta-section .btn-primary {
    background: #fff;
    color: #2c3e50;
}

.cta-section .btn-primary:hover {
    background: #f3f4f6;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.container-small {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ============================================
   RESPONSIVE DESIGN FOR PROJECT PAGES
   ============================================ */

@media (max-width: 767px) {
    .project-hero {
        min-height: 50vh;
        padding-bottom: 2rem;
    }

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

    .project-hero-location {
        font-size: 1rem;
    }

    .project-info-section,
    .project-description-section,
    .project-gallery-section,
    .testimonial-section,
    .related-projects-section,
    .cta-section {
        padding: 3rem 0;
    }

    .testimonial-card {
        padding: 2rem;
    }

    .testimonial-text {
        font-size: 1.063rem;
    }

    .cta-title {
        font-size: 1.75rem;
    }

    .cta-text {
        font-size: 1.063rem;
    }
}

@media (min-width: 768px) {
    .project-info-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .description-grid {
        grid-template-columns: 2fr 1fr;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .related-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .project-hero-title {
        font-size: 4rem;
    }

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