/* ========== Project Detail Page Styles ========== */

.project-hero {
    padding: 140px 0 80px;
    background: linear-gradient(135deg, var(--darker-bg) 0%, var(--dark-bg) 100%);
    border-bottom: 1px solid var(--border-color);
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.breadcrumb a {
    color: var(--primary-color);
    transition: var(--transition);
}

.breadcrumb a:hover {
    color: var(--accent-color);
}

.breadcrumb span {
    color: var(--text-muted);
}

.project-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--text-primary), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.project-lead {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 800px;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.project-meta-header {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.project-meta-header span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.project-meta-header i {
    color: var(--primary-color);
}

/* ========== Project Details Section ========== */
.project-details {
    padding: 80px 0;
}

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

.project-main h2 {
    color: var(--primary-color);
    margin-top: 3rem;
    margin-bottom: 1rem;
    font-size: 1.75rem;
}

.project-main h2:first-of-type {
    margin-top: 0;
}

.project-main p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.project-main ul {
    margin: 1.5rem 0;
    padding-left: 1.5rem;
}

.project-main ul li {
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    line-height: 1.8;
}

.project-main ul li strong {
    color: var(--primary-color);
}

.project-image-showcase {
    width: 100%;
    margin-bottom: 3rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-color);
}

.project-image-showcase img {
    width: 100%;
    height: auto;
    display: block;
}

/* ========== Tech Stack ========== */
.tech-stack {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin: 2rem 0;
}

.tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.5rem;
    background: var(--light-bg);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    min-width: 100px;
    transition: var(--transition);
}

.tech-item:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.tech-item i {
    font-size: 2.5rem;
    color: var(--primary-color);
}

.tech-item span {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 600;
}

/* ========== Features Grid ========== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.feature-item {
    padding: 2rem;
    background: var(--light-bg);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.feature-item:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: rgba(150, 191, 72, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.feature-icon i {
    font-size: 1.75rem;
    color: var(--primary-color);
}

.feature-item h4 {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.feature-item p {
    font-size: 0.95rem;
    margin: 0;
}

/* ========== Results Grid ========== */
.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.result-item {
    text-align: center;
    padding: 2rem;
    background: var(--light-bg);
    border-radius: 12px;
    border: 2px solid var(--border-color);
    transition: var(--transition);
}

.result-item:hover {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

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

.result-label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.result-item p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
}

/* ========== Sidebar ========== */
.project-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar-card {
    background: var(--light-bg);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.sidebar-card h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

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

.detail-item strong {
    color: var(--text-muted);
    font-weight: 600;
}

.detail-item span {
    color: var(--text-primary);
}

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

.tech-tag {
    padding: 0.5rem 1rem;
    background: rgba(150, 191, 72, 0.2);
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.achievements-list {
    list-style: none;
    padding: 0;
}

.achievements-list li {
    padding: 0.75rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
}

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

.achievements-list i {
    color: var(--primary-color);
}

.cta-card {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
}

.cta-card h3 {
    color: white;
}

.cta-card p {
    color: rgba(255, 255, 255, 0.9);
}

.btn-block {
    width: 100%;
    margin-top: 1rem;
    background: white;
    color: var(--primary-color);
}

.btn-block:hover {
    background: var(--text-primary);
}

/* ========== Related Projects ========== */
.related-projects {
    padding: 80px 0;
    background: var(--darker-bg);
    border-top: 1px solid var(--border-color);
}

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

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

.related-card {
    background: var(--light-bg);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    display: block;
}

.related-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.related-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.related-card h4 {
    padding: 1.5rem 1.5rem 0.5rem;
    margin: 0;
    color: var(--text-primary);
}

.related-card p {
    padding: 0 1.5rem 1.5rem;
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ========== Responsive Design ========== */
@media (max-width: 968px) {
    .project-content-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .project-sidebar {
        order: -1;
    }

    .project-title {
        font-size: 2rem;
    }

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

    .results-grid,
    .features-grid {
        grid-template-columns: 1fr;
    }
}

/* ========== Process Timeline ========== */
.process-timeline {
    position: relative;
    padding: 2rem 0;
    margin: 2rem 0;
}

.process-timeline::before {
    content: '';
    position: absolute;
    right: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--primary-color);
    opacity: 0.3;
}

[dir="ltr"] .process-timeline::before {
    left: 20px;
    right: auto;
}

.timeline-item {
    position: relative;
    padding-right: 80px;
    margin-bottom: 2.5rem;
}

[dir="ltr"] .timeline-item {
    padding-left: 80px;
    padding-right: 0;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-marker {
    position: absolute;
    right: 0;
    top: 0;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    box-shadow: 0 0 0 4px var(--dark-bg), 0 0 0 6px var(--primary-color);
    z-index: 1;
}

[dir="ltr"] .timeline-marker {
    left: 0;
    right: auto;
}

.timeline-content {
    background: var(--light-bg);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.timeline-content:hover {
    border-color: var(--primary-color);
    transform: translateX(-5px);
    box-shadow: var(--shadow-md);
}

[dir="ltr"] .timeline-content:hover {
    transform: translateX(5px);
}

.timeline-content h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.timeline-content p {
    color: var(--text-secondary);
    margin: 0;
    font-size: 0.95rem;
}

/* ========== Challenges Grid ========== */
.challenges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.challenge-item {
    padding: 2rem;
    background: var(--light-bg);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.challenge-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.challenge-item:hover::before {
    transform: scaleX(1);
}

.challenge-item:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.challenge-icon {
    width: 60px;
    height: 60px;
    background: rgba(150, 191, 72, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.challenge-icon i {
    font-size: 1.75rem;
    color: var(--primary-color);
}

.challenge-item h4 {
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    font-size: 1.1rem;
}

.challenge-item p {
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.6;
}

/* ========== Testimonial Box ========== */
.testimonial-box {
    margin: 3rem 0;
    padding: 3rem;
    background: linear-gradient(135deg, var(--light-bg), var(--lighter-bg));
    border-radius: 12px;
    border: 2px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.testimonial-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(150, 191, 72, 0.05), transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.testimonial-content {
    position: relative;
    z-index: 1;
}

.quote-icon {
    font-size: 3rem;
    color: var(--primary-color);
    opacity: 0.3;
    margin-bottom: 1rem;
}

.testimonial-text {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: 2rem;
    position: relative;
    padding-right: 1rem;
}

[dir="ltr"] .testimonial-text {
    padding-left: 1rem;
    padding-right: 0;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.testimonial-author .author-info h4 {
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.testimonial-author .author-info p {
    color: var(--primary-color);
    font-size: 0.9rem;
    margin: 0;
}

@media (max-width: 768px) {
    .project-hero {
        padding: 100px 0 60px;
    }

    .project-meta-header {
        flex-direction: column;
        gap: 0.75rem;
    }

    .tech-stack {
        justify-content: center;
    }

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

    .timeline-item {
        padding-right: 60px;
    }

    [dir="ltr"] .timeline-item {
        padding-left: 60px;
        padding-right: 0;
    }

    .timeline-marker {
        width: 30px;
        height: 30px;
        font-size: 1rem;
    }

    .testimonial-box {
        padding: 2rem;
    }

    .testimonial-text {
        font-size: 1rem;
    }

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