/* Project Detail Page Styles */

.project-detail {
    margin-top: 60px;
}

.project-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--grey-dark) 100%);
    color: var(--white);
    padding: 4rem 0 3rem;
}

.back-link {
    display: inline-block;
    color: var(--white);
    text-decoration: none;
    margin-bottom: 2rem;
    transition: color 0.3s ease;
    font-size: 1.1rem;
}

.back-link:hover {
    color: var(--secondary-color);
}

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

.project-subtitle {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.coming-soon-banner {
    margin-bottom: 1.5rem;
}

.coming-soon-text {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 1rem;
    font-weight: 600;
    display: inline-block;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.project-content {
    padding: 4rem 0;
}

.project-content > div > div {
    margin-bottom: 4rem;
}

.project-media {
    margin-bottom: 3rem;
    display: flex;
    justify-content: center;
}

.featured-video,
.featured-image {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.featured-video {
    height: auto;
    aspect-ratio: 16 / 9;
}

.project-overview,
.project-details,
.project-technical,
.project-challenges,
.project-results,
.project-links,
.project-gallery,
.project-architecture,
.project-presentation {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.project-overview h2,
.project-details h2,
.project-technical h2,
.project-challenges h2,
.project-results h2,
.project-links h2,
.project-gallery h2,
.project-architecture h2,
.project-presentation h2 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 1.5rem;
    text-align: left;
}

.w-keyword {
    color: inherit;
    font-weight: 800;
}

.w-letter {
    color: var(--secondary-color);
}

.project-overview p,
.project-results p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #666;
}

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

.features-list li {
    padding: 0.8rem 0;
    padding-left: 2rem;
    position: relative;
    font-size: 1.1rem;
    line-height: 1.6;
}

.features-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
    font-size: 1.3rem;
}

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

.tech-item {
    background-color: var(--light-bg);
    padding: 2rem;
    border-radius: 10px;
}

.tech-item h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.tech-item ul {
    list-style: none;
    padding-left: 0;
}

.tech-item li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tech-item li::before {
    content: "▹";
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
}

.skill-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    flex-shrink: 0;
}

.tech-stack-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    justify-content: center;
}

.tech-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
    transition: transform 0.3s ease, filter 0.3s ease;
    filter: grayscale(30%);
}

.tech-logo:hover {
    transform: scale(1.15);
    filter: grayscale(0%);
}

.challenge-item {
    background-color: var(--light-bg);
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
}

.challenge-item h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.challenge-item p {
    margin-bottom: 0.8rem;
    line-height: 1.8;
    color: #666;
}

.challenge-item p:first-of-type {
    font-weight: 600;
    color: var(--grey-dark);
}

.resource-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.resource-link {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: var(--secondary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.resource-link:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
}

.gallery-item {
    margin-bottom: 2rem;
}

.gallery-image {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    margin-bottom: 1rem;
}

.gallery-video {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    margin-bottom: 1rem;
    aspect-ratio: 16 / 9;
}

.gallery-caption {
    font-size: 1rem;
    line-height: 1.7;
    color: #666;
    font-style: italic;
    text-align: center;
    padding: 0 1rem;
}

.architecture-diagram {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.arch-component {
    background-color: var(--light-bg);
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid var(--secondary-color);
}

.arch-component h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.arch-component ul {
    list-style: none;
    padding-left: 0;
}

.arch-component li {
    padding: 0.5rem 0;
    line-height: 1.6;
    color: #666;
}

.arch-component li strong {
    color: var(--grey-dark);
    display: block;
    margin-bottom: 0.2rem;
}

.arch-input {
    border-left-color: #4CAF50;
}

.arch-control {
    border-left-color: #2196F3;
}

.arch-output {
    border-left-color: #FF9800;
}

.architecture-flow {
    background-color: var(--light-bg);
    padding: 2rem;
    border-radius: 10px;
    margin-top: 2rem;
}

.architecture-flow h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.architecture-flow ol {
    padding-left: 1.5rem;
}

.architecture-flow li {
    padding: 0.5rem 0;
    line-height: 1.7;
    color: #666;
}

.architecture-flow li strong {
    color: var(--grey-dark);
}

.project-architecture > p:last-child {
    margin-top: 2rem;
    font-style: italic;
    color: #666;
    text-align: center;
    }

@media (max-width: 768px) {
    .project-hero h1 {
        font-size: 2rem;
    }

    .project-subtitle {
        font-size: 1.1rem;
    }

    .featured-video,
    .featured-image {
        max-width: 100%;
    }

    .tech-grid {
        grid-template-columns: 1fr;
    }

    .resource-links {
        flex-direction: column;
    }

    .resource-link {
        text-align: center;
    }
}
