/* ===========================================
   PROJECT PAGES - Specific Styles
   QR Communication - 2025
   =========================================== */

/* ===========================================
   PROJECT HERO SECTION
   =========================================== */
.project-hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    padding: calc(var(--space-24) + 60px) var(--space-6) var(--space-24);
    background: var(--gradient-mesh);
    position: relative;
    overflow: hidden;
}

.project-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 70%, rgba(0, 180, 216, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 30%, rgba(6, 214, 160, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

[data-theme="light"] .project-hero {
    background: var(--gradient-subtle);
}

.project-hero__container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
    align-items: center;
    position: relative;
    z-index: 1;
}

.project-hero__content {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
}

.project-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    background: rgba(0, 180, 216, 0.1);
    border: 1px solid var(--qr-cyan-500);
    border-radius: var(--radius-full);
    color: var(--qr-cyan-400);
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    width: fit-content;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.project-hero__badge--commercial {
    background: rgba(16, 185, 129, 0.1);
    border-color: var(--qr-success);
    color: var(--qr-success);
}

.project-hero__badge--opensource {
    background: rgba(139, 92, 246, 0.1);
    border-color: #8b5cf6;
    color: #a78bfa;
}

.project-hero__badge--development {
    background: rgba(245, 158, 11, 0.1);
    border-color: #f59e0b;
    color: #fbbf24;
}

[data-theme="light"] .project-hero__badge--development {
    background: rgba(245, 158, 11, 0.15);
    border-color: #d97706;
    color: #b45309;
}

.project-hero__title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.project-hero__tagline {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--accent-primary);
    line-height: 1.3;
}

.project-hero__description {
    font-family: 'Inter', sans-serif;
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 540px;
}

.project-hero__actions {
    display: flex;
    gap: var(--space-4);
    flex-wrap: wrap;
    margin-top: var(--space-4);
}

.project-hero__btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-4) var(--space-8);
    border-radius: var(--radius-lg);
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all var(--duration-base) var(--ease-out);
    cursor: pointer;
}

.project-hero__btn--primary {
    background: var(--gradient-accent);
    color: var(--qr-primary-900);
    border: none;
    box-shadow: var(--shadow-cyan);
}

.project-hero__btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 50px -10px rgba(0, 180, 216, 0.4);
    color: var(--qr-primary-900);
}

.project-hero__btn--secondary {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.project-hero__btn--secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.project-hero__logo {
    display: flex;
    justify-content: center;
    align-items: center;
}

.project-hero__logo img {
    max-width: 320px;
    max-height: 220px;
    object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
}

/* ===========================================
   PROJECT DOMAINS SECTION
   =========================================== */
.project-domains {
    padding: var(--space-24) var(--space-6);
    background: var(--bg-primary);
}

.project-domains__container {
    max-width: 1200px;
    margin: 0 auto;
}

.project-domains__title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: var(--space-12);
}

.project-domains__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: var(--space-6);
}

.domain-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    transition: all var(--duration-slow) var(--ease-out);
}

.domain-card:hover {
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-lg);
}

.domain-card__header {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
    padding-bottom: var(--space-4);
    border-bottom: 1px solid var(--border-color);
}

.domain-card__icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 180, 216, 0.1);
    border-radius: var(--radius-md);
    color: var(--accent-primary);
    flex-shrink: 0;
}

.domain-card__icon svg {
    width: 24px;
    height: 24px;
}

.domain-card__title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.domain-card__modules {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.domain-card__module {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    padding: var(--space-2) 0;
}

.domain-card__module-name {
    font-family: 'Inter', sans-serif;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-primary);
}

.domain-card__module-desc {
    font-family: 'Inter', sans-serif;
    font-size: 0.8125rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* ===========================================
   PROJECT FEATURES SECTION
   =========================================== */
.project-features {
    padding: var(--space-24) var(--space-6);
    background: var(--bg-secondary);
}

.project-features__container {
    max-width: 1200px;
    margin: 0 auto;
}

.project-features__title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: var(--space-12);
}

.project-features__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-8);
}

.feature-card {
    padding: var(--space-8);
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    transition: all var(--duration-slow) var(--ease-out);
}

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

.feature-card__icon {
    width: 56px;
    height: 56px;
    margin-bottom: var(--space-4);
    color: var(--accent-primary);
    background: rgba(0, 180, 216, 0.1);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-card__icon svg {
    width: 28px;
    height: 28px;
}

.feature-card__title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-2);
}

.feature-card__description {
    font-family: 'Inter', sans-serif;
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.9375rem;
}

/* ===========================================
   PROJECT STACK SECTION
   =========================================== */
.project-stack {
    padding: var(--space-16) var(--space-6);
    background: var(--bg-primary);
}

.project-stack__container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.project-stack__title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: var(--space-8);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.project-stack__list {
    display: flex;
    justify-content: center;
    gap: var(--space-3);
    flex-wrap: wrap;
}

.project-stack__item {
    padding: var(--space-3) var(--space-5);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all var(--duration-base) var(--ease-out);
}

.project-stack__item:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

/* ===========================================
   RESPONSIVE DESIGN
   =========================================== */
@media (max-width: 992px) {
    .project-hero__container {
        grid-template-columns: 1fr;
        gap: var(--space-12);
        text-align: center;
    }

    .project-hero__badge {
        margin: 0 auto;
    }

    .project-hero__description {
        margin: 0 auto;
    }

    .project-hero__actions {
        justify-content: center;
    }

    .project-hero__logo {
        order: -1;
    }

    .project-hero__logo img {
        max-width: 250px;
    }
}

@media (max-width: 576px) {
    .project-hero {
        padding: calc(var(--space-20) + 60px) var(--space-4) var(--space-16);
    }

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

    .project-hero__tagline {
        font-size: 1.25rem;
    }

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

    .project-hero__btn {
        justify-content: center;
    }

    .project-domains {
        padding: var(--space-16) var(--space-4);
    }

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

    .domain-card {
        padding: var(--space-4);
    }

    .project-features {
        padding: var(--space-16) var(--space-4);
    }

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

    .feature-card {
        padding: var(--space-6);
    }
}
