/* Project Detail Page Styles */

.implementation-section {
    margin-bottom: 3.5rem;
}

.implementation-section h3 {
    margin-bottom: 1.2rem;
    color: var(--primary-color);
    font-size: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(49, 130, 206, 0.2);
    position: relative;
}

.implementation-section h3::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--secondary-color);
}

.project-detail {
    padding: 3rem 0;
}

.project-title {
    margin-bottom: 2.5rem;
}

.project-title h1 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.project-metadata {
    display: flex;
    gap: 2rem;
    align-items: center;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.project-date, .project-category {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
}

.project-date::before {
    content: '\f073';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--secondary-color);
}

.project-category::before {
    content: '\f07b';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--secondary-color);
}

.project-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.project-image-showcase {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: transform 0.3s ease;
}

.project-image-showcase:hover {
    transform: translateY(-5px);
}

.project-image-showcase img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.project-image-showcase:hover img {
    transform: scale(1.03);
}

.project-info {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.project-description h2, 
.project-tech-stack h2, 
.project-highlights h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 0.5rem;
}

.project-description h2::after, 
.project-tech-stack h2::after, 
.project-highlights h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--secondary-color);
}

.project-description p {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 1.2rem;
}

.project-tech-stack .tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    list-style: none;
}

.project-tech-stack .tech-tags li {
    background: rgba(49, 130, 206, 0.1);
    color: var(--secondary-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.project-tech-stack .tech-tags li:hover {
    background: var(--secondary-color);
    color: white;
    transform: translateY(-3px);
}

.project-highlights .feature-list {
    list-style: none;
}

.project-highlights .feature-list li {
    position: relative;
    padding-left: 1.8rem;
    margin-bottom: 1rem;
    line-height: 1.6;
    font-size: 1.05rem;
}

.project-highlights .feature-list li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--secondary-color);
    position: absolute;
    left: 0;
}

.code-snippet-preview {
    margin: 1.8rem 0;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    background-color: #282c34;
}

.code-header {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 0.8rem 1.2rem;
    font-weight: 500;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.code-snippet-preview pre {
    margin: 0;
    padding: 1.5rem;
    overflow-x: auto;
    background-color: #282c34;
    color: #abb2bf;
}

.code-snippet-preview code {
    font-family: 'Fira Code', 'Courier New', Courier, monospace;
    font-size: 0.9rem;
    line-height: 1.6;
}

.use-case {
    margin-top: 3.5rem;
}

.use-case h3 {
    text-align: center;
    margin-bottom: 2.5rem;
    font-size: 1.8rem;
    color: var(--primary-color);
    position: relative;
}

.use-case h3::after {
    content: '';
    position: absolute;
    bottom: -0.8rem;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--secondary-color);
}

.use-case-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.8rem;
}

.use-case-card {
    background-color: var(--bg-light);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.use-case-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.use-case-icon {
    font-size: 2.2rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    text-align: center;
    background: rgba(49, 130, 206, 0.1);
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-left: auto;
    margin-right: auto;
    transition: all 0.3s ease;
}

.use-case-card:hover .use-case-icon {
    background: var(--secondary-color);
    color: white;
    transform: scale(1.1);
}

.use-case-card h4 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
    text-align: center;
    color: var(--primary-color);
}

.use-case-card p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-muted);
    text-align: center;
}

.technical-insights {
    margin-top: 4rem;
    padding: 2.5rem;
    background-color: var(--bg-dark);
    border-radius: var(--border-radius);
    color: var(--text-light);
}

.technical-insights h2 {
    margin-bottom: 1.5rem;
    color: var(--text-light);
    font-size: 1.8rem;
}

.technical-insights p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
}

.technical-insights ul {
    margin-left: 1.5rem;
}

.technical-insights ul li {
    margin-bottom: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.technical-insights ul li strong {
    color: var(--accent-color);
    font-weight: 600;
}

.project-outcomes {
    margin-top: 3.5rem;
}

.project-outcomes h2 {
    margin-bottom: 1.8rem;
    color: var(--primary-color);
    font-size: 1.8rem;
    text-align: center;
    position: relative;
}

.project-outcomes h2::after {
    content: '';
    position: absolute;
    bottom: -0.8rem;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--secondary-color);
}

.project-outcomes p {
    color: var(--text-muted);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.outcomes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2.5rem;
}

.outcome-card {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    border-top: 4px solid var(--secondary-color);
}

.outcome-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.outcome-card h3 {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1.2rem;
    font-size: 1.25rem;
    color: var(--primary-color);
}

.outcome-card h3 i {
    color: var(--secondary-color);
    font-size: 1.3rem;
}

.outcome-card p {
    color: var(--text-muted);
    font-size: 1rem;
    text-align: left;
    margin-bottom: 0;
}

.challenges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2.5rem;
}

.challenge-card {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
}

.challenge-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.challenge-card h3 {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1.2rem;
    font-size: 1.25rem;
    color: var(--primary-color);
}

.challenge-card h3 i {
    color: var(--secondary-color);
    font-size: 1.3rem;
}

.challenge-card p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
}

.demo-link {
    margin-top: 1.5rem;
}

.architecture-diagram {
    margin: 2rem 0;
    text-align: center;
}

.architecture-diagram img {
    max-width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.8rem;
    margin-top: 2rem;
}

.feature-item {
    background: var(--bg-light);
    padding: 1.8rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
    height: 100%;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    background: rgba(49, 130, 206, 0.1);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-left: auto;
    margin-right: auto;
}

.feature-item h4 {
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
    color: var(--primary-color);
}

.feature-item p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.gallery-item {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
}

.gallery-item .caption {
    padding: 1rem;
    background: var(--bg-light);
    font-size: 0.9rem;
    color: var(--text-muted);
    text-align: center;
    margin: 0;
}

.note-box {
    background: rgba(251, 191, 36, 0.1);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--accent-color);
    margin: 1.5rem 0;
}

.note-box p {
    margin-bottom: 0;
    color: var(--text-color);
    font-size: 1rem;
}

@media (max-width: 768px) {
    .use-case-grid {
        grid-template-columns: 1fr;
    }
    
    .project-showcase {
        grid-template-columns: 1fr;
    }
    
    .outcomes-grid,
    .challenges-grid,
    .features-grid {
        grid-template-columns: 1fr;
    }
}