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

/* Project Hero Section */
.project-hero {
    padding: calc(70px + var(--spacing-3xl)) var(--spacing-md) var(--spacing-xl);
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: var(--spacing-lg);
    transition: all var(--transition-fast);
}

.back-link:hover {
    color: var(--accent-primary);
    transform: translateX(5px);
}

.project-hero-content {
    max-width: 800px;
}

.project-hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
    line-height: 1.2;
}

.project-hero-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Project Details Section */
.project-details {
    padding: var(--spacing-3xl) var(--spacing-md);
}

.project-content {
    max-width: 900px;
    margin: 0 auto;
}

.project-main-image {
    width: 100%;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    margin-bottom: var(--spacing-2xl);
    max-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
}

.project-main-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 600px;
}

@media (max-width: 768px) {
    .project-main-image {
        max-height: 400px;
    }
    
    .project-main-image img {
        max-height: 400px;
    }
}

@media (max-width: 480px) {
    .project-main-image {
        max-height: 250px;
        border-radius: var(--radius-lg);
    }
    
    .project-main-image img {
        max-height: 250px;
    }
}

/* Project Overview */
.project-overview {
    background-color: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    margin-bottom: var(--spacing-2xl);
}

.project-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-lg);
}

.project-info-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.info-label {
    font-size: 0.875rem;
    color: var(--text-tertiary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-value {
    font-size: 1.125rem;
    color: var(--text-primary);
    font-weight: 600;
}

.project-link {
    color: var(--accent-primary);
    text-decoration: underline;
    transition: color var(--transition-fast);
}

.project-link:hover {
    color: var(--accent-hover);
}

/* Project Sections */
.project-section {
    margin-bottom: var(--spacing-2xl);
}

.project-section-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
}

.project-description,
.project-text {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.project-description p,
.project-text p {
    margin-bottom: var(--spacing-md);
}

.project-description p:last-child,
.project-text p:last-child {
    margin-bottom: 0;
}

/* Project Gallery Slider */
.project-gallery {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
}

.gallery-slider-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.gallery-slider {
    flex: 1;
    overflow: hidden;
    border-radius: var(--radius-lg);
}

.gallery-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    gap: var(--spacing-lg);
}

.gallery-item {
    min-width: 100%;
    flex-shrink: 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 500px;
}

.gallery-btn {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-base);
    flex-shrink: 0;
    color: var(--text-primary);
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

.gallery-btn-prev {
    left: var(--spacing-md);
}

.gallery-btn-next {
    right: var(--spacing-md);
}

.gallery-btn:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.gallery-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.gallery-btn:disabled:hover {
    background: var(--bg-secondary);
    border-color: var(--border-color);
    color: var(--text-primary);
    transform: translateY(-50%) scale(1);
}

.gallery-dots {
    display: flex;
    justify-content: center;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
}

.gallery-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border-color);
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
    padding: 0;
}

.gallery-dot:hover {
    background: var(--text-tertiary);
}

.gallery-dot.active {
    background: var(--accent-primary);
    width: 32px;
    border-radius: 6px;
}

/* Project Results */
.project-results {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
}

.result-card {
    background-color: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    text-align: center;
    transition: transform var(--transition-base);
}

.result-card:hover {
    transform: translateY(-3px);
}

.result-number {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.result-label {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Project Technologies */
.project-technologies {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.tech-tag {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid var(--border-color);
    transition: all var(--transition-fast);
}

.tech-tag:hover {
    background-color: var(--accent-primary);
    color: white;
    border-color: var(--accent-primary);
    transform: translateY(-2px);
}

/* Related Projects Section */
.related-projects {
    padding: var(--spacing-3xl) var(--spacing-md);
    background-color: var(--bg-secondary);
}

.related-projects .section-title {
    text-align: center;
    margin-bottom: var(--spacing-2xl);
}

/* Project CTA Section */
.project-cta {
    padding: var(--spacing-3xl) var(--spacing-md);
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
}

.cta-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-title {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin-bottom: var(--spacing-md);
}

.cta-description {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--spacing-xl);
    line-height: 1.6;
}

.project-cta .btn-primary {
    background-color: white;
    color: var(--accent-primary);
}

.project-cta .btn-primary:hover {
    background-color: var(--bg-secondary);
    transform: translateY(-2px);
}

/* Project View Link */
.project-view-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-primary);
    font-weight: 600;
    margin-top: var(--spacing-sm);
    transition: all var(--transition-fast);
}

.project-view-link:hover {
    color: var(--accent-hover);
    transform: translateX(-3px);
}

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

    .project-hero-description {
        font-size: 1rem;
    }

    .project-section-title {
        font-size: 1.5rem;
    }

    .project-description,
    .project-text {
        font-size: 1rem;
    }

    .project-info-grid {
        grid-template-columns: 1fr;
    }

    .cta-title {
        font-size: 1.5rem;
    }

    .cta-description {
        font-size: 1rem;
    }
    
    /* Gallery slider responsive */
    .gallery-btn {
        width: 40px;
        height: 40px;
    }
    
    .gallery-btn-prev {
        left: var(--spacing-xs);
    }
    
    .gallery-btn-next {
        right: var(--spacing-xs);
    }
    
    .gallery-item img {
        max-height: 300px;
    }
}

@media (max-width: 480px) {
    .gallery-btn {
        width: 36px;
        height: 36px;
    }
    
    .gallery-btn svg {
        width: 18px;
        height: 18px;
    }
    
    .gallery-dots {
        gap: 0.375rem;
    }
    
    .gallery-dot {
        width: 8px;
        height: 8px;
    }
    
    .gallery-dot.active {
        width: 24px;
    }
}

.project-tags{
    display: flex;
    gap: 5px;
}