/* ============================================
   Portfolio Styles
   Product Cards, Timeline, User Stories,
   Technology Pages, Portfolio Preview,
   Tech Cloud
   ============================================ */

/* ============================================
   Portfolio/Product Cards
   ============================================ */
.product-card {
    transition: all 0.3s ease;
    border: none;
    box-shadow: var(--shadow-md);
    border-radius: var(--radius-lg);
    background: white;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.product-card .card-title {
    color: var(--color-primary);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.product-card-image {
    overflow: hidden;
    border-radius: 8px 8px 0 0;
}

.product-card-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-card-image img {
    transform: scale(1.05);
}

.product-card-placeholder {
    height: 180px;
    background: linear-gradient(135deg, var(--color-bg-light) 0%, var(--color-bg-alt) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-light);
}

.product-card-placeholder-sm {
    height: 140px;
    background: linear-gradient(135deg, var(--color-bg-light) 0%, var(--color-bg-alt) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-light);
}

.product-card-category { margin-bottom: 0.5rem; }

.product-card-category .badge {
    background: var(--color-primary) !important;
    font-weight: 500;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
}

.product-card-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

/* Technology Tags (inline) */
.tech-tag {
    font-size: 0.7rem !important;
    padding: 2px 6px !important;
    border-radius: 3px !important;
    font-weight: 500;
    background: var(--color-bg-alt) !important;
    color: var(--color-text-muted) !important;
    border: 1px solid var(--color-border) !important;
}

.tech-tag-lg {
    font-size: 0.85rem !important;
    padding: 6px 12px !important;
    border-radius: 6px !important;
    font-weight: 500;
    background: var(--color-accent-light) !important;
    color: var(--color-primary) !important;
    border: 1px solid var(--color-accent-light) !important;
}

/* Product Page Content */
.product-content h3 {
    color: var(--color-primary);
    font-weight: 700;
    font-size: 1.5rem;
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
}

.product-content p {
    color: var(--color-text);
    line-height: 1.8;
    margin-bottom: 1rem;
}

/* Category Filters */
.category-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.category-filter .btn {
    border-radius: 20px;
    padding: 8px 20px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.category-filter .btn:hover {
    transform: translateY(-2px);
}

/* Portfolio Hero */
.portfolio-hero {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 50%, #3b82f6 100%);
    padding: 80px 0;
    color: white;
    text-align: center;
}

.portfolio-hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.portfolio-hero .lead {
    font-size: 1.15rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
}

/* Related Products Section */
.related-products-section {
    background: var(--color-bg-light);
}

.related-products-section h2 {
    color: var(--color-primary);
    font-weight: 700;
}

@media (max-width: 768px) {
    .product-card-placeholder {
        height: 140px;
    }

    .product-card-tech {
        display: none;
    }
}

/* ============================================
   User Flow Timeline
   ============================================ */
.user-flow-section {
    background: white;
}

.user-flow-section h2 {
    color: var(--color-primary);
    font-weight: 700;
}

.user-flow-timeline {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    overflow-x: auto;
    padding: 1rem 0;
}

.flow-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
    min-width: 140px;
    max-width: 200px;
    position: relative;
}

.flow-step-number {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    box-shadow: 0 4px 15px rgba(0, 86, 179, 0.3);
    z-index: 2;
}

.flow-step-number i {
    font-size: 1.4rem;
}

.flow-step-content {
    flex: 1;
}

.flow-step-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.flow-step-desc {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin: 0;
    line-height: 1.4;
}

.flow-step-arrow {
    position: absolute;
    top: 30px;
    right: -30px;
    color: var(--color-primary);
    font-size: 1.5rem;
    opacity: 0.5;
    z-index: 1;
}

@media (max-width: 768px) {
    .user-flow-timeline {
        flex-direction: column;
        align-items: stretch;
    }

    .flow-step {
        flex-direction: row;
        text-align: left;
        max-width: 100%;
        padding: 1rem 0;
        border-bottom: 1px solid var(--color-border);
    }

    .flow-step:last-child {
        border-bottom: none;
    }

    .flow-step-number {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
        margin-bottom: 0;
        margin-right: 1rem;
        flex-shrink: 0;
    }

    .flow-step-arrow {
        display: none;
    }

    .flow-step-content {
        text-align: left;
    }
}

/* ============================================
   User Stories Cards
   ============================================ */
.user-stories-section h2 {
    color: var(--color-primary);
    font-weight: 700;
}

.user-story-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.user-story-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.user-story-persona {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--color-accent-light);
}

.persona-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--color-accent-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    font-size: 1.5rem;
}

.persona-name {
    font-weight: 600;
    color: var(--color-primary);
    font-size: 1.1rem;
}

.user-story-action {
    font-size: 1rem;
    color: var(--color-text);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.user-story-benefit {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--color-text-muted);
    background: var(--color-bg-light);
    padding: 0.75rem;
    border-radius: var(--radius-md);
}

.user-story-benefit i {
    flex-shrink: 0;
    margin-top: 2px;
}

/* ============================================
   Technology Pages
   ============================================ */
.tech-hero {
    background: linear-gradient(135deg, var(--color-primary) 0%, #1e40af 50%, #3b82f6 100%);
    padding: 80px 0;
    color: white;
}

.tech-hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.tech-hero .lead {
    font-size: 1.15rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
}

.tech-page-hero {
    background: var(--color-bg-light);
    padding: 60px 0;
}

.tech-page-hero h1 {
    color: var(--color-primary);
}

/* Technology Cards */
.tech-card {
    border: none;
    box-shadow: var(--shadow-md);
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
    overflow: hidden;
}

.tech-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
}

.tech-card .card-title {
    color: var(--color-primary);
    font-weight: 600;
    margin-bottom: 0;
}

.tech-logo {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    overflow: hidden;
    flex-shrink: 0;
    background: white;
    box-shadow: var(--shadow-sm);
}

.tech-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.tech-logo-lg {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    flex-shrink: 0;
    background: white;
    box-shadow: var(--shadow-md);
    padding: 8px;
}

.tech-logo-lg img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.tech-logo-placeholder {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--color-accent-light) 0%, #dbeafe 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    font-size: 1.5rem;
    flex-shrink: 0;
}

/* Technology Category Badges */
.badge.bg-language {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%) !important;
    color: white;
}

.badge.bg-framework {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    color: white;
}

.badge.bg-database {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
    color: white;
}

.badge.bg-ai_ml {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%) !important;
    color: white;
}

.badge.bg-devops {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
    color: white;
}

.badge.bg-integration {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%) !important;
    color: white;
}

/* Technology Content */
.tech-content {
    color: var(--color-text);
    line-height: 1.8;
}

.tech-content p {
    margin-bottom: 1rem;
}

.tech-content ul {
    padding-left: 1.5rem;
}

.tech-content li {
    margin-bottom: 0.5rem;
}

/* Use Cases List */
.use-cases-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.use-cases-list li {
    font-size: 1rem;
    color: var(--color-text);
}

/* Clickable Tech Tags */
a.tech-tag-link {
    text-decoration: none;
    transition: all 0.2s ease;
}

a.tech-tag-link:hover {
    transform: translateY(-2px);
}

a.tech-tag-link .tech-tag,
a.tech-tag-link .tech-tag-lg {
    cursor: pointer;
    transition: all 0.2s ease;
}

a.tech-tag-link:hover .tech-tag {
    background: var(--color-accent-light) !important;
    color: var(--color-primary) !important;
    border-color: var(--color-accent) !important;
}

a.tech-tag-link:hover .tech-tag-lg {
    background: var(--color-primary) !important;
    color: white !important;
    box-shadow: var(--shadow-md);
}

@media (max-width: 768px) {
    .tech-hero {
        padding: 60px 0;
    }

    .tech-hero h1 {
        font-size: 2rem;
    }

    .tech-page-hero {
        padding: 40px 0;
    }

    .tech-logo-lg {
        width: 60px;
        height: 60px;
    }
}

/* ============================================
   Portfolio Preview Section
   ============================================ */
.portfolio-preview-section {
    background: var(--color-bg-light);
}

.portfolio-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.3s ease;
}

.portfolio-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
}

.portfolio-card-image {
    height: 180px;
    overflow: hidden;
}

.portfolio-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.portfolio-card:hover .portfolio-card-image img {
    transform: scale(1.05);
}

.portfolio-card-placeholder {
    height: 180px;
    background: linear-gradient(135deg, var(--color-primary) 0%, #3b82f6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.portfolio-card-placeholder i {
    font-size: 48px;
    color: rgba(255, 255, 255, 0.5);
}

/* ============================================
   Technologies Cloud Section (Compact)
   ============================================ */
.technologies-cloud-section {
    background: var(--color-bg-light);
}

.tech-cloud-compact {
    max-width: 800px;
    margin: 0 auto;
}

.tech-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    background: white;
    border: 1px solid var(--color-border);
    border-radius: 16px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-text);
    transition: all 0.2s ease;
}

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

.tech-tag-logo {
    width: 18px;
    height: 18px;
    border-radius: 3px;
    object-fit: contain;
}

@media (max-width: 768px) {
    .portfolio-card-image,
    .portfolio-card-placeholder {
        height: 150px;
    }

    .tech-tag {
        padding: 6px 12px;
        font-size: 0.85rem;
    }
}
