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

/* Project Hero */
.project-hero {
    min-height: 60vh;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
        url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?w=1920') center/cover;
    display: flex;
    align-items: center;
    position: relative;
    margin-top: 60px;
    padding: 4rem 0;
}

.project-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
}

.project-hero .container {
    position: relative;
    z-index: 1;
}

.breadcrumb {
    position: relative;
    z-index: 1;
    color: white;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    text-align: left;
}

.breadcrumb a {
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.breadcrumb a:hover {
    color: #FFC107;
}

.breadcrumb span {
    margin: 0 0.5rem;
}

.project-hero-title {
    position: relative;
    z-index: 1;
    color: white;
    font-size: 3rem;
    margin-bottom: 2rem;
    text-align: left;
    max-width: 900px;
    line-height: 1.2;
}

.project-meta {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    color: white;
}

.project-meta span {
    padding: 0.8rem 1.5rem;
    background: rgba(255, 193, 7, 0.2);
    border-left: 3px solid #FFC107;
    backdrop-filter: blur(10px);
}

.project-meta strong {
    color: #FFC107;
    margin-right: 0.5rem;
}

/* Project Overview */
.project-overview {
    padding: 5rem 0;
    background: var(--light-color, #FFFFFF);
}

[data-theme="dark"] .project-overview {
    background: #1a1a1a;
}

.overview-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
}

.overview-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark, #333333);
}

[data-theme="dark"] .overview-content h2 {
    color: #E0E0E0;
}

.overview-content h3 {
    font-size: 1.8rem;
    margin: 2rem 0 1rem;
    color: var(--text-dark, #333333);
}

[data-theme="dark"] .overview-content h3 {
    color: #E0E0E0;
}

.overview-content p {
    color: var(--text-light, #666666);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

[data-theme="dark"] .overview-content p {
    color: #B0B0B0;
}

.divider {
    width: 60px;
    height: 3px;
    background: #FFC107;
    margin-bottom: 2rem;
}

.divider-center {
    width: 60px;
    height: 3px;
    background: #FFC107;
    margin: 1rem auto 3rem;
}

.features-list {
    list-style: none;
    margin-top: 1rem;
}

.features-list li {
    padding: 0.8rem 0;
    padding-left: 2rem;
    position: relative;
    color: var(--text-light, #666666);
    border-bottom: 1px solid #e0e0e0;
}

[data-theme="dark"] .features-list li {
    color: #B0B0B0;
    border-bottom-color: #3a3a3a;
}

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

.overview-sidebar .info-card,
.overview-sidebar .cta-card {
    background: var(--bg-light, #F9F9F9);
    padding: 2rem;
    margin-bottom: 2rem;
    border-left: 4px solid #FFC107;
}

[data-theme="dark"] .overview-sidebar .info-card,
[data-theme="dark"] .overview-sidebar .cta-card {
    background: #242424;
}

.info-card h3,
.cta-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark, #333333);
}

[data-theme="dark"] .info-card h3,
[data-theme="dark"] .cta-card h3 {
    color: #E0E0E0;
}

.info-item {
    display: flex;
    justify-content: space-between;
    padding: 1rem 0;
    border-bottom: 1px solid #ddd;
}

[data-theme="dark"] .info-item {
    border-bottom-color: #3a3a3a;
}

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

.info-item strong {
    color: var(--text-dark, #333333);
}

[data-theme="dark"] .info-item strong {
    color: #E0E0E0;
}

.info-item span {
    color: var(--text-light, #666666);
    text-align: right;
}

[data-theme="dark"] .info-item span {
    color: #B0B0B0;
}

.cta-card {
    background: #FFC107 !important;
    text-align: center;
}

.cta-card h3 {
    color: #2C2C2C !important;
}

.cta-card p {
    color: #2C2C2C;
    margin-bottom: 1.5rem;
}

.cta-card .btn {
    background: #2C2C2C;
    color: white;
}

/* Buttons */
.btn {
    padding: 15px 40px;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: bold;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
}

.btn-primary {
    background: #FFC107;
    color: #2C2C2C;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 193, 7, 0.3);
}

.btn-outline {
    background: transparent;
    border: 2px solid #FFC107;
    color: #FFC107;
}

.btn-outline:hover {
    background: #FFC107;
    color: #2C2C2C;
}

.btn-outline-dark {
    background: transparent;
    border: 2px solid var(--text-dark, #333333);
    color: var(--text-dark, #333333);
    margin: 2rem auto;
    display: block;
}

[data-theme="dark"] .btn-outline-dark {
    border-color: #E0E0E0;
    color: #E0E0E0;
}

.btn-outline-dark:hover {
    background: var(--text-dark, #333333);
    color: var(--light-color, #FFFFFF);
}

/* Project Gallery */
.project-gallery {
    padding: 5rem 0;
    background: var(--bg-light, #F9F9F9);
}

[data-theme="dark"] .project-gallery {
    background: #242424;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark, #333333);
}

[data-theme="dark"] .section-title {
    color: #E0E0E0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: 3rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    height: 250px;
    border-radius: 5px;
}

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

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

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

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

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 2rem 1rem 1rem;
    transform: translateY(100%);
    transition: all 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay span {
    color: white;
    font-weight: 500;
}

/* Project Process */
.project-process {
    padding: 5rem 0;
    background: var(--light-color, #FFFFFF);
}

[data-theme="dark"] .project-process {
    background: #1a1a1a;
}

.process-timeline {
    margin-top: 3rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.timeline-item {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    position: relative;
}

.timeline-item:not(:last-child):before {
    content: '';
    position: absolute;
    left: 35px;
    top: 80px;
    width: 2px;
    height: calc(100% + 3rem);
    background: #FFC107;
    opacity: 0.3;
}

.timeline-number {
    width: 70px;
    height: 70px;
    background: #FFC107;
    color: #2C2C2C;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.timeline-content {
    flex: 1;
    padding-top: 0.5rem;
}

.timeline-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark, #333333);
}

[data-theme="dark"] .timeline-content h3 {
    color: #E0E0E0;
}

.timeline-content p {
    color: var(--text-light, #666666);
    line-height: 1.6;
}

[data-theme="dark"] .timeline-content p {
    color: #B0B0B0;
}

/* Project Challenges */
.project-challenges {
    padding: 5rem 0;
    background: var(--bg-light, #F9F9F9);
}

[data-theme="dark"] .project-challenges {
    background: #242424;
}

.challenges-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    align-items: center;
}

.challenges-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark, #333333);
}

[data-theme="dark"] .challenges-content h2 {
    color: #E0E0E0;
}

.challenge-item {
    margin-bottom: 2.5rem;
    padding: 2rem;
    background: var(--light-color, #FFFFFF);
    border-left: 4px solid #FFC107;
}

[data-theme="dark"] .challenge-item {
    background: #1a1a1a;
}

.challenge-item h3 {
    font-size: 1.3rem;
    color: var(--text-dark, #333333);
    margin-bottom: 0.5rem;
}

[data-theme="dark"] .challenge-item h3 {
    color: #E0E0E0;
}

.challenge-item h4 {
    font-size: 1.1rem;
    color: #FFC107;
    margin: 1rem 0 0.5rem;
}

.challenge-item p {
    color: var(--text-light, #666666);
    line-height: 1.6;
}

[data-theme="dark"] .challenge-item p {
    color: #B0B0B0;
}

.challenges-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 5px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

/* Related Projects */
.related-projects {
    padding: 5rem 0;
    background: var(--light-color, #FFFFFF);
}

[data-theme="dark"] .related-projects {
    background: #1a1a1a;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.project-card {
    background: var(--bg-light, #F9F9F9);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
}

[data-theme="dark"] .project-card {
    background: #242424;
    border-color: #3a3a3a;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

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

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

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

.project-content {
    padding: 2rem;
}

.project-content h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-dark, #333333);
}

[data-theme="dark"] .project-content h3 {
    color: #E0E0E0;
}

.project-content p {
    color: var(--text-light, #666666);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

[data-theme="dark"] .project-content p {
    color: #B0B0B0;
}

.btn-link {
    background: none;
    border: 1px solid var(--text-dark, #333333);
    padding: 10px 20px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

[data-theme="dark"] .btn-link {
    border-color: #E0E0E0;
    color: #E0E0E0;
}

.btn-link:hover {
    background: var(--text-dark, #333333);
    color: white;
}

[data-theme="dark"] .btn-link:hover {
    background: #E0E0E0;
    color: #2C2C2C;
}

/* CTA Section */
.cta {
    background: #2C2C2C;
    padding: 3rem 0;
}

.cta-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cta h2 {
    color: #FFFFFF;
    font-size: 2rem;
}

.cta .btn-outline {
    color: #FFC107;
    border-color: #FFC107;
}

/* Responsive */
@media (max-width: 1024px) {
    .overview-grid,
    .challenges-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gallery-item.large,
    .gallery-item.large-horizontal {
        grid-column: span 2;
    }
    
    .project-hero-title {
        font-size: 2.5rem;
    }
    
    .project-meta {
        flex-direction: column;
        gap: 1rem;
    }
    
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .project-hero-title {
        font-size: 2rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-item.large,
    .gallery-item.large-horizontal {
        grid-column: span 1;
    }
    
    .timeline-item {
        flex-direction: column;
        gap: 1rem;
    }
    
    .timeline-item:not(:last-child):before {
        display: none;
    }
    
    .challenges-image img {
        height: 300px;
    }
    
    .overview-content h2,
    .challenges-content h2 {
        font-size: 2rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
}

@media (max-width: 375px) {
    .project-hero {
        min-height: 50vh;
        padding: 3rem 0;
    }
    
    .project-hero-title {
        font-size: 1.5rem;
    }
    
    .project-meta span {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }
    
    .overview-sidebar .info-card,
    .overview-sidebar .cta-card {
        padding: 1.5rem;
    }
    
    .challenge-item {
        padding: 1.5rem;
    }
}