/* Portfolio Page Styles */

/* CSS Variables */
:root {
    --steel-blue: #475569;
    --industrial-blue: #1e3a8a;
    --orange-accent: #ea580c;
}

/* Portfolio Hero Section */
.portfolio-hero-section {
    background: linear-gradient(135deg, var(--steel-blue) 0%, var(--industrial-blue) 100%);
    padding: 60px 0 40px;
    min-height: 30vh;
    position: relative;
    overflow: hidden;
}

.portfolio-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='200' height='200' viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Ccircle cx='20' cy='20' r='2'/%3E%3Ccircle cx='60' cy='20' r='2'/%3E%3Ccircle cx='100' cy='20' r='2'/%3E%3Ccircle cx='140' cy='20' r='2'/%3E%3Ccircle cx='180' cy='20' r='2'/%3E%3Ccircle cx='20' cy='60' r='2'/%3E%3Ccircle cx='60' cy='60' r='2'/%3E%3Ccircle cx='100' cy='60' r='2'/%3E%3Ccircle cx='140' cy='60' r='2'/%3E%3Ccircle cx='180' cy='60' r='2'/%3E%3C/g%3E%3C/svg%3E") repeat;
    animation: float 20s ease-in-out infinite;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-badge .badge {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    padding: 8px 20px;
    border-radius: 25px;
}

/* Portfolio Section */
.portfolio-section {
    padding: 120px 0 80px;
    background: #f8f9fa;
}

/* Portfolio Cards */
.portfolio-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(71, 85, 105, 0.1);
    height: 100%;
}

.portfolio-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.portfolio-card:hover .placeholder-image {
    transform: scale(1.05);
}

.portfolio-card:hover .placeholder-image i {
    transform: scale(1.1);
}

.portfolio-card.featured {
    border: 2px solid var(--orange-accent);
    box-shadow: 0 8px 40px rgba(234, 88, 12, 0.15);
}

/* Portfolio Images */
.portfolio-image {
    position: relative;
    overflow: hidden;
}

.placeholder-image {
    height: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.placeholder-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0,0,0,0.1) 0%, rgba(255,255,255,0.05) 50%, rgba(0,0,0,0.1) 100%);
    z-index: 1;
}

.placeholder-image i {
    font-size: 36px;
    margin-bottom: 12px;
    opacity: 0.95;
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

.placeholder-image span {
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    position: relative;
    z-index: 2;
    text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

/* Background patterns for different project types */
.portfolio-image .placeholder-image.safety-bg {
    background: linear-gradient(135deg, #dc2626, #b91c1c) !important;
}

.portfolio-image .placeholder-image.automation-bg {
    background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
}

.portfolio-image .placeholder-image.process-bg {
    background: linear-gradient(135deg, #059669, #047857) !important;
}

.portfolio-image .placeholder-image.management-bg {
    background: linear-gradient(135deg, #f59e0b, #d97706) !important;
}

.portfolio-image .placeholder-image.construction-bg {
    background: linear-gradient(135deg, #0891b2, #0e7490) !important;
}

/* Additional software backgrounds */
.portfolio-image .placeholder-image.travel-bg {
    background: linear-gradient(135deg, #7c3aed, #6d28d9) !important;
}

.portfolio-image .placeholder-image.site-management-bg {
    background: linear-gradient(135deg, #ea580c, #c2410c) !important;
}

.portfolio-image .placeholder-image.report-bg {
    background: linear-gradient(135deg, #0369a1, #0284c7) !important;
}

/* Portfolio Content */
.portfolio-content {
    padding: 20px;
}

.portfolio-card:not(.featured) .portfolio-content {
    padding: 18px;
}

.portfolio-category {
    margin-bottom: 12px;
}

.portfolio-category .badge {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 6px 12px;
}

.portfolio-title {
    color: var(--steel-blue);
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.3;
}

.portfolio-card.featured .portfolio-title {
    font-size: 1.75rem;
}

.portfolio-description {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Portfolio Features */
.portfolio-features {
    list-style: none;
    padding: 0;
    margin-bottom: 24px;
}

.portfolio-features li {
    padding: 8px 0;
    color: #475569;
    font-size: 15px;
    display: flex;
    align-items: center;
}

.portfolio-features-small {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.portfolio-features-small li {
    padding: 6px 0;
    color: #64748b;
    font-size: 14px;
    position: relative;
    padding-left: 20px;
}

.portfolio-features-small li::before {
    content: '•';
    color: var(--orange-accent);
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Technology Tags */
.portfolio-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.tech-tag {
    background: #f1f5f9;
    color: var(--steel-blue);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.tech-tag:hover {
    background: var(--steel-blue);
    color: white;
}

/* Portfolio CTA */
.portfolio-cta {
    background: white;
    padding: 60px 40px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(71, 85, 105, 0.1);
}

.portfolio-cta h3 {
    color: var(--steel-blue);
    font-weight: 700;
    margin-bottom: 16px;
    font-size: 2rem;
}

.portfolio-cta p {
    color: #64748b;
    font-size: 1.1rem;
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.portfolio-cta .btn {
    padding: 16px 32px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.portfolio-cta .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .portfolio-hero-section {
        padding: 100px 0 60px;
        text-align: center;
    }
    
    .portfolio-hero-section h1 {
        font-size: 2.5rem;
    }
    
    .portfolio-section {
        padding: 60px 0;
    }
    
    .portfolio-content {
        padding: 24px 20px;
    }
    
    .portfolio-card.featured .portfolio-content {
        padding: 24px 20px;
    }
    
    .portfolio-card.featured .portfolio-title {
        font-size: 1.5rem;
    }
    
    .placeholder-image {
        height: 200px;
    }
    
    .placeholder-image i {
        font-size: 36px;
    }
    
    .placeholder-image span {
        font-size: 16px;
    }
    
    .portfolio-cta {
        padding: 40px 20px;
    }
    
    .portfolio-cta h3 {
        font-size: 1.5rem;
    }
    
    .tech-tag {
        font-size: 11px;
        padding: 4px 8px;
    }
}

@media (max-width: 576px) {
    .portfolio-hero-section h1 {
        font-size: 2rem;
    }
    
    .portfolio-hero-section h2 {
        font-size: 1.1rem;
    }
    
    .portfolio-hero-section .lead {
        font-size: 1rem;
    }
    
    .hero-badge .badge {
        font-size: 12px;
        padding: 6px 16px;
    }
}

/* Tab Navigation Styles */
.portfolio-tabs-container {
    border-bottom: 2px solid #e2e8f0;
    margin-bottom: 2rem;
}

.portfolio-tabs {
    display: flex;
    gap: 0.5rem;
    background: none;
    border: none;
    padding: 0;
}

.tab-btn {
    background: none;
    border: none;
    color: #64748b;
    font-weight: 600;
    padding: 1rem 2rem;
    border-radius: 12px 12px 0 0;
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
    font-size: 1rem;
}

.tab-btn:hover {
    color: var(--orange-accent);
    background-color: #f8fafc;
}

.tab-btn.active {
    color: var(--orange-accent);
    background-color: #fff;
    border-bottom: 3px solid var(--orange-accent);
    transform: translateY(2px);
}

.portfolio-tabs .nav-link {
    background: none;
    border: none;
    color: #64748b;
    font-weight: 600;
    padding: 1rem 2rem;
    margin-right: 0.5rem;
    border-radius: 12px 12px 0 0;
    transition: all 0.3s ease;
    position: relative;
}

.portfolio-tabs .nav-link:hover {
    color: var(--orange-accent);
    background-color: #f8fafc;
}

.portfolio-tabs .nav-link.active {
    color: var(--orange-accent);
    background-color: #fff;
    border-bottom: 3px solid var(--orange-accent);
    transform: translateY(2px);
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Skills Cards Styles */
.skill-card {
    background: #fff;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.skill-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: var(--orange-accent);
}

.skill-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--orange-accent), #dc2626);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.skill-icon i {
    color: #fff;
    font-size: 24px;
}

.skill-title {
    color: #1e293b;
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
}

.skill-tag {
    background: #f1f5f9;
    color: #475569;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.skill-tag:hover {
    background: var(--orange-accent);
    color: #fff;
    border-color: var(--orange-accent);
}

/* Mobile Responsive for Tabs and Skills */
@media (max-width: 768px) {
    .portfolio-hero-section {
        padding: 80px 0 30px;
        min-height: 25vh;
    }
    
    /* Enable smooth scrolling and touch optimization */
    .portfolio-section {
        touch-action: pan-y pinch-zoom;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Mobile tab design - subtle and minimal */
    .portfolio-tabs {
        border-bottom: 1px solid #e2e8f0;
        padding: 0;
        justify-content: center;
    }
    
    .portfolio-tabs-container {
        margin-bottom: 2rem;
        background: transparent;
    }
    
    .tab-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
        font-weight: 500;
        color: #64748b;
        background: transparent;
        border: none;
        border-radius: 0;
        border-bottom: 2px solid transparent;
        margin: 0 0.5rem;
        transition: all 0.2s ease;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
    
    .tab-btn:hover {
        color: var(--orange-accent);
        background: transparent;
    }
    
    .tab-btn.active {
        color: var(--orange-accent);
        background: transparent;
        border-bottom: 2px solid var(--orange-accent);
        transform: none;
        font-weight: 600;
    }
    
    .portfolio-tabs .nav-link {
        padding: 0.75rem 1rem;
        margin-right: 0.25rem;
        font-size: 0.9rem;
    }
    
    .skill-card {
        padding: 1.5rem;
    }
    
    .skill-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 1rem;
    }
    
    .skill-icon i {
        font-size: 20px;
    }
    
    .skill-title {
        font-size: 1.1rem;
    }
    
    .skill-tag {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
}

/* Extra small devices - ultra minimal tab design */
@media (max-width: 480px) {
    .portfolio-tabs {
        border-bottom: none;
        padding: 0.5rem 0;
    }
    
    .portfolio-tabs-container {
        margin-bottom: 1.5rem;
        border-bottom: 1px solid #f1f5f9;
    }
    
    .tab-btn {
        padding: 0.5rem 0.8rem;
        font-size: 0.8rem;
        margin: 0 0.3rem;
        color: #94a3b8;
        font-weight: 400;
        letter-spacing: 0.3px;
        position: relative;
    }
    
    .tab-btn.active {
        color: var(--orange-accent);
        font-weight: 500;
        border-bottom: none;
    }
    
    .tab-btn.active::after {
        content: '';
        position: absolute;
        bottom: -0.5rem;
        left: 50%;
        transform: translateX(-50%);
        width: 20px;
        height: 2px;
        background: var(--orange-accent);
        border-radius: 1px;
    }
    
    .tab-btn:hover {
        color: #64748b;
    }
    
    /* Swipe indicator for mobile */
    .portfolio-tabs-container::after {
        content: '';
        display: block;
        width: 40px;
        height: 3px;
        background: linear-gradient(90deg, transparent, #e2e8f0, transparent);
        margin: 0.5rem auto 0;
        border-radius: 2px;
        opacity: 0.6;
    }
    
    /* Add subtle animation to content during swipe */
    .tab-content {
        transition: opacity 0.2s ease-in-out;
    }
    
    .tab-content.active {
        animation: slideIn 0.3s ease-out;
    }
    
    @keyframes slideIn {
        from {
            opacity: 0;
            transform: translateX(10px);
        }
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }
}