/* ============================================================
   PORTFOLIO – Modern High-Tech Design System
   ============================================================ */

:root {
    --bg-deep: #05070f;
    --bg-panel: #0d1220;
    --bg-glass: rgba(20, 28, 50, 0.55);
    --border-glow: rgba(0, 212, 255, 0.25);
    --accent-cyan: #00d4ff;
    --accent-purple: #7c3aed;
    --accent-pink: #ec4899;
    --accent-green: #22d3ee;
    --text-primary: #e6ecff;
    --text-muted: #8b95b8;
    --gradient-brand: linear-gradient(135deg, #00d4ff 0%, #7c3aed 100%);
    --gradient-warm: linear-gradient(135deg, #ec4899 0%, #f59e0b 100%);
}

/* Base resets for portfolio pages */
.portfolio-page {
    background: var(--bg-deep);
    color: var(--text-primary);
    min-height: 100vh;
    font-family: 'Manrope', 'Segoe UI', sans-serif;
    padding-top: 1rem;
}

/* Animated gradient background aura */
.portfolio-page::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at 15% 15%, rgba(0, 212, 255, 0.12), transparent 45%),
        radial-gradient(circle at 85% 20%, rgba(124, 58, 237, 0.12), transparent 45%),
        radial-gradient(circle at 50% 90%, rgba(236, 72, 153, 0.08), transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.portfolio-page > * {
    position: relative;
    z-index: 1;
}

/* ============================================================
   HERO
   ============================================================ */

.hero {
    padding: 5rem 1rem 4rem;
    text-align: center;
    position: relative;
}

.hero-eyebrow {
    display: inline-block;
    padding: 0.35rem 1rem;
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent-cyan);
    border: 1px solid var(--border-glow);
    border-radius: 999px;
    background: rgba(0, 212, 255, 0.05);
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p.lead {
    max-width: 720px;
    margin: 0 auto 2rem;
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* ============================================================
   FEATURED FLAGSHIP CARDS
   ============================================================ */

.flagship-section {
    padding: 2rem 1rem 4rem;
}

.flagship-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.flagship-title::before {
    content: '';
    width: 6px;
    height: 32px;
    background: var(--gradient-brand);
    border-radius: 4px;
}

.flagship-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
    gap: 1.75rem;
}

@media (max-width: 900px) {
    .flagship-grid { grid-template-columns: 1fr; }
}

.flagship-card {
    position: relative;
    padding: 2rem;
    border-radius: 20px;
    background: linear-gradient(155deg, rgba(13, 18, 32, 0.9), rgba(20, 28, 50, 0.7));
    border: 1px solid var(--border-glow);
    overflow: hidden;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.flagship-card::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: var(--gradient-brand);
    opacity: 0;
    filter: blur(24px);
    z-index: -1;
    transition: opacity 0.35s ease;
}

.flagship-card:hover {
    transform: translateY(-6px);
    border-color: rgba(0, 212, 255, 0.6);
    box-shadow: 0 20px 60px rgba(0, 212, 255, 0.15);
}

.flagship-card:hover::before {
    opacity: 0.35;
}

.flagship-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: white;
    background: var(--gradient-brand);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.35);
    margin-bottom: 1.25rem;
}

.flagship-card h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.35rem;
    color: var(--text-primary);
}

.flagship-tagline {
    color: var(--accent-cyan);
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.flagship-card p.description {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

/* Live pulse */
.live-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    animation: pulse-live 1.8s infinite;
    margin-right: 0.4rem;
    vertical-align: middle;
}

@keyframes pulse-live {
    0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
    70% { box-shadow: 0 0 0 12px rgba(34, 197, 94, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

/* ============================================================
   MODULES (AI Factory Hub sub-projects)
   ============================================================ */

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

.module-chip {
    padding: 0.85rem;
    border-radius: 12px;
    background: rgba(0, 212, 255, 0.05);
    border: 1px solid rgba(0, 212, 255, 0.15);
    transition: all 0.25s ease;
}

.module-chip:hover {
    background: rgba(0, 212, 255, 0.1);
    border-color: rgba(0, 212, 255, 0.4);
    transform: translateY(-2px);
}

.module-chip i {
    color: var(--accent-cyan);
    font-size: 1.1rem;
    margin-right: 0.5rem;
}

.module-chip strong {
    font-size: 0.9rem;
    color: var(--text-primary);
    display: block;
    margin-bottom: 0.35rem;
}

.module-chip small {
    color: var(--text-muted);
    font-size: 0.75rem;
    line-height: 1.4;
    display: block;
}

/* ============================================================
   PROJECT CATALOG GRID
   ============================================================ */

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.project-card {
    position: relative;
    padding: 1.5rem;
    border-radius: 16px;
    background: var(--bg-glass);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(0, 212, 255, 0.12);
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 212, 255, 0.5);
    box-shadow: 0 15px 40px rgba(0, 212, 255, 0.12);
}

.project-card-header {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    margin-bottom: 1rem;
}

.project-card-icon {
    width: 46px;
    height: 46px;
    min-width: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    color: white;
    background: var(--gradient-brand);
    box-shadow: 0 6px 18px rgba(0, 212, 255, 0.3);
}

.project-card h4 {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0;
    color: var(--text-primary);
}

.project-card .tagline {
    font-size: 0.8rem;
    color: var(--accent-cyan);
    margin-top: 0.15rem;
}

.project-card .description {
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.55;
    margin-bottom: 1rem;
    flex-grow: 1;
}

/* Tech chips */
.tech-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 0.85rem;
}

.tech-chip {
    font-size: 0.7rem;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    background: rgba(124, 58, 237, 0.15);
    color: #c4b5fd;
    border: 1px solid rgba(124, 58, 237, 0.3);
}

/* Status badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.7rem;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.status-live          { background: rgba(34, 197, 94, 0.15); color: #86efac; border: 1px solid rgba(34, 197, 94, 0.4); }
.status-in-development{ background: rgba(251, 191, 36, 0.15); color: #fcd34d; border: 1px solid rgba(251, 191, 36, 0.4); }
.status-prototype     { background: rgba(59, 130, 246, 0.15); color: #93c5fd; border: 1px solid rgba(59, 130, 246, 0.4); }
.status-research      { background: rgba(168, 85, 247, 0.15); color: #d8b4fe; border: 1px solid rgba(168, 85, 247, 0.4); }
.status-concept       { background: rgba(148, 163, 184, 0.15); color: #cbd5e1; border: 1px solid rgba(148, 163, 184, 0.4); }
.status-idea          { background: rgba(100, 116, 139, 0.15); color: #94a3b8; border: 1px solid rgba(100, 116, 139, 0.4); }

/* Revenue-share badge */
.revenue-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.7rem;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.2), rgba(245, 158, 11, 0.2));
    color: #fbcfe8;
    border: 1px solid rgba(236, 72, 153, 0.4);
    font-weight: 600;
}

.project-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: auto;
}

/* ============================================================
   FILTER BAR (Apps page)
   ============================================================ */

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    padding: 1rem;
    margin-bottom: 2rem;
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    border-radius: 16px;
    border: 1px solid rgba(0, 212, 255, 0.1);
}

.filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1.1rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--text-muted);
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.25s ease;
}

.filter-pill:hover {
    color: var(--text-primary);
    border-color: var(--accent-cyan);
    background: rgba(0, 212, 255, 0.08);
}

.filter-pill.active {
    color: white;
    background: var(--gradient-brand);
    border-color: transparent;
    box-shadow: 0 4px 18px rgba(0, 212, 255, 0.35);
}

.filter-pill .count {
    font-size: 0.7rem;
    background: rgba(255, 255, 255, 0.15);
    padding: 0.05rem 0.4rem;
    border-radius: 999px;
}

/* ============================================================
   REVENUE-SHARE BANNER
   ============================================================ */

.revenue-banner {
    margin: 3rem auto;
    padding: 2rem;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.15), rgba(236, 72, 153, 0.15));
    border: 1px solid rgba(236, 72, 153, 0.3);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.revenue-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 20%, rgba(236, 72, 153, 0.15), transparent 60%);
    pointer-events: none;
}

.revenue-banner h3 {
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.revenue-banner p {
    color: var(--text-muted);
    max-width: 720px;
    margin: 0 auto 1rem;
    font-size: 0.95rem;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 768px) {
    .hero { padding: 3rem 1rem 2rem; }
    .hero h1 { font-size: 2rem; }
    .flagship-card { padding: 1.5rem; }
    .catalog-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   LAUNCH BUTTON (project cards)
   ============================================================ */

.btn-launch {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 1rem;
    font-size: 0.82rem;
    font-weight: 700;
    border-radius: 999px;
    text-decoration: none;
    color: white;
    background: var(--gradient-brand);
    border: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 4px 14px rgba(0, 212, 255, 0.35);
    white-space: nowrap;
}

.btn-launch:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(0, 212, 255, 0.55);
}

.btn-launch:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 212, 255, 0.4);
}

/* ============================================================
   LAUNCH BUTTON (outline variant)
   ============================================================ */

.btn-launch-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.45rem 0.8rem;
    font-size: 0.82rem;
    font-weight: 600;
    border-radius: 999px;
    text-decoration: none;
    color: var(--accent-cyan);
    background: transparent;
    border: 1px solid rgba(0, 212, 255, 0.4);
    transition: all 0.25s ease;
    white-space: nowrap;
}
.btn-launch-outline:hover {
    color: white;
    background: rgba(0, 212, 255, 0.15);
    border-color: var(--accent-cyan);
}

.project-title-link {
    text-decoration: none;
    color: inherit;
}
.project-title-link:hover h4 { color: var(--accent-cyan); }

/* ============================================================
   DETAIL PAGE
   ============================================================ */

.detail-header {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 2rem;
    margin-bottom: 2.5rem;
    border-radius: 20px;
    background: linear-gradient(155deg, rgba(13, 18, 32, 0.9), rgba(20, 28, 50, 0.7));
    border: 1px solid var(--border-glow);
}

.detail-icon {
    width: 84px;
    height: 84px;
    min-width: 84px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.25rem;
    color: white;
    background: var(--gradient-brand);
    box-shadow: 0 12px 32px rgba(0, 212, 255, 0.35);
}

.detail-heading h1 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.detail-tagline {
    color: var(--accent-cyan);
    font-size: 1rem;
    font-weight: 500;
    margin: 0;
}

.detail-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 2rem;
    align-items: start;
}

@media (max-width: 900px) {
    .detail-grid { grid-template-columns: 1fr; }
    .detail-icon { width: 64px; height: 64px; min-width: 64px; font-size: 1.75rem; }
}

.detail-section {
    padding: 1.5rem;
    margin-bottom: 1.25rem;
    border-radius: 16px;
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 212, 255, 0.1);
}

.detail-section h2 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid rgba(0, 212, 255, 0.15);
}

.detail-section p {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 0.75rem;
}

.detail-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.detail-list li {
    position: relative;
    padding: 0.5rem 0 0.5rem 1.75rem;
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.55;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.detail-list li:last-child { border-bottom: none; }

.detail-list li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--accent-cyan);
    position: absolute;
    left: 0;
    top: 0.5rem;
    font-size: 0.85rem;
}

.revenue-cta {
    text-align: center;
    padding: 1rem;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.1), rgba(245, 158, 11, 0.1));
    border: 1px solid rgba(236, 72, 153, 0.3);
}
.revenue-cta h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}
.revenue-cta p { font-size: 0.85rem; margin-bottom: 0.5rem; }

