/* Project Detail Pages */
.project-hero {
    padding: 6rem 0 4rem;
    background: var(--gradient);
    color: var(--white);
}

.project-breadcrumb {
    margin-bottom: 1rem;
    opacity: 0.8;
}

.project-breadcrumb a {
    color: var(--white);
    text-decoration: none;
}

.project-breadcrumb a:hover {
    text-decoration: underline;
}

.project-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.project-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.project-meta {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.project-meta span {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

.project-details {
    padding: 5rem 0;
    background: var(--white);
}

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

.project-image-showcase {
    margin-bottom: 3rem;
}

.main-image {
    margin-bottom: 2rem;
}

.project-full-image {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    align-items: start;
}

.gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
}

.gallery-item:has(.gallery-image[alt*="Admin"]),
.gallery-item:has(.gallery-image[alt*="Dashboard"]) {
    grid-column: span 2;
}

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

.gallery-item:has(.gallery-image[alt*="Mobile"]) {
    justify-self: center;
    max-width: 250px;
}

.gallery-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 1rem 0.75rem 0.75rem;
    font-size: 0.85rem;
    font-weight: 500;
    text-align: center;
}

.project-description h2 {
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.project-description h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin: 2rem 0 1rem;
}

.project-description h4 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.project-description p {
    line-height: 1.7;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

.feature-list {
    list-style: none;
    margin: 1.5rem 0;
}

.feature-list li {
    padding: 0.5rem 0;
    position: relative;
    padding-left: 1.5rem;
}

.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.technical-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.tech-section {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 10px;
}

.tech-section ul {
    list-style: none;
    margin-top: 1rem;
}

.tech-section li {
    padding: 0.25rem 0;
    color: var(--secondary-color);
}

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

.result-item {
    text-align: center;
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: 10px;
}

.result-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.result-label {
    color: var(--secondary-color);
    font-size: 0.9rem;
}

/* Sidebar */
.project-info-card,
.project-tech-card,
.project-actions-card {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
}

.project-info-card h3,
.project-tech-card h3,
.project-actions-card h3 {
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.info-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

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

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

.info-item span {
    color: var(--secondary-color);
}

.project-tech-card .tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.project-tech-card .tech-tag {
    background: var(--white);
    color: var(--text-dark);
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1rem;
}

.action-buttons .btn {
    width: 100%;
    text-align: center;
}

.action-note {
    font-size: 0.8rem;
    color: var(--secondary-color);
    font-style: italic;
    text-align: center;
}

/* Related Projects */
.related-projects {
    padding: 4rem 0;
    background: var(--bg-light);
}

.related-projects h2 {
    text-align: center;
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 3rem;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

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

.related-card:hover {
    transform: translateY(-5px);
}

.related-card img {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.related-card h3 {
    padding: 1.5rem 1.5rem 1rem;
    color: var(--text-dark);
    font-size: 1.2rem;
}

.related-card .btn {
    margin: 0 1.5rem 1.5rem;
    width: calc(100% - 3rem);
}

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

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

@media (max-width: 1024px) {
    .gallery-item:has(.gallery-image[alt*="Admin"]),
    .gallery-item:has(.gallery-image[alt*="Dashboard"]),
    .gallery-item.landscape {
        grid-column: span 1;
    }
}

/* Responsive Design for Project Pages */
@media (max-width: 768px) {
    .image-gallery {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .gallery-item:has(.gallery-image[alt*="Admin"]),
    .gallery-item:has(.gallery-image[alt*="Dashboard"]),
    .gallery-item.landscape {
        grid-column: span 1;
    }

    .gallery-item:has(.gallery-image[alt*="Mobile"]) {
        max-width: none;
        justify-self: stretch;
    }

    .gallery-label {
        font-size: 0.8rem;
        padding: 0.75rem 0.5rem 0.5rem;
    }
    
    .gallery-image {
        min-height: 150px;
        max-height: 300px;
    }

    .project-hero h1 {
        font-size: 2rem;
    }
    
    .project-meta {
        flex-direction: column;
        gap: 1rem;
    }
    
    .project-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .image-gallery {
        grid-template-columns: 1fr;
    }
    
    .technical-details {
        grid-template-columns: 1fr;
    }
    
    .results-grid {
        grid-template-columns: 1fr;
    }
    
    .result-number {
        font-size: 2rem;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .gallery-image {
        min-height: 120px;
        max-height: 250px;
    }
    .image-gallery {
        grid-template-columns: 1fr;
    }
    gallery-item:has(.gallery-image[alt*="Mobile"]) {
        max-width: 300px;
        justify-self: center;
        margin: 0 auto;
    }
}