/* Project Detail Page Styles */

/* Project Hero Section */
.project-hero {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    overflow: hidden;
}

.project-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="1" fill="%23ffffff" opacity="0.1"/></svg>') repeat;
    background-size: 50px 50px;
}

.project-hero .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.5) 100%);
}

.project-hero .hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    padding: var(--spacing-xl) 0;
}

.project-category {
    display: inline-block;
    padding: var(--spacing-xs) var(--spacing-md);
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: var(--spacing-md);
    backdrop-filter: blur(10px);
}

.project-hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    line-height: 1.2;
}

.project-location {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    font-size: 1.125rem;
    opacity: 0.9;
}

.project-location svg {
    opacity: 0.8;
}

/* Project Overview Section */
.project-overview {
    padding: var(--spacing-xxl) 0;
    background: var(--white);
}

.overview-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-xxl);
}

@media (min-width: 1024px) {
    .overview-grid {
        grid-template-columns: 2fr 1fr;
        align-items: start;
    }
}

.overview-content h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: var(--spacing-lg);
    position: relative;
}

.overview-content h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

.overview-content p {
    color: var(--gray);
    line-height: 1.8;
    margin-bottom: var(--spacing-md);
    font-size: 1.0625rem;
}

.overview-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-lg);
}

.stat-item {
    text-align: center;
    padding: var(--spacing-lg);
    background: var(--light);
    border-radius: var(--radius-lg);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
    margin-bottom: var(--spacing-xs);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

/* Project Gallery Section */
.project-gallery {
    padding: var(--spacing-xxl) 0;
    background: var(--light);
}

.project-gallery h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: var(--spacing-xxl);
    text-align: center;
    position: relative;
}

.project-gallery h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4/3;
}

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

@media (max-width: 768px) {
    .gallery-item-large {
        grid-column: span 1;
    }
}

.gallery-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 600;
    font-size: 1.125rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

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

.gallery-placeholder span {
    position: relative;
    z-index: 2;
    padding: var(--spacing-sm) var(--spacing-md);
    background: rgba(0, 0, 0, 0.3);
    border-radius: var(--radius);
    backdrop-filter: blur(5px);
}

/* Specifications Section */
.project-specs {
    padding: var(--spacing-xxl) 0;
    background: var(--white);
}

.project-specs h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: var(--spacing-xxl);
    text-align: center;
    position: relative;
}

.project-specs h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

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

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

.spec-category {
    background: var(--light);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.spec-category:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.spec-category h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-sm);
    border-bottom: 2px solid var(--primary);
}

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

.spec-list li {
    padding: var(--spacing-sm) 0;
    padding-left: var(--spacing-lg);
    position: relative;
    color: var(--gray);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: color 0.3s ease, padding-left 0.3s ease;
}

.spec-list li:last-child {
    border-bottom: none;
}

.spec-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.spec-list li:hover {
    color: var(--dark);
    padding-left: calc(var(--spacing-lg) + 4px);
}

.spec-list li:hover::before {
    opacity: 1;
}

/* Project Contact Section */
.project-contact {
    padding: var(--spacing-xxl) 0;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
}

.contact-card {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: var(--spacing-xxl);
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.contact-card h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: var(--spacing-md);
}

.contact-card p {
    color: var(--gray);
    font-size: 1.125rem;
    margin-bottom: var(--spacing-xl);
    line-height: 1.7;
}

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

.contact-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) var(--spacing-xl);
    border-radius: var(--radius);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-actions .btn-primary {
    background: var(--primary);
    color: var(--white);
}

.contact-actions .btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(74, 144, 226, 0.3);
}

.contact-actions .btn-secondary {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.contact-actions .btn-secondary:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

.contact-actions .btn svg {
    flex-shrink: 0;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .project-hero {
        min-height: 50vh;
    }
    
    .project-hero h1 {
        font-size: 2rem;
    }
    
    .overview-stats {
        gap: var(--spacing-md);
    }
    
    .stat-item {
        padding: var(--spacing-md);
    }
    
    .stat-number {
        font-size: 1.75rem;
    }
    
    .contact-card {
        padding: var(--spacing-xl);
    }
    
    .contact-card h2 {
        font-size: 1.5rem;
    }
    
    .contact-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Mobile Table Fix */
@media (max-width: 768px) {
    table th, table td {
        padding: 0.6rem 0.75rem !important;
        font-size: 0.8rem;
    }
    table th:first-child, table td:first-child {
        padding-left: 0.75rem !important;
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Print Styles */
@media print {
    .project-hero {
        min-height: auto;
        padding: var(--spacing-xl) 0;
    }
    
    .project-gallery,
    .project-specs {
        padding: var(--spacing-lg) 0;
    }
    
    .contact-card {
        box-shadow: none;
        border: 1px solid var(--gray-light);
    }
}
