/* Projects Page Styles */

.projects-page {
    padding: 140px 0 80px;
    background: var(--bg-secondary);
    min-height: 100vh;
    position: relative;
}

.projects-page__header {
    text-align: center;
    margin-bottom: 48px;
}

.projects-page__back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 24px;
    transition: color 0.3s ease;
    position: relative;
    z-index: 10;
}

.projects-page__back:hover {
    color: var(--accent-color);
}

.projects-page__back svg {
    transition: transform 0.3s ease;
}

.projects-page__back:hover svg {
    transform: translateX(-4px);
}

.projects-page__title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.projects-page__desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.no-projects {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
    font-size: 1.1rem;
    background: var(--bg-primary);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 28px;
    margin-bottom: 64px;
}

/* Project Card - Clean Card Style */
.project-card {
    background: var(--bg-primary);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(139, 92, 246, 0.15);
    border-color: rgba(139, 92, 246, 0.2);
}

.project-card__image {
    position: relative;
    height: 160px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.08) 0%, rgba(59, 130, 246, 0.08) 100%);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.project-card__image img {
    max-width: 85%;
    max-height: 85%;
    object-fit: contain;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.project-card:hover .project-card__image img {
    transform: scale(1.02);
}

.project-card__content {
    padding: 24px;
}

.project-card__category {
    display: inline-block;
    padding: 4px 14px;
    background: rgba(139, 92, 246, 0.12);
    color: var(--accent-color);
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 14px;
}

.project-card__title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
    line-height: 1.3;
}

.project-card__description {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 18px;
}

.project-card__info {
    display: flex;
    gap: 18px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.82rem;
    color: var(--text-muted);
}

.project-card__info span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.project-card__info strong {
    color: var(--text-secondary);
    font-weight: 600;
}

.project-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.project-card__tags .tag {
    padding: 5px 12px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-secondary);
    border-radius: 14px;
    font-size: 0.72rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.project-card__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.92rem;
    transition: opacity 0.3s ease, gap 0.3s ease;
}

.project-card__link:hover {
    opacity: 0.85;
    gap: 10px;
}

/* Project Detail Page Styles */

/* Project Hero Section */
.project-hero {
    padding: 160px 0 80px;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    position: relative;
    overflow: hidden;
}

.project-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.project-hero__content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.project-hero__back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 24px;
    transition: color 0.3s ease;
}

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

.project-hero__back svg {
    transition: transform 0.3s ease;
}

.project-hero__back:hover svg {
    transform: translateX(-4px);
}

.project-hero__category {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(139, 92, 246, 0.15);
    color: var(--accent-color);
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 24px;
}

.project-hero__title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 20px;
    line-height: 1.1;
}

.project-hero__description {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 32px;
}

/* Project Details Section */
.project-details {
    padding: 80px 0;
    background: var(--bg-secondary);
}

.project-details__grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 48px;
    margin-bottom: 64px;
}

.project-details__image {
    border-radius: 16px;
    overflow: hidden;
    background: var(--bg-primary);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.project-image-wrapper {
    position: relative;
    padding-bottom: 60%;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(59, 130, 246, 0.1) 100%);
}

.project-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    color: var(--text-muted);
}

.project-placeholder svg {
    opacity: 0.5;
}

.project-placeholder span {
    font-size: 1rem;
    font-weight: 500;
}

/* Project Info Sidebar */
.project-details__info {
    background: var(--bg-primary);
    border-radius: 16px;
    padding: 32px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.project-info__title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 28px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.project-info__item {
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.project-info__item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.project-info__label {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.project-info__label svg {
    color: var(--accent-color);
}

.project-info__value {
    display: block;
    color: var(--text-primary);
    font-size: 1.05rem;
    font-weight: 500;
}

.project-info__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.project-info__tags .tag {
    padding: 6px 14px;
    background: rgba(139, 92, 246, 0.15);
    color: var(--accent-color);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.project-info__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s ease;
}

.project-info__link:hover {
    opacity: 0.8;
}

/* Features Section */
.project-features {
    margin-bottom: 64px;
}

.project-features__title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 32px;
    text-align: center;
}

.project-features__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 24px;
    background: var(--bg-primary);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-2px);
    border-color: rgba(139, 92, 246, 0.3);
}

.feature-item svg {
    color: var(--accent-color);
    flex-shrink: 0;
}

.feature-item span {
    color: var(--text-primary);
    font-weight: 500;
}

/* Call to Action */
.project-cta {
    text-align: center;
    padding: 64px 40px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(59, 130, 246, 0.1) 100%);
    border-radius: 20px;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.project-cta__title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.project-cta__description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .project-details__grid {
        grid-template-columns: 1fr;
    }
    
    .project-details__info {
        position: static;
    }
}

@media (max-width: 768px) {
    .project-hero {
        padding: 140px 0 60px;
    }
    
    .project-hero__title {
        font-size: 2.2rem;
    }
    
    .project-details {
        padding: 60px 0;
    }
    
    .project-details__grid {
        gap: 32px;
    }
    
    .project-features__grid {
        grid-template-columns: 1fr;
    }
    
    .project-cta {
        padding: 40px 24px;
    }
    
    .project-cta__title {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .projects-page {
        padding: 100px 0 60px;
    }
    
    .projects-page__header {
        margin-bottom: 32px;
    }
    
    .projects-page__back {
        position: relative;
        z-index: 100;
        padding: 10px 16px;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 8px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        width: auto;
        display: inline-flex;
        margin-bottom: 20px;
    }
    
    .projects-page__back:hover {
        background: rgba(212, 168, 83, 0.1);
        border-color: rgba(212, 168, 83, 0.3);
    }
    
    .projects-page__title {
        font-size: 1.6rem;
        margin-bottom: 12px;
    }
    
    .projects-page__desc {
        font-size: 0.95rem;
    }
    
    .project-hero__title {
        font-size: 1.8rem;
    }
    
    .project-hero__description {
        font-size: 1rem;
    }
    
    .project-details__info {
        padding: 24px;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .project-card-list__info {
        flex-direction: column;
        gap: 8px;
    }
    
    /* Mobile Project Card Improvements */
    .project-card {
        margin-bottom: 0;
    }
    
    .project-card__content {
        padding: 18px;
    }
    
    .project-card__image {
        height: 140px;
    }
    
    .project-card__category {
        font-size: 0.65rem;
        padding: 3px 10px;
        margin-bottom: 10px;
    }
    
    .project-card__title {
        font-size: 1.05rem;
        margin-bottom: 8px;
        line-height: 1.3;
    }
    
    .project-card__description {
        font-size: 0.82rem;
        line-height: 1.5;
        margin-bottom: 14px;
    }
    
    .project-card__info {
        flex-direction: column;
        gap: 8px;
        margin-bottom: 12px;
        padding-bottom: 12px;
    }
    
    .project-card__info-item {
        padding: 6px 10px;
        font-size: 12px;
    }
    
    .project-card__section {
        margin: 12px 0;
    }
    
    .project-card__section-title {
        font-size: 11px;
        margin-bottom: 6px;
    }
    
    .tag {
        padding: 3px 8px;
        font-size: 10px;
    }
    
    .project-card__link {
        font-size: 0.85rem;
        padding: 10px 0;
    }
    
    .project-card__logo {
        width: 56px;
        height: 56px;
        margin-bottom: 10px;
    }
    
    .project-cta {
        padding: 32px 20px;
    }
    
    .project-cta__title {
        font-size: 1.3rem;
    }
    
    .project-cta__description {
        font-size: 0.95rem;
    }
}
