/* ================================
   PROJECT DETAIL PAGES STYLES
   ================================ */

/* Project Hero */
.project-hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    padding: 8rem 0 4rem;
}

.project-header {
    text-align: center;
    margin-bottom: 3rem;
}

.project-tags-list {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.project-title {
    font-size: 4rem;
    font-weight: 800;
    background: linear-gradient(135deg, #00d4ff 0%, #0066ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
}

.project-subtitle {
    font-size: 1.5rem;
    color: var(--color-text-secondary);
    max-width: 800px;
    margin: 0 auto;
}

.project-hero-image {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 212, 255, 0.3);
}

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

/* Back Link */
.back-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.back-link:hover {
    gap: 0.75rem;
    color: #00d4ff;
}

/* Container Variations */
.container-narrow {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Project Sections */
.project-section {
    padding: 5rem 0;
}

.project-section.bg-alt {
    background: rgba(0, 212, 255, 0.02);
}

.section-title-small {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #00d4ff 0%, #0066ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-intro {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    margin-bottom: 2rem;
    line-height: 1.8;
}

/* Content Cards */
.content-card {
    padding: 2rem;
    border-radius: 16px;
    margin-bottom: 2rem;
}

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

.content-card p {
    line-height: 1.8;
    color: var(--color-text-secondary);
}

.large-text {
    font-size: 1.2rem;
    line-height: 1.9;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.stat-card {
    text-align: center;
    padding: 2rem 1rem;
    border-radius: 16px;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, #00d4ff 0%, #0066ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Two Column Layout */
.two-col-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.problem-list,
.solution-list {
    list-style: none;
    padding: 0;
}

.problem-list li,
.solution-list li {
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    position: relative;
    line-height: 1.6;
}

.problem-list li::before {
    content: "❌";
    position: absolute;
    left: 0;
}

.solution-list li::before {
    content: "✅";
    position: absolute;
    left: 0;
}

/* Architecture Diagram */
.architecture-diagram {
    padding: 3rem;
    border-radius: 20px;
    margin: 2rem 0;
}

.architecture-diagram h3 {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: var(--color-primary);
}

.architecture-layers {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.arch-layer {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: rgba(0, 212, 255, 0.05);
    border-radius: 12px;
    border-left: 3px solid var(--color-primary);
    transition: all 0.3s ease;
}

.arch-layer:hover {
    background: rgba(0, 212, 255, 0.1);
    transform: translateX(10px);
}

.layer-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-primary);
    min-width: 50px;
    text-align: center;
}

.layer-content h4 {
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
}

.layer-content p {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
}

/* Agents Grid */
.agents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.agent-card {
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    transition: all 0.3s ease;
}

.agent-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 212, 255, 0.3);
}

.agent-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.agent-card h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--color-primary);
}

.agent-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--color-text-secondary);
}

/* Screenshots */
.screenshots-grid {
    display: grid;
    gap: 2rem;
    margin-top: 2rem;
}

.screenshot-item {
    border-radius: 16px;
    overflow: hidden;
    padding: 1rem;
}

.screenshot-item img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    margin-bottom: 1rem;
}

.screenshot-caption {
    text-align: center;
    color: var(--color-text-secondary);
    font-size: 0.95rem;
    font-style: italic;
}

/* Tech Section */
.tech-section {
    margin-bottom: 3rem;
}

.tech-section h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--color-primary);
}

.tech-steps {
    padding-left: 1.5rem;
}

.tech-steps li {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: var(--color-text-secondary);
}

.tech-steps strong {
    color: var(--color-text);
}

.tech-stack-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.tech-category {
    padding: 1.5rem;
    border-radius: 12px;
}

.tech-category h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--color-primary);
}

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

.tech-category li {
    padding: 0.5rem 0;
    color: var(--color-text-secondary);
    border-bottom: 1px solid rgba(0, 212, 255, 0.1);
}

.tech-category li:last-child {
    border-bottom: none;
}

/* Use Cases */
.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.use-case-card {
    padding: 2rem;
    border-radius: 16px;
}

.use-case-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.use-case-card p {
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.use-case-card ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.use-case-card ol li {
    margin-bottom: 0.5rem;
    color: var(--color-text-secondary);
}

/* Achievements Grid */
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.achievement-card {
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
}

.achievement-card svg {
    margin-bottom: 1rem;
}

.achievement-card h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--color-primary);
}

.achievement-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--color-text-secondary);
}

/* Project Footer */
.project-footer {
    text-align: center;
    padding: 4rem 3rem;
    border-radius: 20px;
    margin-top: 3rem;
}

.project-footer h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.project-footer p {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    margin-bottom: 2rem;
}

.project-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Responsive */
@media (max-width: 768px) {
    .project-title {
        font-size: 2.5rem;
    }

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

    .architecture-layers {
        gap: 0.75rem;
    }

    .arch-layer {
        flex-direction: column;
        text-align: center;
    }

    .layer-number {
        font-size: 1.5rem;
    }

    .agents-grid,
    .tech-stack-grid,
    .use-cases-grid,
    .achievements-grid {
        grid-template-columns: 1fr;
    }

    .two-col-layout {
        grid-template-columns: 1fr;
    }

    .project-cta {
        flex-direction: column;
        align-items: stretch;
    }
}

/* ========== PROJECT GALLERY ========== */
.project-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.gallery-item {
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    padding: 1rem;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 212, 255, 0.2);
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    cursor: pointer;
}

/* ========== LIGHTBOX ========== */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.lightbox-overlay.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.lightbox-overlay.active .lightbox-content {
    transform: scale(1);
}

.lightbox-image {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 12px;
    box-shadow: 0 0 50px rgba(0, 212, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    background: none;
    border: none;
    transition: color 0.3s ease;
    padding: 10px;
}

.lightbox-close:hover {
    color: var(--color-primary);
}

@media (max-width: 768px) {
    .lightbox-close {
        top: -40px;
        right: -10px;
    }
}